bit.ad={
	buildHtml:function(con,close){
		var str='';
		if(con.type=='image'){
			str='<a href="'+con.link+'" target="_blank"><img src="'+con.url+'" style="border:none; width:'+con.width+'px;height:'+con.height+'px"/></a>'+col;
		}else{
			str+='<object id="iePlayer" name="testF"   classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,18,0" width="'+con.width+'" height="'+con.height+'">';
			str+='  <param name="movie" value="'+con.url+'" />';
			str+='  <param name="allowFullScreen" value="true" />';
			str+='  <param value="transparent" name="wmode"/>';
			str+='  <param name="quality" value="high" />';
			str+='  <embed src="'+con.url+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+con.width+'" height="'+con.height+'" type="application/x-shockwave-flash" wmode="transparent" id="fireFoxPlayer" name="publisher" allowFullScreen="true" quality="high"></embed>';
			str+='</object>';
			
		}
		return str;
	}
	,roll:function(id,top){
		var base=bit.base;
		var obj=base.$(id);
		var space=top+base.documentElement('scrollTop'),objTop=parseInt(base.style(obj).top),pro=this,a;
		if(objTop<space){
			a=(space-objTop)*0.01;
			obj.style.top=objTop+a*20+'px';
		}else if(objTop>space){
			a=(objTop-space)*0.01;
			obj.style.top=objTop-a*20+'px';
		}
		setTimeout(function(){pro.roll(id,top)},10);
	}
};

bit.ad.coupletAd={
	retData:function(url,type,width,height,link){return {'url':url,'type':type,'width':width,'height':height,'link':link};}
	,load:function(id,con,close,roll,top,type){
		var str=bit.ad.buildHtml(con,close);
		var obj=bit.base.$(id);
		obj.innerHTML=str;
		if(type=='left'){
			obj.style.left='0px';
		}else{
			obj.style.left=(bit.base.documentElement('clientWidth')-con.width-(document.all?0:20))+'px';
		}
		if(roll){bit.ad.roll(id,top);}
	}
};