function ad(url,img,width,height,style,company)//url 链接地址，img 图片地址，width 长度，height 高度，style 广告格式：1表示图片，2表示FLASH,公司名
{
if (style==2){
var weburl="http://www.c-ps.net";
function alysxc(u,w,h,p,d,c,b,i,r,a,company){//2.0.3
var o=document.getElementById(d),ad;p=(!p)?'Transparent':'Opaque';
ad='<object id="flashgame" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0" width="'+w+'" height="'+h+'"><param name="movie" value="'+c+u+'"><param name="wmode" value="'+p+'"><embed src="'+c+u+'" width="'+w+'" height="'+h+'" wmode="'+p+'" TYPE="application/x-shockwave-flash" scale="exactfit"></embed></object>';
o.innerHTML=(!i)?'<div style="position:relative;Z-INDEX:1;width:'+w+'px;height:'+h+'px"  title=\"'+company+'\"><DIV style="position:absolute;left:0;top:0;Z-INDEX:2;width:'+w+'px;height:'+h+'px">'+ad+'</div><a href="'+a+'" target="_blank"><IMG SRC="'+c+'/ADshow.gif" style="position:absolute;left:'+((r)?r[3]:0)+'px;top:'+((r)?r[0]:0)+'px;Z-INDEX:3;width:'+((r)?(w-r[1]-r[3]):w)+'px;height:'+((r)?(h-r[0]-r[2]):h)+'px" border=0></a></div>':ad;
return d;}
function alysxcf(u,w,h,p){
	if(!p)p=0;var d="xc"+Math.ceil(Math.random()*1000000);
	document.write("<div id=\""+d+"\"></div>"); 
	alysxc(u,w,h,p,d,weburl,"1248808053018405362",0,0,url,company);}
	alysxcf(img,width,height); }
	if (style==1){document.write("<a href="+url+"><img src=\"http://www.c-ps.net"+img+"\" width=\""+width+"\" height=\""+height+"\" border=\"0\" title=\""+company+"\"/></a>");
}
}

//拉屏广告
function FullScreen(){
document.write("<div class=\"container\" id=\"full\"><a href=\"http://www.c-ps.net\"><img src=\"image/ad/Full_980x450.gif\" border=\"0\"></a></div>");	
}
function CloseFullScreen(){
	document.getElementById("full").style.display="none";
}
