// JavaScript Document
 $(document).ready(function(){
	$('#select_institutions').hide();
	 
	$('#instytucje_znikaczka').click(function(){
		$('#select_institutions').slideToggle();
		return false;
	});
	//tips
	 $('.avatar_logged').qtip({
		   content: 'Zobacz swój profil',
		   position: {
			      at: 'bottom center'
			   },
		   style: {
				  classes: 'ui-tooltip-dark ui-tooltip-shadow'
		   }
	 });
	
	//inne
	$("#go_top").click(function(){
			  $('html, body').animate({ scrollTop: 0 }, 'normal');
	});
							
	$(".icons img, .banner img, #users img, .icon_news img, .avatar").not(".avatar_logged .avatar").fadeTo("fast", 1);					
	$(".icons img, .banner img, #users img, .icon_news img, .avatar").not(".avatar_logged .avatar").hover(function(){
                    $(this).fadeTo("fast", .7);
                },function(){
                    $(this).fadeTo("fast", 1);
                });
	
	$(".entry .data").fadeTo("fast", 0.5);					
	$(".entry .data").hover(function(){
                    $(this).fadeTo("fast", 1);
                },function(){
                    $(this).fadeTo("fast", 0.5);
                });	

	/* calendar hidder */
	
	$(".nastepny").click(function(){
		$("#calendar_1").hide();
		$("#calendar_2").fadeIn("slow");
		return false;
	});
	
	$(".poprzedni").click(function(){
		$("#calendar_2").hide();
		$("#calendar_1").fadeIn("slow");
		return false;
	});
  });
