// JavaScript Document
$(document).ready(function() {
	
	// Hide Non-relevent Audio
	if (iOS) {
		$('.flashAudio').hide();
	} else {
		$('.nonFlashAudio').hide();
	};
	
	// Scroller
	$('.topArrow').hover(function() {
			$(this).css({'cursor':'pointer'});
		},function(){
			$(this).css({'cursor':'default'});
		});
		
		$('.topArrow').click(function() {
			$(window).scrollTo(0, 400);
	});
	$('iframe.autoHeight').iframeAutoHeight();
	
	$('#sideBar').waypoint();
	
	$('#sideBar').waypoint(function(event, direction) {
   $(this).parent().toggleClass('sticky', direction === "down");
	 event.stopPropagation();
	});
});
