 

function homeHeights() {
	
   		 var leftCol = document.getElementById('leftCol');
		 var rightCol = document.getElementById('rightCol');
		 var topBox = document.getElementById('topBox');
		 var bottomBox = document.getElementById('bottomBox');
		 
		 var bottomLeft = document.getElementById('bottomLeft');
		 var bottomRight = document.getElementById('bottomRight');
		 
    	 var h = Math.max(leftCol.offsetHeight, rightCol.offsetHeight);
		 
		 if (leftCol.offsetHeight < h){
			leftCol.style.height = h+'px'; 
		 }
		 if (rightCol.offsetHeight < h){
			var newHeight = ((h-topBox.offsetHeight))-10;
			bottomBox.style.height = newHeight+'px';
		 }
		 
		 var h = Math.max(bottomLeft.offsetHeight, bottomRight.offsetHeight);
		 
		 if (bottomLeft.offsetHeight < h){
			 bottomLeft.style.height = h-10+'px';
		 }
		 if (bottomRight.offsetHeight < h){
			 bottomRight.style.height = h-10+'px';
		 }
   		 preloader();
	
}

function newHomeHeights(){
		var leftCol = document.getElementById('leftCol');
		 var rightCol = document.getElementById('rightCol');
		 var largeBox = document.getElementById('largeBox');
		 var middleRow = document.getElementById('middleRow');
		 var largeImage = document.getElementById('largeImage');
		 var thumbLinks = document.getElementById('thumbLinks');
		 var purpleContent = document.getElementById('purpleContent');
		  var topBox = document.getElementById('topBox');
		 var bottomBox = document.getElementById('bottomBox');
		 
		 var bottomLeft = document.getElementById('bottomLeft');
		 var bottomRight = document.getElementById('bottomRight');
		 
    	 var h = Math.max(leftCol.offsetHeight, rightCol.offsetHeight);
		 
		 if (leftCol.offsetHeight < h){
			 var newHeight = h - largeImage.offsetHeight - middleRow.offsetHeight - thumbLinks.offsetHeight - purpleContent.offsetHeight - 40;
			largeBox.style.height = newHeight+'px'; 
		 }
		 if (rightCol.offsetHeight < h){
			var newHeight = ((h-topBox.offsetHeight))-10;
			bottomBox.style.height = newHeight+'px';
		 }
		 
		 var h = Math.max(bottomLeft.offsetHeight, bottomRight.offsetHeight);
		 
		 if (bottomLeft.offsetHeight < h){
			 bottomLeft.style.height = h-10+'px';
		 }
		 if (bottomRight.offsetHeight < h){
			 bottomRight.style.height = h-10+'px';
		 }
   		 preloader();
	
}

function homeHeightsJan07(){
		var leftCol = document.getElementById('leftCol');
		 var rightCol = document.getElementById('rightCol');
		 var largeBox = document.getElementById('largeBox');
		 var tagLine = document.getElementById('tagLine');
		 var largeImage = document.getElementById('largeImage');
		 var thumbLinks = document.getElementById('thumbLinks');
		 var purpleContent = document.getElementById('purpleContent');
		  var topBox = document.getElementById('topBox');
		 var bottomBox = document.getElementById('bottomBox');
		 
		 var bottomLeft = document.getElementById('bottomLeft');
		 var bottomRight = document.getElementById('bottomRight');
		 
    	 var h = Math.max(leftCol.offsetHeight, rightCol.offsetHeight);
		 
		 if (leftCol.offsetHeight < h){
			 var newHeight = h - largeImage.offsetHeight - tagLine.offsetHeight - thumbLinks.offsetHeight - purpleContent.offsetHeight - 25;
			largeBox.style.height = newHeight+'px'; 
		 }
		 if (rightCol.offsetHeight < h){
			var newHeight = ((h-topBox.offsetHeight))-10;
			bottomBox.style.height = newHeight+'px';
		 }
		 
		 var h = Math.max(bottomLeft.offsetHeight, bottomRight.offsetHeight);
		 
		 if (bottomLeft.offsetHeight < h){
			 bottomLeft.style.height = h-10+'px';
		 }
		 if (bottomRight.offsetHeight < h){
			 bottomRight.style.height = h-10+'px';
		 }
   		 preloader();
	
}

