function menugoster(A,C,G,B)
{
	var F=document.getElementById(C).getElementsByTagName("li");
	var E=document.getElementById(A);
	for(var D=0;D<F.length;D++)
	{
		F[D].className=G
	}
	E.className=B
}

function shimit(C)
{
if(typeof shim=="undefined")
{
	return
}
var A=document.getElementById("shim").style;
if(!nondefaultpos)
{
	var B=document.getElementById("shim2").style;
	B.width=pointerobj.offsetWidth+"px";
	B.height=pointerobj.offsetHeight+"px";
	B.top=pointerobj.style.top;
	B.left=pointerobj.style.left;
	B.zIndex=99;B.display="block"
}
A.height=C.offsetHeight+"px";
A.width=C.offsetWidth+"px";
var C=C.style;
A.left=C.left;
A.top=C.top;
A.zIndex=99;
A.display="block"
}

function noshim()
{
	if(typeof shim=="undefined")
	{
	return 
	}
	document.getElementById("shim").style.display="none";
	document.getElementById("shim2").style.display="none"
}
var offsetfromcursorX=12;
var offsetfromcursorY=10;
var offsetdivfrompointerX=10;
var offsetdivfrompointerY=-1;

document.write('<div id="dhtmltooltip"></div>');
document.write('<img id="dhtmlpointer" src="./trans.gif">');
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 tip(B,A,C)
{
	if(ns6||ie)
	{
		if(typeof A!="undefined")
		{
			tipobj.style.width=A+"px"
		}
		if(typeof C!="undefined"&&C!="")
		{
			tipobj.style.backgroundColor=C
		}
		tipobj.innerHTML=B;
		enabletip=true;
		return false;
	}
}

function positiontip(G)
{
	if(enabletip)
	{
		nondefaultpos=false;
		var B=(ns6)?G.pageX:event.clientX+ietruebody().scrollLeft;
		var A=(ns6)?G.pageY:event.clientY+ietruebody().scrollTop;
		var F=ie&&!window.opera?ietruebody().clientWidth:window.innerWidth-20;
		var C=ie&&!window.opera?ietruebody().clientHeight:window.innerHeight-20;
		var E=ie&&!window.opera?F-event.clientX-offsetfromcursorX:F-G.clientX-offsetfromcursorX;
		var D=ie&&!window.opera?C-event.clientY-offsetfromcursorY:C-G.clientY-offsetfromcursorY;
		var H=(offsetfromcursorX<0)?offsetfromcursorX*(-1):-1000;
		if(E<tipobj.offsetWidth)
		{
			tipobj.style.left=B-tipobj.offsetWidth+"px";
			nondefaultpos=true
		}
		else
		{
			if(B<H)
			{
				tipobj.style.left="5px"
			}
			else
			{
				tipobj.style.left=B+offsetfromcursorX-offsetdivfrompointerX+"px";
				pointerobj.style.left=B+offsetfromcursorX+"px"
			}
		}
		
		if(D<tipobj.offsetHeight)
		{
			tipobj.style.top=A-tipobj.offsetHeight-offsetfromcursorY+"px";
			nondefaultpos=true
		}
		else
		{
			tipobj.style.top=A+offsetfromcursorY+offsetdivfrompointerY+"px";
			pointerobj.style.top=A+offsetfromcursorY+"px"
		}
		tipobj.style.visibility="visible";
		shimit(tipobj);
		if(!nondefaultpos)
		{
			pointerobj.style.visibility="visible"
		}
		else
		{
			pointerobj.style.visibility="hidden"
		}
	}
}

function hidetip()
{
	if(ns6||ie)
	{
		enabletip=false;
		tipobj.style.visibility="hidden";
		noshim();
		pointerobj.style.visibility="hidden";
		tipobj.style.left="-1000px";
		tipobj.style.backgroundColor="";
		tipobj.style.width=""
	}
}
document.onmousemove=positiontip;