/// 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 = 220
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 = 5; //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 IsValidBrowser = false;
var BannerAdCode = 0;
var ciInitIndex = 0;
var Adcounter = 0;
// ------------------------------
var maxAds = 31;
var maxMainSlideshowImageNum = 40;
// -------------------------------
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.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/2010ectLogoMG3.jpg" width="300" align=top border=0><br><center><font face="Arial" size="2" color="black"><b>Official Tournament Logo</b></center></A>';
adsF[1] = '<a href="http://www.scoreinternational.org" target= "_new"><img src="http://www.hspn.net/Images/EastCoast/Sponsors/Score Logo Color.jpg" width="300" align=top border=0><br><center><font face="Arial" size="2" color="black"><b>SCORE International</b></center></A>';
adsF[2] = '<a href="SGLandingPage.asp" target=_new><img src="http://www.hspn.net/images/eastcoast/2010/SundaeGrillBurger.jpg" width="300" align=top border=0><br><center><font face="Arial" size="2" color="black"><b>Sundae Grill is the Official Tournament Food Concessionnaire.<br><br><a href="SGLandingPage.asp" target = _new><font color="red">They\'re giving you $5 worth of FREE Food!!!</font></a></b></center></A>';
adsF[3] = '<a href="http://www.discoverlynchburg.org" target= "_new"><img src="http://www.hspn.net/Images/EastCoast/2010/discoverlynchburg.jpg" width="300" align=top border=0><br><center><font face="Arial" size="2" color="black"><b>Discover Lynchburg</b></center></A>';
adsF[4] = '<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="300"  align=top border=0></A>';
adsF[5] = '<a href="http://www.kirkleyhotel.com" target=_new><img alt="Kirkley Hotel is the Tournament Headquarters" title="irkley Hotel is the Tournament Headquarters" src="http://www.hspn.net/Images/Eastcoast/2010/kirkley463 logo.JPG" width="300"  align=top border=0></a><br><center><br><font size=2><b>Kirkley Hotel is the Tournament Headquarters</b></font></center>';
adsF[6] = '<a href="SGLandingPage.asp"  target=_new><img src="http://www.hspn.net/images/eastcoast/2010/SundaeGrillIcecream.jpg" width="300" align=top border=0><br><center><font face="Arial" size="2" color="black"><b>Sundae Grill is the Official Tournament Food Concessionnaire.<br><a href="SGLandingPage.asp"  target=_new><font color=red">Get Your FREE Food!</font></a></b></center></A>';
adsF[7] = '<a href="SGLandingPage.asp"  target=_new><img src="http://www.hspn.net/images/eastcoast/2010/SundaeGrillIcecream.jpg" width="300" align=top border=0><br><center><font face="Arial" size="2" color="black"><b>Sundae Grill is the Official Tournament Food Concessionnaire.<br><a href="SGLandingPage.asp"  target=_new><font color=red">Get Your FREE Food!</font></a></b></center></A>';
adsF[8] = '<a href="#offers"><img src="http://www.hspn.net/images/eastcoast/2010/badenlogoball2.jpg" width="300" align=top border=0></a><br><center><br><font size=2><b>Baden ("bah-din") Basketball signs on as the Official Basketball of the 2010 East Coast Tournament<br><a href="#offers"><font color=blue><b>New Offer from Baden</b></a></font></center>';
adsF[9] = '<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/2010ectLogoMG3.jpg" width="300" align=top border=0><br><center><font face="Arial" size="2" color="black"><b>Official Tournament Logo</b></center></A>';
adsF[10] = '<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/2010ectLogoMG3.jpg" width="300" align=top border=0><br><center><font face="Arial" size="2" color="black"><b>Official Tournament Logo</b></center></A>';
adsF[11] = '<a href="#offers"><img src="http://www.hspn.net/images/eastcoast/2010/packtherack.jpg" width="300" align=top border=0></a><br><center><br><font size=2><b>Baden ("bah-din") Basketball signs on as the Official Basketball of the 2010 East Coast Tournament<br><a href="#offers"><font color=blue><b>New Offer from Baden</b></a></font></center>';
adsF[12] = '<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="300"  align=top border=0></A>';
adsF[13] = '<a href="http://www.sundaegrill.com/"><img src="http://www.hspn.net/images/eastcoast/2010/SundaeGrillSeating.jpg" width="300" align=top border=0><br><center><font face="Arial" size="2" color="black"><b>Sundae Grill is the Official Tournament Food Concessionnaire.<br><a href="http://www.sundaegrill.com/">Check out their web-site</a></b></center></A>';
adsF[14] = '<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/2010ectLogoMG3.jpg" width="300" align=top border=0><br><center><font face="Arial" size="2" color="black"><b>Official Tournament Logo</b></center></A>';
adsF[15] = '<a href="#offers"><img src="http://www.hspn.net/Images/EastCoast/2010/mySportsDream.gif" width="300" align=top border=0></a><br><center><br><font size=2><b>Easy Fundraising for Teams.<br><a href="#offers"><font color=blue><b>info...</b></a></font></center>';
adsF[16] = '<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/2010ectLogoMG3.jpg" width="300" align=top border=0><br><center><font face="Arial" size="2" color="black"><b>Official Tournament Logo</b></center></A>';
adsF[17] = '<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="300"  align=top border=0></A>';
adsF[18] = '<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/2010ectLogoMG3.jpg" width="300" align=top border=0><br><center><font face="Arial" size="2" color="black"><b>Official Tournament Logo</b></center></A>';
adsF[19] = '<a href="http://www.hspn.net/Insurance/" target=_new><img alt="LifeWay Christian Stores" title="LifeWay Christian Stores" src="http://www.hspn.net/Images/Eastcoast/sponsors/ncg.jpg" width="300"  align=top border=0></a><br><center><br><font size=2><b>Get Sports Insurance</b></font></center>';
adsF[20] = '<a href="http://www.kirkleyhotel.com" target=_new><img alt="Kirkley Hotel is the Tournament Headquarters" title="irkley Hotel is the Tournament Headquarters" src="http://www.hspn.net/Images/Eastcoast/2010/kirkley463 logo.JPG" width="300"  align=top border=0></a><br><center><br><font size=2><b>Kirkley Hotel is the Tournament Headquarters</b></font></center>';
adsF[21] = '<a href="#offers"><img src="http://www.hspn.net/images/eastcoast/2010/captainu.jpg" width="200" align=top border=0></a><br><center><br><font size=2><br><a href="#offers"><font color=blue><b>Check out CaptainU.com</b></a></font></center>';
adsF[22] = '<img src="http://www.hspn.net/images/eastcoast/2010/SheetzLogoNew.jpg" width="300" align=top border=0></a><br><center><br><font size=2><br><font color=blue><b></b></font></center>';
// Bryan College
adsF[23]='<a href="http://www.bryan.edu"><img src="http://www.hspn.net/images/eastcoast/sponsors/Adm-2010-HSPN-web-banner.jpg" alt="" title= "" width="' + intLeftAlley + '" height="' + imgHeight + '" align="top" hspace="2" border=0></a><br><font size=1><b></b></font>';
// OBlock Books
adsF[24]='<a href="http://www.oblockbooks.com"><img src="http://www.hspn.net/images/sponsors/OblockBookslogo4.jpg" alt="" title= "" width="' + intLeftAlley + '" height="' + imgHeight + '" align="top" hspace="2" border=0></a><br><font size=1><b></b></font>';
// My Sports Dream
adsF[25]='<a href="http://www.hspn.net/Articles/default.asp?a=fundraising"><img src="http://www.hspn.net/Images/EastCoast/2010/mySportsDream.gif" alt="" title= "" width="' + intLeftAlley + '" height="' + imgHeight + '" align="top" hspace="2" border=0></a><br><font size=1><b>Easy Fundraising for Teams. <a href="http://www.hspn.net/Articles/default.asp?a=fundraising"><b>info...</b></a></font>';
adsF[26]='<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"></a><br><center><br><font size=2><b>Kuyper College</b></font></center>';
adsF[27]='<a href="http://www.judsonu.edu"><img src="http://www.hspn.net/Images/EastCoast/Sponsors/judsonHSPN.jpg"  alt="" title= "" width="' + intLeftAlley + '" height="' + imgHeight + '" align="top" hspace="2"></a><br><center><br><font size=2><b>Judson University</b></font></center>';
adsF[28]='<a href="http://www.tutoringone.com"><img src="http://www.hspn.net/Images/EastCoast/Sponsors/tutoringone.jpg"  alt="" title= "" width="' + intLeftAlley + '" height="' + imgHeight + '" align="top" hspace="2"></a><br><center><br><font size=2><b>TutoringOne.com</b></font></center>';
adsF[29]='<a href="http://www.yourstorystartsnow.com"><img src="http://www.hspn.net/Images/EastCoast/Sponsors/heritagemakers.jpg"  alt="" title= "" width="' + intLeftAlley +  ' align="top" hspace="2"></a><br><center><br><font size=2><b>Publishing all your <a href=http://www.heritagemakers.com/projectBrowserBWC.cfm?projectID=a5ca3ead-6da4-42a5-b3ba-87a0cf5b7cde&productID=5> SPORTS </a> and <a href=http://www.heritagemakers.com/projectBrowserStandAlone.cfm?projectID=699882&productId=5> HOMESCHOOL </a>needs.</b></font></center>';
adsF[30]='<img src="http://www.hspn.net/Images/EastCoast/Sponsors/Wingatelogo.jpg"  alt="" title= "" width="' + intLeftAlley +  ' align="top" hspace="2">';
adsF[31]='<img src="http://www.hspn.net/Images/EastCoast/Sponsors/Days Inn New Logo.jpg"  alt="" title= "" width="' + intLeftAlley +  ' align="top" hspace="2">';

