function fixScrollers() {

	//d('main_table').style.width=screen.width;	

	d('scroller1').style.height="10px";
	d('scroller2').style.height="10px";	
	d('scroller1').style.width="10px";
	d('scroller2').style.width="10px";
		
	if (d('catscroll')) d('scroller1').style.height=d('catscroll').clientHeight;
	if (d('mainscroll')) d('scroller2').style.height=d('mainscroll').clientHeight;

	//needed for some strange behaviour
	d('scroller1').style.width="160px";
	d('scroller1').style.width="160px";

	d('scroller1').style.width="100%";
	d('scroller2').style.width="100%";
	
	//document.body.style.width=screen.width;

	if (d('mainscroll')) {
		//d('scroller2').style.width=d('mainscroll').clientWidth-1;
	};
	
	twocolumns=false;

	

	if (d('mainscroll')) {
		w=d('mainscroll').clientWidth;
		
		
		
		oldw=w;
		//advert block		
		w=w-119;
		
		//left marging
		w=w-20;
		
		//right margin
		w=w-20;
						
		if (w<720) {
			//w = 95 %!
			w=(0.95*w) + "px";
			changecss('.block','width',w);			
			twocolumns=false;		
		} else {
			
			//middle margin;
			w=w-20;		
						
			//if no scrollbar ?
			w=w-10;			
			//if there is a scrollbar
			w=w-18;			
						
			//devide by two			
			w=w/2;
			//w=w-100;
			w=Math.floor(w);	
															
			changecss('.block','width',w+'px');
			
			//changecss('.block','height','300px');
			twocolumns=true;
		}
	}
	
	if (twocolumns) {
	for (i=1;i<99;i+=2) {
		e1=d('c_'+i);
		e2=d('c_'+(i+1));
		
		if (e1) {
			if (e2) {	
				h1=e1.clientHeight;
				h2=e2.clientHeight;
				if (h1>h2) h2=h1; else h1=h2;		
				e1.style.height=h1;
				e2.style.height=h2;
			}
		}
	}
	} else {
		for (i=1;i<99;i+=1) {
			e1=d('c_'+i);
			if (e1) e1.style.height='';				
		}			
	}
	
	
	w=d('mainscroll').clientWidth;
	
	
	if (oldw!=w) {
		//alert(w);
		//alert(oldw);	
		//fixScrollers();
	}
}
	
var scrollTimeout=null;
	
function timedFixScrollers() {
	if (scrollTimeout) window.clearTimeout(scrollTimeout);
	scrollTimeout=window.setTimeout("fixScrollers()",500);
}

	


