/// Showcase slide show for HSPN Home Page page slideshow
//var initloop = true;
var eltSlideShowSHOWCASE;
var eltCaptionsSHOWCASE;
var eltAdsSHOWCASE0;
var eltContentSHOWCASE;
//var eltTest99;
var maxdivsSHOWCASE = 7;
//var is = new Is();
var intLeftAlleySHOWCASE = 300+ 'px;'
var intWideCellSHOWCASE = 280 + 'px;';
var intNarrowCellSHOWCASE = 20 + 'px;';
var imgHeightSHOWCASE = 300
var adImageWidthSHOWCASE= 360+'px;'
var adImageHeightSHOWCASE= 100+'px;'
var slideShowTopSHOWCASE = '265px;'
var captionTopLineSHOWCASE = imgHeight+265 + 'px;'
var adToggleSHOWCASE=0;

//User defined variables - change these variables to alter the behaviour of the script
var DisplayIntervalSHOWCASE = 6; //Number of seconds to wait before the next image is displayed

//Internal variables (do not change these unless you know what you are doing)

// Defaults: --------
var ctrlMainLoopingSHOWCASE = 1;
var offsetMainSlideShowSHOWCASE= 0;
var MainSlideshowImageNumSHOWCASE = 0
var startMainSlideshowImageNumSHOWCASE = 0;
var selectedCaptionNumSHOWCASE = 0;
var refreshMainSlideShowImageSHOWCASE = true;
// ------------------

var IsValidBrowserSHOWCASE = false;
var BannerAdCodeSHOWCASE = 0;
var ciInitIndexSHOWCASE = 0;
var AdcounterSHOWCASE = 0;
/// -------------------------------
var maxAdsSHOWCASE = 16;
/// -------------------------------
var maxMainSlideshowImageNumSHOWCASE = 20;
/// -------------------------------
var firstTimeInSHOWCASE = true;
var startAdSHOWCASE = 0;

var oLayerSHOWCASE = eval('eltAdsSHOWCASE0');
var oSlideShowSHOWCASE = eval('eltSlideShowSHOWCASE');
var oCaptionsSHOWCASE = eval('eltCaptionsSHOWCASE');

DisplayIntervalSHOWCASE = DisplayIntervalSHOWCASE * 1000;
//var NumberOfImages = ImageFileNames.length;
var NumberOfImagesaSHOWCASE = 2;
var CountofDivsSHOWCASE = 27;

var userImageSelectedSHOWCASE;
var lastuserImageSelectedSHOWCASE = maxMainSlideshowImageNumSHOWCASE;
var blnInitialShowcaseSHOWCASE = true;
//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 init_varsSHOWCASE()
{
		eltSlideShowSHOWCASE = getElt("SlideshowSHOWCASE");
		//eltAdsSHOWCASE0 = getElt("AdBanner1");
		//eltCaptions = getElt("MainCaptions");
		//eltContent = getElt("Content");
		//eltWaitBox = getElt("WaitBox");
		//showContent();
}


function clearWaitSHOWCASE() {
	document.all.WaitBox.style.display = 'none';
  document.all.Content.style.visibility = 'visible';
}

function showMeSHOWCASE(d) {
	var oLayerSHOWCASE = eval('eltAdsSHOWCASE' + d);
	if (is.nav4up)
		{
		oLayerSHOWCASE.visibility = "visible";
		}
	else
		{
		oLayerSHOWCASE.style.visibility = "visible";
		}
}

var scURL = new Array;
scURL[0] ='<a href="http://www.eastcoasttournament.com/">';
scURL[1] ='<a href="https://www.npfunds.com/">';
scURL[2] ='<a href="http://www.christianfreedom.org/">';
scURL[3] ='<a href="http://www.oblockbooks.com/">';
scURL[4] ='<a href="http://www.bryan.edu/">';
scURL[5] ='<a href="http://www.hspn.net/HSPN247/">';
scURL[6] ='<a href="http://www.hspn.net/TeamLocator/">';
scURL[7] ='<a href="http://www.hspn.net/Newsletter/">';
scURL[8] ='<a href="http://www.hspn.net/Insurance/">';
scURL[9] ='<a href="http://www.hspn.net/Articles/default.asp?a=player_stats">';
scURL[10] ='<a href="http://www.scoreinternational.org/">';
scURL[11] ='<a href="http://www.hspn.net/Articles/default.asp?a=Items_of_Interest#2010Planner">';
scURL[12] ='<a href="http://www.lifeway.com/">';
scURL[13] ='<a href="http://www.hspn.net/HSPN247/">';
scURL[14] ='<a href="http://www.hspn.net/Articles/default.asp?a=Recruitment">';
scURL[15] ='<a href="http://www.hspn.net/Articles/default.asp?a=Training_and_Nutrition">';
scURL[16] ='<a href="http://www.mysportsdreams.com/hspn">';
scURL[17] ='<a href="http://www.kuyper.edu">';
scURL[18] ='<a href="http://www.judsonu.edu">';
scURL[19] ='<a href="http://www.tutoringone.com">';
scURL[20] ='<a href="http://www.yourstorystartsnow.com">';


