
//*************************************************************************************************
//See All brands animation script BEGINS
//
//This .js file DEPENDS on the brandsrotator.js. We clear and reset a timer object located in the 
//	brandsrotator object. Dependent variable names are : brandRotator_the_timeout. Functions using
//	variables that are dependent are as follows:
//	-Header1_Brandrotator1_Seeallbrandsmenu1_showLayers()
//	-CloseShadow()
//
//*************************************************************************************************

var Header1_Brandrotator1_Seeallbrandsmenu1_MenuData = "";
var Header1_Brandrotator1_Seeallbrandsmenu1_timeoutID = -1;
var Header1_Brandrotator1_Seeallbrandsmenu1_timeoutID2 = -2;
var Header1_Brandrotator1_Seeallbrandsmenu1_theobject = null;
var Header1_Brandrotator1_Seeallbrandsmenu1_theobject2 = null;
var Header1_Brandrotator1_Seeallbrandsmenu1_theobject3 = null;

//Function [Header1_Brandrotator1_Seeallbrandsmenu1_hideLayers]



function Header1_Brandrotator1_Seeallbrandsmenu1_resetLayers(){
	var shadow = document.getElementById("shadow");
	var brands = document.getElementById("showallbrands");
	var ask = document.getElementById("ask");
	try{
		shadow.style.MozOpacity = 0.0;
		brands.style.MozOpacity = 0.0;
		ask.style.MozOpacity = 0.0;
	}catch(e){}
	
	try{
		shadow.filters.alpha.opacity = 0;
		brands.filters.alpha.opacity = 0;
		ask.filters.alpha.opacity = 0;
	}catch(e){}
	
	try{
		shadow.style.opacity = 0;
		brands.style.opacity = 0;
		ask.style.opacity = 0;
	}catch(e){}
	
	shadow.style.visibility='visible';
	brands.style.visibility='visible';

	
	//Clearing DEPENDENT variable located brandsrotator.js 
	try{
	
		clearTimeout(brandRotator_the_timeout);
	
	}catch(e){}
	

}



//Function [Header1_Brandrotator1_Seeallbrandsmenu1_hideLayers]

function  Header1_Brandrotator1_Seeallbrandsmenu1_hideLayers(current_layer){
	document.getElementById('shadow').style.visibility='hidden';
	document.getElementById(current_layer).style.visibility='hidden';
}


//Function [Header1_Brandrotator1_Seeallbrandsmenu1_showLayers_high]

function Header1_Brandrotator1_Seeallbrandsmenu1_showLayers_high(which2,brands1) {

	if(Header1_Brandrotator1_Seeallbrandsmenu1_timeoutID != -1)
		clearTimeout(Header1_Brandrotator1_Seeallbrandsmenu1_timeoutID);

	Header1_Brandrotator1_Seeallbrandsmenu1_theobject = which2;
	Header1_Brandrotator1_Seeallbrandsmenu1_theobject3 = brands1;
	Header1_Brandrotator1_Seeallbrandsmenu1_showLayers_highlightit(Header1_Brandrotator1_Seeallbrandsmenu1_theobject,Header1_Brandrotator1_Seeallbrandsmenu1_theobject3);
}


//Function [Header1_Brandrotator1_Seeallbrandsmenu1_showLayers_low]

function Header1_Brandrotator1_Seeallbrandsmenu1_showLayers_low(which2) {
	if(Header1_Brandrotator1_Seeallbrandsmenu1_timeoutID2 != -2)
		clearTimeout(Header1_Brandrotator1_Seeallbrandsmenu1_timeoutID2);

	Header1_Brandrotator1_Seeallbrandsmenu1_theobject2=which2;
	Header1_Brandrotator1_Seeallbrandsmenu1_showLayers_lowlightit(Header1_Brandrotator1_Seeallbrandsmenu1_theobject2);
}


//Function [Header1_Brandrotator1_Seeallbrandsmenu1_showLayers_lowlightit]

