var youdrive={handle:null,language:"el",resultsAddressDIV:null,resultsAddressFooterDIV:null,resultsHistoryDIV:null,mapObject:null,guid:null,getGuid:function(){if(youdrive.guid!=null){return youdrive.guid}var a,c;a="";for(var b=0;b<32;b++){if(b==8||b==12||b==16||b==20){a=a+"-"}c=Math.floor(Math.random()*16).toString(16).toUpperCase();a=a+c}this.guid=a;return a},getLoaderHtml:'<img alt="Παρακαλώ περιμένετε" src="pictures/loader.gif" />',getPredefinedPoints:function(b){var a="true";if(b==false){a="false"}var c="";c+='        <a href="#" onclick="youdrive.markers.createAndSetRoute(\'Αεροδρόμιο\',37.936616 ,23.944444,'+a+');return false;">Αεροδρόμιο</a><br />';c+='        <a href="#" onclick="youdrive.markers.createAndSetRoute(\'Κτελ Κηφισού\',38.00003, 23.702788,'+a+');return false;">Κτελ Κηφισού</a><br />';c+='        <a href="#" onclick="youdrive.markers.createAndSetRoute(\'Κτελ Αθηνών (Λιοσίων)\',38.01009, 23.722078,'+a+');return false;">Κτελ Αθηνών (Λιοσίων)</a><br />';c+='        <a href="#" onclick="youdrive.markers.createAndSetRoute(\'Σταθμός Λαρίσης\',37.99234, 23.720684,'+a+');return false;">Σταθμός Λαρίσης</a><br />';c+='        <a href="#" onclick="youdrive.markers.createAndSetRoute(\'Λιμάνι Πειραιά\',37.947844, 23.642030,'+a+');return false;">Λιμάνι Πειραιά</a><br />';c+="  ";return c},fixURL:function(a){if(document.domain=="localhost"){return"http://localhost/webservice.asmx/"+a}else{return"http://"+document.domain+"/webservice.asmx/"+a}},callService:function(c,d,b,e){if(typeof(c)=="undefined"){return}if(typeof(d)=="undefined"){return}if(typeof(b)=="undefined"){return}e=typeof(e)!="undefined"?e:"POST";$("#loading").css("display","");var a=youdrive.fixURL(c);$.ajax({type:"POST",url:a,dataType:"xml",data:d,success:function(g){$("#loading").css("display","none");var f=$(g).find("string").text();var h=JSON.parse(encrt.decode(f));b(h)}})}};youdrive.address={searchResults:null,searchText:"",notFoundString:function(){var a="Δεν βρέθηκε ! <br/>Βεβαιωθείτε ότι η αναζήτηση είναι της μορφής:<br/><b>οδός αριθμός</b><br/>πχ. ΑΚΡΟΠΟΛΕΩΣ 22";return a},findFreeText:function(a){searchText=a;$("#addressResultsDIV").html(youdrive.getLoaderHtml);try{youdrive.callService("FindAddressFreeText",{Password:youdrive.getGuid,Language:youdrive.language,Input:a},youdrive.address.findAddressReturn)}catch(b){console.error(b)}youdrive.log("Find","FreeText")},findDetailed:function(c,d,f,a){searchText=f+" "+a+", "+c+" "+d;$("#addressResultsDIV").html(youdrive.getLoaderHtml);if((a=="")||(a==0)){a=-1}try{youdrive.callService("FindAddress",{Password:youdrive.getGuid,Language:youdrive.language,Region:c,City:d,Street:f,Number:a},youdrive.address.findAddressReturn)}catch(b){console.error(b)}youdrive.log("Find","Detailed")},findAddressReturn:function(a){youdrive.address.searchResults=a;if(a==""){$("#addressResultsDIV").html(youdrive.address.notFoundString())}else{$("#addressResultsDIV").html(youdrive.address._buildResults(a))}},_buildResults:function(c){var b="";for(var a=0;a<c.length;a++){b=b+'<div class="searchResultItem" onClick="youdrive.address._newMarkerFromAddress(\''+c[a].KeyID+"')\" >"+youdrive.address._formatAddressString(c[a])+"</div>"}if(c.length==1){youdrive.address._newMarkerFromAddress(c[0].KeyID+"")}return b},_formatAddressString:function(a){if(a.Number==-1){num=""}else{num=a.Number}str=""+a.Street+" "+num+", <b>"+a.City+"</b> "+a.ZipCode+"";return str},_newMarkerFromAddress:function(c){for(var b=0;b<youdrive.address.searchResults.length;b++){var a=youdrive.address.searchResults[b];if(a.KeyID==c){youdrive.markers.newMarker(false,1,a.Lat,a.Lon,a.KeyID+"",youdrive.address._formatAddressString(a),a.ExtraInfo1,0,true);a=null;break}}},startStopResults:null,isStart:null,findStartStopFreeText:function(b,a){searchText=b;this.isStart=a;if(a==true){$("#startFindResults").html(youdrive.getLoaderHtml)}else{$("#stopFindResults").html(youdrive.getLoaderHtml)}try{youdrive.callService("FindAddressFreeText",{Password:youdrive.getGuid,Language:youdrive.language,Input:b},youdrive.address.findStartStopAddressReturn)}catch(c){console.error(c)}youdrive.log("Find","FreeTextFromRouteTab")},findStartStopAddressReturn:function(a){youdrive.address.startStopResults=a;if(a==""){if(youdrive.address.isStart==true){$("#startFindResults").html(youdrive.address.notFoundString())}else{$("#stopFindResults").html(youdrive.address.notFoundString())}}else{if(youdrive.address.isStart==true){if(a.length>10){$("#startFindResults").css("height","150px");$("#startFindResults").css("overflow-y","auto")}$("#startFindResults").html(youdrive.address._buildStartStopResults(a))}else{if(a.length>10){$("#stopFindResults").css("height","150px");$("#stopFindResults").css("overflow-y","auto")}$("#stopFindResults").html(youdrive.address._buildStartStopResults(a))}}},_buildStartStopResults:function(d){var c="";var b="Stop";if(youdrive.address.isStart==true){b="Start"}if(d.length==1){youdrive.address._newStartStopMarkerFromAddress(d[0].KeyID+"");if(youdrive.address.isStart==true){youdrive.route.setRouteStart(d[0].KeyID+"")}else{youdrive.route.setRouteStop(d[0].KeyID+"")}return 0}for(var a=0;a<d.length;a++){c=c+'<a href="#" class="searchStartStopResultItem" onClick="youdrive.address._newStartStopMarkerFromAddress(\''+d[a].KeyID+"');youdrive.route.setRoute"+b+"('"+d[a].KeyID+"');return false;\" >"+youdrive.address._formatAddressString(d[a])+"</a><br/>"}if(c==""){c=youdrive.address.notFoundString()}return c},_newStartStopMarkerFromAddress:function(c){for(var b=0;b<youdrive.address.startStopResults.length;b++){var a=youdrive.address.startStopResults[b];if(a.KeyID==c){youdrive.markers.newMarker(false,1,a.Lat,a.Lon,a.KeyID+"",youdrive.address._formatAddressString(a),a.ExtraInfo1,0,true);a=null;break}}}};youdrive.markers={markerList:new Array(),markerCount:0,mgr:null,getNewName:function(a){return a+this.markerCount++},dragStart:false,dragStop:false,getIcon:function(b,c){var a=new GIcon();switch(b){case 1:case 6:a.image="pictures/markers/address.png";a.shadow="pictures/markers/shadow.png";a.iconSize=new GSize(28,28);a.shadowSize=new GSize(42,28);a.iconAnchor=new GPoint(12,28);a.infoWindowAnchor=new GPoint(22,1);break;case 2:a.image="pictures/markers/draggable.png";a.shadow="pictures/markers/shadow.png";a.iconSize=new GSize(28,28);a.shadowSize=new GSize(42,28);a.iconAnchor=new GPoint(12,28);a.infoWindowAnchor=new GPoint(22,1);break;case 3:a.image="pictures/markers/"+c+".png";a.shadow="pictures/markers/shadow.png";a.iconSize=new GSize(28,28);a.shadowSize=new GSize(42,28);a.iconAnchor=new GPoint(12,28);a.infoWindowAnchor=new GPoint(22,1);break;case 4:a.image="pictures/markers/pois/"+c+".png";a.shadow="pictures/markers/pois/s.png";a.iconSize=new GSize(22,22);a.shadowSize=new GSize(32,22);a.iconAnchor=new GPoint(11,22);a.infoWindowAnchor=new GPoint(22,1);break;case 5:a.image=c;a.shadow="pictures/markers/shadow.png";a.iconSize=new GSize(28,28);a.shadowSize=new GSize(42,28);a.iconAnchor=new GPoint(12,32);a.infoWindowAnchor=new GPoint(22,1);break}return a},setStartStopIcons:function(a,c){var d=null;for(var b=0;b<youdrive.markers.markerList.length;b++){d=youdrive.markers.markerList[b];if(d.myName==a){d.setImage("pictures/markers/map_start.png");continue}if(d.myName==c){d.setImage("pictures/markers/map_stop.png");continue}if((d.myOnStart==true)||(d.myOnStop==true)){d.myOnStart=false;d.myOnStop=false;d.setImage(d.myOldIcon)}}},selectMarker:function(a){youdrive.mapObject.setCenter(a.getLatLng());youdrive.mapObject.panTo(a.getLatLng());youdrive.mapObject.setZoom(15);var c=document.createElement("div");c.innerHTML=youdrive.getLoaderHtml;a.openInfoWindow(a.myHtml,{maxContent:c,maxTitle:"Περισσότερες πληροφορίες για αυτό το σημείο"});var b=youdrive.mapObject.getInfoWindow();var g=a.myDesc;var e=a.getPoint().lat();var f=a.getPoint().lng();var d=a.myName;if(youdrive.handle!=null){GEvent.removeListener(youdrive.handle)}youdrive.handle=GEvent.addListener(b,"maximizeclick",function(){GDownloadUrl("InfoWindow.aspx?lat="+e+"&lon="+f,function(h){c.innerHTML=h.replace("xxxPOINTxxx",g).replace("xxxEXTRAxxx",youdrive.markers.getMarkerUsageIcons(d,false))})})},selectMarkerByName:function(a){var b=youdrive.markers.getMarkerFromName(a);youdrive.markers.selectMarker(b)},getMarkerFromName:function(d){var f=null;if(d.charAt(0)=="P"){for(var c=0;c<youdrive.poiDisplay.markerLayer.length;c++){for(var b=0;b<youdrive.poiDisplay.markerLayer[c].mMark.length;b++){if(youdrive.poiDisplay.markerLayer[c].mMark[b].myName==d){f=youdrive.poiDisplay.markerLayer[c].mMark[b];break}}}}else{for(var e=0;e<youdrive.markers.markerList.length;e++){if(youdrive.markers.markerList[e].myName==d){f=youdrive.markers.markerList[e];break}}}return f},newMarker:function(c,j,i,a,b,d,h,g,k){if((j!=4)&&(j!=5)){var f=youdrive.markers.getMarkerFromName(b);if(f!=null){youdrive.markers.selectMarker(f);return null}}var e=youdrive.markers.createMarker(c,j,i,a,b,d,h,g);e.myShowHistory=k;youdrive.mapObject.addOverlay(e);youdrive.markers.markerList.push(e);youdrive.markers.selectMarker(e);youdrive.markers.updateHistory();return null},createMarker:function(e,k,j,b,c,f,i,g){point=new GLatLng(j,b);var d=null;switch(k){case (1):var h=youdrive.markers.getIcon(k,"");d=new GMarker(point,{icon:h});d.myOldIcon=h.image;d.myType=k;d.myName=c;d.myDesc=f;d.myOnStart=false;d.myOnStop=false;break;case (2):var h=youdrive.markers.getIcon(k,"");d=new GMarker(point,{draggable:e,icon:h});d.myOldIcon=h.image;d.myOnStart=false;d.myOnStop=false;d.myType=k;d.myName=this.getNewName("D");d.myDesc="Νέο σημείο";f="<div id='"+d.myName+"OLD'>Περιγραφή σημείου <br /> <textarea id=\"txt"+d.myName+'" cols="25" rows="4">'+d.myDesc+"</textarea><br /><a href=\"#\" onclick=\"var newV='<b>'+youdrive.sanitizeHTML($('#txt"+d.myName+"').attr('value'))+'</b><br/><br/> (Μπορείτε μετακινήσετε αυτό το σημείο <br/> οπουδήποτε στον χάρτη) ';var desc=$('#txt"+d.myName+"').attr('value');$('#"+d.myName+"OLD').css('display','none'); $('#"+d.myName+"NEW').html(newV);$('#"+d.myName+"NEW').css('display','block');youdrive.markers.updateDraggable('"+d.myName+'\',newV,desc);return false;">Καταχώρηση σημείου</a> <a style="margin-left:30px" href="#" onclick="youdrive.markers.removeMarker(\''+d.myName+'\');return false;">Άκυρο</a></div><div id="'+d.myName+'NEW" style="display:none"></div>';i="";GEvent.addListener(d,"dragstart",function(){youdrive.mapObject.closeInfoWindow()});GEvent.addListener(d,"dragend",function(){if((d.myOnStart==true)||(d.myOnStop==true)){youdrive.route.updatePoints(d)}});break;case 3:case 4:case 5:case 6:var h=youdrive.markers.getIcon(k,g);d=new GMarker(point,{icon:h});d.myOldIcon=h.image;d.myType=k;d.myName=c;d.myDesc=f;d.myOnStart=false;d.myOnStop=false;d.myShowHistory=false;break}var a=true;if(k==2){a=false}d.myLinkData=f;d.myHtml=youdrive.markers.getMarkerPopupHtml(f,d.myName,d.myType,a);GEvent.addListener(d,"click",function(){var m=document.createElement("div");m.innerHTML=youdrive.getLoaderHtml;d.openInfoWindow(d.myHtml,{maxContent:m,maxTitle:"Περισσότερες πληροφορίες για αυτό το σημείο"});var l=youdrive.mapObject.getInfoWindow();var q=d.myDesc;var o=d.getPoint().lat();var p=d.getPoint().lng();var n=d.myName;if(youdrive.handle!=null){GEvent.removeListener(youdrive.handle)}youdrive.handle=GEvent.addListener(l,"maximizeclick",function(){GDownloadUrl("InfoWindow.aspx?lat="+o+"&lon="+p,function(r){m.innerHTML=r.replace("xxxPOINTxxx",q).replace("xxxEXTRAxxx",youdrive.markers.getMarkerUsageIcons(n,false))})})});return d},getMarkerPopupHtml:function(c,a,b,d){var e='<div class="popupHtml"><div id="popupHtmlContent">xxxCONTENTxxx</div>';if((b!=3)&&(d==true)){e=e+'<br/><br/><div id="popupHtmlUsage">xxxUSAGExxx</div>'}e=e+"</div>";e=e.replace("xxxCONTENTxxx",c);e=e.replace("xxxUSAGExxx",youdrive.markers.getMarkerUsageIcons(a,true));return e},updateDraggable:function(b,i,f){var d=youdrive.markers.getMarkerFromName(b);d.myLinkData=f;d.myHtml=youdrive.markers.getMarkerPopupHtml(i,b,d.myType,true);d.myDesc=f;youdrive.mapObject.closeInfoWindow();var h=document.createElement("div");h.innerHTML=youdrive.getLoaderHtml;d.openInfoWindowHtml(d.myHtml,{maxContent:h,maxTitle:"Περισσότερες πληροφορίες για αυτό το σημείο"});var e=youdrive.mapObject.getInfoWindow();var j=d.myDesc;var g=d.getPoint().lat();var a=d.getPoint().lng();var c=d.myName;if(youdrive.handle!=null){GEvent.removeListener(youdrive.handle)}youdrive.handle=GEvent.addListener(e,"maximizeclick",function(){GDownloadUrl("InfoWindow.aspx?lat="+g+"&lon="+a,function(k){h.innerHTML=k.replace("xxxPOINTxxx",j).replace("xxxEXTRAxxx",youdrive.markers.getMarkerUsageIcons(c,false))})});youdrive.markers.updateHistory();youdrive.route.updatePoints(d);if(youdrive.markers.dragStart==true){youdrive.markers.dragStop=false;youdrive.markers.dragStart=false;youdrive.route.setRouteStart(b)}if(youdrive.markers.dragStop==true){youdrive.markers.dragStop=false;youdrive.markers.dragStart=false;youdrive.route.setRouteStop(b)}},addDraggableMarker:function(a){if(a==true){youdrive.markers.newMarker(true,2,youdrive.mapObject.getCenter().lat(),youdrive.mapObject.getCenter().lng(),"xxxNEWxxx","Νέο σημείο","Some extra info",1,true)}},removeMarker:function(a){for(var b=0;b<youdrive.markers.markerList.length;b++){if(youdrive.markers.markerList[b].myName==a){mA=youdrive.markers.markerList[b];youdrive.mapObject.removeOverlay(mA);youdrive.markers.markerList.splice(b,1);youdrive.markers.updateHistory();break}}},removeMarkersByType:function(b){var a=0;while(a<youdrive.markers.markerList.length){mA=youdrive.markers.markerList[a];if(mA.myType==b){youdrive.mapObject.removeOverlay(mA);youdrive.markers.markerList.splice(a,1)}else{a++}}},updateHistory:function(){var c="";for(var b=youdrive.markers.markerList.length-1;b>=0;b--){var a=youdrive.markers.markerList[b];if(a.myShowHistory==true){c=c+'<table width="100%" class="historyTable"><tr class="historyItem" onClick="youdrive.markers.selectMarkerByName(\''+a.myName+'\');"><td width="0%"><div class="historyItemText">'+a.myDesc+'</div></td><td width="66px">'+youdrive.markers.getMarkerUsageIcons(a.myName,true)+"</td><tr></table>"}}youdrive.resultsHistoryDIV.html(c)},getMarkerUsageIcons:function(b,a){var c='<a href="#" class="routeSetStart" onclick="youdrive.route.setRouteStart(\'xxxNAMExxx\');xxxEXTRAxxx;return false;">Αφετηρία</a><a href="#" class="routeSetStop" onclick="youdrive.route.setRouteStop(\'xxxNAMExxx\');xxxEXTRAxxx;return false;">Προορισμός</a><a href="#" class="routeSetDelete" onclick="youdrive.markers.removeMarker(\'xxxNAMExxx\');return false;"></a><a href="#" class="routeSetLink" onclick="youdrive.link.createLink(\'xxxNAMExxx\');return false;">Σύνδεσμος</a>';if(a==true){c+='<div href="#" style="color:red;margin-left:10px;margin-right:2px;display:inline;">Νέο!</div><a href="#" class="routeSetExtra" onclick="var iw = youdrive.mapObject.getInfoWindow();iw.maximize();return false;">περισσότερα</a>';c=c.replace(/xxxEXTRAxxx/g,"")}else{c=c.replace(/xxxEXTRAxxx/g,"var iw = youdrive.mapObject.getInfoWindow(); iw.restore()")}return c.replace(/xxxNAMExxx/g,b)},clearMarkers:function(){youdrive.poiDisplay.disableAllLayers();youdrive.pois.clearAllPois();youdrive.markers.mgr.clearMarkers();youdrive.mapObject.clearOverlays();youdrive.markers.markerList=new Array();youdrive.markers.updateHistory();youdrive.route.clearRoute()},createAndSetRoute:function(e,c,d,a){var b=youdrive.markers.getNewName("L");youdrive.markers.newMarker(false,1,c,d,b,e,"",0,true);if(a==true){youdrive.route.setRouteStart(b)}else{youdrive.route.setRouteStop(b)}}};youdrive.route={searchResults:null,allRoutes:null,routeForEmail:null,routeStartMarker:null,routeStopMarker:null,routeSelectedVehicles:null,routeSelectedMode:null,routeSelectedDay:null,routeSelectedOneVehicle:null,routeStartDesc:null,routeStopDesc:null,routeTerms:function(){var a="";a+='<div class="routeTerms">Η διαδρομή που προτείνουμε είναι ενδεικτική.';a+="<br/>";a+="Όπως θα γνωρίζετε, έργα κατασκευής δρόμων, αλλαγές στα δρομολόγια, απεργίες :-) ή άλλα απρόσμενα γεγονότα μπορεί να κάνουν την διαδρομή σας να διαφέρει από αυτή που εμφανίζεται.";a+="</div>";return a},switchRouteHtml:function(a){var d="true";if(a==false){d="false"}var b="";b+='<div id="routeSwitch" class="routeSwitch" style="text-align:right;display:inline;margin:10px" ><a href="#" onclick="youdrive.route.switchDirection('+d+');return false;">Αντιστροφή Διαδρομής</a></div>';return b},resetMMMFilters:function(){$("#chkSingleVehicle").attr("checked",false);$("#chkMMM_UseMetro").attr("checked",true);$("#chkMMM_UseTram").attr("checked",true);$("#chkMMM_UseISAP").attr("checked",true);$("#chkMMM_UseTrolley").attr("checked",true);$("#chkMMM_UseBus").attr("checked",true);$("#chkMMM_UseProast").attr("checked",true)},findRoute:function(){if((this.routeStartMarker==null)||(this.routeStopMarker==null)){alert('Παρακαλώ επιλέξτε αφετηρία και προορισμό και έπειτα πατήστε "Εύρεση Διαδρομής"');return 0}if($("#rdoRouteSpeed").attr("checked")){youdrive.route.routeSelectedMode="speed"}else{youdrive.route.routeSelectedMode="walk"}if($("#rdoRouteDayWeek1").attr("checked")){youdrive.route.routeSelectedDay=1}if($("#rdoRouteDayWeek2").attr("checked")){youdrive.route.routeSelectedDay=2}if($("#rdoRouteDayWeek3").attr("checked")){youdrive.route.routeSelectedDay=3}youdrive.route.routeSelectedOneVehicle=$("#chkSingleVehicle").attr("checked");youdrive.route.routeSelectedVehicles="";var b=$("#chkMMM_UseMetro").attr("checked");var h=$("#chkMMM_UseTram").attr("checked");var e=$("#chkMMM_UseISAP").attr("checked");var g=$("#chkMMM_UseTrolley").attr("checked");var d=$("#chkMMM_UseBus").attr("checked");var f=$("#chkMMM_UseProast").attr("checked");if((d==true)&&(e==true)&&(b==true)&&(h==true)&&(g==true)&&(f==true)){youdrive.route.routeSelectedVehicles=""}else{if(h==true){youdrive.route.routeSelectedVehicles+="1"}else{youdrive.route.routeSelectedVehicles+="0"}if(e==true){youdrive.route.routeSelectedVehicles+="1"}else{youdrive.route.routeSelectedVehicles+="0"}if(b==true){youdrive.route.routeSelectedVehicles+="1"}else{youdrive.route.routeSelectedVehicles+="0"}if(g==true){youdrive.route.routeSelectedVehicles+="1"}else{youdrive.route.routeSelectedVehicles+="0"}if(d==true){youdrive.route.routeSelectedVehicles+="1"}else{youdrive.route.routeSelectedVehicles+="0"}if(f==true){youdrive.route.routeSelectedVehicles+="1"}else{youdrive.route.routeSelectedVehicles+="0"}if(youdrive.route.routeSelectedVehicles=="000000"){alert("Πρέπει να επιλέξετε ενα μέσον");return 0}}$("#extraOptions").hide("fast");var c=youdrive.markers.getMarkerFromName(youdrive.route.routeStartMarker);var a=youdrive.markers.getMarkerFromName(youdrive.route.routeStopMarker);youdrive.route.routeStartDesc=c.myDesc;youdrive.route.routeStopDesc=a.myDesc;youdrive.route.resetRoute();$("#routeResultDIV_header").html(youdrive.getLoaderHtml);youdrive.callService("FindRouteN",{Password:youdrive.getGuid,Language:youdrive.language,srid:4326,OriginLat:c.getPoint().lat(),OriginLon:c.getPoint().lng(),DestLat:a.getPoint().lat(),DestLon:a.getPoint().lng(),UseVehicle:youdrive.route.routeSelectedVehicles,UseOnlyOneVehicle:youdrive.route.routeSelectedOneVehicle,DayOfWeek:youdrive.route.routeSelectedDay,Param1:youdrive.route.routeSelectedMode},youdrive.route.findRouteReturn);youdrive.log("Find","Route")},findRouteReturn:function(a){youdrive.route.allRoutes=a;youdrive.route._buildResultsHeader(a);if(a.length>0){youdrive.sms.secureDiv("#routeResultDIV_header")}},getRouteForEmail:function(){return youdrive.route.routeForEmail},_buildResultsHeader:function(c){if(c.length>0){var d="<ul class='tabs2'>";var a="<div class='tab2_container'>";for(var b=0;b<c.length;b++){var f=c[b].Desctiption;d+="<li><a href='#' act='#tab2_"+b+"'>"+(b+1)+"</a></li>";a+="<div id='tab2_"+b+"' routeid='"+b+"' class='tab2_content'>";a+="<div id='routeResultDIV_"+b+"'/>";a+="</div>"}d+="</ul>";a+="</div>";$("#routeResultDIV_header").html(d+a);$(".tab2_content").hide();$("ul.tabs2 li:first").addClass("active").show();$(".tab2_content:first").show();$("ul.tabs2 li").click(function(){$("ul.tabs2 li").removeClass("active");$(this).addClass("active");$(".tab2_content").hide();var g=$(this).find("a").attr("act");$(g).fadeIn();var h=$(g).attr("routeid");youdrive.route._buildResults(h);return false});youdrive.route._buildResults(0)}else{var e="";e+="<br/><b>Δεν βρέθηκε διαδρομή </b> !<br/><br/> Παρακαλώ βεβαιωθείτε ότι τα σημεία:<br/> - είναι εντός της περιοχής της Αττικής<br/> - είναι σε περιοχές λογικά προσβάσιμες από τα Μέσα Μαζικής Μεταφοράς";if((youdrive.route.routeSelectedVehicles!="")||($("#chkSingleVehicle").attr("checked")==true)){e+='<br/><a href="#" onclick="youdrive.route.resetMMMFilters();youdrive.route.findRoute();return false;">Προσπάθησε ξανά χρησιμοποίωντας της προεπιλεγμένες ρυθμίσεις</a>'}$("#routeResultDIV_header").html(e)}},_buildResults:function(e){youdrive.route.resetRouteDetails();var d=youdrive.route.allRoutes[e];youdrive.route.searchResults=d;youdrive.route.routeForEmail="<br/> Αφετηρία :"+youdrive.route.routeStartDesc;youdrive.route.routeForEmail+="<br/> Προορισμός :"+youdrive.route.routeStopDesc;youdrive.route.routeForEmail+="<br/> **********************************************";var g="";for(var c=0;c<d.StepList.length;c++){var f=d.StepList[c].StepDesc;youdrive.route.routeForEmail+="<br/>"+f;var b="";if((d.StepList[c].StepVehicleTypeID!=null)&&(d.StepList[c].StepVehicleTypeID!="undefined")&&(d.StepList[c].StepVehicleTypeID!=0)){b='<img class="routeVusedImage" alt="" src="pictures/vehicles/v'+d.StepList[c].StepVehicleTypeID+'.png"/>'}g=g+'<div class="routeStep" onClick="youdrive.route.showRouteStep('+c+');" ><b>'+b+d.StepList[c].StepID+".</b> "+f+"</div>"}youdrive.route.routeForEmail+="<br/> **********************************************";youdrive.route.routeForEmail+="<br/><br/>Βρείτε πως θα φτάσετε στον προορισμό σας με Μέσα Μαζικής Μεταφοράς, προστατεύοντας το περιβάλλον. <br/>Μία καινοτόμος υπηρεσία από τo youdrive.gr";youdrive.route.routeForEmail+="<br/><br/>http://www.youdrive.gr";var h='<div class="routeActions" style="width:100%;text-align:right">'+this.switchRouteHtml(true)+'<img style="cursor:pointer" alt="Εκτύπωση" onclick="youdrive.print(\'#routeDIV\');return false;" src="pictures/routePrint.png" /> <img style="cursor:pointer" alt="Αποστολή σε e-mail" onclick="youdrive.show.sendRouteToEmail();return false;" src="pictures/routeEmail.png" /> </div>';var a=g+"<br/>"+d.Summary+"<br/>"+h+"<br/>";youdrive.route.showRouteStep(0);$("#routeResultDIV_"+e).html(a)},showRouteStep:function(d){var c=youdrive.route.searchResults;var e="";if(youdrive.route.searchResults.StepList.length!=1){if((d>0)&&(d<youdrive.route.searchResults.StepList.length-1)){e='<table style="width:100%"><tr><td><a class="popupStepLink" href="#"  onclick="youdrive.route.showRouteStep('+(d-1)+');return false;"><< προηγούμενη στάση</a></td><td><a class="popupStepLink" href="#"  onclick="youdrive.route.showRouteStep('+(d+1)+');return false;">επόμενη στάση >></a></td></tr></table>'}if(d==0){e='<table style="width:100%"><tr><td><span style="color:gray"><< προηγούμενη στάση</span></td><td><a class="popupStepLink" href="#"  onclick="youdrive.route.showRouteStep('+(d+1)+');return false;">επόμενη στάση >></a></td></tr></table>'}if(d==youdrive.route.searchResults.StepList.length-1){e='<table style="width:100%"><tr><td><a class="popupStepLink" href="#"  onclick="youdrive.route.showRouteStep('+(d-1)+');return false;"><< προηγούμενη στάση</a></td><td><span style="color:gray">επόμενη στάση >></span></td></tr></table>'}}var f=c.StepList[d].StepDesc;var a="";if((c.StepList[d].StepVehicleTypeID!=null)&&(c.StepList[d].StepVehicleTypeID!="undefined")&&(c.StepList[d].StepVehicleTypeID!=0)){a='<img class="routeVusedImage" alt="" src="pictures/vehicles/v'+c.StepList[d].StepVehicleTypeID+'.png"/>'}var b="";if(c.StepList[d].StepVehicleIntercept!=""){b='<br/><br/><div style="color:green;font-size:9px;" >Γραμμές που κάνουν στάση εδώ:<br/>'+c.StepList[d].StepVehicleIntercept+"</div>"}youdrive.markers.newMarker(false,3,c.StepList[d].StepLat,c.StepList[d].StepLon,"R"+c.StepList[d].StepID,'<div class="popupHtmlStep"><b>'+a+c.StepList[d].StepID+".</b> "+f+b+"<br/><br/>"+e+"</div>","","R"+c.StepList[d].StepID,false)},setRouteStart:function(c){var b=youdrive.markers.getMarkerFromName(c);var a=null;if(b.myType==4){youdrive.markers.mgr.removeMarker(b);c=youdrive.markers.getNewName("V");youdrive.markers.newMarker(false,5,b.getPoint().lat(),b.getPoint().lng(),c,b.myDesc,b.myHtmlExtra,b.myOldIcon,false);a=youdrive.markers.getMarkerFromName(c)}else{a=b}a.myOnStart=true;this.routeStartMarker=a.myName;if(this.routeStopMarker==a.myName){this.routeStopMarker=null}youdrive.route.updateDivs()},setRouteStop:function(c){var b=youdrive.markers.getMarkerFromName(c);var a=null;if(b.myType==4){youdrive.markers.mgr.removeMarker(b);c=youdrive.markers.getNewName("V");youdrive.markers.newMarker(false,5,b.getPoint().lat(),b.getPoint().lng(),c,b.myDesc,b.myHtmlExtra,b.myOldIcon,false);a=youdrive.markers.getMarkerFromName(c)}else{a=b}a.myOnStop=true;this.routeStopMarker=a.myName;if(this.routeStartMarker==a.myName){this.routeStartMarker=null}this.updateDivs()},updatePoints:function(a){this.updateDivs()},switchDirection:function(b){var a=youdrive.route.routeStartMarker;this.routeStartMarker=this.routeStopMarker;this.routeStopMarker=a;this.updateDivs();if(b){youdrive.route.findRoute()}},updateDivs:function(){if((youdrive.route.routeStartMarker!=null)&&(youdrive.route.routeStopMarker!=null)){$("#routeResultDIV").html("<br/>"+this.switchRouteHtml(false)+"<br/>")}else{$("#routeResultDIV").html("")}if(youdrive.route.routeStartMarker==null){var b="";b+=' <table class="sModeTable">';b+="        <tr>";b+='            <td class="sModeLeftTD" width="110">';b+="                <b>Αφετηρία</b>";b+="            </td>";b+='            <td class="sModeRightTD" width="0">';b+="                <select id=\"drp_startMode\" class=\"sModeSelection\" onchange=\"javascript:for (var i=1;i<10;i++) { if ((i+'')==$(this).val()) {$('#startMode_'+i).show('fast')} else {$('#startMode_'+i).hide('fast')} };$('#startPoisStations').html(youdrive.extraPois.getStationComboFromVehicle(1,true)); \">";b+='                    <option value="1">Αναζήτηση διεύθυνσης</option>';b+='                    <option value="2">Σημείο στο χάρτη</option>';b+='                    <option value="4">Πάρκινγκ κοντά σε σταθμό</option>';b+='                    <option value="3">Εκτός αττικής</option>';b+="                </select>";b+="            </td>";b+="        </tr>";b+="    </table>";b+='    <div id="startMode_1">';b+='        <div class="routeSmallHelp">';b+="            διεύθυνση πχ: Κύπρου 31, 17456";b+="        </div>";b+='        <div style="color: red; margin-left: 0px; margin-right: 2px; display: inline;" href="#">Beta! <div class="routeSmallHelp"  style="display: inline;"> Νέα αναζήτηση , για παράδειγμα  ‘<strong>ικα καλλιθέας</strong>’,‘<strong>πλατεία συντάγματος</strong>’, ‘<strong>eshop στην καλλιθέα</strong>’  </div></div>  ';b+='        <br/><input type="text" style="width: 205px;" id="startFind" />';b+='        <input type="button" style="width: 60px;" id="startFindButton" value="εύρεση" onclick="youdrive.address.findStartStopFreeText($(\'#startFind\').val(),true);" />';b+="        <br />";b+='        <div id="startFindResults">';b+="        </div>";b+="    </div>";b+='    <div id="startMode_2" style="display: none">';b+='        <div class="routeSmallHelp">';b+="            Αυτό το σημείο μπορείτε να το μετακινήσετε οπουδήποτε στον χάρτη";b+="        </div>";b+='        <a onclick="youdrive.markers.dragStart=true;youdrive.markers.dragStop=false;youdrive.markers.addDraggableMarker(true);return false;"';b+='            href="#">Προσθήκη σημείου</a>';b+="    </div>";b+='    <div id="startMode_4" style="display: none">';b+='        <table class="selectFromStation">';b+="            <tr>";b+='                <td colspan="2">';b+='                    <div class="routeSmallHelp">';b+="                        Φτάνω με αυτοκίνητο και παρκάρω</div>";b+="                </td>";b+="            </tr>";b+="            <tr>";b+='                <td style="text-align: right">';b+='                    <div class="routeSmallHelp">';b+="                        κοντά&nbsp;σε&nbsp;:";b+="                    </div>";b+="                </td>";b+="                <td>";b+='                    <select id="selectStartStationVehicle" class="selectStationVehicle" onchange="javascript:$(\'#startPoisStations\').html(youdrive.extraPois.getStationComboFromVehicle($(this).val(),true))">';b+='                        <option value="1">ΜΕΤΡΟ</option>';b+='                        <option value="4">ΤΡΑΜ</option>';b+='                        <option value="5">ΗΣΑΠ</option>';b+='                        <option value="2">Προαστιακό</option>';b+="                    </select>";b+="                </td>";b+="            </tr>";b+="            <tr>";b+='                <td style="text-align: right">';b+='                    <div class="routeSmallHelp">';b+="                        στο&nbsp;σταθμό&nbsp;:";b+="                    </div>";b+="                </td>";b+="                <td>";b+='                    <div style="display: inline;" id="startPoisStations">';b+="                    </div>";b+="                </td>";b+="            </tr>";b+="            <tr>";b+='                <td style="text-align: right">';b+="                </td>";b+="                <td>";b+='                    <input type="button" style="width: 30px;" id="btn_setStationAsStart" value="OK" onclick="youdrive.extraPois.setFromStation($(\'#selectStartStationList\').val(),true);" />';b+="                </td>";b+="            </tr>";b+="        </table>";b+="    </div>";b+='    <div id="startMode_3" style="display: none">';b+='        <div class="routeSmallHelp">';b+="            Φτάνω στην αττική από :";b+="        </div>";b+='        <a href="#" onclick="youdrive.markers.createAndSetRoute(\'Αεροδρόμιο\',37.936616 ,23.944444,true);return false;">';b+="            Αεροδρόμιο</a><br />";b+='        <a href="#" onclick="youdrive.markers.createAndSetRoute(\'Κτελ Κηφισού\',38.00003, 23.702788,true);return false;">';b+="            Κτελ Κηφισού</a><br />";b+='        <a href="#" onclick="youdrive.markers.createAndSetRoute(\'Κτελ Αθηνών (Λιοσίων)\',38.01009, 23.722078,true);return false;">';b+="            Κτελ Αθηνών (Λιοσίων)</a><br />";b+='        <a href="#" onclick="youdrive.markers.createAndSetRoute(\'Σταθμός Λαρίσης\',37.99234, 23.720684,true);return false;">';b+="            Σταθμός Λαρίσης</a><br />";b+='        <a href="#" onclick="youdrive.markers.createAndSetRoute(\'Λιμάνι Πειραιά\',37.947844, 23.642030,true);return false;">';b+="            Λιμάνι Πειραιά</a><br />";b+="    </div>";$("#routeStartDIV").html(b);$("#startFind").keypress(function(c){if(c.which==13){youdrive.address.findStartStopFreeText($(this).val(),true)}})}else{var a=youdrive.markers.getMarkerFromName(this.routeStartMarker);$("#routeStartDIV").html(' <div style="width: 110px; display: inline;">        <b>Αφετηρία</b> </div><br/><a href="#" onclick="youdrive.markers.selectMarkerByName(\''+a.myName+"');return false;\">"+a.myDesc+'</a><div style="text-align:right;width:270px;" ><a href="#" onclick="youdrive.route.clearStart();return false;" >αλλαγή</a></div>')}if(youdrive.route.routeStopMarker==null){var b="";b+=' <table class="sModeTable">';b+="        <tr>";b+='            <td class="sModeLeftTD" width="110">';b+="                <b>Προορισμός</b>";b+="            </td>";b+='            <td class="sModeRightTD" width="0">';b+="                <select id=\"drp_stopMode\" class=\"sModeSelection\" onchange=\"javascript:for (var i=1;i<10;i++) { if ((i+'')==$(this).val()) {$('#stopMode_'+i).show('fast')} else {$('#stopMode_'+i).hide('fast')} };$('#stopPoisStations').html(youdrive.extraPois.getStationComboFromVehicle(1,false)); \">";b+='                    <option value="1">Αναζήτηση διεύθυνσης</option>';b+='                    <option value="2">Σημείο στο χάρτη</option>';b+='                    <option value="4">Πάρκινγκ κοντά σε σταθμό</option>';b+='                    <option value="3">Φεύγω εκτός αττικής</option>';b+="                </select>";b+="            </td>";b+="        </tr>";b+="    </table>";b+='    <div id="stopMode_1">';b+='        <div class="routeSmallHelp">';b+="            διεύθυνση πχ: Κύπρου 31, 17456";b+="        </div>";b+='        <input type="text" style="width: 205px;" id="stopFind" />';b+='        <input type="button" style="width: 60px;" id="stopFindButton" value="εύρεση" onclick="youdrive.address.findStartStopFreeText($(\'#stopFind\').val(),false);" />';b+="        <br />";b+='        <div id="stopFindResults">';b+="        </div>";b+="    </div>";b+='    <div id="stopMode_2" style="display: none">';b+='        <div class="routeSmallHelp">';b+="            Αυτό το σημείο μπορείτε να το μετακινήσετε οπουδήποτε στον χάρτη";b+="        </div>";b+='        <a onclick="youdrive.markers.dragStart=false;youdrive.markers.dragStop=true;youdrive.markers.addDraggableMarker(true);return false;"';b+='            href="#">Προσθήκη σημείου</a>';b+="    </div>";b+='    <div id="stopMode_4" style="display: none">';b+='        <table class="selectFromStation">';b+="            <tr>";b+='                <td colspan="2">';b+='                    <div class="routeSmallHelp">';b+="                        Έχω αφήσει το αυτοκίνητο</div>";b+="                </td>";b+="            </tr>";b+="            <tr>";b+='                <td style="text-align: right">';b+='                    <div class="routeSmallHelp">';b+="                        κοντά&nbsp;σε&nbsp;:";b+="                    </div>";b+="                </td>";b+="                <td>";b+='                    <select id="selectStopStationVehicle" class="selectStationVehicle" onchange="javascript:$(\'#stopPoisStations\').html(youdrive.extraPois.getStationComboFromVehicle($(this).val(),false))">';b+='                        <option value="1">ΜΕΤΡΟ</option>';b+='                        <option value="4">ΤΡΑΜ</option>';b+='                        <option value="5">ΗΣΑΠ</option>';b+='                        <option value="2">Προαστιακό</option>';b+="                    </select>";b+="                </td>";b+="            </tr>";b+="            <tr>";b+='                <td style="text-align: right">';b+='                    <div class="routeSmallHelp">';b+="                        στο&nbsp;σταθμό&nbsp;:";b+="                    </div>";b+="                </td>";b+="                <td>";b+='                    <div style="display: inline;" id="stopPoisStations">';b+="                    </div>";b+="                </td>";b+="            </tr>";b+="            <tr>";b+='                <td style="text-align: right">';b+="                </td>";b+="                <td>";b+='                    <input type="button" style="width: 30px;" id="btn_setStationAsStop" value="OK" onclick="youdrive.extraPois.setFromStation($(\'#selectStopStationList\').val(),false);" />';b+="                </td>";b+="            </tr>";b+="        </table>";b+="    </div>";b+='    <div id="stopMode_3" style="display: none">';b+='        <div class="routeSmallHelp">';b+="            Φεύγω εκτός αττικής από :";b+="        </div>";b+='        <a href="#" onclick="youdrive.markers.createAndSetRoute(\'Αεροδρόμιο\',37.936616 ,23.944444,false);return false;">';b+="            Αεροδρόμιο</a><br />";b+='        <a href="#" onclick="youdrive.markers.createAndSetRoute(\'Κτελ Κηφισού\',38.00003, 23.702788,false);return false;">';b+="            Κτελ Κηφισού</a><br />";b+='        <a href="#" onclick="youdrive.markers.createAndSetRoute(\'Κτελ Αθηνών (Λιοσίων)\',38.01009, 23.722078,false);return false;">';b+="            Κτελ Αθηνών (Λιοσίων)</a><br />";b+='        <a href="#" onclick="youdrive.markers.createAndSetRoute(\'Σταθμός Λαρίσης\',37.99234, 23.720684,false);return false;">';b+="            Σταθμός Λαρίσης</a><br />";b+='        <a href="#" onclick="youdrive.markers.createAndSetRoute(\'Λιμάνι Πειραιά\',37.947844, 23.642030,false);return false;">';b+="            Λιμάνι Πειραιά</a><br />";b+="    </div>";$("#routeStopDIV").html(b);$("#stopFind").keypress(function(c){if(c.which==13){youdrive.address.findStartStopFreeText($(this).val(),false)}})}else{var a=youdrive.markers.getMarkerFromName(this.routeStopMarker);$("#routeStopDIV").html(' <div style="width: 110px; display: inline;">        <b>Προορισμός</b> </div><br/><a href="#" onclick="youdrive.markers.selectMarkerByName(\''+a.myName+"');return false;\">"+a.myDesc+'</a><div style="text-align:right;width:270px;" ><a href="#" onclick="youdrive.route.clearStop();return false;" >αλλαγή</a></div>')}this.resetRoute();youdrive.markers.setStartStopIcons(youdrive.route.routeStartMarker,youdrive.route.routeStopMarker);if((youdrive.route.routeStartMarker!=null)&&(youdrive.route.routeStopMarker!=null)){youdrive.handlers.tabSwitch(0)}},clearStart:function(){this.routeStartMarker=null;this.updateDivs();youdrive.sms.cancelWaitTime=true},clearStop:function(){this.routeStopMarker=null;this.updateDivs();youdrive.sms.cancelWaitTime=true},resetRoute:function(){this.searchResults=null;$("#routeResultDIV").html("");$("#routeResultDIV_header").html("");$("#extraOptions").hide("fast");youdrive.markers.removeMarkersByType(3);youdrive.sms.cancelWaitTime=true},resetRouteDetails:function(){this.searchResults=null;$("#routeResultDIV").html("");$("#extraOptions").hide("fast");youdrive.markers.removeMarkersByType(3);youdrive.sms.cancelWaitTime=true},clearRoute:function(){this.routeStartMarker=null;this.routeStopMarker=null;this.searchResults=null;$("#routeResultDIV").html("");$("#routeResultDIV_header").html("");$("#extraOptions").hide("fast");youdrive.markers.removeMarkersByType(3);this.updateDivs();youdrive.sms.cancelWaitTime=true}};youdrive.poiDisplay={visibleZoom:5,searchResults:null,markerLayer:new Array(),loadPois:function(){if(youdrive.mapObject.getZoom()<this.visibleZoom){return 0}if(this.markerLayer.length==0){return 0}var a=this.getLayerString();if(a==""){return 0}youdrive.callService("GetPoisByCatId",{Password:youdrive.getGuid,Language:youdrive.language,SGuid:youdrive.getGuid(),upLat:youdrive.mapObject.getBounds().getNorthEast().lat(),upLon:youdrive.mapObject.getBounds().getNorthEast().lng(),downLat:youdrive.mapObject.getBounds().getSouthWest().lat(),downLon:youdrive.mapObject.getBounds().getSouthWest().lng(),centerLat:youdrive.mapObject.getCenter().lat(),centerLon:youdrive.mapObject.getCenter().lng(),CatIDs:a},this.loadPoiReturn)},loadPoisFromMapMove:function(){this.loadPois()},getLayerString:function(){var c=0;var d="";for(var b=0;b<this.markerLayer.length;b++){if(this.markerLayer[b].mVisible==true){if(c>0){d=d+","}d=d+this.markerLayer[b].mCatID;c++}}return d},loadPoiReturn:function(a){youdrive.poiDisplay.searchResults=a;youdrive.poiDisplay.showPois()},showPois:function(){var g=this.searchResults;if(g.length>0){var j=[];for(var h=0;h<g.length;h++){var l=null;for(var m=0;m<this.markerLayer.length;m++){if(this.markerLayer[m].mCatID==g[h].cId){l=this.markerLayer[m];break}}var d=youdrive.markers.getNewName("P");var e=g[h].inf;var k=g[h].lat;var c=g[h].lon;var b=g[h].imId;var f=youdrive.markers.createMarker(false,4,k,c,d,e,"",b);j.push(f);l.mMark.push(f)}youdrive.markers.mgr.addMarkers(j,this.visibleZoom);youdrive.markers.mgr.refresh()}},addNewLayer:function(c){for(var b=0;b<c.length;b++){var d=false;for(var a=0;a<this.markerLayer.length;a++){if(this.markerLayer[a].mCatID==c[b]){d=true;if(this.markerLayer[a].mVisible==false){this.markerLayer[a].mVisible=true;youdrive.markers.mgr.addMarkers(this.markerLayer[a].mMark,this.visibleZoom);youdrive.markers.mgr.refresh()}break}}if(d==false){this.markerLayer.push({mCatID:c[b],mMark:[],mRemain:0,mVisible:true})}}this.loadPois()},removeLayer:function(e){for(var d=0;d<e.length;d++){for(var c=0;c<this.markerLayer.length;c++){if(this.markerLayer[c].mCatID==e[d]){for(var b=0;b<this.markerLayer[c].mMark.length;b++){youdrive.markers.mgr.removeMarker(this.markerLayer[c].mMark[b])}this.markerLayer[c].mVisible=false;break}}}},disableAllLayers:function(){for(var a=0;a<this.markerLayer.length;a++){this.markerLayer[a].mVisible=false}}};youdrive.link={linkMode:null,getQuerystring:function(b,d){if(d==null){d=""}b=b.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var c=new RegExp("[\\?&]"+b+"=([^&#]*)");var a=c.exec(window.location.href);if(a==null){return d.replace(/\+/g," ")}else{return a[1].replace(/\+/g," ")}},createLink:function(a){var b=youdrive.markers.getMarkerFromName(a);this.newLink(b)},newLink:function(a){youdrive.callService("CreateLink",{Password:youdrive.getGuid,Language:youdrive.language,Lat:a.getPoint().lat(),Lon:a.getPoint().lng(),LinkType:0,LinkData:a.myLinkData,LinkExtraParam1:"",LinkExtraParam2:""},this.newLinkReturn)},newLinkReturn:function(a){youdrive.link.linkResults=a;youdrive.show.linksWindow(a.EmailLink,a.PageLink)},getLink:function(a){youdrive.callService("GetLinkData",{Password:youdrive.getGuid,Language:youdrive.language,LinkGuid:a},this.getLinkReturn)},getLinkReturn:function(a){youdrive.link.proccessLinkData(a.Lat,a.Lon,a.LinkData)},proccessLinkData:function(b,d,a){var c=youdrive.markers.getNewName("L");var a=decodeURI(a).replace(/\+/g," ");youdrive.markers.newMarker(false,6,b,d,c,a,"","",false);if(this.linkMode=="route"){youdrive.route.setRouteStop(c)}},checkQueryString:function(){this.linkMode=this.getQuerystring("mode");if(this.linkMode==""){return 0}var d=decodeURIComponent(decodeURI(this.getQuerystring("desc")));if(this.linkMode=="free"){if(d!=""){youdrive.handlers.doFreeSearchFromLink(d);return 0}}var c=this.getQuerystring("id");if(c!=""){this.getLink(c)}else{var a=this.getQuerystring("lat");var b=this.getQuerystring("lon");this.proccessLinkData(a,b,d)}}};youdrive.sms={enableSMSPay:false,smsCode:null,waitTimeInSeconds:108,cancelWaitTime:false,isValidCustomer:false,customerKEY:"",initCustomer:function(){if(this.enableSMSPay==false){return}this.customerKEY=$.cookie("customerKEY");if(this.customerKEY!=null){youdrive.callService("isCustomerValid",{Password:youdrive.getGuid,Language:youdrive.language,customerPhone:"",customerKEY:this.customerKEY},this.initCustomerReturn)}},initCustomerReturn:function(a){youdrive.sms.isValidCustomer=(a.obj!="")},currentTimerCount:0,secureDivHtmlId:"",secureDivHtmlContent:"",secureDiv:function(a){if(this.enableSMSPay==false||this.isValidCustomer==true){return}this.secureDivHtmlContent=$(a).html();this.secureDivHtmlId=a;youdrive.sms.cancelWaitTime=false;this.getSMSCode()},getSMSCode:function(){if(this.smsCode==null){youdrive.callService("GetNewCodeForSMS",{Password:youdrive.getGuid,Language:youdrive.language},this.getSMSCodeReturn)}else{this.beginCountDown()}},getSMSCodeReturn:function(a){youdrive.sms.smsCode=a.obj;youdrive.sms.beginCountDown()},verifySMSCode:function(){youdrive.callService("isPurchaseCompleted",{Password:youdrive.getGuid,Language:youdrive.language,smsCode:youdrive.sms.smsCode},this.verifySMSCodeReturn)},verifySMSCodeReturn:function(a){if(youdrive.sms.cancelWaitTime==true){youdrive.sms.currentTimerCount=0;return}if(a.obj!=""){youdrive.sms.isValidCustomer=true;youdrive.sms.customerKEY=a.obj;youdrive.sms.currentTimerCount=0;$.cookie("customerKEY",youdrive.sms.customerKEY,{expires:93})}else{if(youdrive.sms.currentTimerCount>0){window.setTimeout("youdrive.sms.verifySMSCode()",2000)}}},verifyPhone:function(a){youdrive.callService("isCustomerValid",{Password:youdrive.getGuid,Language:youdrive.language,customerPhone:a,customerKEY:""},this.verifyPhoneReturn)},verifyPhoneReturn:function(a){if(a.obj!=""){youdrive.sms.isValidCustomer=true;youdrive.sms.customerKEY=a.obj;youdrive.sms.currentTimerCount=0;$.cookie("customerKEY",youdrive.sms.customerKEY,{expires:93})}else{$("#waitingError").html("Η τρίμηνη συνδρομή σας έχει λήξει. Για νέα τρίμηνη συνδρομή παρακαλώ στείλτε το sms “<b>D "+youdrive.sms.smsCode+"</b>” στο <b>45443</b> (χρέωση 1.48 ευρώ με ΦΠΑ) για νέα τρίμηνη ανανέωση.")}},beginCountDown:function(){var a="";a+='<div id="waitingDIV" class="smsBox">';a+="<center>Βρέθηκαν "+youdrive.route.allRoutes.length+' διαδρομές και θα εμφανιστούν μετά από <br/><div id="timerDIV" style="color:gray;font-weight:bold;font-size:30px;">'+youdrive.sms.waitTimeInSeconds+"</div> δευτερόλεπτα <br/>";a+="Στέλνοντας το sms “<b>D "+youdrive.sms.smsCode+"</b>” στο <b>54534</b> (χρέωση 1.48 ευρώ με ΦΠΑ) απενεργοποιείτει ο χρόνος καθυστέρησης  για 3 μήνες.</center>";a+="<br/>";a+="<span style=\"color:gray;font-size:9px;\">Αν έχετε στείλει ήδη το sms μέσα στους 3 τελευταίους μήνες παρακαλώ πατήστε <a href='#' onclick=\"$('#waitingDIV').hide();$('#waitingDIVPhone').show();\">εδώ</a> </span>";a+="</div>";a+='<div id="waitingDIVPhone" class="smsBox" style="display:none">';a+="<br/><center>";a+="<a href='#' onclick=\"$('#waitingDIVPhone').hide();$('#waitingDIV').show();\"><< πίσω </a><br/><br/>";a+="Παρακαλώ εισάγετε το κινητό από πού στείλατε το SMS<br/>στην μορφή 69xxxxxxxx<br/>";a+='<input type="text" id="phoneNO" style="width: 112px;font-size:16px;">';a+='<input type="button" onclick="youdrive.sms.verifyPhone($(\'#phoneNO\').val());" value="ok" id="phoneNOFind" style="width: 30px;">';a+='<div id="waitingError" style="color:red;pading:10px;"></div>';a+="</div>";$(youdrive.sms.secureDivHtmlId).html(a);this.currentTimerCount=this.waitTimeInSeconds;window.setTimeout("youdrive.sms.countDown()",1000);youdrive.sms.verifySMSCode()},countDown:function(){if(youdrive.sms.currentTimerCount==0||youdrive.sms.cancelWaitTime==true){youdrive.sms.endCountDown()}else{$("#timerDIV").html(" "+youdrive.sms.currentTimerCount+"");youdrive.sms.currentTimerCount--;window.setTimeout("youdrive.sms.countDown()",1000)}},endCountDown:function(){if(youdrive.sms.cancelWaitTime==true){$(youdrive.sms.secureDivHtmlId).html("");youdrive.sms.cancelWaitTime==false;return}$(youdrive.sms.secureDivHtmlId).html(youdrive.sms.secureDivHtmlContent);$("ul.tabs2 li").click(function(){$("ul.tabs2 li").removeClass("active");$(this).addClass("active");$(".tab2_content").hide();var a=$(this).find("a").attr("act");$(a).fadeIn();var b=$(a).attr("routeid");youdrive.route._buildResults(b);return false});youdrive.route._buildResults(0)}};youdrive.pois={poiCategories:null,initPois:function(){youdrive.callService("GetPoiCat",{Password:youdrive.getGuid,Language:youdrive.language},this.poiCatReturn)},poiCatReturn:function(d){youdrive.pois.poiCategories=d;var b="";for(var c=0;c<d.length;c++){b+='<option value="'+d[c].POIDesc+'">'+d[c].POIDesc+"</option>";for(var a=0;a<youdrive.pois.poiCategories[c].length;a++){youdrive.pois.poiCategories[c].POISubCat[a].checked=false}}$("#poiCatSel").html(b);youdrive.pois.changeCat()},toggleLayer:function(c,b,a){var e=youdrive.pois.poiCategories[c].POISubCat[b];var d=[];d.push(e.POIid);if(e.checked==true){youdrive.poiDisplay.removeLayer(d);youdrive.log("POIS","Added",e.POIDesc)}else{youdrive.poiDisplay.addNewLayer(d);youdrive.log("POIS","Removed",e.POIDesc)}e.checked=(!e.checked);if(a==true){$("#chk_C_"+c+"_"+b).attr("checked",e.checked);$("#chk_S_"+c+"_"+b).attr("checked",e.checked);$("#chk_H_"+c+"_"+b).attr("checked",e.checked)}if(e.POIid==281){$("#pharm").attr("checked",e.checked)}youdrive.pois.updateHistory()},clearAllPois:function(){for(var c=0;c<youdrive.pois.poiCategories.length;c++){var b=youdrive.pois.poiCategories[c];for(var a=0;a<b.POISubCat.length;a++){if(b.POISubCat[a].checked==true){this.toggleLayer(c,a,true)}}}},togglePharm:function(){for(var c=0;c<youdrive.pois.poiCategories.length;c++){var b=youdrive.pois.poiCategories[c];for(var a=0;a<b.POISubCat.length;a++){if(b.POISubCat[a].POIid==281){this.toggleLayer(c,a,true);break}}}},updateHistory:function(){var d="";for(var c=0;c<youdrive.pois.poiCategories.length;c++){var b=youdrive.pois.poiCategories[c];for(var a=0;a<b.POISubCat.length;a++){if(b.POISubCat[a].checked==true){d+=this.getCheckBOX(c,a,"H")}}}if(d==""){$("#poiSelectedContent").html(d);$("#poiSelected").hide("fast")}else{$("#poiSelectedContent").html(d);$("#poiSelected").show("fast")}},getCheckBOX:function(d,c,a){var h=youdrive.pois.poiCategories[d].POISubCat[c];var k="";if(h.checked==true){k=' checked="checked" '}var e=h.POIDesc;var b="";if(a!="C"){b="<img alt='' src='pictures/markers/pois/"+youdrive.pois.poiCategories[d].POIImgId+".png'/>";e=h.POIDesc}var g="";g+='<input id="chk_'+a+"_"+d+"_"+c+'" type="checkbox" '+k+' onclick="youdrive.pois.toggleLayer('+d+","+c+',false);"/><a href="#" onclick="youdrive.pois.toggleLayer('+d+","+c+',true);return false;">'+e+"</a>";var f="";if(a=="H"){f="display:inline;"}return'<div style="vertical-align:middle;'+f+'">'+b+" "+g+"</div>"},changeCat:function(){if(youdrive.pois.poiCategories==null){return 0}var e=$("#poiCatSel").val();for(var c=0;c<youdrive.pois.poiCategories.length;c++){if(youdrive.pois.poiCategories[c].POIDesc==e){var d="";var b=youdrive.pois.poiCategories[c];for(var a=0;a<b.POISubCat.length;a++){d+=this.getCheckBOX(c,a,"C")}$("#poiCategoryResults").html(d);break}}},filterPois:function(){var a=$("#poiKeywordSearch").val();var e="";if(a==""){$("#poiKeywordResults").html("");return 0}for(var d=0;d<youdrive.pois.poiCategories.length;d++){var c=youdrive.pois.poiCategories[d];for(var b=0;b<c.POISubCat.length;b++){if((c.POISubCat[b].POIDesc.toUpperCase().indexOf(a.toUpperCase())!=-1)||(c.POIDesc.toUpperCase().indexOf(a.toUpperCase())!=-1)){e+=this.getCheckBOX(d,b,"S")}}}if(e==""){e="Δεν βρέθηκαν σημεία ενδιαφέροντος"}$("#poiKeywordResults").html(e)}};youdrive.ads={adMarkers:null,adClusterer:null,adList:null,getAdsFromServer:function(){youdrive.callService("GetAds",{Password:youdrive.getGuid,Language:youdrive.language},this.adsReturn)},adsReturn:function(e){youdrive.ads.adsList=e;youdrive.ads.adMarkers=[];for(var c=0;c<e.length;++c){var a=e[c];for(var b=0;b<a.adsItems.length;b++){var f=a.adsItems[b];youdrive.ads.adMarkers.push(youdrive.ads.getAdMarker(a,f))}}var d=[{url:"pictures/ads/icons/group.png",height:23,width:23,opt_textColor:"#FFFFFF"}];youdrive.ads.adClusterer=new MarkerClusterer(youdrive.mapObject,youdrive.ads.adMarkers,{styles:d})},refreshGallery:function(){Shadowbox.setup($("a[rel=my_collection]"))},getAdMarker:function(c,d){var b=youdrive.ads.getAdIcon(d.catId);var e=new GLatLng(d.lat,d.lon);var a=new GMarker(e,{icon:b});a.guid=d.guid;a.htmlData=d.htmlDataDetails;GEvent.addListener(a,"click",function(){a.openInfoWindowHtml(d.htmlDataDetails);youdrive.ads.refreshGallery()});return a},showMarker:function(a){var c=null;for(var b=0;b<youdrive.ads.adMarkers.length;b++){if(youdrive.ads.adMarkers[b].guid==a){c=youdrive.ads.adMarkers[b];break}}if(c!=null){youdrive.mapObject.setZoom(17);youdrive.mapObject.setCenter(c.getLatLng());youdrive.mapObject.panTo(c.getLatLng());c.openInfoWindow(c.htmlData);youdrive.ads.refreshGallery()}},getAdIcon:function(b){var a=new GIcon();a.image="pictures/ads/icons/"+b+".png";a.shadow="pictures/markers/shadow.png";a.iconSize=new GSize(23,23);a.shadowSize=new GSize(20,13);a.iconAnchor=new GPoint(16,28);a.infoWindowAnchor=new GPoint(22,1);return a}};youdrive.extraPois={list:null,getList:function(){if(this.list!=null){return this.list}var a="";a+='[{"ID":"5","stName":"ΣΤ. ΗΣΑΠ ΑΓ. ΕΛΕΥΘΕΡΙΟΣ","stLat":"38.0198822","stLon":"23.73158455"},';a+='{"ID":"5","stName":"ΣΤ. ΗΣΑΠ ΑΓ. ΝΙΚΟΛΑΟΣ","stLat":"38.00694275","stLon":"23.72768021"},';a+='{"ID":"5","stName":"ΣΤ. ΗΣΑΠ ΑΝΩ ΠΑΤΗΣΙΑ","stLat":"38.02389526","stLon":"23.73596191"},';a+='{"ID":"5","stName":"ΣΤ. ΗΣΑΠ ΑΤΤΙΚΗ","stLat":"37.99950027","stLon":"23.72287369"},';a+='{"ID":"5","stName":"ΣΤ. ΗΣΑΠ ΒΙΚΤΩΡΙΑ","stLat":"37.99308395","stLon":"23.73019028"},';a+='{"ID":"5","stName":"ΣΤ. ΗΣΑΠ ΕΙΡΗΝΗ","stLat":"38.04344559","stLon":"23.78318977"},';a+='{"ID":"5","stName":"ΣΤ. ΗΣΑΠ ΗΡΑΚΛΕΙΟ","stLat":"38.04623413","stLon":"23.76604462"},';a+='{"ID":"5","stName":"ΣΤ. ΗΣΑΠ ΘΗΣΕΙΟ","stLat":"37.97671127","stLon":"23.7206192"},';a+='{"ID":"5","stName":"ΣΤ. ΗΣΑΠ ΚΑΛΛΙΘΕΑ","stLat":"37.96048737","stLon":"23.69678116"},';a+='{"ID":"5","stName":"ΣΤ. ΗΣΑΠ ΚΑΤ","stLat":"38.06586838","stLon":"23.8040905"},';a+='{"ID":"5","stName":"ΣΤ. ΗΣΑΠ ΚΑΤΩ ΠΑΤΗΣΙΑ","stLat":"38.01183701","stLon":"23.72858047"},';a+='{"ID":"5","stName":"ΣΤ. ΗΣΑΠ ΚΗΦΙΣΙΑ","stLat":"38.07329178","stLon":"23.80823135"},';a+='{"ID":"5","stName":"ΣΤ. ΗΣΑΠ ΜΑΡΟΥΣΙ","stLat":"38.05623245","stLon":"23.80492783"},';a+='{"ID":"5","stName":"ΣΤ. ΗΣΑΠ ΜΟΝΑΣΤΗΡΑΚΙ","stLat":"37.9765625","stLon":"23.72576904"},';a+='{"ID":"5","stName":"ΣΤ. ΗΣΑΠ ΜΟΣΧΑΤΟ","stLat":"37.95505905","stLon":"23.67972183"},';a+='{"ID":"5","stName":"ΣΤ. ΗΣΑΠ ΝΕΑ ΙΩΝΙΑ","stLat":"38.04146957","stLon":"23.75482368"},';a+='{"ID":"5","stName":"ΣΤ. ΗΣΑΠ ΝΕΡΑΤΖΙΩΤΙΣΣΑ","stLat":"38.04513931","stLon":"23.79299545"},';a+='{"ID":"5","stName":"ΣΤ. ΗΣΑΠ ΟΜΟΝΟΙΑ","stLat":"37.98396301","stLon":"23.72832298"},';a+='{"ID":"5","stName":"ΣΤ. ΗΣΑΠ ΠΑΥΚΑΚΙΑ","stLat":"38.03711319","stLon":"23.75012398"},';a+='{"ID":"5","stName":"ΣΤ. ΗΣΑΠ ΠΕΙΡΑΙΑΣ","stLat":"37.94808578","stLon":"23.64305115"},';a+='{"ID":"5","stName":"ΣΤ. ΗΣΑΠ ΠΕΡΙΣΣΟΣ","stLat":"38.03284454","stLon":"23.74471664"},';a+='{"ID":"5","stName":"ΣΤ. ΗΣΑΠ ΠΕΤΡΑΛΩΝΑ","stLat":"37.96793365","stLon":"23.70879745"},';a+='{"ID":"5","stName":"ΣΤ. ΗΣΑΠ ΤΑΥΡΟΣ","stLat":"37.96246338","stLon":"23.70336723"},';a+='{"ID":"5","stName":"ΣΤ. ΗΣΑΠ ΦΑΛΗΡΟ","stLat":"37.94497681","stLon":"23.66519547"},';a+='{"ID":"1","stName":"ΣΤ. ΜΕΤΡΟ ΑΓ. ΑΝΤΩΝΙΟΣ","stLat":"38.0062561","stLon":"23.69959068"},';a+='{"ID":"1","stName":"ΣΤ. ΜΕΤΡΟ ΑΓ. ΔΗΜΗΤΡΙΟΣ","stLat":"37.94038391","stLon":"23.74063873"},';a+='{"ID":"1","stName":"ΣΤ. ΜΕΤΡΟ ΑΓ. ΙΩΑΝΝΗΣ","stLat":"37.95645523","stLon":"23.73463058"},';a+='{"ID":"1","stName":"ΣΤ. ΜΕΤΡΟ ΑΕΡΟΔΡΟΜΙΟ","stLat":"37.93682098","stLon":"23.94470215"},';a+='{"ID":"1","stName":"ΣΤ. ΜΕΤΡΟ ΑΙΓΑΛΕΩ","stLat":"37.99164581","stLon":"23.68184662"},';a+='{"ID":"1","stName":"ΣΤ. ΜΕΤΡΟ ΑΚΡΟΠΟΛΗ","stLat":"37.96875","stLon":"23.72950363"},';a+='{"ID":"1","stName":"ΣΤ. ΜΕΤΡΟ ΑΜΠΕΛΟΚΗΠΟΙ","stLat":"37.98728943","stLon":"23.75720596"},';a+='{"ID":"1","stName":"ΣΤ. ΜΕΤΡΟ ΒΟΤΑΝΙΚΟΣ","stLat":"37.9789914","stLon":"23.710421"},';a+='{"ID":"1","stName":"ΣΤ. ΜΕΤΡΟ ΔΑΦΝΗ","stLat":"37.94911575","stLon":"23.73720551"},';a+='{"ID":"1","stName":"ΣΤ. ΜΕΤΡΟ ΔΟΥΚΙΣΣΗΣ ΠΛΑΚΕΝΤΙΑΣ","stLat":"38.02428436","stLon":"23.83325195"},';a+='{"ID":"1","stName":"ΣΤ. ΜΕΤΡΟ ΕΘΝΙΚΗ ΑΜΥΝΑ","stLat":"37.99926376","stLon":"23.78484344"},';a+='{"ID":"1","stName":"ΣΤ. ΜΕΤΡΟ ΕΛΑΙΩΝΑΣ","stLat":"37.98791122","stLon":"23.69414139"},';a+='{"ID":"1","stName":"ΣΤ. ΜΕΤΡΟ ΕΥΑΓΓΕΛΙΣΜΟΣ","stLat":"37.97626114","stLon":"23.74722672"},';a+='{"ID":"1","stName":"ΣΤ. ΜΕΤΡΟ ΚΑΤΕΧΑΚΗ","stLat":"37.99304199","stLon":"23.77645302"},';a+='{"ID":"1","stName":"ΣΤ. ΜΕΤΡΟ ΚΕΡΑΜΕΙΚΟΣ","stLat":"37.97870636","stLon":"23.71120071"},';a+='{"ID":"1","stName":"ΣΤ. ΜΕΤΡΟ ΚΟΡΩΠΙ","stLat":"37.9130249","stLon":"23.89575768"},';a+='{"ID":"1","stName":"ΣΤ. ΜΕΤΡΟ ΜΕΓΑΡΟ ΜΟΥΣΙΚΗΣ","stLat":"37.97928619","stLon":"23.75327873"},';a+='{"ID":"1","stName":"ΣΤ. ΜΕΤΡΟ ΜΕΤΑΞΟΥΡΓΕΙΟ","stLat":"37.9862175","stLon":"23.72122002"},';a+='{"ID":"1","stName":"ΣΤ. ΜΕΤΡΟ ΝΕΟΣ ΚΟΣΜΟΣ","stLat":"37.95763397","stLon":"23.72832298"},';a+='{"ID":"1","stName":"ΣΤ. ΜΕΤΡΟ ΝΟΜΙΣΜΑΤΟΚΟΠΕΙΟ","stLat":"38.009864","stLon":"23.80706"},';a+='{"ID":"1","stName":"ΣΤ. ΜΕΤΡΟ ΠΑΙΑΝΙΑ - ΚΑΝΤΖΑ","stLat":"37.98396301","stLon":"23.86992264"},';a+='{"ID":"1","stName":"ΣΤ. ΜΕΤΡΟ ΠΑΛΛΗΝΗ","stLat":"38.00555038","stLon":"23.86975098"},';a+='{"ID":"1","stName":"ΣΤ. ΜΕΤΡΟ ΠΑΝΕΠΙΣΤΗΜΙΟ","stLat":"37.98031616","stLon":"23.73289299"},';a+='{"ID":"1","stName":"ΣΤ. ΜΕΤΡΟ ΠΑΝΟΡΜΟΥ","stLat":"37.99308395","stLon":"23.76338577"},';a+='{"ID":"1","stName":"ΣΤ. ΜΕΤΡΟ ΣΕΠΟΛΙΑ","stLat":"38.00276184","stLon":"23.71340942"},';a+='{"ID":"1","stName":"ΣΤ. ΜΕΤΡΟ ΣΤΑΘΜΟΣ ΛΑΡΙΣΗΣ","stLat":"37.99209595","stLon":"23.72122002"},';a+='{"ID":"1","stName":"ΣΤ. ΜΕΤΡΟ ΣΥΓΓΡΟΥ - ΦΙΞ","stLat":"37.96456528","stLon":"23.72701454"},';a+='{"ID":"1","stName":"ΣΤ. ΜΕΤΡΟ ΣΥΝΤΑΓΜΑ","stLat":"37.97533798","stLon":"23.73561859"},';a+='{"ID":"1","stName":"ΣΤ. ΜΕΤΡΟ ΧΑΛΑΝΔΡΙ","stLat":"38.0217514","stLon":"23.821064"},';a+='{"ID":"1","stName":"ΣΤ. ΜΕΤΡΟ ΑΤΤΙΚΗ","stLat":"37.99950027","stLon":"23.72287369"},';a+='{"ID":"1","stName":"ΣΤ. ΜΕΤΡΟ ΜΟΝΑΣΤΗΡΑΚΙ","stLat":"37.97703171","stLon":"23.72583389"},';a+='{"ID":"1","stName":"ΣΤ. ΜΕΤΡΟ ΟΜΟΝΟΙΑ","stLat":"37.98396301","stLon":"23.72832298"},';a+='{"ID":"2","stName":"ΣΤ. ΠΡΟΑΣΤ. ΑΓΙΟΙ ΘΕΟΔΩΡΟΙ","stLat":"37.92843246","stLon":"23.13072586"},';a+='{"ID":"2","stName":"ΣΤ. ΠΡΟΑΣΤ. ΑΕΡΟΔΡΟΜΙΟ","stLat":"37.93682098","stLon":"23.94470215"},';a+='{"ID":"2","stName":"ΣΤ. ΠΡΟΑΣΤ. ΑΝΩ ΛΙΟΣΙΑ","stLat":"38.07080078","stLon":"23.70980453"},';a+='{"ID":"2","stName":"ΣΤ. ΠΡΟΑΣΤ. ΑΣΠΡΟΠΥΡΓΟΣ","stLat":"38.08084488","stLon":"23.60444832"},';a+='{"ID":"2","stName":"ΣΤ. ΠΡΟΑΣΤ. ΔΟΥΚΙΣΣΑΗΣ ΠΛΑΚΕΝΤΙΑΣ","stLat":"38.02471161","stLon":"23.83387375"},';a+='{"ID":"2","stName":"ΣΤ. ΠΡΟΑΣΤ. ΗΡΑΚΛΕΙΟ","stLat":"38.05719757","stLon":"23.77153778"},';a+='{"ID":"2","stName":"ΣΤ. ΠΡΟΑΣΤ. ΚΗΦΙΣΙΑΣ","stLat":"38.04209137","stLon":"23.80355453"},';a+='{"ID":"2","stName":"ΣΤ. ΠΡΟΑΣΤ. ΚΙΝΕΤΤΑ","stLat":"37.96387863","stLon":"23.19823265"},';a+='{"ID":"2","stName":"ΣΤ. ΠΡΟΑΣΤ. ΚΟΡΙΝΘΟΣ","stLat":"37.92113495","stLon":"22.93192101"},';a+='{"ID":"2","stName":"ΣΤ. ΠΡΟΑΣΤ. ΚΟΡΩΠΙ","stLat":"37.91313171","stLon":"23.89571381"},';a+='{"ID":"2","stName":"ΣΤ. ΠΡΟΑΣΤ. ΛΕΩΦ. ΠΕΝΤΕΛΗΣ","stLat":"38.03335953","stLon":"23.82207108"},';a+='{"ID":"2","stName":"ΣΤ. ΠΡΟΑΣΤ. ΜΑΓΟΥΛΑ","stLat":"38.07359314","stLon":"23.52938843"},';a+='{"ID":"2","stName":"ΣΤ. ΠΡΟΑΣΤ. ΜΕΓΑΡΑ","stLat":"37.98741913","stLon":"23.35538864"},';a+='{"ID":"2","stName":"ΣΤ. ΠΡΟΑΣΤ. ΝΕΑ ΠΕΡΑΜΟΣ","stLat":"38.01303864","stLon":"23.41454697"},';a+='{"ID":"2","stName":"ΣΤ. ΠΡΟΑΣΤ. ΝΕΡΑΤΖΙΩΤΙΣΣΑ","stLat":"38.04500961","stLon":"23.79321098"},';a+='{"ID":"2","stName":"ΣΤ. ΠΡΟΑΣΤ. ΠΑΙΑΝΙΑ - ΚΑΝΤΖΑ","stLat":"37.98381424","stLon":"23.86987877"},';a+='{"ID":"2","stName":"ΣΤ. ΠΡΟΑΣΤ. ΠΑΛΛΗΝΗ","stLat":"38.00569916","stLon":"23.86966515"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ 1Η ΑΓ. ΚΟΣΜΑ","stLat":"37.89345551","stLon":"23.72158432"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ 2Η ΑΓ. ΚΟΣΜΑ","stLat":"37.89113617","stLon":"23.72304535"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΜΕΤΑΞΑ","stLat":"37.86287689","stLon":"23.75104713"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΑΓ. ΠΑΡΑΣΚΕΥΗ","stLat":"37.93909454","stLon":"23.71274567"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΑΓ. ΣΚΕΠΗ","stLat":"37.93480301","stLon":"23.69459152"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΑΓ. ΑΛΕΞΑΝΔΡΟΣ","stLat":"37.88676071","stLon":"23.72591972"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΑΙΓΑΙΟΥ","stLat":"37.95038223","stLon":"23.7192688"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΑΜΦΙΘΕΑΣ","stLat":"37.92776489","stLon":"23.70371056"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΑΧΙΛΛΕΩΣ","stLat":"37.929245","stLon":"23.70961189"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΒΟΥΛΑ","stLat":"37.85442352","stLon":"23.75276375"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΒΟΥΛΙΑΓΜΕΝΗΣ","stLat":"37.96686172","stLon":"23.73216438"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΔΕΛΤΑ","stLat":"37.93750763","stLon":"23.69216728"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΕΔΕΜ","stLat":"37.91757202","stLon":"23.70156479"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΕΛΛΗΝΙΚΟ","stLat":"37.8974622","stLon":"23.7202912"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΟΛΥΜΠΙΟΝΙΚΩΝ","stLat":"37.88141632","stLon":"23.72937393"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΕΥΑΓΓΕΛΙΚΗ ΣΧΟΛΗ","stLat":"37.9319725","stLon":"23.7104702"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΖΑΠΠΕΙΟ","stLat":"37.9702301","stLon":"23.73441696"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΖΕΦΥΡΟΣ","stLat":"37.90684509","stLon":"23.71680069"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΚΑΛΑΜΑΚΙ","stLat":"37.9091835","stLon":"23.71407509"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΚΑΛΛΙΘΕΑ","stLat":"37.94248581","stLon":"23.68450546"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΚΑΣΟΜΟΥΛΗ","stLat":"37.95990753","stLon":"23.72351646"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΚΕΝΤΡΟ ΙΣΤΙΟΠΛΟΪΑΣ","stLat":"37.8753891","stLon":"23.73252869"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΚΟΛΥΜΒΗΤΗΡΙΟ","stLat":"37.8580513","stLon":"23.75482368"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΛΟΥΤΡΑ","stLat":"37.90309143","stLon":"23.71958923"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΜΑΡΙΝΑ","stLat":"37.91330338","stLon":"23.70875359"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΜΕΓΑΛΟΥ ΑΛΕΞΑΝΔΡΟΥ","stLat":"37.94491196","stLon":"23.71450424"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΜΗΔΕΙΑΣ","stLat":"37.93671417","stLon":"23.7119503"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΜΟΣΧΑΤΟ","stLat":"37.94416046","stLon":"23.67871284"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΜΟΥΣΩΝ","stLat":"37.92158508","stLon":"23.69948387"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΜΠΑΚΝΑΝΑ","stLat":"37.95396423","stLon":"23.72323799"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΜΠΑΤΗΣ","stLat":"37.92143631","stLon":"23.69669342"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΝΕΑ ΣΜΥΡΝΗ","stLat":"37.94748688","stLon":"23.71574783"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΝΕΟ ΦΑΛΗΡΟ","stLat":"37.944667","stLon":"23.6689912"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΝΕΟΣ ΚΟΣΜΟΣ","stLat":"37.9576149","stLon":"23.7281723"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΠΑΛΑΙΟ ΔΗΜΑΡΧΕΙΟ","stLat":"37.86448669","stLon":"23.74372864"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΠΑΝΑΓΙΤΣΑ","stLat":"37.92431259","stLon":"23.70126534"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΠΑΡΑΛΙΑ ΓΛΥΦΑΔΑΣ","stLat":"37.867836","stLon":"23.73827934"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΠΑΡΚΟ ΦΛΟΙΣΒΟΥ","stLat":"37.928008","stLon":"23.6883803"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΠΙΚΡΟΔΑΦΝΗ","stLat":"37.916008","stLon":"23.70555687"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΠΛΑΕΙΑ ΒΕΡΓΩΤΗ","stLat":"37.87189102","stLon":"23.73480225"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΠΛΑΤΕΙΑ ΕΣΠΕΡΙΔΩΝ","stLat":"37.86122513","stLon":"23.75387955"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΠΛΑΤΕΙΑ ΚΑΤΡΑΚΗ","stLat":"37.86352158","stLon":"23.74746323"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΣΤΑΔΙΟ ΕΙΡΗΝΗΣ & ΦΙΛΙΑΣ","stLat":"37.94364548","stLon":"23.66375732"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΣΥΓΓΡΟΥ ΦΙΞ","stLat":"37.96332169","stLon":"23.72645569"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΣΥΝΤΑΓΜΑ","stLat":"37.97486496","stLon":"23.73546791"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΤΖΙΤΖΙΦΙΕΣ","stLat":"37.94096375","stLon":"23.68753242"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΤΡΟΚΑΝΤΕΡΟ","stLat":"37.93225098","stLon":"23.68849754"},';a+='{"ID":"4","stName":"ΣΤ. ΤΡΑΜ ΦΛΟΙΣΒΟΣ","stLat":"37.92568588","stLon":"23.6909008"}]';this.list=JSON.parse(a);return this.list},getStationComboFromVehicle:function(b,d){var c="Start";if(d!=true){c="Stop"}var a='<select id="select'+c+'StationList" class="selectStation" >';var f=this.getList();for(var e=0;e<f.length;e++){if(f[e].ID==b){a+='<option value="'+f[e].stName+'">'+f[e].stName+"</option>"}}a+="</select>";return a},setFromStation:function(a,b){var d=this.getList();for(var c=0;c<d.length;c++){if(d[c].stName==a){youdrive.markers.createAndSetRoute(d[c].stName,d[c].stLat,d[c].stLon,b);break}}}};var encrt={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(c){var a="";var k,h,f,j,g,e,d;var b=0;c=encrt._utf8_encode(c);while(b<c.length){k=c.charCodeAt(b++);h=c.charCodeAt(b++);f=c.charCodeAt(b++);j=k>>2;g=((k&3)<<4)|(h>>4);e=((h&15)<<2)|(f>>6);d=f&63;if(isNaN(h)){e=d=64}else{if(isNaN(f)){d=64}}a=a+this._keyStr.charAt(j)+this._keyStr.charAt(g)+this._keyStr.charAt(e)+this._keyStr.charAt(d)}return a},decode:function(c){var a="";var k,h,f;var j,g,e,d;var b=0;c=c.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(b<c.length){j=this._keyStr.indexOf(c.charAt(b++));g=this._keyStr.indexOf(c.charAt(b++));e=this._keyStr.indexOf(c.charAt(b++));d=this._keyStr.indexOf(c.charAt(b++));k=(j<<2)|(g>>4);h=((g&15)<<4)|(e>>2);f=((e&3)<<6)|d;a=a+String.fromCharCode(k);if(e!=64){a=a+String.fromCharCode(h)}if(d!=64){a=a+String.fromCharCode(f)}}a=encrt._utf8_decode(a);return a},_utf8_encode:function(b){b=b.replace(/\r\n/g,"\n");var a="";for(var e=0;e<b.length;e++){var d=b.charCodeAt(e);if(d<128){a+=String.fromCharCode(d)}else{if((d>127)&&(d<2048)){a+=String.fromCharCode((d>>6)|192);a+=String.fromCharCode((d&63)|128)}else{a+=String.fromCharCode((d>>12)|224);a+=String.fromCharCode(((d>>6)&63)|128);a+=String.fromCharCode((d&63)|128)}}}return a},_utf8_decode:function(a){var b="";var d=0;var e=c1=c2=0;while(d<a.length){e=a.charCodeAt(d);if(e<128){b+=String.fromCharCode(e);d++}else{if((e>191)&&(e<224)){c2=a.charCodeAt(d+1);b+=String.fromCharCode(((e&31)<<6)|(c2&63));d+=2}else{c2=a.charCodeAt(d+1);c3=a.charCodeAt(d+2);b+=String.fromCharCode(((e&15)<<12)|((c2&63)<<6)|(c3&63));d+=3}}}return b}};
