function MM_advOpenBrWindow(theURL,winName,features,orgName) {
  var remote = open(theURL, winName, features);
  if (remote.opener == null) // if something went wrong
    remote.opener = window;
  remote.opener.name = orgName;
  return remote;
}
function MM_findObj(n, d) {
	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	if(!x && d.getElementById) x=d.getElementById(n); return x;
}
//fakeHover start
function setFakeHover(id) {
	document.getElementById(id).style.background="url(images/bg-merch-hover.png) no-repeat 0 -170px";
}
function unSetFakeHover(id) {
	document.getElementById(id).style.background="url(images/bg-merch-hover.png) no-repeat 0 10px";
}
//fakeHover end

//popUp that div start

var amID = "blank";

function showMe(containerId){
	if(amID != "blank" ){
		hideMe(amID);
	}
	if(amID != containerId){
	    amID = containerId;
	    showContainer(containerId);
	}else{
        amID = "blank";
    }
}
function showContainer(containerId){
	obj = MM_findObj(containerId);
	if (!obj) return;
	obj.style.display = 'block';
}
function hideMe(containerId){
	obj2 = MM_findObj(containerId)
	if (!obj2) return;
	obj2.style.display = 'none';
}

//popUp that div end
var isHidden2 = true;
function setHidden2(id){
	isHidden2 = false;
	setTimeout(
		function(){
			if(!isHidden2)
				hideMe('menu2')
		},600);
}

function setVisible2(id){
	isHidden2 = true;
	showContainer('menu2');
}
var isHidden3 = true;
function setHidden3(id){
	isHidden3 = false;
	setTimeout(
		function(){
			if(!isHidden3)
				hideMe('menu3')
		},600);
}

function setVisible3(id){
	isHidden3 = true;
	showContainer('menu3');
}
var isHidden4 = true;
function setHidden4(id){
	isHidden4 = false;
	setTimeout(
		function(){
			if(!isHidden4)
				hideMe('menu4')
		},600);
}

function setVisible4(id){
	isHidden4 = true;
	showContainer('menu4');
}

