/*IE6 detect & warn user
var parametersfound = (location.href).indexOf('?');
if(!window.XMLHttpRequest && parametersfound == -1){
    alert('De browser die u gebruikt geeft mogelijk de pagina niet overal juist weer, upgrade naar internet explorer 7 of hoger of de gratis mozilla firefox browser.\n\nSorry, but your browser is not supported by this site. Please upgrade to a newer version to view the content in a correct way.');
}*/

if (top.location != location) {
	top.location.href = document.location.href ;
}

function onResize() {
    if ($('body') != null && $('footer') != null && $('main') != null && $('header') != null && $('menu_language_bar') != null && $('scroller') != null && $('marqueecontainer') != null) { //check if elements exists
        if (parseInt($('body').getStyle('width')) >= 1200) {
            $('container').style.width = 1200 + 'px';
            $('container').style.marginLeft = -600 + 'px';
            $('header').style.backgroundPosition = 0 + 'px';
            $('header').style.width = 1200 + 'px';
            $('footer').style.width = 1200 + 'px';
            $('main').style.width = 970 + 'px';
			$('menu_language_bar').style.left = 1065 + 'px';
        } else {
            $('container').style.width = $('body').getStyle('width');
            $('container').style.marginLeft = parseInt($('body').getStyle('width')) / 2 * -1 + 'px';
            $('header').style.backgroundPosition = (1200 - parseInt($('body').getStyle('width'))) * -1 + 'px';
            $('header').style.width = $('body').getStyle('width');
            $('footer').style.width = $('body').getStyle('width');
            $('main').style.width = parseInt($('body').getStyle('width')) - 230 + 'px';
			$('menu_language_bar').style.left = (parseInt($('body').getStyle('width')) - 5 - parseInt($('menu_language_bar').getStyle('width')) + 'px');
        }
        $('scroller').style.height = (parseInt($('main').getStyle('height')) - 20) + 'px';
        $('marqueecontainer').style.height = (parseInt($('main').getStyle('height')) - 30) + 'px';
    }
}

Event.observe(document.onresize ? document : window, "resize", onResize );
document.observe("dom:loaded", onResize);
setTimeout('onResize()', 1000);
setTimeout('onResize()', 2000);
setTimeout('onResize()', 3000);
