/// TEAM Locator slideshow
var initloop = true;
var eltSlideShow;
var eltCaptions;
var eltAds0;
var eltContent;
//var eltTest99;
var maxdivs = 7;
var is = new Is();

var intLeftAlley = 265
var imgHeight = 140
var slideShowTop = '265px;'
var captionTopLine = imgHeight+265 + 'px;'
var adToggle=0;

//User defined variables - change these variables to alter the behaviour of the script
var ImageFolder = "/Images/Ads/"; //Folder name containing the images
var ImageFileNames = new Array('Capstone1L.jpg', 'SportsSpectrumL.jpg'); //List of images to use
var ImageURLs = new Array('http://www.amazon.com/exec/obidos/redirect?tag=brettbcom&path=subst/home/home.html', 'http://www.iplus.zetnet.co.uk/', 'http://www.amazon.com/exec/obidos/redirect?tag=brettbcom&path=subst/home/home.html', 'http://www.iplus.zetnet.co.uk/'); //List of hyperlinks associated with the list of images
var DefaultURL = 'http://www.hspn.net/default.asp'; //Default hyperlink for the Banner Ad
var DisplayInterval = 7; //Number of seconds to wait before the next image is displayed
var TargetFrame = ""; //Name of the frame to open the hyperlink into
//Internal variables (do not change these unless you know what you are doing)

// Defaults: --------
var ctrlMainLooping = 1;
var offsetMainSlideShow = 0;
var MainSlideshowImageNum = 0
var startMainSlideshowImageNum = 0;
var selectedCaptionNum = 0;
var refreshMainSlideShowImage = true;
var intLeftAlley2 = 300;
// ------------------

var IsValidBrowser = false;
var BannerAdCode = 0;
var ciInitIndex = 0;
var Adcounter = 0;
var maxAds = 12;
var maxMainSlideshowImageNum = 53;
var startAd = 0;

var oLayer = eval('eltAds0');
var oSlideShow = eval('eltSlideShow');
var oCaptions = eval('eltCaptions');

DisplayInterval = DisplayInterval * 1000;
//var NumberOfImages = ImageFileNames.length;
var NumberOfImagesa = 39;
var CountofDivs = 27;

//Add a trailing forward slash to the ImageFolder variable if it does not already have one
if (ImageFolder.substr(ImageFolder.length - 1, ImageFolder.length) != "/" && ImageFolder != "") { ImageFolder += "/";}
if (TargetFrame == '')
{
	var FramesObject = null;
}	
else
{
	var FramesObject = eval('parent.' + TargetFrame);
}


function Is ()
{   // convert all characters to lowercase to simplify testing
    var agt=navigator.userAgent.toLowerCase()

    // --- BROWSER VERSION ---
    this.major = parseInt(navigator.appVersion)
    this.minor = parseFloat(navigator.appVersion)

    this.nav  = ((agt.indexOf('mozilla')!=-1) && ((agt.indexOf('spoofer')==-1)
                && (agt.indexOf('compatible') == -1)))
    this.nav2 = (this.nav && (this.major == 2))
    this.nav3 = (this.nav && (this.major == 3))
    this.nav4 = (this.nav && (this.major >= 4))
		
    this.ie   = (agt.indexOf("msie") != -1)
    this.ie3  = (this.ie && (this.major == 2))
    this.ie4  = (this.ie && (this.major == 4))

    this.opera = (agt.indexOf("opera") != -1)
     
    this.nav4up = this.nav && (this.major >= 4)
    //this.nav5up = this.nav4up && (navigator.userAgent.indexOf("Firefox")!=-1)
    this.nav5up = this.nav4up && (navigator.userAgent.indexOf("Firefox") != -1) || this.nav4up && (this.major >= 5)

    this.ie4up  = this.ie  && (this.major >= 4)
}
function init_vars()
	{
		eltSlideShow = getElt("Slideshow");
		eltAds0 = getElt("AdBanner1");
		eltCaptions = getElt("MainCaptions");
		eltContent = getElt("Content");
		//eltWaitBox = getElt("WaitBox");
		//showContent();
	}

function getElt () 
{
 if (is.nav5up) {
    var currentLayer = document.getElementById([getElt.arguments[0]]);
    return currentLayer;
  } 
  else if (is.ie4up ) {
    var elt = eval('document.all.' + getElt.arguments[getElt.arguments.length-1]);
    return(elt);
  }
  else if (is.nav4up) {
	//showit(document.layers[0]);
    var currentLayer = document.layers[getElt.arguments[0]];

    for (var i=1; i<getElt.arguments.length && currentLayer; i++)
    {   currentLayer = currentLayer.document.layers[getElt.arguments[i]];
    }
    return currentLayer;
    }
}

