var showArray=new Array();
//Add shows by following the pattern... (Title, DJ, image path)
showArray[0] = new Array("The Wacky Waving Inflatable Arm Flailing Jamiacan Tube Show","With DJs Short, Red, and Steve","Icons/WWIARJTSICON.png");
showArray[1] = new Array("The Grand Kunk Railroad","With Alix Kunkle","Icons/gkr.png");
showArray[2] = new Array("Cait The Great","With Caitlan Lawernce","Icons/ni.png");
showArray[3] = new Array("The Obtuse Triangle","With ...","Icons/tot.png");
showArray[4] = new Array("Aural Assault","With Ian Wilson and Guests","Icons/AA.png");
showArray[5] = new Array("Titus","With Joshua Laska","Icons/titus.png");
showArray[6] = new Array("Auto DJ","With DJ ARN!!!","Icons/arn.png"); //use this when the time slot is empty
showArray[7] = new Array("The New Fist","With ...!","Icons/tnf.png"); 
showArray[8] = new Array("Hangin With Scott","With Scott and Guests","Icons/HWS.png"); 
showArray[9] = new Array("Nocturnal Transmissions","With DJ Vicious","Icons/nt.png");
showArray[10] = new Array("The Sonic Recreation of the End Of the World","With Lydia and Lola","Icons/tsr.png"); 
showArray[11] = new Array("The Midnight Buffet","With The ","Icons/tmb.png"); 
showArray[12] = new Array("SkaPocalypse NOW!","With The Ska Boss, Short, and Andy Roberts","Icons/sn.png"); 
showArray[13] = new Array("Andy On The Air","With Andy Roberts and Guests","Icons/WOTR.png"); 
showArray[14] = new Array("PI","With Nate and Steve","Icons/pi.png"); 
showArray[15] = new Array("The Rock and Roll Mongoose","With The Mongoose, Rock, Ampersand, Roll","Icons/trrm.png");
showArray[16] = new Array("The Lair","With Lackey","Icons/lair.png"); 
showArray[17] = new Array("The Blend","With Gene","Icons/TB.png");
showArray[18] = new Array("Rock Revolution","With Brad","Icons/RR.png");
showArray[19] = new Array("Crank It With Kent","With Kent","Icons/KWK.png");
showArray[20] = new Array("Hair Metal Mania","With Rock","Icons/HMM.png");
showArray[21] = new Array("CAUTION","With DJ Crash","Icons/CCC.png");
showArray[22] = new Array("The Show With No Name","With Jess and Sarah","Icons/TSWNN.png");
showArray[23] = new Array("J and G Sessions","With ...?","Icons/JAJ.png");
showArray[24] = new Array("Mitchondria","With Tom Szemanski","Icons/M.png");
showArray[25] = new Array("Get With the Prog-Ram","With Jared Bundy","Icons/ni.png");

