
x = (screen.width / 2);
y = (screen.height / 2) - 300;

// width - 50
// y - 600

function setVisible(obj) {
         var obj=document.getElementById(obj);
         if (obj.style.display == "block") obj.style.display = "none";
         else obj.style.display = "block";
}

function setMenu(obj) {
		//alert("ac-menu");
		tempobj="submenu_"+obj;
         var obj1=document.getElementById(tempobj);
         if (obj1.style.display == "block") {
			 obj1.style.display = "none";
		 } else {
			 obj1.style.display = "block";
		 }
		 
		 for (var i=1; i<=8; i++) {
			
			if (i!=obj) {
				//alert(i + " " + obj);
				var thisOBJ = document.getElementById('submenu_'+i); 
				thisOBJ.style.display = "none";
			}
		 }
		 
		 
}


function setVisibleOLD(obj)
{
	obj = document.getElementById(obj);
	obj.style.visibility = (obj.style.visibility == 'visible') ? 'hidden' : 'visible';
}

function placeIt(obj)
{
	obj = document.getElementById(obj);
	if (document.documentElement)
	{
		theLeft = document.documentElement.scrollLeft;
		theTop = document.documentElement.scrollTop;
	}
	else if (document.body)
	{
		theLeft = document.body.scrollLeft;
		theTop = document.body.scrollTop;
	}
	theLeft += x;
	theTop += y;
	//obj.style.left = theLeft + 'px' ;
	//obj.style.top = theTop + 'px' ;
	setTimeout("placeIt('popuplayer')",500);
}


//window.onscroll = setTimeout("placeIt('popuplayer')",500);

