// JavaScript Document

//dateArr = ['WED, MAY 14, 2008', 'THUR, MAY 15, 2008', 'Fri, MAY 16, 2008', 'SAT, MAY 17, 2008'];
currDate = 0;
function NewsCastPreviousDate(){
	if(currDate > 0){
		document.getElementById('NCDate').innerHTML = dateArr[--currDate];
		sp5.showPreviousPanel(); 
	}
	return false;
}

function NewsCastNextDate(){
	if(currDate < dateArr.length - 1){
		document.getElementById('NCDate').innerHTML = dateArr[++currDate];
		sp5.showNextPanel(); 
	}
	return false;
}








/*
StreamAudio Player Open Script
*/
if(navigator.appVersion.indexOf("AOL") > -1)
 {
 //AOL
 var opt1 = 'width=472,height=257';
 var opt2 = 'width=472,height=257';
 } else if(navigator.platform.indexOf("Win") > -1)
 {
 //IE and NS Windows
 var opt1 = 'width=472,height=257,top=420,left=520,screenY=420,screenX=520';
 var opt2 = 'width=472,height=257,top=250,left=300,screenY=250,screenX=300';
 } else if(navigator.platform.indexOf("Mac") > -1)
 {
 //IE and NS Mac
 if(navigator.appName.indexOf("Microsoft") > -1)
 {
 var opt1 = 'width=455,height=240,top=420,left=520,screenY=420,screenX=520';
 var opt2 = 'width=455,height=240,top=250,left=300,screenY=250,screenX=300';
 } else if(navigator.appName.indexOf("Netscape") > -1)
 {
 var opt1 = 'width=472,height=257,top=420,left=520,screenY=420,screenX=520';
 var opt2 = 'width=472,height=257,top=250,left=300,screenY=250,screenX=300';
 }
 }
 function openPlayer(URL)
    {
    if(screen.width >= 1000)
 {
 window.open(URL,'Streamaudio_Player',opt1);
 }
    if(screen.width <= 800)  {window.open(URL,'Streamaudio_Player',opt2);
 }
	}