var n;
var NS6;
	
n = (document.layers) ? 1:0;
NS6 = (!document.all && document.getElementById) ? true : false;

var sliding = setTimeout('null',1);
var ns6 = document.getElementById && !document.all;

function initIt()
{
	if (n==1)
	{
	    for (i=firstInd+1; i<document.layers.length; i++)
	    {
	        whichEl = document.layers[i];
	        if (whichEl.id.indexOf("Child") != -1) whichEl.visibility = "hide";
	    }
	    arrange();
	}
}

function setup()
{
	var width = window.innerWidth;
	
	// Check we've not been opened in a frame but if so, open a new window
	if (window.location != top.location)
	{
			//window.open(window.location,"Superstore","menubar=yes,toolbar=yes,location=no,resizable=yes,status=no");
			top.location = window.location;
	}	
	
}
function showmenudrop(menu)
{
	b = 'boundary';
	document.getElementById(menu).style.visibility = "visible";
	w = document.getElementById(menu).style.width;
	w = Number(w.substring(0,w.length-2));
	y = document.getElementById(menu).style.top;
	y = Number(y.substring(0,y.length-2));
	x = document.getElementById(menu).style.left;
	x = Number(x.substring(0,x.length-2));
	document.getElementById(b).style.visibility = "visible";
}
function hidemenudrop(menu)
{
	document.getElementById("profile").style.visibility = "hidden";
	document.getElementById("boundary").style.visibility = "hidden";
}

function show_Menu(item,e)
{
	hideall_sub_b();
	document.getElementById(item).style.left = e.pageX + 40;
	document.getElementById(item).style.top = e.pageY;
	document.getElementById(item).style.visibility = "visible";
	
}
