plArr = new Array();
function preload(){
	for(var i=0;i<preload.arguments.length;i++){
		plArr[plArr.length]=new Image();
		plArr[plArr.length-1].src=i;
	}
}

preload(
'img/nav_news2.gif',
'img/nav_gigs2.gif',
'img/nav_bio2.gif',
'img/nav_disco2.gif',
'img/nav_media2.gif',
'img/nav_links2.gif',
'img/nav_press2.gif'
);

function hoverPortal (ele, state) {
	ele.style.backgroundImage = state ? "none" : "url(img/subnav_groen_back.gif)";
}

function hoverRow (ele, state) {
	ele.style.backgroundColor = state ? "#E4E0BE" : "#DDD8B1";
}

var activeMenu = 0;
function showGig (id) {
	if (activeMenu) {
		document.getElementById ("gig_" + activeMenu).style.display = "none";
	}
	if (activeMenu != id) {
		activeMenu = id;
		document.getElementById ("gig_" + id).style.display = "block";
	} else {
		activeMenu = 0;
	}
}

function openPopup (url, name, w, h, resizable) {
	var resizable = resizable || 0;
	var opt = "toolbar=0,location=0,scrollbars="+resizable+",directories=0,status=0,menubar=0,resizable="+resizable+","
				+"width="+w+",height="+h+",left="+parseInt((screen.width-w)/2)+",top="+parseInt((screen.height-h)/3);
	window.open(url, name, opt);
}