jQuery(window).load(function(){ //jQuery(window).load() must be used instead of jQuery(document).ready() because of Webkit compatibility					
	jQuery(".carousel-demo2").sliderkit({
		shownavitems:3,
		scroll:1,
		mousewheel:true,
		circular:true,
		start:2
	});	
});	

$(document).ready(function(){
	$('#pkg2, #pkg3, #pkg4, #pkg5, #pkg6, #pkg7, #pkg8, #pkg9, #pkg10, #pkg11, #pkg12, #pkg13').hide();
	
	$('.reveal').click(function() {
		var id = $(this).attr('rel').toLowerCase();
		var $content = $('#' + id + ':not(:visible)');
		if ($('.current').length === 0) {
			showContent($content)
		}
		else {
			$('.current').fadeOut(600, function() {
				showContent($content)
			});
		}
	});
	
	function showContent(content) {
		content.fadeIn(600);
		$('.current').removeClass('current');
		content.addClass('current');
	}
});

Shadowbox.init();

