<!--
/* 
	© 2005 Acuity Solutons, LLC | All Rights Reserved | Use only with permission
	All Contents of this Website are the property of Acuity Solutons, LLC
	http://www.AcuityNV.com
*/

// Random Image Script for the Header //
var j,d="",l="",m="",p="",q="",z="",KW_ARI= new Array()
KW_ARI[KW_ARI.length]='/images/Quote1.gif?&width=345&height=140&hspace=0&vspace=0&border=0';
KW_ARI[KW_ARI.length]='/images/Quote2.gif?&width=345&height=140&hspace=0&vspace=0&border=0';
KW_ARI[KW_ARI.length]='/images/Quote3.gif?&width=345&height=140&hspace=0&vspace=0&border=0';
KW_ARI[KW_ARI.length]='/images/Quote4.gif?&width=345&height=140&hspace=0&vspace=0&border=0';

// Commented out until Acuity receives permission to use //
// KW_ARI[KW_ARI.length]='/images/Quote5.gif?&width=345&height=140hspace=0&vspace=0&border=0';
// KW_ARI[KW_ARI.length]='/images/Quote6.gif?&width=345&height=140&hspace=0&vspace=0&border=0';
// KW_ARI[KW_ARI.length]='/images/Quote7.gif?&width=345&height=140&hspace=0&vspace=0&border=0';
// KW_ARI[KW_ARI.length]='/images/Quote8.gif?&width=345&height=140&hspace=0&vspace=0&border=0';
j=parseInt(Math.random()*KW_ARI.length);
j=(isNaN(j))?0:j;

	if (KW_ARI[j].indexOf('?')==-1) {
		document.write("<img src='"+KW_ARI[j]+"'>");
		}
		
	else {
		nvp=KW_ARI[j].substring(KW_ARI[j].indexOf('?')+2).split('&');
		for(var i=0;i<nvp.length;i++) {
			sub=nvp[i].split('=');
			switch(sub[0]) {
				case 'link':
				l="<a href='"+unescape(sub[1])+"'>";
				p="</a>";
					break;
				case 'target':
				q=" target='"+unescape(sub[1])+"'";
					break;
				default:
				m+=" "+sub[0]+"='"+unescape(sub[1])+"'";
					break;
			}
		}
	
	var loc = window.location.href.substr(window.location.href.lastIndexOf('/') + 1);
	
	//alert("window.location = " + loc);
	
	if (loc == "index.php" || loc == "") {
		//alert("window.location = " + loc);
		document.write("<img src=/images/Quote1.gif?&width=345&height=140&hspace=0&vspace=0&border=0>");
		}

	else if (loc == "NetworkSolutions.php") {
		//alert("window.location = " + loc);
		document.write("<img src=/images/Quote4.gif?&width=345&height=140&hspace=0&vspace=0&border=0>");
		}

	else {
		z=(l!="")?((q!="")?l.substring(0,l.length-1)+q+">":l):"";
		z+="<img src='"+KW_ARI[j].substring(0,KW_ARI[j].indexOf('?'))+"'"+m+">"+p;
		document.write(z);
		}
	}

//-->
