/******************************************
* external3.js - external js file for     *
*                fimbria website          *
* Copyright 2002 by Garry Rathbone        *
* Last update: 15th September 2003         *
******************************************/

/******************************************
* Below is the Javascript for calling in  *
* the menu mouseover images to the cache  *
* of the browser.                         *
* Code Source: From Lectures & Javascript *
* text book.                              *
* Last update: 23rd November 2002         *
******************************************/
home = new Image();
home.src = "lighterhome.gif";

gigs = new Image();
gigs.src = "lightergigs.gif";

imgimages = new Image();
imgimages.src = "lighterimages.gif";

imgpress = new Image();
imgpress.src = "lighterpress.gif";

imgaudio = new Image();
imgaudio.src = "lighteraudio.gif";

imgvideo = new Image();
imgvideo.src = "lightervideo.gif";

guest = new Image();
guest.src="lighterguestbook.gif";

imglyrics = new Image();
imglyrics.src="lighterlyrics.gif";

imgmailing = new Image();
imgmailing.src="lightermailing.gif";

imgkit = new Image();
imgkit.src="lighterkit.gif";

imgcontacts = new Image();
imgcontacts.src="lightercontacts.gif";

imglinks = new Image();
imglinks.src="lighterlinks.gif";


/******************************************
* Below is the Javascript for displaying  *
* a greeting on the homepage. The greeting*
* changes depending on what time of day   *
* it is.                                  *
* Code Source:                            *
* http://javascriptinternet.com           *
* Last update: 15th September 2003         *
******************************************/


datetoday = new Date();
timenow=datetoday.getTime();
datetoday.setTime(timenow);
thehour = datetoday.getHours();
if (thehour > 17) display = "Evening";
else if (thehour >12) display = "Afternoon";
else display = "Morning";
var greeting = ( "Good "+display);

/******************************************
* Below is the Javascript for displaying  *
* the Information on the Window Status    *
* about each link. This code is related to*
* mouseover and mouseout functions where  *
* message or clearmessage is present      *
* Code Source: Lectures and Javascript    *
* text book                               *
* Last update: 23rd November 2002         *
******************************************/

function message (msg){
window.status = msg
return true
}

function clearmessage (){
message (' ')
return true
}

/******************************************
* Below is the Javascript for enabling the*
* browser to open a separate popup window *
* Code Source:                            *
* http://www.fimbria2.fsnet.co.uk         *
* Last update: 23rd November 2002         *
******************************************/

function gr_popup (a,b,c )
{
  window.open (a,b,c );
}