/***********************************************
* 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
***********************************************/

document.write('<div id="dhtmltooltip"></div>') //write out tooltip DIV
document.write('<img id="dhtmlpointer" src="/s/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
}

/**
 * setup a tool tip
 * @param thetext - Text to display in tooltip
 * @param thwidth - width of tooltip
 * @param thecolor - 
 * @param placement - "mouse" to follow mouse around, or id name of div to place next to
 */
function ddrivetip(thetext, thewidth, thecolor, placement){
	if (ns6||ie){
		if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
		if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor
		tipobj.innerHTML=thetext
		tipobj.style.textAlign="center"
		enabletip=true
		positiontip(null,placement);
		return false
	}
}

function positiontip(e,divID){
	if (!enabletip) return;
	var nondefaultpos=false
	if(divID && jQuery){
		var p=jQuery("#"+divID).position()
		var curX=p.left;
		var curY=p.top;
		tipobj.style.left=curX-160+"px"
		tipobj.style.top=curY+42+"px"
		pointerobj.style.left=curX+20+"px"
		pointerobj.style.top=curY+28+"px"
		tipobj.style.visibility=pointerobj.style.visibility="visible"
		return;
	}
}

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



