$(document).ready(function(){	

	// Slideshow
    $('#slideshow').cycle({
        fx: 'fade',
        delay: 0, 
        speed: 2000,
        timeout: 4000,
        slideResize:  1
     });

	
	$('#rn-gigs').html('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="180" height="300"><param name="movie" value="http://cache.reverbnation.com/widgets/swf/42/pro_widget.swf?id=artist_1110800&posted_by=&skin_id=PWSS3001&border_color=000000&show_map=true"></param><param name="allowscriptaccess" value="always"></param><param name="allowNetworking" value="all"></param><param name="allowfullscreen" value="true"></param><param name="wmode" value="opaque"></param><param name="quality" value="best"></param><embed src="http://cache.reverbnation.com/widgets/swf/42/pro_widget.swf?id=artist_1110800&posted_by=&skin_id=PWSS3001&border_color=000000&show_map=true" type="application/x-shockwave-flash" allowscriptaccess="always" allowNetworking="all" allowfullscreen="true" wmode="opaque" quality="best" width="180" height="300"></embed></object><br/><img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://www.reverbnation.com/widgets/trk/42/artist_1110800//t.gif" />');
	
	// Lightbox
    $(".newsletter").colorbox({ width:"50%", height: "220px", inline:true, href:"#newsletter_form" });
    $(".credits").colorbox({ width:"50%", height: "300px", inline:true, href:"#credits_box" });

	// Blog
    $("a.readMore").click(function(e) {
        e.preventDefault();
        $(this).hide();
        $(this).siblings('.readLess').show()
        $(this).parents('.entry').find('.tease').hide();
        $(this).parents('.entry').find('.description').show();
    });

    $("a.readLess").click(function(e) {
        e.preventDefault();
        $(this).hide();
        $(this).siblings('.readMore').show()
        $(this).parents('.entry').find('.description').hide();
        $(this).parents('.entry').find('.tease').show();
    });

	// User notifications
	var $alert = $('#alert');
	if($alert.length)
	{
		var alerttimer = window.setTimeout(function () {
			$alert.trigger('click');
		}, 3000);
		$alert.animate({height: $alert.css('line-height') || '50px'}, 200)
		.click(function () {
			window.clearTimeout(alerttimer);
			$alert.animate({height: '0'}, 200);
		});
	}


});


