//by moove 2005

document.onmousemove = doCoordParent;

var g_bIE=(document.all);




checkEl="0"
document.onmouseover = pWait;

window.onload=makeinfo;
window.onunload=bye;
oldId="";

function makeinfo()
{

	if(typeof window.parent.document.getElementById("MenuTable")=="object")
	{

		window.parent.completer="True";
	}else
	{
		if(!window.parent.parent.contents)
		{

			if(document.getElementById("bTit"))
			document.getElementById("bTit").style.display=""
			document.body.style.marginTop="0"
		}
	}
if(typeof remenue=="function")
{remenue()}


}


function doCoordParent(e)
{


	if(window.parent.completer)
	{

		if(window.parent.completer=="True")
		{

			if(window.parent.document.getElementById("MenuTable"))
			{
				    	if(g_bIE)
					{
					 x=event.clientX;
					 y=event.clientY;
					}
   					else
					{
					  x=e.clientX;
					  y=e.clientY;
					}

				window.parent.doCoord(x,y,"down");
			}
		}
	}
}





function bye()
{
	if(window.parent.completer)
		window.parent.completer="False";
}




function showIt(o)
{

	if(oldId=="")
		oldId=o;

	if(eval(o).className=="hTable")
	{
		eval(o).className="vTable"
		if(oldId!=o)
			eval(oldId).className="hTable";
	}
	else
	{
		eval(o).className="hTable";
		if(oldId!=o)
			eval(oldId).className="hTable";
	}

	oldId=o;
}



function deco(o,n)
{
	if(n==1)
		o.style.background="#CFE4FA";
	else
		o.style.background="#A7CDF4";
}


function clearIt()
{
alert("clear")
	if(window.parent.completer)
		window.parent.completer="False";
	checkEl="1"
}


function pWait(e)
{

	if(g_bIE)
	{
	if(checkEl=="1")
	event.srcElement.style.cursor="wait";

	}
   	else
	{
	if(checkEl=="1");

	//e.target.style.cursor="wait";
	}

}