function clearWait() {
	document.all.WaitBox.style.display = 'none';
  document.all.Content.style.visibility = 'visible';
}
function showContent()  {
	var oLayer = eval('eltContent');

	if (is.nav5up)
		{
		oLayer.style.visibility = "visible";
		}
	else if (is.nav4up)
		{
		oLayer.visibility = "visible";
		document.layers[0].visibility = "hidden";
		}
	else
		{
		oLayer.style.visibility = "visible";
		}
}
function showMe(d) {
	var oLayer = eval('eltAds' + d);
	if (is.nav4up)
		{
		oLayer.visibility = "visible";
		}
	else
		{
		oLayer.style.visibility = "visible";
		}
}
var adsF = new Array;
adsF[0] = '<a href="http://www.classicalconversations.com/"><img src="http://www.hspn.net/images/eastcoast/2011/Sponsors/cclogo.jpg" alt="" title= "" width="' + intLeftAlley + '" height="' + imgHeight + '" align="top" hspace="2"  border=1></a><br><font size=1><b>Classical Conversations</b></font><br>';
adsF[1] = '<a href="http://www.classicalconversations.com/"><img src="http://www.hspn.net/images/eastcoast/2011/Sponsors/cclogo.jpg" alt="" title= "" width="' + intLeftAlley + '" height="' + imgHeight + '" align="top" hspace="2"  border=1></a><br><font size=1><b>Classical Conversations</b></font><br>';
adsF[2] = '<a href="http://ecollege.edu/homeschoolers"><img src="http://www.hspn.net/Images/Advertisers/ecclesia.jpg" alt="" title= "" width="' + intLeftAlley + '" height="' + imgHeight + '" align="top" hspace="2"  border=1></a><br><font size=1></font><br>';
adsF[3] = '<a href="http://ecollege.edu/homeschoolers"><img src="http://www.hspn.net/Images/Advertisers/ecclesia.jpg" alt="" title= "" width="' + intLeftAlley + '" height="' + imgHeight + '" align="top" hspace="2"  border=1></a><br><font size=1></font><br>';
adsF[4] = '<a href="http://www.growingupingrace.com"><img src="http://www.hspn.net/Images/Sponsors/GUIGlogo.jpg" alt="" title= "" width="' + intLeftAlley2 + '" height="' + imgHeight + '" align="top" hspace="2"  border=1></a><br><font size=1></font><br>';
adsF[5] = '<a href="http://www.thenccaa.org/"><img src="http://www.hspn.net/images/eastcoast/2011/Sponsors/nccaaweblogo.jpg" alt="" title= "" width="' + intLeftAlley + '" height="' + imgHeight + '" align="top" hspace="2"  border=1></a><br><font size=1><b>National Christian Collegiate Athletic Association</b></font><br>';
adsF[6] = '<a href="http://www.kuyper.edu"><img src="http://www.hspn.net/Images/EastCoast/Sponsors/Casey & Crowd.jpg" alt="" title= "" width="' + intLeftAlley + '" height="' + imgHeight + '" align="top" hspace="2" border=0></a><br><a href="http://www.kuyper.edu"><font size=1><b>Kuyper College</b></a></font>';
adsF[7] = '<a href="/Articles/fullstory.asp?id=5316"><img src="http://www.hspn.net/images/twofiveapparel/twofivelogoweb.jpg" alt="" title= "" width="' + intLeftAlley + '" height="' + imgHeight + '" align="top" hspace="2" border=0></a><br><a href="/Articles/fullstory.asp?id=5316"><font size=2><b>GREAT Uniforms</b></a></font>';
adsF[8] = '<a href="http://www.hspn.net/Insurance/" target=_new><img alt="Homeschool Sports Insurance with National Church Group" title="Homeschool Sports Insurance with National Church Group" src="http://www.hspn.net/Images/Eastcoast/sponsors/ncg.jpg" width="275"  align=top border=0></a><br><center><br><font size=2><b>Get Sports Insurance</b></font></center>';
adsF[9] = '<a href="/Articles/fullstory.asp?id=5316"><img src="http://www.hspn.net/images/twofiveapparel/twofivelogoweb.jpg" alt="" title= "" width="' + intLeftAlley + '" height="' + imgHeight + '" align="top" hspace="2" border=0></a><br><a href="/Articles/fullstory.asp?id=5316"><font size=2><b>GREAT Uniforms</b></a></font>';
adsF[10] = '<a href="/Articles/fullstory.asp?id=5316"><img src="http://www.hspn.net/images/twofiveapparel/twofivelogoweb.jpg" alt="" title= "" width="' + intLeftAlley + '" height="' + imgHeight + '" align="top" hspace="2" border=0></a><br><a href="/Articles/fullstory.asp?id=5316"><font size=2><b>GREAT Uniforms</b></a></font>';
adsF[11] = '<a href="http://www.lifeway.com/" target=_new><img alt="LifeWay Christian Stores" title="LifeWay Christian Stores" src="http://www.hspn.net/Images/EastCoast/Sponsors/lifeway.jpg" width="' + intLeftAlley2 + '" height="' + imgHeight + '" align=top border=0></A>';
adsF[12] = '<a href="http://www.hspn.net/articles/fullstory.asp?id=4981"><img src="http://www.maximumperformancebasketball.net/MPB_files/bookcover_small.jpg" alt="Maximum Performance Basketball by James E. Brown" title= "Maximum Performance Basketball by James E. Brown" width="' + intLeftAlley + '" align="top" hspace="2" border=0 height="200"></a><br>';
/*
adsF[0] = '<p><a href="http://www.hspn.net/ADV/Landing.asp?id=4421" target= "_new"><img src="http://www.hspn.net/images/advocare/excelGel.gif" align="left" height="95" width="110" alt="Electrolyte replacement energy gel" title="Electrolyte replacement energy gel" border="0"></a><font face="Arial" size="2"><b>Excel Gel&#174 - Electrolyte replacement energy gel.</b><br /><a href="http://www.hspn.net/ADV/Landing.asp?id=4421" target= "_new"> Information about Excel Gel&#174 </a><br /></p>';
adsF[1] = '<p><a href="http://www.hspn.net/ADV/Landing.asp?id=4253" target= _new"><img src="http://www.hspn.net/images/Advertisers/myhomeschoolrewardsAdJuly2008.jpg" width="90" height="90" align="left"></a><font face="arial" size="2">Use giftcards for everyday purchases and get cash back<br /><a href="http://www.hspn.net/ADV/Landing.asp?id=4253" target= _new"> more info... </a>  </font></p>'
adsF[2] = '<p><a href="http://www.hspn.net/ADV/Landing.asp?id=4421" target= "_new"><img src="http://www.hspn.net/images/advocare/SPARK.gif" align="left" height="95" width="110" alt="Vitamin and Amino Acid Energy Supplement" title="Vitamin and Amino Acid Energy Supplement" border="0"></a><font face="Arial" size="2"><b>SPARK Energy Drink&#174 - Vitamin and Amino Acid Energy Supplement </b><br /><a href="http://www.hspn.net/ADV/Landing.asp?id=4421" target= "_new"> SPARK Energy Drink&#174 </a><br /></p>';
adsF[3] ='<p><font size="1"><img src="http://www.hspn.net/images/clipart/WOG.jpg" width="110" align="left"><br><b>"Whether therefore ye eat, or drink, or whatsoever ye do, do all to the glory of God" (I Cor. 10:31)</b></p>';
adsF[4] = '<p><img src="http://www.hspn.net/images/clipart/THECross.jpg" align="top" height="95" alt="Amazing Grace! Jesus Paid it All!" title="Amazing Grace! Jesus Paid it All!">Amazing Grace! Jesus Paid it All!</p>';
adsF[5] ='<p><font size="2"><a href="http://www.hspn.net/ADV/Landing.asp?id=4233" target= "_new"><img src="http://www.hspn.net/images/Magnets/eagle.jpg" height="90" width="130" align="left" border="0"></a><br>Customized Car Magnets  Homeschool Friendly Pricing  We put the FUN back in fundraising. Full color, Custom Shapes <a href="http://www.hspn.net/ADV/Landing.asp?id=4233" target= "_new"> more info... </a></p>';
adsF[6] = '<p><a href="http://www.hspn.net/ADV/Landing.asp?id=4253" target= _new"><img src="http://www.hspn.net/images/Advertisers/myhomeschoolrewardsAdJuly2008.jpg" width="90" height="90" align="left"></a><font face="arial" size="2">Use giftcards for everyday purchases and get cash back<br /><a href="http://www.hspn.net/ADV/Landing.asp?id=4253" target= _new"> more info... </a>  </font></p>'
adsF[7] = '<p><a href="http://www.hspn.net/ADV/Landing.asp?id=4230" target= _new"><img src="http://www.hspn.net/images/Marketing/ustw-180x180.jpg" width="90" height="90" align="left"></a><font face="arial" size="2">Need Uniforms?<br />Sports Gear? <br /><a href="http://www.hspn.net/ADV/Landing.asp?id=4230" target= _new"> visit the US TeamWear web-site </a> <i> Please mention "HSPN" </i> </font></p>'
adsF[8] = '<p><a href="http://www.hspn.net/ADV/Landing.asp?id=4421" target= "_new"><img src="http://www.hspn.net/images/advocare/slam.jpg" align="left" height="95" width="110" alt="Sugar-Free Energy Drink" title="Sugar-Free Energy Drink" border="0"></a><font face="Arial" size="2"><b>SLAM&#174 - Sugar-Free Energy Drink.</b><br /><a href="http://www.hspn.net/ADV/Landing.asp?id=4421" target= "_new"> Information about SLAM&#174 </a><br /></p>';
adsF[9] ='<p><font size="1"><a href="http://www.hspn.net/ADV/Landing.asp?id=4234" target= "_new"><img src="http://www.hspn.net/images/Advocare/e_drew_brees2.jpg" height="90" width="170" align="left"></a><br><b>"I feel like <b>AdvoCare</b> products have helped my game and my ability to be more efficient in taking care of my body and being able to maximize the results I\'m looking for..."<a href="http://www.hspn.net/ADV/Landing.asp?id=4234">  more info... </a></p>';
adsF[10] ='<p><font size="1"><img src="http://www.hspn.net/images/clipart/WOG.jpg" width="110" align="left"><br><b>"Whether therefore ye eat, or drink, or whatsoever ye do, do all to the glory of God" (I Cor. 10:31)</b></p>';
adsF[11] = '<p><img src="http://www.hspn.net/images/clipart/createawebsite.jpg" align="left" height="95" width="110" alt="Let HSPN Create Your Team Web-site" title="Let HSPN Create Your Team Web-site"><font face="Arial" size="2"><b>Let HSPN create your Team Web-site.</b><br /><a href="http://www.hspn.net/ADV/Landing.asp?id=4232"> see sample</a><br /><br />Call 540 636 3713</p>';
adsF[12] ='<p><font size="1"><a href="http://www.hspn.net/ADV/Landing.asp?id=4234" target= "_new"><img src="http://www.hspn.net/images/Advocare/e_drew_brees2.jpg" height="90" width="170" align="left"></a><br><b>"I feel like <b>AdvoCare</b> products have helped my game and my ability to be more efficient in taking care of my body and being able to maximize the results I\'m looking for..."<a href="http://www.hspn.net/ADV/Landing.asp?id=4234">  more info... </a></p>';
adsF[13] = '<p><img src="http://www.hspn.net/images/clipart/THECross.jpg" align="top" height="95" alt="Amazing Grace! Jesus Paid it All!" title="Amazing Grace! Jesus Paid it All!">Amazing Grace! Jesus Paid it All!</p>';
adsF[14] ='<p><font size="1"><a href="http://www.hspn.net/ADV/Landing.asp?id=4234" target= "_new"><img src="http://www.hspn.net/images/Advocare/e_michael_smith.jpg" height="90" width="170" align="left"></a><br><b>"What I would love to do with AdvoCare is to use my platform and influence to help people take better care of themselves. Here is a great company with great products that can help you change your life."<a href="http://www.hspn.net/ADV/Landing.asp?id=4234">  more info... </a></p>';
adsF[15] ='<p><font size="2"><a href="http://www.hspn.net/ADV/Landing.asp?id=4233" target= "_new"><img src="http://www.hspn.net/images/Magnets/eagle.jpg" height="90" width="130" align="left" border="0"></a><br>Customized Car Magnets  Homeschool Friendly Pricing  We put the FUN back in fundraising. Full color, Custom Shapes <a href="http://www.hspn.net/ADV/Landing.asp?id=4233" target= "_new"> more info... </a></p>';
adsF[16] = '<p><img src="http://www.hspn.net/images/clipart/THECross.jpg" align="top" height="95" alt="Amazing Grace! Jesus Paid it All!" title="Amazing Grace! Jesus Paid it All!">Amazing Grace! Jesus Paid it All!</p>';
adsF[17] = '<p><img src="http://www.hspn.net/images/clipart/createawebsite.jpg" align="left" height="95" width="110" alt="Let HSPN Create Your Team Web-site" title="Let HSPN Create Your Team Web-site"><font face="Arial" size="2"><b>Let HSPN create your  Team Web-site.</b><br /><a href="http://www.hspn.net/ADV/Landing.asp?id=4232"> see sample</a><br /><br />Call 540 636 3713</p>';
adsF[18] = '<p><a href="http://www.hspn.net/ADV/Landing.asp?id=4421" target= "_new"><img src="http://www.hspn.net/images/advocare/slam.jpg" align="left" height="95" width="110" alt="Sugar-Free Energy Drink" title="Sugar-Free Energy Drink" border="0"></a><font face="Arial" size="2"><b>SLAM&#174 - Sugar-Free Energy Drink.</b><br /><a href="http://www.hspn.net/ADV/Landing.asp?id=4421" target= "_new"> Information about SLAM&#174 </a><br /></p>';
adsF[19] = '<p><a href="http://www.hspn.net/ADV/Landing.asp?id=4230" target= _new"><img src="http://www.hspn.net/images/Marketing/ustw-180x180.jpg" width="90" height="90" align="left"></a><font face="arial" size="2">Need Uniforms?<br />Sports Gear? <br /><a href="http://www.hspn.net/ADV/Landing.asp?id=4230" target= _new"> visit the US TeamWear web-site </a> <i> Please mention "HSPN" </i> </font></p>'
adsF[20] = '<p><a href="http://www.hspn.net/ADV/Landing.asp?id=4253" target= _new"><img src="http://www.hspn.net/images/Advertisers/myhomeschoolrewardsAdJuly2008.jpg" width="90" height="90" align="left"></a><font face="arial" size="2">Use giftcards for everyday purchases and get cash back<br /><a href="http://www.hspn.net/ADV/Landing.asp?id=4253" target= _new"> more info... </a>  </font></p>'
adsF[21] = '<p><a href="http://www.hspn.net/ADV/Landing.asp?id=4253" target= _new"><img src="http://www.hspn.net/images/Advertisers/myhomeschoolrewardsAdJuly2008.jpg" width="90" height="90" align="left"></a><font face="arial" size="2">Use giftcards for everyday purchases and get cash back<br /><a href="http://www.hspn.net/ADV/Landing.asp?id=4253" target= _new"> more info... </a>  </font></p>'
*/


