/*
   SITE: Urban Digger
   FILE: holding.js
   GEEK: Phil Sherry
   DATE: 2010-02-20
   
   Copyright 2010 Phil Sherry. All rights reserved.
*/

$(document).ready(function() {
	
	/* ----------------------------------------------- empty the holding page beta code & email fields on blur/focus */
	$("#holding_email")
	    .val("Interested? Enter your email and hit Return")
	    .css("color", "#efefef")
	    .focus(function(){
	        $(this).css("color", "#efefef");
	        if ($(this).val() == "Interested? Enter your email and hit Return") {
	            $(this).val("");
	        }
	    })
	    .blur(function(){
	        $(this).css("color", "#efefef");
	        if ($(this).val() == "") {
	            $(this).val("Interested? Enter your email and hit Return");
	        }
	    });
	$("#holding_betacode")
	    .val("Queue jump? Enter your beta code")
	    .css("color", "#efefef")
	    .focus(function(){
	        $(this).css("color", "#efefef");
	        if ($(this).val() == "Queue jump? Enter your beta code") {
	            $(this).val("");
	        }
	    })
	    .blur(function(){
	        $(this).css("color", "#efefef");
	        if ($(this).val() == "") {
	            $(this).val("Queue jump? Enter your beta code");
	        }
	    });

});
