// JavaScript Document
$(document).ready(function(){
	
	text_hideshow();
	
});

function text_hideshow()
{
	// Search text hide show	
	jQuery("#s").focus(function(){
								
			jQuery(this).attr('value', '');							
	});
	jQuery("#s").blur(function(){
								 
			if(jQuery(this).attr('value') == '')
					jQuery(this).attr('value','Search an item');
	}); 	
	
	// User Name password show hide
	jQuery("#username").focus(function(){
			if(jQuery(this).attr('value') == 'email/username')					
					jQuery(this).attr('value', '');							
	});
	jQuery("#username").blur(function(){
								 
			if(jQuery(this).attr('value') == '')
					jQuery(this).attr('value','email/username');
	}); 
	
	// Password show hide
	jQuery(this).attr('value', '');							
	jQuery("#password").focus(function(){
			jQuery(this).attr('value', '');							
	});
	
	/* USERNAME PASSWORD VALIDATION FOR LANDING PAGE */
	// User Name password show hide
	jQuery("#usernamel").focus(function(){
								
			if(jQuery(this).attr('value') == 'email/username')
					jQuery(this).attr('value', '');							
	});
	jQuery("#usernamel").blur(function(){
								 
			if(jQuery(this).attr('value') == '')
					jQuery(this).attr('value','email/username');
	}); 
	
	// Password show hide
	jQuery(this).attr('value', '');							
	jQuery("#passwordl").focus(function(){
			jQuery(this).attr('value', '');							
	});
	jQuery("#passwordl").blur(function(){
								 
			if(jQuery(this).attr('value') == '')
					jQuery(this).attr('value','Password');
	});
	// User Name password show hide
	jQuery("#USER_EMAIL").focus(function(){
			if(jQuery(this).attr('value') == 'Enter Email Here')					
					jQuery(this).attr('value', '');							
	});
	jQuery("#USER_EMAIL").blur(function(){
								 
			if(jQuery(this).attr('value') == '')
					jQuery(this).attr('value','Enter Email Here');
	}); 
	/* END OF USERNAME PASSWORD VALIDATION FOR LANDING PAGE */
}

