$(document).ready(function() { 	
	var n = $('.box-sca-dza').length - 1;
	for (i=0;i<=n;i++) {
		var url_proprty = "url(wp-content/themes/espes/img/gfx/box/"+ i +".png)";
		$('.box-sca-dza:eq('+ i +')').css("background-image",url_proprty);
	};	
	var s = $('.realizacje').length;
	for (i=1;i<=s;i++) {
		var url_proprty = "url(http://espes.pl/wp-content/themes/twentyten/images/realizacje-logo/"+ i +".png)";
		$('.realizacje:eq('+ i +')').css("background-image",url_proprty);
	};	

	$('.realizacje:gt(27)').css("background-position","0 100%");
	$('.realizacje:gt(27)').hover(function(){
		$(this).css("background-position","0 0");}
	,function()	{
		$(this).css("background-position","0 100%");
	});
	$(".realizacje:gt(27)").after("<div class='zapomniana-panga'></div>");
	
	
	$('input[type|="reset"]').css('display', 'none');
	
	 function on(){
			$('div#img-content').animate({ height: '470px'}, 1500, function() {});
			$('div.conten-txt-left, div.conten-thom-left').css("display","none");	
		};
	 function out(){
			$('div#img-content').animate({ height: '235px'}, 400, function() {
				$('div.conten-txt-left, div.conten-thom-left').fadeIn(1000);
			});			
		};	
		
	$("div#img-content").hoverIntent( on, out )
	$('a').hover(function(){$(this).css("color","#fff");},function(){$(this).css("color","#cbcbcb");});
	
	$("ul.left-box-menu li div .more-button img").hover(
	  function () {
		$(this).removeAttr("src").attr('src', 'http://2011.espes.pl/wp-content/themes/espes/img/page/zobacz2.png');
	  }, 
	  function () {
		$(this).removeAttr("src").attr('src', 'http://2011.espes.pl/wp-content/themes/espes/img/page/zobacz.png');
	  }
	);
	$('.galleryid-13 br').removeAttr("style").css("display","none");
	


});