function homeHeightsFeb07(){
		 var leftCol = document.getElementById('leftCol');
		 var rightCol = document.getElementById('rightCol');
		 var largeBox = document.getElementById('largeBox');
		 var largeImage = document.getElementById('largeImage');
		 var topBox = document.getElementById('topBox');
		 var bottomBox = document.getElementById('bottomBox');
		 
		 var bottomLeft = document.getElementById('bottomLeft');
		 var bottomRight = document.getElementById('bottomRight');
		 
    	 var h = Math.max(leftCol.offsetHeight, rightCol.offsetHeight);
		 
		 if (leftCol.offsetHeight < h){
			 var newHeight = h - largeImage.offsetHeight - 25;
			largeBox.style.height = newHeight+'px'; 
		 }
		 if (rightCol.offsetHeight < h){
			var newHeight = ((h-topBox.offsetHeight))-10;
			bottomBox.style.height = newHeight+'px';
		 }
		 
		 var h = Math.max(bottomLeft.offsetHeight, bottomRight.offsetHeight);
		 
		 if (bottomLeft.offsetHeight < h){
			 bottomLeft.style.height = h-10+'px';
		 }
		 if (bottomRight.offsetHeight < h){
			 bottomRight.style.height = h-10+'px';
		 }
   		 preloader();
	
}

function homeHeightsMay07(){
		var leftCol = document.getElementById('leftCol');
		 var rightCol = document.getElementById('rightCol');
		 var largeBox = document.getElementById('largeBox');
		 var largeImage = document.getElementById('largeImage');
		 var thumbLinks = document.getElementById('thumbLinks');
		 var purpleContent = document.getElementById('purpleContent');
		 var topBox = document.getElementById('topBox');
		 var colorLinks = document.getElementById("colorLinks");
		 var bottomBox = document.getElementById('bottomBox');
		 
		 var bottomLeft = document.getElementById('bottomLeft');
		 var bottomRight = document.getElementById('bottomRight');
		 
    	 var h = Math.max(leftCol.offsetHeight, rightCol.offsetHeight);
		 
		 if (leftCol.offsetHeight < h){
			 var newHeight = h - largeImage.offsetHeight - thumbLinks.offsetHeight - purpleContent.offsetHeight - 30;
			largeBox.style.height = newHeight+'px'; 
		 }
		 if (rightCol.offsetHeight < h){
			var newHeight = ((h-topBox.offsetHeight-colorLinks.offsetHeight))-10;
			bottomBox.style.height = newHeight+'px';
		 }
		 
		 var h = Math.max(bottomLeft.offsetHeight, bottomRight.offsetHeight);
		 
		 if (bottomLeft.offsetHeight < h){
			 bottomLeft.style.height = h-10+'px';
		 }
		 if (bottomRight.offsetHeight < h){
			 bottomRight.style.height = h-10+'px';
		 }
   		 preloader();
	
}

function homeHeightsJune07(){
		var leftCol = document.getElementById('leftCol');
		 var rightCol = document.getElementById('rightCol');
		 var largeBox = document.getElementById('largeBox');
		 var largeImage = document.getElementById('largeImage');
		 var purpleContent = document.getElementById('purpleContent');
		 var topBox = document.getElementById('topBox');
		 var colorLinks = document.getElementById("colorLinks");
		 var bottomBox = document.getElementById('bottomBox');
		 
		 var bottomLeft = document.getElementById('bottomLeft');
		 var bottomRight = document.getElementById('bottomRight');
		 
    	 var h = Math.max(leftCol.offsetHeight, rightCol.offsetHeight);
		 
		 
		 if (leftCol.offsetHeight <= h){
			 var newHeight = h - largeImage.offsetHeight - purpleContent.offsetHeight - 20;
			largeBox.style.height = newHeight+'px'; 
		 }
		 if (rightCol.offsetHeight <= h){
			var newHeight = ((h-topBox.offsetHeight-colorLinks.offsetHeight))-10;
			bottomBox.style.height = newHeight+'px';
		 }
		 
		 var h = Math.max(bottomLeft.offsetHeight, bottomRight.offsetHeight);
		 
		 if (bottomLeft.offsetHeight < h){
			 bottomLeft.style.height = h-10+'px';
		 }
		 if (bottomRight.offsetHeight < h){
			 bottomRight.style.height = h-10+'px';
		 }
   		 preloader();
	
}


