(function(){var T="http://buzz.yahoo.com";var L=window.location.href.replace(/http:\/\/([^\/:]+).*$/,"$1").split(".").slice(-2).join(".");var F="http://l.yimg.com/ds/orion";var G="0.2.2";var Q=F+"/"+G;var D=window.yahooBuzzOnLoad||function(){};var C=window.yahooBuzzArticleId;var H=window.yahooBuzzShowBranding;var J=window.yahooBuzzBadgeType;var S=function(X,Y,W,Z,V){M({name:"from",value:"publisher"});M({name:"assettype",value:"article"});M({name:"publisherurn",value:Y[0]});M({name:"guid",value:Y[1]});M({name:".done",value:"/article/"+Y[0]+"/"+encodeURIComponent(encodeURIComponent(Y[1]))});M({name:"loc",value:L});M({name:"votetype",value:1});R(X,W,Z,O+"/article/"+Y[0]+"/"+encodeURIComponent(encodeURIComponent(Y[1])),V);D.call(X)};var B=[];var N=function(Y,W){var V=document.createElement(Y);V.attachEventListener=P;V.removeEventListener=P;V.attachEvent=P;V.detatchEvent=P;for(var Z in W){if(Z==="style"){for(var X in W[Z]){V.style[X]=W[Z][X]}}else{V[Z]=W[Z]}}return V};var R=function(X,b,d,W,Y){var c,f;var Z='<span style="cursor:pointer;cursor:hand;color:#666;line-height:10px;display:block;margin-top:3px;font-size:10px;font-family:Verdana,Tahoma,Arial,Helvetica,sans-serif;padding-right:5px;">on Yahoo!</span>';var e={form:X,href:W,onclick:I};var V={"textDecoration":"none","width":"74px","display":"block","textAlign":"right"};switch(b){case"text":f='<span style="cursor:pointer;cursor:hand;position:relative;padding-left:20px;line-height:16px;"><span style="cursor:pointer;cursor:hand;display:block;position:absolute;top:0;left:0;background:transparent url('+Q+'/img/badge-logo.png) top left no-repeat;height:16px;width:16px;"></span>Yahoo! Buzz</span>';e.innerHTML=f;break;case"textbutton":f='<span style="cursor:pointer;cursor:hand;position:relative;left:-4px;padding-left:24px;font-size:80%;font-family:Verdana,Tahoma,Helvetica,Arial,sans-serif;display:block;line-height:22px;height:22px;color:#00c;background:url('+Q+'/img/badge-textbutton.png) left center no-repeat;">Buzz up!</span>';e.style={target:"_new",width:"auto",position:"relative",left:"4px",display:"block",width:"80px",background:"url("+Q+"/img/badge-textbutton.png) right center no-repeat"};e.innerHTML=f;break;case"logo":f='<span style="cursor:pointer;cursor:hand;position:relative;padding-left:20px;line-height:16px;"><span style="cursor:pointer;cursor:hand;display:block;position:absolute;top:0;left:0;background:transparent url('+Q+'/img/badge-logo.png) top left no-repeat;height:16px;width:16px;"></span></span>';e.innerHTML=f;break;case"small":f='<span style="cursor:pointer;cursor:hand;background:transparent url('+Q+'/img/badge-small.png) top left no-repeat;display:block;height:0;padding-top:22px;width:74px;text-indent:-999em;overflow:hidden">Buzz up!</span>';if(d){f+=Z}e.style=V;e.innerHTML=f;break;case"large":f='<span style="cursor:pointer;cursor:hand;background:transparent url('+Q+'/img/badge-large.png) top left no-repeat;display:block;height:0;padding-top:33px;width:109px;text-indent:-999em;overflow:hidden">Buzz up!</span>';if(d){f+=Z}e.style=V;V.width="109px";e.innerHTML=f;break;case"medium":default:f='<span style="cursor:pointer;cursor:hand;background:transparent url('+Q+'/img/badge-medium.png) top left no-repeat;display:block;height:0;padding-top:27px;width:91px;text-indent:-999em;overflow:hidden">Buzz up!</span>';if(d){f+=Z}e.style=V;V.width="91px";e.innerHTML=f;break}var g=N("span",{id:X.id,className:X.className});g.appendChild(N("a",e));X.id=X.id+"-form";Y.parentNode.insertBefore(g,Y);Y.parentNode.removeChild(Y);K()};var M=function(W){var V=N("input",W);B.push(V)};var I=function(X){X=X||window.event;var V=X.target||X.srcElement;while(V&&V.tagName!=="A"){V=V.parentNode}if(!V){return true}var W=V.form;U(W);if(typeof (X.preventDefault)==="function"){X.preventDefault()}X.returnValue=false;X.cancelBubble=true;X.stopPropagation&&X.stopPropagation();return false};var P=function(V){return true};var U=function(Z){if(!Z){return true}for(var Y=B.length-1;Y>-1;Y--){Z.appendChild(B[Y])}Z.onsubmit=P;document.body.appendChild(Z);Z.submit();var W=Z.getElementsByTagName("input");for(var Y=0,V=W.length;Y<V;Y++){try{W[Y].parentNode.removeChild(W[Y])}catch(X){continue}}Z.parentNode.removeChild(Z)};var A=function(){var Y="yahooBuzzBadge",W=Y,V=0,X;while((X=document.getElementById(W))&&X.____yb==1||document.getElementById(W+"-form")){W=Y+"-"+V;V++}if(X){X.____yb=1}return W}();var E=function(){var W=A;for(var V=0;V<5;V++){W+=String.fromCharCode(Math.floor(Math.random()*26)+97)}document.write('<span id="'+W+'" style="position:absolute;left:-999em;height:0;width:0;"></span>');return document.getElementById(W)}();E.____yb=1;var K;var O;window.setTimeout(function(){K=function(){if(E&&E.parentNode){E.parentNode.removeChild(E)}Y=null};var W=function(){if(!E){return undefined}var b=E;while(b&&(!b.tagName||b.tagName!=="SCRIPT")){if(b&&b.previousSibling&&b.previousSibling.tagName&&b.previousSibling.childNodes.length){b=b.previousSibling.lastChild}else{if(b===b.parentNode.firstChild){b=b.parentNode}else{b=b.previousSibling}}}if(!b){return undefined}b.____yb=1;return b}();O=(W&&W.src)||"";if(O.substr(0,1)==="/"){O="http://"+window.location.host}O=O.replace(/^http:\/\/([^\/]+.yahoo.com)(:[0-9]+)?(\/.*)?/,"http://$1$2");if(!O.match(/^http:\/\/([^\/]+.yahoo.com)(:[0-9]+)?$/)){O=T}var Z=function(){var b="";if(C&&typeof (C)==="string"){b=C}else{if(W&&W.innerHTML&&W.src){b=W.innerHTML.replace(/[\n\r\s\t]+/g," ").replace(/^\s+/,"").replace(/\s+$/,"")}}b=b.split(":");return[b.shift(),b.join(":")]}();var X=function(){var b;if(J&&typeof (J)==="string"){b=J}else{if(W){b=W.getAttribute("badgetype")}}return b||"medium"}();var a=function(){var b;if(H&&typeof (H)!=="undefined"){b=H}else{if(W){b=W.getAttribute("showbranding")}}if(!isNaN(b)){b=(+b)}else{if(b==="false"||b==="no"||b==="off"){b=false}}return !!b}();var V=document.getElementById(A)||E;V.____yb=1;var Y=function(){if(!V){return undefined}var b=N("form",{id:A+"-form",className:"yahooBuzzBadge-form",action:O+"/vote/",method:"post",target:"_new",____yb:1,style:{position:"absolute",height:"1px",width:"1px",visibility:"hidden"}});V.id="";return b}();S(Y,Z,X,a,V)},0)})()
