var signover = 1;

function cmouseover(divName,over,counts,oclass){
	if(signover==1){
		for(var i=0;i<=parseInt(counts);i++){
			var divClassName = document.getElementById(divName+'top_'+i);
			if(divClassName.className.substr(divClassName.className.length-2,2)=="_1"){
				divClassName.className = divClassName.className.substr(0,divClassName.className.length-2);
			}
		}
		document.getElementById(divName+'top_'+over).className = document.getElementById(divName+'top_'+over).className+"_1";
		for(var i=0;i<=parseInt(counts);i++){
			document.getElementById(divName+'_'+i).style.display = "none";
		}
		document.getElementById(divName+'_'+over).style.display = "block";
	}
	signover = 1;
}
function changevalue(){
	changeaction();
	if(!document.getElementById("keyword").value){
		var searchkeyword = "sitesearch:www.2cscs.com";
	}else{
		var searchkeyword = document.getElementById("keyword").value;
	}
	document.getElementById('q').value = searchkeyword;
	document.getElementById('word').value = searchkeyword;
}

function getCookie(name){
	var strCookie=document.cookie;
	var arrCookie=strCookie.split("; "); // 将多cookie切割为多个名/值对
	for(var i=0;i<arrCookie.length;i++){ // 遍历cookie数组，处理每个cookie对
	var arr=arrCookie[i].split("="); // 找到名称为userId的cookie，并返回它的值
	if(arr[0]==name)
		return arr[1];
	}
	return 0;
}
