// JavaScript for tooltips

  function showToolTip(content, n, s)
  {
	  if (content.nextSibling.style.top == "") {
	  	if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ //test for MSIE x.x;
			var ieversion=new Number(RegExp.$1) // capture x.x portion and store as a number
 			if (ieversion<8) {
	 			var top = content.height + "px"; }
 			else {
 				var top = "0px"; }
 		content.nextSibling.style.top=top;
		}
  	  }
	  if (s=="show"){
	  content.nextSibling.style.display="block";
	  omout = content.onmouseout;
	  omover = content.onmouseover;
	  if (n=="lock")
	  {	content.onmouseout="";
	  	content.onmouseover="";
		content.nextSibling.childNodes[0].style.display="block";}
	  else
	  { content.onmouseout=omout; }}
	  else { 
		content.nextSibling.style.display="none";
	  }
	  if (s=="hide")
	  {
	  	content.nextSibling.style.display="none";
		content.nextSibling.childNodes[0].style.display="none";
	  	content.onmouseout=omout;
		content.onmouseover=omover;
	  }
  }
  
  function showNavBar(content, n, s)
  {
	  var navAnchors = document.getElementById("navbar").childNodes[1].childNodes;
	  var navCount = 0;
	  var aCount = 0;
	  for (each in navAnchors)
	  {
		  try {
		  if (navAnchors[aCount].nodeName=="a" || navAnchors[aCount].nodeName=="A")
		  	{
				navAnchors[aCount].nextSibling.style.top=(navCount * 24) + 'px';
				navCount ++;
			}
		  }
		  catch(err) {}
		  aCount ++;
	  }
	  if (s=="show"){
	  content.nextSibling.style.display="block";
	  omout = content.onmouseout;
	  omover = content.onmouseover;
	  if (n=="lock")
	  {	content.onmouseout="";
	  	content.onmouseover="";
		content.nextSibling.childNodes[0].style.display="block";}
	  else
	  { content.onmouseout=omout; }}
	  else { 
		content.nextSibling.style.display="none";
	  }
	  if (s=="hide")
	  {
	  	content.nextSibling.style.display="none";
		content.nextSibling.childNodes[0].style.display="none";
	  	content.onmouseout=omout;
		content.onmouseover=omover;
	  }
  }