$(document).ready(function() {
	$('a[rel*=external]').click(function() {
		window.open(this.href);
		return false;
	});
	$('.clickReveal1').click(function() {
		$('.clickReveal1').slideUp('slow',function() {
			$('.clickReveal2').slideDown('slow');
		});
	});
	$('.tablesorter').tablesorter({sortList: [[0,0]]});
	$('.loginformbox').focus(function() {
		if ($(this).val()==$(this).attr('title')) {
			$(this).val('');
		}
	});
	$('.loginformbox').blur(function() {
		if ($(this).val()=='') {
			$(this).val($(this).attr('title'));
		}
	});
	$('input[type="radio"]').css('borderStyle','none');			// so much hatred for IE =(
	$('input[type="checkbox"]').css('borderStyle','none');
	alternateRows();
});
function alternateRows() {
	$('tr.colourise:even').removeClass('odd').addClass('even');
	$('tr.colourise:odd').removeClass('even').addClass('odd');
	setTimeout(function() { alternateRows(); },100);
}
Array.prototype.has=function( x ) {
	for (var i=0;i<this.length;i++) {
		if (x==this[i]) return true;
	}
	return false;
}
