/* Javascript fly-in by Jari Mäkeläinen 2005 for patrobinson.net
 Please leave original author name here if you use this code */
var image1=new Image();
image1.src="gfx/writer.gif";
var image2=new Image();
image2.src="gfx/producer.gif";
var image3=new Image();
image3.src="gfx/recordinga.gif";
var i=-146;
var j=-146;
var k=-18;
var yfin=0;
var xfin=0;
var c=1;

function wZise() {
  var myWidth = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
  } else if( document.documentElement &&
      ( document.documentElement.clientWidth) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
  } else if( document.body && ( document.body.clientWidth) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
  }
	return myWidth;
}
function getAbsX(elt) { return parseInt(elt.x) ? elt.x :
getAbsPos(elt,"Left"); };
function getAbsY(elt) { return parseInt(elt.y) ? elt.y :
getAbsPos(elt,"Top"); };
function getAbsPos(elt,which) {
  iPos = 0;
  while (elt != null) {
  iPos += elt["offset" + which];
	   elt = elt.offsetParent;
 }
   return iPos;
	 };

function starttimer() {
document.body.style.overflow="hidden";
document.getElementById('topi').style.visibility="visible";
document.getElementById('midi').style.visibility="visible";
document.getElementById('lowi').style.visibility="visible";
document.getElementById('topi').style.position="absolute";
document.getElementById('topi').style.left=+i;
document.getElementById('midi').style.position="absolute";
document.getElementById('midi').style.right=+j;
document.getElementById('lowi').style.position="absolute";
document.getElementById('lowi').style.bottom=+k;
document.getElementById('lowi').style.position="absolute";
document.getElementById('lowi').style.left=wZise()/2-77;

if (j > wZise()/2-82)  {
xfin = 1;
}
if (getAbsY(document.getElementById('lowi'))-26 < getAbsY (document.getElementById('midi')))  {
yfin = 1;
}
if (c==1) {
sto = window.setTimeout("starttimer();",100);
}
if (xfin == 0)  {
i=i+14;
j=j+14;
c=1;
}
if (yfin == 0) {
k=k+9;
c=1;
}
if (xfin == 1 && yfin == 1) {
c=0;
window.clearTimeout(sto);
}
}
