// JavaScript Document
/***********************************************
* 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 offsetxpoint=-100 //Customize x offset of tooltip
var offsetypoint=-250 //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 ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}


function ddrivetipNews(thetext, thecolor, thewidth){
//populate arrays
thetext=thetext.replace(/~/g,"'")  
thetext=thetext.replace(/\"/g,"'")
//alert(thetext)
if (ns6||ie){
//alert(typeof thewidth)
if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor
if (typeof thewidth=="undefined"){ 
tipobj.style.width=0+"px"; 
tipobj.style.height=0+"px"
tipobj.innerHTML=""
enabletip=false
positiontip(-1000)
tipobj.style.visibility="hidden"
}
else{
tipobj.innerHTML=thetext.replace("~","'")
enabletip=true
positiontip(200)
//tipobj.style.height=600+"px"
}


return false
}
}

function positiontip(e){

if (enabletip){

tipobj.style.top=e+"px"

if ((screen.width>1024) && (screen.height>768)){
tipobj.style.left="325px"
}
else{
tipobj.style.left="225px"
}
tipobj.style.visibility="visible"
}


}

function hideddrivetipNews(){
if (ns6||ie){
enabletip=false
tipobj.style.visibility="hidden"
tipobj.style.left="100px"
tipobj.style.backgroundColor=''
tipobj.style.width=''
}
}

//document.onmousemove=positiontip
/*^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
* 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
***********************************************/