$(document).ready(function() {
	jQuery.easing.def = "easeOutCirc";
	Cufon.replace('h1');
	$('#image-slideshow').cycle({fx: 'scrollVert', speed:1500, easing:'easeOutCirc', timeout: 5000, next:'#head-next', prev:'#head-prev'});
	$('#mask ul').cycle({fx: 'scrollHorz', speed:1500, easing:'easeOutCirc', timeout: 5000, next:'#head-next', prev:'#head-prev'});
	$('a.item').hover(function() {$(this).children('span.band-name').fadeIn('show'); $(this).children('span.band-mask').animate({'height':'30px'})}, function() {$(this).children('span.band-name').fadeOut('slow'); $(this).children('span.band-mask').animate({'height':'200px'})});
	bs=0;
	$('#bands-slide-items .item').each(function(){bs=bs+1; bc=3; bl=0; cWidth=$('#bands-slide-items').width()+170; $('#bands-slide-items').css({'width':cWidth});});	
	$('#bands-next').click(function(){if (bc<bs) {pos=$('#bands-slide-items').position(); bl=bl-170; $('#bands-slide-items').animate({'left':bl+'px'},1500); bc=bc+1;} else {if (bc==bs) {bc=3; bl=0; $('#bands-slide-items').animate({'left':bl+'px'},1500);}}});
	$('#bands-prev').click(function(){if (bc>3) {pos=$('#bands-slide-items').position(); bl=bl+170; $('#bands-slide-items').animate({'left':bl+'px'}, 1500); bc=bc-1;} else {if (bc==3) {bl=0-(bs-bc)*170; bc=bs; $('#bands-slide-items').animate({'left':bl+'px'}, 1500);}}});
});
