 
var tips; var theTop = 300/*这是默认高度,越大越往下*/; var old = theTop;   
function initFloatTips() {   
  tips = document.getElementById('floatTips');   
  moveTips();   
};   
function moveTips() {   
  var tt=50;   
  if (window.innerHeight) {   
    pos = window.pageYOffset   
  }   
  else if (document.documentElement && document.documentElement.scrollTop) {   
    pos = document.documentElement.scrollTop   
  }   
  else if (document.body) {   
    pos = document.body.scrollTop;   
  }   
  pos=pos-tips.offsetTop+theTop;   
  pos=tips.offsetTop+pos/10;   
  if (pos < theTop) pos = theTop;   
  if (pos != old) {   
    tips.style.top = pos+"px";   
	tips.style.right = (document.body.clientWidth/2)-470+"px";   
    tt=10;   
  }   
  old = pos;   
  setTimeout(moveTips,tt);   
}   

function LayerOn(str){ 
	if (window.innerHeight) {   
	pos = window.pageYOffset   
	}   
	else if (document.documentElement && document.documentElement.scrollTop) {   
	pos = document.documentElement.scrollTop   
	}   
	else if (document.body) {   
	pos = document.body.scrollTop;   
	}   
	pos=pos-tips.offsetTop+theTop;   
	pos=tips.offsetTop+pos/10-150;   
	document.getElementById("bodyly").style.display="block";   
	document.getElementById("bodyly").style.width=document.body.clientWidth+"px";   
	document.getElementById("bodyly").style.height=document.body.clientHeight+"px"; 		
	document.getElementById("bodyly0").style.display='block'; 
	document.getElementById("bodyly0").style.top=pos+"px";   
	document.getElementById("bodyly0").style.left=document.body.clientWidth/2-278+"px"; 
	document.getElementById("my_frame").src=encodeURI(str)
	}
	
	
function LayerOff(){ 
	document.getElementById("bodyly").style.display="none";
	document.getElementById("bodyly0").style.display='none';
	document.getElementById("my_frame").src=""
}

function LoadingOn(){   
  document.getElementById("Loading").style.display='block'; 
  document.getElementById("Loading").style.top=document.body.scrollTop+(document.body.clientHeight/2-100)+"px";   
  document.getElementById("Loading").style.left=document.body.clientWidth/2-125+"px";  
}

function LoadingOff(){ 
	document.getElementById("Loading").style.display='none';  
}
