
/*
	sta：起始位置
	aid：广告位置ID
*/

function bannerADturn(sta,aid){
	if(sta!=-1)eval('bannerADstat'+aid+' = '+sta);
	var CurrT = eval('bannerADstat'+aid);
	document.getElementById('lundiv'+aid).innerHTML = eval('lun'+aid+'[bannerADstat'+aid+']');

	if (eval('bannerADstat'+aid+' == lun'+aid+'.length-1')){
		eval('bannerADstat'+aid+' =0');
	}else{
		eval('bannerADstat'+aid+'++');
	}
	setTimeout(_bannerADturn(-1,aid),eval('luntime'+aid+'['+CurrT+']'));

}

function _bannerADturn(_sta,_aid){
	return function(){
	   bannerADturn(_sta,_aid);
	}
}

//新的轮换广告
function bannerADturnNew(sta,aid){
	if(sta!=-1)eval('bannerADstat'+aid+' = '+sta);
	var CurrT = eval('bannerADstat'+aid);
	//document.getElementById('lundiv'+aid).innerHTML = eval('lun'+aid+'[bannerADstat'+aid+']');
	//alert(CurrT);
	var curraid = eval("lun"+aid);
	//alert(curraid.length);
	//alert('lundiv'+aid+'_'+CurrT);
	
	document.getElementById('lundiv'+aid+'_'+CurrT).style.display="";	
	for (sta_other=0;sta_other<=curraid.length-1;sta_other++){
	
		if (sta_other != CurrT){
			document.getElementById('lundiv'+aid+'_'+sta_other).style.display="none";	
			//alert('lundiv'+aid+'_'+sta_other);
		}
	}

	if (eval('bannerADstat'+aid+' == lun'+aid+'.length-1')){
		//document.getElementById('lundiv'+aid+'_'+sta).style.display="";
		
		eval('bannerADstat'+aid+' =0');
	}else{
		eval('bannerADstat'+aid+'++');
	}
	setTimeout(_bannerADturnNew(-1,aid),eval('luntime'+aid+'['+CurrT+']'));

}

function _bannerADturnNew(_sta,_aid){
	return function(){
	   bannerADturnNew(_sta,_aid);
	}
}

document.write('<script>var bannerADstat192 = 0;var lun192 = new Array();var luntime192 = Array(6000,9000,6000,6000);/*和下面广告数目对应*/lun192[0]=\'<a href=\"http://fz.voc.com.cn/www/8/2010-02/33485.html\" target=_blank><img src=\"http://fz.voc.com.cn/ad/20110322/f1.jpg\" border=0 width=\"960\" height=\"100\"></a>\';lun192[1]=\'<a href=\"http://fz.voc.com.cn/www/8/2010-02/33486.html\" target=_blank><img src=\"http://fz.voc.com.cn/ad/20110322/f2.jpg\" border=0 width=\"960\" height=\"100\"></a>\';document.write(\'<div id=\"lundiv192_0\">\'+lun192[0]+\'</div>\');document.write(\'<div id=\"lundiv192_1\" style=\"display:none;\">\'+lun192[1]+\'</div>\');bannerADturnNew(0,192);</script>');
