// Advanced Random Images Start
// Copyright 2001-2002 All rights reserved, by Paul Davis - www.kaosweaver.com
// URL attribute and initial image delay added by Nelson Owen
var j,d="",l="",m="",p="",q="",z="", KW_ARI= new Array(), KW_ARL = new Array(); // KW_rs[5000]

KW_ARI[KW_ARI.length]='nav/index_main_welcome.jpg';
KW_ARI[KW_ARI.length]='nav/index_main_voice.jpg';
KW_ARI[KW_ARI.length]='nav/index_main_internet.jpg';
//KW_ARI[KW_ARI.length]='nav/index_main_web.jpg';
KW_ARI[KW_ARI.length]='nav/index_main_networking.jpg';
KW_ARI[KW_ARI.length]='nav/index_main_bundled.jpg';
KW_ARI[KW_ARI.length]='nav/index_main_television.jpg';

KW_ARL[KW_ARL.length]='http://myxfone.xfoneusa.com';
KW_ARL[KW_ARL.length]='business_voice.html';
KW_ARL[KW_ARL.length]='business_internet.html';
//KW_ARL[KW_ARL.length]='business_web.html';
KW_ARL[KW_ARL.length]='business_networking.html';
KW_ARL[KW_ARL.length]='business_bundled.html';
KW_ARL[KW_ARL.length]='residential_television.html';

j=0; // always display first image

if (KW_ARL[j]!='') document.write("<a id='randomURL' name='randomURL' href='"+KW_ARL[j]+"'>");
document.write("<img name='randomSlideShow' src='"+KW_ARI[j]+"' border='0'>");
if (KW_ARL[j]!='') document.write("</a>");

function rndSlideShow(t,l) { // Random Slideshow by Kaosweaver
	x=document.randomSlideShow; y=document.getElementById('randomURL'); j=l;
	while (l==j) { j=parseInt(Math.random()*KW_ARI.length); j=(isNaN(j))?0:j; }
	x.src=KW_ARI[j]; y.href=KW_ARL[j]; setTimeout("rndSlideShow("+t+","+j+")",t);
}

setTimeout("rndSlideShow(15000,0)",15000); // don't swap first image immediately
