$(document).ready(function() {

	/* Adds class="active" to current page */
	
	$("#wrapper #header .float-right ul li a").each(function() {
		if(this.href == window.location) $(this).addClass("active");
	});

	/* Fancybox Homepage Video */ 
 
	$("a.home_modal").fancybox({
		'hideOnContentClick': true,
		'overlayShow': true,
		'overlayOpacity': '0.8',
		'frameWidth': 700,
		'centerOnScroll': false,
		'frameHeight': 425
	}); 

	/* Fancybox other modals */
 
	$("a.fancybox").fancybox({ 
		'zoomSpeedIn': 600,
		'zoomSpeedOut': 500,
		'overlayShow': true,
		'overlayOpacity': '0.4',
		'easingIn': 'easeOutBack',
		'easingOut': 'easeInBack'
	}); 

	/* Post images opacity */

	$("#wrapper .post-body a img").css({ "opacity":"0.8" });


	$("#wrapper .post-body a img").hover(function(){
		$(this).animate({"opacity": "1"}, 150);
	},
	function(){
		$(this).animate({"opacity": "0.8"}, 150);
	});

	/* Footer widgets paddings */

	$(".footer-widgets .box:first").css({paddingLeft: '0'});

});


	/* Tooltip */

	$(function() {
		$(".tooltip").tooltip({
			track: true,
			delay: 0,
			showURL: false,
			showBody: " - ",
			fade: 250
			});
		});
