/***********************************************
* Cool DHTML tooltip script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

var offsetxpointc=0 //Customize x offset of tooltip
var offsetypointc=5 //Customize y offset of tooltip
var iec=document.all
var ns6c=document.getElementById && !document.all
var enabletipc=false
if (iec||ns6c)
var tipobjc;

function ietruebodyc(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function ddrivetipc(thetext, thecolor, thewidth){
tipobjc=document.all? document.all["divproducthelp"] : document.getElementById? document.getElementById("divproducthelp") : ""
if (!tipobjc) return false;	
if (ns6c||iec){
if (typeof thewidth!="undefined") tipobjc.style.width=thewidth+"px"
if (typeof thecolor!="undefined" && thecolor!="") tipobjc.style.backgroundColor=thecolor
tipobjc.innerHTML=thetext
enabletipc=true
return false
}
}

function positiontipc(e){

if (enabletipc){
var curX=(ns6c)?e.pageX : event.clientX+ietruebodyc().scrollLeft;
var curY=(ns6c)?e.pageY : event.clientY+ietruebodyc().scrollTop;
//Find out how close the mouse is to the corner of the window
var rightedge=iec&&!window.opera? ietruebodyc().clientWidth-event.clientX-offsetxpointc : window.innerWidth-e.clientX-offsetxpointc-20
var bottomedge=iec&&!window.opera? ietruebodyc().clientHeight-event.clientY-offsetypointc : window.innerHeight-e.clientY-offsetypointc-20

var leftedge=(offsetxpointc<0)? offsetxpointc*(-1) : -1000

//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<tipobjc.offsetWidth)
//move the horizontal position of the menu to the left by it's width
tipobjc.style.left=iec? ietruebodyc().scrollLeft+event.clientX-tipobjc.offsetWidth+"px" : window.pageXOffset+e.clientX-tipobjc.offsetWidth+"px"
else if (curX<leftedge)
tipobjc.style.left="5px"
else
//position the horizontal position of the menu where the mouse is positioned
tipobjc.style.left=curX+offsetxpointc+"px"

//same concept with the vertical position
if (bottomedge<tipobjc.offsetHeight)
tipobjc.style.top=iec? ietruebodyc().scrollTop+event.clientY-tipobjc.offsetHeight-offsetypointc+"px" : window.pageYOffset+e.clientY-tipobjc.offsetHeight-offsetypointc+"px"
else
tipobjc.style.top=curY+offsetypointc+"px"
tipobjc.style.visibility="visible"
}
}

function hideddrivetipc(){
if (ns6c||iec){
enabletipc=false
	if(tipobjc){
	tipobjc.style.visibility="hidden"
	tipobjc.style.left="-1000px"
	tipobjc.style.backgroundColor=''
	tipobjc.style.width=''
	}
}
}

document.onmousemove=positiontipc