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_160 = new PCMSAD('cmsAD_160');
cmsAD_160.PosID = 160;
cmsAD_160.ADID = 921;
cmsAD_160.ADType = "images";
cmsAD_160.ADName = "西藏雪山";
if(cmsAD_160.ADType == "flash"){
cmsAD_160.fileUrl = "";
}else{
cmsAD_160.fileUrl = "/uploadfile/2014/0828/20140828042815511.jpg";
}
cmsAD_160.ADContent = "{'Images':[{'imgADLinkUrl':'http%3A%2F%2Fwww.cd-pa.com%2Fbbs%2Fforum-83-1.html','imgADAlt':'西藏雪山','ImgPath':'"+cmsAD_160.fileUrl+"'}],'imgADLinkTarget':'New','Count':'1','showAlt':'Y'}";
cmsAD_160.URL = "http://www.cd-pa.com/index.php?m=poster&c=index";
cmsAD_160.SiteID = 1;
cmsAD_160.Width = 1210;
cmsAD_160.Height = 60;
cmsAD_160.UploadFilePath = '';
cmsAD_160.ShowAD();
var isIE=!!window.ActiveXObject;
if (isIE){
if (document.readyState=="complete"){
cmsAD_160.Stat();
} else {
document.onreadystatechange=function(){
if(document.readyState=="complete") cmsAD_160.Stat();
}
}
} else {
cmsAD_160.Stat();
}