var uURL = new Array;
uURL[0] ='www.christianfreedom.org';
uURL[1] ='<a href="https://www.npfunds.com/">';
uURL[2] ='<a href="http://www.eastcoasttournament.com/">';

var imgURLBanner = new Array;
imgURLBanner[0] ='<IMG src="http://www.hspn.net/Images/theShowCase/LindenfogProductions/christianfreedominternational.JPG"  alt="" title="" width="260" height="99" align=left border=0></A><b></b>';
imgURLBanner[1] ='<IMG src="http://www.hspn.net/Images/theShowCase/LindenfogProductions/here4youbanner2.JPG"  alt="" title="" width="260" height="99" align=left border=0></A><b></b>';
imgURLBanner[2] ='';

var imgWebsite = new Array;
imgWebsite[0] ='<IMG src="http://www.hspn.net/images/eastcoast/2010/HomeschlSportsFINLLOGOonWhite.jpg"  alt="" title="" width="' + intLeftAlleySHOWCASE + '" height="' + imgHeightSHOWCASE + '" align=top border=0></A><br>';
imgWebsite[1] ='<IMG src="http://www.hspn.net/Images/theShowCase/LindenfogProductions/here4you.JPG"  alt="" title="" width="' + intLeftAlleySHOWCASE + '" height="' + imgHeightSHOWCASE + '" align=top border=0></A><br>';
imgWebsite[2] ='<IMG src="http://www.hspn.net/Images/theShowCase/LindenfogProductions/christianfreedominternational.JPG"  alt="" title="" width="' + intLeftAlleySHOWCASE + '" height="' + imgHeightSHOWCASE + '" align=top border=0></A><br>';
imgWebsite[3] ='<IMG src="http://www.hspn.net/images/sponsors/OblockBookslogo4.jpg"  alt="" title="" width="' + intLeftAlleySHOWCASE + '" height="' + imgHeightSHOWCASE + '" align=top border=0></A><br>';
imgWebsite[4] ='<IMG src="http://www.hspn.net/images/eastcoast/sponsors/Adm-2010-HSPN-web-banner.jpg"  alt="" title="" width="' + intLeftAlleySHOWCASE + '" height="' + imgHeightSHOWCASE + '" align=top border=0></A><br>';
imgWebsite[5] ='<IMG src="http://www.hspn.net/images/clipart/stadiumlightsbanner.jpg"  alt="" title="" width="' + intLeftAlleySHOWCASE + '" height="' + imgHeightSHOWCASE + '" align=top border=0></A><br>';
imgWebsite[6] ='<IMG src="http://www.hspn.net/images/usamapLocator.jpg"  alt="" title="" width="' + intLeftAlleySHOWCASE + '" height="' + imgHeightSHOWCASE + '" align=top border=0></A><br>';
imgWebsite[7] ='<IMG src="http://www.hspn.net/images/gazette/2009Nov25.jpg"  alt="" title="" width="' + intLeftAlleySHOWCASE + '" height="' + imgHeightSHOWCASE + '" align=top border=0></A><br>';
imgWebsite[8] ='<IMG src="http://www.hspn.net/Images/Eastcoast/sponsors/ncg.jpg"  alt="" title="" width="' + intLeftAlleySHOWCASE + '" height="' + imgHeightSHOWCASE + '" align=top border=0></A><br>';
imgWebsite[9] ='<IMG src="http://hspn.net/images/marketing/nPerspective.jpg"  alt="" title="" width="' + intLeftAlleySHOWCASE + '" height="' + imgHeightSHOWCASE + '" align=top border=0></A><br>';
imgWebsite[10] ='<IMG src="http://www.hspn.net/Images/EastCoast/Sponsors/Score Logo Color.jpg"  alt="" title="" width="' + intLeftAlleySHOWCASE + '" height="' + imgHeightSHOWCASE + '" align=top border=0></A><br>';
imgWebsite[11] ='<IMG src="http://www.hspn.net/images/EastCoast/2009/Soccer/SmithRiverChampionshipField4.jpg"  alt="" title="" width="' + intLeftAlleySHOWCASE + '" height="' + imgHeightSHOWCASE + '" align=top border=0></a><br>';
imgWebsite[12] ='<IMG src="http://www.hspn.net/Images/EastCoast/Sponsors/lifeway.jpg"  alt="" title="" width="' + intLeftAlleySHOWCASE + '" height="' + imgHeightSHOWCASE + '" align=top border=0><br>';
imgWebsite[13] ='<IMG src="http://www.hspn.net/Images/Clipart/TheTopTwenty.jpg"  alt="" title="" width="' + intLeftAlleySHOWCASE + '" height="' + imgHeightSHOWCASE + '" align=top border=0></a><br>';
imgWebsite[14] ='<IMG src="http://www.hspn.net/Images/eastcoast/2010/Captainu.jpg"  alt="" title="" width="' + intLeftAlleySHOWCASE + '" height="' + imgHeightSHOWCASE + '" align=top border=0><br>';
imgWebsite[15] ='<IMG src="http://www.hspn.net/images/advocare/endorserBrees.jpg"  alt="" title="" width="' + intLeftAlleySHOWCASE + '" height="' + imgHeightSHOWCASE + '" align=top border=0></a><br>';
imgWebsite[16] ='<IMG src="http://www.hspn.net/Images/EastCoast/2010/mySportsDream.gif"  alt="" title="" width="' + intLeftAlleySHOWCASE + '" height="' + imgHeightSHOWCASE + '" align=top border=0></a><br>';
imgWebsite[17] ='<IMG src="http://www.hspn.net/Images/EastCoast/Sponsors/Casey & Crowd.jpg"  alt="" title="" width="' + intLeftAlleySHOWCASE + '" height="' + imgHeightSHOWCASE + '" align=top border=0></a><br>';
imgWebsite[18] ='<IMG src="http://www.hspn.net/Images/EastCoast/Sponsors/judsonhspn.jpg"  alt="" title="" width="' + intLeftAlleySHOWCASE + '" height="' + imgHeightSHOWCASE + '" align=top border=0></a><br>';
imgWebsite[19] ='<IMG src="http://www.hspn.net/Images/EastCoast/Sponsors/tutoringone.jpg"  alt="" title="" width="' + intLeftAlleySHOWCASE + '" height="' + imgHeightSHOWCASE + '" align=top border=0></a><br>';
imgWebsite[20] ='<IMG src="http://www.hspn.net/Images/EastCoast/Sponsors/heritagemakers.jpg"  alt="" title="" width="' + intLeftAlleySHOWCASE +  '" align=top border=0></a><br>';

