var JoinTheNation=Class.create();JoinTheNation.prototype={initialize:function(){Event.observe(window,"load",this.setup.bindAsEventListener(this));this.dfs={"val(fname)":"First Name","val(lname)":"Last Name",email:"E-Mail",userName:"Username",gender:"",password:"Password",bmonth:"MM",bday:"DD",byear:"YYYY"}},dfs:null,setup:function(){$("registerForm").select("input").each(function(a){if(a.value==""){if(a.type=="password"){a.otype="password";a.type="text"}a.value=this.dfs[a.name];a.dvalue=a.value;a.observe("focus",function(c){var b=c.element();if(b.value==b.dvalue){b.value="";if(b.otype&&b.otype=="password"){b.type="password"}}});a.observe("blur",function(c){var b=c.element();if(b.value==""){b.value=b.dvalue;if(b.type=="password"){b.type="text"}}})}}.bind(this));$("registerForm").observe("submit",function(a){$$("input").each(function(b){if(b.value==b.dvalue){b.value=""
}}.bind(this))}.bindAsEventListener(this))}};var joinTheNation=new JoinTheNation();