function RoadIntersectionPoint(D,C,B,A){this.latlng=D;this.request=C;this.response=B;this.intersident=A;this.marker=null;this.hide=function(){this.marker.hide()};this.show=function(){this.marker.show();this.marker.openInfoWindow(this.getHtml());map.panTo(this.latlng)};this.remove=function(){map.removeOverlay(this.marker)
};this.getHtml=function(){var E="";E+="<b>"+this.response.foundAs+"</b><br />";E+=this.response.zip+" "+this.response.municipality+"<br /> ";E+=this.request.division+"<br>";if(clear_state==0){E+="<a href=\"javascript:setRoutePointFrom('"+this.latlng.lat()+"','"+this.latlng.lng()+"')\">";E+='<img src="images/start_hex.png" style="border:0px; margin-right:3px;" title="Διαδρομή από" alt="Διαδρομή από" />';
E+="</a>";E+="<a href=\"javascript:setRoutePointTo('"+this.latlng.lat()+"','"+this.latlng.lng()+"')\">";E+='<img src="images/stop_hex.png" style="border:0px; margin-right:3px;" title="Διαδρομή έως" alt="Διαδρομή έως" />'}if(clear_state==2){E+='<img src="images/melissa1.png">&nbsp;<a href="http://www.ploigos.gr">www.ploigos.gr</a>&nbsp;<img src="images/melissa2.png">'
}return E};this.getText=function(){var E="";E+=this.response.foundAs+", ";E+=this.response.municipality;return E};this.getType=function(){return ELTYPE_INTERSECTION};this.getIdent=function(){return this.intersident};this.equals=function(E){if(E.getType()==this.getType()){if(this.intersident==E.intersident){return true
}}return false};this.init=function(E){if((E)&&(E<80)){this.marker=new GMarker(this.latlng,iconprint[E-1])}else{this.marker=new GMarker(this.latlng,iconSelectedPoint)}this.marker.htmlText=this.getHtml();GEvent.addListener(this.marker,"click",function(){this.openInfoWindow(this.htmlText)});map.addOverlay(this.marker);
map.panTo(this.latlng)};this.getAttributes=function(){return["vertex"]};this.toJSONString=function(){var E={"type":"intersectionpoint","latlng":{"lat":this.latlng.lat(),"lng":this.latlng.lng()},"request":this.request,"response":this.response};return toJSONString(E)}}RoadIntersectionPoint.prototype.fromJSONString=function(C,B){var A=new GLatLng(C.latlng.lat,C.latlng.lng);
var D=new RoadIntersectionPoint(A,C.request,C.response,-1);D.init(B);return D};