var adsFSHOWCASE = new Array;
adsFSHOWCASE[0] = scURL[0] + imgURLBanner[0];  
adsFSHOWCASE[1] = scURL[1] + imgURLBanner[1];  
adsFSHOWCASE[2] = scURL[2] + imgURLBanner[2];  

var aContent1 = new Array;
aContent1[0] = '<p style="width:100%">' +
'<!-- East Coast -->'+
'<font face= "Arial" style="font-size:12pt;">'+
' <a href="http://www.eastcoasttournament.com"><b>2010 East Coast Tournament</a></b>'+
'</font>'+
'<br><br>'+
'<font face= "Verdana" style="font-size:8pt;">'+
'<br>'+ 
'</font></p><br><br>';

aContent1[1] = '<b>Here-4-You Consulting & Grant Writing provides grant writing and funding development to Christian Ministries and Churches around the world. We can work with all types of non-profit organizations, but feel a particular calling and have a unique expertise in serving the Christian Community.</b>';
aContent1[2] = '<b>Jim Jacobson, President and Founder of Christian Freedom International, has assisted the persecuted church in many restricted countries around the world. He has faced personal danger to deliver Bibles to underground churches in China, care packs to families in the brickyards of Pakistan, and medical aid to refugees in the war zones of Burma. </b>';
aContent1[3] = '';
aContent1[4] = '';
aContent1[5] = '<br>Team Standings, Schedules, Final Scores, Player Stats, more... <a href="/HSPN247/"><b> info...</b></a>';
aContent1[6] = '<br>Find a team, Find a coach, Find more players, Start a new team...<a href="/Teamlocator/"><b> search...</b></a>';
aContent1[7] = '<br>FREE Newsletter. See Samples <a href="/Newsletter/"><b> read current newsletter ...</b></a>';
aContent1[8] = '<br>We have Liability Insurance for your team <a href="/Insurance/"><b> details...</b></a>';
aContent1[9] = '<br>Update your players stats: basketball, football, soccer <a href="/HSPN247/"><b>details...</b></a>';
aContent1[10] = '<br>Short-Term Mission Trips for Sports Teams...<b>Click on image</b>';
aContent1[11] = '<br>HSPN is Planning a combo Soccer and Flag Football Tournament -May 20-22, 2010 in Martinsville,VA. For boys, girls soccer teams, and off-season football teams. <a href="http://www.hspn.net/Articles/default.asp?a=Items_of_Interest#2010Planner"><b>Details...</b><a/>';
aContent1[12] = '';
aContent1[13] = ' Check out the nation\'s top stat leaders...<a href="/HSPN247/"><b>view Top 20...</b></a>';
aContent1[14] = ' CaptainU, the leading <A href="http://www.captainu.com/college-basketball-recruiting"><B>college basketball recruiting</B></A> company will provide player profile books and free access to their online software to help all attending players and teams maximize their exposure at the upcoming events to college coaches.<a href="http://www.hspn.net/Articles/default.asp?a=Recruitment"><b>read more...</b></a>';
aContent1[15] = 'HSPN is a Certified Distributor of Advocare Products <b> Become a distributors today</b>. <a href="http://www.hspn.net/Articles/default.asp?a=Training_and_Nutrition"> the latest...</a> ';
aContent1[16] = 'HSPN teams up with My Sports Dreams to help teams raise thousands for travel ' +
' If your team could use extra money to reduce travel expenses or new gear, check out <a href="http://www.MySportsDreams.com/HSPN">www.MySportsDreams.com/hspn</a>.' +
' Their program is really easy, there\'s nothing for your players to sell, and you\'ll be done in less than 30 minutes.' +
' A typical baseball team earns $4,000 profit and there\'s nothing due up front or any financial risk. They\'ve worked ' +
' with hundreds of high school teams so definitely inquire if you\'re short on funds. ';

