// JavaScript Document
function DD_hideTooltip(object) {
    if (document.all || document.getElementById) {
        var o = MM_findObj(object);
        o.style.visibility = "hidden";
        o.style.left = 1;
        o.style.top = 1;
        return false;
    } else {
        if (document.layers) {
            var o = MM_findObj(object);
            o.visibility = "hide";
            o.left = 1;
            o.top = 1;
            return false;
        } else {
            return true;
        }
    }
}

function DD_showTooltip(object,e, tipContent, backcolor, bordercolor, textcolor,displaytime,font) {
	window.clearTimeout("hideTooltip");
	if (!font || font=='') font = 'Tahoma, Arial, Helvetica, sans-serif';
	if (document.all || document.getElementById) {
		var o = MM_findObj(object),mouseX,mouseY,oc=o.style,db=document.body;		
		o.innerHTML='<table style="font-family: '+font+'; font-size: 11px; border: '+bordercolor+'; border-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; background-color: '+backcolor+'" width="10" border="0" cellspacing="1" cellpadding="1"><tr><td nowrap><font style="font-family: '+font+'; font-size: 11px; color: '+textcolor+'">'+unescape(tipContent)+'</font></td></tr></table> ';		
		if (document.getElementById && !document.all) {
			mouseX = e.pageX; mouseY = e.pageY;
			oc.left = ((mouseX + o.offsetWidth) > (window.innerWidth + window.pageXOffset)) ? mouseX - o.offsetWidth  : window.pageXOffset+mouseX;
		} else {
			mouseX = window.event.clientX + db.scrollLeft;
			mouseY = window.event.clientY + db.scrollTop;
			oc.left = ((e.x + o.clientWidth) > (db.clientWidth + db.scrollLeft)) ? (db.clientWidth + db.scrollLeft) - o.clientWidth : mouseX;
		}
		oc.top=mouseY; oc.visibility="visible";
		window.setTimeout("DD_hideTooltip('"+object+"')", displaytime);
		return true;
	} else if (document.layers) {
		var o = MM_findObj(object);
		o.document.write('<table width="10" border="0" cellspacing="1" cellpadding="1"><tr bgcolor="'+bordercolor+'"><td><table width="10" border="0" cellspacing="0" cellpadding="2"><tr bgcolor="'+backcolor+'"><td nowrap><font style="font-family: '+font+'; font-size: 11px; color: '+textcolor+'">'+unescape(tipContent)+'</font></td></tr></table><td></tr></table>');
		o.document.close(); o.top=e.y;
		o.left = ((e.x + o.clip.width) > (window.pageXOffset + window.innerWidth)) ? window.innerWidth - o.clip.width : e.x;
		o.visibility="show"
		window.setTimeout("DD_hideTooltip('"+object+"')", displaytime);
		return true;
	}
	else return true;
}