showCpv = {
	/*广告得显示在同一行, / 要改为 \/ 进行转义 防止语法错误,*/
	ad : new Array(
        '<script src=\"http:\/\/u.1133.cc\/showpage.php?pid=118817&show_t=2\" language=\"javascript\"><\/script>',
	'<SCRIPT LANGUAGE=JavaScript1.1 SRC=\'http:\/\/play.unionsky.cn\/show\/?placeID=108985\'><\/SCRIPT>'
       ),
	o:function(i){return document.getElementById(i);},
	show:function(e){
		num = this.getCookie('cpv') - 0;
		if(num >= this.ad.length)
		{
			num = 0;
		}
		//document.getElementById(e).innerHTML= this.ad[num];
		document.write(this.ad[num]);
		this.addCookie('cpv', ++num, 1);
	},
	addCookie:function (name,value,expireHours)
	{
		var cookieString=name+"="+escape(value);
		if(expireHours>0)
		{
			var date=new Date();
			date.setTime(date.getTime+expireHours*3600*1000);
			cookieString=cookieString+"; expire="+date.toGMTString();
		}
		document.cookie=cookieString;
	},		
	getCookie:function (name){
		var strCookie=document.cookie;
		var arrCookie=strCookie.split("; ");
		for(var i=0;i<arrCookie.length;i++){
			var arr=arrCookie[i].split("=");
			if(arr[0]==name)return arr[1];
		}
		return "";
	}
};
document.write('<div id="ad">&nbsp<\/div>');
showCpv.show('ad');