jQuery(document).ready(function(){	
	$(".text-input").focus(function () {
			 
		//Sets the background colour of the field when clicked
		$(this).css('background-color','#fff0a8');
			 
		//set the variable $i as the current value of the field
		$i = $(this).val();
			 
		//if $i is blank or one of the default values (must manually input these) then sets the value of field to blank
		if ($i == '' || $i == '* Name' || $i == '* Number' || $i == '* Your Email Address' || $i == '* Telephone Number'){
			$(this).val('');	
		}
			 
	});
		
	$(".text-input").blur(function () {
		//when clicking out of the field the background is set back to white
		$(this).css('background-color','#fff');
			 
		//if the value of the field is blank upon clicking out sets the value of field back to $i
		if($(this).val() == '' ){ 
			$(this).val($i);
		} 
		
	});

	$(".input").focus(function () {
		$(this).val('');
	});


	function fader(){
		  $('#its-free').fadeTo('medium',1).delay(1600).fadeTo('medium',0.2);	  
	}
	var threadID = setInterval(fader, 800);

	$("#subnav ul li:last-child a").css("border-right","none");
	
	
	// Hide/Show Specifications
    $(".pushdown").addClass("switchOff").click(function() {
                                                     
        if($(this).is(".switchOff")) {
            $(this).next().slideDown("fast", function() { 
                $(this).prev().removeClass("switchOff").addClass("switchOn");
            });
            
        } 
        if ($(this).is(".switchOn")) {
            $(this).next().slideUp("fast", function() { 
                $(this).prev().removeClass("switchOn").addClass("switchOff");
            });
        }
        
        return false;
        
    }).next().hide();
	
	
});