var aSlideShow = new Array;
aSlideShow[0] = '<img src="http://www.hspn.net/images/teamlogos/flames_A.gif" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[1] = '<img src="http://www.hspn.net/images/teamlogos/cougars.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[2] = '<img src="http://www.hspn.net/images/teamlogos/CincTrailblazers.gif" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[3] = '<img src="http://www.hspn.net/images/teamlogos/chenlogo.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[4] = '<img src="http://www.hspn.net/images/teamlogos/greensboro.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[5] = '<img src="http://www.hspn.net/images/teamlogos/heatlogoL.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[6] = '<img src="http://www.hspn.net/images/teamlogos/SpiritBasketball.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[7] = '<img src="http://www.hspn.net/images/teamlogos/LionsFootballVA.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[8] = '<img src="http://www.hspn.net/images/teamlogos/LandmarkEagle2.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[9] = '<img src="http://www.hspn.net/images/teamlogos/IndyWildcats.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[10] = '<img src="http://www.hspn.net/images/teamlogos/hiseagleslogo.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[11] = '<img src="http://www.hspn.net/images/teamlogos/logo2knights.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[12] = '<img src="http://www.hspn.net/images/teamlogos/FWGuardLogo.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[13] = '<img src="http://www.hspn.net/images/teamlogos/HurricaneLogo.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[14] = '<img src="http://www.hspn.net/images/teamlogos/EuroclydonStorm.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[15] = '<img src="http://www.hspn.net/Images/teamlogos/Upstate-Eagleslogo.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[16] = '<img src="http://www.hspn.net/Images/teamlogos/LoudounCountyPatriotsLogo.JPG"" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[17] = '<img src="http://www.hspn.net/Images/teamlogos/NewLifeStormLogo.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[18] = '<img src="http://www.hspn.net/Images/teamlogos/Ladyflameslogo.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[19] = '<img src="http://www.hspn.net/Images/teamlogos/fhskingslogo.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[20] = '<img src="http://www.hspn.net/Images/teamlogos/thunder_logo.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[21] = '<img src="http://www.hspn.net/Images/teamlogos/charlotteswarmlogo.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[22] = '<img src="http://www.hspn.net/Images/teamlogos/FayettevilleCrusaders.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[23] = '<img src="http://www.hspn.net/Images/teamlogos/STACAlogo.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[24] = '<img src="http://www.hspn.net/Images/teamlogos/DefendersWichita.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[25] = '<img src="http://www.hspn.net/Images/teamlogos/GeorgiaForce.gif" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[26] = '<img src="http://www.hspn.net/images/teamlogos/WildcatsMCAC.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[27] = '<img src="http://www.hspn.net/images/teamlogos/PrincetonDisciple.gif" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[28] = '<img src="http://www.hspn.net/images/teamlogos/BellCountyTX.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[29] = '<img src="http://www.hspn.net/images/teamlogos/GCAAStallionsLogo2.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[30] = '<img src="http://www.hspn.net/images/teamlogos/CharlotteStampede.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[31] = '<img src="http://www.hspn.net/images/teamlogos/fhehawks2.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[32] = '<img src="http://www.hspn.net/images/teamlogos/DIA logo.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[33] = '<img src="http://www.hspn.net/images/teamlogos/aabklogo4.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[34] = '<img src="http://www.hspn.net/images/teamlogos/fcafalcons.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[35] = '<img src="http://www.hspn.net/images/teamlogos/tnheatbball2.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[36] = '<img src="http://www.hspn.net/images/teamlogos/ehalogo.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[37] = '<img src="http://www.hspn.net/images/teamlogos/csrawarriors.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[38] = '<img src="http://www.hspn.net/images/teamlogos/spiritsoftball.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[39] = '<img src="http://www.hspn.net/images/teamlogos/James%20River%20Eagles.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[40] = '<img src="http://www.hspn.net/images/teamlogos/FFAI.JPG" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[41] = '<img src="http://www.hspn.net/images/teamlogos/MorrisCountySonsLogo1.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[42] = '<img src="http://www.hspn.net/images/teamlogos/DurhamFlight.JPG" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[43] = '<img src="http://www.hspn.net/images/teamlogos/titanslogo.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[44] = '<img src="http://www.hspn.net/images/teamlogos/cavalierfootball.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[45] = '<img src="http://www.hspn.net/images/teamlogos/ftwaynepanthers.gif" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[46] = '<img src="http://www.hspn.net/images/teamlogos/blazerlogo.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[47] = '<img src="http://www.hspn.net/images/teamlogos/scarletknights.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[48] = '<img src="http://www.hspn.net/images/teamlogos/saintsbaseball.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[49] = '<img src="http://www.hspn.net/images/teamlogos/noahjags.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[50] = '<img src="http://www.hspn.net/images/teamlogos/monarchs.gif" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[51] = '<img src="http://www.hspn.net/images/teamlogos/gastonbulls.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[52] = '<img src="http://www.hspn.net/images/teamlogos/r5bplastic.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
aSlideShow[53] = '<img src="http://www.hspn.net/images/teamlogos/hurricanesCCA.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';



