//popup voor presentatiebouwsteen
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
var popupscherm=0;
function popupPresentatie(imgnodes,descriptions,displaytime,width, height) {
	if (popupscherm && ! popupscherm.closed)	popupscherm.close();
	var filename = "/popup_presentatie.php?do=x&imgnodes="+imgnodes+"&descs="+descriptions+"&displaytime="+displaytime;
	var fileid = "Pagelink";
	if (!width || width=="") width="700";
	if (!height || height=="") height="550";
	var scrollbars="no";
	var resizable="no";
	var menubar="no";
	var toolbar="no";
	var status="no";
	var location="no";
	popupscherm=0;
	var args = "height=" + height + ", width=" + width + ", scrollbars=" + scrollbars + ", resizable=" + resizable +  ", menubar=" + menubar + ", toolbar=" +toolbar + ", status=" + status + " ,location=" + location;
	popupscherm = open(filename, fileid, args);
	if (!InternetExplorer) 						popupscherm.focus();
}

function setMenuitemColor(el,action) {
	if (/actief$/.test(el.className))
		return false;
	
	if (el && action == 'over') {
		el.style.backgroundColor='#76B900';
	}
	if (el && action == 'out') {
		el.style.backgroundColor='#95928F'
	}
}

function toon_afbeelding_nieuwsbrief (el) {
	if (el)
		el.src = '/images/nieuwsbrief/kop_afbeelding.jpg';
}

/* Benodigde functies voor redirect module */
function redirect() {
	popup ('/admin/redirect/index.php', 'nhredirect')
}
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
var popupscherm=0;
function popup (filename, fileid, width, height, scrollbars, resizable, menubar, toolbar, status, location) {
	if (popupscherm && ! popupscherm.closed)	popupscherm.close();
	if (!filename || filename=="")				filename="http://www.nijhuis.nl";
	if (!fileid || fileid=="")					fileid="nijhuis";
	if (!width || width=="")					width="600";
	if (!height || height=="")					height="500";
	popupscherm=0;
	var args = "height=" + height + ", width=" + width + ",scrollbars=no,resizable=no,menubar=no,toolbar=no,status=no,location=no";
	popupscherm = open(filename, fileid, args);
	if (!InternetExplorer) 						popupscherm.focus();
}
