var urltarget=" target='_blank'";

var base;
var groningen,friesland,drenthe,overijssel,gelderland,utrecht,noordholland,zuidholland,zeeland,flevoland,noordbrabant,limburg;
function prefillMap() {
	base = new Image(); base.src=fotodir+"nederland.gif";
	groningen = new Image(); groningen.src=fotodir+"groningen.gif";
	friesland = new Image(); friesland.src=fotodir+"friesland.gif";
	drenthe = new Image(); drenthe.src=fotodir+"drenthe.gif";
	overijssel = new Image(); overijssel.src=fotodir+"overijssel.gif";
	gelderland = new Image(); gelderland.src=fotodir+"gelderland.gif";
	utrecht = new Image(); utrecht.src=fotodir+"utrecht.gif";
	noordholland = new Image(); noordholland.src=fotodir+"noordholland.gif";
	zuidholland = new Image(); zuidholland.src=fotodir+"zuidholland.gif";
	zeeland = new Image(); zeeland.src=fotodir+"zeeland.gif";
	flevoland = new Image(); flevoland.src=fotodir+"flevoland.gif";
	noordbrabant = new Image(); noordbrabant.src=fotodir+"noordbrabant.gif";
	limburg = new Image(); limburg.src=fotodir+"limburg.gif";
	$("area").click(function(event) {event.preventDefault();});
	$('img#map').attr('src',base.src);
}
function selectMap(provincie) {
	base.src=provincie.src;
}
function restoreMap() {
	$('img#map').attr('src',base.src);
	showGeen("false");//cleanup hovertext 
}
function hoverMap(prov) {
	var provincie = new Image(); provincie.src=prov.src;
	$('img#map').attr('src',provincie.src);
}
/* JavaScript Document */
function showGeen(val) {
	if (val == 'true') $('#Geen').css('visibility','visible');
	else $('#Geen').css('visibility','hidden');
}

function Kies(val) {
			$('#Groningen').css('visibility','hidden');
			$('#Friesland').css('visibility','hidden');
			$('#Drenthe').css('visibility','hidden');
			$('#Overijssel').css('visibility','hidden');
			$('#Gelderland').css('visibility','hidden');
			$('#Utrecht').css('visibility','hidden');
			$('#Noord-Holland').css('visibility','hidden');
			$('#Zuid-Holland').css('visibility','hidden');
			$('#Zeeland').css('visibility','hidden');
			$('#Flevoland').css('visibility','hidden');
			$('#Noord-Brabant').css('visibility','hidden');
			$('#Limburg').css('visibility','hidden');
	if (val == 'Helaas') $('#Helaas').css('visibility','visible');
	else {
		$('#Helaas').css('visibility','hidden');
		switch(val) {
			case "Groningen": $('#Groningen').css('visibility','visible'); $('#keuze').attr('value','Groningen');selectMap(groningen);break;
			case "Friesland": $('#Friesland').css('visibility','visible'); $('#keuze').attr('value','Friesland');selectMap(friesland); break;
			case "Drenthe": $('#Drenthe').css('visibility','visible'); $('#keuze').attr('value','Drenthe');selectMap(drenthe);break;
			case "Overijssel": $('#Overijssel').css('visibility','visible'); $('#keuze').attr('value','Overijssel');selectMap(overijssel);break;
			case "Gelderland": $('#Gelderland').css('visibility','visible'); $('#keuze').attr('value','Gelderland');selectMap(gelderland);break;
			case "Utrecht": $('#Utrecht').css('visibility','visible'); $('#keuze').attr('value','Utrecht');selectMap(utrecht);break;
			case "Noord-Holland": $('#Noord-Holland').css('visibility','visible'); $('#keuze').attr('value','Noord-Holland');selectMap(noordholland);break;
			case "Zuid-Holland": $('#Zuid-Holland').css('visibility','visible'); $('#keuze').attr('value','Zuid-Holland');selectMap(zuidholland);break;
			case "Zeeland": $('#Zeeland').css('visibility','visible'); $('#keuze').attr('value','Zeeland');selectMap(zeeland);break;
			case "Flevoland": $('#Helaas').css('visibility','visible'); $('#keuze').attr('value','Flevoland');selectMap(flevoland);break;
			case "Noord-Brabant": $('#Noord-Brabant').css('visibility','visible'); $('#keuze').attr('value','Noord-Brabant');selectMap(noordbrabant);break;
			case "Limburg": $('#Limburg').css('visibility','visible'); $('#keuze').attr('value','Limburg');selectMap(limburg);break;
			default: $('#Helaas').css('visibility','hidden');
		}
		restoreMap();
	}
}
//
	
	function SetPopWindow(u) {
		var sHtml = "";
		FillStrings(u);
		sHtml += "<!DOCTYPE html>"+
"<html><head><meta charset='UTF-8' />"+
"<meta name='copyright' content='OuderWordenInEigenHuis, 2004-2011' />"+
"<meta http-equiv='imagetoolbar' content='no' />"+
"<meta name='viewport' content='width=device-width, initial-scale=1.8, maximum-scale=2.0' />"+
"<link href='./css/popuptools.css' rel='stylesheet' type='text/css' />"+
"<title>Seniorkeur Klusser</title></head><body><div class='popfield'>"+
"<a class='logo' href="+strLink+"><img src='"+fotodir+"logo "+u.jpg+".jpg' alt=''></a>"+
"<a class='foto' href="+strLink+"><img src='"+fotodir+"foto "+u.jpg+".jpg' alt=''></a>"+
"<div id='namen'>"+u.naam+"<br />"+u.plaats+"<br /><a href="+strLink+">"+strLinkName+"</a></div>"+
"<div id='adres'>"+strAdres+"</div>"+
"</div></body></html>";
		msgWindowSKK=window.open("./lib/titleSKK.htm",
			"ouderworden",
			"toolbar=no,width=" + breedte + ",height=" + hoogte + ", directories=no, scrollbars=no, resizable=no, menubar=no");
		msgWindowSKK.window.document.write(sHtml);
		msgWindowSKK.window.document.close();
		msgWindowSKK.window.focus();
	}

