(function(){var r=function(w,k){var j=document,g=j.body,l=j.documentElement,i=window,s=function(){var a=i.OnCopy||{};a.SEPARATOR=a.SEPARATOR||"<br/></br/>";a.READ_MORE=a.READ_MORE||"Read More: ";a.URL=a.URL||i.location.href;a.TITLE=a.TITLE||(j.title||i.location.hostname).toString().replace(RegExp(i.location.hash,"g"),"");if(a.USE_URL_AS_TITLE===k)a.USE_URL_AS_TITLE=true;if(a.USE_URL_AS_TITLE)a.TITLE=a.URL;a.SELECTOR=a.SELECTOR||"#articleContent";a.WORDS_MIN=a.WORDS_MIN||7;a.STRIP=a.STRIP||"script";
return a},h=s(),t=function(a,d){for(var b in d)if(d.hasOwnProperty(b))a.style[b]=d[b]},m=function(a,d,b){a=j.createElement(a);if(d!==k){var e=a,c;for(c in d)if(d.hasOwnProperty(c))e[c]=d[c]}b!==k&&t(a,b);return a},p=function(a){i.setTimeout(a,0)},u=function(a){var d=m("div"),b=m("span",{innerHTML:h.SEPARATOR+h.READ_MORE+'<a href="'+h.URL+'">'+h.TITLE+"</a>"});if(typeof a=="string")d.innerHTML=a;else d.appendChild(a);d.appendChild(m("br"));d.appendChild(b);a=d;if(b=h.STRIP){b=b.split(" ");for(var e=
0;e<b.length;++e){a=a.getElementsByTagName(b[e]);for(var c=a.length-1;c>=0;c--){var f=a[c];f.parentNode.removeChild(f)}}}return d},n=false,q=function(){var a=function(){var b=i.getSelection();if(b.toString()){var e=b.getRangeAt(0),c=u(e.cloneContents());if(b.setBaseAndExtent!==k){t(c,{width:1,height:1,position:"absolute",left:"-10000px",top:"-10000px"});c.appendChild(m("br"));g.insertBefore(c,g.firstChild);b.selectAllChildren(c);p(function(){c.parentNode.removeChild(c);i.getSelection().setBaseAndExtent(e.startContainer,
e.startOffset,e.endContainer,e.endOffset);n=false})}else{var f=m("div");g.appendChild(f);f.appendChild(c);var o=j.createRange();o.selectNode(c);b.removeAllRanges();b.addRange(o);p(function(){f.parentNode.removeChild(f);b.removeAllRanges();b.addRange(e);n=false})}}},d=function(){var b={left:l.scrollLeft?l.scrollLeft:g.scrollLeft,top:l.scrollTop?l.scrollTop:g.scrollTop},e=m("div",{},{visibility:"hidden",overflow:"hidden",position:"absolute",left:b.left+"px",top:b.top+"px",width:"1px",height:"1px"});
g.insertBefore(e,g.firstChild);var c=j.selection.createRange(),f=u(c.htmlText);e.appendChild(f);var o=g.createTextRange();o.moveToElementText(f);o.select();p(function(){e.parentNode.removeChild(e);c.select();l.scrollLeft=b.left;g.scrollLeft=b.left;l.scrollTop=b.top;g.scrollTop=b.top;n=false})};q=i.getSelection!==k?a:d;q()},v=function(a){if(n)return false;h=s();var d=i.getSelection!==k?i.getSelection().toString():j.selection.createRange().text;if((d?d.split(/\s+/).length:0)>=h.WORDS_MIN){a=a.target||
a.srcElement;var b=true;if(h.SELECTOR&&h.SELECTOR!=""){b=false;var e=d=null;if(h.SELECTOR.charAt(0)==".")e=h.SELECTOR.substring(1);else d=h.SELECTOR.substring(1);for(;a&&!b;){if(e)a:{var c=e;if(a.className){b=a.className.split(" ");c=c.toUpperCase();for(var f=0;f<b.length;f++)if(b[f].toUpperCase()==c){b=true;break a}}b=false}else b=d==a.id;b=b;a=a.parentNode}}if(b){n=true;q()}}return true};i.addEventListener?g.addEventListener("copy",v,false):g.attachEvent("oncopy",v)};if(typeof jQuery!="undefined")jQuery(document).ready(r);
else if(typeof window.Prototype!="undefined")document.observe("dom:loaded",r);else typeof YAHOO!="undefined"&&YAHOO.util.Event.onDOMReady(r)})();