// vonken_scripts.js

function adaptWindowWidth() {
  var screenWidth = 0;
  if ( typeof( window.innerWidth ) == 'number' ) {
    // Non-IE
    screenWidth = window.innerWidth;
  } else if ( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    // IE 6+ in 'standards compliant mode'
    screenWidth = document.documentElement.clientWidth;
  } else if ( document.body && ( document.body.clientWidth ) ) {
    // IE 4 compatible
    screenWidth = document.body.clientWidth;
  }
  if (screenWidth <= 1000) { 
  	document.write('<style type="text\/css"> ');
  	document.write('#bgWrapper \{ margin: 0; \} ');
  	document.write('#header \{ height: 280px; \} ');
	document.write('a#regent \{ right: 0; margin-right: 10px; \}');
	document.write('#headerTxt \{ height: 210px; \}')


	document.write('<\/style>');
  	}
  if (screenWidth <= 900) { 
  	document.write('<style type="text\/css"> ');
	document.write('a#regent \{ right: 0; margin-right: 5px; \}');
	document.write('#headerTxt \{ margin-top: -165px; height: 210px; margin-right: 120px; \}')


	document.write('<\/style>');
  	}
  if (screenWidth > 1024) { 
  	document.write('<style type="text\/css">#bgWrapper \{ margin: 0 10%; \}<\/style>');
  	}
}
adaptWindowWidth();

function knipoog() {
	a=1 // filler; IE only: vonken_module-ie.php
}
function logoback() {
	b=1 // filler; IE only: vonken_module-ie.php
}

function refreshIframe() {
var theIframe = document.getElementById('nachtzicht');
theIframe.contentWindow.location.reload(false);
// false - Default. Reloads the page from the browser cache.
// true - Reloads the page from the server.
}