var trWidgetData = "<div id=\"tr-widget\" class=\"tr-widget-200\"> <div id=\"tr-widget-header\">Technorati Widget</div> <div id=\"tr-widget-main\"> <div id=\"tr-widget-authority\" class=\"tr-widget-module\"> <div class=\"tr-widget-subheader\">Technorati authority</div> <div class=\"tr-widget-content\"> <a href=\"http://technorati.com/blogs/linuxshellaccount.blogspot.com?reactions\">63</a> </div> </div> <div id=\"tr-widget-profile\" class=\"tr-widget-module tr-widget-expanded\"> <div class=\"tr-widget-subheader\">Technorati member</div> <div class=\"tr-widget-content\"> <a id=\"tr-widget-photo\" class=\"tr-widget-image-link\" href=\"http://technorati.com/people/technorati/eggi\"><img src=\"http://static.technorati.com/progimages/photo.jpg?uid=777345\" width=\"24\" height=\"24\" alt=\"Photo of eggi\" /></a> </div> </div> </div> <a id=\"tr-widget-link\" href=\"http://technorati.com/account/blogs/widget/\">Get this widget</a> <div id=\"tr-widget-footer\"><a href=\"http://technorati.com/\"><img src=\"http://static.technorati.com/static/images/widget/powered-by.png\" alt=\"Powered by Technorati\" /></a></div> </div> ";

Technorati.GenericDynamicBUWidget.callback("tr_embed_t_js", trWidgetData, "linuxshellaccount.blogspot.com", "eggi");

(function(){
    
var trStylesheetURL = "http://static.technorati.com/static/css/blog-widget.css";

var trHead = document.getElementsByTagName("head")[0] || document.documentElement;
var trStylesheet = document.createElement("link");
trStylesheet.setAttribute("rel", "stylesheet");
trStylesheet.setAttribute("type", "text/css");
trStylesheet.setAttribute("href", trStylesheetURL);
trHead.appendChild(trStylesheet);

// Add expand/collapse behavior
var trWidget = document.getElementById("tr-widget");
if (typeof trWidget !== undefined) {
    var trDivs = trWidget.getElementsByTagName("div");
    for (var i = 0; i < trDivs.length; i++) {
        var div = trDivs[i];
        if (div.className.indexOf("tr-widget-subheader") > -1) {
            div.onclick = function() {
                var module = this.parentNode;
                if (module.className == "tr-widget-module tr-widget-collapsed") {
                    module.className = "tr-widget-module tr-widget-expanded";
                } else if (module.className == "tr-widget-module tr-widget-expanded") {
                    module.className = "tr-widget-module tr-widget-collapsed";
                }

                return false;
            }
        }
    }
}


})();
