// JavaScript Document
function mouseover(num)
{
	for(var i=0;i<4;i++){
		document.getElementById('initWin'+i).style.display="none";
	}
	document.getElementById('initWin'+num).style.display="";
}

function mouseoverMac(j)
{
	for(var i=0;i<2;i++){
		document.getElementById('initMac'+i).style.display="none";
	}
	document.getElementById('initMac'+j).style.display="";
}

function showMenu(obj){
	obj.style.background='url(../images/nav-on.jpg) no-repeat scroll 0';
	var mobj = document.getElementById('down');
	mobj.style.left=getAbsLeft(obj)+'px';
	mobj.style.top=(getAbsTop(obj)+20)+'px';
	mobj.style.display='';
}
function hideMenu(obj){
	obj.style.background='none';
	document.getElementById('down').style.display='none';
}
function showMenuTwo(obj){
	obj.style.background='url(../images/nav-pur.jpg) no-repeat scroll 0';
}
function hideMenuTwo(obj){
	obj.style.background='none';
}
function showMenuThree(obj){
	obj.style.background='url(../images/nav-pur.jpg) no-repeat right';
}
function hideMenuThree(obj){
	obj.style.background='none';
}
function getAbsLeft( ob ){
	if(!ob){return null;}
		var mendingOb = ob;
		var mendingLeft = mendingOb .offsetLeft;
		while( mendingOb != null && mendingOb .offsetParent != null && mendingOb .offsetParent.tagName != "BODY" ){
		  mendingLeft += mendingOb .offsetParent.offsetLeft;
		  mendingOb = mendingOb .offsetParent;
		}
	return mendingLeft ;
}


function getAbsTop( ob ){
	if(!ob){return null;}
	var mendingOb = ob;
	var mendingTop = mendingOb .offsetTop;
	while( mendingOb != null && mendingOb .offsetParent != null && mendingOb .offsetParent.tagName != "BODY" ){
		mendingTop += mendingOb .offsetParent.offsetTop;
		mendingOb = mendingOb .offsetParent;
	}
	return mendingTop ;
}
