function taf(id) {

     var URL = "/tellafriend.php?id=" + id;

      var features =
        'width='        + '400' +
        ',height='      + '400' +
        ',directories=' + 'no' +
        ',location='    + 'no' +
        ',menubar='     + 'no' +
        ',scrollbars='  + 'yes' +
        ',status='      + 'yes' +
        ',toolbar='     + 'no' +
        ',Resizable='  + 'yes';
      info = window.open (URL, "taf", features);
}    
function goPage(pageURL) {
    document.location = pageURL;  
}
  
function showWindow(name) {
     var URL = "/extrainformation/" + name + "/";
     var features =
        'width='        + '300' +
        ',height='      + '250' +
        ',directories=' + 'no' +
        ',location='    + 'no' +
        ',menubar='     + 'no' +
        ',scrollbars='  + 'yes' +
        ',status='      + 'yes' +
        ',toolbar='     + 'no' +
        ',Resizable='  + 'yes';
      info = window.open (URL, name, features);
  }
  
  function showImage(pid,file) {
    var URL = "/showImage.php?pid=" + pid + "&file=" + file;
     var features =
       'width='        + '700' +
       ',height='      + '500' +
       ',directories=' + 'no' +
       ',location='    + 'no' +
       ',menubar='     + 'no' +
       ',scrollbars='  + 'yes' +
       ',status='      + 'yes' +
       ',toolbar='     + 'no' +
       ',Resizable='  + 'yes';
      window.open (URL, "showImage", features);
}

  function showDiv(cellnumber) {
    hideAll();
    thisCell = document.getElementById("subNav" + cellnumber);
    if(thisCell) {
      thisCell.style.visibility = "visible";      
    }
    thisCellBG = document.getElementById("l1Nav" + cellnumber);
    if(thisCellBG) {      
      thisCellBG.style.backgroundColor = "#ffffff";      
    }
  }


  function hideAll(cellnumber) {
    for(i = 1; i <= 5; i++) {
      thisCell = document.getElementById("subNav" + i);
      if(thisCell) {
        thisCell.style.visibility = "hidden";
      }
      thisCellBG = document.getElementById("l1Nav" + i);
      if(thisCellBG) {      
        thisCellBG.style.backgroundColor = "#E7E7DD";      
      }
      thisCell = document.getElementById("csubNav" + i);
      if(thisCell) {
        thisCell.style.visibility = "hidden";
      }
      thisCellBG = document.getElementById("c1Nav" + i);
      if(thisCellBG) {      
        thisCellBG.style.backgroundColor = "#E7E7DD";      
      }   
    }
  }
  
  function cshowDiv(cellnumber) {
    chideAll();
    thisCell = document.getElementById("csubNav" + cellnumber);
    if(thisCell) {
      thisCell.style.visibility = "visible";      
    }
    thisCellBG = document.getElementById("c1Nav" + cellnumber);
    if(thisCellBG) {      
      thisCellBG.style.backgroundColor = "#ffffff";      
    }
  }


  function chideAll(cellnumber) {
    for(i = 1; i <= 6; i++) {
      thisCell = document.getElementById("csubNav" + i);
      if(thisCell) {
        thisCell.style.visibility = "hidden";
      }
      thisCellBG = document.getElementById("c1Nav" + i);
      if(thisCellBG) {      
        thisCellBG.style.backgroundColor = "#E7E7DD";      
      }  
    }
  }

$(function() {
  

	if(window.innerWidth) {
		xco = window.innerWidth;
		wincentre= xco/2;
		
}else if(document.documentElement.clientWidth) {
    xco=document.documentElement.clientWidth;
    wincentre= xco/2;
}
 $("div.dropGreenShadow").css({"left": wincentre+398+"px"});

	});