/**
 * @ init
 */

/** FancyBox **/
jQuery(document).ready(function() {
	$(".iframe").fancybox({
		'overlayColor'		: '#000',
		'overlayOpacity'	: '0.8',
		'titleShow'			: false,
		'width'				: '80%',
		'height'			: '80%',
        'autoScale'			: true,
		'autoDimensions'	: true,
        'transitionIn'		: 'elastic',
		'transitionOut'		: 'elastic',
		'easingIn'			: 'swing',
		'easingOut'			: 'swing',	
		'type'				: 'iframe'
	});
});
/** Tab Menu **/
$(document).ready(function(){
// When a link is clicked
	$("a.tab").click(function () {
		// switch all tabs off
		$(".active").removeClass("active");
		// switch this tab on
		$(this).addClass("active");
		// slide all content up
		$(".tabContent").fadeOut(100);
		// slide this content up
		var content_show = $(this).attr("rel");
		$("#"+content_show).fadeIn(1000);
	});
});


$(document).ready(function() {

	/* This is basic - uses default settings */
	
	$("a#single_image").fancybox({
		'overlayColor'		: '#000',
		'overlayOpacity'	: '0.8',
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'easingIn'			: 'swing',
		'easingOut'			: 'swing',	
		'speedIn'		:	600, 
		'speedOut'		:	300, 
		'overlayShow'	:	true
	});
	
	/* Using custom settings */
	
	$("a#inline").fancybox({
		'hideOnContentClick': true
	});

	/* Apply fancybox to multiple items */
	
	$("a.group").fancybox({
		'overlayColor'		: '#000',
		'overlayOpacity'	: '0.8',
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'easingIn'			: 'swing',
		'easingOut'			: 'swing',	
		'speedIn'		:	600, 
		'speedOut'		:	300, 
		'overlayShow'	:	true
	});
	
});

