    function Plurk(plurk, user) {
        this.id = plurk.id;
        this.qualifier = plurk.qualifier;
        this.content = plurk.content;
        this.posted = plurk.posted;
        if (undefined !== plurk.response_count) {
            this.response_count = plurk.response_count;
            this.tinyurl = "http://www.plurk.com/p/" + this.id.toString(36);
            this.isRoot = true;
        } else { this.isRoot = false; }
        this.user_id = user.id;
        this.display_name = user.display_name;
        if (this.display_name === "") {
            this.display_name = user.nick_name;
        }
        this.nick_name = user.nick_name;
        this.user_url = "http://www.plurk.com/user/" + this.nick_name;
        this.avatar = user.avatar;
        if (null === user.avatar) {
            this.icon = "http://plurk.com/static/default_medium.gif";
        } else {
            this.icon = "http://avatars.plurk.com/" + this.user_id + "-medium" + this.avatar + ".gif";
        }
    }

    Plurk.prototype.render = function() {
        var li = dojo.create("li", { className: "plurk", id: "plurk-" + this.id });
        li.appendChild(this.renderThumb());
        li.appendChild(this.renderStatus());
        if (this.isRoot && this.response_count > 0) {
            li.appendChild(this.renderActions());
        }
        return li;
    }

    Plurk.prototype.renderThumb = function() {
        var user_thumb = dojo.create("a", { className: "user_thumb", href: this.user_url });
        var icon = dojo.create("img", { src: this.icon });
        user_thumb.appendChild(icon);
        return user_thumb;
    }

    Plurk.prototype.renderStatus = function() {
    	var status_body = dojo.create("span", { className: "status_body" });
            var display_name = dojo.create("a", { className: "display_name", innerHTML: this.display_name, href: this.user_url });
            var qualifier = dojo.create("span", { className: "qualifier", innerHTML: this.qualifier });
            var entry_content = dojo.create("span", { className: "entry_content", innerHTML: this.content });
            if (this.isRoot) {
                var entry_meta = dojo.create("a", { className: "entry_meta", innerHTML: this.posted, href: this.tinyurl });
            } else {
                var entry_meta = dojo.create("a", { className: "entry_meta", innerHTML: this.posted });
            }
        status_body.appendChild(display_name);    
        status_body.appendChild(qualifier);   
        status_body.appendChild(entry_content);  
        status_body.appendChild(entry_meta);  
        return status_body;
    }
    
    Plurk.prototype.renderActions = function() {
        var actions = dojo.create("span", { className: "actions", id: this.id });
            var response_count = dojo.create("a", { className: "response_count", innerHTML: this.response_count });
            //var show_conversations = dojo.create("a", { id: this.id, className: "show_conversations", innerHTML: "<img src='/static/images/arrow1.gif' />", href: "#conversations" });
        //actions.appendChild(response_count);
        if (this.response_count > 0) {
            actions.appendChild(response_count);
        }    
        return actions;
    }
    