var DIVRef	="";
var styleSwitch	="";
if (window.opera) OP = 1;
else OP=0;

if (document.layers) {
	DIVRef="document.layers.";
	styleSwitch="";
}
if (document.all) {
	DIVRef="";
	styleSwitch=".style";
}

if(document.getElementById){
	DIVRef='document.getElementById("';
	styleSwitch='").style';
}


function setAttrib(thisLayerName, name, newPos) {
	if (thisLayerName){
		if (navigator.appName == "Netscape"){
			eval(DIVRef+thisLayerName+styleSwitch+'.'+name+'=newPos');
		}else{
			eval(DIVRef+thisLayerName+styleSwitch+'.setAttribute("'+name+'","'+newPos+'","false")');
		}
	}
}

var j=0;
var x=1;
var y=0;



function startPlane() {
	if(OP==0) {
				j=j+1;
				var hLastOne=(document.getElementsByName("lastPObject")[0].offsetLeft+470);
				if (j<440) {window.setTimeout("StepPlane(j)",20);}
				else {
					j=0;
					window.setTimeout("StepPlane(j)",400);
				}
	}
}

function StepPlane(j) {
	var hLastOne=(document.getElementsByName("lastPObject")[0].offsetLeft+470 );
	y = -hLastOne+j;
	setAttrib('MovePlaneDiv', 'left', y );
	startPlane();
}


function loadPlane(){
	startPlane();
}