var browser = navigator.appName;
//DIV菜单
l_tFadeOut=null;
l_tFadeIn=null;
l_tFadeWaiting=null;

//setTimeout增加参数
var _st = window.setTimeout; 
window.setTimeout = function(fRef, mDelay) { 
 if(typeof fRef == 'function'){ 
  var argu = Array.prototype.slice.call(arguments,2); 
  var f = (function(){ fRef.apply(null, argu); }); 
  return _st(f, mDelay); 
 } 
 return _st(fRef,mDelay); 
} 

function stop_hidden(divID)
{
	var d = document.getElementById(divID);
	window.clearTimeout(l_tFadeOut);
	window.clearTimeout(l_tFadeWaiting);
	d.style.display='block';
	d.filters.Alpha.opacity=100;
}

function hidden_layer(divID){
		var d = document.getElementById(divID);
		d.style.display='block';
		if (browser == "Microsoft Internet Explorer")
		{
        if(d.filters.Alpha.opacity < 100) {
                d.filters.Alpha.opacity+=3;
                l_tFadeOut=window.setTimeout(hidden_layer,1,divID);
                }
                else {
                        d.filters.Alpha.opacity=100;
                        l_tFadeWaiting=window.setTimeout(l_fadeIn,4000,divID);
                        }
		}else{
				l_tFadeWaiting=window.setTimeout(l_fadeIn,4000,divID);
		}
}

function l_fadeIn(divID){
	var d = document.getElementById(divID);
	if (browser == "Microsoft Internet Explorer")
	{
        if(d.filters.Alpha.opacity > 0) {
                d.filters.Alpha.opacity-=3;
                l_tFadeIn=window.setTimeout(l_fadeIn,1,divID);
        }else{
                d.style.display='none';
        }
	}else{
		d.style.display='none';
	}
}
//结束