function channelHomeHeights(){

		var leftCol = document.getElementById('leftCol');
		var rightCol = document.getElementById('rightCol');
		var middleCol = document.getElementById('middleCol');
		var submenu = document.getElementById('submenu');
		var poll =  document.getElementById('poll');
		var middleTop  =  document.getElementById('middleTop');
		var middleBottom = document.getElementById('middleBottom');
		var rightTop = document.getElementById('rightTop');
		var rightMiddle = document.getElementById('rightMiddle');
		var rightBottom = document.getElementById('rightBottom');
		
	
		var h = Math.max(leftCol.offsetHeight, middleCol.offsetHeight);
		
		if(leftCol.offsetHeight < h){
			var addHeight = h - submenu.offsetHeight - 5;
			poll.style.height = addHeight+'px'; 
		}
		
		if(middleCol.offsetHeight < h){
			var addHeight = h - middleTop.offsetHeight - 5;
			middleBottom.style.height = addHeight+'px';
		}
		
		h = Math.max(middleCol.offsetHeight, rightCol.offsetHeight);
		
		if(rightCol.offsetHeight < h){
			var addHeight = h - rightTop.offsetHeight -rightMiddle.offsetHeight- 10;
			rightBottom.style.height = addHeight+'px';
		}
		
		if(middleCol.offsetHeight < h){
			var addHeight = h - middleTop.offsetHeight - 10;
			middleBottom.style.height = addHeight+'px';
			addHeight = h - submenu.offsetHeight -5;
			poll.style.height = addHeight+'px'; 
		}
		preloader();
		
}

function channelGeneral2ColHeights(){

		var leftCol = document.getElementById('leftCol');
		var rightCol = document.getElementById('rightCol');
		var middleCol = document.getElementById('middleCol');
		var submenu = document.getElementById('submenu');
		var poll =  document.getElementById('poll');
		var middleTop  =  document.getElementById('middleTop');
		var rightBottom = document.getElementById('rightBottom');
		
	
		var h = Math.max(leftCol.offsetHeight, middleCol.offsetHeight);
		
		if(leftCol.offsetHeight < h){
			var addHeight = h - submenu.offsetHeight - 5;
			poll.style.height = addHeight+'px'; 
		}
		
		if(middleCol.offsetHeight < h){
			middleTop.style.height = h+'px';
		}
		
		h = Math.max(middleCol.offsetHeight, rightCol.offsetHeight);
		
		if(rightCol.offsetHeight < h){
			rightBottom.style.height = (h-5)+'px';
		}
		
		if(middleCol.offsetHeight < h){
			middleTop.style.height = (h-5)+'px';
			addHeight = h - submenu.offsetHeight -5;
			poll.style.height = addHeight+'px'; 
		}
		preloader();
		
}

function channelGeneralHeights(){				
	
		var leftCol = document.getElementById('leftCol');
		var middleColLarge = document.getElementById('middleColLarge');
		var submenu = document.getElementById('submenu');
		var poll =  document.getElementById('poll');
		
		var h = Math.max(leftCol.offsetHeight, middleColLarge.offsetHeight);
		
		if(leftCol.offsetHeight <= h){
			
			var addHeight = h - submenu.offsetHeight - 5;
			poll.style.height = addHeight+'px'; 
		}
		
		if(middleColLarge.offsetHeight <= h){
			middleColLarge.style.height=h+'px';

		}
		preloader();
}

function mandarinHomeHeights(){
		var rightColmandarin = document.getElementById('rightColmandarin');
		var middleColmandarin = document.getElementById('middleColmandarin');
		var leftHeight = document.getElementById('leftHeight');
		var rightHeightTop = document.getElementById('rightHeightTop');
		var rightHeight = document.getElementById('rightHeight');
		
		var h = Math.max(rightColmandarin.offsetHeight, middleColmandarin.offsetHeight);
		
		if(rightColmandarin.offsetHeight < h){
			
		   var addHeight = h - rightHeightTop.offsetHeight - 95;
		   rightHeight.style.height = addHeight+'px';
		}
		
		if(middleColmandarin.offsetHeight <h){
			var addHeight = h-55;
			leftHeight.style.height = addHeight+'px';
		}
		
}

