/*
 * ToggleFormText
 *
 * Author:   Grzegorz Frydrychowicz
 * E-mail:   grzegorz.frydrychowicz@gmail.com
 * Date:     16-11-2007
*/

$(document).ready(function(){
    $("input:text, textarea, input:password").each(function(){
        if(this.value == '')
            this.value = this.title;
			//this.className = "gray";
			
    });
    $("input:text, textarea, input:password").focus(function(){
        if(this.value == this.title)
            this.value = '';
			//this.className = "";
			
    });
    $("input:text, textarea, input:password").blur(function(){
        if(this.value == '' || this.value == ' ')		
		
            this.value = this.title;
			
    });
    
});