/*Boys_JV_3A_2nd.jpg" width=499 align=bottom>
BoysJV3A3rd.jpg" width=499 align=bottom>
BoysJV2A1st.jpg" width=499 align=bottom>
BoysJV2A2nd.jpg" width=499 align=bottom>
BoysJV2A3rd.jpg" width=499 align=bottom>
BoysJV2A1st.jpg" width=399 align=bottom>
BoysJV2A2nd.jpg" width=399 align=bottom>
JVBoys3rd.jpg" width=399 align=bottom>
BoysJH1A1st.jpg" width=399 align=bottom>
BoysJH1A2nd.jpg" width=399 align=bottom>
BoysJH1A3rd.jpg" width=399 align=bottom> */



var aCaptions = new Array;
var majStyle40 =   ' style= "font-face:Credit Valley, Arial; font-size: 16pt; color:#455342;"'    //#616e65
var minorStyle40 = ' style= "font-face:Bookman OldStyle, Arial;font-size: 12pt; color:#455342;"'   //#4e5543

var majStyle41 =   ' style= "font-face:Credit Valley, Arial; font-size: 16pt; color:#f24a26;"'
var minorStyle41 = ' style= "font-face:Bookman OldStyle, Arial;font-size: 12pt; color:#f24a26;"'  //#515390

