function pcmsad(pid) {
this.id = pid;
this.posid = 0;
this.adid = 0;
this.adtype = "";
this.adname = "";
this.adcontent = "";
this.paddingleft = 0;
this.paddingtop = 0;
this.wspaceidth = 0;
this.height = 0;
this.ishitcount = "n";
this.uploadfilepath = "";
this.url = "";
this.siteid = 0;
this.showad = showadcontent;
this.stat = statad;
}
function statad() {
var new_element = document.createelement("script");
new_element.type = "text/javascript";
new_element.src="http://baimayi.gotoip1.com/index.php?m=poster&c=index&a=show&siteid="+this.siteid+"&id="+this.adid+"&spaceid="+this.posid;
document.body.appendchild(new_element);
}
function showadcontent() {
var content = this.adcontent;
var str = "";
var ad = eval('('+content+')');
if (this.adtype == "images") {
if (ad.images[0].imgadlinkurl) str += "";
str += "";
if (ad.images[0].imgadlinkurl) str += "";
}else if(this.adtype == "flash"){
str += "";
}
str += "";
document.write(str);
}
var cmsad_11 = new pcmsad('cmsad_11');
cmsad_11.posid = 11;
cmsad_11.adid = 11;
cmsad_11.adtype = "flash";
cmsad_11.adname = "网站顶部flash";
cmsad_11.adcontent = "{'images':[{'imgadlinkurl':'','imgadalt':'','imgpath':'/images/banner.swf'}],'imgadlinktarget':'new','count':'1','showalt':'y'}";
cmsad_11.url = "http://baimayi.gotoip1.com/index.php?m=poster&c=index";
cmsad_11.siteid = 1;
cmsad_11.width = 1000;
cmsad_11.height = 284;
cmsad_11.uploadfilepath = '';
cmsad_11.showad();
var isie=!!window.activexobject;
if (isie){
if (document.readystate=="complete"){
cmsad_11.stat();
} else {
document.onreadystatechange=function(){
if(document.readystate=="complete") cmsad_11.stat();
}
}
} else {
cmsad_11.stat();
}