window.onload = initLogoLink;

var clientImages = new Array("../images/hlogo_lloydstsb.gif","../images/hlogo_metpolice.gif","../images/hlogo_barclays.gif","../images/hlogo_bandq.gif","../images/hlogo_eds.gif","../images/hlogo_alleic.gif","../images/hlogo_barclaycard.gif");
var clientURL = new Array("lloydstsb","metpolice","barclays","bandq","eds","alleic","barclaycard");
var thisclient = 0;

function rotate() {
	thisclient++;
	if (thisclient == clientImages.length) {
		thisclient = 0;
	}
	document.getElementById("clientLogo").src = clientImages[thisclient];
	setTimeout("rotate()", 3 * 800);
}

function newLocation() {
	document.location.href = "http://www.eve-olution.net/clients/cli_detail.asp?name=" + clientURL[thisclient];
	return false;
}

function initLogoLink() {
	if (document.getElementById("clientLogo").parentNode.tagName == "A") {
		document.getElementById("clientLogo").parentNode.onclick = newLocation;
	}
	
	rotate();
}