
function setup()
{
	var l = window.location.href;
	if (l.indexOf('/order_details.aspx') == -1 && l.indexOf('/order_complete.aspx') == -1) {
		if (window.location != top.location)
		{
			window.open(window.location,"ReebokStore","menubar=yes,toolbar=yes,location=no,resizable=yes,status=no");
			window.location = '/redir/reebokframe.htm';
		}
	}		
}

function showmenudrop(menu)
{
	b = 'boundary';
		
	eval('basket').style.visibility = "hidden";
	eval('profile').style.visibility = "hidden";
	eval('currency').style.visibility = "hidden";
	eval('hbasket').className  = "navTopMenuOff";
	eval('hprofile').className  = "navTopMenuOff";
	eval('hcurrency').className  = "navTopMenuOff";
	
	eval(menu).style.visibility = "visible";
	eval('h' + menu).className  = "navTopMenuOn";
	w = eval(menu).style.width;
	w = Number(w.substring(0,w.length-2));
	y = eval(menu).style.top;
	y = Number(y.substring(0,y.length-2));
	x = eval(menu).style.left;
	x = Number(x.substring(0,x.length-2));
	eval(b).style.left = x - 20;
	eval(b).style.top = y - 40;
	eval(b).style.width = w + 40;
	eval(b).style.visibility = "visible";
}

function hidemenudrop(menu)
{
	hbasket.className  = "navTopMenuOff";
	hprofile.className  = "navTopMenuOff";
	hcurrency.className  = "navTopMenuOff";
	basket.style.visibility = "hidden";
	currency.style.visibility = "hidden";
	profile.style.visibility = "hidden";
	boundary.style.visibility = "hidden"
}	

function showInstPanel(menu){	
	var tempX = 0;
	var tempY = 0;
	tempX = event.clientX + document.body.scrollLeft;
	tempX= tempX + 80;
    tempY = event.clientY + document.body.scrollTop;
    document.getElementById(menu).style.top = tempY;
    document.getElementById(menu).style.left = tempX;
	document.getElementById(menu).style.visibility = "visible";
}
function hideInstPanel(menu)
{
	document.getElementById(menu).style.visibility = "hidden"
}
