// JavaScript Document

var ShowList = new Array
/*/
/*
/* ShowList[dhh]		d: 1=Mon ... 7=Sun
/*						hh: 00=12am ... 23=11pm
/*	ShowList[dhh][1] = show name
/*	ShowList[dhh][2] = host name
/*  ShowList[dhh][3] = length
/*	ShowList[dhh][4] = genre icon
/*  ShowList[dhh][5] = description
/*
/*/

ShowList[116] = new Array;
ShowList[116][1] = "Rolling with Rayna and Josh";
ShowList[116][2] = "Rayna Harty and Josh Zaino";
ShowList[116][3] = 2;
ShowList[116][4] = "rock";
ShowList[116][5] = "Jam bands like Phish, Grateful Dead, and Pink Floyd. Rayna and Josh are both freshmen and new to WNEK.";

ShowList[118] = new Array;
ShowList[118][1] = "Rockin' Out with Neil and Dave";
ShowList[118][2] = "Neil Von Flatern and Dave Abad";
ShowList[118][3] = 2;
ShowList[118][4] = "metal";
ShowList[118][5] = "Neil and Dave are juniors and veteran DJ's at WNEK. They are well known for DJing SOAR and for playing many requests ranging from Bruce Springsteen to Killswitch Engage.";

ShowList[214] = new Array;
ShowList[214][1] = "Airwave Anarchy";
ShowList[214][2] = "Prof. Thomas Hull";
ShowList[214][3] = 2;
ShowList[214][4] = "urban";
ShowList[214][5] = "Techno, darkwave, EBM, electroclash, industrial, Godzilla, spoken word, gabber, math rock, mixing, Zappa, Watership Down, Residents, polysorbate 80, and Mr. Rogers.  May contain 2% or less of: sound effects, fair use, and cookie monster.";

ShowList[216] = new Array;
ShowList[216][1] = "Two Hour Parking";
ShowList[216][2] = "Ian Martin and Christopher \"Topher\" Morey";
ShowList[216][3] = 2;
ShowList[216][4] = "alt";
ShowList[216][5] = "Ian Martin, Assistant Director of Student Activities, and Christopher \"Topher\" Morey, Resident Director of Gateway, host a two hour indie/alternative show in which they discuss what is happening on campus, what is happening in the world, and what is on their minds.";

ShowList[220] = new Array;
ShowList[220][1] = "Down Home Country";
ShowList[220][2] = "Aly Foster";
ShowList[220][3] = 2;
ShowList[220][4] = "country";
ShowList[220][5] = "Nothing but true country music ranging from Toby Keith to Taylor Swift to Rascal Flatts. Make sure to listen and call in with requests!";

ShowList[316] = new Array;
ShowList[316][1] = "Rock and Rant";
ShowList[316][2] = "David Cicero";
ShowList[316][3] = 2;
ShowList[316][4] = "rock";
ShowList[316][5] = "Dave is a freshman and a communications major at WNEC.  He plays pop rock and allows callers to talk about anything on their minds that day.";

ShowList[318] = new Array;
ShowList[318][1] = "All You Can Eat Rock";
ShowList[318][2] = "Brandon Gunzel";
ShowList[318][3] = 2;
ShowList[318][4] = "metal";
ShowList[318][5] = "Brandon plays anything from 80's hair metal to screamo, from loud rock to alternative rock and ska. You may hear AC/DC one minute and Three Doors Down the next!";

ShowList[320] = new Array;
ShowList[320][1] = "Sports Talk";
ShowList[320][2] = "Anthony Camardi and Keaton Derocher";
ShowList[320][3] = 2;
ShowList[320][4] = "sport";
ShowList[320][5] = "";

ShowList[322] = new Array;
ShowList[322][1] = "Shadows and Dust";
ShowList[322][2] = "Spencer Bracco";
ShowList[322][3] = 2;
ShowList[322][4] = "metal";
ShowList[322][5] = "This is seriously one of the heaviest heavy metal shows at WNEK. Listen in to hear Lamb of God, Megadeth, Chimara, Soilwork, Rammstein, In Flames, Children of Bodom and more! Spencer is a sophomore and mechanical engineer at WNEC.  He is also Event Coordinator of WNEK.  Be sure to say hello to him if you see WNEK DJing an event on campus!";

ShowList[416] = new Array;
ShowList[416][1] = "The Aly Foster Show";
ShowList[416][2] = "Aly Foster";
ShowList[416][3] = 2;
ShowList[416][4] = "alt";
ShowList[416][5] = "Aly is a freshman, majors in psychology, and is new to WNEK. She plays alternative rock ranging from Metro Station to Red Jumpsuit Apparatus to Dashboard Confessional.";

