function showMap(location){

	config=new Array();

	//make an array of all the locations
	//use: http://tools.locatienet.com/location/edit/mapscript.asp
	//config_id: 7179
	config["address"]=new Array();
	config["address"]["amsterdam1"]="489242_5235589_Gerard%20Douplein_6_1072VE_amsterdam__NL_5";
	config["address"]["amsterdam2"]="487863_5235671_Alexander%20Boersstraat%20_35_1071KW_amsterdam__NL_5";
	config["address"]["hilversum"]="517468_5221542_Gijsbrecht%20van%20Amstelstraat_70b_1213CL_hilversum__NL_5";
	config["address"]["huizen1"]="524181_5230099_Ambachtsweg_7_1271AL_huizen__NL_5";
	config["address"]["huizen2"]="523332_5229802_Havenstraat_2_1271AE_huizen__NL_5";
	config["address"]["soest"]="529150_5218709_Burgemeester%20Grothestraat_19_3761CK_soest__NL_5";
	config["address"]["zeewolde"]="550679_5235306_Edisonweg%20_30_3899AZ_Zeewolde__NL_5";

	//set the properties of your map
	config["width"]="620";
	config["height"]="450";
	config["config_id"]=7179;
	config["language"]="dutch";
	config["zoom"]=4;
	config["markertext"]="Phoenix%20Verf";
	
	mapURL='http://tools.locatienet.com/location/map.asp?address='+config["address"][location]+'&config_id='+config["config_id"]+'&language='+config["language"]+'&zoom='+config["zoom"]+'&markertext='+config["markertext"];
	window.open(mapURL, "", "width="+config["width"]+", height="+config["height"]);
}



function ShowLevel(LevelId) {
	//alert("showlevel aangeroepen");
	var ThisLevel = document.getElementById(LevelId);
	if(ThisLevel.style.display == "none")	{
		ThisLevel.style.display = "block";
 		SetCookie('menuUitklap', 1);
	}	else {
		HideLevel(LevelId);
	}
}	

function HideLevel(LevelId) {
	var ThisLevel = document.getElementById(LevelId);
	ThisLevel.style.display = "none";
 	SetCookie('menuUitklap', 0);
}

function checkFrame() {
	if (top.location.pathname.indexOf("main.php") > 0 || top.location.pathname.indexOf("leftmenu.php") > 0 || top.location.pathname.indexOf("topmenu.php") > 0) {
		top.location.href = "index.php" + location.search;
	}
}

function changeVerzend(prijs, totale_prijs, item) {
	thediv = document.getElementById("verzendkosten");
	totaal = document.getElementById("totaal");	
	
	if (item == 1 || item == 2) {
		thediv.innerHTML = "&euro " + prijs + ".00" ;
		totaal.innerHTML = "&euro " + (totale_prijs + prijs);
	} else {
		thediv.innerHTML = "&euro 0.00" ;
		totaal.innerHTML = "&euro " + totale_prijs;
		
	}
	
}

function SetCookie(cookieName,cookieValue,nDays) {
 var today = new Date();
 var expire = new Date();
 if (nDays==null || nDays==0) nDays=1;
 expire.setTime(today.getTime() + 3600000*24*nDays);
 document.cookie = cookieName+"="+escape(cookieValue)
                 + ";expires="+expire.toGMTString();
}