

 
if(initialheader=="thomsonheader"){
	
	try{
	
		if(vThomsonHeader!=null){
			document.getElementById("div_header").innerHTML = vThomsonHeader;
			document.getElementById("div_header").style.height="75px";
			document.getElementById("breadcrumb").style.marginLeft="15px";
			vThomsonHeader = null;
		}else{
			vThomsonHeaderTimer = setTimeout("RemoteCodeLoader('vThomsonHeaderTimer','div_header','vThomsonHeader','vThomsonHeaderCounter');", 100);
		}
	}catch(e){}
	
	
	try{
		if(vFooter!=null){
			document.getElementById("footer").innerHTML = vFooter;
			vFooter = null;
		}else{
			vFooterTimer = setTimeout("RemoteCodeLoader('vFooterTimer','footer','vFooter','vFooterCounter');", 100);
		}
		
	}catch(e){}
	
	

}

function  RemoteCodeLoader(theTimer, theDiv, varObject, maxCount){

	pTimer = eval(theTimer);
	pVarObj = eval(varObject);
	pMaxCount = eval(maxCount);
	
	if(pMaxCount < 5){
			//alert(varObject + "," +  maxCount + "," + pMaxCount);
		switch(maxCount){
		
			case "vThomsonHeaderCounter":
					vThomsonHeaderCounter++;
				break;
			case "vHeaderRedersignCounter":
					vHeaderRedersignCounter++;
				break;
			case "vSeeAllBrandsCounter":
					vSeeAllBrandsCounter++;
				break;
			case "vBrandsMenuCounter":
					vBrandsMenuCounter++;
				break;
			case "vFooterCounter":
					vFooterCounter++;
				break;
			case "vHeaderMenuInvestCounter":
					vHeaderMenuInvestCounter++;
				break;
			case "vHeaderMenuMediaCounter":
					vHeaderMenuMediaCounter++;
				break;
			case "vHeaderMenuSiteWideCounter":
					vHeaderMenuSiteWideCounter++;
				break;
			case "vSideNavMenuSiteWideCounter":
					vSideNavMenuSiteWideCounter++;
			break;
				case "vBreadCrumbSiteWideCounter":
					vBreadCrumbSiteWideCounter++;
			break;
		
		
		}
		
				
		
		try{
		
			if(pVarObj!=null){
				document.getElementById("\"" + theDiv + "\"").innerHTML = pVarObj;
				if(vHeaderRedersign != null){
					window.onload = brandRotator_doTimer; 
				}
				pVarObj = null;
				clearTimeout(pTimer);
			}else{
				pTimer = setTimeout("RemoteCodeLoader('" + theTimer + "','" + theDiv + "','" + varObject + "','" + maxCount + "');", 100);
			}
		}catch(e){
			
			clearTimeout(pTimer);
		
		}
	}else{
		clearTimeout(pTimer);
	
	}
	

}
if(initialheader=="headerredesign"){
	
	try{
	
		if(vHeaderRedersign!=null){
			document.getElementById("div_header").innerHTML = vHeaderRedersign;
			window.onload = brandRotator_doTimer; 
			vHeaderRedersign = null;
		}else{
			vHeaderRedersignTimer = setTimeout("RemoteCodeLoader('vHeaderRedersignTimer','div_header','vHeaderRedersign','vHeaderRedersignCounter');", 100);
		}
	}catch(e){}
	
	try{
		document.getElementById("div_header").style.height="103px";
		document.getElementById("breadcrumb").style.marginLeft="225px";
	}catch(e){}	
	
	try{		
		if(vSeeAllBrands!=null){
			document.getElementById("nonShadowLayer").innerHTML = vSeeAllBrands;
			vSeeAllBrands = null;
		}else{
			vSeeAllBrandsTimer = setTimeout("RemoteCodeLoader('vSeeAllBrandsTimer','nonShadowLayer','vSeeAllBrands','vSeeAllBrandsCounter');", 100);
		}
		
	}catch(e){}	
	
	try{
		if(vBrandsMenu!=null){
			document.getElementById("brandsData").innerHTML = vBrandsMenu;
			vBrandsMenu = null;
		}else{
			vBrandsMenuTimer = setTimeout("RemoteCodeLoader('vBrandsMenuTimer','brandsData','vBrandsMenu','vBrandsMenuCounter');", 100);
		}
		
	}catch(e){}	
	
	
	try{
		if(vFooter!=null){
			document.getElementById("footer").innerHTML = vFooter;
			vFooter =null;
		}else{
			vFooterTimer = setTimeout("RemoteCodeLoader('vFooterTimer','footer','vFooter','vFooterCounter');", 100);
		}
		
	}catch(e){}
	
	
	
	try{

		if(vHeaderMenuInvest!=null){
			document.getElementById("div_header_menu_invest").innerHTML = vHeaderMenuInvest;
			vHeaderMenuInvest = null;
		}else{
			vHeaderMenuInvestTimer = setTimeout("RemoteCodeLoader('vHeaderMenuInvestTimer','div_header_menu_invest','vHeaderMenuInvest','vHeaderMenuInvestCounter');", 100);
		}
		
	}catch(e){}
	
	try{
		
		if(vHeaderMenuMedia!=null){
			document.getElementById("div_header_menu_media").innerHTML = vHeaderMenuMedia;
			vHeaderMenuMedia =null;
		}else{
			vHeaderMenuMediaTimer = setTimeout("RemoteCodeLoader('vHeaderMenuMediaTimer','div_header_menu_media','vHeaderMenuMedia','vHeaderMenuMediaCounter');", 100);
		}
				
	}catch(e){}
	
	try{
		
		if(vHeaderMenuSiteWide!=null){
			document.getElementById("div_header_menu_sitewide").innerHTML = vHeaderMenuSiteWide;
			vHeaderMenuSiteWide = null;
		}else{
			vHeaderMenuSiteWideTimer = setTimeout("RemoteCodeLoader('vHeaderMenuSiteWideTimer','div_header_menu_sitewide','vHeaderMenuSiteWide','vHeaderMenuSiteWideCounter');", 100);
		}
				
	}catch(e){}

	try{
		
		if(vSideNavMenuSiteWide!=null){
			document.getElementById("div_navigation_menu").innerHTML = vSideNavMenuSiteWide;
			vSideNavMenuSiteWide = null;
		}else{
			vSideNavMenuSiteWideTimer = setTimeout("RemoteCodeLoader('vSideNavMenuSiteWideTimer','div_navigation_menu','vSideNavMenuSiteWide','vSideNavMenuSiteWideCounter');", 100);
		}
				
	}catch(e){}
	
	try{
		
		if(vBreadCrumbSiteWide!=null){
			document.getElementById("div_bread_crumb_sitewide").innerHTML = vBreadCrumbSiteWide;
			vBreadCrumbSiteWide=null;
		}else{
			vBreadCrumbSiteWideTimer = setTimeout("RemoteCodeLoader('vBreadCrumbSiteWideTimer','div_bread_crumb_sitewide','vBreadCrumbSiteWide','vBreadCrumbSiteWideCounter');", 100);
		}
		
		
	}catch(e){}
	
}
  


 

