// ###### Copyright 2003 Incredible Interactive Media 	######
// ###### Editor by Incredible Interactive Media		######

function change_bg(kleur, achtergrond){
	document.body.bgColor = kleur;
	document.body.background = achtergrond;
}

function int_link(label) {
	pr_interface.TGotoLabel("_level0/total", label);
}

function news_link(label) {
	pr_interface.setVariable("_level0.total.txt_arguments",label);
	pr_interface.TGotoLabel("_level0.total", "431");
//	alert(label);
}

function open_URL(adres) {
	alert(adres)
	//window.open(adres)
}

function open_wetter(u) {
	xPos = 0;
	yPos = 0;
	mvar_links 	= document.body.clientWidth - 720;
	mvar_top	= document.body.clientHeight - 540;

	if(mvar_links > 0) {
		mvar_deling = mvar_links / 2;
		xPos = mvar_deling + 510; 
	} 
	
	if(mvar_top > 0) {
		mvar_deling = mvar_top / 2;
		yPos = mvar_deling + 210; 
	} 
	
	window.open("" + u,"fotos","width=151,height=178,scrollbars=no,toolbar=no,resizable=no,left="+xPos+",top="+yPos);
}
function open_window_scroll(u,w,h) {
	popheight = h;
	popwidth = w;
	window.open("" + u,"pr_window","width="+ popwidth +",height="+ popheight +",scrollbars=yes,toolbar=no,resizable=no," + align_string_pop(popwidth, popheight))
}

function open_window(u,w,h) {
	popheight = h;
	popwidth = w;
	window.open("" + u,"fotos","width="+ popwidth +",height="+ popheight +",scrollbars=no,toolbar=no,resizable=no," + align_string_pop(popwidth, popheight))
}

function align_string_pop(popwidth, popheight) {
	// uitlijnen pop-up
	var breedte = screen.width;
	var hoogte 	= screen.height;
	
	var prop_left 	= (screen.width/2) - (popwidth/2);
	var prop_top	= (screen.height/2) - (popheight/2);
	
	return "left=" + prop_left + ",top=" + prop_top;
}
