 (function ($) {
 $(document).ready(function(){	
  $(".views-field-field-obrazek-na-liste").stop(true, true).append($('<div class="lupka">&nbsp;</div>'));
    $(".view-realizacje-lista .views-row").stop(true, true).append($('<div class="tloBox">&nbsp;</div>'));
  
 startStrony();
 hoverLista();   
  
 	
});
 

function startStrony(){
	var speedFade=200;
	
	$("#header").fadeIn(speedFade, function(){
		$("#prawa").fadeIn(speedFade);
		$("#dol-tresc").fadeIn(speedFade);
		$(".region-content").fadeIn(speedFade, function(){
			
		 
				
				$("#footer").fadeIn(speedFade);
				$("#footer2").fadeIn(speedFade);
				
			 
			});
		
		});
	
	}
	
function hoverLista(){
	var speedFade=100;
	var speedFadeBox=500;
	$(".views-row").hover(function() { 
	
	 $(this).css("background-color","#ececf0");
	/*$(this).find(".tloBox").stop(true, true).addClass("hover_btn");*/
	$(this).find(".views-field-field-obrazek-na-liste .field-content").stop(true, true).fadeTo(speedFade, 0.3);
    $(this).css("z-index","12");
	 $(this).find(".views-field-title").stop(true, true).fadeIn(400);	
 
		
	 	
	
   $(this).find(".tloBox").fadeIn(100);
	$(this).find(".tloBox").stop(true, true).animate({
	 
		height:260,
		left:-10,
		top:-10,
		width:260
		 
		 
			 
		},100);
		
		
		
		
		$(this).find(".lupka").stop(true, true).fadeIn(speedFade);
	
	 }, function() { 
	  $(this).removeAttr("style");
	
	 $(this).find(".views-field-field-obrazek-na-liste .field-content").stop(true, true).fadeTo(speedFade, 1);
	 $(this).find(".lupka").stop(true, true).fadeOut(speedFade);
	  $(this).find(".tloBox").stop(true, true).fadeOut(speedFadeBox);
	
	 $(this).find(".tloBox").css("z-index","9");
	 		$(this).find(".tloBox").stop(true, true).animate({
		 
			
			height:240,
		left:0,
		top:0,
		width:240
			
		
			
		},200);
		
		 
		
		 
		/*	$(this).find(".tloBox").removeClass("hover_btn");*/
		
		   $(this).find(".views-field-title").stop(true, true).fadeOut(100);	
	 
		
	 
	  });
	
	}


})(jQuery);
 
  

  
/******start strony koniec*************************
 **************************************/
 
 
 
  ;

