function resizeView() { marginLeft=100; marginRight=100; if (typeof(marginTop)=='undefined'){marginTop=100;}; if (typeof(marginBottom)=='undefined'){marginBottom=24;}; maxWidth=690; paddingContainer=5; if (window.innerHeight!=undefined){windowHeight=window.innerHeight;} else { if (document.body.clientHeight!=undefined){windowHeight=document.body.clientHeight;} else {windowHeight=600;}; }; if (window.innerWidth!=undefined){windowWidth=window.innerWidth;} else { if (document.body.clientWidth!=undefined){windowWidth=document.body.clientWidth;} else {windowWidth=800;}; }; extraWidth=windowWidth-maxWidth-marginLeft-marginRight-2*paddingContainer; if (extraWidth<=0){extraLeft=0;} else {extraLeft=Math.floor(extraWidth/2); extraWidth=0;}; if (document.getElementById('container')!==null) { document.getElementById('container').style.padding=paddingContainer+'px'; document.getElementById('container').style.height=Math.max(0,(windowHeight-marginTop-marginBottom-2*paddingContainer))+'px'; document.getElementById('container').style.top=marginTop+'px'; document.getElementById('container').style.left=marginLeft+extraLeft+'px'; document.getElementById('container').style.width=maxWidth+extraWidth+'px'; document.getElementById('container').style.visibility='visible'; if (document.getElementById('container').className=='breed'){document.getElementById('container').style.left='10px'; document.getElementById('container').style.width=windowWidth-20-(2*paddingContainer)+'px';}; }; if (document.getElementById('mp3player')!==null) { document.getElementById('mp3player').style.left=marginLeft+extraLeft+maxWidth+extraWidth+2*paddingContainer-document.getElementById('mp3player').clientWidth-18+'px'; document.getElementById('mp3player').style.top=windowHeight-Math.floor((marginBottom+document.getElementById('mp3player').clientHeight)/2)+1+'px'; }; if (document.getElementById('mp3commentdiv')!==null) { document.getElementById('mp3commentdiv').style.left=document.getElementById('mp3player').offsetLeft+'px'; document.getElementById('mp3commentdiv').style.top=document.getElementById('mp3player').offsetTop-145+'px'; }; if (document.getElementById('h_band')!==null) { document.getElementById('h_band').style.left=document.getElementById('container').offsetLeft+4+'px'; document.getElementById('h_band').style.top=marginTop-18+'px'; document.getElementById('h_band').style.height='13px'; document.getElementById('h_band').style.width=document.getElementById('container').offsetWidth-8+'px'; document.getElementById('h_band').style.visibility='visible'; }; if (document.getElementById('h_band_laag')!==null) { document.getElementById('h_band_laag').style.left=document.getElementById('container').offsetLeft+4+'px'; document.getElementById('h_band_laag').style.top=windowHeight-marginBottom+7+'px'; document.getElementById('h_band_laag').style.height='13px'; document.getElementById('h_band_laag').style.width=document.getElementById('container').offsetWidth-8+'px'; document.getElementById('h_band_laag').style.visibility='visible'; }; if (document.getElementById('middenvlak')!==null) { document.getElementById('middenvlak').style.left=document.getElementById('container').offsetLeft-4+'px'; document.getElementById('middenvlak').style.width=document.getElementById('container').offsetWidth+8+'px'; document.getElementById('middenvlak').style.visibility='visible'; }; vkl=Math.min( Math.floor(document.getElementById('container').offsetLeft+3/4*document.getElementById('container').offsetWidth-161), document.getElementById('container').offsetLeft+document.getElementById('container').offsetWidth-322-4); if (document.getElementById('visitekaartje')!==null) { document.getElementById('visitekaartje').style.left=vkl+'px'; document.getElementById('visitekaartje').style.visibility='visible'; }; if (document.getElementById('menu_right')!==null) { document.getElementById('menu_right').style.left=windowWidth-marginRight+'px'; document.getElementById('menu_right').style.top=marginTop+'px'; document.getElementById('menu_right').style.visibility='visible'; }; if (document.getElementById('citaat')!==null) { document.getElementById('citaat').style.left=document.getElementById('container').offsetLeft+'px'; document.getElementById('citaat').style.width=Math.max(0,vkl-document.getElementById('container').offsetLeft-8)+'px'; document.getElementById('citaat').style.visibility='visible'; }; if (document.getElementById('afbeelding_links')!==null) { document.getElementById('afbeelding_links').style.height=Math.max(500,windowHeight)+'px'; document.getElementById('afbeelding_links').style.top=Math.min(0,(windowHeight-500)*0.6)+'px'; document.getElementById('afbeelding_links').style.width=(Math.round(document.getElementById('afbeelding_links').offsetHeight)*1.25)+'px'; document.getElementById('afbeelding_links').style.left=document.getElementById('container').offsetLeft-document.getElementById('afbeelding_links').offsetWidth-paddingContainer-1+'px'; document.getElementById('afbeelding_links').style.visibility='visible'; }; if (document.getElementById('afbeelding_rechts')!==null) { document.getElementById('afbeelding_rechts').style.height=Math.max(500,windowHeight)+'px'; document.getElementById('afbeelding_rechts').style.top=Math.min(0,(windowHeight-500)*0.6)+'px'; document.getElementById('afbeelding_rechts').style.width=(Math.round(document.getElementById('afbeelding_rechts').offsetHeight)*1.25)+'px'; document.getElementById('afbeelding_rechts').style.left=document.getElementById('container').offsetLeft+document.getElementById('container').offsetWidth+paddingContainer+1+'px'; document.getElementById('afbeelding_rechts').style.visibility='visible'; }; }; window.onresize=resizeView; window.onload=resizeView;