// JavaScript Document
function find_obj(n, d) {
	var p,i,x;  
	if(!d){d=document; }
	if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	if(!(x=d[n])&&d.all){x=d.all[n];}
	for (i=0;!x&&i<d.forms.length;i++){x=d.forms[i][n];}
	for(i=0;!x&&d.layers&&i<d.layers.length;i++){x=find_obj(n,d.layers[i].document);}
	if(!x && d.getElementById){x=d.getElementById(n);}
	return x;
}

function toggle(block){
	obj = find_obj(block);
	if(obj.style.display == 'none' || obj.style.display == ''){
		obj.style.display = 'block';
	} else {
		obj.style.display = 'none';
	}
	
	return false;
}

function mover(id){
	obj = find_obj(id);
	 if (obj.style.filter!=null) {
		obj.style.filter = "alpha(opacity=100)";
	} else if (obj.style.MozOpacity!=null) {
		obj.style.MozOpacity = 0.999;
	}else if (obj.style.opacity!=null) {
		obj.style.opacity = 0.999;
	}

}

function mout(id){
	obj = find_obj(id);
	if (obj.style.filter!=null) {
		obj.style.filter = "Alpha(opacity=70)";
	} else if (obj.style.MozOpacity!=null) {
		obj.style.MozOpacity = 0.7;
	}else if (obj.style.opacity!=null) {
		obj.style.opacity = 0.7;
	}
}

function open_window(url, wname, breedte, hoogte, scbar){
	var config = "";
	if(breedte>0 && hoogte>0){
		var links = (screen.width - breedte)/2;
		var boven = (screen.height - hoogte)/2;
		config = "status=no, scrollbars=" + scbar + ", menu=yes, width=" + breedte + ", height=" + hoogte + ", left=" + links + ", top=" + boven;
	}
	else
		config = "resizable=yes, status=no, scrollbars=" + scbar + ", menu=yes";
	
	var w = window.open(url, wname, config);
}