 var layer_array = new Array()
 var curr_lead = 0
 
 var isNetscape4 =((navigator.appName == "Netscape")&&(parseInt(navigator.appVersion) < 5));
  
layer_array[0] = "ppi"
layer_array[1] = "ppii"
layer_array[2] = "ppiii"
layer_array[3] = "ppiv"
layer_array[4] = "ppv"
layer_array[5] = "ppvi"
layer_array[6] = "ppvii"
layer_array[7] = "ppviii"
 
 
 
function getObject(obj) {
 var el;
 if (document.getElementById) {el = document.getElementById(obj).style ;}
 else if (document.all)       {el = document.all[obj].style; }
 else if (document.layers)    {el = document.layers[obj];}
 return el;
}

function shiftBy(obj, deltaX, deltaY) {
	var theObj = getObject(obj)
	if (isNetscape4){
	 theObj.moveBy(deltaX, deltaY)
	} else {
	theObj.xpos = parseInt(theObj.left);
	theObj.xpos += deltaX
	theObj.left = theObj.xpos + "px"
    theObj.pixelTop += deltaY
	}
}

function getObjectLeft(obj) {
	var theObj = getObject(obj)
	theObj.xpos = parseInt(theObj.left);
	return theObj.xpos	 
}

function banner_animation() {
 var one = curr_lead
	var two = curr_lead + 1
	var three = curr_lead + 2
	var four = curr_lead + 3
	var five = curr_lead + 4
	var six = curr_lead + 5
	var seven = curr_lead + 6
	var eight = curr_lead + 7

	if (two >= 8) {
		two = 0; three = 1; four = 2; five = 3; six = 4; seven = 5; eight = 6;
	} else if (three >= 8) {
		three = 0; four = 1; five = 2; six = 3; seven = 4; eight = 5;
	} else if (four >= 8) {
		four = 0; five = 1; six = 2; seven = 3; eight = 4;
	} else if (five >= 8) {
		five = 0; six = 1; seven = 2; eight = 3;
	} else if (six >= 8) {
		six = 0; seven = 1; eight = 2;
	} else if (seven >= 8) {
		seven = 0; eight = 1;
	} else if (eight >= 8) {
		eight = 0;
	}

	shiftBy(layer_array[one],2,0)
	shiftBy(layer_array[two],2,0)
	shiftBy(layer_array[three],2,0)
	shiftBy(layer_array[four],2,0)
	shiftBy(layer_array[five],2,0)
	shiftBy(layer_array[six],2,0)
	shiftBy(layer_array[seven],2,0)
	shiftBy(layer_array[eight],2,0)
	if (getObjectLeft(layer_array[one]) >= 800) {
		shiftBy(layer_array[one],-1060,0)
		curr_lead += 1
		if (curr_lead == 8) {curr_lead = 0}
	}
  setTimeout("banner_animation()",100)
 }