<!--
function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",50)
}
function low(which2){
clearInterval(highlighting)
which2.filters.alpha.opacity=50
}
function highlightit(cur2){
if (cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=10
else if (window.highlighting)
clearInterval(highlighting)
}

<!--
function movstar(a,time){movx=setInterval("mov("+a+")",time)}
function movover(){clearInterval(movx)}
function mov(a){scrollx=gengxin.document.body.scrollLeft
	scrolly=gengxin.document.body.scrollTop
	scrolly=scrolly+a
	gengxin.window.scroll(scrollx,scrolly)}
function wback(){if(gengxin.history.length==0){window.history.back()}
	else{gengxin.history.back()}}
//-->

<!--
var htm
function openwin(htm){
  myWin=window.open(htm, "NewWindow","top=80,left=90,width=300,height=330,toolbar=no,menubar=no,status=no,scrollbars=no,resizable=no");
  myWin.focus();
}
// -->



<!-- Beginning of JavaScript -

var x,y

var marginbottom

var marginleft=0

var margintop=0

var marginright



var tempo=25


//设置下面一些参数stepx,stepy，数值大速度快；
var stepx=3

var stepy=3

var timer



function setValues() {

    var firsttimer= setTimeout("setValues2()",2000)

}



function setValues2() {

	if (document.all) {

    	marginbottom = document.body.clientHeight-50

    	marginright = document.body.clientWidth-50

		document.all.ball1.style.posLeft=10

   		document.all.ball1.style.posTop=10

    	moveball()

	}

	

	if (document.layers) {

    	marginbottom = window.innerHeight-10

    	marginright = window.innerWidth-10

		document.ball1.left=10

   		document.ball1.top=10

    	moveball()

	}

}



function randommaker(range) {		

	rand=Math.floor(range*Math.random())

    return rand

}



function moveball() {

	if (document.all) {

		checkposition()

   		document.all.ball1.style.posLeft+=stepx

   		document.all.ball1.style.posTop+=stepy

    	timer=setTimeout("moveball()",tempo)

	}

	if (document.layers) {

		checkposition()

   		document.ball1.left+=stepx

   		document.ball1.top+=stepy

    	timer=setTimeout("moveball()",tempo)

	}

}



function checkposition() {

	if (document.all) {

		if (document.all.ball1.style.posLeft>=marginright) {

			stepx=(stepx+randommaker(2))*-1

			document.all.ball1.style.posLeft-=10

		}

		if (document.all.ball1.style.posLeft<=marginleft) {

			stepx=(stepx+randommaker(2))*-1

			document.all.ball1.style.posLeft+=10

		}	

		if (document.all.ball1.style.posTop>=marginbottom) {

			stepy=(stepy+randommaker(2))*-1

			document.all.ball1.style.posTop-=10

		}

		if (document.all.ball1.style.posTop<=margintop) {

			stepy=(stepy+randommaker(2))*-1

			document.all.ball1.style.posTop+=10

		}

	}

	if (document.layers) {

		if (document.ball1.left>=marginright) {

			stepx=(stepx+randommaker(2))*-1

			document.ball1.left-=10

		}

		if (document.ball1.left<=marginleft) {

			stepx=(stepx+randommaker(2))*-1

			document.ball1.left+=10

		}	

		if (document.ball1.top>=marginbottom) {

			stepy=(stepy+randommaker(2))*-1

			document.ball1.top-=10

		}

		if (document.ball1.top<=margintop) {

			stepy=(stepy+randommaker(2))*-1

			document.ball1.top+=10

		}

	}

}







// - End of JavaScript - -->
