window.addEvent('domready', function(){            
 //new SmoothScroll();
});

function InitInputValue(form,input,value) {
 	$(input).addEvent('focus',function(){
		 if (this.value==value) this.value='';
		});
 	$(input).addEvent('blur',function(){
		 if (this.value=='') this.value=value;
		});
 	$(form).addEvent('submit',function(){
		 if ($(input).value==value) $(input).value='';
		});
  window.addEvent('domready', function(){            
   if ($(input).value=='') $(input).value=value;
  });
}

function $ESS(selector,context) {
	var ctx=$(context);
	if ($defined(ctx)) return $ES(selector,ctx); else return null;
}
