$(document).ready(function(){
	$("#nav").lavaLamp({ 
		fx: 'easeOutBack', 
		speed: 500
	});
	$('#nav .back').animate({'opacity': 0.5});
});

function file_exists(url)
{
	var req = this.window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
	if (!req) {throw new Error('XMLHttpRequest not supported');}
	req.open('HEAD', url, false);
	req.send(null);
	if (req.status == 200){	return true; }
	return false;
}

jQuery.fn.reset = function () {
	$(this).each (function() { this.reset(); });
}
