// JavaScript Document
// Standard functions to be called after page load
<!--



var maxWidth  = 98;
var maxHeight = 128;

function scaleImage(im) {

  if (typeof im.naturalHeight == 'undefined') im.naturalHeight = im.height;
  if (typeof im.naturalWidth == 'undefined') im.naturalWidth = im.width;
  
  if (im.naturalHeight > maxHeight) {

    im.height = maxHeight;
    im.style.maxHeight = im.naturalHeight + 'px';
    im.className = 'resized';
   // im.title = 'Klik voor originele grootte';
   // im.onclick = unscaleImage;

  }

}

function unscaleImage() {

  if (this.height == maxHeight) {
	if (this.naturalHeight < 468){
		this.height = this.naturalHeight;
		this.style.borderWidth = '0px';
		this.title = 'Klik om te verkleinen';
	}
	else{
		newWindow=window.open(this.src,'newWin','width='+this.naturalWidth+',height='+this.naturalHeight+',toolbar=no');
		newWindow.document.write('<html><head><title>'+this.alt+'(Large Image)<\/title><style>body{margin:0;}<\/style><\/head><body><img src="'+this.src+'" alt="'+this.alt+'"><\/body><\/html>');
		newWindow.focus();		
	}

  } else {
	
    this.height = maxHeight;
    this.style.borderWidth = '2px';
    this.title = 'Klik voor de orginele grootte';

  }
}

function mp(url){
	window.location.href= '#';
	window.location.href= url;
}

function outLinks(myURL){
	linkTarget="_blank";
	for (var i=0; i<=(document.links.length-1); i++){
		isExternal=((document.links[i].href.indexOf("http://")!=-1)&&(document.links[i].href.indexOf(myURL)==-1))
		if(isExternal){
			document.links[i].target = linkTarget;
		}
	}
}


function domResize() {
	if (navigator.userAgent.match(/Opera (\S+)/)) {
		var operaVersion = parseInt(navigator.userAgent.match(/Opera (\S+)/)[1]);
	}
	if (!document.getElementById||operaVersion <7) return;
	var imgarr=document.getElementsByTagName('img');	
	for (i=0;i<imgarr.length;i++){
				
		if (imgarr[i].className.indexOf('domresize')!=-1){
			imgarr[i].onload=function(){
				scaleImage(this);
			}
			scaleImage(imgarr[i]);
		}
	}
}
domResize();

outLinks(document.domain);


// -->