"mololo.map".namespace();
mololo.map.MapContentControl=function(){};
mololo.map.MapContentControl.prototype=new GControl();
backupInnerHTML:null,mololo.map.MapContentControl.prototype.initialize=function(C){var B=$("contentContainer");
var A=$("contentContainerBackground");
this.backupInnerHTML=B.innerHTML;
A.appendChild(B);
this.htmlContainer=B;
C.getContainer().appendChild(A);
return A
};
mololo.map.MapContentControl.prototype.getDefaultPosition=function(){return new GControlPosition(G_ANCHOR_TOP_RIGHT,new GSize(7,8))
};
mololo.map.MapContentControl.prototype.getHTMLContainer=function(){return this.htmlContainer
};
mololo.map.MapContentControl.prototype.getContainerById=function(B){if(!this.isContainerByIdVisible(B)){this.htmlContainer.innerHTML=this.backupInnerHTML
}for(var A=0;
A<this.htmlContainer.childNodes.length;
A++){if(this.htmlContainer.childNodes[A].id==B){return this.htmlContainer.childNodes[A]
}}return $(B)
};
mololo.map.MapContentControl.prototype.selectable=function(){return true
};
mololo.map.MapContentControl.prototype.isContainerByIdVisible=function(C,A){if(A==undefined){A=this.htmlContainer
}for(var B=0;
B<A.childNodes.length;
B++){if(A.childNodes[B].id==C){return true
}if(this.isContainerByIdVisible(C,A.childNodes[B])){return true
}}return false
};
mololo.map.MapContentButtonsControl=function(){};
mololo.map.MapContentButtonsControl.prototype=new GControl();
mololo.map.MapContentButtonsControl.prototype.initialize=function(B){var A=document.createElement("div");
A.id="contentButtonsContainer";
this.htmlContainer=A;
B.getContainer().appendChild(A);
A.appendChild(this.createButton("przyciski_okno__03.png","MY_PROFILE_ACTION","profil.html"));
A.appendChild(this.createButton("przyciski_okno__04.png"));
A.appendChild(this.createButton("przyciski_okno__05.png","MY_EVENTS_ACTION","listEvents.html"));
A.appendChild(this.createButton("przyciski_okno__06.png","MY_ROUTES_ACTION","routes.html"));
A.appendChild(this.createButton("przyciski_okno__07.png","MY_NEWSLETTER_ACTION","newsletter.html"));
A.appendChild(this.createButton("przyciski_okno__08.png"));
A.appendChild(this.createButton("przyciski_okno__09.png"));
return A
};
mololo.map.MapContentButtonsControl.prototype.createButton=function(A,B,D){var C=document.createElement("a");
C.href="javascript:mololo.globals.DISPATCHER.sendEvent(mololo.Action."+B+",new mololo.PageLoadEvent(mololo.Action."+B+".getName(), '"+D+"'));";
var E=document.createElement("img");
E.src=mololo.globals.CONTEXT.getImagesPath()+"layout/"+A;
E.className="contentButtons";
C.appendChild(E);
return C
};
mololo.map.MapContentButtonsControl.prototype.getDefaultPosition=function(){return new GControlPosition(G_ANCHOR_TOP_RIGHT,new GSize(15,17))
};
mololo.map.MapContentButtonsControl.prototype.getHTMLContainer=function(){return this.htmlContainer
};
mololo.map.MessageControl=function(){};
mololo.map.MessageControl.prototype=new GControl();
mololo.map.MessageControl.prototype.initialize=function(B){var A=document.createElement("div");
A.id="messageContainer";
this.htmlContainer=A;
this.htmlContainer.style.display="none";
B.getContainer().appendChild(A);
return A
};
mololo.map.MessageControl.prototype.message=function(A){this.htmlContainer.style.display="";
this.htmlContainer.innerHTML=A;
setTimeout("mololo.globals.MESSAGE_CONTROL.close()",3000)
};
mololo.map.MessageControl.prototype.close=function(){this.htmlContainer.style.display="none"
};
mololo.map.MessageControl.prototype.getDefaultPosition=function(){return new GControlPosition(G_ANCHOR_BOTTOM_LEFT,new GSize(80,0))
};
mololo.map.MessageControl.prototype.getHTMLContainer=function(){return this.htmlContainer
};
mololo.map.MapZoomSliderControl=function(){};
mololo.map.MapZoomSliderControl.prototype=new GControl();
mololo.map.MapZoomSliderControl.prototype.setSlider=function(A){var B=Math.round((2*YSLIDERLENGTH-YSLIDERLENGTH/(MAXZOOM-MINZOOM)*(A-MINZOOM)-4));
this.slide.top=B;
this.knob.style.top=B+"px"
};
mololo.map.MapZoomSliderControl.prototype.setZoom=function(){var A=Math.round((2*YSLIDERLENGTH-4-top)/YSLIDERLENGTH*(MAXZOOM-MINZOOM)+MINZOOM);
this.map.setZoom(A)
};
mololo.map.MapZoomSliderControl.prototype.initialize=function(E){var C=this;
this.map=E;
var B=document.createElement("div");
var D=document.createElement("div");
B.appendChild(D);
D.style.width="21px";
D.style.height="21px";
D.style.backgroundImage="URL('"+mololo.globals.CONTEXT.getImagesPath()+"map/buttons/zoom/button_plus.png')";
D.style.cursor="pointer";
GEvent.addDomListener(D,"click",function(){var J=E.getBounds();
var G=J.getSouthWest().lng();
var I=J.getSouthWest().lat();
var F=J.getNorthEast().lng();
var H=J.getNorthEast().lat();
var L=(F-G)*0.3;
var K=new GLatLng(I+((H-I)/2),G+L);
E.zoomIn(K,false,true)
});
var A=document.createElement("div");
B.appendChild(A);
A.style.width="21px";
A.style.height="21px";
A.style.backgroundImage="URL('"+mololo.globals.CONTEXT.getImagesPath()+"map/buttons/zoom/button_minus.png')";
A.style.cursor="pointer";
GEvent.addDomListener(A,"click",function(){var J=E.getBounds();
var G=J.getSouthWest().lng();
var I=J.getSouthWest().lat();
var F=J.getNorthEast().lng();
var H=J.getNorthEast().lat();
var L=(F-G)*0.3;
var K=new GLatLng(I+((H-I)/2),G+L);
E.zoomOut(K,false,true)
});
E.getContainer().appendChild(B);
return B
};
mololo.map.MapZoomSliderControl.prototype.getDefaultPosition=function(){return new GControlPosition(G_ANCHOR_TOP_LEFT,new GSize(7,7))
};
mololo.map.MapTypeControl=function(){};
mololo.map.MapTypeControl.prototype=new GControl();
mololo.map.MapTypeControl.prototype.container=null;
mololo.map.MapTypeControl.prototype.initialize=function(D){var C=this;
this.map=D;
this.container=document.createElement("div");
this.container.style["float"]="right";
var B=document.createElement("div");
this.container.appendChild(B);
B.style.width="65px";
B.style.height="28px";
B.style.backgroundImage="URL('"+mololo.globals.CONTEXT.getImagesPath()+"map/buttons/button_mapa-hover.png')";
B.style.cursor="pointer";
B.style.styleFloat="left";
B.style.cssFloat="left";
GEvent.addDomListener(B,"click",function(){B.style.backgroundImage="URL('"+mololo.globals.CONTEXT.getImagesPath()+"map/buttons/button_mapa-hover.png')";
A.style.backgroundImage="URL('"+mololo.globals.CONTEXT.getImagesPath()+"map/buttons/button_satelita.png')";
E.style.backgroundImage="URL('"+mololo.globals.CONTEXT.getImagesPath()+"map/buttons/button_hybryda.png')";
D.setMapType(G_NORMAL_MAP)
});
var A=document.createElement("div");
this.container.appendChild(A);
A.style.width="60px";
A.style.height="28px";
A.style.backgroundImage="URL('"+mololo.globals.CONTEXT.getImagesPath()+"map/buttons/button_satelita.png')";
A.style.cursor="pointer";
A.style.styleFloat="left";
A.style.cssFloat="left";
GEvent.addDomListener(A,"click",function(){B.style.backgroundImage="URL('"+mololo.globals.CONTEXT.getImagesPath()+"map/buttons/button_mapa.png')";
A.style.backgroundImage="URL('"+mololo.globals.CONTEXT.getImagesPath()+"map/buttons/button_satelita-hover.png')";
E.style.backgroundImage="URL('"+mololo.globals.CONTEXT.getImagesPath()+"map/buttons/button_hybryda.png')";
D.setMapType(G_SATELLITE_MAP)
});
var E=document.createElement("div");
this.container.appendChild(E);
E.style.width="78px";
E.style.height="28px";
E.style.backgroundImage="URL('"+mololo.globals.CONTEXT.getImagesPath()+"map/buttons/button_hybryda.png')";
E.style.cursor="pointer";
E.style.styleFloat="left";
E.style.cssFloat="left";
GEvent.addDomListener(E,"click",function(){B.style.backgroundImage="URL('"+mololo.globals.CONTEXT.getImagesPath()+"map/buttons/button_mapa.png')";
A.style.backgroundImage="URL('"+mololo.globals.CONTEXT.getImagesPath()+"map/buttons/button_satelita.png')";
E.style.backgroundImage="URL('"+mololo.globals.CONTEXT.getImagesPath()+"map/buttons/button_hybryda-hover.png')";
D.setMapType(G_HYBRID_MAP)
});
D.getContainer().appendChild(this.container);
return this.container
};
mololo.map.MapTypeControl.prototype.getDefaultPosition=function(){return new GControlPosition(G_ANCHOR_TOP_RIGHT,new GSize(435,10))
};
mololo.map.MapTypeControl.prototype.hide=function(){this.container.style.display="none"
};
mololo.map.MapTypeControl.prototype.show=function(){this.container.style.display=""
};
mololo.map.MapTypeControl.prototype.onInfoWindowClosed=function(){mololo.globals.MAP_TYPE_CONTROL.show()
};
mololo.map.MapNavigationControl=function(){};
mololo.map.MapNavigationControl.prototype=new GControl();
mololo.map.MapNavigationControl.prototype.container=null;
mololo.map.MapNavigationControl.prototype.initialize=function(C){var B=this;
this.map=C;
this.container=document.createElement("div");
this.container.id="mapNavigationControlContainer";
var A=document.createElement("div");
A.className="showCountry";
this.container.appendChild(A);
GEvent.addDomListener(A,"click",function(){mololo.map.MapUtils.showAllCountry(this.map)
});
C.getContainer().appendChild(this.container);
return this.container
};
mololo.map.MapNavigationControl.prototype.getDefaultPosition=function(){return new GControlPosition(G_ANCHOR_BOTTOM_RIGHT,new GSize(435,10))
};