aContent1[17] = '<b>Kuyper College</b> Athletic Philosophy At Kuyper, our goal is that each student athlete will experience ' +
' spiritual growth and academic achievements, build character, sportsmanship, teamwork, and self discipline, and how to ' +
' become influential Christian Leaders. '; 
aContent1[18] = '<b>Judson University Christian College</b>'; 
aContent1[19] = '<b>TutoringOne.com</b>'; 
aContent1[20] = '<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>'; 

var aImgContent = new Array;
aImgContent[0] = '<img src="http://www.hspn.net/images/theshowcase/lindenfogproductions/christianfreedominternationalnepal.jpg" width="' + intWideCellSHOWCASE + '">';
aImgContent[1] = '<img src="http://www.hspn.net/images/theshowcase/lindenfogproductions/Here4YouNewsletter.jpg" width="' + intWideCellSHOWCASE + '">';

var aSlideShowSHOWCASE = new Array;

 for (var i=0; i < maxMainSlideshowImageNum+1; i++)
	{
		aSlideShowSHOWCASE[i] = scURL[i] +  imgWebsite[i] + aContent1[i]  ;
		//aSlideShowSHOWCASE[i] = '<p>TEST' + i+ '</p>' ;
	}


//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 InitializeSlideshowSHOWCASE(selImg) 
{
	//alert('entering....');
	//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;
			//alert(IsValidBrowser);
		}
	if (IsValidBrowser) 
		{
			//iNum = parseInt(iNum);
			userImageSelectedSHOWCASE = selImg;
			if (userImageSelectedSHOWCASE >= 0)
				{
					//alert('image number');
					//alert(ig);
					//alert(maxMainSlideshowImageNum);
					//alert(startMainSlideshowImageNum);
					//alert(refreshMainSlideShowImage);
					//alert(ig);
					document.TimerObject = setTimeout("ChangeImageNSHOWCASE('',maxMainSlideshowImageNumSHOWCASE,startMainSlideshowImageNumSHOWCASE, refreshMainSlideShowImageSHOWCASE, userImageSelectedSHOWCASE)", 0);
					//document.TimerObject = setTimeout("ChangeImageN('',maxMainSlideshowImageNum,startMainSlideshowImageNum, refreshMainSlideShowImage,1)", 0);
					document.TimerObject = setTimeout("ChangeImageaNSHOWCASE('',maxAdsSHOWCASE, startAdSHOWCASE, userImageSelectedSHOWCASE)", 0);
				}
			else
				{
					//alert('no image number');
					//alert(iNum);
					document.TimerObject = setTimeout("ChangeImageSHOWCASE('',maxMainSlideshowImageNum,startMainSlideshowImageNum, refreshMainSlideShowImage)", 0);
					//document.TimerObject = setTimeout("ChangeImageN('',maxMainSlideshowImageNum,startMainSlideshowImageNum, refreshMainSlideShowImage,1)", 0);
					//document.TimerObject = setTimeout("ChangeImagea('',maxAds, startAd)", 0);
				}
		}
}

