﻿//<![CDATA[
document.writeln('<div id="right_floatdiv"><a href="/for_3rd_party/yingdu/service.shtml"><img src="/for_3rd_party/yingdu/images/button_menu1.gif" border="0" /></a><a href="/cbsite/authsys/yingdu/activate/"><img src="/for_3rd_party/yingdu/images/button_menu4.gif" border="0" /></a><a href="/for_3rd_party/yingdu/help.shtml"><img src="/for_3rd_party/yingdu/images/button_menu3.gif" border="0" /></a></div>');
		   
var tips=document.getElementById('right_floatdiv');
var theTop = 180/*这是默认高度,越大越往下*/; 
var old = theTop;
var boxcenter_left=400;	/*从网页宽度的中间开始算,到这个漂浮的对象的距离*/
function initFloatTips() {
  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;
	}
	
	var srcwidth=document.body.offsetWidth;
	if(!document.all){srcwidth+=2;}
	tips.style.left=parseInt(srcwidth/2)+boxcenter_left+"px";
	pos=pos-tips.offsetTop+theTop;
	pos=tips.offsetTop+pos/10;
	
	if (pos < theTop) pos = theTop;
	if (pos != old) {
	tips.style.top = pos+"px";
	tt=10;
		//alert(tips.style.top);
	}
	
	old = pos;
	setTimeout(moveTips,tt);
}

function close_div(){
	tips.style.display='none';
}
initFloatTips();
//!]]>
