//// set up images
var image1=new Image()
image1.src="/images/cover21.jpg"
var image2=new Image()
image2.src="/images/cover23.jpg"
var image3=new Image()
image3.src="/images/cover24.jpg"
var image4=new Image()
image4.src="/images/cover25.jpg"
var image5=new Image()
image5.src="/images/cover27.jpg"
var image6=new Image()
image6.src="/images/cover26.jpg"
var image7=new Image()
image7.src="/images/cover30.gif"
var image8=new Image()
image8.src="/images/cover28.jpg"
var image9=new Image()
image9.src="/images/cover29.jpg"
//// change number of images below 
var number_of_images=9
//change speed below (in seconds)
var speed=6
var step=1
var whichimage=1
//// image slide function 
function slideit(){
if (!document.images)
return
if (document.all)
slide.filters.blendTrans.apply()
document.images.slide.src=eval("image"+step+".src")
if (document.all)
slide.filters.blendTrans.play()
whichimage=step
if (step<number_of_images)
step++
else
step=1
if (document.all)
setTimeout("slideit()",speed*1000+3000)
else
setTimeout("slideit()",speed*1000)
}
/// slideit reapply function
function reapply(){
setTimeout("slideit()",500)
return true
}
window.onerror=reapply
//reloads the window if Nav4 resized
function MM_reloadPage(init) {
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
/// set up Good Morning or Good Afternoon or Good Evening
//function greeting()
//{
//var d = new Date();
//var t_hour = d.getHours();
//if (t_hour < 12)
//{
//var greeting="Good Morning";
//}
//else if (t_hour >= 12 && t_hour <= 17)
//{
//var greeting="Good Afternoon";
//}
//else if (t_hour >17)
//{
//var greeting="Good Evening";
//}
//document.write(greeting);
//}
var bookmarkurl="http://www.stephenasmith.com/"
var bookmarktitle="Stephen's Home Page"
function addbookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
function MM_displayStatusMsg(msgStr) { //v1.0
status=msgStr;
document.MM_returnValue = true;
}
//popup200
function popup200(url) {
var opt=',toolbar=no,status=no,top=50,left=400,width=200,height=200,scrollbars=no,resizable=no,menubar=no';
window.open(url,'Content',opt);
}
//popup300
function popup300(url) {
var opt=',toolbar=no,status=no,top=50,left=400,width=300,height=300,scrollbars=no,resizable=no,menubar=no';
window.open(url,'Content',opt);
}
//popupme
function popme(url,w,h) {
l = (screen.width) ?	(screen.width-550) / 2	: 0;
t = (screen.height) ?	(screen.height-400) / 2 : 0;	
var opt='top='+t+',left='+l+',width='+w+',height='+h;
opt=opt+',toolbar=no,status=no,directories=no,scrollbars=no,location=no,resizable=no,menubar=no';
window.open(url,'Content',opt);
}
function PurplePopUp(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=0,width=500,height=345');");
}
//popupdoc
function popupdoc(url) {
var opt=',toolbar=no,status=no,top=50,left=500,width=600,height=750,scrollbars=no,resizable=yes,menubar=no';
window.open(url,'Content',opt);
}
//popupcamthumb
function popupcamthumb(url) {
var opt=',toolbar=no,status=no,top=50,left=200,width=170,height=170,scrollbars=no,resizable=no,menubar=no';
window.open(url,'Content',opt);
}
//popupcam
function popupcam(url) {
var opt=',toolbar=no,status=no,top=50,left=200,width=660,height=500,scrollbars=no,resizable=yes,menubar=no';
window.open(url,'Content',opt);
}
// Player Settings
var gMiniWindow= null;
var gMiniWindowPLR= null;
function PlayerIsDirectLaunch()
{
var ph = GetCookie("PH");
switch(ph) {
case("1"):
return true;
}
return false;
}
// LaunchBroadcast - launch locally served stream by name.
function LaunchBroadcast(broadcastName, site, source, clientType, playlist, odatrack, odapos)
{
var url = "http://www.live365.com/cgi-bin/mini.cgi?membername=" + escape(broadcastName);
var numArgs = LaunchBroadcast.arguments.length + 1;
if (numArgs >= 2 && site) url += "&site=" + escape(site);
else site = "";
if (numArgs >= 3 && source)
url += "&source=" + escape(source);
if (numArgs >= 4) url += "&clientType=" + clientType;
if (numArgs >= 5) url += "&playlist=" +escape(playlist);
else playlist = "";
if (numArgs >= 6) url += "&odatrack=" +escape(odatrack);
else odatrack = "";
if (numArgs >= 7) url += "&odapos=" +escape(odapos);
else odapos = "";
if (PlayerIsDirectLaunch()) {
if (LaunchDirect(broadcastName, site, source, clientType, playlist, odatrack, odapos ))
return;
}
LaunchMiniDecide(url, site);
}
// LaunchPlayer - launch locally served stream with specified player type.
function LaunchPlayer(streamID, genre, clientType, site, source)
{
var url = "http://www.live365.com/cgi-bin/mini.cgi?clientType=" + clientType + "&stream=" + streamID + "&genre=" + escape(genre);
var numArgs = LaunchPlayer.arguments.length + 1;
var poc = clientType;
if (poc == "") poc = GetCookie("POC");
if (numArgs >= 4 && site) url += "&site=" + site;
if (numArgs >= 5 && source) url += "&source=" + escape(source);
if (!site) site = "";
if (PlayerIsDirectLaunch()) {
if (LaunchDirectStream(streamID, genre, site, source, poc))
return;
}
LaunchMiniDecide(url, site);
}
// LaunchMiniDecide() Determines whether to launch the PLR or Normal/SCP version 
// this is called from the done button on ls, too!(4-19-01)
function LaunchMiniDecide(url, site, plr)
{
if (LaunchMiniDecide.arguments.length < 2 || LaunchMiniDecide.arguments[1]) site = "";
if (LaunchMiniDecide.arguments.length < 3 || LaunchMiniDecide.arguments[2]) plr = "N";
var checkVar = site.indexOf("PLR-");
if (checkVar != "-1" || plr == "Y") LaunchMini(url, true);// PLR
else LaunchMini(url, false);// Normal & SCP
}
// LaunchMini - launch Live365.com playlist window given full url.
function LaunchMini(url, plr) 
{
var sceenOffset= new Object();
var normalWin= true;
var win= gMiniWindow;
var name= "Live365PlayerWindow";
var width= 468;
var height= 330;
var SaneID= GetCookie("SaneID");
var ls= GetCookie("ls");
var bitrate= GetCookie("bitrate");
var POC= GetCookie("POC");
if (LaunchMini.arguments.length == 1) plr = false;
if (plr) {
height= 330;
normalWin= false;
win= gMiniWindowPLR;
name= "Live365PlayerWindowPLR";
}
if(self.location.host.indexOf(parseHost("www.live365.com")) != -1) 
{
if (SaneID && (client.isWin || client.isMac)) {// check for LS stuff if cookies enabled
if (ls == 0 || !bitrate || POC == '') {// incomplete cookie setup
height= 460;
width= 475;
name= "Live365ListeningStup";
url= "http://www.live365.com/listen/ls-frame-other.live?url=" + escape(url) + "&mode=listen";
if (plr) url += "&plrflag=Y";
else url += "&plrflag=N";
} 
else if (bitrate && POC != '' && ls && ls != 0) { // pass them through
RememberIt("ls", 1);
}
}
}
if (win != null) {
if (win.closed == true)
win = null;
else {
if (self.location.host.indexOf(parseHost("www.live365.com")) != -1) {
if (win.ActivateWarning) win.ActivateWarning(false);
}
win.location = url;
if (win.focus) win.focus();
}
}
if (name != "Live365ListeningStup")
url += "&url=" + escape(url);
// cache breaker - needed now
var tm = new Date();
url += "&tm="+ tm.getTime();
if (win == null) {
win = open(url, name, 'width=' + width + ',height=' + height + ',toolbar=no,scrollbars=no,location=no,resizable=no,status=no,menubar=no');
if (normalWin) gMiniWindow = win;
else gMiniWindowPLR = win;
}
}