$(document).ready(function(){
	// Page scroll navigation
	$.localScroll.hash({
		target: 		window,
		queue:			false,
		duration:		1500,
		easing:			'easeOutExpo',
		hash:			true
	});
	$.localScroll({ 
		target: 	window, // could be a selector or a jQuery object too.
		queue:		false,
		duration:	1500,
		hash:		true,
		easing:		'easeOutExpo',
		onBefore:function( e, anchor, $target ){
			// The 'this' is the settings object, can be modified
		},
		onAfter:function( anchor, settings ){
			// The 'this' contains the scrolled element (#content)
		}
	});
	//	SCROLL EVENTS FOR JQUERY:
	//	http://james.padolsey.com/javascript/special-scroll-events-for-jquery/
	$('#epk-navigation ul li').click(function() {
		$('#epk-navigation ul li').removeClass('active');
		$(this).addClass('active');
	});
	// Video list Clickscroller
	$('#video-list').clickScroll({
		speed: 				400,
		easing: 			'easeOutExpo',
		lessBtn:			'#vids-up',
		moreBtn:			'#vids-down'
	});
	
	$('.thumbnail_selector').live('click', function() {
		$('#video-playing').html($('div', this).html());
		$('.playing').removeClass('playing');
		$(this).parent().addClass('playing');
	});
	
	// EPK: PHOTOS PANEL
	// *********************************************************************************************************
	$('#photos ul li.next').click(function() {
		$('#photos .inner').animate({'left': '-=680px'}, 1000, 'easeOutExpo');
		return false;
	});
	$('#photos ul li.prev').click(function() {
		$('#photos .inner').animate({'left': '+=680px'}, 1000, 'easeOutExpo');
		return false;
	});
	
	// EPK: MEMBERS
	// *********************************************************************************************************
	$('body.epk #members .member').equalHeights({
		linked: 3
	});
	
	// EPK: CALENDAR (LIST)
	// *********************************************************************************************************
	$('#calendar-list .event').toggle(function() {
		$(this).children('.details').slideDown();	
		$(this).children().children('.arrow').attr({
			src:'images/icons/arrow-down.png', 
			alt:'Hide Details'
		});
	},function() {
		$(this).children('.details').slideUp();
		$(this).children().children('.arrow').attr({
			src:'images/icons/arrow-right.png', 
			alt:'Show Details'
		});
	});
});


