/**
 * Javascript - jQuery enabled
 * 
 * @package WPFramework
 * @subpackage Media
 */


jQuery(document).ready(function($) {


	/* Reduce opacity when mouse hover portfolio images */
	$(".fade a img").fadeTo(0, 1.0); // This sets the opacity to 100% when the page loads

	$(".fade a img").hover(function(){
		$(this).stop().fadeTo("slow", 0.6); // This sets the opacity to 60% on hover
	},function(){
		$(this).stop().fadeTo("slow", 1.0); // This sets the opacity back to 100% on mouseout
	});
	
	/* Font Replacement */
	Cufon.replace('h2', { fontFamily: 'Geosanslight', hover: true });
	Cufon.replace('h1', { fontFamily: 'ChunkFive' });
	Cufon.replace('h3', { fontFamily: 'ChunkFive' });
	
	/* PrettyPhoto */
	$("a[rel^='lightbox']").prettyPhoto({
		theme: 'light_square' /* light_rounded / dark_rounded / light_square / dark_square */		
	});
});
