$(document).ready(function(){
	$('.spotify').hover(
		function(){
			$(this).append("<div class='spotifyImg'><img src='/img/content/spotify-logo.gif'/></div>");
			var linkWidth = $(this).width() + 5;
			$spotifyDiv = $(this).find('div');
			$spotifyDiv.css({left:linkWidth+'px'});
			$spotifyDiv.animate({width:'70px'}, 300);
		},
		function(){
			$spotifyDiv.animate({width:'0px'}, 300, function(){$spotifyDiv.remove();});
		}
	);
	
	$wavePara = $('span.wavePara');
	$wavePara.css({display:'none'});
	
	$('.wave').click(function(e){
		e.preventDefault();
		if(!$(this).hasClass('open')){
			$wavePara.css({display:'block'});
			$(this).addClass('open');
		}
		else{
			$wavePara.css({display:'none'});
			$(this).removeClass('open');
		}
	});
	
	
});

function applyLightbox(){
	if($('ul.lightboxTriggers').length){
		$('ul.lightboxTriggers').each(function(){
			$(this).slideshow();						   
		});
	}
}
