var RTR_ArticleURL=location.href;location.href.search("\\?")!=-1&&(RTR_ArticleURL=location.href.split("?")[0]);function shareDelicious(){typeof RTR_ArticleTitle!="undefined"&&commonPopup("http://del.icio.us/post?v=4&noui&jump=close&url="+encodeURIComponent(RTR_ArticleURL+"?rpc=28")+"&title="+encodeURIComponent(RTR_ArticleTitle)+"&notes="+encodeURIComponent(RTR_ArticleBlurb)+"&tags=news",540,500,1,"deliciousPopup")}
function shareFacebook(){typeof RTR_ArticleTitle!="undefined"&&commonPopup("http://www.facebook.com/sharer.php?u="+encodeURIComponent(RTR_ArticleURL+"?rpc=60")+"&t="+encodeURIComponent(RTR_ArticleTitle),626,436,1,"facebookPopup")}
function shareNewsvine(){typeof RTR_ArticleTitle!="undefined"&&commonPopup("http://www.newsvine.com/_wine/save?aff=reuters&h="+encodeURIComponent(RTR_ArticleTitle)+"&t=world-news&u="+encodeURIComponent(RTR_ArticleURL+"?rpc=63")+"&e="+encodeURIComponent(RTR_ArticleBlurb),650,445,1,"newsvinePopup")}function shareYahoo(){typeof RTR_ArticleTitle!="undefined"&&commonPopup("http://buzz.yahoo.com/article/REUTERS/"+encodeURIComponent(RTR_ArticleURL+"?rpc=46"),980,910,1,"yahooPopup")}
function shareMixx(){typeof RTR_ArticleTitle!="undefined"&&commonPopup("http://www.mixx.com/submit/story?title="+encodeURIComponent(RTR_ArticleTitle)+"&page_url="+encodeURIComponent(RTR_ArticleURL+"?rpc=62")+"&partner=REU&description="+encodeURIComponent(RTR_ArticleBlurb),1024,640,1,"mixxPopup")}
function shareDigg(){typeof RTR_ArticleTitle!="undefined"&&commonPopup("http://digg.com/remote-submit?phase=2&url="+encodeURIComponent(RTR_ArticleURL+"?rpc=64")+"&title="+encodeURIComponent(RTR_ArticleTitle)+"&bodytext="+encodeURIComponent(RTR_ArticleBlurb)+"&topic=world_news",540,500,1,"diggPopup")}
function shareLinkedIn(){typeof RTR_ArticleTitle!="undefined"&&commonPopup("http://www.linkedin.com/shareArticle?mini=true&url="+encodeURIComponent(RTR_ArticleURL+"?rpc=59")+"&title="+encodeURIComponent(RTR_ArticleTitle)+"&summary="+encodeURIComponent(RTR_ArticleBlurb)+"&source=Reuters",520,570,1,"linkedinPopup")}
var arrShareLinks="Delicious,javascript:shareDelicious();,Digg,javascript:shareDigg();,Facebook,javascript:shareFacebook();,Mixx,javascript:shareMixx();,LinkedIn,javascript:shareLinkedIn();,Yahoo!,javascript:shareYahoo();".split(","),shareOverlayFocus=false,shareInterval;function trimTools(a){return a.replace(/\\./,"").replace("!","").replace(" ","")}function parseShareName(a){a=="Delicious"&&(a="Del.icio.us");return a}
function tryShareOverlay(){if(!document.getElementById("shareContainer")){var a=document.createElement("div");a.id="shareContainer";a.className="hidden";document.getElementById("atools").insertBefore(a,document.getElementById("autilities"))}document.getElementById("shareContainer").innerHTML==""?showShareOverlay():hideShareOverlay()}
function showShareOverlay(){var a='<div id="shareTab"></div>';a+='<div id="shareShadow"><div id="shareContents">';for(i=0;i<arrShareLinks.length;i++)i%2==0&&(a+='<div class="shareTool">',a+='<a id="'+trimTools(arrShareLinks[i]).toLowerCase()+'Link" href="'+arrShareLinks[i+1]+'">'+parseShareName(arrShareLinks[i])+"</a>",a+="</div>");a+="<div id=\"shareWhat\"><a href=\"javascript:commonPopup('/tools/share',\t540, 600, 1, 'sharePopup');\">(what is this?)</a></div>";a+="</div></div>";a+='<div id="shareCloseButton"><a href="javascript:hideShareOverlay();"></a></div>';
if(document.getElementById){var b=document.getElementById("shareLink").offsetLeft-6,c=document.getElementById("shareLink").offsetTop+document.getElementById("shareLink").offsetHeight-2;document.getElementById("shareContainer").innerHTML=a;document.getElementById("shareContainer").className="";document.getElementById("shareContainer").style.cssText="position:absolute; top:"+c+"px; left:"+b+"px;"}}
function hideShareOverlay(){if(document.getElementById)document.getElementById("shareContainer").innerHTML="",document.getElementById("shareContainer").className="hidden",document.getElementById("shareContainer").style.cssText="",shareOverlayFocus=false};

