// remap jQuery to $
(function($){})(window.jQuery);


/* trigger when page is ready */
$(document).ready(function (){

	// initialise superfish
	jQuery(function(){
		jQuery('ul.sf-menu').superfish();
	});


	$("#cpt_videos img").fadeTo("slow", 0.8); 
	$("#cpt_videos img").hover(function(){
		$(this).fadeTo("slow", 1);
	},function(){
   		$(this).fadeTo("slow", 0.8);
	});

	$("#homepage_services a").fadeTo("slow", 1); 
	$("#homepage_services a").hover(function(){
		$(this).fadeTo("slow", 0.6);
	},function(){
   		$(this).fadeTo("slow", 1);
	});


	$(".fancybox").fancybox({
		prevEffect		: 'none',
		nextEffect		: 'none',
		closeBtn		: false,
		helpers		: { 
			title	: { type : 'inside' },
			buttons	: {}
		}
	});

	$(".various").fancybox({
		maxWidth	: 1280,
		maxHeight	: 720,
		fitToView	: true,
		width		: '70%',
		height		: '70%',
		autoSize	: false,
		closeClick	: false,
		openEffect	: 'none',
		closeEffect	: 'none',
	});

	


});


/* optional triggers

$(window).load(function() {
	
});

$(window).resize(function() {
	
});

*/
