/**
jquery-swapElements.js v0.0.1
@author Holger Grosse-Plankermann
jQuery Plugin to easily swap two elements. Basically this was needed to emulate the "disable" attribute for <a /> in FF.
To keep the markup in one single place we define two versions of the <a />: One active, one disabled and swap them accordingly.
Other implementations would be possible: These would include creating elements on the fly (problems of mainainability),
or simply using other UI elements, such as hiding the elements instead of disabling them.
Another sollution would be to manually setting the href and the style of one element, but I don't like that one either.
If you have any suggestions, don't hesitate top contact me. 
**/
//
// create closure
//
(function($) {
  //
  // plugin definition
  //
  $.fn.swapElements = function(options) {
	debug(this);

	var opts=options;
	// element to be swapped with
	$that=$(opts);
	debug($that);
	$that.show();

	return this.each(function() {
	  $this = $(this);
	  debug($this);
	  // build element specific options
	  $this.hide();
	});
  };
  //
  // private function for debugging
  //
  function debug($obj) {
	if (window.console && window.console.log)
	  window.console.log('swapElements element name: ' + $obj);
  };
  //
  // define and expose our format function
  //

  //
  // plugin defaults
  //
  $.fn.swapElements.defaults = {

  };
//
// end of closure
//
})(jQuery);