pinkoi="undefined"==typeof pinkoi?{}:pinkoi;
if(!pinkoi.embed)pinkoi.embed=function(a,b){this.opt=b||{};this.type=a;this.mode=this.opt.mode||"detail";this.rows=parseInt(this.opt.rows||1);this.cols=parseInt(this.opt.cols||1);this.uid=this.opt.uid||null;this.tid=this.opt.tid||null;this.store=this.opt.store||null},pinkoi.embed.prototype={getHeight:function(){return"choose"==this.type?(pinkoi.embed.config.style.item[this.mode].height+pinkoi.embed.config.style.item[this.mode].pad)*(this.rows+1)+pinkoi.embed.config.style.footer.height:(pinkoi.embed.config.style.item[this.mode].height+
pinkoi.embed.config.style.item[this.mode].pad)*this.rows+pinkoi.embed.config.style.footer.height},getWidth:function(){return(pinkoi.embed.config.style.item[this.mode].width+pinkoi.embed.config.style.item[this.mode].pad)*this.cols},getSrc:function(){return pinkoi.embed.config.iframeURL+"type="+this.type+(this.mode?"&mode="+this.mode:"")+(this.uid?"&uid="+encodeURIComponent(this.uid):"")+(this.tid?"&tid="+encodeURIComponent(this.tid):"")+(this.store?"&store="+encodeURIComponent(this.store):"")+(this.rows?
"&rows="+this.rows:"")+(this.cols?"&cols="+this.cols:"")+"&ts="+(new Date).getTime()/1E5},render:function(a){var b='<iframe allowtransparency="true" scrolling="no" frameborder="0" height="'+this.getHeight()+'" width="'+this.getWidth()+'" style="width:'+this.getWidth()+"px;height:"+this.getHeight()+'px;" src="'+this.getSrc()+'"></iframe>';a?document.getElementById(a).innerHTML=b:document.write(b)}},pinkoi.embed.config={iframeURL:"http://www.pinkoi.com/embed?",style:{item:{detail:{height:195,width:160,
pad:30},simple:{height:80,width:80,pad:18}},footer:{height:30}}};

