var lb = new Array (0,0)
var it, mv, t

function moveem() {
	it = Math.floor(Math.random()*2)+1
	mv = (Math.floor(Math.random()*5)+1)*40
	lb[it] = 0
	t = setInterval('moveit(it)',70)
}

function moveit(i) {
	lb[i]+=6
	if (lb[i] >= mv) {
		lb[i] = mv
		clearInterval(t)
		setTimeout('moveem()',(Math.floor(Math.random()*6)+3)*2000)
	}
	document.getElementById('logo-button'+i).style.backgroundPosition='0 '+lb[i]+'px'
}
function openwin(u,x,y) {
  var wintext=''
  if (!x) x=840
  if (!y) y=640
  if (y>screen.availHeight) {
    y=screen.availHeight-28
    wintext='scrollbars,'
    x+=15
  }
  if (x>screen.availWidth) {
    x=screen.availWidth-12
    wintext='scrollbars,'
  }
  wintext+="toolbar=0,width="+x+",height="+y
  newWin=open(u,'mapWin',wintext)
  newWin.resizeTo(x+12,y+28)
  setTimeout('newWin.focus()',500)
  return false
}