﻿function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function MM_openMenu(targ,selObj,restore){ //v3.0
	if (selObj.options[selObj.selectedIndex].value.indexOf('-1') != 0){
		eval(window.open(selObj.options[selObj.selectedIndex].value));
		}
  if (restore) selObj.selectedIndex=0;
}



function DoSearchKeyPress(key)
{
	if (!key)
    {
        key = event.keyCode;
    }
    if(key == 13)
    {
		DoSearch();
    }
}



try{
var RollIt = 
{
    timeout : null,
    showPopup : function(e)
    {
        clearTimeout(this.timeout);
        if($(e).style.height == '0px')
        {
			if(e=='productsList')
			{
				this.timeout = setTimeout(function(){shelffx.toggle();return false;},0);	
			}
            else if(e=='brandsList')
            {
				this.timeout = setTimeout(function(){shelffx2.toggle();return false;},0);					
            }
            else if(e=='promotionsList')
            {
				this.timeout = setTimeout(function(){shelffx3.toggle();return false;},0);						
            }
            else if(e=='supportList')
            {
				this.timeout = setTimeout(function(){shelffx4.toggle();return false;},0);						
            }
            else if(e=='quicklinksList')
            {
				this.timeout = setTimeout(function(){shelffx5.toggle();return false;},0);						
            }
            
            
            if(document.getElementById('productsList').style.height > '0px' && e!='productsList')		
			{
				shelffx.toggle();
			}	
			if(document.getElementById('brandsList').style.height > '0px' && e!='brandsList')		
			{
				shelffx2.toggle();
			}	
			if(document.getElementById('promotionsList').style.height > '0px' && e!='promotionsList')		
			{
				shelffx3.toggle();
			}	
			if(document.getElementById('supportList').style.height > '0px' && e!='supportList')		
			{
				shelffx4.toggle();
			}
			if(document.getElementById('quicklinksList').style.height > '0px' && e!='quicklinksList')		
			{
				shelffx5.toggle();
			}	
        }
    },
    hidePopup : function(e)
    {
        if($(e).style.height == '0px')
        {
            clearTimeout(this.timeout);
        }
        else
        {
			if(e=='productsList')
			{
				this.timeout = setTimeout(function(){shelffx.toggle();return false;},0);
            }
            else if(e=='brandsList')
            {
				this.timeout = setTimeout(function(){shelffx2.toggle();return false;},0);
            }
            else if(e=='promotionsList')
            {
				this.timeout = setTimeout(function(){shelffx3.toggle();return false;},0);
            }
            else if(e=='supportList')
            {
				this.timeout = setTimeout(function(){shelffx4.toggle();return false;},0);
            }
            else if(e=='quicklinksList')
            {
				this.timeout = setTimeout(function(){shelffx5.toggle();return false;},0);
            }
        }
        
    }    
}
}catch (e){
window.status=e;
}
