/*
This file executes on the jQuery ready() event. All themes have access to the jQuery library.
We need to break out the JS files into two different ones: user scripts and theme scripts. Theme scripts can include features like fancybox, Cufon text replacement, etc. This are the features that come with the theme itself. A simple theme may have none.
*/

$(document).ready(function() {

	$("a.zoom").fancybox({
		'overlayOpacity': 0.85,
		'hideOnContentClick': true,
		'imageScale':true,
		'frameWidth':700,
		'frameHeight':300			
	});	
	
	$("a.iframe").fancybox({
		'zoomOpacity':false,
		'overlayOpacity': 0.85,
		'frameWidth':700,
		'frameHeight':500,	
		'zoomSpeedIn':		500, 		
		'zoomSpeedOut':	500
	});

	Cufon('h1')('h2')('h3')('h4')('h5');
	Cufon.replace('#header h1', { color: '-linear-gradient(#fff, #ccc)', textShadow: '#004862 1px 1px' });
	Cufon.replace('#header h2', { color: '#000', textShadow: '#ccc 1px 1px' });		
	Cufon.replace('.component h1', { color: '-linear-gradient(#fff, #ccc)', textShadow: '#004862 1px 1px' });
	Cufon.replace('p.big');	

});