// javascript navigation
$(document).ready(function() {
	lastClicked = "1";
	$("#username").focus(function() {
		value = $(this).val();
		if(value == "Email") {
			$(this).val("");
		}
	});
	$("#username").blur(function() {
		value = $(this).val();
		if(value == "") {
			$(this).val("Email");
		}
	});
	$("#password").focus(function() {
		value = $(this).val();
		if(value == "Password") {
			$(this).val("");
		}
	});
	$("#password").blur(function() {
		value = $(this).val();
		if(value == "") {
			$(this).val("Password");
		}
	});
	
	
	
	$(".splashbutton").click(function() {
		thisClicked = $(this).attr("id");
		thisClickedClean = thisClicked.substring(4);
		$("#img_overlay" + lastClicked).fadeOut("normal",function() {
			$("#img_overlay" + thisClickedClean).fadeIn("normal");
			lastClicked = thisClickedClean;
		});
	});
	/* For solutions page */
	$(".ajaxLoad").click(function() {
		thisClicked = $(this).attr("href");
		thisClickedParsed = thisClicked.substring(41);
		$.get('solutions.php', { s : thisClickedParsed, ajax : 1 }, function(data) {
			$("#loadData").fadeOut("fast", function() {
				$(this).html(data);
				$(this).fadeIn("fast");
			});
		});
		return false;
	});
	
});
