		function switchgenre(theID) {
			document.getElementById('genre_pop').className = "";
			document.getElementById('genre_rock').className = "";
			document.getElementById('genre_world').className = "";
			document.getElementById('genre_jazz').className = "";
			document.getElementById('genre_blues').className = "";
			document.getElementById('genre_classical').className = "";
			document.getElementById(theID).className = "select";
		}
		function addgreen(theID){
			document.getElementById(theID).style.color = "#7DA500";
		}
		function addblue(theID){
			document.getElementById(theID).style.color = "#5AC4DC";
		}
		function addred(theID){
			document.getElementById(theID).style.color = "#DF0028";
		}
		function addpurple(theID){
			document.getElementById(theID).style.color = "#C263CC";
		}
		function addorange(theID){
			document.getElementById(theID).style.color = "#FF6600";
		}
		function addnavy(theID){
			document.getElementById(theID).style.color = "#1B68DC";
		}
		function addlink(theID){
			document.getElementById(theID).style.color = "#0E707A";
		}
		function removecolor(theID){
			document.getElementById(theID).style.color = "";
		}
		function addlinkbg(theID){
			theID.className = "linkbg";
		}
		function addgreenbg(theID){
			theID.className = "greenbg";
		}
		function addgreen2bg(theID){
			theID.className = "greenbg";
		}
		function addorangebg(theID){
			theID.className = "orangebg";
		}
		function addpurplebg(theID){
			theID.className = "purplebg";
		}
		function addbluebg(theID){
			theID.className = "bluebg";
		}
		function addredbg(theID){
			theID.className = "redbg";
		}
		function addnavybg(theID){
			theID.className = "navybg";
		}
		function addorangenbg(theID){
			theID.className= "orangebg";
		}
		

		
		function addcolor_block(theID, color){
			theID.className = "date_block "+color;			
		}

		
		function clear_date_block(){
			currentday.className = "date_block";
		}
		
		function switch_day(color, theID){
			clear_date_block();
			currentday = theID;
			addcolor_block(theID,color); 
			switchall(color);
		}
		
		function switchall(color){
			document.getElementById('am').className = "ampm "+color;
			document.getElementById('pm').className = "ampm "+color;
			document.getElementById('program_pic').className = color+"bg";
			document.getElementById('programming_top').style.backgroundImage = "url(images/texture_"+color+".jpg)";
			currentcolor = color;
			select_timeblock(currentprog);
		}
		
		function changebg(theID){
			theID.className = currentcolor+"bg";
		}
		
		function select_timeblock(theID){
			resettimeblocks();
			theID.className = currentcolor+"bg timeblock currentselect";
			currentprog = theID;
		}
		
		function resettimeblocks(){
			currentprog.className = "timeblock";
		}
		
		function select_temp_timeblock(theID){
			if (theID != currentprog){
				theID.className = "greybg timeblock";
			}
		}
		
		function unselect_temp_timeblock(theID){
			if(theID != currentprog){
				theID.className = "timeblock";
			}
		}
		
			
		function getcolor(color){
			
			if (color == 'purple')
				hex = '#C263CC';
			if (color == 'orange')
				hex = '#FF6600';
			if(color == 'red')
				hex = '#DF0028';
			if (color == 'green')
				hex = '#ABD015';
		
			return hex;
		}
		
		
		
		function over_timeblock(theID){
			document.getElementById(theID).className = "greybg time_block";
			document.getElementById("hidden_"+theID).className = "time_block_hidden";
		}
		
		function off_timeblock(theID){
			document.getElementById(theID).className = "time_block";
			document.getElementById("hidden_"+theID).className = "time_block_hide";
		}