//----- HOMEPAGE SLIDESHOW ----//					
					var secs
					var timerID = null
					var timerRunning = false
					var delay = 1000
					
					
					function InitializeTimer(){
						
						// Set the length of the timer, in seconds
						// modified from AR version - 3 features rather than 5
						secs = 15
						StopTheClock()
						StartTheTimer()
						document.getElementById("homepageFeature").className="featureA";
						document.getElementById("play").className="playOn";
						document.getElementById("pause").className="pause";
					}
					
					function StopTheClock(){
						if(timerRunning){
						clearTimeout(timerID)
						timerRunning = false
						document.getElementById("play").className="play";
						document.getElementById("pause").className="pauseOn";
						}
					}
					
					function StartTheTimer(){	   
						clearTimeout(timerID);
						var var_homepageFeature = document.getElementById("homepageFeature");
						
						if (secs==10)
						{	
							var_homepageFeature.className="featureB";
							secs = secs - 1
							timerRunning = true
							timerID = self.setTimeout("StartTheTimer()", delay)
						}
						
						else if (secs==5)
						{	
							var_homepageFeature.className="featureC";
							secs = secs - 1
							timerRunning = true
							timerID = self.setTimeout("StartTheTimer()", delay)
						}
			
						else if (secs==0)
						{	
							var_homepageFeature.className="featureA";
							secs = 25
							secs = secs - 1
							timerRunning = true
							timerID = self.setTimeout("StartTheTimer()", delay)
						}
							
						else
						{
							//self.status = secs
							secs = secs - 1
							timerRunning = true
							timerID = self.setTimeout("StartTheTimer()", delay)
						}
					}
				
					function selectFeature(whichfeature) {
						StopTheClock()
						
						document.getElementById("homepageFeature").className="feature" + whichfeature;
							
					}
					
//----- END: HOMEPAGE SLIDESHOW ----//					


					function expandIntro(){
							var introBox = document.getElementById("introduction");
							var expandButton = document.getElementById("open");
							if (document.all&&document.getElementById){
								//for IE - set sopecific heght
								expandButton.style.display="none";
								introBox.style.height="260px";
							}else {
								expandButton.style.display="none";
								introBox.style.overflow="visible";
							}
						}
						function colapseIntro(){
							var introBox = document.getElementById("introduction");
							var expandButton = document.getElementById("open");
							if (document.all&&document.getElementById){
								//for IE - reset sopecific heght
								expandButton.style.display="block";
								introBox.style.height="63px";
							}else {
							expandButton.style.display="block";
							introBox.style.overflow="hidden";
							}
						}
						
						
						
//----- MAP FEATURE ----//							
						function selectRegion(whichRegion) {
							
							var var_regionMap = document.getElementById("regionMap");
							var var_regionSection = document.getElementById("regionSection");
							var var_regionDescription = document.getElementById("regionDescription");
							var var_regionLink = document.getElementById("regionLink");
									
									array_regionMap = new Array();  //url for image
									array_regionMap[0] = "/stimulus/images/region_homepage_main.gif";
									array_regionMap[1] = "/stimulus/images/region_homepage_northeast.gif";
									array_regionMap[2] = "/stimulus/images/region_homepage_midatlantic.gif";
									array_regionMap[3] = "/stimulus/images/region_homepage_southeast.gif";
									array_regionMap[4] = "/stimulus/images/region_homepage_midwest.gif";
									array_regionMap[5] = "/stimulus/images/region_homepage_southcentral.gif";
									array_regionMap[6] = "/stimulus/images/region_homepage_texas.gif";
									array_regionMap[7] = "/stimulus/images/region_homepage_southwest.gif";
									array_regionMap[8] = "/stimulus/images/region_homepage_plains.gif";
									array_regionMap[9] = "/stimulus/images/region_homepage_mountains.gif";
									array_regionMap[10] = "/stimulus/images/region_homepage_california.gif";
									array_regionMap[11] = "/stimulus/images/region_homepage_northwest.gif";
									
									array_regionSection = new Array(); //name of region
									array_regionSection[0] = "View news by region";
									array_regionSection[1] = "Northeast";
									array_regionSection[2] = "Mid-Atlantic";
									array_regionSection[3] = "Southeast";
									array_regionSection[4] = "Midwest";
									array_regionSection[5] = "South-Central";
									array_regionSection[6] = "Texas";
									array_regionSection[7] = "Southwest";
									array_regionSection[8] = "Colorado & the Plains";
									array_regionSection[9] = "Mountains";
									array_regionSection[10] = "California";
									array_regionSection[11] = "Northwest";
									
									array_regionDescription = new Array(); //areas in region
									array_regionDescription[0] = "Click on a specific region or";
									array_regionDescription[1] = "New York, Connecticut, Rhode Island, Massachusetts, Vermont, New Hampshire & Maine"
									array_regionDescription[2] = "Pennsylvania, New Jersey, Maryland, Delaware, West Virginia & Virginia"
									array_regionDescription[3] = "North Carolina, South Carolina, Georgia & Florida"
									array_regionDescription[4] = "Minnesota, Iowa, Missouri, Wisconsin, Illinois, Indiana, Michigan & Ohio"
									array_regionDescription[5] = "Arkansas, Louisiana, Kentucky, Tennessee, Mississippi & Alabama"
									array_regionDescription[6] = ""
									array_regionDescription[7] = "Nevada, Arizona & New Mexico"
									array_regionDescription[8] = "Colorado, North Dakota, South Dakota, Nebraska, Kansas & Oklahoma"
									array_regionDescription[9] = "Montana, Wyoming & Utah"
									array_regionDescription[10] = "California & Hawaii"
									array_regionDescription[11] = "Washington, Oregon, Idaho & Alaska"
								
									
									
									var_regionMap.setAttribute("src",array_regionMap[whichRegion]);
									var_regionSection.firstChild.nodeValue = array_regionSection[whichRegion]; // Section Title
									var_regionDescription.firstChild.nodeValue = array_regionDescription[whichRegion]; // Section Description
									if (whichRegion == 0) {
										var_regionLink.style.display="block"; // link to all regions
									} else{
										var_regionLink.style.display="none"
									}
								}	
//----- END: MAP FEATURE ----//	