function ChangeImageSHOWCASE(preF, maxImageNum, startImageNum, refresh)
{
	//setMainSlideshow();
	
	if (IsValidBrowser)
		{
			// ----------- call to change slide show image ----
			//alert(MainSlideshowImageNum+','+ctrlMainLooping+','+imageWithinSlideShowPanelCounter+','+selectedCaptionNum);
			showFlashSHOWCASE(MainSlideshowImageNumSHOWCASE , selectedCaptionNumSHOWCASE, refreshMainSlideShowImageSHOWCASE, lastuserImageSelectedSHOWCASE);
			lastuserImageSelectedSHOWCASE = MainSlideshowImageNumSHOWCASE;

			selectedCaptionNumSHOWCASE++;
			MainSlideshowImageNumSHOWCASE++;			
			 if (MainSlideshowImageNumSHOWCASE > maxMainSlideshowImageNumSHOWCASE)	
				{
					MainSlideshowImageNumSHOWCASE = 0;
					selectedCaptionNumSHOWCASE = 0;
				}
			//if (adToggle > 0)
			//	{
				document.TimerObject = setTimeout("ChangeImageaSHOWCASE('',maxAdsSHOWCASE, startAdSHOWCASE)", 0);
			//	adToggle = 0;
			//	}
			//else
			//	{
		//		adToggle = 1;
		//		}
			document.TimerObject = setTimeout("ChangeImageSHOWCASE('', maxMainSlideshowImageNumSHOWCASE, startMainSlideshowImageNumSHOWCASE)", DisplayIntervalSHOWCASE);
		}
}

function ChangeImageNSHOWCASE(preF, maxImageNum, startImageNum, refresh, igN)
{
	//setMainSlideshow();
	//alert('here initially');
	if (IsValidBrowser)
		{
			// ----------- call to change slide show image ----
			//alert(MainSlideshowImageNum+','+ctrlMainLooping+','+imageWithinSlideShowPanelCounter+','+selectedCaptionNum);
			//iNum = parseInt(iNum);
			//alert(iNum);
			MainSlideshowImageNumSHOWCASE = igN;
			showFlashSHOWCASE(MainSlideshowImageNumSHOWCASE , selectedCaptionNumSHOWCASE, refreshMainSlideShowImageSHOWCASE, lastuserImageSelectedSHOWCASE);
			lastuserImageSelectedSHOWCASE = MainSlideshowImageNumSHOWCASE;
			//selectedCaptionNum++;
			MainSlideshowImageNumSHOWCASE++;			
			if (MainSlideshowImageNumSHOWCASE > maxMainSlideshowImageNumSHOWCASE)	
				{
					MainSlideshowImageNumSHOWCASE = 0;
					selectedCaptionNumSHOWCASE = 0;
				}
			//if (adToggle > 0)
			//	{
					document.TimerObject = setTimeout("ChangeImageaNSHOWCASE('',maxAdsSHOWCASE, startAdSHOWCASE, MainSlideshowImageNumSHOWCASE)", DisplayIntervalSHOWCASE);
					adToggle = 0;
			//	}
			//else
			//	{
		//		adToggle = 1;
		//		}
			document.TimerObject = setTimeout("ChangeImageNSHOWCASE('', maxMainSlideshowImageNumSHOWCASE, startMainSlideshowImageNumSHOWCASE, true,MainSlideshowImageNumSHOWCASE)", DisplayIntervalSHOWCASE);
		}
	else
		{	
			//alert('bad browser');	
			var BrowserType2 = navigator.appName;	
			var BrowserVersion2 = parseInt(navigator.appVersion);
	
			if (BrowserType2 == "Netscape")
				{
					init_varsSHOWCASE();
					InitializeSlideshowSHOWCASE(igN); 
				}
				//IsValidBrowser = true;
		}
}

