<!--

	/***************************
	* 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 = "Thursday, September 27th, 2007";
	
	// date the newsflash should be removed (format: 20041004)
	// note this date has no effect if SiteConfig = 3
	var RemoveNewsflashDate = "20070927";
	
	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 = "False";
		var NewsflashTitle = "Newsflash";
		var NewsflashText = "";
		// 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-3-a.jpg";
	var strLocationMainSlide1 = BaseURL + "/newsroom/press/2009/20090930.htm";
	var strDescriptionMainSlide1 = "USDA Rural Development Presents Award of Excellence";
	imgMainSlide1.src = BaseURL + strImageLocationSlide1
	
	var imgMainSlide2 = new Image();
	var strImageLocationSlide2 = "/images/msld-1-a.jpg";
	var strLocationMainSlide2 = BaseURL + "/newsroom/press/2009/20090911b.htm";
	var strDescriptionMainSlide2 = "Dental Clinic Opens with USDA Rural Development Funds";
	imgMainSlide2.src = BaseURL + strImageLocationSlide2
	
	var imgMainSlide3 = new Image();
	var strImageLocationSlide3 = "/images/msld-2-a.jpg";
	var strLocationMainSlide3 = BaseURL + "/newsroom/press/2009/20090903.htm";
	var strDescriptionMainSlide3 = "Southwest Tech Breaks Ground for New Student Housing Facility";
	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;
	}
	
// -->