$(document).ready(function(){
	
	// enable png fix
	$(document).pngFix();
	
	// shows calendar striping
	$("#shows-calendar tr").mouseover(function() {$(this).addClass("hover");}).mouseout(function() {$(this).removeClass("hover");});
	$("#shows-calendar tr:odd").addClass("alt");
	
	// tabs
	$("li.tab a").click(function () {
		$(".selected-tab").removeClass("selected-tab");
		$(this).addClass("selected-tab");
		$(".content-well").hide();
		var show_content = $(this).attr("href");
		$(show_content).show();
		return false;
	});
	
	// :last-child fucntionality for browsers that don't support it
	$("ul#filter-by-venue li:last-child, ul#filter-by-date li:last-child").css({"border":"0"});
	$(".schedule th:last-child, .schedule td:last-child").css({"border-right":"0"});
	
	// clickable blocks
	$(".event, #survey-callout, .artist").click(function(){
		window.location=$(this).find("a").attr("href");return false;
	});
	
	// tool tips
	$('a.more-info').cluetip({
		local: true,
		cursor: 'pointer',
		arrows: true,
		showTitle: false,
		width: '230px',
		positionBy: 'mouse'
	});
	
	// homepage masthead images
	$("#feature-carousel").jFlow({
		slides: "#feature-image",
		width: "630px",
		height: "320px",
		duration: 600
	});
	
});

// add any other non-jquery js here, including swf object
