var $j = jQuery.noConflict();

$j(document).ready(function() {
if (typeof(window.innerWidth ) == 'number' ) 
{ 
myWidth = window.innerWidth;
}

else if (typeof(document.documentElement.clientWidth) == 'number') 
{  
// IE 6+ in 'standards compliant mode'
myWidth = document.documentElement.clientWidth + 30 ;}

if (myWidth>=1310) {
marge = (((myWidth-845)/2)-200)/2;
laatzien(marge);
}
else  { }
$j(window).bind("resize", resizeWindow);
});


function resizeWindow() {

if (typeof(window.innerWidth) == 'number'){
myWidth = window.innerWidth;
}


else if (typeof(document.documentElement.clientWidth) == 'number') { 

//IE 6+ in 'standards compliant mode'
myWidth = document.documentElement.clientWidth +30;
}
// var newWindowWidth = window.innerWidth;
if (myWidth>=1310) {

marge = (((myWidth-845)/2)-200)/2;

laatzien(marge);
} 
else  {
verberg();
}
}

function verberg() {
$j('div.scroller').css('visibility','hidden');
$j('div.scrmask').css('visibility','hidden');
$j('div.scrmask2').css('visibility','hidden');
}

function laatzien(marge) {
$j('div.scroller').css('visibility','visible');
$j('div.scrmask').css('visibility','visible');
$j('div.scrmask2').css('visibility','visible');
$j('div.scroller').css('right',marge);
$j('div.scrmask').css('right',marge);
$j('div.scrmask2').css('right',marge);
} 
