var lay2pos=-160;
var lay3pos=-120;
var cur2pos=-160;
var cur3pos=-120;
var timer2=null;
var timer3=null;
function scrollup()
{
if(lay2pos>-160)
			{
			lay2pos=-160;
				if(timer2==null)
				{
				timer2=setInterval(move2,30);
				}
			}
if(lay3pos>-120)
			{
			lay3pos=-120;
				if(timer3==null)
				{
				timer3=setInterval(move3,30);
				}
			}
}
function putlayers()
{
if (document.getElementById)
  {
  xpos=document.body.offsetWidth;
  xpos=(xpos/2)-394;
  ypos=document.body.offsetHeight;
  //ypos=(ypos/2)-289;
  ypos=167;
  if(document.all)
   {xpos=xpos-10};
  document.getElementById("Layer1").style.left=xpos;
  document.getElementById("Layer5").style.left=xpos;
  document.getElementById("Layer1").style.top=ypos;
  }
}
function scrollit(wl)
{
switch(wl)
	{
	case 'Layer2':
		if(lay2pos<0)
			{
			lay2pos=0;
			}
		if(timer2==null)
			{
			timer2=setInterval(move2,30);
			}
		break;
	case 'Layer3':
		if(lay3pos<0)
			{
			lay3pos=0;
			}
		if(timer3==null)
			{
			timer3=setInterval(move3,30);
			}
		break;
	}
}
function move2()
{
if(cur2pos==lay2pos)
	{
	clearInterval(timer2);
	timer2=null;
	}
	else
		if(cur2pos<lay2pos)
		{
		cur2pos=cur2pos+10;
		if(cur2pos>lay2pos)cur2pos=lay2pos;
		moving('Layer2',142,cur2pos);
		}
		else
		if(cur2pos>lay2pos)
			{
			cur2pos=cur2pos-10;
			if(cur2pos<lay2pos)cur2pos=lay2pos;
			moving('Layer2',142,cur2pos);
			}
}
function move3()
{
if(cur3pos==lay3pos)
	{
	clearInterval(timer3);
	timer3=null;
	}
	else
		if(cur3pos<lay3pos)
		{
		cur3pos=cur3pos+10;
		if(cur3pos>lay3pos)cur3pos=lay3pos;
		moving('Layer3',142,cur3pos);
		}
		else
		if(cur3pos>lay3pos)
			{
			cur3pos=cur3pos-10;
			if(cur3pos<lay3pos)cur3pos=lay3pos;
			moving('Layer3',142,cur3pos);
			}
}
function moving(which,x,y)
{
//if (document.getElementById)
//  {
//document.getElementById(which).style.pixelTop=y;
document.getElementById(which).style.top=y;

//  }
//else if (document.all) 
//  {
 //document.all[which].style.pixelTop=y;
 // document.all[which].moveTo(x,y);
// }
//else if (document.layers) 
//  {
// document.layers[which].moveTo(x,y);
//  }
}