var subareaIDArray = new Array(); subareaIDArray[0] = '488,486,491,483,484,481,487,493,494,489,482,492,485' subareaIDArray[1] = '488' subareaIDArray[2] = '486' subareaIDArray[3] = '491' subareaIDArray[4] = '483' subareaIDArray[5] = '484' subareaIDArray[6] = '481' subareaIDArray[7] = '487' subareaIDArray[8] = '493' subareaIDArray[9] = '494' subareaIDArray[10] = '489' subareaIDArray[11] = '482' subareaIDArray[12] = '492' subareaIDArray[13] = '485' function setCatareaID(){ var areaIndex = document.getElementById('areaIndex'); if(areaIndex != null){ var subareaID = subareaIDArray[areaIndex.selectedIndex]; if(subareaID != null){ document.getElementById('catarea').value = subareaID; } } } function change() { var areaIndex = document.getElementById('areaIndex').value; var obj = document.getElementById("dot" + areaIndex); unset(); if(obj != null){ obj.style.display = "inline"; } } function unset(){ var i = 1; for(i = 1; i <= subareaIDArray.length; i++){ var obj = document.getElementById("dot" + i); if (obj != null) { obj.style.display = "none"; } } } function followLink(id){ if(id == "488"){ setLocation("aarsballe/"); } else if(id == "486"){ setLocation("allinge/"); } else if(id == "491"){ setLocation("arnager/"); } else if(id == "483"){ setLocation("balka/"); } else if(id == "484"){ setLocation("dueodde/"); } else if(id == "481"){ setLocation("gudhjem/"); } else if(id == "487"){ setLocation("hasle/"); } else if(id == "493"){ setLocation("knudsker/"); } else if(id == "494"){ setLocation("sandvig/"); } else if(id == "489"){ setLocation("snogebaek/"); } else if(id == "482"){ setLocation("soemarken/"); } else if(id == "492"){ setLocation("sorthat/"); } else if(id == "485"){ setLocation("svaneke/"); } } function setLocation(url){ location.href = url; } //Added 03-12-2007 var ifbo=null; function ifbinit() { if (document.addEventListener) { document.addEventListener("DOMContentLoaded", ifbpl2, false); } else { if (window.onload) { ifbo=window.onload; } window.onload=ifbpl2; } } function ifbpl2() { // quit if this function has already been called if (arguments.callee.done) return; // flag this function so we don't do the same thing twice arguments.callee.done = true; if (ifbo!=null){ ifbo(); } }