function mapWindow() {
  		mapwindow = window.open('wolfcreekmap.html', 'mapWin',
  		'width=770,height=660,resizable=yes,scrollbars=yes')
  		}
  		
function careWindow() {
  		carewindow = window.open('ycare.html', 'careWin',
  		'width=350,height=400,resizable=no,scrollbars=no')
  		}
  		
function loosestrifeWindow() {
  		loosewindow = window.open('loosestrife.html', 'looseWin',
  		'width=400,height=600,resizable=no,scrollbars=no')
  		}
  		
function partnerWindow() {
  		partnerwindow = window.open('partners.html', 'partnerWin',
  		'width=350,height=400,resizable=no,scrollbars=no')
  		}
  		
function muralWindow() {
  		muralwindow = window.open('mural.html', 'muralWin',
  		'width=800,height=660,resizable=yes,scrollbars=yes')
  		}
  		
function sponsorWindow() {
  		sponsorwindow = window.open('sponsors.html', 'sponsorWin',
  		'width=800,height=660,resizable=yes,scrollbars=yes')
  		}
  		
function reportWindow() {
  		reportwindow = window.open('report.html', 'reportWin',
  		'width=400,height=500,resizable=yes,scrollbars=yes')
  		}
  		
function homePop(contentfile) {
  		popwindow = window.open(contentfile, 'popWin',
  		'width=640,height=680,resizable=yes,scrollbars=no')
  		popwindow.focus()
  		}	
  		
function newsPop(newsfile) {
  		newswindow = window.open(newsfile, 'pop2Win',
  		'width=800,height=1000,resizable=yes,scrollbars=yes')
  		newswindow.focus()
  		}	
  		

<!--Enables pop-up tool tips for each button on home page-->
  		
if (document.getElementById) {
			stdBrowser = true
		}
		else {
			stdBrowser = false
		}

		function popUp(evt,currElem) {
			if (stdBrowser) {
				popUpWin = document.getElementById(currElem).style
			}
			else {
				popUpWin = eval("document." + currElem)
			}
			
			if (document.all) {
				popUpWin.pixelTop = parseInt(evt.y)+6
				popUpWin.pixelLeft = Math.max(2,parseInt(evt.x)-25)
			}
			else {
				if (stdBrowser) {
					popUpWin.top = parseInt(evt.pageY)+6 + "px"
					popUpWin.left = Math.max(2,parseInt(evt.pageX)-25) + "px"
				}
				else {
					popUpWin.top = parseInt(evt.pageY)+6
					popUpWin.left = Math.max(2,parseInt(evt.pageX)-25)
				}
			}
			popUpWin.visibility = "visible"
		}

		function popDown(currElem) {
			if (stdBrowser) {
				popUpWin = document.getElementById(currElem).style
			}
			else {
				popUpWin = eval("document." + currElem)
			}
			popUpWin.visibility = "hidden"
		}


function map2Window() {
  		map2window = window.open('wolfcreekmap2.html', 'map2Win',
  		'width=770,height=635,resizable=yes,scrollbars=yes')
  		}
  		
function map3Window() {
  		map3window = window.open('wolfcreekmap3.html', 'map3Win',
  		'width=770,height=635,resizable=yes,scrollbars=yes')
  		}

<!--Preloads rollover images-->
  		
if (document.images) {
		volbutt = new Image
		volbuttHi = new Image
		volbutt.src = "images/volunteers_button.gif"
		volbuttHi.src = "images/volunteers_button_hi.gif"
		joinbutt = new Image
		joinbuttHi = new Image
		joinbutt.src = "images/join_button.gif"
		joinbuttHi.src = "images/join_button_hi.gif"
		explorebutt = new Image
		explorebuttHi = new Image
		explorebutt.src = "images/explore_button.gif"
		explorebuttHi.src = "images/explore_button_hi.gif"
		programsbutt = new Image
		programsbuttHi = new Image
		programsbutt.src = "images/programs_button.gif"
		programsbuttHi.src = "images/programs_button_hi.gif"
		eventsbutt = new Image
		eventsbuttHi = new Image
		eventsbutt.src = "images/events_button.gif"
		eventsbuttHi.src = "images/events_button_hi.gif"
		parkwaybutt = new Image
		parkwaybuttHi = new Image
		parkwaybutt.src = "images/parkway_button.gif"
		parkwaybuttHi.src = "images/parkway_button_hi.gif"
		linksbutt = new Image
		linksbuttHi = new Image
		linksbutt.src = "images/links_button.gif"
		linksbuttHi.src = "images/links_button_hi.gif"
		creekafter = new Image
		creekbefore = new Image
		creekafter.src = "images/creek_potential_urbanadv.JPG"
		creekbefore.src = "images/Baxter-1.jpg"
		}
		
		else {
		volbutt = ""
		volbuttHi = ""
		document.volunteers_button = ""
		
		joinbutt = ""
		joinbuttHi = ""
		document.join_button = ""
		
		explorebutt = ""
		explorebuttHi = ""
		document.explore_button = ""
		
		programsbutt = ""
		programsbuttHi = ""
		document.programs_button = ""
		
		eventsbutt = ""
		eventsbuttHi = ""
		document.events_button = ""
		
		parkwaybutt = ""
		parkwaybuttHi = ""
		document.parkway_button = ""
		
		linksbutt = ""
		linksbuttHi = ""
		document.links_button = ""
		
		creekafter = ""
		creekbefore = ""
		document.creekrestore = ""
		}

<!--defines and sets variables for home page image rotation-->
		
homeImages = new Array("images/homecreek1.jpg","images/homecreek2.jpg","images/homecreek3.jpg",
						"images/homecreek4.jpg","images/homecreek5.jpg","images/homecreek6.jpg",
						"images/waterfall.jpg")
imgCt = homeImages.length
firstTime = true

<!--function for rotation of images on home page-->

function rotate() {
	if (document.images) {
		if (firstTime) {
			thisImg = Math.floor ((Math.random() * imgCt))
			firstTime = false
			}
		else {
			thisImg++
			if (thisImg == imgCt) {
				thisImg = 0
				}
			}
		document.homeImage.src=homeImages[thisImg]
		setTimeout("rotate()", 3 * 1000)
			}
		}