ShowList[420] = new Array;
ShowList[420][1] = "Viva Las Vegas";
ShowList[420][2] = "Prof. Bill Mandel";
ShowList[420][3] = 2;
ShowList[420][4] = "rock";
ShowList[420][5] = "Prof. Mandel teaches political science at WNEC.  He talks about current events, weather, sports scores, politics, and plays a mix of music from classic rock to indie to oldies to even hip-hop! Every show ends with Viva Las Vegas covered by different artists.";

ShowList[422] = new Array;
ShowList[422][1] = "The Halcyon Daze";
ShowList[422][2] = "Tyler Kennedy";
ShowList[422][3] = 2;
ShowList[422][4] = "urban";
ShowList[422][5] = "Bringing you the best in House, Electro, Trance, and Dance music.";

ShowList[512] = new Array;
ShowList[512][1] = "The Express";
ShowList[512][2] = "Pat Soltys and Matt \"Big Mo\" Moriarty";
ShowList[512][3] = 4;
ShowList[512][4] = "talk";
ShowList[512][5] = ""

ShowList[516] = new Array;
ShowList[516][1] = "The Ashley Sherkus Variety Show";
ShowList[516][2] = "Ashley Sherkus";
ShowList[516][3] = 2;
ShowList[516][4] = "rock";
ShowList[516][5] = "Ashley is a member of CAB and hosts a two-hour mixed rock show with comedy and talk mixed in.";

ShowList[518] = new Array;
ShowList[518][1] = "Sounds of the Underground";
ShowList[518][2] = "Mike \"The Mole\" Moschella";
ShowList[518][3] = 2;
ShowList[518][4] = "metal";
ShowList[518][5] = ""

ShowList[520] = new Array;
ShowList[520][1] = "Fire Fridays";
ShowList[520][2] = "Nick Belcastro and Ryan Harrison";
ShowList[520][3] = 1;
ShowList[520][4] = "urban";
ShowList[520][5] = "Tune in every Friday from 8PM to 9PM to hear the best new rap and hip-hop that will help start your weekend off right. We will be playing songs from new, up and coming artists as well as the best tracks that other radio stations don't play.";

ShowList[521] = new Array;
ShowList[521][1] = "Is It Friday Yet?";
ShowList[521][2] = "Jason Jansak and Chris Morgan";
ShowList[521][3] = 1;
ShowList[521][4] = "talk";
ShowList[521][5] = "An entertaining talk and music show hosted by two new freshman DJ's: Chris Morgan and Jason Jansak!";

ShowList[612] = new Array;
ShowList[612][1] = "Live Broadcast of Golden Bear Sports";
ShowList[612][2] = "Frank Schroll";
ShowList[612][3] = 6;
ShowList[612][4] = "sport";
ShowList[612][5] = "";

ShowList[618] = new Array;
ShowList[618][1] = "Is It Saturday Yet?";
ShowList[618][2] = "Jason Jansak and Chris Morgan";
ShowList[618][3] = 2;
ShowList[618][4] = "talk";
ShowList[618][5] = "An entertaining talk and music show hosted by two new freshman DJ's: Chris Morgan and Jason Jansak!";

ShowList[620] = new Array;
ShowList[620][1] = "Mike on the Mic";
ShowList[620][2] = "Mike O'Donnell";
ShowList[620][3] = 2;
ShowList[620][4] = "sport";
ShowList[620][5] = "This fun-filled two hour show is packed with the latest in sports headlines from around the world. Mike loves to be controversial and is never afraid to voice his opinion whether it be about the Boston/New York Rivalries or how well a player or coach is doing. He plays music intermittently to provide a brief break from sports talk; he usually plays Journey, Elton John, Billy Joel, AC/DC, and many others. He loves requests, so don't be shy!";

ShowList[712] = new Array;
ShowList[712][1] = "A Moment of Clarity";
ShowList[712][2] = "DJ Druck (Dan Rich)";
ShowList[712][3] = 2;
ShowList[712][4] = "urban";
ShowList[712][5] = "A Moment of Clarity is a techno show for the trance and popular genre techno fans out there. Not only does the show cover the best and most remarkable techno songs, the show also covers the up and coming semi-techno bands such as Phoenix, Vampire Weekend, and Daft Punk. Overall, a show that allows you to feel European without having the leave the states!";

ShowList[714] = new Array;
ShowList[714][1] = "Chop Suey";
ShowList[714][2] = "DJ Yasha aka Matt Amann";
ShowList[714][3] = 2;
ShowList[714][4] = "metal";
ShowList[714][5] = "Nu metal: featuring Five Finger Death Punch, Shadows Fall, Disturbed, Korn, Lacuna Coil, System of a Down, and more. Matt is a freshman and majors in forensic chemistry. He likes to skateboard, and he is part of a street team for a metal band who has opened for many of the bands listed above.";

