
function gel(a){
	return document.getElementById?document.getElementById(a):null;
}
function gelstn(a){
	return document.getElementsByTagName?document.getElementsByTagName(a):new Array();
}
function geln(a){
	return document.getElementsByName?document.getElementsByName(a):new Array();
}
function $(a){
	document.write(a);
}



function viewblock(a) {
	if (document.getElementById) {
		thisProcedure = gel(a).style;
		if (thisProcedure.display == "block" | thisProcedure.display == "") {
			thisProcedure.display = "none";
		}else {
			thisProcedure.display = "block";
		}
	}
	return false;
}


function showDetail(b) {
	if (document.getElementById) {
		thisShow = document.getElementById(b);
		if (thisShow.className == "intro_content1" | thisShow.className == "") {
			thisShow.className = "intro_content2";
		}else {
			thisShow.className = "intro_content1";
		}
	}
	return false;
}


function viewblock2(currProcedure) {
	if (document.getElementById) {
		thisProcedure = document.getElementById(currProcedure).style;
		if (thisProcedure.display == "block" | thisProcedure.display == "") {
			thisProcedure.display = "none";
		}
		else {
			for(i=1;i<=25;i++){
				if (i == currProcedure)
				{
					thisProcedure.display = "block";
				}else{
					document.getElementById(i).style.display = "none";
				}
			}
		}
	}
	return false;
}

function left_list(BlockId) {
	if(document.getElementById(BlockId+"_title").className==BlockId+"_2 left_list_t2") {
		document.getElementById(BlockId+"_title").className=BlockId+"_1 left_list_t1";
		document.getElementById(BlockId+"_s").style.display="none";
		document.getElementById(BlockId).className="left_list1";
	}else{
		for(i=1;i<=3;i++){
			if (i == BlockId) {
				document.getElementById(BlockId+"_title").className=BlockId+"_2 left_list_t2";
				document.getElementById(BlockId+"_s").style.display="block";
				document.getElementById(BlockId).className="left_list2";
			}else{
				document.getElementById(i+"_title").className=i+"_1 left_list_t1";
				document.getElementById(i+"_s").style.display="none";
				document.getElementById(i).className="left_list1";
			}
		}
	}
}

function goole_search() {
	var q	= document.getElementsByName("q")[0].value;
	url		= "http://www.google.cn/search?q="+q;
	window.open(url);
}

var i=0;
function showpage(i) {
i++;
		if(document.getElementById('p'+i)) {
			if(document.getElementById('p'+i).style.display=='block' || document.getElementById('p'+i).style.display=='') {
				document.getElementById('p'+i).style.display='none';
			}else {
				document.getElementById('p'+i).style.display='block';
			}
		}
		
}
