	
function copy(inElement) {
	if (inElement.createTextRange) {
		var range = inElement.createTextRange();
    if (range)
    	range.execCommand('Copy');
	} else {
		var flashcopier = 'flashcopier';
    	if(!document.getElementById(flashcopier)) {
      		var divholder = document.createElement('div');
      		divholder.id = flashcopier;
      		document.body.appendChild(divholder);
    	}
    	document.getElementById(flashcopier).innerHTML = '';
    	var divinfo = '<embed src="includes/_clipboard.swf" FlashVars="clipboard='+encodeURIComponent(inElement.value)+'" width="0" height="0" type="application/x-shockwave-flash"></embed>';
    	document.getElementById(flashcopier).innerHTML = divinfo;
	}
	
	var H="notifyTextCopied";
	var J=Element.up(inElement);
	var C=document.createElement("div");
	
	C.setAttribute("id",H);
	C.appendChild(document.createTextNode("Copied"));
	J.appendChild(C);
	inElement.onblur=function(L){
		Element.hide(C);
		return true;
	};
	var G=Element.cumulativeOffset(inElement);
	var F=Element.positionedOffset(inElement);
	Element.show(C);
	if(G.left<(C.offsetWidth+2))
	{
		C.style.left=(F.left+(inElement.offsetWidth+3))+"px";
	}
	else
	{
		C.style.left=(F.left-(C.offsetWidth+2))+"px";
	}
	C.style.top=F.top+"px";
	var B=Effect.Fade(C,{fps:75,from:1.9,to:0,duration:1,queue:"front",afterFinish:function(){Element.remove(C);}});
	window.status="Copied text to clipboard";
}