var posX, posY;
var ie    = document.all?1:0;
var ns    = document.layers?1:0;
var dom   = document.getElementById?1:0;
var dhtml = new runLayer("Wabmo");
var path  = new Array(1,20,2,30,3,40,4,45,4,50,5,55,10,70,20,80,30,90,40,100,56,110,100,120,146,130,179,150,206,180,234,210,268,220,300,226,364,242,408,252,470,262,528,268,630,275,640,277,650,278,660,271,670,260,680,249,690,232,698,222,698,222,698,222,698,222,698,222,697,222,686,230,657,250,648,255,627,269,609,282,609,288,603,298,600,314,609,328,594,341,508,352,444,353,364,353,312,348,292,338,277,328,271,320,266,313,265,312,265,312,265,312,265,313,278,327,291,339,307,349,336,369,353,380,370,388,386,380,400,360,400,340,400,320,400,300,400,280,400,260,400,240,400,220,400,260,400,300,400,340,400,380,400,390,400,400,400,410);
var index = 0;
var trNum = 0;
function runLayer(id)
	{
		this.name = dom?document.getElementById(id):ie?document.all[id]:ns?document.layers[id]:null;
		if (this.name !== null)
			{
				this.css    = (dom||ie)?this.name.style:this.name;
				this.x      = dom?this.css.pixelLeft:ie?parseInt(this.css.left):this.css.left;
				this.y      = dom?this.css.pixelTop:ie?parseInt(this.css.top):this.css.top;
				this.moveTo = moveTo;
				return this;
			}
		else alert('The layer does not exist');
	}

function moveTo(x,y)
	{
		if(dom||ie)
			{
				this.x=x;
				this.y=y;
				this.css.left=x;
				this.css.top=y;
			}
		else this.css.moveTo(x,y);
	}
function timeline()
	{
		if(trNum < (path.length-1))
			{
				dhtml.moveTo(path[trNum],path[trNum+1])
				trNum += 2;
				setTimeout('timeline()',10);
			}
		else trNum=0; 
	}



