var othersBox, othersArrowLeft, othersArrowRight;
var othersTimeout;
var othersOffsetMin = 0
var othersOffsetMax;
var othersSpeedNormal = 4;
var othersActualSpeed = othersSpeedNormal;
var othersSpeedTurbo = 8;
var othersBoxLeft = 0;

function othersInitialize() {
	othersBox = document.getElementById('othersBox');
	othersArrowLeft = document.getElementById('othersArrowLeft');
	othersArrowRight = document.getElementById('othersArrowRight');
	
	othersOffsetMax = - (othersBox.offsetWidth - 447);
	
	othersArrowLeft.onmouseover = othersMoveLeft;
	othersArrowLeft.onmousedown = othersTurbo;
	othersArrowLeft.onmouseup = othersNoTurbo;
	othersArrowLeft.onmouseout = othersStopMove;
	
	othersArrowRight.onmouseover = othersMoveRight;
	othersArrowRight.onmousedown = othersTurbo;
	othersArrowRight.onmouseup = othersNoTurbo;
	othersArrowRight.onmouseout = othersStopMove;
}

function othersMoveLeft() {
	clearInterval(othersTimeout);
	othersTimeout = setInterval("othersMove(1)",15);
}

function othersMoveRight() {
	clearInterval(othersTimeout);
	othersTimeout = setInterval("othersMove(-1)",15);
}

function othersStopMove() {
	clearInterval(othersTimeout);
}

function othersTurbo() {
	othersActualSpeed = othersSpeedTurbo;
}

function othersNoTurbo() {
	othersActualSpeed = othersSpeedNormal;
}

function othersMove(multipler) {
	othersBoxLeft += (othersActualSpeed * multipler);
	if (othersBoxLeft > othersOffsetMin) othersBoxLeft = othersOffsetMin;
	if (othersBoxLeft < othersOffsetMax) othersBoxLeft = othersOffsetMax;
	othersBox.style.left = othersBoxLeft + "px";
}

if (window.addEventListener) {
	window.addEventListener("load",othersInitialize,false);
}
else if (window.attachEvent) {
	window.attachEvent("onload",othersInitialize);
}