var brandRotator_MainLogoLocationIndex = 2;
var brandRotator_VisibleLayer = 'a';
var brandRotator_Logo1CurrentIndex = 0;
var brandRotator_Logo2CurrentIndex = 0;
var brandRotator_Logo3CurrentIndex = 0;
var brandRotator_Logo4CurrentIndex = 0;


function PrepareURL(theObject,theVar, theURL){

var theArr = theVar.split("_");
theArr = theArr[1].replace(".gif","");
if (theArr == 'canine' || theArr == 'wagwells') {
	theArr = RemoteServer + "/brands/default.aspx?page=brands&content=" + theArr;
} else {
	theArr = "http://www." + theURL;
	theObject.target = "_blank";
}

theObject.href = theArr;


}

function brandRotator_swapImage(){

	//alert(brandRotator_VisibleLayer);
	if(brandRotator_VisibleLayer=='a'){
		
		brandRotator_VisibleLayer = 'b';
		
		}
	else{
		
		brandRotator_VisibleLayer = 'a';	
		
		}


	
	
	var logoItem = null;
	var anchorItem = null;
	var theImgStaticLogo = null;
	var theImgDynamicLogo = null;
	
	
	
//alert(logoItem);

if(brandRotator_MainLogoLocationIndex == 1){
	
	logoItem = (brandRotator_logoArray1[brandRotator_Logo1CurrentIndex]);
	urlItem = (brandRotator_URLArray1[brandRotator_Logo1CurrentIndex]);
	theElementId = 'logo_' + brandRotator_MainLogoLocationIndex + '_' + brandRotator_VisibleLayer;
	theImgDynamicLogo = document.getElementById(theElementId);
	theImgDynamicLogo.setAttribute("src", logoItem);
	theImgDynamicLogo.setAttribute("alt", logoItem);
	
	
	theElementId = 'anchor_' + brandRotator_MainLogoLocationIndex + '_' + brandRotator_VisibleLayer;
	anchorItem = document.getElementById(theElementId);
	PrepareURL(anchorItem,logoItem,urlItem);
	
	
	logoItem = (brandRotator_logoArray2[brandRotator_Logo2CurrentIndex]);
	urlItem = (brandRotator_URLArray2[brandRotator_Logo2CurrentIndex]);
	if(logoItem == null){
		logoItem = (brandRotator_logoArray2[0]);
		urlItem = (brandRotator_URLArray2[0]);
		brandRotator_Logo2CurrentIndex = 0;
	}
	theElementId = 'logo_2_' + brandRotator_VisibleLayer;
	theImgDynamicLogo = document.getElementById(theElementId);
	theImgDynamicLogo.setAttribute("src", logoItem);
	theImgDynamicLogo.setAttribute("alt", logoItem);

	theElementId = 'anchor_2_' + brandRotator_VisibleLayer;
	anchorItem = document.getElementById(theElementId);
	PrepareURL(anchorItem,logoItem,urlItem);
	
	brandRotator_Logo2CurrentIndex++;
	
	
		
	logoItem = (brandRotator_logoArray3[brandRotator_Logo3CurrentIndex]);
	urlItem = (brandRotator_URLArray3[brandRotator_Logo3CurrentIndex]);
	if(logoItem == null){
		logoItem = (brandRotator_logoArray3[0]);
		urlItem = (brandRotator_URLArray3[0]);
		brandRotator_Logo3CurrentIndex = 0;
	}
	theElementId = 'logo_3_' + brandRotator_VisibleLayer;
	theImgDynamicLogo = document.getElementById(theElementId);
	theImgDynamicLogo.setAttribute("src", logoItem);
	theImgDynamicLogo.setAttribute("alt", logoItem);
	
	theElementId = 'anchor_3_' + brandRotator_VisibleLayer;
	anchorItem = document.getElementById(theElementId);
	PrepareURL(anchorItem,logoItem,urlItem);
		
	brandRotator_Logo3CurrentIndex++;
	
	
	logoItem = (brandRotator_logoArray4[brandRotator_Logo4CurrentIndex]);
	urlItem = (brandRotator_URLArray4[brandRotator_Logo4CurrentIndex]);
	if(logoItem == null){
		logoItem = (brandRotator_logoArray4[0]);
		urlItem = (brandRotator_URLArray4[0]);
		brandRotator_Logo4CurrentIndex = 0;
	}
	theElementId = 'logo_4_' + brandRotator_VisibleLayer;
	theImgDynamicLogo = document.getElementById(theElementId);
	theImgDynamicLogo.setAttribute("src", logoItem);
	theImgDynamicLogo.setAttribute("alt", logoItem);
	
	theElementId = 'anchor_4_' + brandRotator_VisibleLayer;
	anchorItem = document.getElementById(theElementId);
	PrepareURL(anchorItem,logoItem,urlItem);
	
	brandRotator_Logo4CurrentIndex++;
}

if(brandRotator_MainLogoLocationIndex == 2){
	
	logoItem = (brandRotator_logoArray1[brandRotator_Logo1CurrentIndex]);
	urlItem = (brandRotator_URLArray1[brandRotator_Logo1CurrentIndex]);
	theElementId = 'logo_' + brandRotator_MainLogoLocationIndex + '_' + brandRotator_VisibleLayer;
	theImgDynamicLogo = document.getElementById(theElementId);
	theImgDynamicLogo.setAttribute("src", logoItem);
	theImgDynamicLogo.setAttribute("alt", logoItem);
	
	theElementId = 'anchor_' + brandRotator_MainLogoLocationIndex + '_' + brandRotator_VisibleLayer;
	anchorItem = document.getElementById(theElementId);
	PrepareURL(anchorItem,logoItem,urlItem);
	
	//alert(logoItem);

	logoItem = (brandRotator_logoArray2[brandRotator_Logo2CurrentIndex]);
	urlItem = (brandRotator_URLArray2[brandRotator_Logo2CurrentIndex]);
	if(logoItem == null){
		logoItem = (brandRotator_logoArray2[0]);
		urlItem = (brandRotator_URLArray2[0]);
		brandRotator_Logo2CurrentIndex = 0;
	}
	theElementId = 'logo_1_' + brandRotator_VisibleLayer;
	theImgDynamicLogo = document.getElementById(theElementId);
	theImgDynamicLogo.setAttribute("src", logoItem);
	theImgDynamicLogo.setAttribute("alt", logoItem);
	
	theElementId = 'anchor_1_' + brandRotator_VisibleLayer;
	anchorItem = document.getElementById(theElementId);
	PrepareURL(anchorItem,logoItem,urlItem);
	
	brandRotator_Logo2CurrentIndex++;
		
	logoItem = (brandRotator_logoArray3[brandRotator_Logo3CurrentIndex]);
	urlItem = (brandRotator_URLArray3[brandRotator_Logo3CurrentIndex]);
	if(logoItem == null){
		logoItem = (brandRotator_logoArray3[0]);
		urlItem = (brandRotator_URLArray3[0]);
		brandRotator_Logo3CurrentIndex = 0;
	}
	theElementId = 'logo_3_' + brandRotator_VisibleLayer;
	theImgDynamicLogo = document.getElementById(theElementId);
	theImgDynamicLogo.setAttribute("src", logoItem);
	theImgDynamicLogo.setAttribute("alt", logoItem);
	
	theElementId = 'anchor_3_' + brandRotator_VisibleLayer;
	anchorItem = document.getElementById(theElementId);
	PrepareURL(anchorItem,logoItem,urlItem);
	
	brandRotator_Logo3CurrentIndex++;
	
	logoItem = (brandRotator_logoArray4[brandRotator_Logo4CurrentIndex]);
	urlItem = (brandRotator_URLArray4[brandRotator_Logo4CurrentIndex]);
	if(logoItem == null){
		logoItem = (brandRotator_logoArray4[0]);
		urlItem = (brandRotator_URLArray4[0]);
		brandRotator_Logo4CurrentIndex = 0;
	}
	theElementId = 'logo_4_' + brandRotator_VisibleLayer;
	theImgDynamicLogo = document.getElementById(theElementId);
	theImgDynamicLogo.setAttribute("src", logoItem);
	theImgDynamicLogo.setAttribute("alt", logoItem);
	
	theElementId = 'anchor_4_' + brandRotator_VisibleLayer;
	anchorItem = document.getElementById(theElementId);
	PrepareURL(anchorItem,logoItem,urlItem);
	
	brandRotator_Logo4CurrentIndex++;
	
	
}

if(brandRotator_MainLogoLocationIndex == 3){
		
	logoItem = (brandRotator_logoArray1[brandRotator_Logo1CurrentIndex]);
	urlItem = (brandRotator_URLArray1[brandRotator_Logo1CurrentIndex]);
	theElementId = 'logo_' + brandRotator_MainLogoLocationIndex + '_' + brandRotator_VisibleLayer;
	theImgDynamicLogo = document.getElementById(theElementId);
	theImgDynamicLogo.setAttribute("src", logoItem);
	theImgDynamicLogo.setAttribute("alt", logoItem);
	
	theElementId = 'anchor_' + brandRotator_MainLogoLocationIndex + '_' + brandRotator_VisibleLayer;
	anchorItem = document.getElementById(theElementId);
	PrepareURL(anchorItem,logoItem,urlItem);
	
	
	logoItem = (brandRotator_logoArray2[brandRotator_Logo2CurrentIndex]);
	urlItem = (brandRotator_URLArray2[brandRotator_Logo2CurrentIndex]);
	if(logoItem == null){
		logoItem = (brandRotator_logoArray2[0]);
		urlItem = (brandRotator_URLArray2[0]);
		brandRotator_Logo2CurrentIndex = 0;
	}
	theElementId = 'logo_1_' + brandRotator_VisibleLayer;
	theImgDynamicLogo = document.getElementById(theElementId);
	theImgDynamicLogo.setAttribute("src", logoItem);
	theImgDynamicLogo.setAttribute("alt", logoItem);
	
	theElementId = 'anchor_1_' + brandRotator_VisibleLayer;
	anchorItem = document.getElementById(theElementId);
	PrepareURL(anchorItem,logoItem,urlItem);
	
	brandRotator_Logo2CurrentIndex++;
		
	logoItem = (brandRotator_logoArray3[brandRotator_Logo3CurrentIndex]);
	urlItem = (brandRotator_URLArray3[brandRotator_Logo3CurrentIndex]);
	if(logoItem == null){
		logoItem = (brandRotator_logoArray3[0]);
		urlItem = (brandRotator_URLArray3[0]);
		brandRotator_Logo3CurrentIndex = 0;
	}
	theElementId = 'logo_2_' + brandRotator_VisibleLayer;
	theImgDynamicLogo = document.getElementById(theElementId);
	theImgDynamicLogo.setAttribute("src", logoItem);
	theImgDynamicLogo.setAttribute("alt", logoItem);
	
	theElementId = 'anchor_2_' + brandRotator_VisibleLayer;
	anchorItem = document.getElementById(theElementId);
	PrepareURL(anchorItem,logoItem,urlItem);
	
	
	brandRotator_Logo3CurrentIndex++;
	
	logoItem = (brandRotator_logoArray4[brandRotator_Logo4CurrentIndex]);
	urlItem = (brandRotator_URLArray4[brandRotator_Logo4CurrentIndex]);
	if(logoItem == null){
		logoItem = (brandRotator_logoArray4[0]);
		urlItem = (brandRotator_URLArray4[0]);
		brandRotator_Logo4CurrentIndex = 0;
	}
	theElementId = 'logo_4_' + brandRotator_VisibleLayer;
	theImgDynamicLogo = document.getElementById(theElementId);
	theImgDynamicLogo.setAttribute("src", logoItem);
	theImgDynamicLogo.setAttribute("alt", logoItem);
	
	theElementId = 'anchor_4_' + brandRotator_VisibleLayer;
	anchorItem = document.getElementById(theElementId);
	PrepareURL(anchorItem,logoItem,urlItem);
	
	brandRotator_Logo4CurrentIndex++;
}

if(brandRotator_MainLogoLocationIndex == 4){
		
	logoItem = (brandRotator_logoArray1[brandRotator_Logo1CurrentIndex]);
	urlItem = (brandRotator_URLArray1[brandRotator_Logo1CurrentIndex]);
	theElementId = 'logo_' + brandRotator_MainLogoLocationIndex + '_' + brandRotator_VisibleLayer;
	theImgDynamicLogo = document.getElementById(theElementId);
	theImgDynamicLogo.setAttribute("src", logoItem);
	theImgDynamicLogo.setAttribute("alt", logoItem);
	
	theElementId = 'anchor_' + brandRotator_MainLogoLocationIndex + '_' + brandRotator_VisibleLayer;
	anchorItem = document.getElementById(theElementId);
	PrepareURL(anchorItem,logoItem,urlItem);
	
	logoItem = (brandRotator_logoArray2[brandRotator_Logo2CurrentIndex]);
	urlItem = (brandRotator_URLArray2[brandRotator_Logo2CurrentIndex]);
	if(logoItem == null){
		logoItem = (brandRotator_logoArray2[0]);
		urlItem = (brandRotator_URLArray2[0]);
		brandRotator_Logo2CurrentIndex = 0;
	}
	theElementId = 'logo_1_' + brandRotator_VisibleLayer;
	theImgDynamicLogo = document.getElementById(theElementId);
	theImgDynamicLogo.setAttribute("src", logoItem);
	
	theElementId = 'anchor_1_' + brandRotator_VisibleLayer;
	anchorItem = document.getElementById(theElementId);
	PrepareURL(anchorItem,logoItem,urlItem);
	
	brandRotator_Logo2CurrentIndex++;
		
	logoItem = (brandRotator_logoArray3[brandRotator_Logo3CurrentIndex]);
	urlItem = (brandRotator_URLArray3[brandRotator_Logo3CurrentIndex]);
	if(logoItem == null){
		logoItem = (brandRotator_logoArray3[0]);
		urlItem = (brandRotator_URLArray3[0]);
		brandRotator_Logo3CurrentIndex = 0;
	}
	theElementId = 'logo_2_' + brandRotator_VisibleLayer;
	theImgDynamicLogo = document.getElementById(theElementId);
	theImgDynamicLogo.setAttribute("src", logoItem);
	theImgDynamicLogo.setAttribute("alt", logoItem);
	
	theElementId = 'anchor_2_' + brandRotator_VisibleLayer;
	anchorItem = document.getElementById(theElementId);
	PrepareURL(anchorItem,logoItem,urlItem);
	
	brandRotator_Logo3CurrentIndex++;
	
	logoItem = (brandRotator_logoArray4[brandRotator_Logo4CurrentIndex]);
	urlItem = (brandRotator_URLArray4[brandRotator_Logo4CurrentIndex]);
	if(logoItem == null){
		logoItem = (brandRotator_logoArray4[0]);
		urlItem = (brandRotator_URLArray4[0]);
		brandRotator_Logo4CurrentIndex = 0;
	}
	theElementId = 'logo_3_' + brandRotator_VisibleLayer;
	theImgDynamicLogo = document.getElementById(theElementId);
	theImgDynamicLogo.setAttribute("src", logoItem);
	theImgDynamicLogo.setAttribute("alt", logoItem);
	
	theElementId = 'anchor_3_' + brandRotator_VisibleLayer;
	anchorItem = document.getElementById(theElementId);
	PrepareURL(anchorItem,logoItem,urlItem);
	
	brandRotator_Logo4CurrentIndex++;
}

if(brandRotator_MainLogoLocationIndex == 4){

		brandRotator_MainLogoLocationIndex = 1;
	}
	else
	{
		brandRotator_MainLogoLocationIndex++;
		
				
	}
//document.getElementById('temp').innerHTML = brandRotator_div_Index;	
	
//theHref=document.getElementById("new");
//theHref.setAttribute("href","images/logo_meatybone.gif");
}


