var x;
function showmenu(myid,curleft)
{ x=0;
if (myid=="profile")
{	
	document.getElementById('productmenu1').style.visibility="hidden";
	document.getElementById('productmenu2').style.visibility="hidden";
	document.getElementById('productmenu').style.visibility="visible";
	document.getElementById('productmenu').style.top='105px';
	x=curleft+137;
	document.getElementById('productmenu').style.left=x+'px';
}
if (myid=="testimonials")
{	
	document.getElementById('productmenu1').style.visibility="visible";
	document.getElementById('productmenu').style.visibility="hidden";
	document.getElementById('productmenu2').style.visibility="hidden";
	document.getElementById('productmenu1').style.top='240px';
	x=curleft+137;
	document.getElementById('productmenu1').style.left=x+'px';
}
if (myid=="organizer")
{	
	document.getElementById('productmenu2').style.visibility="visible";
	document.getElementById('productmenu').style.visibility="hidden";
	document.getElementById('productmenu1').style.visibility="hidden";
	document.getElementById('productmenu2').style.top='271px';
	x=curleft+137;
	document.getElementById('productmenu2').style.left=x+'px';
}
}
function remmenu(msg)
{

/*if (msg=="imgclinic"){}
else
{*/
	if (msg=="profile")
	{
		document.getElementById('productmenu').style.visibility="hidden";	
	}
	if (msg=="testimonials")
	{
		document.getElementById('productmenu1').style.visibility="hidden";	
	}
	if (msg=="organizer")
	{
		document.getElementById('productmenu2').style.visibility="hidden";	
	}
/*}*/
}

function findPosX(obj)
{
	var curleft = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
	}
	else if (obj.x)
		curleft += obj.x;
	return curleft;
}


function showerSubMenu(menuid) {
	document.getElementById(menuid).style.visibility="visible";
}

function hiddenSubMenu(menuid) {
	document.getElementById(menuid).style.visibility="hidden";
}