function cpm_start(a,b){var c="kxcpmdiv";if(!$j("#"+c)||!$j("#"+c).length){c=typeof a=="undefined"||a.length==0?"kxcpmdiv":"kxcpmdiv_"+a;if(!$j("#"+c)||!$j("#"+c).length)document.writeln('<div id="'+c+'" style="display:none;"></div>')}var d={};if(typeof b!="undefined")d.id=encodeURIComponent(b);if(typeof a!="undefined")d["class"]=encodeURIComponent(a);d.r=Math.random();$j.post("/interface/i.php",d,function(e){cpm_startShow(e,a,c)},"json")}
function cpm_startShow(a,b,c){if(a.id){cpmcode[b]=a.code;var d=a.zan?a.zan:"";if(a.src)$j("#"+c).html('<iframe id="kxcpmiframe_'+b+'" name="kxcpmiframe_'+b+'" frameborder=0 scrolling=no style="width:'+a.width+"px;height:"+a.height+'px;" src="'+a.src+'"></iframe>'+d);else window.frames["kxcpmiframe_"+b]?init_cpmframe(b):$j("#"+c).html('<iframe id="kxcpmiframe_'+b+'" name="kxcpmiframe_'+b+'" frameborder=0 scrolling=no style="width:'+a.width+"px;height:"+a.height+'px;" src="/interface/cpmblank.php" onload="init_cpmframe(\''+
b+"')\"></iframe>"+d);s(c)}if(typeof cpm_endload=="function")cpm_endload(b,a.id?a.id:0)}function init_cpmframe(a){if(!cpminit[a]){cpminit[a]=1;var b=window.frames["kxcpmiframe_"+a];try{var c=b.document;b='<link href="http://s.kaixin001.com.cn/css/kxcommon.css" rel="stylesheet" type="text/css" />';b+='<script type="text/javascript">document.domain="kaixin001.com";<\/script>';b+=cpmcode[a];c.open("text/html","replace");c.write(b);c.close()}catch(d){}}}
function cpm_clickIt(a,b){var c="";c=a.srcElement?a.srcElement.tagName:a.target.tagName;c.toUpperCase();c==""||c=="BODY"||$j.get("/interface/cpm.php",{id:b,r:Math.random()})}function cpm_close(a){$j.get("/interface/cpm_close.php",{id:a})}function cpm_like(a,b){$j.get("/interface/cpm_like.php",{id:a,like:b})}
function cpm_initload(a){if(typeof a=="undefined")a=cpm_class;if(typeof a=="undefined")cpm_start("");else{a=a.split(",");for(var b=(cpm_id+"").split(","),c=a.length,d=0;d<c;d++)cpm_start(a[d],b[d])}}function cpm_reload(a){cpmcode={};cpminit={};cpm_initload(a)}if(typeof cpmcode=="undefined")var cpmcode={},cpminit={};cpm_initload();

