function popUpRA(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=800,height=800');");
}

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=900,height=800');");
}

function popUpSmall(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=600,height=450');");
}

function popUpSmaller(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=350,height=375');");
}

function popUpSmallest(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=350,height=200');");
}


function onAir()
{
   // return TRUE if it's Mon through Thurs, 7a-7p UTC
   // or if it's Fri, 7a-5p UTC
   
   var thedate   = new Date();
   var dayofweek = thedate.getUTCDay();
   var hourofday = thedate.getUTCHours();
   
   //document.write(dayofweek);
   //document.write(hourofday);

   if ((dayofweek == 5) && (hourofday > 12 && hourofday < 24))
   {
     return true;
   } 
   else if ((dayofweek > 0 && dayofweek < 5) && (hourofday > 12 && hourofday < 26))
   {
     return true;
   }
   else return false;
}

sfHovers = function() {
	var sfEls = document.getElementById("sidebar").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhovers";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhovers\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHovers);


