var AdvIndex={
	AdvTemp:null,
	Current:0,
	LinkList:[{"href1":"/Register/Wizard.aspx?type=0&entrance=homepage","href2":"/Protocol/index.htm","class1":"RegIndex","class2":"SearchSnda","Img":"common/images/NewIadv1.jpg"},
			  {"href1":"http://fwjl.esales.sdo.com/SplitIntro.aspx","href2":"/GuideIndex.aspx?key=jinhuo","class1":"FenIndex","class2":"JinIndex","Img":"common/images/NewIadv2.jpg"},
			  {"href1":"/Register/Wizard.aspx?type=0&entrance=homepage","href2":"/NewPlayer/PlayerIndex.html","class1":"RedIndex","class2":"PlayerIndex","Img":"common/images/NewIadv3.jpg"}],	
	Init:function(){
		var target=document.getElementById("LinkBar").getElementsByTagName("a");
		for (var i=0;i<target.length;i++)
		{
			target[i].onmouseover=new Function("AdvIndex.ShowImg("+i+")");	
		}
		this.AdvTemp=setTimeout("AdvIndex.TimerStart("+target.length+")",5000);
	},
	TimerStart:function(l)
	{
		if (this.Current>=(l-1))
			this.Current=0;
		else
			this.Current+=1;
			
		this.ShowImg(this.Current);
		this.AdvTemp=setTimeout("AdvIndex.TimerStart("+l+")",5000);
	},
	ShowImg:function(num)
	{
		var target=document.getElementById("LinkBar").getElementsByTagName("a");
		for (var i=0;i<target.length;i++)
		{
			target[i].className="";
		}
		target[num].className="now";
		this.SetLinkImg(num);
		this.Current=num;
	},
	SetLinkImg:function(num)
	{
		var Obj=this.LinkList[num];
		var Link1=document.getElementById("Btn1");
		var Link2=document.getElementById("Btn2");
		var Img=document.getElementById("ImgForm");
		Img.src=Obj["Img"];
		Link1.className=Obj["class1"];
		Link2.className=Obj["class2"];
		Link1.href=Obj["href1"];
		Link2.href=Obj["href2"];
	}
}