var majStyle42 =   ' style= "font-face:Credit Valley, Arial; font-size: 16pt; color:#343932;"'
var minorStyle42 = ' style= "font-face:Bookman OldStyle, Arial;font-size: 12pt; color:#343932;"'

var majStyle43 =   ' style= "font-face:Credit Valley, Arial; font-size: 16pt; color:#3f2f22;"'
var minorStyle43 = ' style= "font-face:Bookman OldStyle, Arial;font-size: 12pt; color:#3f2f22;"'

var majStyle44 =   ' style= "font-face:Credit Valley, Arial; font-size: 16pt; color:#1c1a1f;"'
var minorStyle44 = ' style= "font-face:Bookman OldStyle, Arial;font-size: 12pt; color:#1c1a1f;"'

var majStyle45 =   ' style= "font-face:Credit Valley, Arial; font-size: 16pt; color:#343932;"'
var minorStyle45 = ' style= "font-face:Bookman OldStyle, Arial;font-size: 12pt; color:#343932;"'


// image #40
aCaptions[0] = '<a href="http://www.hspn.net/default2008a.asp" ' + majStyle40 + '><b>Ways to <br>Get Started </b></a>';
aCaptions[0] = aCaptions[0] + '<br><br><br><a href="http://www.hspn.net/default2008a.asp" ' + minorStyle40 + '>Start Your Own <br>Sports Program</a>';
aCaptions[0] = aCaptions[0] + '<br><br><br><a href="http://www.hspn.net/default2008a.asp" ' + minorStyle40 + '>Resource: "Getting <br>Started" Handbook</a>';

