var htmltop;
var breed;

function Init(){
htmltop = new getObj("top");
breed = 350;
htmltop.ypos = parseInt(htmltop.style.top);
htmltop.width = parseInt(htmltop.style.width);
moveTekst();
}

function moveTekst(){
htmltop.ypos += (5);
htmltop.style.top = htmltop.ypos + "px";
the_timeout = setTimeout("moveTekst();", 50);
if (htmltop.ypos - 490 > 3){
clearTimeout(the_timeout);
verkleinTekst();
}
}

function verkleinTekst(){
if (document.getElementById){
var htmlimg=document.getElementById('top')
breed -= (5);
htmlimg.innerHTML='<img src="' + 'Images/TekstTop.gif' + '" alt="Gevonden..." width="' + breed + '" height="56" />'
the_timeout = setTimeout("verkleinTekst();", 50);
if (breed < 5){
clearTimeout(the_timeout);
htmltop.style.top = 0 + "px";
htmlimg.innerHTML='<img src="' + 'Images/TekstTop2.gif' + '" alt="Gevonden..." width="350" height="56" />'
}
}
}

function getObj(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];
  }
}
