var arrClickLisboaFlag = new Array(26);
for (i = 0; i < arrClickLisboaFlag.length; i++) {
arrClickLisboaFlag[i] = false;
}
$(document).ready(function(){
//Lisboa----------------------------------------------------
$('#lisboa_area1').mouseover(function(){$('#lisboa_area1_on').css('visibility','visible');
hiddenMap(1);
});$('#lisboa_area1_on').click(function(){
if(arrClickLisboaFlag[1] == false) {
$('#LisboaArea1').attr({'checked':'checked'});
$('#Lisboa_area1_on').css('visibility','visible');
arrClickLisboaFlag[1] = true;
} else {
$('#LisboaArea1').removeAttr('checked');
$('#Lisboa_area1_on').css('visibility','hidden');
arrClickLisboaFlag[1] = false;
}
});$('#lisboa_area1_on').mouseout(function(){
if(arrClickLisboaFlag[1] == false)
$('#lisboa_area1_on').css('visibility','hidden');
});$('#LisboaArea1').click(function(){
if(arrClickLisboaFlag[1] == false) {$('#lisboa_area1_on').css('visibility','visible'); arrClickLisboaFlag[1] = true;
} else {$('#lisboa_area1_on').css('visibility','hidden'); arrClickLisboaFlag[1] = false;
}
});if($('#LisboaArea1').attr('checked') == 'checked') {$('#lisboa_area1_on').css('visibility','visible');arrClickLisboaFlag[1] = true;
}$('#lisboa_area2').mouseover(function(){$('#lisboa_area2_on').css('visibility','visible');
hiddenMap(2);
});$('#lisboa_area2_on').click(function(){
if(arrClickLisboaFlag[2] == false) {
$('#LisboaArea2').attr({'checked':'checked'});
$('#Lisboa_area2_on').css('visibility','visible');
arrClickLisboaFlag[2] = true;
} else {
$('#LisboaArea2').removeAttr('checked');
$('#Lisboa_area2_on').css('visibility','hidden');
arrClickLisboaFlag[2] = false;
}
});$('#lisboa_area2_on').mouseout(function(){
if(arrClickLisboaFlag[2] == false)
$('#lisboa_area2_on').css('visibility','hidden');
});$('#LisboaArea2').click(function(){
if(arrClickLisboaFlag[2] == false) {$('#lisboa_area2_on').css('visibility','visible'); arrClickLisboaFlag[2] = true;
} else {$('#lisboa_area2_on').css('visibility','hidden'); arrClickLisboaFlag[2] = false;
}
});if($('#LisboaArea2').attr('checked') == 'checked') {$('#lisboa_area2_on').css('visibility','visible');arrClickLisboaFlag[2] = true;
}$('#lisboa_area3').mouseover(function(){$('#lisboa_area3_on').css('visibility','visible');
hiddenMap(3);
});$('#lisboa_area3_on').click(function(){
if(arrClickLisboaFlag[3] == false) {
$('#LisboaArea3').attr({'checked':'checked'});
$('#Lisboa_area3_on').css('visibility','visible');
arrClickLisboaFlag[3] = true;
} else {
$('#LisboaArea3').removeAttr('checked');
$('#Lisboa_area3_on').css('visibility','hidden');
arrClickLisboaFlag[3] = false;
}
});$('#lisboa_area3_on').mouseout(function(){
if(arrClickLisboaFlag[3] == false)
$('#lisboa_area3_on').css('visibility','hidden');
});$('#LisboaArea3').click(function(){
if(arrClickLisboaFlag[3] == false) {$('#lisboa_area3_on').css('visibility','visible'); arrClickLisboaFlag[3] = true;
} else {$('#lisboa_area3_on').css('visibility','hidden'); arrClickLisboaFlag[3] = false;
}
});if($('#LisboaArea3').attr('checked') == 'checked') {$('#lisboa_area3_on').css('visibility','visible');arrClickLisboaFlag[3] = true;
}$('#lisboa_area4').mouseover(function(){$('#lisboa_area4_1_on').css('visibility','visible');$('#lisboa_area4_2_on').css('visibility','visible');
hiddenMap(4);
});$('#lisboa_area4_1_on').click(function(){
if(arrClickLisboaFlag[4] == false) {
$('#LisboaArea4').attr({'checked':'checked'});$('#lisboa_area4_1_on').css('visibility','visible');$('#lisboa_area4_2_on').css('visibility','visible'); arrClickLisboaFlag[4] = true;
} else {
$('#LisboaArea4').removeAttr('checked');$('#Lisboa_area4_1_on').css('visibility','hidden');$('#Lisboa_area4_2_on').css('visibility','hidden'); arrClickLisboaFlag[4] = false;
}
});$('#lisboa_area4_2_on').click(function(){
if(arrClickLisboaFlag[4] == false) {
$('#LisboaArea4').attr({'checked':'checked'});$('#lisboa_area4_1_on').css('visibility','visible');$('#lisboa_area4_2_on').css('visibility','visible'); arrClickLisboaFlag[4] = true;
} else {
$('#LisboaArea4').removeAttr('checked');$('#Lisboa_area4_1_on').css('visibility','hidden');$('#Lisboa_area4_2_on').css('visibility','hidden'); arrClickLisboaFlag[4] = false;
}
});$('#lisboa_area4_1_on').mouseout(function(){
if(arrClickLisboaFlag[4] == false) {$('#lisboa_area4_1_on').css('visibility','hidden');$('#lisboa_area4_2_on').css('visibility','hidden');}
});$('#lisboa_area4_2_on').mouseout(function(){
if(arrClickLisboaFlag[4] == false) {$('#lisboa_area4_1_on').css('visibility','hidden');$('#lisboa_area4_2_on').css('visibility','hidden');}
});$('#LisboaArea4').click(function(){
if(arrClickLisboaFlag[4] == false) {$('#lisboa_area4_1_on').css('visibility','visible');$('#lisboa_area4_2_on').css('visibility','visible'); arrClickLisboaFlag[4] = true;
} else {$('#lisboa_area4_1_on').css('visibility','hidden');$('#lisboa_area4_2_on').css('visibility','hidden'); arrClickLisboaFlag[4] = false;
}
});if($('#LisboaArea4').attr('checked') == 'checked') {$('#lisboa_area4_1_on').css('visibility','visible');$('#lisboa_area4_2_on').css('visibility','visible');arrClickLisboaFlag[4] = true;
}$('#lisboa_area5').mouseover(function(){$('#lisboa_area5_on').css('visibility','visible');
hiddenMap(5);
});$('#lisboa_area5_on').click(function(){
if(arrClickLisboaFlag[5] == false) {
$('#LisboaArea5').attr({'checked':'checked'});
$('#Lisboa_area5_on').css('visibility','visible');
arrClickLisboaFlag[5] = true;
} else {
$('#LisboaArea5').removeAttr('checked');
$('#Lisboa_area5_on').css('visibility','hidden');
arrClickLisboaFlag[5] = false;
}
});$('#lisboa_area5_on').mouseout(function(){
if(arrClickLisboaFlag[5] == false)
$('#lisboa_area5_on').css('visibility','hidden');
});$('#LisboaArea5').click(function(){
if(arrClickLisboaFlag[5] == false) {$('#lisboa_area5_on').css('visibility','visible'); arrClickLisboaFlag[5] = true;
} else {$('#lisboa_area5_on').css('visibility','hidden'); arrClickLisboaFlag[5] = false;
}
});if($('#LisboaArea5').attr('checked') == 'checked') {$('#lisboa_area5_on').css('visibility','visible');arrClickLisboaFlag[5] = true;
}$('#lisboa_area6').mouseover(function(){$('#lisboa_area6_on').css('visibility','visible');
hiddenMap(6);
});$('#lisboa_area6_on').click(function(){
if(arrClickLisboaFlag[6] == false) {
$('#LisboaArea6').attr({'checked':'checked'});
$('#Lisboa_area6_on').css('visibility','visible');
arrClickLisboaFlag[6] = true;
} else {
$('#LisboaArea6').removeAttr('checked');
$('#Lisboa_area6_on').css('visibility','hidden');
arrClickLisboaFlag[6] = false;
}
});$('#lisboa_area6_on').mouseout(function(){
if(arrClickLisboaFlag[6] == false)
$('#lisboa_area6_on').css('visibility','hidden');
});$('#LisboaArea6').click(function(){
if(arrClickLisboaFlag[6] == false) {$('#lisboa_area6_on').css('visibility','visible'); arrClickLisboaFlag[6] = true;
} else {$('#lisboa_area6_on').css('visibility','hidden'); arrClickLisboaFlag[6] = false;
}
});if($('#LisboaArea6').attr('checked') == 'checked') {$('#lisboa_area6_on').css('visibility','visible');arrClickLisboaFlag[6] = true;
}$('#lisboa_area7').mouseover(function(){$('#lisboa_area7_on').css('visibility','visible');
hiddenMap(7);
});$('#lisboa_area7_on').click(function(){
if(arrClickLisboaFlag[7] == false) {
$('#LisboaArea7').attr({'checked':'checked'});
$('#Lisboa_area7_on').css('visibility','visible');
arrClickLisboaFlag[7] = true;
} else {
$('#LisboaArea7').removeAttr('checked');
$('#Lisboa_area7_on').css('visibility','hidden');
arrClickLisboaFlag[7] = false;
}
});$('#lisboa_area7_on').mouseout(function(){
if(arrClickLisboaFlag[7] == false)
$('#lisboa_area7_on').css('visibility','hidden');
});$('#LisboaArea7').click(function(){
if(arrClickLisboaFlag[7] == false) {$('#lisboa_area7_on').css('visibility','visible'); arrClickLisboaFlag[7] = true;
} else {$('#lisboa_area7_on').css('visibility','hidden'); arrClickLisboaFlag[7] = false;
}
});if($('#LisboaArea7').attr('checked') == 'checked') {$('#lisboa_area7_on').css('visibility','visible');arrClickLisboaFlag[7] = true;
}$('#lisboa_area8').mouseover(function(){$('#lisboa_area8_on').css('visibility','visible');
hiddenMap(8);
});$('#lisboa_area8_on').click(function(){
if(arrClickLisboaFlag[8] == false) {
$('#LisboaArea8').attr({'checked':'checked'});
$('#Lisboa_area8_on').css('visibility','visible');
arrClickLisboaFlag[8] = true;
} else {
$('#LisboaArea8').removeAttr('checked');
$('#Lisboa_area8_on').css('visibility','hidden');
arrClickLisboaFlag[8] = false;
}
});$('#lisboa_area8_on').mouseout(function(){
if(arrClickLisboaFlag[8] == false)
$('#lisboa_area8_on').css('visibility','hidden');
});$('#LisboaArea8').click(function(){
if(arrClickLisboaFlag[8] == false) {$('#lisboa_area8_on').css('visibility','visible'); arrClickLisboaFlag[8] = true;
} else {$('#lisboa_area8_on').css('visibility','hidden'); arrClickLisboaFlag[8] = false;
}
});if($('#LisboaArea8').attr('checked') == 'checked') {$('#lisboa_area8_on').css('visibility','visible');arrClickLisboaFlag[8] = true;
}$('#lisboa_area9').mouseover(function(){$('#lisboa_area9_on').css('visibility','visible');
hiddenMap(9);
});$('#lisboa_area9_on').click(function(){
if(arrClickLisboaFlag[9] == false) {
$('#LisboaArea9').attr({'checked':'checked'});
$('#Lisboa_area9_on').css('visibility','visible');
arrClickLisboaFlag[9] = true;
} else {
$('#LisboaArea9').removeAttr('checked');
$('#Lisboa_area9_on').css('visibility','hidden');
arrClickLisboaFlag[9] = false;
}
});$('#lisboa_area9_on').mouseout(function(){
if(arrClickLisboaFlag[9] == false)
$('#lisboa_area9_on').css('visibility','hidden');
});$('#LisboaArea9').click(function(){
if(arrClickLisboaFlag[9] == false) {$('#lisboa_area9_on').css('visibility','visible'); arrClickLisboaFlag[9] = true;
} else {$('#lisboa_area9_on').css('visibility','hidden'); arrClickLisboaFlag[9] = false;
}
});if($('#LisboaArea9').attr('checked') == 'checked') {$('#lisboa_area9_on').css('visibility','visible');arrClickLisboaFlag[9] = true;
}$('#lisboa_area10').mouseover(function(){$('#lisboa_area10_on').css('visibility','visible');
hiddenMap(10);
});$('#lisboa_area10_on').click(function(){
if(arrClickLisboaFlag[10] == false) {
$('#LisboaArea10').attr({'checked':'checked'});
$('#Lisboa_area10_on').css('visibility','visible');
arrClickLisboaFlag[10] = true;
} else {
$('#LisboaArea10').removeAttr('checked');
$('#Lisboa_area10_on').css('visibility','hidden');
arrClickLisboaFlag[10] = false;
}
});$('#lisboa_area10_on').mouseout(function(){
if(arrClickLisboaFlag[10] == false)
$('#lisboa_area10_on').css('visibility','hidden');
});$('#LisboaArea10').click(function(){
if(arrClickLisboaFlag[10] == false) {$('#lisboa_area10_on').css('visibility','visible'); arrClickLisboaFlag[10] = true;
} else {$('#lisboa_area10_on').css('visibility','hidden'); arrClickLisboaFlag[10] = false;
}
});if($('#LisboaArea10').attr('checked') == 'checked') {$('#lisboa_area10_on').css('visibility','visible');arrClickLisboaFlag[10] = true;
}$('#lisboa_area11').mouseover(function(){$('#lisboa_area11_on').css('visibility','visible');
hiddenMap(11);
});$('#lisboa_area11_on').click(function(){
if(arrClickLisboaFlag[11] == false) {
$('#LisboaArea11').attr({'checked':'checked'});
$('#Lisboa_area11_on').css('visibility','visible');
arrClickLisboaFlag[11] = true;
} else {
$('#LisboaArea11').removeAttr('checked');
$('#Lisboa_area11_on').css('visibility','hidden');
arrClickLisboaFlag[11] = false;
}
});$('#lisboa_area11_on').mouseout(function(){
if(arrClickLisboaFlag[11] == false)
$('#lisboa_area11_on').css('visibility','hidden');
});$('#LisboaArea11').click(function(){
if(arrClickLisboaFlag[11] == false) {$('#lisboa_area11_on').css('visibility','visible'); arrClickLisboaFlag[11] = true;
} else {$('#lisboa_area11_on').css('visibility','hidden'); arrClickLisboaFlag[11] = false;
}
});if($('#LisboaArea11').attr('checked') == 'checked') {$('#lisboa_area11_on').css('visibility','visible');arrClickLisboaFlag[11] = true;
}$('#lisboa_area12').mouseover(function(){$('#lisboa_area12_on').css('visibility','visible');
hiddenMap(12);
});$('#lisboa_area12_on').click(function(){
if(arrClickLisboaFlag[12] == false) {
$('#LisboaArea12').attr({'checked':'checked'});
$('#Lisboa_area12_on').css('visibility','visible');
arrClickLisboaFlag[12] = true;
} else {
$('#LisboaArea12').removeAttr('checked');
$('#Lisboa_area12_on').css('visibility','hidden');
arrClickLisboaFlag[12] = false;
}
});$('#lisboa_area12_on').mouseout(function(){
if(arrClickLisboaFlag[12] == false)
$('#lisboa_area12_on').css('visibility','hidden');
});$('#LisboaArea12').click(function(){
if(arrClickLisboaFlag[12] == false) {$('#lisboa_area12_on').css('visibility','visible'); arrClickLisboaFlag[12] = true;
} else {$('#lisboa_area12_on').css('visibility','hidden'); arrClickLisboaFlag[12] = false;
}
});if($('#LisboaArea12').attr('checked') == 'checked') {$('#lisboa_area12_on').css('visibility','visible');arrClickLisboaFlag[12] = true;
}$('#lisboa_area13').mouseover(function(){$('#lisboa_area13_on').css('visibility','visible');
hiddenMap(13);
});$('#lisboa_area13_on').click(function(){
if(arrClickLisboaFlag[13] == false) {
$('#LisboaArea13').attr({'checked':'checked'});
$('#Lisboa_area13_on').css('visibility','visible');
arrClickLisboaFlag[13] = true;
} else {
$('#LisboaArea13').removeAttr('checked');
$('#Lisboa_area13_on').css('visibility','hidden');
arrClickLisboaFlag[13] = false;
}
});$('#lisboa_area13_on').mouseout(function(){
if(arrClickLisboaFlag[13] == false)
$('#lisboa_area13_on').css('visibility','hidden');
});$('#LisboaArea13').click(function(){
if(arrClickLisboaFlag[13] == false) {$('#lisboa_area13_on').css('visibility','visible'); arrClickLisboaFlag[13] = true;
} else {$('#lisboa_area13_on').css('visibility','hidden'); arrClickLisboaFlag[13] = false;
}
});if($('#LisboaArea13').attr('checked') == 'checked') {$('#lisboa_area13_on').css('visibility','visible');arrClickLisboaFlag[13] = true;
}$('#lisboa_area14').mouseover(function(){$('#lisboa_area14_on').css('visibility','visible');
hiddenMap(14);
});$('#lisboa_area14_on').click(function(){
if(arrClickLisboaFlag[14] == false) {
$('#LisboaArea14').attr({'checked':'checked'});
$('#Lisboa_area14_on').css('visibility','visible');
arrClickLisboaFlag[14] = true;
} else {
$('#LisboaArea14').removeAttr('checked');
$('#Lisboa_area14_on').css('visibility','hidden');
arrClickLisboaFlag[14] = false;
}
});$('#lisboa_area14_on').mouseout(function(){
if(arrClickLisboaFlag[14] == false)
$('#lisboa_area14_on').css('visibility','hidden');
});$('#LisboaArea14').click(function(){
if(arrClickLisboaFlag[14] == false) {$('#lisboa_area14_on').css('visibility','visible'); arrClickLisboaFlag[14] = true;
} else {$('#lisboa_area14_on').css('visibility','hidden'); arrClickLisboaFlag[14] = false;
}
});if($('#LisboaArea14').attr('checked') == 'checked') {$('#lisboa_area14_on').css('visibility','visible');arrClickLisboaFlag[14] = true;
}$('#lisboa_area15').mouseover(function(){$('#lisboa_area15_on').css('visibility','visible');
hiddenMap(15);
});$('#lisboa_area15_on').click(function(){
if(arrClickLisboaFlag[15] == false) {
$('#LisboaArea15').attr({'checked':'checked'});
$('#Lisboa_area15_on').css('visibility','visible');
arrClickLisboaFlag[15] = true;
} else {
$('#LisboaArea15').removeAttr('checked');
$('#Lisboa_area15_on').css('visibility','hidden');
arrClickLisboaFlag[15] = false;
}
});$('#lisboa_area15_on').mouseout(function(){
if(arrClickLisboaFlag[15] == false)
$('#lisboa_area15_on').css('visibility','hidden');
});$('#LisboaArea15').click(function(){
if(arrClickLisboaFlag[15] == false) {$('#lisboa_area15_on').css('visibility','visible'); arrClickLisboaFlag[15] = true;
} else {$('#lisboa_area15_on').css('visibility','hidden'); arrClickLisboaFlag[15] = false;
}
});if($('#LisboaArea15').attr('checked') == 'checked') {$('#lisboa_area15_on').css('visibility','visible');arrClickLisboaFlag[15] = true;
}$('#lisboa_area16').mouseover(function(){$('#lisboa_area16_on').css('visibility','visible');
hiddenMap(16);
});$('#lisboa_area16_on').click(function(){
if(arrClickLisboaFlag[16] == false) {
$('#LisboaArea16').attr({'checked':'checked'});
$('#Lisboa_area16_on').css('visibility','visible');
arrClickLisboaFlag[16] = true;
} else {
$('#LisboaArea16').removeAttr('checked');
$('#Lisboa_area16_on').css('visibility','hidden');
arrClickLisboaFlag[16] = false;
}
});$('#lisboa_area16_on').mouseout(function(){
if(arrClickLisboaFlag[16] == false)
$('#lisboa_area16_on').css('visibility','hidden');
});$('#LisboaArea16').click(function(){
if(arrClickLisboaFlag[16] == false) {$('#lisboa_area16_on').css('visibility','visible'); arrClickLisboaFlag[16] = true;
} else {$('#lisboa_area16_on').css('visibility','hidden'); arrClickLisboaFlag[16] = false;
}
});if($('#LisboaArea16').attr('checked') == 'checked') {$('#lisboa_area16_on').css('visibility','visible');arrClickLisboaFlag[16] = true;
}$('#lisboa_area17').mouseover(function(){$('#lisboa_area17_on').css('visibility','visible');
hiddenMap(17);
});$('#lisboa_area17_on').click(function(){
if(arrClickLisboaFlag[17] == false) {
$('#LisboaArea17').attr({'checked':'checked'});
$('#Lisboa_area17_on').css('visibility','visible');
arrClickLisboaFlag[17] = true;
} else {
$('#LisboaArea17').removeAttr('checked');
$('#Lisboa_area17_on').css('visibility','hidden');
arrClickLisboaFlag[17] = false;
}
});$('#lisboa_area17_on').mouseout(function(){
if(arrClickLisboaFlag[17] == false)
$('#lisboa_area17_on').css('visibility','hidden');
});$('#LisboaArea17').click(function(){
if(arrClickLisboaFlag[17] == false) {$('#lisboa_area17_on').css('visibility','visible'); arrClickLisboaFlag[17] = true;
} else {$('#lisboa_area17_on').css('visibility','hidden'); arrClickLisboaFlag[17] = false;
}
});if($('#LisboaArea17').attr('checked') == 'checked') {$('#lisboa_area17_on').css('visibility','visible');arrClickLisboaFlag[17] = true;
}$('#lisboa_area18').mouseover(function(){$('#lisboa_area18_on').css('visibility','visible');
hiddenMap(18);
});$('#lisboa_area18_on').click(function(){
if(arrClickLisboaFlag[18] == false) {
$('#LisboaArea18').attr({'checked':'checked'});
$('#Lisboa_area18_on').css('visibility','visible');
arrClickLisboaFlag[18] = true;
} else {
$('#LisboaArea18').removeAttr('checked');
$('#Lisboa_area18_on').css('visibility','hidden');
arrClickLisboaFlag[18] = false;
}
});$('#lisboa_area18_on').mouseout(function(){
if(arrClickLisboaFlag[18] == false)
$('#lisboa_area18_on').css('visibility','hidden');
});$('#LisboaArea18').click(function(){
if(arrClickLisboaFlag[18] == false) {$('#lisboa_area18_on').css('visibility','visible'); arrClickLisboaFlag[18] = true;
} else {$('#lisboa_area18_on').css('visibility','hidden'); arrClickLisboaFlag[18] = false;
}
});if($('#LisboaArea18').attr('checked') == 'checked') {$('#lisboa_area18_on').css('visibility','visible');arrClickLisboaFlag[18] = true;
}$('#lisboa_area19').mouseover(function(){$('#lisboa_area19_on').css('visibility','visible');
hiddenMap(19);
});$('#lisboa_area19_on').click(function(){
if(arrClickLisboaFlag[19] == false) {
$('#LisboaArea19').attr({'checked':'checked'});
$('#Lisboa_area19_on').css('visibility','visible');
arrClickLisboaFlag[19] = true;
} else {
$('#LisboaArea19').removeAttr('checked');
$('#Lisboa_area19_on').css('visibility','hidden');
arrClickLisboaFlag[19] = false;
}
});$('#lisboa_area19_on').mouseout(function(){
if(arrClickLisboaFlag[19] == false)
$('#lisboa_area19_on').css('visibility','hidden');
});$('#LisboaArea19').click(function(){
if(arrClickLisboaFlag[19] == false) {$('#lisboa_area19_on').css('visibility','visible'); arrClickLisboaFlag[19] = true;
} else {$('#lisboa_area19_on').css('visibility','hidden'); arrClickLisboaFlag[19] = false;
}
});if($('#LisboaArea19').attr('checked') == 'checked') {$('#lisboa_area19_on').css('visibility','visible');arrClickLisboaFlag[19] = true;
}$('#lisboa_area20').mouseover(function(){$('#lisboa_area20_on').css('visibility','visible');
hiddenMap(20);
});$('#lisboa_area20_on').click(function(){
if(arrClickLisboaFlag[20] == false) {
$('#LisboaArea20').attr({'checked':'checked'});
$('#Lisboa_area20_on').css('visibility','visible');
arrClickLisboaFlag[20] = true;
} else {
$('#LisboaArea20').removeAttr('checked');
$('#Lisboa_area20_on').css('visibility','hidden');
arrClickLisboaFlag[20] = false;
}
});$('#lisboa_area20_on').mouseout(function(){
if(arrClickLisboaFlag[20] == false)
$('#lisboa_area20_on').css('visibility','hidden');
});$('#LisboaArea20').click(function(){
if(arrClickLisboaFlag[20] == false) {$('#lisboa_area20_on').css('visibility','visible'); arrClickLisboaFlag[20] = true;
} else {$('#lisboa_area20_on').css('visibility','hidden'); arrClickLisboaFlag[20] = false;
}
});if($('#LisboaArea20').attr('checked') == 'checked') {$('#lisboa_area20_on').css('visibility','visible');arrClickLisboaFlag[20] = true;
}$('#lisboa_area21').mouseover(function(){$('#lisboa_area21_on').css('visibility','visible');
hiddenMap(21);
});$('#lisboa_area21_on').click(function(){
if(arrClickLisboaFlag[21] == false) {
$('#LisboaArea21').attr({'checked':'checked'});
$('#Lisboa_area21_on').css('visibility','visible');
arrClickLisboaFlag[21] = true;
} else {
$('#LisboaArea21').removeAttr('checked');
$('#Lisboa_area21_on').css('visibility','hidden');
arrClickLisboaFlag[21] = false;
}
});$('#lisboa_area21_on').mouseout(function(){
if(arrClickLisboaFlag[21] == false)
$('#lisboa_area21_on').css('visibility','hidden');
});$('#LisboaArea21').click(function(){
if(arrClickLisboaFlag[21] == false) {$('#lisboa_area21_on').css('visibility','visible'); arrClickLisboaFlag[21] = true;
} else {$('#lisboa_area21_on').css('visibility','hidden'); arrClickLisboaFlag[21] = false;
}
});if($('#LisboaArea21').attr('checked') == 'checked') {$('#lisboa_area21_on').css('visibility','visible');arrClickLisboaFlag[21] = true;
}$('#lisboa_area22').mouseover(function(){$('#lisboa_area22_on').css('visibility','visible');
hiddenMap(22);
});$('#lisboa_area22_on').click(function(){
if(arrClickLisboaFlag[22] == false) {
$('#LisboaArea22').attr({'checked':'checked'});
$('#Lisboa_area22_on').css('visibility','visible');
arrClickLisboaFlag[22] = true;
} else {
$('#LisboaArea22').removeAttr('checked');
$('#Lisboa_area22_on').css('visibility','hidden');
arrClickLisboaFlag[22] = false;
}
});$('#lisboa_area22_on').mouseout(function(){
if(arrClickLisboaFlag[22] == false)
$('#lisboa_area22_on').css('visibility','hidden');
});$('#LisboaArea22').click(function(){
if(arrClickLisboaFlag[22] == false) {$('#lisboa_area22_on').css('visibility','visible'); arrClickLisboaFlag[22] = true;
} else {$('#lisboa_area22_on').css('visibility','hidden'); arrClickLisboaFlag[22] = false;
}
});if($('#LisboaArea22').attr('checked') == 'checked') {$('#lisboa_area22_on').css('visibility','visible');arrClickLisboaFlag[22] = true;
}$('#lisboa_area23').mouseover(function(){$('#lisboa_area23_on').css('visibility','visible');
hiddenMap(23);
});$('#lisboa_area23_on').click(function(){
if(arrClickLisboaFlag[23] == false) {
$('#LisboaArea23').attr({'checked':'checked'});
$('#Lisboa_area23_on').css('visibility','visible');
arrClickLisboaFlag[23] = true;
} else {
$('#LisboaArea23').removeAttr('checked');
$('#Lisboa_area23_on').css('visibility','hidden');
arrClickLisboaFlag[23] = false;
}
});$('#lisboa_area23_on').mouseout(function(){
if(arrClickLisboaFlag[23] == false)
$('#lisboa_area23_on').css('visibility','hidden');
});$('#LisboaArea23').click(function(){
if(arrClickLisboaFlag[23] == false) {$('#lisboa_area23_on').css('visibility','visible'); arrClickLisboaFlag[23] = true;
} else {$('#lisboa_area23_on').css('visibility','hidden'); arrClickLisboaFlag[23] = false;
}
});if($('#LisboaArea23').attr('checked') == 'checked') {$('#lisboa_area23_on').css('visibility','visible');arrClickLisboaFlag[23] = true;
}$('#lisboa_area24').mouseover(function(){$('#lisboa_area24_on').css('visibility','visible');
hiddenMap(24);
});$('#lisboa_area24_on').click(function(){
if(arrClickLisboaFlag[24] == false) {
$('#LisboaArea24').attr({'checked':'checked'});
$('#Lisboa_area24_on').css('visibility','visible');
arrClickLisboaFlag[24] = true;
} else {
$('#LisboaArea24').removeAttr('checked');
$('#Lisboa_area24_on').css('visibility','hidden');
arrClickLisboaFlag[24] = false;
}
});$('#lisboa_area24_on').mouseout(function(){
if(arrClickLisboaFlag[24] == false)
$('#lisboa_area24_on').css('visibility','hidden');
});$('#LisboaArea24').click(function(){
if(arrClickLisboaFlag[24] == false) {$('#lisboa_area24_on').css('visibility','visible'); arrClickLisboaFlag[24] = true;
} else {$('#lisboa_area24_on').css('visibility','hidden'); arrClickLisboaFlag[24] = false;
}
});if($('#LisboaArea24').attr('checked') == 'checked') {$('#lisboa_area24_on').css('visibility','visible');arrClickLisboaFlag[24] = true;
}if($('#LisboaArea25').attr('checked') == 'checked') {
$('#lisboa_suburb1_on').css('visibility','visible');
$('#lisboa_suburb2_on').css('visibility','visible');
$('#lisboa_suburb3_on').css('visibility','visible');
$('#lisboa_suburb4_on').css('visibility','visible');
arrClickLisboaFlag[25] = true;
}$('#lisboa_suburb1').mouseover(function(){
$('#lisboa_suburb1_on').css('visibility','visible');
$('#lisboa_suburb2_on').css('visibility','visible');
$('#lisboa_suburb3_on').css('visibility','visible');
$('#lisboa_suburb4_on').css('visibility','visible');
hiddenMap(25);
});$('#lisboa_suburb2').mouseover(function(){
$('#lisboa_suburb1_on').css('visibility','visible');
$('#lisboa_suburb2_on').css('visibility','visible');
$('#lisboa_suburb3_on').css('visibility','visible');
$('#lisboa_suburb4_on').css('visibility','visible');
hiddenMap(25);
});$('#lisboa_suburb3').mouseover(function(){
$('#lisboa_suburb1_on').css('visibility','visible');
$('#lisboa_suburb2_on').css('visibility','visible');
$('#lisboa_suburb3_on').css('visibility','visible');
$('#lisboa_suburb4_on').css('visibility','visible');
hiddenMap(25);
});$('#lisboa_suburb4').mouseover(function(){
$('#lisboa_suburb1_on').css('visibility','visible');
$('#lisboa_suburb2_on').css('visibility','visible');
$('#lisboa_suburb3_on').css('visibility','visible');
$('#lisboa_suburb4_on').css('visibility','visible');
hiddenMap(25);
});$('#lisboa_suburb1_on').mouseout(function(){
if(arrClickLisboaFlag[25] == false) {
$('#lisboa_suburb1_on').css('visibility','hidden');
$('#lisboa_suburb2_on').css('visibility','hidden');
$('#lisboa_suburb3_on').css('visibility','hidden');
$('#lisboa_suburb4_on').css('visibility','hidden');
}
});$('#lisboa_suburb2_on').mouseout(function(){
if(arrClickLisboaFlag[25] == false) {
$('#lisboa_suburb1_on').css('visibility','hidden');
$('#lisboa_suburb2_on').css('visibility','hidden');
$('#lisboa_suburb3_on').css('visibility','hidden');
$('#lisboa_suburb4_on').css('visibility','hidden');
}
});$('#lisboa_suburb3_on').mouseout(function(){
if(arrClickLisboaFlag[25] == false) {
$('#lisboa_suburb1_on').css('visibility','hidden');
$('#lisboa_suburb2_on').css('visibility','hidden');
$('#lisboa_suburb3_on').css('visibility','hidden');
$('#lisboa_suburb4_on').css('visibility','hidden');
}
});$('#lisboa_suburb4_on').mouseout(function(){
if(arrClickLisboaFlag[25] == false) {
$('#lisboa_suburb1_on').css('visibility','hidden');
$('#lisboa_suburb2_on').css('visibility','hidden');
$('#lisboa_suburb3_on').css('visibility','hidden');
$('#lisboa_suburb4_on').css('visibility','hidden');
}
});$('#lisboa_suburb1_on').click(function(){
if(arrClickLisboaFlag[25] == false) {
$('#LisboaArea25').attr({'checked':'checked'});
arrClickLisboaFlag[25] = true;
} else {
$('#LisboaArea25').removeAttr('checked');
arrClickLisboaFlag[25] = false;
}
});$('#lisboa_suburb2_on').click(function(){
if(arrClickLisboaFlag[25] == false) {
$('#LisboaArea25').attr({'checked':'checked'});
arrClickLisboaFlag[25] = true;
} else {
$('#LisboaArea25').removeAttr('checked');
arrClickLisboaFlag[25] = false;
}
});$('#lisboa_suburb3_on').click(function(){
if(arrClickLisboaFlag[25] == false) {
$('#LisboaArea25').attr({'checked':'checked'});
arrClickLisboaFlag[25] = true;
} else {
$('#LisboaArea25').removeAttr('checked');
arrClickLisboaFlag[25] = false;
}
});$('#lisboa_suburb4_on').click(function(){
if(arrClickLisboaFlag[25] == false) {
$('#LisboaArea25').attr({'checked':'checked'});
arrClickLisboaFlag[25] = true;
} else {
$('#LisboaArea25').removeAttr('checked');
arrClickLisboaFlag[25] = false;
}
});$('#LisboaArea25').click(function(){
if(arrClickLisboaFlag[25] == false) {
$('#lisboa_suburb1_on').css('visibility','visible');
$('#lisboa_suburb2_on').css('visibility','visible');
$('#lisboa_suburb3_on').css('visibility','visible');
$('#lisboa_suburb4_on').css('visibility','visible');
arrClickLisboaFlag[25] = true;
} else {
$('#lisboa_suburb1_on').css('visibility','hidden');
$('#lisboa_suburb2_on').css('visibility','hidden');
$('#lisboa_suburb3_on').css('visibility','hidden');
$('#lisboa_suburb4_on').css('visibility','hidden');
arrClickLisboaFlag[25] = false;
}
});$('#image_map').mouseleave(function(){hiddenMap(1);hiddenMap(2);hiddenMap(3);hiddenMap(4);hiddenMap(5);hiddenMap(6);hiddenMap(7);hiddenMap(8);hiddenMap(9);hiddenMap(10);hiddenMap(11);hiddenMap(12);hiddenMap(13);hiddenMap(14);hiddenMap(15);hiddenMap(16);hiddenMap(17);hiddenMap(18);hiddenMap(19);hiddenMap(20);hiddenMap(21);hiddenMap(22);hiddenMap(23);hiddenMap(24);hiddenMap(25);});});
function hiddenMap(id) {
var click_flag;
var sub_num;
for (i = 1; i <= 25; i = i +1) {
if(i != id && arrClickLisboaFlag[i] == false) {
if(i == 4) {
if(i == 4) {
sub_num = 4;
}
for(j = 1; j <= sub_num; j++) {
$('#lisboa_area'+i+'_'+j+'_on').css('visibility','hidden');
}
} else {
$('#lisboa_area'+i+'_on').css('visibility','hidden');
}
}
}
}