var ns4 = document.layers;
var ns6 = document.getElementById && !document.all;
var ie = document.all;
var offsetX = 0;
var offsetY = 20;
var toolTipSTYLE="";

function initToolTips(){
    if(ns4) {
		toolTipSTYLE = document.toolTipLayer;
    }else if(ns6){
		 toolTipSTYLE = document.getElementById("toolTipLayer").style;
    }else if(ie){ 
		toolTipSTYLE = document.all.toolTipLayer.style;
	}
    if(ns4){ 
		document.captureEvents(Event.MOUSEMOVE);
    }else {
      toolTipSTYLE.visibility = "visible";
      toolTipSTYLE.display = "none";

    }
}

function toolTip(title){
  if(toolTip.arguments.length < 1) { // Òþ²Ø
    if(ns4){
		toolTipSTYLE.visibility = "hidden";
    }else{ toolTipSTYLE.display = "none";}
  } else { // ÏÔÊ¾
    var content = "<table align='left'><tr><td nowrap class='ToolTip' style='padding:1px 5px; width:560px;'>" +title + "</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(ie){
      document.all("toolTipLayer").innerHTML=content;
      toolTipSTYLE.display='block'
    }
  }
}
