$(document).ready(function(){
         
         if (GBrowserIsCompatible()&&$('#map_canvas').length>0) {
        var map = new GMap2(document.getElementById("map_canvas"),{mapTypes:[G_NORMAL_MAP]});
        map.setMapType(G_SATELLITE_MAP);
        map.setCenter(new GLatLng(41.424842,22.657346), 15);
        map.setUIToDefault();
        
          var bounds = map.getBounds();
          
           var gm_markers = [];
        

           
          $(P_MARKERS).each(function(i,marker){
              var point = new GLatLng(marker.x,marker.y);
              gm_marker=new GMarker(point);
              map.addOverlay(gm_marker);
              $.extend(gm_marker,{panelName:marker.panelName});
              $('#'+marker.panelName).appendTo(map.getPane(G_MAP_FLOAT_SHADOW_PANE));
              gm_markers.push(gm_marker);
          });
  
          $(gm_markers).each(function(i,m){
                    
                        GEvent.addListener(m,"click",function(i){
                              $('.stores').hide();
                              
                  displayPoint(m,i);
              });
          });

        
        
   function displayPoint(bmarker,i){
            where=bmarker.getPoint();
            map.openInfoWindowHtml(where, $("#"+bmarker.panelName).html());

            map.panTo(bmarker.getPoint());
               var markerOffset = map.fromLatLngToDivPixel(bmarker.getPoint());
         
         
   }
         }
         
         
         
          function printobj(object){
                var pr='';
                for (var key in object) {
                pr=pr+key+': '+object[key]+'<br>';
                }
               return pr;
            };
    
    if (typeof window.docready=="function"){docready();}  
   
   $('#lazy').lazyslider({btnsHeight:33,btnsWidth:33,slowcontrols:false,fastrightPos:81,fastleftPos:90});
   $('#lazy-front').lazyslider({btnsHeight:33,btnsWidth:33,slowcontrols:false,fastrightPos:73,fastleftPos:93});
   $('#lazy a').lazybox({footer:'<a href="http://adamantus.com/dev/kipo">KIPO</a> &copy; All Rights Reserved'}); 
   $('.zoom_pic a').lazyzoom({D:{width:588,height:594,chW:250,chH:20}});
   
       
   
   
   $('.menu ul li').hover(function(){
       $(this).children('ul').show();
   },function(){
       $(this).children('ul').hide();
   });
   $('.menu ul li ul li:last-child').css({'border-bottom':'1px solid #707070'}); 
   
      
   $('#fade').prepend("<div id='ss_loader'></div>");
           $('#fade img:first').addClass("active");
           if ($('#fade').length!=0&&$('#fade').children('img').length>0){
           $(window).load(function(){
           $('#ss_loader').hide();
           $('#fade img').fadeIn();
           });
           if ($('#fade').children('img').length>1) {setInterval( "slideSwitch()", 5000 );}
           };
       
   
       
   $('.main_image .scroll').animate({right: "0px"}, 1500 );
   $('.info_r .mover').animate({top: "130px"}, 2000 );
       
   
   if ($('.uslugi a').length>0) $('.uslugi a').ahover({toggleEffect: 'height',moveSpeed:200}); 

     
              
});
