/*
名称：Javascript动态提示框
作者：洪泽华
调用：
时间：2007年10月3日
*/
function ShowMenuList(Leftpx,MName,MID){
var ListBody;
var DivObj=document.getElementById("menulist");
DivObj.style.LEFT=Leftpx+"px";
DivObj.style.display="inline";
var ListArray = MName.split(",");
var ListID=MID.split(",");
var i,MenuList;
MenuList="<a href=ShowNewsMore.aspx?id="+ListID[0]+">"+ListArray[0]+"</a>";
for(i=1;i<ListArray.length;i++)
{
MenuList=MenuList+"·<a href=ShowNewsMore.aspx?id="+ListID[i]+" onclick='ReMove()'>"+ListArray[i]+"</a>";
}
var BodyWidth;
BodyWidth=(MName.length+i/2)*11;//PADDING-LEFT
ListBody="<div id=menulist style='PADDING-LEFT:"+Leftpx+";'><table width='"+(BodyWidth+9+10)+"' height='21' border='0' cellpadding='0' cellspacing='0'><tr>";
ListBody=ListBody+"<td width='9'><img src='images/Skin/1/DH_List_Left.png' width='9' height='21' /></td>";
ListBody=ListBody+"<td width='"+BodyWidth+"' background='images/Skin/1/DH_List_BG.png'>"+MenuList+"</td>";
ListBody=ListBody+"<td width='10'><img src='images/Skin/1/DH_List_Right.png' width='9' height='21' /></td>";
ListBody=ListBody+"</tr></table>";
DivObj.innerHTML=ListBody;
}
function ReMove(){
var DivObj=document.getElementById("menulist");
DivObj.innerHTML="";
}
function TC(str){
document.getElementById("NewsConten").style.font.size=str;
}
		function ShowLoading(msg){
			LoadBody="<table width='242' height='45' border='0' cellpadding='0' cellspacing='0' background='Images/Balloon.gif'><tr><td valign='middle'><table width='225' height='13' border='0' cellpadding='0' cellspacing='0'><tr><td height='4' colspan='4'></tr><tr><td width='11'>&nbsp;</td><td width='22' valign='middle'><img src='Images/ing.gif' width='16' height='16' id='Loading_img' /></td><td width='150'><div align='left' id='msg_b'>"+msg+"</div></td><td width='42'>&nbsp;</td></tr></table></td></tr></table>";
			//LoadBody="<table width='300' height='45' border='0' cellpadding='0' cellspacing='0' background='Images/BalloonA.gif'><tr><td><table width='250' height='13' align='left' border='0' cellpadding='0' cellspacing='0'><tr><td height='4' colspan='3'></td></tr><tr><td width='12'>&nbsp;</td><td width='20' valign='middle'><img src='Images/ing.gif' width='16' height='16' id='Loading_img' /></td><td width='218' align='left'><div align='left' id='msg_b'>"+msg+"</div></td></tr></table></td></tr></table>"
			var ThisLoading=document.createElement("div")
			ThisLoading.setAttribute("id","LoadingMsg");
			ThisLoading.setAttribute("align","center");
	    	ThisLoading.style.position = "absolute";
            ThisLoading.style.left = "50%";
            ThisLoading.style.top = "50%";
            ThisLoading.style.marginLeft = "-121px" ;
            ThisLoading.style.marginTop = -75+document.documentElement.scrollTop+"px";
            ThisLoading.style.width = "242px";
            ThisLoading.style.height = "45px";
            ThisLoading.style.textAlign = "center";
            ThisLoading.style.zIndex = "10001";	
			ThisLoading.innerHTML=LoadBody;
			document.body.appendChild(ThisLoading);
		}
		function ReMoveThisLoading(){
			var ThisLoading=document.getElementById("LoadingMsg");
			document.body.removeChild(ThisLoading);
		}
function TheReadyState(){
if (document.readyState=="complete")
{
        ReMoveThisLoading();
        ThisPageBody.style.display="inline";
}
else
{
		ShowLoading("页面加载中，请稍候...");
		document.onreadystatechange = function()
        {
           
                if (document.readyState == "complete")
                {
                        ReMoveThisLoading();
                        ThisPageBody.style.display="inline";
                }
        }

}}