/**
*RepalceContent
*
*Replaces target's innerHTML with current element
*@author: Zinj Guo <recoilfx@gmail.com>
*@version: 1.0
*@Copyright: 2008, MIT License  http://www.opensource.org/licenses/mit-license.php
*Dependencies: mootools - core, element, class
*@example $("myElement").replaceContent($("target"));
*/
Element.extend({
	appendContent:function(target){
		target.innerHTML+=this.innerHTML;
	},
	
	moveAppendContent:function(target){
		target.innerHTML+=this.innerHTML;
		this.innerHTML="";
	},
	
	moveContent:function(target){
		target.innerHTML=this.innerHTML;
		this.innerHTML="";
	},
	
	moveAndDelete:function(target){
		target.innerHTML=this.innerHTML;
		this.parentNode.removeChild(this);
	},
	
	replaceContent:function(target){
		target.innerHTML=this.innerHTML;
	}
});