function Header1_Brandrotator1_Seeallbrandsmenu1_showLayers_lowlightit(cur2){
	Header1_Brandrotator1_Seeallbrandsmenu1_timeoutID2=setTimeout("Header1_Brandrotator1_Seeallbrandsmenu1_showLayers_lowlightit(Header1_Brandrotator1_Seeallbrandsmenu1_theobject2)",10);
	if (cur2.style.MozOpacity>0)
		cur2.style.MozOpacity=parseFloat(cur2.style.MozOpacity)-0.1;
	else if (cur2.style.opacity>0)
		cur2.style.opacity=parseFloat(cur2.style.opacity)-0.01;
	else if (cur2.filters&&cur2.filters.alpha.opacity>0)
		cur2.filters.alpha.opacity-=5;
	else if (window.lowlighting)
		clearInterval(lowlighting);
	else
		Header1_Brandrotator1_Seeallbrandsmenu1_timeoutID2 = null;

	if(cur2.filters&&cur2.filters.alpha.opacity <= 0){
		//alert(cur2);
		cur2.style.visibility='hidden';
		cur2.filters.alpha.opacity=0;
	}
	if(cur2.style.MozOpacity <= 0){
		cur2.style.visibility='hidden';
		cur2.style.MozOpacity=parseFloat(0.0);

	}
	if(cur2.style.opacity <= 0){
		cur2.style.visibility='hidden';
		cur2.style.opacity=parseFloat(0.0);

	}
}


//Function [Header1_Brandrotator1_Seeallbrandsmenu1_showLayers_highlightit]

function Header1_Brandrotator1_Seeallbrandsmenu1_showLayers_highlightit(cur2,brands2){
	
	Header1_Brandrotator1_Seeallbrandsmenu1_timeoutID=setTimeout("Header1_Brandrotator1_Seeallbrandsmenu1_showLayers_highlightit(Header1_Brandrotator1_Seeallbrandsmenu1_theobject,Header1_Brandrotator1_Seeallbrandsmenu1_theobject3)",.05);
	//cur2.style.visibility='visible';
	
	if (cur2.style.MozOpacity<.5)
		cur2.style.MozOpacity=parseFloat(cur2.style.MozOpacity)+0.05;
	else if (cur2.style.opacity<.5)
		cur2.style.opacity=parseFloat(cur2.style.opacity)+0.05;
	else if (cur2.filters && cur2.filters.alpha.opacity<50)
		cur2.filters.alpha.opacity+=5;
	else if (window.highlighting)
		clearInterval(highlighting);
			
		
	if (brands2.style.MozOpacity<1)
		brands2.style.MozOpacity=parseFloat(brands2.style.MozOpacity)+0.10;
	else if (brands2.style.opacity<1)
		brands2.style.opacity=parseFloat(brands2.style.opacity)+0.10;
	else if (brands2.filters && brands2.filters.alpha.opacity<100)
		brands2.filters.alpha.opacity+=10;
	else
		Header1_Brandrotator1_Seeallbrandsmenu1_timeoutID = null;
		
	     
}
	
function showLogoXsl(target_layer){
	
	document.getElementById(target_layer).style.visibility='visible';
}
function LoadLogoImg(target_layer, theImgUrl){
	
	document.getElementById(target_layer).src = theImgUrl;
}
function  hideLayersXsl(current_layer){
	document.getElementById(current_layer).style.visibility='hidden';return true;
	
}
function  CloseShadow(current_layer){
	document.getElementById(current_layer).style.visibility='hidden';
	
	//Setting DEPENDENT variable located in brandsrotator.js 
	try{
		
		brandRotator_the_timeout = setTimeout("brandRotator_doTimer();", (brandRotator_rotation_timeout + 100));
	
	}catch(e){}
}

function hideSelects(action) {

if ((navigator.userAgent.indexOf("MSIE 6") && (window.location.pathname!="/")> 0)) {


if (action!='visible'){action='hidden';}
{
for (var S = 0; S < document.forms.length; S++){
for (var R = 0; R < document.forms[S].length; R++) {
if (document.forms[S].elements[R].options) {
document.forms[S].elements[R].style.visibility = action;
	}
	}
	} 
	}
	}
	
 
}



//*************************************************************************************************
//END See All brands animation script 
//
//*************************************************************************************************
