$(document).ready(function(){

	// $("div#contact").hover(
	// 		function() {
	// 			$(this).animate({color: "#555"}, "fast");
	// 		},
	// 		function(){
	// 			$(this).animate({color: "#777"}, "fast");
	// 	});
	// 
	
					$("a[rel^='video']").prettyPhoto({
				animationSpeed: 'normal', /* fast/slow/normal */
				padding: 40, /* padding for each side of the picture */
				opacity: 0.65, /* Value betwee 0 and 1 */
				showTitle: true, /* true/false */
				allowresize: true, /* true/false */
				theme: 'facebook' /* light_rounded / dark_rounded / light_square / dark_square */
			});
	
	
	$("#recent-posts ul li a, .widget_recent_posts ul li a, .widget_portfolio_categories ul li a, .widget_blog_categories ul li a, .widget_pages ul li a, .widget_links ul li a").hover(
			function() {
				$(this).stop().animate({paddingLeft: "13px"}, 200);
			},
			function(){
				$(this).stop().animate({paddingLeft: "8px"}, 200);
		});
		
	$(".page-navi ul").superfish({
		animation: {opacity:'show',height:'show'},
		speed: 250
		});
	$('#top').click( function() {
		$.scrollTo(0, 500);
	});
	
/*	$('.portfolio-item').hover(
		function(){
			item_height = 215 - $(".portfolio-item-info", this).height();
			$(".portfolio-item-info", this).stop().animate({top:item_height},{queue:false,duration:200});
		}, function() {
			$(".portfolio-item-info", this).stop().animate({top:'225'},{queue:false,duration:200});
		});*/
	
});

function slider() { // header slider
	if ($.browser.msie) { // IE
		$('#slider-container').cycle({ 
			fx: 'turnUp',
			timeout: 5000,
			speed: 500,
			pause:	1,
			cleartype: 1,
			cleartypeNoBg: true
		});
	} else { // good browsers
		$('#slider-container').cycle({ 
			fx: 'fade',
			timeout: 5000,
			pause:	1
		});
	};
}


	if ($.browser.msie) { // IE
		$('#slider-container-small').cycle({ 
			fx: 'turnUp',
			timeout: 5000,
			speed: 500,
			pause:	1,
			cleartype: 1,
			cleartypeNoBg: true
		});
	} else { // good browsers
		$('#slider-container-small').cycle({ 
			fx: 'fade',
			timeout: 5000,
			pause:	1
		});
	};


function femsi() {
	$(".content-item a[href$='jpg'], .content-item a[href$='jpeg'], .content-item a[href$='png'], .content-item a[href$='gif'], .content-item a[href$='bmp']").fancybox({
		'zoomSpeedIn': 300, 
		'zoomSpeedOut': 300, 
		'overlayShow': false
	});
}