// image #41
aCaptions[1] = '<a href="http://www.hspn.net/default2008a.asp" ' + majStyle41 + '><b>Ways to <br>Get Started </b></a>';
aCaptions[1] = aCaptions[1] + '<br><br><br><a href="http://www.hspn.net/default2008a.asp" ' + minorStyle41 + '>Get Your <br> Kids Involved </a>';
aCaptions[1] = aCaptions[1] + '<br><br><br><a href="http://www.hspn.net/default2008a.asp" ' + minorStyle41 + '>Attend a Summer <br>Workshop</a>';

// image #42
aCaptions[2] = '<a href="http://www.hspn.net/default2008a.asp"' + majStyle42 + '><b>Our Team <br>Locator System </b></a> ';
aCaptions[2] = aCaptions[2] + '<br><br><br><a href="http://www.hspn.net/default2008a.asp" ' + minorStyle42 + '>Find Any Team <br>in the USA</a>';
aCaptions[2] = aCaptions[2] + '<br><br><br><a href="http://www.hspn.net/default2008a.asp" ' + minorStyle42 + '>Post a Note to <br>a Coach or <br>Sports Leader</a>';

// image #43 - 40
aCaptions[3] = '<a href="http://www.hspn.net/default2008a.asp" ' + majStyle43 + '><b>Our Team <br>Locator System </b></a> ';
aCaptions[3] = aCaptions[3] + '<br><br><br><a href="http://www.hspn.net/default2008a.asp" ' + minorStyle43 + '>Post Your <br>Team Information</a>';
aCaptions[3] = aCaptions[3] + '<br><br><br><a href="http://www.hspn.net/default2008a.asp" ' + minorStyle43 + '>Post Your <br>Game Schedules</a>';

