var Timehideddrivetip;
function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function ddrivetip(thetext, thewidth, thecolor){
if (ns6||ie){
if (typeof thewidth!="undefined")
CElaD.style.width=thewidth+"px"
if (typeof thecolor!="undefined" && thecolor!="")
CElaD.style.backgroundColor=thecolor
CElaD.innerHTML=thetext
enabletip=true
clearTimeout(Timehideddrivetip)
Timehideddrivetip=setTimeout('hideddrivetip()', 6000)
return false
}
}
function ddrivetipAl(thetext, thewidth, thecolor){
if (ns6||ie){
if (typeof thewidth!="undefined")
CElaD.style.width=thewidth+"px"
if (typeof thecolor!="undefined" && thecolor!="")
CElaD.style.backgroundColor=thecolor
CElaD.innerHTML=thetext
enabletip=true
return false
}
}
function positiontip(e){
var Messaggio='ciao';
if (enabletip){
var nondefaultpos=false
var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;
var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;
var winwidth=ie&&!window.opera? ietruebody().clientWidth : window.innerWidth-20
var winheight=ie&&!window.opera? ietruebody().clientHeight : window.innerHeight-20
var rightedge=ie&&!window.opera? winwidth-event.clientX-offsetfromcursorX : winwidth-e.clientX-offsetfromcursorX
var bottomedge=ie&&!window.opera? winheight-event.clientY-offsetfromcursorY : winheight-e.clientY-offsetfromcursorY
var leftedge=(offsetfromcursorX<0)? offsetfromcursorX*(-1) : -1000
if (rightedge<CElaD.offsetWidth){
CElaD.style.left=curX-CElaD.offsetWidth+"px";
nondefaultpos=true
}
else if (curX<leftedge){
CElaD.style.left="5px"
}
else{
CElaD.style.left=curX+offsetfromcursorX-offsetdivfrompointerX+"px"
CElaP.style.left=curX+offsetfromcursorX+"px"
}
if (bottomedge<CElaD.offsetHeight){
CElaD.style.top=curY-CElaD.offsetHeight-offsetfromcursorY+"px"
nondefaultpos=true
}
else{
CElaD.style.top=curY+offsetfromcursorY+offsetdivfrompointerY+"px"
CElaP.style.top=curY+offsetfromcursorY+"px"
}
CElaD.style.visibility="visible"
if (!nondefaultpos)
CElaP.style.visibility="visible"
else
CElaP.style.visibility="hidden"
}
}
function hideddrivetip(){
if (ns6||ie){
enabletip=false
CElaD.style.visibility="hidden"
CElaP.style.visibility="hidden"
CElaD.style.left="-0px"
CElaD.style.backgroundColor=''
CElaD.style.width=''
clearTimeout(Timehideddrivetip)
}
}
function hideddrivetipAl(){
if (ns6||ie){
enabletip=false
CElaD.style.visibility="hidden"
CElaP.style.visibility="hidden"
CElaD.style.left="-0px"
CElaD.style.backgroundColor=''
CElaD.style.width=''
}
}
document.onmousemove=positiontip

