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://www.cd-pa.com/index.php?m=poster&c=index&a=show&siteid="+this.SiteID+"&spaceid="+this.ADID+"&id="+this.PosID;
document.body.appendChild(new_element);
}
function showADContent() {
var content = this.ADContent;
var str = "";
var AD = eval('('+content+')');
if (this.ADType == "images") {
str += "";
str += "";
str += "";
}else if(this.ADType == "flash"){
str += "";
}
str += "";
document.write(str);
}
var cmsAD_158 = new PCMSAD('cmsAD_158');
cmsAD_158.PosID = 158;
cmsAD_158.ADID = 1102;
cmsAD_158.ADType = "images";
cmsAD_158.ADName = "摄影周";
if(cmsAD_158.ADType == "flash"){
cmsAD_158.fileUrl = "";
}else{
cmsAD_158.fileUrl = "http://www.cd-pa.com/uploadfile/2020/0702/20200702091457372.jpg";
}
cmsAD_158.ADContent = "{'Images':[{'imgADLinkUrl':'http%3A%2F%2Fwww.cd-pa.com%2Fshow-734-2440-1.html','imgADAlt':'','ImgPath':'"+cmsAD_158.fileUrl+"'}],'imgADLinkTarget':'New','Count':'1','showAlt':'Y'}";
cmsAD_158.URL = "http://www.cd-pa.com/index.php?m=poster&c=index";
cmsAD_158.SiteID = 1;
cmsAD_158.Width = 1210;
cmsAD_158.Height = 60;
cmsAD_158.UploadFilePath = '';
cmsAD_158.ShowAD();
var isIE=!!window.ActiveXObject;
if (isIE){
if (document.readyState=="complete"){
cmsAD_158.Stat();
} else {
document.onreadystatechange=function(){
if(document.readyState=="complete") cmsAD_158.Stat();
}
}
} else {
cmsAD_158.Stat();
}