function checkShow(){
	var currentTime=new Date();
	var currentHour=currentTime.getHours();
	var currentDay=currentTime.getDay(); //day of the week as 0-6 (Sunday=0)
	
	if(currentDay==0){//All shows on Sunday
		if(currentHour >=0 && currentHour < 2) //First Number is the Starting hour, second is the ending (All time in 24hr format)
			setShow(24); //Put the number of the show from the array, this will set it as the active show
		if(currentHour >=2 && currentHour < 6) //Just keep repeating this if() for all of the shows on Sunday
			setShow(6); 
		if(currentHour >=6 && currentHour < 10) //Just keep repeating this if() for all of the shows on Sunday
			setShow(6);
		if(currentHour >=10 && currentHour < 14) //Just keep repeating this if() for all of the shows on Sunday
			setShow(2);
		if(currentHour >=14 && currentHour < 18) //Just keep repeating this if() for all of the shows on Sunday
			setShow(3);
		if(currentHour >=18 && currentHour < 22) //Just keep repeating this if() for all of the shows on Sunday
			setShow(4);
		if(currentHour >=22 && currentHour < 23) //Just keep repeating this if() for all of the shows on Sunday
			setShow(0);
	}
	if(currentDay==1){//All shows on Monday
		if(currentHour >=0 && currentHour < 2) //First Number is the Starting hour, second is the ending (All time in 24hr format)
			setShow(0); //Put the number of the show from the array, this will set it as the active show
		if(currentHour >=2 && currentHour < 6) //Just keep repeating this if() for all of the shows on Monday
			setShow(6);
		if(currentHour >=6 && currentHour < 10) //Just keep repeating this if() for all of the shows on Monday
			setShow(6);
		if(currentHour >=10 && currentHour < 14) //Just keep repeating this if() for all of the shows on Monday
			setShow(6);
		if(currentHour >=14 && currentHour < 18) //Just keep repeating this if() for all of the shows on Monday
			setShow(7);
		if(currentHour >=18 && currentHour < 22) //Just keep repeating this if() for all of the shows on Monday
			setShow(8);
		if(currentHour >=22 && currentHour < 23) //Just keep repeating this if() for all of the shows on Monday
			setShow(9);
	}
	if(currentDay==2){//All shows on Tuesday
		if(currentHour >=0 && currentHour < 2) //First Number is the Starting hour, second is the ending (All time in 24hr format)
			setShow(9); //Put the number of the show from the array, this will set it as the active show
		if(currentHour >=2 && currentHour < 6) //Just keep repeating this if() for all of the shows on Tuesday
			setShow(6);
		if(currentHour >=6 && currentHour < 10) //Just keep repeating this if() for all of the shows on Tuesday
			setShow(12);
		if(currentHour >=10 && currentHour < 14) //Just keep repeating this if() for all of the shows on Tuesday
			setShow(1);
		if(currentHour >=14 && currentHour < 18) //Just keep repeating this if() for all of the shows on Tuesday
			setShow(5);
		if(currentHour >=18 && currentHour < 22) //Just keep repeating this if() for all of the shows on Tuesday
			setShow(10);
		if(currentHour >=22 && currentHour < 23) //Just keep repeating this if() for all of the shows on Tuesday
			setShow(11);
	}
	if(currentDay==3){//All shows on Wednesday
		if(currentHour >=0 && currentHour < 2) //First Number is the Starting hour, second is the ending (All time in 24hr format)
			setShow(11); //Put the number of the show from the array, this will set it as the active show
		if(currentHour >=2 && currentHour < 6) //Just keep repeating this if() for all of the shows on Wednesday
			setShow(6);
		if(currentHour >=6 && currentHour < 10) //Just keep repeating this if() for all of the shows on Wednesday
			setShow(6);
		if(currentHour >=10 && currentHour < 14) //Just keep repeating this if() for all of the shows on Wednesday
			setShow(6);
		if(currentHour >=14 && currentHour < 18) //Just keep repeating this if() for all of the shows on Wednesday
			setShow(17);
		if(currentHour >=18 && currentHour < 22) //Just keep repeating this if() for all of the shows on Wednesday
			setShow(25);
		if(currentHour >=22 && currentHour < 23) //Just keep repeating this if() for all of the shows on Wednesday
			setShow(18);
	}
	if(currentDay==4){//All shows on Thursday
		if(currentHour >=0 && currentHour < 2) //First Number is the Starting hour, second is the ending (All time in 24hr format)
			setShow(18); //Put the number of the show from the array, this will set it as the active show
		if(currentHour >=2 && currentHour < 6) //Just keep repeating this if() for all of the shows on Thursday
			setShow(6);
		if(currentHour >=6 && currentHour < 10) //Just keep repeating this if() for all of the shows on Thursday
			setShow(19);
		if(currentHour >=10 && currentHour < 14) //Just keep repeating this if() for all of the shows on Thursday
			setShow(6);
		if(currentHour >=14 && currentHour < 18) //Just keep repeating this if() for all of the shows on Thursday
			setShow(20);
		if(currentHour >=18 && currentHour < 20) //Just keep repeating this if() for all of the shows on Thursday
			setShow(21);
		if(currentHour >=20 && currentHour < 22) //Just keep repeating this if() for all of the shows on Thursday
			setShow(22);
		if(currentHour >=22 && currentHour < 23) //Just keep repeating this if() for all of the shows on Thursday
			setShow(13);
	}
	if(currentDay==5){//All shows on Friday
		if(currentHour >=0 && currentHour < 2) //First Number is the Starting hour, second is the ending (All time in 24hr format)
			setShow(13); //Put the number of the show from the array, this will set it as the active show
		if(currentHour >=2 && currentHour < 6) //Just keep repeating this if() for all of the shows on Friday
			setShow(6);
		if(currentHour >=6 && currentHour < 10) //Just keep repeating this if() for all of the shows on Friday
			setShow(6);
		if(currentHour >=10 && currentHour < 14) //Just keep repeating this if() for all of the shows on Friday
			setShow(6);
		if(currentHour >=14 && currentHour < 18) //Just keep repeating this if() for all of the shows on Friday
			setShow(15);
		if(currentHour >=18 && currentHour < 22) //Just keep repeating this if() for all of the shows on Friday
			setShow(16);
		if(currentHour >=22 && currentHour < 23) //Just keep repeating this if() for all of the shows on Friday
			setShow(23);
	}
	if(currentDay==6){//All shows on Saturday
		if(currentHour >=0 && currentHour < 2) //First Number is the Starting hour, second is the ending (All time in 24hr format)
			setShow(23); //Put the number of the show from the array, this will set it as the active show
		if(currentHour >=2 && currentHour < 6) //Just keep repeating this if() for all of the shows on Saturday
			setShow(6);
		if(currentHour >=6 && currentHour < 10) //Just keep repeating this if() for all of the shows on Saturday
			setShow(6);
		if(currentHour >=10 && currentHour < 14) //Just keep repeating this if() for all of the shows on Saturday
			setShow(6);
		if(currentHour >=14 && currentHour < 18) //Just keep repeating this if() for all of the shows on Saturday
			setShow(6);
		if(currentHour >=18 && currentHour < 22) //Just keep repeating this if() for all of the shows on Saturday
			setShow(6);
		if(currentHour >=22 && currentHour < 23) //Just keep repeating this if() for all of the shows on Saturday
			setShow(24);	
	}

}
	
function setShow(showId){
    document.getElementById("showTitle").innerHTML=showArray[showId][0];
    document.getElementById("djNames").innerHTML=showArray[showId][1];
    document.getElementById("showImage").src=showArray[showId][2];
    setTimeout("checkShow",60000);
}

//shawnTunneyMadeThis