﻿// Inner Safari image rotator
var currentLower = 0;
var currentRight = 0;
var lowerClock, rightClock;

function startImages()
{ lowerClock = setTimeout('swapLowerImage(currentLower)', 5000); }

function swapLowerImage(current)
{
	if (document.getElementById('lowerimage') && arrayLower.length > 1)
	{
		(current == 0) ? currentLower = 1 : currentLower = 0;
		document.getElementById('lowerimage').src = arrayLower[currentLower];
	}
	rightClock = setTimeout('swapRightImage(currentRight)', 5000);
}

function swapRightImage(current)
{
	if (document.getElementById('rightimage') && arrayRight.length > 1)
	{
		(current == 0) ? currentRight = 1 : currentRight = 0;
		document.getElementById('rightimage').src = arrayRight[currentRight];
	}
	lowerClock = setTimeout('swapLowerImage(currentLower)', 5000);
}