//Form Effects
$(document).ready(function() {
	//Generic Form Text
	$('input[type="text"]').addClass("inputClear");
	$('input[type="text"]').focus(function() {
		$(this).removeClass("inputClear").addClass("inputFocus");
    	    if (this.value == this.defaultValue){ 
    		   	this.value = '';
			}
			if(this.value != this.defaultValue){
	    		this.select();
	    	}
    	});
    	$('input[type="text"]').blur(function() {
    		$(this).removeClass("inputFocus").addClass("inputClear");
    	if ($.trim(this.value) == ''){
			this.value = (this.defaultValue ? this.defaultValue : '');
		}
    });
    //Generic Form Password
    $('input[type="password"]').addClass("inputClear");
	$('input[type="password"]').focus(function() {
		$(this).removeClass("inputClear").addClass("inputFocus");
    	    if (this.value == this.defaultValue){ 
    		   	this.value = '';
			}
			if(this.value != this.defaultValue){
	    		this.select();
	    	}
    	});
    	$('input[type="password"]').blur(function() {
    		$(this).removeClass("inputFocus").addClass("inputClear");
    	if ($.trim(this.value) == ''){
			this.value = (this.defaultValue ? this.defaultValue : '');
		}
    });
});
