var subareaIDArray = new Array(); subareaIDArray[0] = '967,968,969,678,679,680' subareaIDArray[1] = '967' subareaIDArray[2] = '968' subareaIDArray[3] = '969' subareaIDArray[4] = '678' subareaIDArray[5] = '679' subareaIDArray[6] = '680' 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 == "967"){ setLocation("alcudia/"); } else if(id == "968"){ setLocation("andratx/"); } else if(id == "969"){ setLocation("fornalutx/"); } else if(id == "678"){ setLocation("ibiza/"); } else if(id == "679"){ setLocation("mallorca/"); } else if(id == "680"){ setLocation("menorca/"); } } 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(); } }