function convertEntities(b){var d,a;d=function(c){if(/&[^;]+;/.test(c)){var f=document.createElement("div");f.innerHTML=c;return!f.firstChild?c:f.firstChild.nodeValue}return c};if(typeof b==="string"){return d(b)}else{if(typeof b==="object"){for(a in b){if(typeof b[a]==="string"){b[a]=d(b[a])}}}}return b};;addComment={moveForm:function(d,f,i,c){var m=this,a,h=m.I(d),b=m.I(i),l=m.I("cancel-comment-reply-link"),j=m.I("comment_parent"),k=m.I("comment_post_ID");if(!h||!b||!l||!j){return}m.respondId=i;c=c||false;if(!m.I("wp-temp-form-div")){a=document.createElement("div");a.id="wp-temp-form-div";a.style.display="none";b.parentNode.insertBefore(a,b)}h.parentNode.insertBefore(b,h.nextSibling);if(k&&c){k.value=c}j.value=f;l.style.display="";l.onclick=function(){var n=addComment,e=n.I("wp-temp-form-div"),o=n.I(n.respondId);if(!e||!o){return}n.I("comment_parent").value="0";e.parentNode.insertBefore(o,e);e.parentNode.removeChild(e);this.style.display="none";this.onclick=null;return false};try{m.I("comment").focus()}catch(g){}return false},I:function(a){return document.getElementById(a)}};;var myWidth=0,myHeight=0;if(typeof(window.innerWidth)=='number'){myWidth=window.innerWidth;myHeight=window.innerHeight;}else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){myWidth=document.documentElement.clientWidth;myHeight=document.documentElement.clientHeight;}else if(document.body&&(document.body.clientWidth||document.body.clientHeight)){myWidth=document.body.clientWidth;myHeight=document.body.clientHeight;}
var trueheight;trueheight=myHeight;var truewidth;truewidth=myWidth;function showFollowMe()
{document.getElementById('FollowMeBubble').style.visibility='visible';document.getElementById('FollowMeBubbleBG').style.visibility='visible';document.getElementById("FollowMeBubbleBG").style.height=trueheight+"px";document.getElementById("FollowMeBubbleBG").style.width=truewidth+"px";}
function hideFollowMe()
{document.getElementById('FollowMeBubble').style.visibility='hidden';document.getElementById('FollowMeBubbleBG').style.visibility='hidden';};(function(){var Button=function(button){this.construct(button);}
Button.prototype={construct:function(button){var newButton=document.createElement('iframe');var url="http://api.tweetmeme.com/button.js?url="+escape(button.href);url+='&amp;'+button.rel.toLowerCase();if(document&&document.referrer){var ref=document.referrer;if(ref){url+='&amp;o='+escape(ref);}}
newButton.src=url;newButton.frameBorder="0";newButton.scrolling="no";var params=new Array();var qp=button.rel.split('&');for(var i=0;i<qp.length;i++){var kv=qp[i].split('=');if(kv.length>1){params[kv[0]]=kv[1];}}
if(params['style']){switch(params['style']){case'compact':{var h=20;var w=90;break;}
default:{var h=61;var w=50;break;}}
newButton.height=h;newButton.width=w;}else{newButton.height=61;newButton.width=50;}
button.parentNode.insertBefore(newButton,button);var parent=button.parentNode;parent.removeChild(button);this.button=newButton;}}
var Selector={findChildElements:function(element,expression){var results=new Array();if(typeof expression!='string'){return false;}
var identifier=expression.substring(0,1);var match=expression.substring(1);this.search(element.childNodes,function(node){switch(identifier){case'#':node.id=match?results.push(node):false;break;case'.':var classes=node.className;if(classes){classes=classes.split(' ');for(j in classes){if(classes[j]==match){results.push(node);}}}
break;default:node.tagName==expression.toUpperCase()?results.push(node):false
break;}});return results;},search:function(nodes,match){for(var i=0;i<nodes.length;i++){if(nodes[i].childNodes.length>0){this.search(nodes[i].childNodes,match);}
match(nodes[i]);}}}
var buttons=Selector.findChildElements(document.body,'.tm_button');var buttonObjs=new Array();if(buttons.length>0){for(var i=0;i<buttons.length;i++){var obj=new Button(buttons[i]);buttonObjs[obj.url]=obj;}}})();
