jQuery(function()
	{
		
		
	jQuery('#closesubscribe').click(function(){							   
		jQuery('#subscribebox').fadeOut("fast",function(){
			jQuery('#emailsubscribe')[0].value = "Enter your email address";											
			jQuery('#emailsubscribe').show();
			jQuery('#sendsubscribe').show();
			jQuery('#thanksubscribe').hide();									   
		});
	});
		
	jQuery('#opensubscribe').click(function(){		
		jQuery('#subscribebox').fadeIn("fast");
		jQuery('#subscribebox').appendTo($('#opensubscribe').parent().parent().parent());	
	});
		
	jQuery('#sendsubscribe').click(function(){
		jQuery('#sendsubscribe').hide();
		jQuery('#emailsubscribe')[0].value = "Thank You";
		setTimeout(function(){
        jQuery('#closesubscribe').click();
    }, 1000);
		
	});
		
});
	
	jQuery(document).ready(function() {
       		jQuery('input[type="text"]').focus(function() {
    		    if (this.value == this.defaultValue){ 
    		    	this.value = '';
				}
				if(this.value != this.defaultValue){
	    			this.select();
	    		}
    		});
    		jQuery('input[type="text"]').blur(function() {
    		    if (jQuery.trim(this.value) == ''){
			    	this.value = (this.defaultValue ? this.defaultValue : '');
				}
    		});
			jQuery('textarea').focus(function() {
    		    if (this.value == this.defaultValue){ 
    		    	this.value = '';
				}
				if(this.value != this.defaultValue){
	    			this.select();
	    		}
    		});
    		jQuery('textarea').blur(function() {
    		    if (jQuery.trim(this.value) == ''){
			    	this.value = (this.defaultValue ? this.defaultValue : '');
				}
    		});
		});	
