// General Scripts

	

function swapRss()	{
	if ($('#rssMoreInfo').css('display') == 'none')		{
		$('#rssMoreInfo').css('display','block');
	}	else	{
		$('#rssMoreInfo').css('display','none');
	}
}

$(document).ready(function(){

	$('#rssMoreInfo').css('display','none');
	
	$(".advert").hover(
		function(){
			$(this).animate({opacity: '0.7'}, 200);
		},
		function(){
			$(this).animate({opacity: '1'}, 200);
		}
	);

	$("#locations dd:visible").hide();
		$('dt').click(function () {
		if ($(this).hasClass('open'))		{
					  $('dd:visible').slideUp().prev().removeClass('open');
		  }	else	{
			  $('dd:visible').slideUp().prev().removeClass('open');
			  $(this).addClass('open').next().slideDown();
		  }
	});

	$('img[@src$=.png]').ifixpng(); 

});


// Changes the current gig date
function changeGigDate(artistID, dateID)	{
	// Hide everyhting
	for (i = 0; i < eval('art_' + artistID + '.length') ; i++ )	{
		$('#art_' + artistID + '_' + i).css('display','none')
		$('#but_' + artistID + '_' + i).removeClass('button-on')
	}
	// Show the clicked gig date
	$('#art_' + artistID + '_' + dateID).css('display','block')
	$('#but_' + artistID + '_' + dateID).addClass('button-on')
}

