var winW = 800;
var fixedwidth = 290;
var maxwidth = 1011;
var minwidth = 800;
var spacerwidth=721;

function resizespacer(){
if (parseInt(navigator.appVersion)>3) {
 if (navigator.appName.indexOf("Microsoft")!=-1) {
 	winW = document.body.offsetWidth;
 }else{
	winW = window.innerWidth;
 }
}
spacerwidth = winW - 290;
if (spacerwidth < (minwidth - fixedwidth)){
	spacerwidth = (minwidth - fixedwidth);
}else if (spacerwidth > (maxwidth - fixedwidth)){
	spacerwidth = (maxwidth - fixedwidth);
}
document.getElementById("spacermainsection").style.width=parseInt(spacerwidth)+'px';
}

window.onresize=function winresize(){resizespacer()}
window.onload=function winload(){resizespacer()}
