var wudiShow=(function(){var c,b="http://huotu.com/",g="\u706b\u5154";var a=document.getElementById("wudiShow");function f(){if(a==null){return}if(c.status){e()}else{a.innerHTML="\u6ca1\u6709\u66f4\u65b0\u8fc7\u4efb\u4f55\u72b6\u6001"}}function e(){var n=c.status.length;var j=c.user;var h=c.status;if(n<1){a.innerText="\u6ca1\u6709\u66f4\u65b0\u8fc7\u4efb\u4f55\u72b6\u6001"}var p=document.createElement("DIV");var m=document.createElement("UL");var o=document.createElement("H4");var l=document.createElement("P");o.innerHTML=j.nickname+"\u6b63\u5728\u5e72\u561b";l.innerHTML='<a href="'+b+j.username+'" target="_blank">\u8fdb\u5165<strong>'+j.nickname+"</strong>\u7684"+g+"\u4e3b\u9875&raquo;</a>";o.setAttribute("id","wudiShow_Header");l.setAttribute("id","wudiShow_More");m.setAttribute("id","wudiShow_List");p.setAttribute("id","wudiShow");p.appendChild(o);p.appendChild(m);p.appendChild(l);for(var k=0;k<n;k++){m.appendChild(d(h[k]))}a.parentNode.replaceChild(p,a);a=document.getElementById("wudiShow")}function d(j){var h=document.createElement("li");var l=j.text;if(j.picPath.length>0){if(l!=""){l+="<br>"}for(var k=0;k<j.picPath.length;k++){l+='<img src="'+j.picPath[k]+'" alt="" class="wudishow_pic"/>'}l+='<br><a class="wudiShow_time" href="'+b+"jump?aid=detail&twId="+j.id+'" target="_blank">'+j.created_at+"</a>"}else{l+=' <a class="wudiShow_time" href="'+b+"jump?aid=detail&twId="+j.id+'" target="_blank">'+j.created_at+"</a>"}h.innerHTML=l;return h}return{init:function(){f()},setData:function(h){c=h},setUrl:function(h){if(h){b=h}},setSiteName:function(h){if(h){g=h}}}})();function callback(a){wudiShow.setData(a);wudiShow.init()};