//ShowList[716] = new Array;
//ShowList[716][1] = "The Sunday Blitz";
//ShowList[716][2] = "Pat Tedaldi and T.C. Coyle";
//ShowList[716][3] = 2;
//ShowList[716][4] = "sport";
//ShowList[716][5] = "We will start off each show with daily headlines and provide the audience with our opinions on matters. Listeners can call in and share their own views. During Special Events such as the World Series, NBA tip off, Superbowl etc... we will put together trivia games for our audience to join in on. From time to time we will invite current WNEC athletes on as special guests to provide analysis on past and future games.";

ShowList[718] = new Array;
ShowList[718][1] = "Letting the Led Out";
ShowList[718][2] = "David Tower";
ShowList[718][3] = 2;
ShowList[718][4] = "rock";
ShowList[718][5] = "Featuring Steely Dan, Led Zeppelin, The Beatles, and more! Dave is a senior at WNEC and a finance major.";

ShowList[720] = new Array;
ShowList[720][1] = "Loud Rock";
ShowList[720][2] = "Matthew Diller and Josh Goldberg";
ShowList[720][3] = 2;
ShowList[720][4] = "rock";
ShowList[720][5] = "Josh and Matt are freshmen and are new to WNEK. Be sure to give them a warm welcome by listening in!";

var days = Array("Monday","Tuesday","Wednesday","Thursday","Friday", "Saturday", "Sunday");

function featuredShow(ShowID, path) {
	while (ShowList[ShowID] == null) {
		ShowID = Math.round(Math.random()*724)
	}
	var d, h
	d = Math.floor(ShowID / 100);
	h = ShowID % 100;
	if (h > 12) {
		h = (h - 12) + "pm";
	} else if (h < 12){
		h += "am";
	} else {
		h = "Noon";
	}
	
	var newFeature = '<img src="' + path + 'img/schedule/' + ShowID +'.jpg" width="350" height="250" />';
	newFeature += '<h3>' + ShowList[ShowID][1] + '<br />';
	newFeature += '<span class="host">with ' + ShowList[ShowID][2] + '<br />';
	newFeature += days[d-1] + 's at ' + h + '</span></h3>'
	newFeature += '<p>' + ShowList[ShowID][5] + '</p>';
	document.getElementById("right").innerHTML = newFeature;
}

function printAllShows(path) {
// prints out all shows in the featuredShow format
// used for expanded schedule view
	var i = 108;
	var d, h;
	
	while (i < 724) {
		if (ShowList[i] == null) {
			i++;
		} else {
			d = Math.floor(i / 100);
			h = i % 100;
			if (h > 12) {
				h = (h - 12) + "pm";
			} else if (h < 12){
				h += "am";
			} else {
				h = "Noon";
			}
			
			document.write('<div class="show">');
			document.write('<img src="' + path + 'img/schedule/' + i +'.jpg" width="350" height="250" />');
			document.write('<h3>' + ShowList[i][1] + '<br />');
			document.write('<span class="host">with ' + ShowList[i][2] + '<br />');
			document.write(days[d-1] + 's at ' + h + '</span></h3>');
			document.write('<p>' + ShowList[i][5] + '</p></div>');
			i++;
		}
	}
}

function printGrid(path) {
	var day, hour, showID, inProgress;
	inProgress = Array('',0,0,0,0,0,0,0)
	
	hour = 8;
	while (hour < 24) {
		day = 1;	
		if (hour < 12) {
			document.writeln('<tr><th>' + hour + 'am</th>');
		} else if (hour > 12) {
			document.writeln('<tr><th>' + (hour-12) + 'pm</th>');
		} else {
			document.writeln('<tr><th>Noon</th>');
		}

		while (day < 8) {
			showID = (day*100) + hour
			if (ShowList[showID] != null) {
				document.writeln('<td rowspan="' + ShowList[showID][3] + '"><img src="' + path + 'img/schedule/icon_' + ShowList[showID][4] + '.png" alt="' + ShowList[showID][4] + '" onmouseover="featuredShow(' + showID + ",'');\" /></td>");
				inProgress[day] = ShowList[showID][3]-1;
			} else if (inProgress[day] > 0) {
				inProgress[day]--;
				document.writeln('<!--<td></td>-->');
			} else {
				document.writeln('<td></td>');
			}
			day++; 
		}
		document.writeln('</tr>');
		hour++;
	}	
}