//Script created by Jim Young (www.requestcode.com)
//Submitted to JavaScript Kit (http://javascriptkit.com)
//Visit http://javascriptkit.com for this script

//Modified by Carmen Lo -- Nov 23, 2005     
      
     function showtip(current,e,displayString)
        {
         if (document.layers) // Netscape 4.0+
            {
             theString="<DIV CLASS='URLMouseOver'>"+displayString+"</DIV>"
             document.tooltip.document.write(theString)
             document.tooltip.document.close()
             document.tooltip.left=e.pageX+14
             document.tooltip.top=e.pageY+2
             document.tooltip.visibility="show"
            }
         else
           {
            if(document.getElementById) // Netscape 6.0+ and Internet Explorer 5.0+
            {
				var topTotal;
				var leftTotal;
				var parentEl=current.offsetParent
				elm=document.getElementById("tooltip")
				elml=current
				elm.innerHTML=formatLinkForDisplay(displayString);
				elm.style.height=elml.style.height
				topTotal=parseInt(elml.offsetTop-elm.offsetHeight-10)
				leftTotal=parseInt(elml.offsetLeft)
				while (parentEl!=null){
					topTotal=topTotal+parentEl.offsetTop
					leftTotal=leftTotal+parentEl.offsetLeft
					parentEl=parentEl.offsetParent
				}
				elm.style.top=topTotal 
				elm.style.left=leftTotal   
  				elm.style.visibility = "visible"
            }
          }
        }
function hidetip(){
if (document.layers) // Netscape 4.0+
   {
    document.tooltip.visibility="hidden"
   }
else
  {
   if(document.getElementById) // Netscape 6.0+ and Internet Explorer 5.0+
     {
      elm.style.visibility="hidden"
     }
  } 
}

function formatLinkForDisplay(linkName)
{
	var updatedLink = "";
	var length = linkName.length;
	
	while (length > 35) {
		var substring = linkName.substring(0,35);		
		updatedLink += (substring + "<br>");		
		
		linkName = linkName.substring(35);
		length = linkName.length;
	}
	
	updatedLink += linkName;
	// PL 2157 - External Notice - URL is not shown properly
	updatedLink = "<pre>"+ updatedLink +"</pre>";
	
	return updatedLink;
}
