//***********默认设置定义.*********************
tPopWait=100;//停留tWait豪秒后显示提示。
tPopShow=3000;//显示tShow豪秒后关闭提示
showPopStep=100;//显示提示步幅
coverPopStep=5;//隐去提示步幅
popOpacity=85;//透明度
sPop=null;
curShow=null;
tFadeOut=null;
tFadeIn=null;
tFadeWaiting=null;
var oldDiv=null;
var backarray=new Array("","","","","","","","");
var backimgarray=new Array("","","","","","","","");
function ShowChildMenu(Div_I,classid){
	var OutHTML="";
	var i=0;
	childdiv=eval("menu"+Div_I);
	childback=eval("menutd"+Div_I);
	childlist=eval("Child"+classid);
	childback.style.backgroundColor=backarray[Div_I];
	if (oldDiv!=null) oldDiv.style.visibility="hidden";
	if (childlist.length>0){
		clearTimeout(curShow);
		clearTimeout(tFadeOut);
		clearTimeout(tFadeIn);
		clearTimeout(tFadeWaiting);
		var tablewidth=0
		while (childlist[i]!=null){
			tablewidth+=childlist[i].length
			i+=2
		}
		tablewidth+=i
		tablewidth*=4
		tablewidth+=100
		i=0
		OutHTML="<table border='0' cellpadding='0' cellspacing='0' width='"+tablewidth+"'><tr><td width='15'><img src='images/child_01.gif' width='15' height='9'></td><td background='images/child_03.gif'><img src='images/child_02.gif' width='59' height='9'></td><td width='15'><img src='images/child_05.gif' width='15' height='9'></td></tr><tr><td><img src='images/child_06.jpg' width='15' height='22'></td><td bgcolor='#00254a'>"
		while (childlist[i]!=null){
			OutHTML=OutHTML+"<a href='"+childlist[i+1]+"' class='classlink0'>-&nbsp;"+childlist[i]+"&nbsp;</a>";
			i+=2;
		}
		OutHTML=OutHTML+"</td><td><img src='images/child_08.jpg' width='15' height='22'></td></tr><tr><td><img src='images/child_09.jpg' width='15' height='6'></td><td background='images/child_11.jpg'></td><td><img src='images/child_13.jpg' width='15' height='6'></td></tr></table>"
		childdiv.innerHTML=OutHTML;
		curShow=setTimeout("showIt(childdiv)",tPopWait);
	}else{
		childdiv.innerHTML="";
		childdiv.style.filter="Alpha()";
		childdiv.filters.Alpha.opacity=0;
	}
	oldDiv=childdiv;
}
function ShowLeftChildMenu(Div_I,classid){
	var OutHTML="";
	var i=0;
	childdiv=eval("leftmenu"+Div_I);
	childback=eval("leftmenutd"+Div_I);
	childlist=eval("Child"+classid);
	if (oldDiv!=null) oldDiv.style.visibility="hidden";
	if (childlist.length>0){
		clearTimeout(curShow);
		clearTimeout(tFadeOut);
		clearTimeout(tFadeIn);
		clearTimeout(tFadeWaiting);
		OutHTML="<table width='100%' border='0' cellpadding='0' cellspacing='0'>"
		while (childlist[i]!=null){
			OutHTML=OutHTML+"<tr><td height=30 align=center><a href='"+childlist[i+1]+"' class='ChildMenu'>"+childlist[i]+"</a></td></tr>";
			i+=2;
		}
		OutHTML=OutHTML+"</table>"
		childdiv.innerHTML=OutHTML;
		curShow=setTimeout("showIt(childdiv)",tPopWait);
	}else{
		childdiv.innerHTML="";
		childdiv.style.filter="Alpha()";
		childdiv.filters.Alpha.opacity=0;
	}
	oldDiv=childdiv;
}
function HiddenChildMenu(Div_I){
	childdiv=eval("menu"+Div_I);
	childback=eval("menutd"+Div_I);
	childback.style.backgroundColor="";
	tFadeIn=setTimeout("fadeIn(childdiv)",1000);
}
function HiddenLeftChildMenu(Div_I){
	childdiv=eval("leftmenu"+Div_I);
	tFadeIn=setTimeout("fadeIn(childdiv)",1000);
}
function showIt(childdiv){
	childdiv.style.filter="Alpha(Opacity=0)";
	childdiv.style.visibility="visible";
	fadeOut(childdiv);
}
function fadeOut(childdiv){
	if(childdiv.filters.Alpha.opacity<popOpacity) {
		childdiv.filters.Alpha.opacity+=showPopStep;
		tFadeOut=setTimeout("fadeOut(childdiv)",1);
	}
	else{
		childdiv.filters.Alpha.opacity=popOpacity;
	}	
}
function fadeIn(childdiv){
	if(childdiv.filters.Alpha.opacity>0) {
		childdiv.filters.Alpha.opacity-=coverPopStep;
		tFadeIn=setTimeout("fadeIn(childdiv)",1);
	}else{
		childdiv.style.visibility="hidden";
	}
}
function OverShowMenu(){
	clearTimeout(tFadeIn);
	if (oldDiv!=null){
	oldDiv.style.visibility="visible";
	oldDiv.filters.Alpha.opacity=popOpacity;
	}
}

