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_161 = new PCMSAD('cmsAD_161');
cmsAD_161.PosID = 161;
cmsAD_161.ADID = 1063;
cmsAD_161.ADType = "images";
cmsAD_161.ADName = "首页头部logo右侧";
if(cmsAD_161.ADType == "flash"){
cmsAD_161.fileUrl = "";
}else{
cmsAD_161.fileUrl = "http://www.cd-pa.com/uploadfile/2023/0727/20230727071716234.jpg";
}
cmsAD_161.ADContent = "{'Images':[{'imgADLinkUrl':'http%3A%2F%2Fwww.cd-pa.com%2Fbbs%2Fforum-83-1.html','imgADAlt':'协会活动-摄影创作团线路专区','ImgPath':'"+cmsAD_161.fileUrl+"'}],'imgADLinkTarget':'New','Count':'1','showAlt':'Y'}";
cmsAD_161.URL = "http://www.cd-pa.com/index.php?m=poster&c=index";
cmsAD_161.SiteID = 1;
cmsAD_161.Width = 800;
cmsAD_161.Height = 100;
cmsAD_161.UploadFilePath = '';
cmsAD_161.ShowAD();
var isIE=!!window.ActiveXObject;
if (isIE){
if (document.readyState=="complete"){
cmsAD_161.Stat();
} else {
document.onreadystatechange=function(){
if(document.readyState=="complete") cmsAD_161.Stat();
}
}
} else {
cmsAD_161.Stat();
}