/* Definition of variables used in application scope */
var defaultFormVal = "like what you see? i'd love to hear from you! type your message here and i'll get back to you as soon possible";

$(document).ready(function () {
	/* Application initialisation */
	$.localScroll();
	/* Application */
	$("#contact_message").focus(function() {
		var formVal = $(this).val();
		if (formVal == defaultFormVal) {
			$(this).val("");
		}
	});
	$("#contact_message").blur(function() {
		var formVal = $(this).val();
		if (formVal == "") {
			$(this).val(defaultFormVal);
		}
	});
	if (window.addEventListener) {
		var keyInput = [], code = "38,38,40,40,37,39,37,39,66,65";
		window.addEventListener("keydown", function(e) {
			keyInput.push(e.keyCode);
			if (keyInput.toString().indexOf(code) >= 0)
				document.title = "30 Extra Lives!";
		}, true);
	}
});