// image #44 
aCaptions[4] = '<a href="http://www.hspn.net/default2008a.asp" ' + majStyle44 + '><b>Experience <br>the Opportunities </b></a>';
aCaptions[4] = aCaptions[4] + '<br><br><br><a href="http://www.hspn.net/default2008a.asp" ' + minorStyle44 + '>Homeschool Tournaments and <br>Championships</a>';
aCaptions[4] = aCaptions[4] + '<br><br><br><a href="http://www.hspn.net/default2008a.asp" ' + minorStyle44 + '>Sports Camps<br>for Homeschoolers</a>';

//#image #45
aCaptions[5] = '<a href="http://www.hspn.net/default2008a.asp" ' + majStyle45 + '><b>Experience <br>the Opportunities </b></a>';
//aMainCaptions[5] = aMainCaptions[5] + '<br><br><a href="http://www.hspn.net/default2008a.asp" ' + minorStyle3 + '>Tournaments and Sporting Events</a>';
//aMainCaptions[5] = aMainCaptions[5] + '<br><br><a href="http://www.hspn.net/default2008a.asp" ' + minorStyle3 + '>Sports Camps</a>';
aCaptions[5] = aCaptions[5] + '<br><br><br><a href="http://www.hspn.net/default2008a.asp" ' + minorStyle45 + '>HSPN Team <br>Membership</a>';
aCaptions[5] = aCaptions[5] + '<br><br><br><a href="http://www.hspn.net/default2008a.asp" ' + minorStyle45 + '>General Liability-<br>Medical Insurance</a>';


//JavaScript Banner Ad Rotator version 2.1 - last modified 16 November 2000
//Obtained from http://www.brettb.com/js_banner_ad_rotator.asp
//Email comments or suggestions using the form at http://www.brettb.com/Contact.asp
//If you want a version of this script that will open links in a new browser window
//then please visit http://www.winnershtriangle.com/w/Products.JavaScriptBannerAdRotator.asp