//adsF[2] = '<a href="http://www.hspn.net/showcase/?showcase=0" target=_new><img alt="" title="" src="http://www.hspn.net/Images/theShowCase/LindenfogProductions/ChristianFreedomInternationalNepal.jpg" width="110" height="99" align=left border=0></A><b>Christian Freedom International</b>';
//adsF[3] = '<a href="http://www.hspn.net/showcase/?showcase=1" target=_new><img alt="" title="" src="http://www.hspn.net/Images/theShowCase/LindenfogProductions/OnCourtPlayerDevelopment1.JPG" width="300" height="150" align=top border=0><b>Player Development and Training</b></A>';
//adsF[4] = '<a href="http://www.hspn.net/ADV/Landing.asp?id=4333" target= "_new" alt="This company helps your team raise money for tournament and travel expenses ..."><img alt="Want to get the funds to get you to the tournament? Check these guys out!" src="http://www.hspn.net/Images/EastCoast/Sponsors/mysportsdream.gif" width="110" height="99" align=left border="0"></a></font>';
//adsF[5] = '<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="110" height="99" align=top border=0></A>';
//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]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/SlamDunk/SlamDunkiso.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[1]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/SlamDunk/SlamDunkiso.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[2]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/Feedback/2010Watermarkfadetesttestm1.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[3]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/Champions/Boys7AChamps.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[4]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/Champions/Boys6AChamps.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[5]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/Champions/Boys5AChamps.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[6]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/Champions/Boys4AChamps.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[7]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/Champions/Boys3AChamps.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[8]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/Champions/Boys2AChamps.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[9]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/Feedback/2010Watermarkfadetesttestm2.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[10]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/Champions/BoysAChamps.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[11]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/Champions/Girls4AChamps.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[12]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/Champions/Girls3AChamps.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[13]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/Champions/Girls2AChamps.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[14]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/Champions/GirlsAChamps.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[15]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/Champions/BoysJV3AChamps.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[16]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/Champions/BoysJV2AChamps.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[17]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/Feedback/2010Watermarkfadetesttestm3.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[18]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/Champions/BoysJVAChamps.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[19]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/Champions/BoysMSChamps.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[20]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/2010ectLogoMG3.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[21]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/MVP/MVPGirls.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[22]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/MVP/MVPJV.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[23]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/MVP/MVPVarsity.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[24]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/AllTournamentGirls/GirlsAllTournamentTeam.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[25]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/Feedback/2010Watermarkfadetesttestm4.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[26]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/AllTournamentBoys/BoysAllTournamentTeam.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[27]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/SlamDunk/SlamDunkiso.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[28]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/SlamDunk/SlamDunkWinner.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[29]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/3pt/3-pt11UWinner.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[30]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/Feedback/2010Watermarkfadetesttestm1.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[31]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/3pt/3-ptGirls15UChamp.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[32]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/3pt/3-ptGirls19UChamp.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[33]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/3pt/3-ptBoys15UChamp.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[34]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/Feedback/2010Watermarkfadetesttestm2.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[35]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/3pt/3-ptBoys19UChamp.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[36]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/3pt/3-ptAdultChamp.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[37]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/3pt/3-ptFunny.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[38]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/Coaches/CoachesPickup.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[39]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/Feedback/2010Watermarkfadetesttestm3.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
aSlideShow[40]='<a href="http://www.hspn.net/events/eastcoasttourney2010.asp"><img src="http://www.hspn.net/images/eastcoast/2010/Feedback/2010Watermarkfadetesttestm4.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';

