function headHTML()
{
	document.write('<tr>');
	document.write('<td><IMG SRC=\"img/pmtop.jpg\"></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('	<td style=\"background:url(images/nav_4.gif); height:25px;text-align:center;\">');
	document.write('		<a href=\"index.asp">首页</a> ┊ ');
	document.write('		<a href=\"show.asp?newsid=1312\">学校概况</a> ┊ ');
	document.write('<a href="show.asp?newsid=1234" class="c-f">师资团队 </a> ┊ ');
	document.write('		<a href=\"list.asp?ClassID=2\">招生信息</a> ┊ ');
	document.write('		<a href="list.asp?ClassID=5" class="c-f"> 中财快讯 </a> ┊ ');
	document.write('		<a href=\"list.asp?ClassID=6\">教学公告</a> ┊ ');
	
	document.write('		<a href=\"list.asp?ClassID=5\">中财快讯</a> ┊ ');
	document.write('         <a href="list.asp?classid=73" class="c-f"> 班级风采</a> | ');
	document.write('        <a href="http://bbs.zncd.com" target="_blank" class="c-f">班级论坛 </a> | ');
	document.write('		<a href=\"zyfzzxjj.asp\">职业发展</a> ┊ ');
	document.write('        <a href="cooperation-index.asp" class="c-f"> 校企合作</a> | ');
	document.write('		<a href=\"baoming.asp\">在线报名</a> ┊ ');
	document.write('		<a href=\"zlxz.asp\">教学管理</a> ┊ ');
	document.write('		<a href=\"show.asp?newsid=913\">联系我们</a>');
	document.write('	</td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('	<td><IMG SRC=\"images/zncjzfdx_5.gif\" width=\"964\" height=\"5\" alt=\"\"></td>');
	document.write('</tr>');
}


var FocusPic=function(BigPicID,SmallPicsID,TitleID,DescriptionID)
{
	this.Data=[];
	this.ImgLoad=[];
	this.TimeOut=20000;
	var adNum=0,TimeOutObj;
			
	if(!FocusPic.childs)
	{
		FocusPic.childs=[];
	};
			
	this.ID=FocusPic.childs.push(this)-1;

	this.Add=function(BigPic,Title,Url,Description)
	{
		var ls;
		this.Data.push([BigPic,Title,Url,Description]);
		ls=this.ImgLoad.length;
		this.ImgLoad.push(new Image);
		this.ImgLoad[ls].src=BigPic;
	};

	this.TimeOutBegin=function()
	{
		clearInterval(TimeOutObj);
		TimeOutObj=setInterval("FocusPic.childs["+this.ID+"].next()",this.TimeOut);
	};
			
	this.TimeOutEnd=function()
	{
		clearInterval(TimeOutObj);
	};
			
	this.select=function(num)
	{
		if(num>this.Data.length-1)
		{return};
		this.TimeOutBegin();
		this.adNum=num;
		if(BigPicID)
		{
			if(this.$(BigPicID))
			{
				var aObj=this.$(BigPicID).getElementsByTagName("a")[0],
				aImg=this.$(BigPicID).getElementsByTagName("img")[0];
				
				/*
				if(aImg.filters)
				{
					aImg.filters.revealTrans.Transition=23;
					aImg.filters.revealTrans.apply();
					aImg.filters.revealTrans.play();
				}
				*/
					
				aObj.href=this.Data[num][2];
				aImg.alt=this.Data[num][1];
				aImg.src=this.Data[num][0];
			}
		};
			
	
		if(TitleID)
		{
			if(this.$(TitleID))
			{
				this.$(TitleID).innerHTML='<a href="'+this.Data[num][2]+'" target="_blank">'+this.Data[num][1]+'</a>';
			}
		};
		
				
		if(DescriptionID)
		{
			if(this.$(DescriptionID))
			{
				this.$(DescriptionID).innerHTML=this.Data[num][3]+'<a href="'+this.Data[num][2]+'"><img src="/images/more.jpg" border="0" align="absmiddle"/></a>';
			}
		};
			
		if(SmallPicsID)
		{
			if(this.$(SmallPicsID))
			{
				var sImg=this.$(SmallPicsID).getElementsByTagName("span"),i;
				for(i=0;i<sImg.length;i++)
				{
					if(i==num)
					{
						sImg[i].className="selected";
					}
					else
					{
						sImg[i].className="";
					}
				}
			}
		}
	};
			
	this.next=function()
	{
		var temp=this.adNum;
		temp++;
		if(temp>=this.Data.length)
		{
			temp=0;
		};
		this.select(temp);
	};

	this.MInStopEvent=function(ObjID)
	{
		if(ObjID)
		{
			if(this.$(ObjID))
			{
				if(this.$(ObjID).attachEvent)
				{
					this.$(ObjID).attachEvent("onmouseover",Function("FocusPic.childs["+this.ID+"].TimeOutEnd()"));
					this.$(ObjID).attachEvent("onmouseout",Function("FocusPic.childs["+this.ID+"].TimeOutBegin()"));
				}
				else
				{
					this.$(ObjID).addEventListener("mouseover",Function("FocusPic.childs["+this.ID+"].TimeOutEnd()"),false);
					this.$(ObjID).addEventListener("mouseout",Function("FocusPic.childs["+this.ID+"].TimeOutBegin()"),false);
				}
			}
		}
	};
			
	this.begin=function()
	{
		this.MInStopEvent(TitleID);
		this.MInStopEvent(SmallPicsID);
		this.MInStopEvent(BigPicID);
		if(SmallPicsID)
		{
			if(this.$(SmallPicsID))
			{
				var i=0,temp="";
				for(i=0;i<this.Data.length;i++)
				{
					temp+='<span style="float:left;"><a href="'+this.Data[i][2]+'" target="_blank"><img src="/images/no'+eval(i+1)+'.gif" border=\"0\" onmouseover="FocusPic.childs['+this.ID+'].select('+i+')" alt="'+this.Data[i][1]+'"/></a></span>'};
					this.$(SmallPicsID).innerHTML=temp
				}
			};
			this.select(0)
		};
		
		this.$=function(objName)
		{
			if(document.getElementById)
			{
				return eval('document.getElementById("'+objName+'")');
			}
			else
			{
				return eval('document.all.'+objName);
			}
		}
	}
