// JavaScript Document



//if not broadcasting, then why
//	technical diffictulties
noTechRadio="Sorry<br>Technical Difficulties. Check our <a href='../hello/'>mixes</a> though.<br>Or, just wait and you'll be redirected."
noTechHello="Sorry\nTechnical Difficulties";
//	off schedule
noSchedRadio="We're currently not broadcasting. Check our <a href='../hello/'>schedule</a>.<br>Or, just wait and you'll be redirected.";
noSchedHello="We're not broadcasting right now.\nCheck our schedule.";
// set why not broadcasting
//noSched
//noRadio=;

function checkTime(src,secretWindow,channel)
{

n=new Date();
//

if(((n.getDay()>5)||(n.getDay()<4))||((n.getHours()<10)||(n.getHours()>20)))
	{ 
		switch(src)
		{	
			case 'radio': document.write(noSchedRadio);setTimeout("location.href='http://sacriforce.org/hello/'",5000);break
			case 'well_hello': alert(noSchedHello); break 	
		}
	}

else
	{
//		alert(n.getHours());
//		changeed from 'switch(src)' to 'switch(channel);
//
		switch(channel)
		{
			//from switch(src)
			/*
			case 'well_hello': document.getElementById(secretWindow).src='../radio/'; break
			case 'radio': location.replace('http://68.50.225.187:7877/listen.m3u')  ; break
			*/
			case 'brutal': location.replace('http://68.50.225.187:6660/listen.pls')  ; break
			case 'beats': location.replace('http://68.50.225.187:8880/listen.pls')  ; break
			case 'live': location.replace('http://68.50.225.187:7877/listen.m3u')  ; break
		}

	}


}