

    $(document).ready(function(){
    
     
      
    
      $.localScroll();
      
      
      
      
      
    
      $(".kontakt-popup").hide();
      //$("#copy-obal .main").hide();
      $(".cenik").hide();
      $(".minus-button").hide();
      
      
      
      $(".plus-button").click(function(event){
       $(".cenik").show('slow');
       $(".plus-button").hide();
       $(".minus-button").show();
       //$(this).toggleClass("open");
      });
      
      $(".minus-button").click(function(event){
       $(".cenik").hide('fast');
       $(".minus-button").hide();
       $(".plus-button").show();
       //$(this).toggleClass("open");
      });
      
      
      $(".kontakt-button").click(function(event){    
       $(".kontakt-popup").toggle("fast");   
       return false;
      });
    
      
       $(".close-button").click(function(event){    
       $(".kontakt-popup").hide("fast");  
       return false;
      }); 
      
       $(".kruh").hover(
        function(){ $(this).animate({top: '-=6'}, 200); },
        function(){ $(this).animate({top: '+=6'}, 200); }
       );
       
       $("#portfolio ul").hover(
        function(){ $(".caption",this).animate({top: '-=41'}, 200); },
        function(){ $(".caption",this).animate({top: '+=41'}, 200); }
       );
       
         
       
       
       
       $(".o-button").hover(
        function(){ $(this).animate({opacity: '0.9'}, 100); },
        function(){ $(this).animate({opacity: '1'}, 100); }
       );
       
       /*
       $("#portfolio ul li a").hover(
        function(){ $(this).animate({opacity: '0.8'}, 300); },
        function(){ $(this).animate({opacity: '1'}, 300); }
       );  */

      
      
      
      
      
    });

(function($){

/* jQuery Pre-Document Load
-------------------------------------------------------*/
 
$(function(){
/* Start jQuery Document Load
-------------------------------------------------------*/

_ie = $.browser.msie;

// COLORBOX - http://colorpowered.com/colorbox/
/* ----------------------------------------------------*/
$('#portfolio a').colorbox({
	rel: 'portfolio',
	transition: ( !_ie ) ? 'fade' : 'none',
	overlayClose: true,
	scrolling: false,
	current: "Reference {current} z {total}"
});





// Emulate target="_blank" by using rel="external" attribute for anchors
$('a[rel="external"]').bind(
	'click keypress', 
	
	function(){ 
		window.open( $(this).attr('href') ); 
	}
);
	
	

/* End jQuery Document Load
-------------------------------------------------------*/
});

})(jQuery);

