\n'); } // numSiteCat must be set to the number of attraction types var numSiteCat = 10; function sitePopup(siteid) { document.location.href='site_details.asp?siteID=' + siteid + '&frommap=true'; } function setCatVisAll(objElement,visibilityState) { for (i = 0; i < numSiteCat; i++) { window.document.interactiveMapForm["siteCat" + i].checked = visibilityState; } window.document.interactiveMap.SetVariable("setCatVisAllFS", visibilityState); if (visibilityState == 0) { mapCatArray.length = 0; setCookie(mapCookie); } else { mapCatArray.length = 0; var temp = "1,47,22,2,7,3,5,6,8,9"; mapCatArray = temp.split(","); setCookie(mapCookie,"1,47,22,2,7,3,5,6,8,9",0.01); } } function setCatVis(objElement,siteCatID) { if (objElement.checked == true) { visibilityState = 1; mapCatArray.push(siteCatID); } else { visibilityState = 0; for (var i = 0; i <= mapCatArray.length; i++) { if (mapCatArray[i] == siteCatID) { mapCatArray.splice(i,1); } } } window.document.interactiveMap.SetVariable("setCatVisFS", visibilityState); window.document.interactiveMap.SetVariable("setCatVisIDFS", siteCatID); setCookie(mapCookie,mapCatArray.join(","),0.01); } var mapCookie = "_mapcategories1"; var mapCatArray = new Array(); var mapCatStr = getCookie(mapCookie); if (mapCatStr != null) { mapCatArray = mapCatStr.split(","); } //-->
|
|||||||||||||||||||||||||||||||||||||||||||||