var brandRotator_timeoutID = -1;
var brandRotator_timeoutID2 = -2;
var brandRotator_theobject = null;
var brandRotator_theobject2 = null;

function brandRotator_high(which2) {
	if(brandRotator_timeoutID != -1)
		clearTimeout(brandRotator_timeoutID);
	 
	brandRotator_theobject=which2;
	brandRotator_brandRotator_highlightit(brandRotator_theobject);
	
}

function brandRotator_low(which2) {
	if(brandRotator_timeoutID2 != -1)
		clearTimeout(brandRotator_timeoutID2);

	brandRotator_theobject2=which2;
	brandRotator_brandRotator_lowlightit(brandRotator_theobject2);
	
}

function brandRotator_brandRotator_lowlightit(cur1){
 
	
	if (cur1.style.MozOpacity>0){
		cur1.style.MozOpacity=parseFloat(cur1.style.MozOpacity)-0.05;
		brandRotator_timeoutID2=setTimeout("brandRotator_brandRotator_lowlightit(brandRotator_theobject2)",50);
	
		}
	else if (cur1.style.opacity>0){
		cur1.style.opacity=parseFloat(cur1.style.opacity)-0.05;
		brandRotator_timeoutID2=setTimeout("brandRotator_brandRotator_lowlightit(brandRotator_theobject2)",50);
	
		}
	else if (cur1.filters&&cur1.filters.alpha.opacity>0){
		cur1.filters.alpha.opacity-=5;
		brandRotator_timeoutID2=setTimeout("brandRotator_brandRotator_lowlightit(brandRotator_theobject2)",50);
			
		}
		
	
	
	
		  
	
}

