/* INPUT HINT */
(function($) {
    $.fn.inputhint = function(options) {
        // iterate and reformat each matched element
        return this.each(function() {
            // cache this:
            var obj = $(this);
            // get value hint
            var ogval = obj.val();
            obj.focus(function(){
                if( obj.val() == ogval ){
                    obj.val('');
                } else { null; };
            });
            obj.blur(function(){
                if( obj.val() == "" ){
                    obj.val(ogval);
                };
            });
        });
    };
})(jQuery);
/* QUOTES */
(function($) {
    $.fn.quotebox = function(options) {
        
        var lastobj = "";
        var reset = function( item ){
          if (item != ""){
            item.toggleClass("qbopen");
          }
          
        };
        
        // iterate and reformat each matched element
        return this.each(function() {
            // cache this:
            var obj = $(this);
            
            //bind click
            obj.bind('click', function(){
              //cach this
              var _obj = $(this);
              reset( lastobj );
              _obj.toggleClass("qbopen");
              
              $.scrollTo( obj, 800, {offset: {top:-50}});
              lastobj = _obj;
              return false;
            });
        });
    };
})(jQuery);
