// JavaScript Document

	//Rotating Header Pix Script

	myPix = new Array("images/header_foo1.jpg","images/header_audio.jpg","images/header_chili.jpg","images/header_stripes.jpg","images/header_weezer.jpg","images/header_green1.jpg")
	imgCt = myPix.length 

	function choosePic() {
		if (document.images) {
			randomNum = Math.floor((Math.random() * imgCt))
			document.myPicture.src = myPix[randomNum]
		}
	}


	//End Rotating Header Pix Script


  // Begin On Air Now Script

	now = new Date
	today = "week"
	
	//  Start Script for Sunday
	if (now.getDay() == 0 ) {
	//	document.write("It's a Sunday.")
						if (now.getHours() < 9) {
	//		document.write("What are you doing up so late?")
			image="onairbot"
			link1="staff.html"

		}
				else if (now.getHours() < 12) {
	//		document.write("Good Morning!")
			image1="onairbot"
			link1="shows.html"
		}
				else if (now.getHours() < 14) {
		//	document.write("It's not yet 2pm!")
			image1="onair_ooo"
			link1="shows.html"
	
		}
				else if (now.getHours() < 19) {
			image1="onairbot"
			link1="staff.html"
	
		}
				else if (now.getHours() < 24) {
	//		document.write("It's not yet 10pm")
			image1="onairbot"
			link1="shows.html"
		}		


		else {
		//	document.write("Good Evening!")
			image1="onairbot"
			link1="staff.html"
		}
		
	}
	// Start Script for Saturday
	else if (now.getDay() == 6 ){
	//	document.write("Hooray, it's Saturday!")
				if (now.getHours() < 1) {
		//	document.write("What are you doing up so late?")
			image="onairbot"
			link1="staff.html"

		}
				else if (now.getHours() < 9) {
			image="onairbot"
			link1="staff.html"

		}
				else if (now.getHours() < 14) {
			//document.write("Good Morning!")
			image1="onair_satbeefcake"
			link1="staff.html"
		}
				else if (now.getHours() < 19) {
		//	document.write("It's not yet 7pm!")
			image1="onairbot"
			link1="staff.html"
		}

 
		else {
		//	document.write("Good Evening!")
			image1="onair_shaggy"
			link1="staff.html"
		}
	}
	// Start script for the Weekday
	else {
		//document.write("Sorry, it's a weekday...")
				if (now.getHours() < 6) {
	//		document.write("What are you doing up so late?")
			image1="onairbot"
			link1="staff.html"

		}
				else if (now.getHours() < 10) {
			//document.write("Good Morning!")
			image1="onair_laura"
			link1="staff.html"
		}
				else if (now.getHours() < 14) {
			//document.write("It's not yet 2pm!")
			image1="onair_jodie"
			link1="staff.html"
	
		}
				else if (now.getHours() < 19) {
			//document.write("It's after 2 pm!")
			image1="onair_craig"
			link1="staff.html"
		}
	//			else if (now.getHours() < 22) {
	//		image1="onair_jp"
	//		link1="jp.html"
	//	}
		else {
		//	document.write("Good Evening!")
			image1="onairbot"
			link1="staff.html"
		}
	}
			getImage= '<A href=' + link1 + '\>' + ' <IMG BORDER=0 width=184 height=73 SRC=images/' + image1 + '.gif /> ' + '</A>'


  // End On Air Now Script