(function(){var c="http://buzz.yahoo.com";var M=window.location.href.replace(/http:\/\/([^\/:]+).*$/,"$1").split(".").slice(-2).join(".");var E="http://l.yimg.com/ds/orion";var G="1.0.0";var V=E+"/"+G;var F="http://votes.buzz.yahoo.com";var R=window.yahooBuzzOnLoad||function(){};var K=window.yahooBuzzBadgeType;var H=window.yahooBuzzShowBranding;var C=window.yahooBuzzArticleId;var T=window.yahooBuzzArticleHeadline;var Y=window.yahooBuzzArticleSummary;var a=window.yahooBuzzArticleCategory;var Q=window.yahooBuzzArticleTargetUrl;var Z=window.yahooBuzzArticleType;var X=function(e,l,p,n,h){var i=l[0];var o=l[1];var f=(T&&typeof (T)==="string")?T:"";var k=(Y&&typeof (Y)==="string")?Y:"";var d=(a&&typeof (a)==="string")?a:"";var g=(Q&&typeof (Q)==="string")?Q:"";var j=(Z&&typeof (Z)==="string")?Z:"article";var m=(i==="pub")?"pub":"publisher";N({name:"from",value:m});N({name:"assettype",value:j});N({name:"publisherurn",value:i});N({name:"guid",value:o});N({name:".done",value:"/article/"+i+"/"+encodeURIComponent(encodeURIComponent(o))});N({name:"loc",value:M});N({name:"votetype",value:1});if(f!==""){N({name:"headline",value:f});}if(k!==""){N({name:"summary",value:k});}if(d!==""){N({name:"category",value:d});}if(g!==""){N({name:"targetUrl",value:g});}W(e,p,n,S+"/article/"+l[0]+"/"+encodeURIComponent(encodeURIComponent(l[1])),h,i,o);R.call(e);};var B=[];var O=function(g,e){var d=document.createElement(g);d.attachEventListener=U;d.removeEventListener=U;d.attachEvent=U;d.detatchEvent=U;for(var h in e){if(h==="style"){for(var f in e[h]){d.style[f]=e[h][f];}}else{d[h]=e[h];}}return d;};var W=function(g,j,AG,AC,p,x,h){var AF;var k=false;var l=g.id+"-votes";var f="Buzz up!";var t="vote now";var e="vote<br>now";var AI='<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 m='<span style="cursor:pointer;cursor:hand;background:transparent url('+V+'/img/badge-small.png) top left no-repeat;display:block;height:0;padding-top:22px;width:74px;text-indent:-999em;overflow:hidden;float:left">'+f+"</span>";var r='<span style="cursor:pointer;cursor:hand;background:transparent url('+V+'/img/badge-medium.png) top left no-repeat;display:block;height:0;padding-top:27px;width:91px;text-indent:-999em;overflow:hidden;float:left">'+f+"</span>";var AH='<span style="cursor:pointer;cursor:hand;background:transparent url('+V+'/img/badge-large.png) top left no-repeat;display:block;height:0;padding-top:33px;width:109px;text-indent:-999em;overflow:hidden;float:left">'+f+"</span>";var o='<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('+V+'http://www.mitcio.com/images/buzz-badge-logo.png) top left no-repeat;height:16px;width:16px;"></span></span>';var AA='<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('+V+'http://www.mitcio.com/images/buzz-badge-logo.png) top left no-repeat;height:16px;width:16px;"></span>'+f+"</span>";var w='<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('+V+'/img/badge-textbutton.png) left center no-repeat;">'+f+"</span>";var q='<span style="margin-top:-1px;*margin-top:3px;cursor:pointer;cursor:hand;display:block;height:0;padding-top:25px;width:51px;text-indent:-999em;overflow:hidden;background:transparent url('+V+'/img/badge-square-button.gif) top left no-repeat">'+f+"</span>";var z='<span id="'+l+'" style="text-align:left;cursor:pointer;cursor:hand;color:#666;font-family:Verdana,Tahoma,Arial,Helvetica,sans-serif;';var i="</span>";var d=z+'padding-left:4px;_padding-left:1px;display:inline; width:82px; font-size:10px; line-height:22px">'+t+i;var n=z+'padding-left:4px;_padding-left:1px;display:inline; width:88px; font-size:10px; line-height:27px">'+t+i;var u=z+'padding-left:4px;_padding-left:1px;display:inline; width:91px; font-size:11px; line-height:33px">'+t+i;var AE=z+"display:block;text-align:center;font-size:11px;line-height:20px;padding-top:5px;background:transparent url("+V+'/img/badge-square-bg.gif) top left no-repeat;width:51px;height:52px">'+e+i;var AB='<span style="cursor:pointer;cursor:hand;position:relative;padding-left:20px;line-height:16px;" id="'+l+'"><span style="cursor:pointer;cursor:hand;display:block;position:absolute;top:0;left:0;background:transparent url('+V+'http://www.mitcio.com/images/buzz-badge-logo.png) top left no-repeat;height:16px;width:16px;"></span>'+f+"</span>";var y={form:g,href:AC,onclick:I,title:"Vote for your favorite stories on Yahoo! Buzz"};var AD={textDecoration:"none",width:"74px",display:"block"};if(AG){AD.textAlign="right";}switch(j){case"text":AF=AA;break;case"textbutton":AF=w;AD.target="_new";AD.width="auto";AD.position="relative";AD.left="4px";AD.display="block";AD.width="80px";AD.background="url("+V+"/img/badge-textbutton.png) right center no-repeat";y.style=AD;break;case"text-votes":k=true;AF=AB;break;case"small":AF=m;if(AG){AF+=AI;}y.style=AD;break;case"small-votes":k=true;AF=m+d;AD.width="159px";y.style=AD;break;case"large":AF=AH;if(AG){AF+=AI;}AD.width="109px";y.style=AD;break;case"large-votes":k=true;AF=AH+u;y.style=AD;AD.width="203px";break;case"logo":AF=o;break;case"square":k=true;AF=AE+q;AD.width="51px";y.style=AD;break;case"medium-votes":k=true;AF=r+n;AD.width="182px";y.style=AD;break;case"medium":default:AF=r;if(AG){AF+=AI;}AD.width="91px";y.style=AD;break;}y.innerHTML=AF;var v=O("span",{id:A,className:"yahooBuzzBadge yahooBuzzBadge-"+j});v.appendChild(O("a",y));g.id=g.id+"-form";p.parentNode.insertBefore(v,p);p.parentNode.removeChild(p);if(k){P(j,x,h,l);}L();};var J=function(e,f,g,d){return F+"/article/V1/votecount?format=badge&badgetype="+encodeURIComponent(e)+"&publisherurn="+encodeURIComponent(f)+"&guid="+encodeURIComponent(g)+"&rnd="+encodeURIComponent(new Date().valueOf().toString())+"&host="+encodeURIComponent(V)+"&id="+encodeURIComponent(d);};var P=function(e,f,h,d){var g=document.createElement("script");g.type="text/javascript";g.src=J(e,f,h,d);g.charset="utf-8";document.getElementsByTagName("head")[0].appendChild(g);};var N=function(e){var d=O("input",e);B.push(d);};var I=function(h){h=h||window.event;var d=h.target||h.srcElement;while(d&&d.tagName!=="A"){d=d.parentNode;}if(!d){return true;}var g=d.form;b(g);if(typeof (h.preventDefault)==="function"){h.preventDefault();}h.returnValue=false;h.cancelBubble=true;h.stopPropagation&&h.stopPropagation();return false;};var U=function(d){return true;};var b=function(j){if(!j){return true;}for(var h=B.length-1;h>-1;h--){j.appendChild(B[h]);}j.onsubmit=U;document.body.appendChild(j);j.submit();var e=j.getElementsByTagName("input");for(var h=0,d=e.length;h<d;h++){try{e[h].parentNode.removeChild(e[h]);}catch(g){continue;}}j.parentNode.removeChild(j);};var A=function(){return"yahooBuzzBadge-"+Math.floor(Math.random()*10000000)+252+new Date().valueOf().toString();}();var D=function(){var e=A;for(var d=0;d<5;d++){e+=String.fromCharCode(Math.floor(Math.random()*26)+97);}document.write('<span id="'+e+'" style="position:absolute;left:-999em;height:0;width:0;"></span>');return document.getElementById(e);}();D.____yb=1;var L;var S;window.setTimeout(function(){L=function(){if(D&&D.parentNode){D.parentNode.removeChild(D);}g=null;};var e=function(){if(!D){return undefined;}var j=D;while(j&&(!j.tagName||j.tagName!=="SCRIPT")){if(j&&j.previousSibling&&j.previousSibling.tagName&&j.previousSibling.childNodes.length){j=j.previousSibling.lastChild;}else{if(j===j.parentNode.firstChild){j=j.parentNode;}else{j=j.previousSibling;}}}if(!j){return undefined;}j.____yb=1;return j;}();S=(e&&e.src)||"";if(S.substr(0,1)==="/"){S="http://"+window.location.host;}S=S.replace(/^http:\/\/([^\/]+.yahoo.com)(:[0-9]+)?(\/.*)?/,"http://$1$2");if(!S.match(/^http:\/\/([^\/]+.yahoo.com)(:[0-9]+)?$/)){S=c;}var h=function(){var j="";if(C&&typeof (C)==="string"){j=C;}else{if(e&&e.innerHTML&&e.src){j=e.innerHTML.replace(/[\n\r\s\t]+/g," ").replace(/^\s+/,"").replace(/\s+$/,"");}}j=j.split(":");if(j[0]===""||j[0]==="ARTICLEURL"){return["pub",window.location.href];}else{if(j[0]==="http"||j[0]==="https"){return["pub",j.join(":")];}else{return[j.shift(),j.join(":")];}}}();var f=function(){var j;if(K&&typeof (K)==="string"){j=K;}else{if(e){j=e.getAttribute("badgetype");}}return j||"medium";}();var i=function(){var j;if(H&&typeof (H)!=="undefined"){j=H;}else{if(e){j=e.getAttribute("showbranding");}}if(!isNaN(j)){j=(+j);}else{if(j==="false"||j==="no"||j==="off"){j=false;}}return !!j;}();var d=document.getElementById(A)||D;d.____yb=1;var g=function(){if(!d){return undefined;}var j=O("form",{id:A+"-form",className:"yahooBuzzBadge-form",action:S+"/vote/",method:"post",target:"_new",____yb:1,style:{position:"absolute",height:"1px",width:"1px",visibility:"hidden"}});d.id="";return j;}();X(g,h,f,i,d);},0);})();
