(function(){
    var cnt = escape((typeof tweetcount_cnt=="number") ? tweetcount_cnt : false);
    var url = escape((typeof tweetcount_url=="string") ? tweetcount_url : window.location.href);
    var title = encodeURIComponent((typeof tweetcount_title=="string") ? tweetcount_title : document.title);
    var short_url = (typeof tweetcount_short_url=="string") ? escape(tweetcount_short_url) : false;
    var src = (typeof tweetcount_src=="string") ? encodeURIComponent(tweetcount_src) : false;
    var via = (typeof tweetcount_via=="boolean") ? ((tweetcount_via == false) ? false : true) : true;
    var links = (typeof tweetcount_links=="boolean") ? ((tweetcount_links == true) ? true : false) : false;
    var size = (typeof tweetcount_size=="string") ? ((tweetcount_size=='small') ? tweetcount_size : false) : false;
    var api_key = (typeof tweetcount_api_key=="string") ? tweetcount_api_key : false;
    var background = (typeof tweetcount_background=="string") ? tweetcount_background : false;
    var border = (typeof tweetcount_border=="string") ? tweetcount_border : false;
    var text = (typeof tweetcount_text=="string") ? tweetcount_text : false;
    document.write('<iframe src="http://widgets.backtype.com/tweetcount?url='+url+((short_url!==false)?'&short_url='+short_url:'')+((cnt!==false)?'&cnt='+cnt:'')+((src!==false)?'&src='+src:'')+((via!==true)?'&via='+via:'')+((links===true)?'&links=true':'')+'&title='+title+((size!==false)?'&size='+size:'')+((api_key!==false)?'&api_key='+api_key:'')+((background!==false)?'&background='+background:'')+((border!==false)?'&border='+border:'')+((text!==false)?'&text='+text:'')+'" height="'+((size!==false)?18:60)+'" width="'+((size!==false)?90:52)+'" frameborder="0" scrolling="no" allowtransparency="true"></iframe>');
    //tweetcount_cnt = null;
    //tweetcount_url = null;
    //tweetcount_title = null;
    //tweetcount_short_url = null;
    //tweetcount_src = null;
    //tweetcount_via = null;
    //tweetcount_links = null;
    //tweetcount_size = null;
    //tweetcount_api_key = null;
    //tweetcount_background = null;
    //tweetcount_border = null;
    //tweetcount_text = null;
})();

