var subareaIDArray = new Array(); subareaIDArray[0] = '1651,1652,1653,1654,1655,1656,1657,1658,1659,1663' subareaIDArray[1] = '1651' subareaIDArray[2] = '1652' subareaIDArray[3] = '1653' subareaIDArray[4] = '1654' subareaIDArray[5] = '1655' subareaIDArray[6] = '1656' subareaIDArray[7] = '1657' subareaIDArray[8] = '1658' subareaIDArray[9] = '1659' subareaIDArray[10] = '1663' 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 == "1651"){ setLocation("chauve/"); } else if(id == "1652"){ setLocation("jard_sur_mer/"); } else if(id == "1653"){ setLocation("la_baule/"); } else if(id == "1654"){ setLocation("la_tranche_sur_mer/"); } else if(id == "1655"){ setLocation("les_sables_dolonne/"); } else if(id == "1656"){ setLocation("longeville_sur_mer/"); } else if(id == "1657"){ setLocation("nantes/"); } else if(id == "1658"){ setLocation("pornic/"); } else if(id == "1659"){ setLocation("port_bourgenay/"); } else if(id == "1663"){ setLocation("vouvant/"); } } 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(); } }