function InitializeSlideshow() 
{
	//Determine the browser name and version
	//The script will only work on Netscape 3+ and Internet Explorer 4+
	var BrowserType = navigator.appName;	
	var BrowserVersion = parseInt(navigator.appVersion);

	if (BrowserType == "Netscape" && (BrowserVersion >= 3)) 
	{
		IsValidBrowser = true;
		//alert(IsValidBrowser);
	}

	if (BrowserType == "Microsoft Internet Explorer" && (BrowserVersion >= 4)) 
	{
		IsValidBrowser = true;
	}
	if (IsValidBrowser) 
	{
		document.TimerObject = setTimeout("ChangeImage('',maxMainSlideshowImageNum,startMainSlideshowImageNum, refreshMainSlideShowImage)", 0);
    document.TimerObject = setTimeout("ChangeImagea('',maxAds, startAd)", 0);

	}
}

function ChangeImage(preF, maxImageNum, startImageNum, refresh)
{
	//setMainSlideshow();
	
	if (IsValidBrowser)
		{
			// ----------- call to change slide show image ----
			//alert(MainSlideshowImageNum+','+ctrlMainLooping+','+imageWithinSlideShowPanelCounter+','+selectedCaptionNum);
			showFlash(MainSlideshowImageNum , selectedCaptionNum, refreshMainSlideShowImage);
			selectedCaptionNum++;
			MainSlideshowImageNum++;			
			 if (MainSlideshowImageNum > maxMainSlideshowImageNum)	
				{
					MainSlideshowImageNum = 0;
					selectedCaptionNum = 0;
				}
			if (adToggle > 0)
				{
				document.TimerObject = setTimeout("ChangeImagea('',maxAds, startAd)", 0);
				adToggle = 0;
				}
			else
				{
				adToggle = 1;
				}
			document.TimerObject = setTimeout("ChangeImage('', maxMainSlideshowImageNum, startMainSlideshowImageNum)", DisplayInterval);
		}
}

function ChangeImagea(preF, maxI, initIndex) {

	if (IsValidBrowser)
	 {
		Adcounter = Adcounter + 1;
		if (Adcounter > maxI)
		{
			Adcounter = initIndex;
		}
		showAda(Adcounter);
	}
}

function showAda(d)
{
oLayer = eval('eltAds0');
if (IsValidBrowser)
{
		oLayer.innerHTML = adsF[d];
		oLayer.style.visibility = "visible";
}
}

function showFlash(d,o,refresh)
{

	//alert(d +','+o+','+refresh);
	document.getElementById("MainCaptions").style.visibility="hidden";
	document.getElementById("MainCaptions").style.backgroundColor="transparent";
	document.getElementById("MainCaptions").style.left="5px";
	document.getElementById("MainCaptions").style.top="485px";
	document.getElementById("MainCaptions").style.width="280px";
	document.getElementById("MainCaptions").style.position="absolute";

	document.getElementById("Slideshow").style.visibility="hidden";
	document.getElementById("Slideshow").style.backgroundColor="transparent";
	document.getElementById("Slideshow").style.left="15px";
	document.getElementById("Slideshow").style.top= "295px";
	document.getElementById("Slideshow").style.width="280px";
	document.getElementById("Slideshow").style.position="absolute";


	oSlideShow = eval('eltSlideShow');
	oCaptions = eval('eltCaptions');

	if (IsValidBrowser)
	{
		//setMainSlideshow();
		//oCaptions.style.visibility = "visible";
		//oCaptions.innerHTML = '<p>Photo<br><br>is<br><br>Loading.....</p>';

		if (refresh)
		{
			//oSlideShow.innerHTML = '<p>Photo<br><br>is<br><br>Loading.....</p>';
			oSlideShow.style.visibility = "visible";
			oSlideShow.innerHTML = aSlideShow[d];
			oSlideShow.style.visibility = "visible";
		}
		//oCaptions.style.visibility = "visible";
		//oCaptions.innerHTML = aCaptions[o];
    //document.getElementById("MainCaptions").style.visibility="visible";
	}
}


function setMainSlideshow() {
 if (MainSlideshowImageNum = maxMainSlideshowImageNum)	
	{
		MainSlideshowImageNum = 0;
		selectedCaptionNum = 0;
	}
}
function setSlideShowDefaults(val)
{
	ctrlMainLooping = val;
	ctrlMainPanelLooping =0;
	offsetMainSlideShow = 0;
	imageWithinSlideShowPanelCounter =0;
	MainSlideshowImageNum = 40+(6*(val-1));
	startMainSlideshowImageNum = MainSlideshowImageNum;
	selectedCaptionNum = 6*(val-1);
	refreshMainSlideShowImage = true;

}

