fixColumns={
	highest : 2,
	cols: Array(),
	TBMenu: null,
	/*
	fixCols:function(){
		if(fixColumns.cols[1]){
			var widthCol = parseFloat((fixColumns.cols[0].clientWidth + fixColumns.cols[1].clientWidth)/2);
			widthCol += "px";
			fixColumns.cols[0].style.width = widthCol;
			fixColumns.cols[1].style.width = widthCol;
		}else{
			var widthCol = (fixColumns.cols[0].parentNode.offsetWidth - 460) / 2;
			widthCol += "px";
			fixColumns.cols[0].style.width = widthCol;
		}
		
	},*/

	fixColsHeight:function(){
			var heightCol0 = fixColumns.cols[0].offsetHeight;
			var heightCol2 = fixColumns.cols[2].offsetHeight;
			
			if((typeof fixColumns.cols[1]!="undefined") && (fixColumns.cols[1]!=null) ){
				var heightCol1 = fixColumns.cols[1].offsetHeight;
			}			
			
			var max = heightCol0;
			
			if (max < heightCol2){
				var max = heightCol2;
			}
			if((typeof heightCol1!="undefined") && (heightCol1!=null) ){
				if (max < heightCol1){
					var max = heightCol1;
				}
			}
			max += "px";
			fixColumns.cols[0].style.height = max;
			if((typeof heightCol1!="undefined") && (heightCol1!=null) ){
				fixColumns.cols[1].style.height = max;
			}	
			//fixColumns.cols[2].style.height = max;  //se rompe con IE6, por lo que sino lo seteas es lo mismo, lo comente.
	
	},
	
	fixMenu:function(){
		var solCount = 0;
		var i = 0;
		var List = fixColumns.TBMenu.tBodies[0].rows[0].childNodes;
		var count = List.length;
		var it = null;
		
		for (i=0; i< count; i++){
			it = List.item(i);
			if ((it.nodeType != 3) && (it.className != 'tabSep')){
				solCount++;
			}		
		}

		var AvailSpace = fixColumns.TBMenu.offsetWidth - (solCount-1) * 2; 
		var newWidth   = AvailSpace/solCount;
		
		for (i=0; i< count; i++){
			it = List.item(i);
		
			if ((it.nodeType != 3) && (it.nodeType != 8) && (it.className != 'tabSep')){ 
				it.style.width = newWidth + "px";
			}		
		}

	},
	
	fixBannersCols:function(){
		var br   = document.getElementById("brBanner");
		var ban1 = document.getElementById("bannerLeft1");
		if(parseInt(screen.width,10) >= 1024){
			br.style.display  = 'none';
			ban1.style.margin = '0px 0px 5px 0px';
		}else{
			br.style.display  = 'block';
			ban1.style.margin = '0px 0px 5px 0px';
		}
	},
	
	

	fixInputNewsletter:function(){
		var div  = document.getElementById("divFixNewsletter");

		if(parseInt(screen.width,10) > 1024){
			if (div.style.styleFloat) {
				div.style.styleFloat = 'left';
			} else {
				div.style.cssFloat = 'left';
			}

		}else{
			if (div.style.styleFloat) {
				div.style.styleFloat = 'none';
			} else {
				div.style.cssFloat = 'none';
			}
		}
	},

	init:function(){
		if(!NT.isDOM()) return;
		fixColumns.cols[0] = document.getElementById("colLeft");
		fixColumns.cols[1] = document.getElementById("colRight");
		fixColumns.cols[2] = document.getElementById("colCentral");
		fixColumns.TBMenu = document.getElementById("AGMenu");

	
		fixColumns.fixMenu();
		/* fixColumns.fixCols(); */
		fixColumns.fixColsHeight(); 
		fixColumns.fixBannersCols();
		/*fixColumns.fixInputNewsletter();*/
		
	}
	
			
}
NT.addLoadEvent(fixColumns.init);
