// JS for theMusicCOOPe.com by Ben Voran 

// Artist Selection
var lastli = $("#artists li:first-child");
$(lastli).width(200);

$("#artists li").hover(function() {
	$(lastli).stop().animate( { width:"58px" } , 0 );
	$(this).stop().animate( { width:"200px" } , 0 );
	lastli = this;
	}, function () {
}); 

//Adds active class on current page links
$("a").each(function(){
	var href = this.getAttribute('href',2);
	var location = window.location.pathname;
	location = location.substring(location.lastIndexOf('/') + 1);
	if ( location == href) {
		$(this).addClass("active");
	}
});