function visitHomeHeights(){
		var leftCol = document.getElementById('leftCol');
		var rightCol = document.getElementById('rightCol');
		var middleCol = document.getElementById('middleCol');
		var submenu = document.getElementById('submenu');
		var poll =  document.getElementById('poll');
		var box1 =  document.getElementById('box1');
		var box2 =  document.getElementById('box2');
		var box3 =  document.getElementById('box3');
		var box4 =  document.getElementById('box4');
		var box5 =  document.getElementById('box5');
		var box6 =  document.getElementById('box6');
		var extraContentLeft =  document.getElementById('extraContentLeft');
		var extraContentRight = document.getElementById('extraContentRight');
		
		var h = Math.max(leftCol.offsetHeight, middleCol.offsetHeight);
		h = Math.max(h, rightCol.offsetHeight);
		
		if(leftCol.offsetHeight <= h){
			var addHeight = h - submenu.offsetHeight - 5;
			poll.style.height = addHeight+'px'; 
		}
		
		if(middleCol.offsetHeight <= h){
			var addHeight = h - box1.offsetHeight - box2.offsetHeight - box3.offsetHeight - box4.offsetHeight - 60;	
			extraContentLeft.style.height = addHeight+'px'; 
		}
		
		if(rightCol.offsetHeight <= h){
			var addHeight = h - box6.offsetHeight - box5.offsetHeight - 30;
			extraContentRight.style.height = addHeight+'px';
		}
}

function visitHomeHeightslanguage(){
		var leftCol = document.getElementById('leftCol');
		var rightCol = document.getElementById('rightCol');
		var middleCol = document.getElementById('middleCol');
		var submenu = document.getElementById('submenu');
		var poll =  document.getElementById('poll');
		var box1 =  document.getElementById('box1');
		var box2 =  document.getElementById('box2');
		var box3 =  document.getElementById('box3');
		var box4 =  document.getElementById('box4');
		var box5 =  document.getElementById('box5');
		var box6 =  document.getElementById('box6');
		var box7 =  document.getElementById('box7');
		var box8 =  document.getElementById('box8');
		var box9 =  document.getElementById('box9');
		var extraContentLeft =  document.getElementById('extraContentLeft');
		var extraContentRight = document.getElementById('extraContentRight');
		
		var h = Math.max(leftCol.offsetHeight, middleCol.offsetHeight);
		h = Math.max(h, rightCol.offsetHeight);
		
		if(leftCol.offsetHeight <= h){
			var addHeight = h - submenu.offsetHeight - 5;
			poll.style.height = addHeight+'px'; 
		}

		
		if(middleCol.offsetHeight <= h){
			var addHeight = h - box1.offsetHeight - box2.offsetHeight - box3.offsetHeight - box4.offsetHeight - box5.offsetHeight - box6.offsetHeight - box7.offsetHeight - 105;	
			extraContentLeft.style.height = addHeight+'px'; 
		}
		
		if(rightCol.offsetHeight <= h){
			var addHeight = h - box8.offsetHeight - box9.offsetHeight - 30;
			extraContentRight.style.height = addHeight+'px';
		}
}




function bookmark(url, title){
  if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
  window.external.AddFavorite(url,title);
  } else if (navigator.appName == "Netscape") {
    window.sidebar.addPanel(title,url,"");
  } else {
    alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");
  }
}

function preloader(){

if (document.images)
{
  //preloads the rollover images
  image1= new Image(); 
  image1.src="/web/Templates/home_template_files/tabsLiveHover.jpg"; 
  image2 = new Image();
  image2.src="/web/Templates/home_template_files/tabsBusinessHover.jpg";
  image3 = new Image();
  image3.src="/web/Templates/home_template_files/tabsVisitHover.jpg";
  image4 = new Image();
  image4.src="/web/Templates/home_template_files/tabsVisitInactiveHover.jpg";
  image5 = new Image();
  image5.src="/web/Templates/home_template_files/tabsBusinessInactiveHover.jpg";
}
	
}

function openWin(url)
	{
		var multimap = window.open(url, "Map", "toolbar=false, menubar=false , width=350, height=490");
		
		multimap.focus();
		
		return false;
	}