	function repair() {				
		var total = 240 //push width
		total = total + 200 //extra offset		
		var imgs = document.getElementsByTagName('img');
		
		for (var i=0; i<imgs.length-1 ;i=i+2)
		{	
		    total = total + imgs[i].width + 55; 			   			
		}		
		if (total < 1000) {
			total = 1000
		}						
		var cont = document.getElementById('spacerTopMain');
		var main = document.getElementById('maincontent');
		//var bodyTag = document.getElementById('bodyTag');
		//var body = document.getElementByTagName('body');
		cont.style.width = total;  //this works in IE 6.0 & 7.0 but not FF and Safari
		main.style.width = total; 
		//bodyTag.style.width = 200; 
		
		//body.style.width = total; 
		
				
		//this is working in win FF, mac FF & safari
		if (BrowserDetect.browser != "Explorer") {
			if( document.styleSheets ) {										
				var oStyle = document.styleSheets[0].cssRules[0].style;
				oStyle.cssText = 'width: ' +  total + 'px !important';			
				var oStyle = document.styleSheets[1].cssRules[0].style;
				oStyle.cssText = 'width: ' +  total + 'px !important';			
			}
		}				
}			

