var isIe=(document.all)?true:false;
function aa(){
	var bWidth = parseInt(document.body.scrollWidth);
    var bHeight;
    if(isIe)
    {
		bHeight=parseInt(document.body.scrollHeight);
        //setSelectState('');
    }else bHeight=parseInt(document.body.scrollHeight);
	document.getElementById("fade")
	
	var o = document.getElementById("fade");
        o.style.display = "block";
        o.style.width = bWidth;
        o.style.height = bHeight;
        //prox = setInterval(function(){openx(o,divWidth,divHeight)},10);
	//
	 var styleStr="top:0px;left:0px;position:absolute;background:#D9D9D9;width:"+bWidth+"px;height:"+bHeight+"px;";
    styleStr+=(isIe)?"filter:alpha(opacity=40);":"opacity:0.40;";
    o.style.cssText=styleStr;
	
}

function tc(str,n)
{
	aa();
	document.getElementById(str).style.display='block';
	document.getElementById('fade').style.display='block';
	document.getElementById(str).style.left ='20%';
	document.getElementById(str).style.top = window.document.documentElement.scrollTop+n+'px';
}

function gb(str)
{
	document.getElementById(str).style.display='none';
	document.getElementById('fade').style.display='none';
}


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