//aSlideShow[1]='<a href="http://www.hspn.net/events/eastcoasttourney2009.asp"><img src="http://www.hspn.net/images/EastCoast/2009/SlamDunk4.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
//aSlideShow[3]='<a href="http://www.hspn.net/events/eastcoasttourney2009.asp"><img src="http://www.hspn.net/Images/EastCoast/Marketing/2009Testimonial8.jpg"  alt="" title= "" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
//aSlideShow[5]='<a href="http://www.hspn.net/events/eastcoasttourney2009.asp"><img src="http://www.hspn.net/images/EastCoast/2009/Girls4A1st.jpg"  alt="" title= "" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
//aSlideShow[7]='<a href="http://www.hspn.net/events/eastcoasttourney2009.asp"><IMG src="http://www.hspn.net/Images/EastCoast/Marketing/VinesFloor.jpg"  alt="Home of the East Coast Homeschool Basketball Championships"  title="Home of the East Coast Homeschool Basketball Championships" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
//aSlideShow[8]='<a href="http://www.hspn.net/events/eastcoasttourney2009.asp"><img src="http://www.hspn.net/Images/EastCoast/Marketing/2009Testimonial2.jpg"  alt="" title= "" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
//aSlideShow[9]='<a href="http://www.hspn.net/events/eastcoasttourney2009.asp"><img src="http://www.hspn.net/Images/EastCoast/2009/AllStarGirls.jpg"  alt="All-Star Girls Team from the 2009 East Coast Homeschool Basketball Championships" title= "All-Star Girls Team from the 2009 East Coast Homeschool Basketball Championships" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
//aSlideShow[10]='<a href="http://www.hspn.net/events/eastcoasttourney2009.asp"><img src="http://www.hspn.net/Images/EastCoast/2009/AllStarBoys.jpg"  alt="All-Star Boys Team from the 2009 East Coast Homeschool Basketball Championships" title= "All-Star Boys Team from the 2009 East Coast Homeschool Basketball Championships" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
//aSlideShow[11]='<a href="http://www.hspn.net/events/eastcoasttourney2009.asp"><img src="http://www.hspn.net/Images/EastCoast/Marketing/2009Testimonial1.jpg"  alt="" title= "" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
//aSlideShow[12]='<a href="http://www.hspn.net/events/eastcoasttourney2009.asp"><img src="http://www.hspn.net/Images/EastCoast/2009/TrophiesTable.jpg"  alt="Customized Trophies feature Tournament Logo" title= "Customized Trophies feature Tournament Logo" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
//aSlideShow[13]='<a href="http://www.hspn.net/events/eastcoasttourney2009.asp"><img src="http://www.hspn.net/Images/EastCoast/2009/CoachesNorthWins.jpg"  alt="Coaches \'North\' team comes from behind to win" title= "Coaches \'North\' team comes from behind to win" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
//aSlideShow[14]='<a href="http://www.hspn.net/events/eastcoasttourney2009.asp"><IMG src="http://www.hspn.net/Images/EastCoast/2009/Boys5A1st.jpg"  alt="" title="" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
//aSlideShow[15]='<a href="http://www.hspn.net/events/eastcoasttourney2009.asp"><img src="http://www.hspn.net/Images/EastCoast/2009/Boys5A2nd.jpg"  alt="Varsity Boys 5A - 2nd Place" title= "Varsity Boys 5A - 2nd Place" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
//aSlideShow[16]='<a href="http://www.hspn.net/events/eastcoasttourney2009.asp"><img src="http://www.hspn.net/Images/EastCoast/Marketing/2009Testimonial3.jpg"  alt="" title= "" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
//aSlideShow[17]='<a href="http://www.hspn.net/events/eastcoasttourney2009.asp"><img src="http://www.hspn.net/Images/EastCoast/2009/Boys5A3rd.jpg"  alt="Varsity Boys 5A - 3rd Place" title= "Varsity Boys 5A - 3rd Place" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
//aSlideShow[18]='<a href="http://www.hspn.net/events/eastcoasttourney2009.asp"><img src="http://www.hspn.net/Images/EastCoast/2009/Boys4A1st.jpg"  alt="Varsity Boys 4A Champs" title= "Varsity Boys 4A Champs" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
//aSlideShow[19]='<a href="http://www.hspn.net/events/eastcoasttourney2009.asp"><img src="http://www.hspn.net/Images/EastCoast/Marketing/2009Testimonial4.jpg"  alt="" title= "" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
//aSlideShow[20]='<img src="http://www.hspn.net/images/Investment/PrayerCircleInv.jpg" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
//aSlideShow[21]='<a href="http://www.hspn.net/events/eastcoasttourney2009.asp"><img src="http://www.hspn.net/Images/EastCoast/2009/Boys4A2nd.jpg"  alt="Varsity Boys 4A - 2nd Place" title= "Varsity Boys 4A - 2nd Place" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
//aSlideShow[22]='<a href="http://www.hspn.net/events/eastcoasttourney2009.asp"><img src="http://www.hspn.net/Images/EastCoast/Marketing/2009Testimonial5.jpg"  alt="" title= "" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
//aSlideShow[23]='<a href="http://www.hspn.net/events/eastcoasttourney2009.asp"><img src="http://www.hspn.net/Images/EastCoast/2009/Boys4A3rd.jpg"  alt="Varsity Boys 4A - 3rd Place" title= "Varsity Boys 4A - 3rd Place" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
//aSlideShow[24]='<a href="http://www.hspn.net/events/eastcoasttourney2009.asp"><img src="http://www.hspn.net/Images/EastCoast/2009/Boys3A1st.jpg"  alt="Varsity Boys 3A Champs" title= "Varsity Boys 3A Champs" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
//aSlideShow[25]='<a href="http://www.hspn.net/events/eastcoasttourney2009.asp"><img src="http://www.hspn.net/Images/EastCoast/2009/Boys3A2nd.jpg"  alt="Varsity Boys 3A - 2nd Place" title= "Varsity Boys 3A - 2nd Place" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2">';
//aSlideShow[26]='<a href="http://www.hspn.net/events/eastcoasttourney2009.asp"><img src="http://www.hspn.net/Images/EastCoast/Marketing/2009Testimonial6.jpg"  alt="" title= "" width="' + intLeftAlley + '" height="' + imgHeight + '" align="left" hspace="2"></a>';
/*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 = '<center><font face="Verdana" size="2" color="black"><b>Tournament Sponsored By:</b></font></center>'+adsF[d]+'<br><br><!--<a href="http://www.hspn.net/Docs/2010EastCoastTournamentGeneral.pdf" target=_new><b>Be A Tournament Sponsor (PDF document)</b></a>-->';
		oLayer.style.visibility = "visible";
		oLayer.style.top="25px";
	  oLayer.style.width="300px";
	  oLayer.style.position="absolute";
	}
}

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= "600px";
	document.getElementById("Slideshow").style.width="295px";
	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;

}

