// @source http://code.eligrey.com/citedrag/0.0.3/citedrag.js
var CiteDrag={dragHandler:function(a){if(typeof a.dataTransfer!="undefined"){var c=a.dataTransfer,d=(document.title||location.hostname);if(c.getData("text/html")){c.setData("text/x-original-html",c.getData("text/html"))}if(c.getData("text/plain")){c.setData("text/x-original-plain",c.getData("text/plain"))}if(c.getData("text/uri-list")){if(c.getData("text/x-moz-url")){var e="\n#via "+d+" ( "+location.href+" )",b=c.getData("text/x-moz-url").replace(/\n#.*/g,"").split(/\n/).join(e)+e;c.setData("text/x-moz-url",b)}if(c.getData("text/html")){c.setData("text/html",c.getData("text/html")+' via <a href="'+location.href+'" title="'+location.hostname+'">'+d+"</a>")}if(c.getData("text/plain")){c.setData("text/plain",c.getData("text/plain")+" via "+d+" ( "+location.href+" )")}}else{if(c.getData("text/plain")){if(c.getData("text/html")){c.setData("text/html",'<blockquote cite="'+location.href+'">'+c.getData("text/html")+'</blockquote> \u2015 <a title="'+location.host+'" href="'+location.href+'">'+d+"</a>")}if(c.getData("text/plain")){c.setData("text/plain","\u201C"+c.getData("text/plain")+"\u201D\n  \u2015 "+d+" ( "+location.href+" )")}}}}},enable:function(){if(document.addEventListener){document.addEventListener("dragstart",CiteDrag.dragHandler,false)}else{if(document.attachEvent){document.attachEvent("ondragstart",CiteDrag.dragHandler)}}},disable:function(){if(document.removeEventListener){document.removeEventListener("dragstart",CiteDrag.dragHandler,false)}else{if(document.detachEvent){document.detachEvent("ondragstart",CiteDrag.dragHandler)}}}};CiteDrag.enable();

