var subareaIDArray = new Array(); subareaIDArray[0] = '2031,2034,2035,2036,2037,2038,2039,2041,2042,2045,2048,2050,2051' subareaIDArray[1] = '2031' subareaIDArray[2] = '2034' subareaIDArray[3] = '2035' subareaIDArray[4] = '2036' subareaIDArray[5] = '2037' subareaIDArray[6] = '2038' subareaIDArray[7] = '2039' subareaIDArray[8] = '2041' subareaIDArray[9] = '2042' subareaIDArray[10] = '2045' subareaIDArray[11] = '2048' subareaIDArray[12] = '2050' subareaIDArray[13] = '2051' 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 == "2031"){ setLocation("halden/"); } else if(id == "2034"){ setLocation("hurdalsjoeen/"); } else if(id == "2035"){ setLocation("larvik/"); } else if(id == "2036"){ setLocation("maura/"); } else if(id == "2037"){ setLocation("nevlunghavn/"); } else if(id == "2038"){ setLocation("noetteroey/"); } else if(id == "2039"){ setLocation("onsoey/"); } else if(id == "2041"){ setLocation("saltnes/"); } else if(id == "2042"){ setLocation("sandefjord/"); } else if(id == "2045"){ setLocation("skotbu/"); } else if(id == "2048"){ setLocation("stavern/"); } else if(id == "2050"){ setLocation("tangen_berby/"); } else if(id == "2051"){ setLocation("toensberg/"); } } 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(); } }