function Ratentweet(b){function i(){c.container=document.createElement("div");c.container.setAttribute("style","overflow:hidden;");for(var d=0;d<c.stars.length;d++){var a=document.createElement("a");a.setAttribute("href","http://twitter.com/home?status="+(d+1)+"+stars+to+"+c.title+"+-+"+c.link+"+%23ratentweet");a.setAttribute("target","_blank");a.setAttribute("title",d+1);a.setAttribute("style",style_off);a.onmouseover=function(){if(this.getAttribute("style").search("_off")!=-1){off=this.getAttribute("style");
on=off.replace("_off","_on")}else{on=this.getAttribute("style");off=on.replace("_on","_off")}f(this.getAttribute("title"),on,off)};a.onmouseout=function(){if(this.getAttribute("style").search("_off")!=-1){off=this.getAttribute("style");on=off.replace("_off","_on")}else{on=this.getAttribute("style");off=on.replace("_on","_off")}j(on,off)};c.stars[d]=a;c.container.appendChild(a)}}function f(d,a,k){for(var e=0;e<g;e++)e<d?c.stars[e].setAttribute("style",a):c.stars[e].setAttribute("style",k)}function j(d,
a){h(d,a)}function h(d,a){f(c.defaultStars,d,a)}var c=this,g=5;this.stars=new Array(g);this.defaultStars=b.hasOwnProperty("defaultStars")?b.defaultStars:3;this.title=b.hasOwnProperty("title")?b.title.split(" ").join("+"):"";this.link=b.hasOwnProperty("link")?b.link:"http://ratentweet.com";this.elementID=b.hasOwnProperty("elementID")?b.elementID:"ratentweet";this.starStyle=b.hasOwnProperty("starStyle")?b.starStyle:"star";this.size=b.hasOwnProperty("size")?b.size:"medium";style_off=style_on="float:left;";
if(this.size=="small"){style_on+='width:16px;height:16px;background:url("http://ratentweet.com/icons/small/'+this.starStyle+'_on.png") no-repeat;';style_off+='width:16px;height:16px;background:url("http://ratentweet.com/icons/small/'+this.starStyle+'_off.png") no-repeat;'}else if(this.size=="medium"){style_on+='width:24px;height:24px;background:url("http://ratentweet.com/icons/medium/'+this.starStyle+'_on.png") no-repeat;';style_off+='width:24px;height:24px;background:url("http://ratentweet.com/icons/medium/'+
this.starStyle+'_off.png") no-repeat;'}else{style_on+='width:32px;height:32px;background:url("http://ratentweet.com/icons/big/'+this.starStyle+'_on.png") no-repeat;';style_off+='width:32px;height:32px;background:url("http://ratentweet.com/icons/big/'+this.starStyle+'_off.png") no-repeat;'}i();h(style_on,style_off);document.getElementById(this.elementID).appendChild(c.container)};