// Example:
// onMouseOver="toolTip('tool tip text here')";
// onMouseOut="toolTip()";
// -or-
// onMouseOver="toolTip('more good stuff', '#FFFF00', 'orange')";
// onMouseOut="toolTip()"; 

var ns4 = document.layers;
var ns6 = document.getElementById && !document.all;
var ie4 = document.all;
offsetX = 0;
offsetY = 20;
var toolTipSTYLE="";
function initToolTips()
{
 if(ns4||ns6||ie4)
 {
  if(ns4) toolTipSTYLE = document.toolTipLayer;
  else if(ns6) toolTipSTYLE = document.getElementById("toolTipLayer").style;
  else if(ie4) toolTipSTYLE = document.all.toolTipLayer.style;
  if(ns4) document.captureEvents(Event.MOUSEMOVE);
  else
  {
   toolTipSTYLE.visibility = "visible";
   toolTipSTYLE.display = "none";
  }
  document.onmousemove = moveToMouseLoc;
 }
}
function toolTip(msg, fg, bg)
{
 if(toolTip.arguments.length < 1) // hide
 {
  if(ns4) toolTipSTYLE.visibility = "hidden";
  else toolTipSTYLE.display = "none";
 }
 else // show
 {
  if(!fg) fg = "#618667";
  if(!bg) bg = "#D9C51B";
	brd = "#978A6D";
  var content =
  '<table border="0" width="250" cellspacing="1" cellpadding="2" bgcolor="' + brd + 
  '"><tr><td align="left" bgcolor="' + bg + 
  '"><font face="sans-serif" color="' + fg +
  '" size="-2">' + msg +
  '</font><br>Click for more...</td></tr></table>';
  if(ns4)
  {
   toolTipSTYLE.document.write(content);
   toolTipSTYLE.document.close();
   toolTipSTYLE.visibility = "visible";
  }
  if(ns6)
  {
   document.getElementById("toolTipLayer").innerHTML = content;
   toolTipSTYLE.display='block'
  }
  if(ie4)
  {
   document.all("toolTipLayer").innerHTML=content;
   toolTipSTYLE.display='block'
  }
 }
}
function moveToMouseLoc(e)
{
 if(ns4||ns6)
 {
  x = e.pageX;
  y = e.pageY;
 }
 else
 {
  x = event.x + document.body.scrollLeft;
  y = event.y + document.body.scrollTop;
 }
 if (x>510) {
 offsetX = x-760;
 }
 toolTipSTYLE.left = x + offsetX;
 toolTipSTYLE.top = y + offsetY;
 return true;
}
function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
  if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
  d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
 if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
 for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
 if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
 window.open(theURL,'smlwindow',features);
 
}
function MM_setTextOfLayer(objName,x,newText) { //v4.01
 if ((obj=MM_findObj(objName))!=null) with (obj)
  if (document.layers) {document.write(unescape(newText)); document.close();}
  else {
	if (newText != "") {
	setupstr= '<table border="0" cellpadding="0" cellspacing="1" bgcolor="C2B393">';
	setupstr= setupstr+'<tr><td bgcolor="FFF538" class="small">';
	setupstr= setupstr+newText;
	setupstr= setupstr+'</td></tr></table>';
	innerHTML = setupstr;
	}
		}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
 if (restore) selObj.selectedIndex=0;
}
