var x = 0,y = 0;
var xin = yin = true;
var step = 1;
var delay = 20;
var obj=document.getElementById("index_bar5");

function floatAD() {
	var _obj=document.getElementById("index_bar6");
	if(_obj) {
		_obj.style.width='760px';
		_obj.style.visibility='visible';
	}
	clearInterval(itl);
	obj.style.visibility='visible';
	//obj.style.display='';
	var L=T=0;
	var R= document.body.clientWidth-obj.offsetWidth;
	var B = document.body.clientHeight-obj.offsetHeight;
	obj.style.left = x + document.body.scrollLeft;
	obj.style.top = y + document.body.scrollTop;
	x = x + step*(xin?1:-1);
	if (x < L) { xin = true; x = L}
	if (x > R){ xin = false; x = R}
	y = y + step*(yin?1:-1);
	if (y < T) { yin = true; y = T }
	if (y > B) { yin = false; y = B }
	//with(document.getElementById('index_bar1').style) {
	//	visibility='visible';
	//	display='';
	//}
	//with(document.getElementById('index_bar2').style) {
	//	visibility='visible';
	//	display='';
	//}
	itl= setInterval("floatAD()", delay);
}
var itl= setInterval("floatAD()", delay) 
obj.onmouseover=function(){clearInterval(itl)} 
obj.onmouseout=function(){itl=setInterval("floatAD()", delay)}
