if(!window.adLoad2)(function(){
	var adPrefix='ad2_';
	var adCounter=0;
	var adData=[];
	window.adLoad2=function(a,b){
		var c=document.getElementById(adPrefix+a);
		var d=adData[a];
		if(!c||!b.length)return;
		var e=[],f=[];
		for(var i=0;i<b.length;i++){
			var p=b[i].split('|');
			f.push(p[0]);
			e.push(p[1]);
		}
		adShow(c,d.width,d.height,f,e,d.target,4000)
	};
	onReady(adInit);
	window.adLoad2_inline=function(a,b,c){
		var d='ad2i_'+Math.random().toString().substr(2,5);
		document.write('<div id="'+d+'" style="width:'+a+'px;height:'+b+'px"></div>');
		var e=[],f=[];
		for(var i=0;i<c.length;i++){
			var t=c[i].split('|');
			e.push(t[0]);
			f.push(t[1]);
		}
		onReady(function(){adShow(document.getElementById(d),a,b,e,f,'_self',4000)})
	};
	function onReady(a){
		if(window.attachEvent)window.attachEvent('onload',a);
		else window.addEventListener('load',a,false)
	}
	function adInit(){
		var a=document.getElementsByTagName("head")[0];
		for(var i=0;i<adData.length;i++){
			var b=document.createElement("script");
			b.type="text/javascript";
			b.src=adData[i].url+'&adid='+adData[i].id;
			a.appendChild(b)
		}
	}
})();
function adShow(c,d,e,f,g,h,j){
	var k=-1,l=0,m=0,o=0,p=0,q=0;
	var r=document.createElement('a');
	var s=f.length,t=0;
	var u=new Array(s),v=new Array(s);
	for(var i=0;i<f.length;i++){
		v[i]=document.createElement('div');
		v[i].style.cssText='top:'+(e-(15+1))+'px;left:'+(5+(27+1)*i+1)+'px;display:none;z-index:3;width:27px;height:15px;font:bold 11px/16px arial;color:#ffffff;background-color:#C0C0C0;text-align:center;position:absolute;cursor:pointer';
		v[i].innerHTML=i+1;
		v[i]._index=i;
		v[i].onclick=click;
		r.appendChild(v[i]);
		u[i]=document.createElement('img');
		u[i].style.cssText='width:'+d+'px;height:'+e+'px;left:0;top:0;border:none;display:none;position:absolute;filter:alpha(opacity=100)';
		u[i].onload=load;
		u[i].src=g[i];
		r.appendChild(u[i]);
	}
	r.style.cssText='display:block;position:relative;text-decoration:none';
	r.target=h;
	c.style.textAlign='left';
	c.appendChild(r);
	u[0].style.display='block';
	function load(){
		this.onload=null;
		if(s<2||++t!=s)return;
		for(var i=0;i<s;i++){
			v[i].style.display='block';
		}
		setCurrent(0)
	}
	function click(a){
		if(q!=this._index){
			clearInterval(l);
			clearTimeout(m);
			animate(this._index)
		}
		r.blur();
		return false
	}
	function animate(a){
		setForeBack(k,a);
		l=setInterval(function(){
			setAlpha(o-3);
			if(o>=70&&o<73)setCurrent(a);
			else if(o==0)clearInterval(l)
		},15)
	}
	function setForeBack(a,b){
		u[p].style.display='none';
		u[q].style.display='none';
		p=a;
		q=b;
		setAlpha(100);
		setAlpha(100,u[q]);
		with(u[p].style){
			display='block';
			zIndex=2
		}
		with(u[q].style){
			display='block';
			zIndex=1
		}
	}
	function setAlpha(n,a){
		o=n<0?0:n;
		a=a||u[p];
		if(a.filters)a.filters[0].opacity=o;
		else a.style.opacity=o/100
	}

	function setCurrent(a){
		if(k==a)return;
		if(k>=0){
			v[k].style.backgroundColor='#C0C0C0';
		}
		k=a;
		v[k].style.backgroundColor='#000000';
		r.href=f[k];
		m=setTimeout(function(){animate((k+1)%s)},4000)
	}
}