var subareaIDArray = new Array(); subareaIDArray[0] = '2854,2856,2857,2861,2863,2865,2871' subareaIDArray[1] = '2854' subareaIDArray[2] = '2856' subareaIDArray[3] = '2857' subareaIDArray[4] = '2861' subareaIDArray[5] = '2863' subareaIDArray[6] = '2865' subareaIDArray[7] = '2871' 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 == "2854"){ setLocation("albufeira/"); } else if(id == "2856"){ setLocation("altura/"); } else if(id == "2857"){ setLocation("armacao_de_pera/"); } else if(id == "2861"){ setLocation("lagos/"); } else if(id == "2863"){ setLocation("loule/"); } else if(id == "2865"){ setLocation("porches/"); } else if(id == "2871"){ setLocation("vilamoura/"); } } 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(); } }