$(document).ready(function(){	
	
	Cufon.replace('#make_head h1', { fontFamily: 'Calibri', hover: true, textShadow: '#a80000 1px 1px 1px' });
	Cufon.replace('.review_head h1', { fontFamily: 'Calibri', hover: true, textShadow: '#a80000 1px 1px 1px' });
	
	Cufon.replace('.review_goto', { fontFamily: 'Calibri', hover: true, textShadow: '#3d698e 1px 1px 1px' });
	
	Cufon.replace('#content h2', { fontFamily: 'Calibri', hover: true, textShadow: '#a80000 1px 1px 1px' });
	Cufon.replace('#sidebar h2', { fontFamily: 'Calibri', hover: true, textShadow: '#011642 1px 1px 1px' });
	Cufon.replace('#sidebar ul.makes a', { fontFamily: 'Calibri', hover: true, textShadow: '#011642 1px 1px 1px' });
	Cufon.replace('#footer p', { fontFamily: 'Calibri', hover: true, textShadow: '#515151 1px 1px 1px' });
	Cufon.replace('.wp-paginate .title', { fontFamily: 'Calibri', hover: true, textShadow: '#fff 1px 1px 1px' });
	
	
	
	$('#slider').nivoSlider({
		effect: 'fold',
		pauseTime:3000,
	});
	
	$('.marka_salony').sweetPages({perPage:8});
	
	$('.markatestylist').sweetPages({perPage:4});
		
	$('.scrolled').jScrollPane({
		showArrows: true,
		autoReinitialise: true,
		verticalDragMinHeight: 32,
		verticalDragMaxHeight: 32,
	});

	$('#make_head h1').append("<span class=\"spout\"></span>");
	$('.review_head h1').append("<span class=\"spout\"></span>");
	$('#content h2').append("<span class=\"spout\"></span>");
	$('#sidebar h2').append("<span class=\"spout\"></span>");
	$('.review_goto').append("<span class=\"spout\"></span>");
	$('.wp-paginate').append("<span class=\"spout\"></span>");
	
	if ($.browser.msie) {
		  $("#nav2 a span").textShadow();
	}
	
	$("#photo_container").hover(
			function(){
				$("#photo_container a").fadeIn();
			},
			function(){
				$("#photo_container a").fadeOut();
			}
	);
	
	$(".photolist").hover(
			function(){
				$(".photolist a img").css('opacity','0.5');
				$(".photolist a img:first").css('opacity','1');
			},
			function(){
				$(".photolist a img").css('opacity','1');
			}
	);
	
	$(".photolist a img").hover(
			function(){
				$(".photolist a img").css('opacity','0.5');
				$(this).css('opacity','1');
			},
			function(){
				$(".photolist a img").css('opacity','0.5');
			}
	);
	
	$(".testylist .review_head > a").hover(
			function(){
				$(this).parent().css('box-shadow','5px 4px #ccc');
			},
			function(){
				$(this).parent().css('box-shadow','none');
			}
	);
	
	$(".testylist .review_head > h1").hover(
			function(){
				$(this).parent().css('box-shadow','5px 4px #ccc');
			},
			function(){
				$(this).parent().css('box-shadow','none');
			}
	);
});	
