function resizeit() {
        margin=200;
        
        var winwidth = 0;
        if( typeof( window.innerWidth ) == 'number' ) {
                //Non-IE
                winwidth = window.innerWidth-margin;
        } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
                //IE 6+ in 'standards compliant mode'
                winwidth = document.documentElement.clientWidth-margin;
        } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
                //IE 4 compatible
                winwidth = document.body.clientWidth-margin;
        }
        
        /*winwidth=document.all?document.body.clientwidth:window.innerWidth-margin;*/
        
        winwidth=Math.floor(winwidth/50)*50; /*So only in increments of 50*/
        
        if (winwidth<1035) {winwidth=1035;}
                
        document.cookie =  'screenwidth='+winwidth+'; expires=Thu, 1 Jan 2100 12:00:00 UTC; path=/'
        
        if (winwidth>=900) {
                if (document.getElementById("mainmenu")) {document.getElementById("mainmenu").style.fontSize='11px';}
        } else {
                if (document.getElementById("mainmenu")) {document.getElementById("mainmenu").style.fontSize='10px';}}

        if (winwidth>=900) {
                if (document.getElementById("submenu")) {document.getElementById("submenu").style.fontSize='9px';}
        } else {
                if (document.getElementById("submenu")) {document.getElementById("submenu").style.fontSize='8px';}}

        if (document.getElementById("container")) {document.getElementById("container").style.width=(winwidth-10)+'px';}
        if (document.getElementById("container2")) {document.getElementById("container2").style.width=(winwidth-14)+'px';}
        if (document.getElementById("header")) {document.getElementById("header").style.width=(winwidth-10)+'px';}
        if (document.getElementById("tabs10")) {document.getElementById("tabs10").style.width=(winwidth-10)+'px';}
        if (document.getElementById("tabs11")) {document.getElementById("tabs11").style.width=(winwidth-240)+'px';}
        
        if (document.getElementById("tabs12")) {document.getElementById("tabs12").style.width=((winwidth-240)/2+100)+'px';}
        if (document.getElementById("tabbar")) {document.getElementById("tabbar").style.width=(winwidth-10)+'px';}
        if (document.getElementById("tabs1")) {document.getElementById("tabs1").style.width=(winwidth-10)+'px';}
        
        if (document.getElementById("content")) {document.getElementById("content").style.width=(winwidth-240)+'px';}
        
        if (document.getElementById("contentbar1")) {document.getElementById("contentbar1").style.width=(winwidth-240)+'px';}
        if (document.getElementById("contentbar2")) {document.getElementById("contentbar2").style.width=(winwidth-240)+'px';}
        if (document.getElementById("contentbar3")) {document.getElementById("contentbar3").style.width=(winwidth-240)+'px';}
        if (document.getElementById("contentbar4")) {document.getElementById("contentbar4").style.width=(winwidth-240)+'px';}
        
        /*Note that in IE, 240 should be 243 to be exactly equal to CSS sheet.*/
        
        if (document.getElementById("footer")) {document.getElementById("footer").style.width=(winwidth-18)+'px';}

        if (document.getElementById("comments_iframe")) {document.getElementById("comments_iframe").style.width=(winwidth-240)+'px';}
        
}
