<!--

	/***************************
	* Set Application Variables
	***************************/
	
	// grab the base url and add in the protocol information for later
	if (window.location.href.substring(0,4) == "http") { var BaseURL = "http://" + window.location.host; }
	else { var BaseURL = window.location.host; }
	
	// grab the base url without the protocol information
	var BaseURL2 = window.location.host;
	
	// if the site is in a local directory, get the current directory
	if (SiteConfig == 3)
	{
		var myloc = window.location.href;
		var locarray = myloc.split("/");
		delete locarray[(locarray.length-1)];
		var arraytext = locarray.join("/");
		var position = arraytext.indexOf(SiteFolder);
		arraytext = arraytext.substring(0,position-1);
		BaseURL = arraytext;
		BaseURL2 = arraytext;
	}
		
	// append the site folder to the base url if the site home page is in a subdirectory
	if (SiteFolder != "") { BaseURL = BaseURL + "/" + SiteFolder }
	
	// show / hide breadcrumbs
	var ShowCrumbs = "True"



	/*****************************************************************************
	* Setup Newsflash - if the site is locally based - setup a disclaimer instead
	*****************************************************************************/
	
	// date the newsflash is being posted
	var NewsflashDate = "Monday, November 8, 2010";
	
	// date the newsflash should be removed (format: 20041004)
	// note this date has no effect if SiteConfig = 3
	var RemoveNewsflashDate = "20101230";
	
	if (SiteConfig == 3)
	{
		var ShowNewsflash = "True";
		var NewsflashTitle = "Disclaimer";
		var NewsflashText = "Please note that this is a CD-based version of our website and may not contain the most current information about our programs and services. For the most current information, please visit our website located at <a href=http://www.rurdev.usda.gov/wi>http://www.rurdev.usda.gov/wi<\/a>.";
		var MoreInfoLink = "";
	}
	else
	{
		var ShowNewsflash = "True";
		var NewsflashTitle = "USDA Rural Development in Wisconsin Loses One of Their Own";
		var NewsflashText = "Nancy J. Weinbrenner Remembered: USDA Rural Development lost a longtime colleague and friend Friday, Nov. 5 when Nancy J. Weinbrenner, 53, of Mineral Point, passed away from injuries received in a tragic car/pedestrian accident.  Our hearts go out to her family and friends. Nancy loved her work with Rural Development. She enjoyed working with the customers and lenders. Nancy had a smile and greeting for everyone who came into the office building. She joined the USDA Rural Development team in February of 2001. Nancy graduated from Belmont High School in 1974 and Southwest Technical College in 1975. Nancy worked previously at the Farmers Savings Bank in Mineral Point and Citizens Bank in Darlington for many years. Nancy enjoyed and took great pride in her children's academic, athletic, musical and artistic accomplishments developed through the Mineral Point schools. She loved being a swim team parent and Ice Wolves hockey mom. Survivors include her husband, Craig; daughter, Stacy (James) Everly of Killeen, Texas; son, Cameron, UW-Platteville; daughter, Tressa of Mineral Point; and her grandson, Liam Everly. Words cannot express how much Nancy will be missed by our agency.  She was a wonderful person, colleague, and friend.  Thank you, Nancy, for your service to rural Wisconsin.";
		// var MoreInfoLink = BaseURL + "/programs/rhs/grh/handbook/";
		var MoreInfoLink = "";
	}



	/*********************************
	* Setup Slide Show for Main Page
	**********************************/
	
	// show stories as slide show or list
	var blnShowStoriesAsSlideShow = "False";
	
	// number of stories to display
	var intTotalStoriesMain = 3;
	
	// miliseconds between slide changes
	var intMainSlideTimer = 7500;
	
	// set up stories and slides
	var imgMainSlide1 = new Image();
	var strImageLocationSlide1 = "/images/msld-1-a.jpg";
	var strLocationMainSlide1 = BaseURL + "/newsroom/press/2010/20100910.htm";
	var strDescriptionMainSlide1 = "Agriculture Secretary Vilsack Announces $2.7 Million in Funding to Help Wisconsin Farmers, Businesses and Communities";
	imgMainSlide1.src = BaseURL + strImageLocationSlide1
	
	var imgMainSlide2 = new Image();
	var strImageLocationSlide2 = "/images/msld-2-a.jpg";
	var strLocationMainSlide2 = BaseURL + "/newsroom/press/2010/20100707.htm";
	var strDescriptionMainSlide2 = "USDA Announces $5.2 Million in Funding to Expand Broadband Access in Reedsburg, WI";
	imgMainSlide2.src = BaseURL + strImageLocationSlide2
	
	var imgMainSlide3 = new Image();
	var strImageLocationSlide3 = "/images/msld-3-a.jpg";
	var strLocationMainSlide3 = BaseURL + "/newsroom/press/2010/20100616.htm";
	var strDescriptionMainSlide3 = "Ground Breaks for New Black River Falls Dam";
	imgMainSlide3.src = BaseURL + strImageLocationSlide3



	/*********************************
	* Setup Slide Show for Newsroom
	**********************************/
	
	// number of slides to display
	var intTotalSlidesNews = 2;
	// miliseconds between slide changes
	var intNewsSlideTimer = 7500;
	
	// set up slides
	var imgNewsSlide1 = new Image();
	imgNewsSlide1.src = BaseURL + "/images/nsld-1-a.jpg";
	var strLocationNewsSlide1 = BaseURL + "/newsroom/success/2009/20090903.pdf";

	var imgNewsSlide2 = new Image();
	imgNewsSlide2.src = BaseURL + "/images/nsld-2.jpg";
	var strLocationNewsSlide2 = BaseURL + "/newsroom/success/2009/20091118.pdf";
	


	/*********************************
	* Set browser and OS variables
	**********************************/

	var strDetect = navigator.userAgent.toLowerCase();
	var strOS, strBrowser, strVersion, strTotal, strItem;
	
	if (CheckIt('konqueror'))
	{
		strBrowser = "Konqueror";
		strOS = "Linux";
	}
	else if (CheckIt('omniweb')) { strBrowser = "OmniWeb" }
	else if (CheckIt('opera')) { strBrowser = "Opera" }
	else if (CheckIt('webtv')) { strBrowser = "WebTV"; }
	else if (CheckIt('icab')) { strBrowser = "iCab" }
	else if (CheckIt('msie')) { strBrowser = "Internet Explorer" }
	else if (!(CheckIt('compatible')))
	{
		strBrowser = "Netscape Navigator"
		strVersion = strDetect.charAt(8);
	}
	else { strBrowser = "Unknown Browser"; }
	
	if (!(strVersion)) { strVersion = strDetect.charAt(strPlace + strItem.length); }
	
	if (!(strOS))
	{
		if (CheckIt('linux')) {	strOS = "Linux"; }
		else if (CheckIt('x11')) { strOS = "Unix"; }
		else if (CheckIt('mac')) { strOS = "Mac" }
		else if (CheckIt('win')) { strOS = "Windows" }
		else strOS = "Unknown OS";
	}
	
	function CheckIt(strTemp)
	{
		strPlace = strDetect.indexOf(strTemp) + 1;
		strItem = strTemp;
		return strPlace;
	}
	
// -->
