<!--// QUOTE PANEL CODE	var activePanel = "A";	var totalQuotes;	var topPanel;	function setupQuotePanel() {		if(document.getElementById("panelA")) {			totalQuotes = qImages.length;			topPanel = document.getElementById("panelA");			// populate panel B			document.getElementById("panelB").innerHTML = "<p id=\"panelImageB\" class=\"panelImage\"><\/p><div class=\"panelText\"><p id=\"homeQuoteB\" class=\"homeQuote\"><\/p><p id=\"homeQuoteCreditB\" class=\"homeQuoteCredit\"><\/p><\/div>";			buildPanel("B");		}	}		function buildPanel(panelLetter) {		qIndex += 1;		if(qIndex >= totalQuotes) qIndex = 0;		// image		writeImageCode = "";		if(qURLs[qIndex] != "") writeImageCode = "<a rel=\"shadowbox\" href=\"" + qURLs[qIndex] + "\" target=\"" + qTargets[qIndex] + "\">";		writeImageCode += "<img src=\"" + qImages[qIndex] + "\" alt=\"" + qAlts[qIndex] + "\" width=\"570\" height=\"210\" border=\"0\" onload=\"quoteDelay();\" \/>";		if(qURLs[qIndex] != "") writeImageCode += "<\/a>";		// quote credit		quoteCredit = qCredit1[qIndex];		if(qCredit2[qIndex] != "") quoteCredit += "<br \/>" + qCredit2[qIndex];		// populate		document.getElementById("panelImage" + panelLetter).innerHTML = writeImageCode;		document.getElementById("homeQuote" + panelLetter).innerHTML = "&ldquo;" + qQuotes[qIndex] + "&rdquo;";		document.getElementById("homeQuoteCredit" + panelLetter).innerHTML = quoteCredit;	}		function quoteDelay() {		// set timeout		setTimeout("swapQuotePanels();",6000);	}		function swapQuotePanels() {		if(activePanel=="A") {			if(Spry) {				Spry.Effect.DoFade(topPanel, {duration: 2000, from: 100, to: 0, toggle: false, finish: function() {setTopPanelDisplay(false);buildPanel("A");}});			} else {				setTopPanelDisplay(false);				buildPanel("A");			}			activePanel = "B";		} else {			setTopPanelDisplay(true);			if(Spry) {				Spry.Effect.DoFade(topPanel, {duration: 2000, from: 0, to: 100, toggle: false, finish: function() {buildPanel("B");refreshIeContent();}});			} else {				buildPanel("B");			}			activePanel = "A";		}	}		function setTopPanelDisplay(getMode) {		if(getMode) topPanel.style.display = "block"		else topPanel.style.display = "none";	}		function refreshIeContent() {		// fix for ie cleartype rendering		if(navigator.appName == 'Microsoft Internet Explorer') topPanel.style.removeAttribute('filter');	}// CLIENT PANEL CODE	var clientLogos = new Array();	var logoX = 10;	var logoSpacer = 20;	var logoIncrement = 1;	var lastLogo;	var totalClients;	var checkLoad = 0;	var clientSetTimeout = null;	function setupClientPanel() {		if(document.getElementById("homeClientsList")) {			// hide dl (text version)			document.getElementById("homeClientsList").getElementsByTagName("DL")[0].style.display = "none";			// put logos in holder div			document.getElementById("logoHolder").innerHTML = clientLogoCode;			// add behaviour to last logo trigger next stage			totalClients = document.getElementById("logoHolder").getElementsByTagName("IMG").length;			for(i=0;i<totalClients;i++) {				document.getElementById("logoHolder").getElementsByTagName("IMG")[i].onload = function() {logoLoaded();};			}			// catch any empty list error and start setup again			if(totalClients < 1) setupClientPanel();			}	}		function logoLoaded() {		checkLoad +=1;		if(checkLoad == totalClients) setupClientLogos();	}		var ieVersion = navigator.appVersion.split("MSIE");	var ieVersion = parseFloat(ieVersion[1]);		function setupClientLogos() {		if(document.getElementById("logoHolder")) {			// start loop through logos			for(i=0;i<totalClients;i++) {				clientLogos[i] = document.getElementById("logoHolder").getElementsByTagName("IMG")[i];				// convert to png background for legacy IE support				if ((ieVersion >= 5.5) && (ieVersion < 7) && (document.body.filters))  {					imgSrc = clientLogos[i].src;					imgWidth = clientLogos[i].offsetWidth;					imgHeight = clientLogos[i].offsetHeight;					clientLogos[i].src = "/images/common/blank.gif";					clientLogos[i].width = imgWidth;					clientLogos[i].height = imgHeight;					clientLogos[i].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + imgSrc  + "',sizingMethod='scale')";				}				// continue setup				clientLogos[i].active = false;				thisX = logoX;				logoX += (clientLogos[i].offsetWidth + logoSpacer);				thisY = Math.floor((89 - clientLogos[i].offsetHeight) /2);				clientLogos[i].storeWidth = clientLogos[i].offsetWidth;				clientLogos[i].storeY = thisY;				if(thisX < 486) {					clientLogos[i].active = true;					positionLogo(i,thisX,thisY);					lastLogo = i;				}			}			// start movement			if(clientSetTimeout == null) clientSetTimeout = setInterval("moveLogos();", 32);		}	}		function positionLogo(getIndex,getX,getY) {		getLogo = clientLogos[getIndex];		if(getLogo.style.posTop) {			getLogo.style.posLeft = getX;			getLogo.style.posTop = getY;		} else {			getLogo.style.left = getX + "px";			getLogo.style.top = getY + "px";		}	}		function moveLogos() {		for(i=0;i<totalClients;i++) {			if(clientLogos[i].active) {				newX = clientLogos[i].offsetLeft - logoIncrement;				if (newX < -clientLogos[i].storeWidth) {					clientLogos[i].active = false;					positionLogo(i,486,clientLogos[i].storeY);				} else {					if(i==lastLogo && newX < (486 - (clientLogos[i].storeWidth + logoSpacer))) activateNextLogo();					positionLogo(i,newX,clientLogos[i].storeY);				}			}		}	}		function activateNextLogo() {		lastLogo += 1;		if(lastLogo >= totalClients) lastLogo = 0;		clientLogos[lastLogo].active = true;	}// SETUP CODE	function initHome() {		setupClientPanel();	}// -->
