
﻿var jNetMapKeyID="jNetMap_Key";$(document).ready(function(){$("#"+jNetMapKeyID+" > div").mouseover(function(){$("div",this).show();});$("#"+jNetMapKeyID+" > div").mouseout(function(){$("div",this).hide();});$("#"+jNetMapKeyID+" > div > a").click(function(){var idSplit=$(this).parent().attr("id").split("_");var categoryId=idSplit[idSplit.length-1];if(categoryId>-1){var filename=$("img",this).attr("src");if(filename.indexOf("-off")==-1){var fileParts=filename.split(".");$("img",this).attr("src",fileParts[0]+"-off."+fileParts[1]);deactivateCategory(categoryId);}
else{$("img",this).attr("src",filename.replace("-off",""));activateCategory(categoryId);}
plotLocations();}});});function centerMapFromKey(latitude,longitude,zoom){jNetMap.SetCenterAndZoom(new VELatLong(latitude,longitude),zoom);plotLocations();}
function activateCategory(categoryId){if(jNetActiveCategories=="")
jNetActiveCategories=categoryId;else
jNetActiveCategories=jNetActiveCategories+","+categoryId;}
function deactivateCategory(categoryId){var categories=jNetActiveCategories.split(",");jNetActiveCategories="";for(var i=0;i<categories.length;i++){if(categories[i]!=categoryId)
jNetActiveCategories+=categories[i]+",";}
jNetActiveCategories=jNetActiveCategories.substr(0,jNetActiveCategories.length-1);}