
var showSingleMap=false;var currentDistrictOver=false;function showDistrictDescription(district){if(!showSingleMap){$('#map_home_text_hover').html($('#district-'+district+'-content').html()).show();$('#map_home_text_start').hide();currentDistrictOver=district;}}
function hideDistrictDescription(){currentDistrictOver=false;setTimeout('hideDistrictDescriptionTimeout()',200);}
function hideDistrictDescriptionTimeout(){if(!showSingleMap&&!currentDistrictOver){$('#map_home_text_hover').hide();$('#map_home_text_start').show();}}
function openDistrict(district){if(showSingleMap){closeDistrict();}
else{showSingleMap=district;$('#map-home').css('opacity','0.5');var offset=$('#map-home').offset();$('#map_home_text_start,#map_home_text_hover').hide();$('#district-close').css({top:offset.top-108,left:offset.left+330}).show();$('#district-'+district).css({top:offset.top-111,left:offset.left+113}).width(310).show();}}
function closeDistrict(){openMap=false;$('#district-'+showSingleMap+',#district-close').hide();showSingleMap=false;$('#map-home').css('opacity','1');$('#map_home_text_start').show();return false;}