//当网页加载完毕，执行它
window.onload = function() {
	//将第一个nav1的strong设置为已选状态
	//在JS里面background-color必须写全，而-又必须让后面的第一个字母大些
	new Marquee2(
    "scroll",  //容器ID<br />
    0,  //向上滚动(0向上 1向下 2向左 3向右)<br />
    2,  //滚动的步长<br />
    158,  //容器可视宽度<br />
    145,  //容器可视高度<br />
    50,  //定时器 数值越小，滚动的速度越快(1000=1秒,建议不小于20)<br />
    0,  //间歇停顿时间(0为不停顿,1000=1秒)<br />
    1000,  //开始时的等待时间(0为不等待,1000=1秒)<br />
   143//间歇滚动间距(可选)<br />
    );
	
	var x = document.getElementById("nav1");
	var x1 = document.getElementById("navcontent1");
	var y1 = document.getElementById("navcontent2");
	var w1 = document.getElementById("navcontent3");
	var q1 = document.getElementById("navcontent4");
	var e1 = document.getElementById("navcontent5");
	x.style.color = "#fff";
	x.style.backgroundImage="url(images/dt_bg2.jpg)";
	
	var y = document.getElementById("nav2");
	var w = document.getElementById("nav3");
	var q = document.getElementById("nav4");
	var e = document.getElementById("nav5");
	
	w.onmouseover = function() {
		w.style.color = "#fff";
		w.style.backgroundImage="url(images/dt_bg2.jpg)";
		x.style.color = "#697f97";
		x.style.backgroundImage="url(images/index_lmbt.jpg)";	
		y.style.color = "#697f97";	
		y.style.backgroundImage="url(images/index_lmbt.jpg)";
		q.style.color = "#697f97";	
		q.style.backgroundImage="url(images/index_lmbt.jpg)";
		e.style.color = "#697f97";	
		e.style.backgroundImage="url(images/index_lmbt.jpg)";
		x1.style.display = "none";
		w1.style.display = "block";
		y1.style.display = "none";
		q1.style.display = "none";
		e1.style.display = "none";
	}	
	y.onmouseover = function() {
		x.style.color = "#697f97";	
		x.style.backgroundImage="url(images/index_lmbt.jpg)";
		y.style.color = "#fff";
		y.style.backgroundImage="url(images/dt_bg2.jpg)";
		w.style.color = "#697f97";	
		w.style.backgroundImage="url(images/index_lmbt.jpg)";
		q.style.color = "#697f97";	
		q.style.backgroundImage="url(images/index_lmbt.jpg)";
		e.style.color = "#697f97";	
		e.style.backgroundImage="url(images/index_lmbt.jpg)";
		x1.style.display = "none";
		y1.style.display = "block";
		w1.style.display = "none";
		q1.style.display = "none";
		e1.style.display = "none";
	}
	
	x.onmouseover = function() {
		y.style.color = "#697f97";
		y.style.backgroundImage="url(images/index_lmbt.jpg)";
		x.style.color = "#fff";
		x.style.backgroundImage="url(images/dt_bg2.jpg)";	
		w.style.color = "#697f97";	
		w.style.backgroundImage="url(images/index_lmbt.jpg)";
		q.style.color = "#697f97";	
		q.style.backgroundImage="url(images/index_lmbt.jpg)";
		e.style.color = "#697f97";	
		e.style.backgroundImage="url(images/index_lmbt.jpg)";
		x1.style.display = "block";
		y1.style.display = "none";
		w1.style.display = "none";
		q1.style.display = "none";
		e1.style.display = "none";
	}
	q.onmouseover = function() {
		y.style.color = "#697f97";
		y.style.backgroundImage="url(images/index_lmbt.jpg)";
		q.style.color = "#fff";
		q.style.backgroundImage="url(images/dt_bg2.jpg)";	
		w.style.color = "#697f97";	
		w.style.backgroundImage="url(images/index_lmbt.jpg)";
		x.style.color = "#697f97";	
		x.style.backgroundImage="url(images/index_lmbt.jpg)";
		e.style.color = "#697f97";	
		e.style.backgroundImage="url(images/index_lmbt.jpg)";
		q1.style.display = "block";
		y1.style.display = "none";
		w1.style.display = "none";
		x1.style.display = "none";
		e1.style.display = "none";
	}
	e.onmouseover = function() {
		y.style.color = "#697f97";
		y.style.backgroundImage="url(images/index_lmbt.jpg)";
		e.style.color = "#fff";
		e.style.backgroundImage="url(images/dt_bg2.jpg)";	
		w.style.color = "#697f97";	
		w.style.backgroundImage="url(images/index_lmbt.jpg)";
		x.style.color = "#697f97";	
		x.style.backgroundImage="url(images/index_lmbt.jpg)";
		q.style.color = "#697f97";	
		q.style.backgroundImage="url(images/index_lmbt.jpg)";
		e1.style.display = "block";
		y1.style.display = "none";
		w1.style.display = "none";
		q1.style.display = "none";
		x1.style.display = "none";
	}


}