function ChangeImageaSHOWCASE(preF, maxI, initIndex) {
		showAdaSHOWCASE(Adcounter);

		AdcounterSHOWCASE = AdcounterSHOWCASE + 1;

		if (AdcounterSHOWCASE > maxI)
		{
			AdcounterSHOWCASE = initIndex;
		}
}

function ChangeImageaNSHOWCASE(preF, maxI, initIndex,adImageNum) {

		AdcounterSHOWCASE = adImageNum;

		showAdaSHOWCASE(Adcounter);
		AdcounterSHOWCASE = AdcounterSHOWCASE + 1;
	
		if (AdcounterSHOWCASE > maxI)
		{
			AdcounterSHOWCASE = initIndex;
		}
}
function showAdaSHOWCASE(d)
{
//oLayerSHOWCASE = eval('eltAdsSHOWCASE0');
//if (IsValidBrowser)
//{
	//	oLayerSHOWCASE.innerHTML = adsFSHOWCASE[d];
	//	oLayerSHOWCASE.style.visibility = "visible";
//}
}

function showFlashSHOWCASE(d,o,refresh,l)
{

	//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= "285px";
	//document.getElementById("Slideshow").style.width="280px";
	//document.getElementById("Slideshow").style.position="absolute";

	document.getElementById("SlideshowSHOWCASE").style.visibility="hidden";
	document.getElementById("SlideshowSHOWCASE").style.backgroundColor="transparent";
	document.getElementById("SlideshowSHOWCASE").style.left="655px";
	document.getElementById("SlideshowSHOWCASE").style.top= "530px";
	document.getElementById("SlideshowSHOWCASE").style.width="300px";
	document.getElementById("SlideshowSHOWCASE").style.position="relative";

	oSlideShowSHOWCASE = eval('eltSlideShowSHOWCASE');
	oCaptionsSHOWCASE = eval('eltCaptionsSHOWCASE');

	if (blnInitialShowcaseSHOWCASE)
		{
			l = lastuserImageSelectedSHOWCASE;

		  var olastShowcaseEntrySHOWCASE = document.getElementById("showcase"+l);
		 // var olastShowcaseEntry = document.getElementById("Showcase2");
	    var lastInnerSHOWCASE = olastShowcaseEntrySHOWCASE.innerHTML;
		     //alert(olastShowcaseEntry.innerHTML);
			var lastshowcaseTextSHOWCASE = lastInnerSHOWCASE;
			blnInitialShowcaseSHOWCASE = false;
		}
	else
		{

			var olastShowcaseEntrySHOWCASE = document.getElementById("showcase"+l);
			var lastInnerSHOWCASE = olastShowcaseEntrySHOWCASE.innerHTML;
						//alert(olastShowcaseEntry.innerHTML);
			var lastshowcaseTextSHOWCASE = lastInnerSHOWCASE.substring(24);
		}	

	var oShowcaseEntrySHOWCASE = document.getElementById("showcase"+d);
  var showcaseTextSHOWCASE = oShowcaseEntrySHOWCASE.innerHTML;
  showcaseTextSHOWCASE = '<font color="blue"><b>&#62;'+showcaseTextSHOWCASE + '</b></font>';
	
	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>';
			oSlideShowSHOWCASE.style.visibility = "visible";
			oSlideShowSHOWCASE.innerHTML = aSlideShowSHOWCASE[d];
			oSlideShowSHOWCASE.style.visibility = "visible";
			olastShowcaseEntrySHOWCASE.innerHTML = lastshowcaseTextSHOWCASE;
			oShowcaseEntrySHOWCASE.innerHTML = showcaseTextSHOWCASE;

		}
		//oCaptions.style.visibility = "visible";
		//oCaptions.innerHTML = aCaptions[o];
    //document.getElementById("MainCaptions").style.visibility="visible";
	}
}


function setMainSlideshowSHOWCASE() {
 if (MainSlideshowImageNumSHOWCASE = maxMainSlideshowImageNumSHOWCASE)	
	{
		MainSlideshowImageNumSHOWCASE = 0;
		selectedCaptionNumSHOWCASE = 0;
	}
}

