var freImage=new Image();
freImage.src="/files/jsp/web/images/1_12.jpg";
DomReady.ready(function() {
	var isIE=Browser.isIE;
	var startDom=$("jzStartDom");
	startDom.style.display="";
	if(!isIE)document.body.scrollTop=0;
	var startDomY=eltUtil.getY(startDom);
	var startDomX=eltUtil.getX(startDom);	
	var hideHeight=document.body.scrollHeight-eltUtil.getY(startDom);
	var targetHeight=document.body.clientHeight;
	var targetScrollHeight=document.body.scrollHeight;
	var jzDiv=document.createElement("div");
	eltUtil.setClass(jzDiv,"jz");
	jzDiv.setAttribute("id","jz");
	jzDiv.innerHTML=["<div id='divJz'><div id='shangBiao' class='copyright' style='position:absolute;top:20px;width:100%;'>" +
		copyright+"</div><image id='jzimg' src='#'/></div>","<div id='_firstPanel' style=''></div>"].join("");
	document.body.appendChild(jzDiv);
	$("jzimg").src=freImage.src;
	jzDiv.style.top=startDomY;
	//jzDiv.style.left=startDomX;
	var _firstPanel=new Object();
	_firstPanel=$("_firstPanel");
	_firstPanel.style.height=hideHeight;
	targetHeight-=$("jzimg").offsetHeight;
	targetScrollHeight-=$("jzimg").offsetHeight;
    var _speed=3;
    var _slideY=startDomY;
    //$("jzStartDomTd").style.visibility="";
    var slideInterval=setInterval(initSlide,1);
    var first=0;
    function initSlide(){
    	document.body.scrollTop=0;
    	_slideY+=_speed;
    	jzDiv.style.top=_slideY+"px";
    	if(!isIE)document.body.scrollTop=0;
    	if(_slideY>=targetHeight+document.body.scrollTop){
    		clearInterval(slideInterval);
    		_firstPanel.style.height="0px";
    		_firstPanel.style.display="none";
    		if(!isIE){
    			jzDiv.style.position="fixed";
    		}else{
    			first=1;
    			jzDiv.style.position="absolute";
    			jzDiv.style.bottom=(-1)*document.body.scrollTop-1+"px";;
    			jzDiv.style.top="auto";
    		}
    	}
    }
    var tsd=$("ts");
    document.onmousewheel=function(e){//alert(window.event.wheelDelta);
    	if(first==0)return false;
    }
    function isIEScrollSlide(dd){
		jzDiv.style.top=document.body.scrollTop+document.body.clientHeight-jzDiv.offsetHeight;
		if(tsd)tsd.style.top=document.body.scrollTop+document.body.clientHeight-$("ts").offsetHeight;
    }
	if(isIE){
		window.onscroll=function(){
			isIEScrollSlide();
		}
		window.onresize = function(){
			document.body.scrollTop=0;
			isIEScrollSlide();
		}
	}
	jz.style.bottom="0px";
});