function headerFade(){
		$('#headerimg1').fadeOut(8000, function(){
		$('#headerimg1').fadeIn(8000, function(){
		headerFade();
});
});
}

function divScroll(){
		$('a.scrolldiv').bind('click',function(){
		$('#content')[0].scrollTo($(this).attr('rel'));
		return false;
});
}

$(document).ready(function(){

	$('#content').jScrollPane({animateTo:true, animateInterval:2, animateStep:5, observeHash:true, showArrows:true, arrowSize:15, scrollbarWidth:15, scrollbarMargin:35, dragMinHeight:25, dragMaxHeight:25, topCapHeight:10, bottomCapHeight:290});
	
	$('#releases').hide();
	$('#tour').hide();
	$('#info').hide();
  	$('#home').fadeIn(500);
	$('html,body,').animate({scrollTop:0},'slow');
	   
    $("#headerimg1").pngFix();
    $("#headerimg2").pngFix();
    $("img").pngFix();
    
	headerFade();

	$('#home_btn').click(function(event) {
	 event.preventDefault();
}); 
	$('#home_btn').click(function(){
  	divScroll();
	$('#info').hide();
	$('#releases').hide();
	$('#tour').hide();
  	$('#home').fadeIn(500);
  	$('html,body,').animate({scrollTop:0},'slow');
});

	$('#releases_btn').click(function(event) {
	 event.preventDefault();
}); 
	$('#releases_btn').click(function(){
  	divScroll();
	$('#home').hide();
	$('#info').hide();
	$('#tour').hide();
	$('#releases').fadeIn(500);
  	$('html,body').animate({scrollTop:0},'slow');
});

	$('#tour_btn').click(function(event) {
	 event.preventDefault();
}); 
	$('#tour_btn').click(function(){
  	divScroll();
	$('#home').hide();
	$('#info').hide();
	$('#releases').hide();
	$('#tour').fadeIn(500);
  	$('html,body').animate({scrollTop:0},'slow');
});

	$('#info_btn').click(function(event) {
	 event.preventDefault();
}); 
	$('#info_btn').click(function(){
  	divScroll();
  	$('#home').hide();
	$('#releases').hide();
	$('#tour').hide();
	$('#info').fadeIn(500);
  	$('html,body').animate({scrollTop:0},'slow');
});

});


