$(document).ready(function(){
     $('#fade').prepend("<div id='ss_loader'></div>");
     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 );}
     }
       
        $('#lazy').lazyslider({btnsHeight:22,btnsWidth:50,slowcontrols:false});
        $('#lazy a').lazybox({footer:'<a href="http://geoproject.mk">Geoproject</a> &copy; All Rights Reserved'});
    
    
    
     
        $('.menu ul li').hover(
           function(){
             $(this).children('ul').show();
           },
           function(){
             $(this).children('ul').hide();  
           });
        
         
        $('.menu ul li')
         .css( {backgroundPosition: "0 -301px"} )
         .mouseover(function(){
         $(this).stop().animate({backgroundPosition:"(0 0)"}, {duration:200})})     
         .mouseout(function(){
         $(this).stop().animate({backgroundPosition:"(0 -301px)"}, {duration:200})
         })
     
        $('.solutions ul li a').hover(function(){
          
            $('.solutions img').attr('src',$(this).attr('title'));
          });

        $('.pricini ul li p').click(function(){
            
            
           $('.pricini ul li div:visible').slideUp('normal');
           $('.pricini ul li p span').removeClass('minus');
            $(this).children('span').removeClass('minus');                
            //$('.pricini ul li p span').removeClass('minus')                
            showelement=$(this).next();
            
            
            if (showelement.is(':hidden')){
            showelement.slideDown('normal');
            $(this).children('span').addClass('minus')                
            
            }else
            {return false;}
        });
        /*
        function(){
            showelement=$(this).children('div');
            if (!showelement.is(':hidden')){
            showelement.slideUp('fast');}
        })  ;*/
        
        
});
