// JavaScript Document
var GO = function(elemId){return document.getElementById(elemId);}
function list(mid){
	if(GO("p_"+mid).style.display == "none"){
		GO("p_"+mid).style.display = "block";
		GO("headrg"+mid).className = "headrg2";
	}else{
		GO("p_"+mid).style.display = "none";
		GO("headrg"+mid).className = "headrg1";
	}
}

function show(id){
	var obj = document.getElementById(id);
	obj.style.display = "block";
}

function hidd(id){
	var obj = document.getElementById(id);
	obj.style.display = "none";
}

function flist(mid){
	if(GO("f_"+mid).style.display == "none"){
		GO("f_"+mid).style.display = "block";
	}else{
		GO("f_"+mid).style.display = "none";
	}
}	

function prot(idx){
	GO("prot"+idx).className =  'pick';
	GO("protC"+idx).style.display = "block";
		for(var i=1;i<4;i++){
			if(!GO("prot"+i)) continue;
			if(i != idx){
				GO("prot"+i).className =  'unpick';
				GO("protC"+i).style.display = "none";
			}
		}
	}
	
/***
婊氬姩璁剧疆

***/
function getScroll(ContentId,ContentId1,ContentId2,speed)
{
	var scrollContent = document.getElementById(ContentId);
	var scrollContent1 = document.getElementById(ContentId1);
	var scrollContent2 = document.getElementById(ContentId2);
	var speed=speed;    //婊氬姩閫熷害鍊硷紝鍊艰秺澶ч€熷害瓒婃參
	var nnn=200/scrollContent1.offsetHeight;
	//for(i=0;i<nnn;i++){scrollContent1.innerHTML+="<br />"+ scrollContent1.innerHTML}
	scrollContent2.innerHTML=scrollContent1.innerHTML;	//鍏嬮殕demo2涓篸emo1
	function Marquee(){ 
		if(scrollContent2.offsetHeight-scrollContent.scrollTop<=0) 	//褰撴粴鍔ㄨ嚦demo1涓巇emo2浜ょ晫鏃�
			scrollContent.scrollTop-=scrollContent1.offsetHeight 		 //demo璺冲埌鏈€椤剁
		else{ 
			scrollContent.scrollTop++ 							 //濡傛灉鏄í鍚戠殑 灏� 鎵€鏈夌殑 height top 鏀规垚 width left 
		} 
	} 
	var MyMar=setInterval(Marquee,speed);					 //璁剧疆瀹氭椂鍣�
	scrollContent.onmouseover=function() {clearInterval(MyMar)} //榧犳爣缁忚繃鏃舵竻闄ゅ畾鏃跺櫒杈惧埌婊氬姩鍋滄鐨勭洰鐨�
	scrollContent.onmouseout=function() {MyMar=setInterval(Marquee,speed)} //榧犳爣绉诲紑鏃堕噸璁惧畾鏃跺櫒
}	