$(document).ready(function() {	

	/*    Form Focus & Label Hide/Show	 */
	
       $('input[type=text]').each(function() {
			var inputVal= $(this).val();
	   		if(inputVal!="") {
				$(this).prev('label.inline').hide('fast');
			}else {
				$(this).prev('label.inline').show('fast');
			}
	   });
	
	   $('input[type=text]').focus(function() {
	   		$(this).animate({backgroundColor:'#d8d9db'}, 100);
	   		$(this).prev('label.inline').fadeOut('fast');
	   });

	   $('label.inline').click(function(){
		   	$(this).fadeOut('fast');
		   	$(this).next().next().focus();
	   });

	   $('input[type=text], input[type="password"]').blur(function(){
			$(this).removeAttr('style');
		   	if($(this).val()==""){
		   		$(this).prev().fadeIn(100);
		   	}
	   });

});
