<!--
	
	/********************************************
	* Display the slide show for the home page
	********************************************/	
	if (blnShowStoriesAsSlideShow == "True")
	{
		var blnImagesToSlide = "False"
		if (intTotalStoriesMain > 0)
		{
			for (intCount = 1; intCount <= intTotalStoriesMain; intCount++)
			{				
				if (String(eval("strImageLocationSlide" + intCount)).length != 0)
				{
					document.write ('<td rowspan=1 valign="top"><a href="javascript:SlideLink()"><img src="" alt="Project Slides" name="slide" width="170" height="128" border=0><\/a><\/td>')
					document.write ('<td width=10><img alt="" src=' + BaseURL + '/images/clea-1-a.gif" width=10 height=1><\/td>')
					blnImagesToSlide = "True"
					break
				}
			}

			document.write ('<td width="100%">')
			document.write ('<table cellpadding="0" cellspacing="0" border="0" summary="Page Layout">')
			
			for (intCount = 1; intCount <= intTotalStoriesMain; intCount++)
			{
				document.write ('<tr><td class="copysmall"> <a href="' + eval("strLocationMainSlide" + intCount) + '">' + eval("strDescriptionMainSlide" + intCount) + '</a></td></tr>')
				document.write ('<tr><td height="5"><img alt="" src="' + BaseURL + '/images/clea-1-a.gif" width="10" height="8"><img alt="" src="' + BaseURL + '/images/clea-1-a.gif" width="1" height="10"></td></tr>')
			}
			
			document.write ('<tr><td height="10"><img alt="" src="' + BaseURL + '/images/clea-1-a.gif" width="1" height="10"></td></tr>')
			document.write ('<tr><td class="copysmall"><a href="' + BaseURL + '/newsroom/index.htm" class="copysmall">More news...</a></td></tr>')
			
			document.write ('</table>')
			document.write ('</td>')
			
			// variable that will increment through the images
			var intStep = 1
			var intWhichImage = 1
			var blnImageCheck = "False"

			function SlideIt()
				{	
				// if browser does not support the image object, exit.
				if (!document.images)
					return
					
					while (blnImageCheck == "False")
					{
						if (intStep > intTotalStoriesMain)
							intStep = 1
						
						if (String(eval("strImageLocationSlide" + intCount)).length == 0)
							intStep ++
						else
							blnImageCheck = "True"
					}
					
					document.images.slide.src = eval("imgMainSlide" + intStep + ".src")
					
					intWhichImage = intStep			
					
					if (intStep < intTotalStoriesMain)
						intStep ++
					else
						intStep = 1
						
					blnImageCheck = "False"
					
					// call function "SlideIt()" every x seconds
					setTimeout("SlideIt()", intMainSlideTimer)
				}
			
			if (blnImagesToSlide == "True")
				SlideIt()
		
			function SlideLink()
				{
				if (intWhichImage == 1)
					window.location = strLocationMainSlide1
				else if (intWhichImage == 2)
					window.location = strLocationMainSlide2
				else if (intWhichImage == 3)
					window.location = strLocationMainSlide3
				}
		}
	}
	else
	{
		if (intTotalStoriesMain > 0)
		{
			document.write ('<td width="100%">')
			document.write ('<table cellpadding="0" cellspacing="0" border="0" summary="Page Layout">')
			
			for (intCount = 1; intCount <= intTotalStoriesMain; intCount++)
			{
				document.write ('<tr>')

				if (String(eval("strImageLocationSlide" + intCount)).length == 0)
				{
					document.write ('<td class="copysmall" valign="top" colspan="3">' + eval("strDescriptionMainSlide" + intCount) + '&nbsp;(<a href="' + eval("strLocationMainSlide" + intCount) + '">Read Full Story</a>)</td>')
					document.write ('<td width=25><img alt="" src="' + BaseURL + '/images/clea-1-a.gif" width=25 height=1><\/td>')

				}
				else
				{
					document.write ('<td rowspan=1 valign="top"><a href="' + eval("strLocationMainSlide" + intCount) + '"><img src=' + eval("imgMainSlide" + intCount + ".src") + ' alt="Project Slides" name="slide" width="170" height="128" border=0><\/a><\/td>')
					document.write ('<td width=10><img alt="" src="' + BaseURL + '/images/clea-1-a.gif" width=10 height=1><\/td>')
					document.write ('<td class="copysmall" valign="top">' + eval("strDescriptionMainSlide" + intCount) + '<br><br><a href="' + eval("strLocationMainSlide" + intCount) + '">Read Full Story</a></td>')
					document.write ('<td width=25><img alt="" src="' + BaseURL + '/images/clea-1-a.gif" width=25 height=1><\/td>')
				}
				
				document.write ('</tr>')
				document.write ('<tr>')
				document.write ('<td height="15" colspan="4"><img alt="" src="' + BaseURL + '/images/clea-1-a.gif" width="1" height="15"><img alt="" src="' + BaseURL + '/images/clea-1-a.gif" width="1" height="15"></td>')
				document.write ('</tr>')
			}
			
			
			document.write ('<tr>')
			document.write ('<td class="copysmall" colspan="3"><a href="' + BaseURL + '/newsroom/index.htm" class="copysmall">For more news, reports, photos and more...</a></td>')
			document.write ('<td width=25><img alt="" src="' + BaseURL + '/images/clea-1-a.gif" width=25 height=1><\/td>')
			document.write ('</tr>')
			
			document.write ('</table>')
			document.write ('</td>')
			
			
		}
	}
	
-->