var subareaIDArray = new Array(); subareaIDArray[0] = '4551,4552,4553,4554,4555,4556,4557' subareaIDArray[1] = '4551' subareaIDArray[2] = '4552' subareaIDArray[3] = '4553' subareaIDArray[4] = '4554' subareaIDArray[5] = '4555' subareaIDArray[6] = '4556' subareaIDArray[7] = '4557' 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 == "4551"){ setLocation("donovaly/"); } else if(id == "4552"){ setLocation("hrinova-bratkovica/"); } else if(id == "4553"){ setLocation("kokava-linia/"); } else if(id == "4554"){ setLocation("kraliky/"); } else if(id == "4555"){ setLocation("krpacovo/"); } else if(id == "4556"){ setLocation("myto_pod_dumbierom/"); } else if(id == "4557"){ setLocation("nemecka/"); } } 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(); } }