// JavaScript Document


////////////////////////////////函数部份///////////////////////////////////////

// 页面输出策略配置
function fPageWrite(s){
	try{
		if(typeof s == "function"){
			s = s();
		}
		if (s)
		{		
		    if(s==""){
		        s="文件载入中,请稍候...";		
		    }
			document.write(s);
			//return s;
		}
	}catch(e){}
}
// 页面输出策略配置
function fPageWrite2(s){
	try{
		if(typeof s == "function"){
			s = s();
		}
		if (s)
		{		
		    if(s==""){
		        s="文件载入中,请稍候...";		
		    }
			//document.write(s);
			return s;
		}
	}catch(e){}
}

function hh_play(id,totle,conid,classnameid,classname1,classname2)
{
	for(i=0;i<totle;i++)
	{
		document.getElementById(classnameid+i).className=classname2;
		document.getElementById(conid+i).style.display="none";
	}
		document.getElementById(classnameid+id).className=classname1;
		document.getElementById(conid+id).style.display="block";
	
}

//载入函数 other
function play_other_ad()
{
	var t=fIndexdhx();
    insertad("fIndexdhx",fPageWrite2(t.middle+t.middle1+t.middle2),"");
    
    var t=fIndexTop();
    hiddenad("fIndexTop",fPageWrite2(t.middle),"");
    
    //cnzz
    var t=web_pv_counter();
    insertad("pv_counter",fPageWrite(t.middle),"");
}
function play_pv()
{
	var t=web_pv_counter();
    insertad("pv_counter",fPageWrite(t.middle),"");
}
