document.write("<table style='position: absolute; left: 0; top: 0; right: 0; bottom: 0; width: 0; height: 0; z-index: 200' border=0 width=1px height=2px><tr><td><div z-index=10 id='dhtmltooltip' width=0px height=0px></div></td></tr></table>")
var offsetxpoint=-60 //Customize x offset of tooltip
var offsetypoint=20 //Customize y offset of tooltip
var ie=document.all
var ns6=document.getElementById && !document.all
var enabletip=false
if (ie||ns6)
var tipobj=document.all? document.all["dhtmltooltip"] : document.getElementById? document.getElementById("dhtmltooltip") : ""


function cambia(ImageName,ImageFile){ImageName.src = ImageName.src+"/../"+ImageFile;}

function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

 function findPosdrivetip(obj) 
 {

	 if(ns6)
	 { 
		 x = 0
		 y = -30
	 }
	 else 
	{
		 x=0; 
		 y=0; 
	 }
	
	var el,temp; 
	el = obj; 
	 if(el.offsetParent)
	 {
		temp = el;
		while(temp.offsetParent)
		 {
		 temp=temp.offsetParent;
		 x+=temp.offsetLeft;
		 y+=temp.offsetTop;
		}
	 }

	 x+=el.offsetLeft;
	 y+=el.offsetTop ;
 

 return [x,y];
 }


function ddrivetip(image,obj,W,H,offsetX,offsetY,thecolor, thewidth)
{
if (document.getElementById && !document.all)
{
	ns6=true;
	tipobj=document.all? document.all["dhtmltooltip"] : document.getElementById? document.getElementById("dhtmltooltip") : ""	
}

	Imageobj=document.all? document.all["logoPass"] : document.getElementById? document.getElementById("logoPass") : ""

		if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
		if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor
		immagine = "url("+Imageobj.src+"/../"+image+")"
		
		tipobj.style.backgroundImage=immagine

		//tipobj.innerHTML=thetext
		enabletip=true
		
		pos = findPosdrivetip(obj) 
		posizioneip(pos[0],pos[1],W,H,offsetX,offsetY)
		return false

}

function posizioneip(x,y,W,H,offsetX,offsetY)
{
tipobj.style.width=Math.abs(W)
tipobj.style.height=Math.abs(H)
tipobj.style.left=x+W+offsetX+"px"
tipobj.style.top=y+H-offsetY+"px"
tipobj.style.visibility="visible"

if(ns6)
{
	tipobj.style.opacity="0.85";
}
else
{
	tipobj.style.filter="alpha(opacity=85)";
}



}

function hideddrivetip(){
if (ns6||ie){
enabletip=false
tipobj.style.visibility="hidden"
tipobj.style.left="-1000px"
tipobj.style.backgroundColor=''
tipobj.style.width=''
}
}

