// JavaScript Document
var Menu = ["menu"];
window.onload = function(){
	var li = document.getElementById(Menu).getElementsByTagName("li");
	for(var i=0;i<li.length;i++){
		var li_ul = li[i].getElementsByTagName("ul");
		if(li_ul.length){
			li[i].onmouseout = function(){
				this.getElementsByTagName("a")[0].style.backgroundColor = "";
				this.getElementsByTagName("ul")[0].style.display ="none";
			}
			if(li[i].parentNode.id!=Menu){
				li[i].onmouseover= function(){
					this.getElementsByTagName("a")[0].style.backgroundColor = ""; 
					this.getElementsByTagName("ul")[0].style.display ="block";
				}
			}
		}
	}
}
function ShowMenu(obj){
	var li = document.getElementById(Menu).getElementsByTagName("li");
	for(var c=0;c<li.length;c++){
		if(li[c].parentNode.id==Menu){
			li[c].getElementsByTagName("a")[0].className = "";
		}
	}
	obj.getElementsByTagName("a")[0].className = "ok";
	obj.getElementsByTagName("a")[0].style.backgroundColor = "#80afd8"; 
	obj.getElementsByTagName("ul")[0].style.display ="block";
}
var Showbignum=12;
function Showbigtit(n){
	Showbignum+=n;
	if(n==0)Showbignum=12;
	document.getElementById('wrap').style.fontSize=Showbignum+'px'
	
}
var categoryshowid=0; 
function categoryshow(n){
	if(categoryshowid!=n){
		document.getElementById('show'+n).style.display ="block";
		 if(categoryshowid!=0)document.getElementById('show'+categoryshowid).style.display ="none";
	}
	categoryshowid=n;
	
}
