/** jQuery jFieldLabel plugin
	* Written by J. Wodzynski/Entireweb
	* License: same as jQuery, see: http://jquery.com/license
	
	*/
(function($) {
	$.fn.jfieldlabel = function(options) {
	// build main options before element iteration
	var opts = $.extend({}, $.fn.jmenu.defaults, options);
	// iterate and reformat each matched element
		return this.each(function() {
		  $base = $(this);
		  var org = $base.val();
      $base
        .focus(function(e) {
          if($base.val() == org) {
            $base.val('').addClass('inuse');
          }

        })
        .blur(function(e) {
          if($base.val() == '') {
            $base.val(org).removeClass('inuse');
          }
        });

			// build element specific options
			//var o = $.meta ? $.extend({}, opts, $this.data()) : opts;

			// update element styles
			//$this.css({
			//	backgroundColor: o.background,
			//	color: o.foreground
			//});
			
			//var markup = $this.html();
			
			// call our format function
			//markup = $.fn.jmenu.format(markup);
			//$this.html(markup);
		});
	};
	//
	// private function for debugging
	//
	function debug(a, b) {
		if (window.console && window.console.log)
			window.console.log(a, b);
	};
	//
	// define and expose our format function
	//
	//$.fn.jmenu.format = function(txt) {
	//	return '<strong>' + txt + '</strong>';
	//};
	//
	// plugin defaults
	//
	//$.fn.jmenu.defaults = {
	//	foreground: 'red',
	//	background: 'yellow'
	//};
})(jQuery);