		function showTimeSlot(n) {
			
			/*var dayWrappersArray = new Array;
			dayWrappersArray = $('header').select('div.dayWrapper');
			for (i=0; i<dayWrappersArray.length; i++) {
				if (dayWrappersArray[i].getStyle('display') != 'none') {
					var dayWrapper = dayWrappersArray[i]
				}
			}*/
			
			var dayWrapper = $('header').select('div.dayWrapper')[0];
			var timeSlotsArray = new Array;
			var showTitlesArray = new Array;
			timeSlotsArray = $(dayWrapper).select('a.schedule_time');
			showTitlesArray = $(dayWrapper).select('div.showtitle');
			for (i=0; i<showTitlesArray.length; i++) {
				$(timeSlotsArray[i]).setStyle({ color: '#ccc', textDecoration: 'none' })
				$(showTitlesArray[i]).setStyle({ display: 'none' })
			}
			
			var currentDate = new Date();
			var currentTime = Date.parse(currentDate);
			
			if (n == null) {
				for (j=0;j<timeSlotsArray.length;j++) {
					var startTimeDivId = 'start-time-'+j;
					var endTimeDivId = 'end-time-'+j;
					var startTime = Date.parse($('timeslot'+j).select('div')[0].readAttribute('title'));
					var endTime = Date.parse($('timeslot'+j).select('div')[1].readAttribute('title'));
					if ((currentTime >= startTime) && (currentTime < endTime)) {
						n = j;
						break;
					}
					else if ((currentTime > endTime) && (j==timeSlotsArray.length-1)) {
						n=j;
					}
					else {
						n=0;
					}
				}
			}
			
			$(timeSlotsArray[n]).setStyle({ color: '#d9ca64', textDecoration: 'underline' })
			$(showTitlesArray[n]).setStyle({ display: 'block' })
		}
		
		
		function showSchedule(dayId) {
			var scheduleBlocksArray = new Array();
			scheduleBlocksArray = $$('div.dayWrapper');
			for (i=0; i<scheduleBlocksArray.length; i++) {
				if ($(scheduleBlocksArray[i]).visible()) $(scheduleBlocksArray[i]).hide();
			}
			$(dayId).show();
			showTimeSlot(0);
		}