// browser sniffer
function Browser(){
 this.uA = navigator.userAgent.toLowerCase();
 this.aN = navigator.appName.toLowerCase();
 this.iE = this.aN.indexOf('microsoft') != -1 ? 1 : 0;
 this.mac = this.uA.indexOf('mac') != -1 ? 1 : 0;
 this.win = this.uA.indexOf('windows') != -1 ? 1 : 0;
 this.safari = this.uA.indexOf('webkit') != -1 ? 1 : 0;
 this.opera = this.uA.indexOf('opera') != -1 ? 1 : 0;
 this.operaMini = this.uA.indexOf('mini') != -1 ? 1 : 0;
 this.mozilla = this.aN.indexOf('netscape') != -1 && !this.safari ? 1 : 0;
 this.winMozilla = this.mozilla && this.win ? 1 : 0;
 this.winIE = this.iE && this.win && !this.opera ? 1 : 0;
 this.winIE6Down = this.winIE && parseInt(this.uA.split('msie ')[1].substring(0,1)) <= 6 ? 1: 0;
 this.macIE = this.iE && this.mac ? 1 : 0;
};
var browser = new Browser();

if (!browser.operaMini){

// Opent een popup voor het tonen van een uitvergrote afbeelding
function zoomImage(imgUrl){
 var popup = window.open('','afbeelding','scrollbars=yes,resizable=yes,width=640,height=480');
 var html = '';
 html += '<html>';
 html += '<head><title>Koninklijke Bibliotheek - Afbeelding</title>';
 html += '<style>body { margin: 10px; background: #3F392F;}';
 html += ' .text { font-size: 0.6em; font-family: tahoma,verdana,arial,geneva;';
 html += ' color: #F0EAD8; display: block; margin-bottom: 5px;}</style>';
 html += '<scr'+'ipt>';
 html += 'var spaceX = 50; var spaceY = 80; var screenX = screen.availWidth;';
 html += 'var screenY = screen.availHeight; var image = new Image();';
 html += 'image.src = "'+imgUrl+'"; image.onload = function(){ imgX = this.width; imgY = this.height;';
 html += 'var x = spaceX + imgX; var y = spaceY + imgY; if (screenX<x) x = screenX-100;';
 html += 'if (screenY<y) y = screenY-100; window.resizeTo(x,y); window.moveTo(40,40); }';
 html += '</scr'+'ipt>';
 html += '</head>';
 html += '<body><span class="text">Klik op de afbeelding om dit venster te sluiten</span>';
 html += '<a href="javascript:window.close();"><img border="0" src="'+imgUrl;
 html += '" alt="Klik op de afbeelding om dit venster te sluiten." /></a><br/>';
 html += '</body>';
 html += '</html>';
 popup.document.write(html);
 popup.document.close();
 popup.focus();
 return false;
}
}; // end browser.operaMini