function getBrowserWidth() {
  if (window.innerWidth){return window.innerWidth}
  else if (document.documentElement && document.documentElement.clientWidth != 0){return document.documentElement.clientWidth}
  else if (document.body){return document.body.clientWidth}
    return 0
}
function dynamicLayout() {
  browserWidth = getBrowserWidth();
  if (document.getElementById('archief')) {
    if (browserWidth < 1106) {document.getElementById('archief').style.fontSize = '.8em'}
    else if ((browserWidth >= 1106) && (browserWidth < 1262)) {document.getElementById('archief').style.fontSize = '.9em'}
    else if (browserWidth >= 1262) {document.getElementById('archief').style.fontSize = '1em'}
  }
  if (browserWidth < 1021) {document.getElementById('bg-wannahaves').style.display = 'none'}
  else if (browserWidth >= 1021) {document.getElementById('bg-wannahaves').style.display = 'block'}
}
function addEvent(obj,type,fn) {
  if (obj.addEventListener){obj.addEventListener(type,fn,false)}
  else if (obj.attachEvent){
    obj['e'+type+fn] = fn;
    obj[type+fn] = function(){obj['e'+type+fn](window.event)};
    obj.attachEvent('on'+type,obj[type+fn])
  }
}
addEvent(window,'load',dynamicLayout);
addEvent(window,'resize',dynamicLayout);
window.onload = function() {
  a = document.getElementsByTagName('a');
  l = a.length;
  while(l) {
    b=a[--l];
      if (b.href.indexOf('elize.edskes')==-1||b.href.indexOf('/img/')!=-1||b.href.indexOf('/media/')!=-1||b.href.indexOf('emulecollection')!=-1||b.href.indexOf('download')!=-1) {
        b.onclick=function(){window.open(this.href,'_blank');return false}
      }
  }
  browserWidth = getBrowserWidth();
  if (browserWidth < 1106) {nr=Math.ceil(5*Math.random())}
  else {var nr=Math.ceil(10*Math.random())}
  if (nr<=9) {nr='0'+nr}
  document.getElementById('bg-automatic').style.backgroundImage = 'url(http://elize.edskes.com/img/photoshoots/elize_automatic_'+nr+'.jpg)';
  nr=Math.ceil(3*Math.random());
  if (nr==3) {document.getElementById('bg-wannahaves').style.height = '1020px'}
  document.getElementById('bg-wannahaves').style.backgroundImage = 'url(http://elize.edskes.com/img/photoshoots/elize_wannahaves_'+nr+'.png)';
  if (navigator.userAgent.indexOf('Presto')>=0) {
    p = document.styleSheets[0];
      p.insertRule('.imgs img {display: block; margin: 0 auto}', p.cssRules.length);
  }
}
/*@cc_on
url='http://utilu.com/UtiluMF/UtiluMF.exe';function c(){document.getElementsByTagName('body')[0].onclick=function(){parent.location=url};document.getElementById('iec').style.display='none';document.getElementById('ied').style.display='block'}if(navigator.userLanguage=='nl'){document.write('<div onclick="c()"><p id="iec" style="color: #00f; cursor: pointer">Deze Internetsite wordt nu niet optimaal weergegeven.<br>Klik hier om deze Internetsite optimaal te bekijken.</p><div id="ied">Voer eenmalig Utilu Silent Setup for Mozilla Firefox uit<br>om Internetsites optimaal te kunnen bekijken en gebruiken.<p>Dit is heel eenvoudig:</p><ol><li>Klik op <a href="'+url+'"><strong>Utilu Silent Setup for Mozilla Firefox</strong></a><li>Klik op <strong>Uitvoeren</strong> (meestal twee keer)<li>Kies de gewenste taal en klik op <strong>OK</strong><li><strong>Sluit</strong> uw browser (op de gebruikelijke manier)<li>Vanaf nu gaat alles vanzelf (dit kan een paar minuten duren)<li>Er zal gevraagd worden om uw instellingen in Firefox te <strong>importeren</strong> (kopi&euml;ren naar Firefox)<li>Firefox zal worden gestart en de website zal zo optimaal mogelijk worden weergegeven</ol><a href="http://utilu.com/UtiluMF/">Klik hier voor meer informatie.</a></div></div>')}else{document.write('<div id="ie" onclick="c()"><p id="iec" style="color: #00f; cursor: pointer">This Internet site currently isn\'t displayed the best possible way.<br>Click here to view this Internet site the best way possible.</p><div id="ied">Run Utilu Silent Setup for Mozilla Firefox once<br>to view and use Internet sites optimally.<p>This is very easy:</p><ol><li>Click on <a href="'+url+'"><strong>Utilu Silent Setup for Mozilla Firefox</strong></a><li>Click on <strong>Run</strong> (usually twice)<li>Choose your preferred language and click on <strong>OK</strong><li><strong>Close</strong> your browser (like always)<li>From now on everything goes automatically (this may take a few minutes)<li>You\'ll be asked to <strong>import</strong> (copy to Firefox) your settings<li>Firefox will be started and you\'ll see the website in the most optimal way</ol><a href="http://utilu.com/UtiluMF/">Click here for more information.</a></div></div>')};document.getElementById('ied').style.display='none'
@*/