// Java include
//if (ver4) {
//document.write("<SCRIPT LANGUAGE='JavaScript1.2' SRC='menuheader.js'><\/SCRIPT>");
//}

IE4 = (document.all) ? 1 : 0;
NS = (document.layers) ? 1 : 0;
ver4 = (IE4 || NS) ? 1 : 0;

document.write ('<STYLE TYPE="text/css">');

// -----------MORE MENU ELEMENT
document.write ('#moremenux {position: absolute;');
document.write ('top: 0; left: 492; width:110; height:154;};');

//------------MORE MENU CLASS
document.write ('	.moremenu{');
document.write ('	position: absolute;');
document.write ('     	BORDER-BOTTOM: none;');
document.write ('    	BORDER-LEFT: none;');
document.write ('    	BORDER-RIGHT: none;');
document.write ('    	BORDER-TOP: none;');
document.write ('    	PADDING-RIGHT: #993366 0px solid;');
document.write ('		left: 100;');
document.write ('		background: #dae6ff;');

   if (IE4) {
		document.write ('	DISPLAY: none;}');
		}
   if (NS)
		{
		document.write ('	visibility: hidden;}');
		}

   if (IE4) {
		document.write ('a{text-decoration:none; color:white; FONT: 13px Arial, Helvetica, san-serif; font-weight: regular}');
		}
   if (NS)
		{
		document.write ('a{text-decoration:none; color:white; FONT: 14px Arial, Helvetica, san-serif; font-weight: regular}');
	}


	document.write ('	</style>');
//}

function checkxy() {
      if ((window.event.clientX > 440) && (window.event.clientX < 440+100) && (window.event.clientY < 150)){
		// don't do anything
	}
     	else
	{
	    	if (moremenux.style.display == "block"){
			moremenux.style.display = "none"
		}

	}
}

function startchecking(){
            if (IE4){
            	document.onmouseover = checkxy;

            }
            if (NS){
            	if (document.captureEvents){
            		document.captureEvents(Event.MOUSEMOVE);
            		document.onmousemove = processmove;
            	}
            }
}

function processmove(e) {
	if ((e.pageX > 560) && (e.pageX < 560+100) && (e.pageY < 150))
	{
    		// don't do anything
	}
    		else
	{
    	    	if (document.moremenux.visibility == "show"){
    			document.moremenux.visibility = "hide";
	    	}
    		else
    		{
    			document.moremenux.visibility == "hide";
		}
    	}
}
