// JavaScript Document

jQuery.preloadImages = function()
{
	for(var i = 0; i<arguments.length; i++)
	{
		jQuery("<img>").attr("src", arguments[i]);
	}
}

//$.preloadImages("../images/nav/*.png", "../images/nav/*.png", "../images/nav/*.png", "../images/nav/*.png");

$(
	function()
	{
		// set up rollover
		$("img.rollover").hover(
			function()
			{
				this.src = this.src.replace("_off","_over");
			},
			function()
			{
				this.src = this.src.replace("_over","_off");
			}
		);
	}
)
$(document).ready(function(){
	if($('#footer ul li a').length > 0){
		$('#footer ul li a').each(function(e){
			var thisText = $(this).text();
			if(thisText == 'Referral Scheme'){
				$(this).parents('li').remove();
			}
		});
	}
});
