$(document).ready(function() {
	$('input:text').hint();

	$('tr[@rowshade=true]:odd').attr("class", "ticket_table1");
	$('tr[@rowshade=true]:even').attr("class", "ticket_table2");

});

function toggleCheckAll () {
	$("input[@type='checkbox']").each(function() {
		this.checked = !this.checked; // or, to toggle
	});
}

function reloadPage () {
//	window.location = window.location.href;
	window.location = 'http://www.google.ca';
}

function changeTicketDetailsDestinationLink (state) {
	if (state == 'buynow') {
		$('.ticket_viewtickets').attr('href', function (){
			return $(this).attr('buynowurl');
		});
	} else if (state == 'ticketdetails') {
		$('.ticket_viewtickets').attr('href', function (){
			return $(this).attr('ticketdetailsurl');
		});
	}
}

function changeTicketSiteID (state) {
	$('.event_description').attr('href', function (){
		return $(this).attr(state + 'url');
	});
	$('.event_viewtickets').attr('href', function (){
		return $(this).attr(state + 'url');
	});
}