jQuery(document).ready(function() {
	// When open page, clear all text elements
	$('#content .info_list .text').css('display', 'none');
	$('#content .info_list #stayOpen').css('display', 'block');

	// On click over link
	$('#content .info_list .link').click(function() {
		$('#content .info_list .text').hide();
		$('.text', $(this).parent()).fadeIn();
	});

	// Select active tickets
	if (jQuery.url.attr("anchor") == "3days") {
		$('#3days').addClass('activeTicket');
	}
	if (jQuery.url.attr("anchor") == "1day") {
		$('#1day').addClass('activeTicket');
	}

	$('.menu ol li:first').click(function() {
		$('#3days').addClass('activeTicket');
		$('#1day').removeClass('activeTicket');
	});

	$('.menu ol li:last').click(function() {
		$('#3days').removeClass('activeTicket');
		$('#1day').addClass('activeTicket');
	});

	$('#wpnewsletter_email').click(function() {
		$(this).val('');
		$(this).addClass('newsletterVisible');
	});

	// open .new-window links in new window ;)
	$(function(){
	    $('.dotsSmall .buttons a').click(function(){
		window.open(this.href);
		return false;
	    });
	});

	$(function(){
	    $('a.new-window').click(function(){
		window.open(this.href);
		return false;
	    });
	});

	$('.friend').hover(
	function() {
		$(this).find('div:first').hide();
		$(this).find('div:last').show();
	},
	function() {
		$(this).find('div:last').hide();
		$(this).find('div:first').show();
	});

	// big clickable areas
	$("div.stage div a").bigTarget({
		hoverClass: 'over', // CSS class applied to the click zone onHover
		clickZone : 'div:eq(0)' // jQuery parent selector
	});

	$("div.otherevent a").bigTarget({
		hoverClass: 'over', // CSS class applied to the click zone onHover
		clickZone : 'div:eq(0)' // jQuery parent selector
	});

	$("div.dots a").bigTarget({
		hoverClass: 'over', // CSS class applied to the click zone onHover
		clickZone : 'div:eq(0)' // jQuery parent selector
	});

	$("div.dotsSmall a").bigTarget({
		hoverClass: 'over', // CSS class applied to the click zone onHover
		clickZone : 'div:eq(0)' // jQuery parent selector
	});

	$("h3.h3 a").bigTarget({
		hoverClass: 'over', // CSS class applied to the click zone onHover
		clickZone : 'h3:eq(0)' // jQuery parent selector
	});

	$("div.hugeClick a").bigTarget({
		hoverClass: 'over', // CSS class applied to the click zone onHover
		clickZone : 'div:eq(0)' // jQuery parent selector
	});

	var flashvars = {
		playlistURL: "/musicplayer/playlist.xml",
	};
	var params = {
		bgcolor: "#00969D",
		menu: "false",
	};
	swfobject.embedSWF("/musicplayer/music_player.swf", "flash", "930", "50", "9.0.0", "/musicplayer/expressInstall.swf", flashvars, params);
	swfobject.registerObject("bannerDown", "9.0.0");
	swfobject.registerObject("bannerTop", "9.0.0");

});
