var subareaIDArray = new Array(); subareaIDArray[0] = '3765,3766,3767,3768,3770,3771,3772,3773,3774,3776,3777,3778' subareaIDArray[1] = '3765' subareaIDArray[2] = '3766' subareaIDArray[3] = '3767' subareaIDArray[4] = '3768' subareaIDArray[5] = '3770' subareaIDArray[6] = '3771' subareaIDArray[7] = '3772' subareaIDArray[8] = '3773' subareaIDArray[9] = '3774' subareaIDArray[10] = '3776' subareaIDArray[11] = '3777' subareaIDArray[12] = '3778' 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 == "3765"){ setLocation("balatongyorok/"); } else if(id == "3766"){ setLocation("cserszegtomaj/"); } else if(id == "3767"){ setLocation("egervar/"); } else if(id == "3768"){ setLocation("fonyod-belatelep/"); } else if(id == "3770"){ setLocation("gyenesdias/"); } else if(id == "3771"){ setLocation("heviz/"); } else if(id == "3772"){ setLocation("keszthely/"); } else if(id == "3773"){ setLocation("keszthely-kertvaros/"); } else if(id == "3774"){ setLocation("keszthely_zamor/"); } else if(id == "3776"){ setLocation("vindornyaszolos/"); } else if(id == "3777"){ setLocation("vonyarcvashegy/"); } else if(id == "3778"){ setLocation("zalakaros/"); } } 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(); } }