
var ns4=document.layers?1:0;
var ie=document.all?1:0;
var ns6=document.getElementById&&!document.all?1:0;

var timer;

var wh;
var ww;
var v = 1;
var v_old = 1;
var ferq = 60;
var ay = 0;
var sizeh = 103;

function baner_direction() {
	if (ie) wh = document.body.clientHeight;
	else wh = window.innerHeight;

	if (ay < 30) v = v_old = 1;
	if (ay > wh - sizeh - 30) v = v_old = -1;
	
}
function baner_move() {
	baner_direction();
	ay += v;
	document.getElementById('point1').style.top = ay + "px";
	
	if (ie) ww = document.body.clientWidth;
	else ww = window.innerWidth;
	pos = (ww - 800)/2 - 100;
	if (pos < 0) pos = 0;
	document.getElementById('point1').style.left = pos + "px";
	//setTimeout('move_baner()',ferq);
}

function baner_pause() {
	v_old = v;
	v=0;
}
function baner_unpause() {
	v=v_old;
}
timer = setInterval('baner_move()',ferq);