function brandRotator_brandRotator_highlightit(cur2){

 
 
 if (cur2.style.MozOpacity<=1){
	
	
	cur2.style.MozOpacity=parseFloat(cur2.style.MozOpacity)+0.05;
	brandRotator_timeoutID=setTimeout("brandRotator_brandRotator_highlightit(brandRotator_theobject)",100);
	if(cur2.style.MozOpacity>=1){
			
			if(brandRotator_VisibleLayer=='a'){
				document.getElementById("2").style.MozOpacity = 0;
				document.getElementById("2").style.zIndex=0;
				document.getElementById("1").style.zIndex=1;
			}else{
				document.getElementById("1").style.MozOpacity = 0;
				document.getElementById("1").style.zIndex=0;
				document.getElementById("2").style.zIndex=1;
				
				}
		}
  }
 else if (cur2.style.opacity<=1){
	cur2.style.opacity=parseFloat(cur2.style.opacity)+0.05;
	brandRotator_timeoutID=setTimeout("brandRotator_brandRotator_highlightit(brandRotator_theobject)",100);
	
	if(cur2.style.opacity>=1){
			
			if(brandRotator_VisibleLayer=='a'){
				document.getElementById("2").style.opacity = 0;
				document.getElementById("2").style.zIndex=0;
				document.getElementById("1").style.zIndex=1;
			}else{
				document.getElementById("1").style.opacity = 0;
				document.getElementById("1").style.zIndex=0;
				document.getElementById("2").style.zIndex=1;
				
				}
		}
  }
 else if (cur2.filters&&cur2.filters.alpha.opacity<=100){
  
		cur2.filters.alpha.opacity+=5;
		brandRotator_timeoutID=setTimeout("brandRotator_brandRotator_highlightit(brandRotator_theobject)",80);
		
		if(cur2.filters&&cur2.filters.alpha.opacity>=95){
			
			if(brandRotator_VisibleLayer=='a'){
				document.getElementById("2").filters.alpha.opacity = 0;
				document.getElementById("2").style.zIndex=0;
				document.getElementById("1").style.zIndex=1;
			}else{
				document.getElementById("1").filters.alpha.opacity = 0;
				document.getElementById("1").style.zIndex=0;
				document.getElementById("2").style.zIndex=1;
				
				}
		}
 }
  
 
     
}




var brandRotator_the_timeout;
var brandRotator_div_Index = 1;



var brandRotator_rotation_timeout=6000;
var brandRotator_rotation_speed = 1000

function brandRotator_doTimer()
{

	brandRotator_rotation_timeout=6000;
	
	var t1= setTimeout("brandRotator_swapImage();document.getElementById(brandRotator_div_Index).style.visibility='visible';brandRotator_high(document.getElementById(brandRotator_div_Index));",brandRotator_rotation_timeout);
	var t2 = setTimeout("brandRotator_low(document.getElementById(brandRotator_div_Index));",(brandRotator_rotation_timeout + brandRotator_rotation_speed));
		
	
	brandRotator_the_timeout = setTimeout("brandRotator_doTimer();", (brandRotator_rotation_timeout + 100));
	if(brandRotator_div_Index == 1){
		brandRotator_div_Index = 2;
	}else{
		brandRotator_div_Index = 1;
	}
}

if(initialheader=="headerredesign"){
	if(vHeaderRedersign != null){
		window.onload = brandRotator_doTimer; 
	}
}
