var xenones=1; var mnhmeia=0; var fush=0; var anthropos=0; var selectableTextPanel; //////////////////////////////////////////////////////////////// function addHTMLControl() { addMagnifyControl(); // addXenonesControl(); // addMnhmeiaControl(); // addNeroControl(); // addFushControl(); // addAnthroposControl(); try{ // addFAQControl(); // addWeatherControl(); }catch(err){alert(err);} } function addMagnifyControl() { html='

'+ '
'+ 'Μεγάλος
Χάρτης
'; var magnify=new HtmlControl(html, { visible:true, printable:false }); map.addControl(magnify, new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize(15, 35))); GEvent.addDomListener(document.getElementById('smalllargemap'), 'click', function() { resizeMap(); var button=document.getElementById('biglargetxt'); var html=(mapshort==0? 'Μικρός
Χάρτης':'Μεγάλος
Χάρτης'); html=''+html+''; button.innerHTML=html; }); } function addXenonesControl() { var html = '
'+ ''+ 'Οι Ξενώνες
'; var cat15=new HtmlControl(html, { visible:true, printable:false }); map.addControl(cat15, new GControlPosition(G_ANCHOR_BOTTOM_LEFT, new GSize(4, 3))); GEvent.addDomListener(document.getElementById('cat15'), 'click', function() { // alert('15'); if (xenones==1) xenones=0; else xenones=1; if (xenones==1) { show(15); show(9); document.getElementById('cat15').style.background="#EADFC9"; } else { hide(15); hide(9); document.getElementById('cat15').style.background="white"; } } ); } function showXenones() { // alert('15'); if (xenones==1) xenones=0; else xenones=1; if (xenones==1) { show(15); } else { hide(15); } } function addMnhmeiaControl() { var html = '
'+ ''+ ''+ 'Τα Μνημεία
'; var cat15=new HtmlControl(html, { visible:true, printable:false }); map.addControl(cat15, new GControlPosition(G_ANCHOR_BOTTOM_LEFT, new GSize(93, 3))); GEvent.addDomListener(document.getElementById('cat6'), 'click', function() { // alert('15'); if (mnhmeia==1) mnhmeia=0; else mnhmeia=1; if (mnhmeia==1) { show(4); show(6); document.getElementById('cat6').style.background="#FADEB1"; } else { hide(4); hide(6); document.getElementById('cat6').style.background="white"; } } ); } function showMnhmeia() { if (mnhmeia==1) mnhmeia=0; else mnhmeia=1; if (mnhmeia==1) { show(4); show(6); // document.getElementById('cat6').style.background="#FADEB1"; } else { hide(4); hide(6); // document.getElementById('cat6').style.background="white"; } removeClusterMarker(); } function addNeroControl() { } function addFushControl() { var html = '
'+ ''+ 'Η Φύση
'; var cat15=new HtmlControl(html, { visible:true, printable:false }); map.addControl(cat15, new GControlPosition(G_ANCHOR_BOTTOM_LEFT, new GSize(198, 3))); GEvent.addDomListener(document.getElementById('cat5'), 'click', function() { // alert('5'); if (fush==1) fush=0; else fush=1; if (fush==1) { show(5); document.getElementById('cat5').style.background="#00ff7f"; } else { hide(5); document.getElementById('cat5').style.background="white"; } } ); } function showFush() { if (fush==1) fush=0; else fush=1; if (fush==1) { show(5); show(9); } else { hide(5); hide(9); // document.getElementById('cat5').style.background="white"; } removeClusterMarker(); } function addAnthroposControl() { var html = '
'+ ''+ 'Ο άνθρωπος
'; var cat15=new HtmlControl(html, { visible:true, printable:false }); map.addControl(cat15, new GControlPosition(G_ANCHOR_BOTTOM_LEFT, new GSize(262, 3))); GEvent.addDomListener(document.getElementById('cat9'), 'click', function() { // alert('15'); if (anthropos==1) anthropos=0; else anthropos=1; if (anthropos==1) { show(9); document.getElementById('cat9').style.background="#FFD380"; } else { hide(9); document.getElementById('cat9').style.background="white"; } } ); } function showAnthropos() { if (anthropos==1) anthropos=0; else anthropos=1; if (anthropos==1) { show(9); show(10); showPolylines(); } else { hide(9); hide(10); hidePolylines(); } removeClusterMarker(); } /////////////////////////////////////////////////////////////////////// function showPolylines() { for (var i=0; i