
<!-- //

/**
 *	reposition.js
 * 
 *  fix the position of the mainContainer after a window-resize in ie6
 *
 *	@author: gg@seso.at
 */


function rbm_reposition() {
	
	var hor_margin = -500;
	var cont_w = 998;

	var cont = document.getElementById("rbm_mainContainer").style;
	var bg = document.getElementById("rbm_bgImage").style;


	if (document.body.offsetWidth < cont_w) {

		bg.left = bg.marginLeft = cont.left = cont.marginLeft = 0;
		
	}
		
	else {
	
		bg.left = cont.left = '50%';
		bg.marginLeft = cont.marginLeft = hor_margin + 'px';
	}

}


		
if (env.browser == 'ie6') {
	
	window.onload = rbm_reposition;
	window.onresize = rbm_reposition;
}

// -->

