/* Copyright (C) 2003 Refactor, Finland. */

function getObject(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}

var a = 0;
var t;

function movelang()
{
 if (t) clearTimeout(t);
 xobj = new getObject('languages');
 var ypos = Math.sin(Math.PI/180*a);
 xobj.style.right = "95%";
 xobj.style.top = 10 + 150 - 150*ypos + 'px';

 if (a < 89)
 {
    t = setTimeout('movelang()', 20);
    a += 5;
 }
}

function setlang()
{
  xobj = new getObject('languages');
  xobj.style.right = '95%';
  xobj.style.top = '10px';
}

