function changeMc(x,y){
// x是当前显示的层 y是即将显示的层
 document.getElementById(x).style.display = "none"
 document.getElementById(y).style.display = "block"
}

function SchFocus(str,n) {
	if(n==0&&str.value=="搜索本站信息")str.value="";
	if(n==1&&str.value=="")str.value="搜索本站信息";
}

function show(id) {
var divid = document.getElementById(id)   //获得指定ID值的对象
if (divid.style.display == 'none') {   //block是默认值为显示,none为隐藏
   divid.style.display   = ''; 
} else {
     divid.style.display   = 'none';
     
   }
}
function hide(id) {
divid = document.getElementById(id)   //获得指定ID值的对象
divid.style.display   = 'none';
}

function showAlway(id){
    document.getElementById(id).style.display='';
}

function startmarquee(lh,speed,delay,index) {
	var t;
	var p=false;
	var o=document.getElementById("marqueebox"+index);
	o.innerHTML+=o.innerHTML;
	o.onmouseover=function () {
		p=true;
	}
	o.onmouseout=function () {
		p=false;
	}
	o.scrollTop=0;
	function start() {
		t=setInterval(scrolling,speed);
		if(!p)o.scrollTop+=2;
	}
	function scrolling() {
		if(o.scrollTop%lh!=0) {
			o.scrollTop+=2;
			if(o.scrollTop>=o.scrollHeight/2)o.scrollTop=0;
		}else {
			clearInterval(t);
			setTimeout(start,delay);
		}
	}
	setTimeout(start,delay);
}
