$(function(){
	$.backstretch("/img/bg.jpg", {speed: 0});
	
	$firelogo = $('#nav-wrapper .nav li.logo a span.bottom');
	$('#nav-wrapper .nav li.logo a').hover(
		function(){
			$firelogo.stop(true, true).fadeIn(600);
		},
		function(){
			$firelogo.stop(true, true).fadeOut(600);
		}
	);
	$('.shadow').hover(
		function(){
			$this = $(this);
			$this.addClass('glow');
			if($this.hasClass('reveal')){
				$('.headings', $this).slideDown(450);
				//$('a.more', $this).fadeIn(450);	
			}
		},
		function(){
			$this = $(this);
			$this.removeClass('glow');
			if($this.hasClass('reveal')){
				$('.headings', $this).slideUp(450);	
				//$('a.more', $this).fadeOut(450);	
			}
		}
	);
	$('#content .slideshow').cycle({ 
		fx:     'scrollUp', 
		speed:  1000, 
		timeout: 4500
	});
	$('#nav-right-wrapper .nav-right li.twitter .twits').cycle({ 
		fx:     'fade', 
		speed:  1000, 
		timeout: 4500,
		pause:	1
	});
	
	$(document).bind('onPlayerTrackSwitch.scPlayer', function(event, track){
		console.log(event.target, 'it jumped to this track:', track.purchase_url);
	});

});
