// 修复IE6及以下版本浏览器中,CSS的background-image的闪烁现象;
var ua = window.navigator.userAgent;
var isIE = ua.indexOf("MSIE") > -1, isIE7 = ua.indexOf("MSIE 7") > -1;
if(isIE && !isIE7){
    try{
        document.execCommand("BackgroundImageCache", false, true);
    }catch(e){}
}

/*菜单隐藏与显示*/
function showMenu(element){
	var EnObj = element.parentNode.getElementsByTagName("h1")[0];
	if(EnObj){
		EnObj.style.display = "block";
	}
	var divObj = element.parentNode.getElementsByTagName("div")[0];
	if(divObj){
		divObj.style.display = "block";
		divObj.onmouseover = function(){
			this.style.display = "block";
			var spanObjs = this.getElementsByTagName("span");
			for(var i=0; i<spanObjs.length; i++){
				if(spanObjs[i].className == "drop"){
					spanObjs[i].onmouseover = function(){
						var divObj = this.getElementsByTagName("div")[0];
						if(divObj){
							divObj.style.display = "block";
							this.className = "dropOver";
						}
					}
					spanObjs[i].onmouseout = function(){
						var divObj = this.getElementsByTagName("div")[0];
						if(divObj){
							divObj.style.display = "none";
							this.className = "drop";
						}
					}
				}
			}
		}
		divObj.onmouseout = function(){
			this.style.display = "none";
		}
	}
}
function hideMenu(element){
	var EnObj = element.parentNode.getElementsByTagName("h1")[0];
	if(EnObj){
		EnObj.style.display = "none";
	}
	var divObj = element.parentNode.getElementsByTagName("div")[0];
	if(divObj){
		divObj.style.display = "none";
	}
}