jQuery(document).ready(function($){

	
    $('.hiddenForm input[type="text"],.hiddenForm input[type=password]').addClass("idleField");
    $('input[type="text"].input-short').addClass("idleFieldShort");
    $('input[type="text"].input-long').addClass("idleFieldLong");
    $('.contactForm textarea').addClass("idleTextarea");
	
	
	//Form Default Values
	$(".hiddenForm input[type=text],.hiddenForm input[type=password]").bind('focus', function(){
		$(this).removeClass("idleField").addClass("focusField");
		var currentValue = $(this).attr("value");
		var defaultValue = $(this).attr("defaultValue");
		if (currentValue == defaultValue) $(this).attr({ value: ""});
	});
	$(".hiddenForm input[type=text], .hiddenForm input[type=password]").bind('blur', function(){
    	$(this).removeClass("focusField").addClass("idleField");
		var currentValue = $(this).attr("value");
		var defaultValue = $(this).attr("defaultValue");
		if (currentValue == '') $(this).attr({ value: defaultValue});
	});
	
	
	$(".contactForm textarea").bind('focus', function(){
		$(this).removeClass("idleTextarea").addClass("focusTextarea");
		var currentValue = $(this).attr("value");
		var defaultValue = $(this).attr("defaultValue");
		if (currentValue == defaultValue) $(this).attr({ value: ""});
	});
	$(".contactForm textarea").bind('blur', function(){
    	$(this).removeClass("focusTextarea").addClass("idleTextarea");
		var currentValue = $(this).attr("value");
		var defaultValue = $(this).attr("defaultValue");
		if (currentValue == '') $(this).attr({ value: defaultValue});
	});
	
	
	
	
	
	$("input[type=text].input-short").bind('focus', function(){
		$(this).removeClass("idleFieldShort").addClass("focusFieldShort");
		var currentValue = $(this).attr("value");
		var defaultValue = $(this).attr("defaultValue");
		if (currentValue == defaultValue) $(this).attr({ value: ""});
	});
	$("input[type=text].input-short").bind('blur', function(){
    	$(this).removeClass("focusFieldShort").addClass("idleFieldShort");
		var currentValue = $(this).attr("value");
		var defaultValue = $(this).attr("defaultValue");
		if (currentValue == '') $(this).attr({ value: defaultValue});
	});
	
	
	$("input[type=text].input-long").bind('focus', function(){
		$(this).removeClass("idleFieldLong").addClass("focusFieldLong");
		var currentValue = $(this).attr("value");
		var defaultValue = $(this).attr("defaultValue");
		if (currentValue == defaultValue) $(this).attr({ value: ""});
	});
	$("input[type=text].input-long").bind('blur', function(){
    	$(this).removeClass("focusFieldLong").addClass("idleFieldLong");
		var currentValue = $(this).attr("value");
		var defaultValue = $(this).attr("defaultValue");
		if (currentValue == '') $(this).attr({ value: defaultValue});
	});
	
$("#submitRequest").click(function() {
	 	
	 	$("#overlay_weekly").hide();
	 	$("#overlay_request").hide();
	 	$("#overlay_thankyou").show();
	 	return false;
	 });
	 
	 

});
