// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults





/*  
    simple jQuery function that provides example/label text 
    inside text inputs that automatically clears when the input 
    is focused. Used in the loginbox. 
*/
(function($){
$.fn.defaultValueActsAsHint = function(){
$(this).focus(function(){
if(this._default != this.value) return;
this.value = "";
}).removeClass('hint').blur(function(){
if(this.value != '') return;
this.value = this._default;
}).addClass('hint').get(0)._default = this.val();
};
})(jQuery);