
function loadImages()
{
imageA=new Image
	imageA.src="graphics/rainplain1.gif"
imageA1 = new Image
	imageA1.src="graphics/rainplain2.gif"

imageB=new Image
	imageB.src="graphics/rainplain1.gif"
imageB1 = new Image
	imageB1.src="graphics/rainplain2.gif"	
imageC=new Image
	imageC.src="graphics/rainplain1.gif"
imageC1 = new Image
	imageC1.src="graphics/rainplain2.gif"	
imageD=new Image
	imageD.src="graphics/rainplain1.gif"
imageD1 = new Image
	imageD1.src="graphics/rainplain2.gif"	
imageE=new Image
	imageE.src="graphics/rainplain1.gif"
imageE1 = new Image
	imageE1.src="graphics/rainplain2.gif"		
imageF=new Image
imageF.src="graphics/todolist.jpg"
imageF1= new Image
imageF1.src="graphics/todolistburnt.jpg"
}

function flip1()
{
	if(document.images["ph1"].src==imageA.src)
		document.images["ph1"].src=imageA1.src
	else
		document.images["ph1"].src=imageA.src
}

function flip2()
{
	if(document.images["ph2"].src==imageB.src)
		document.images["ph2"].src=imageB1.src
	else
		document.images["ph2"].src=imageB.src
}

function flip3()
{
	if(document.images["ph3"].src==imageC.src)
		document.images["ph3"].src=imageC1.src
	else
		document.images["ph3"].src=imageC.src
}
function flip4()
{
	if(document.images["ph4"].src==imageD.src)
		document.images["ph4"].src=imageD1.src
	else
		document.images["ph4"].src=imageD.src
}
function flip5()
{
	if(document.images["ph5"].src==imageE.src)
		document.images["ph5"].src=imageE1.src
	else
		document.images["ph5"].src=imageE.src
}
function flip6()
{
	if(document.images["ph6"].src==imageF.src)
		document.images["ph6"].src=imageF1.src
	else
		document.images["ph6"].src=imageF.src
}



	


function fun1()
{

var d = new Date()

//getDate returns a number between 1-31
dd = d.getDate();

mm = d.getMonth();

if(mm == 0){month = "January"}
if(mm == 1){month = "February"}
if(mm == 2){month = "March"}
if(mm == 3){month = "April"}
if(mm == 4){month = "May"}
if(mm == 5){month = "June"}
if(mm == 6){month = "July"}
if(mm == 7){month = "August"}
if(mm == 8){month = "September"}
if(mm == 9){month = "October"}
if(mm == 10){month = "November"}
if(mm == 11){month = "December"}

yr = d.getFullYear();

x =  month + " " + dd + " " + yr 
return x 
}

var now = new Date();

var day = now.getDay();

var dayname = ""

if (day == 0) dayname = " Sunday ";
if (day == 1) dayname = " Monday ";
if (day == 2) dayname = " Tuesday ";
if (day == 3) dayname = " Wednesday ";
if (day == 4) dayname = " Thurdsay ";
if (day == 5) dayname = " Friday ";
if (day == 6) dayname = " Saturday ";

today= new Date()
thisyear =new Date("January 1, 2002")
 x= thisyear - today 
 daystill =parseInt(x/1000/60/60/24)
function Clock() {

		window.setTimeout( "Clock()", 1000 );

		now = new Date();
localtime = now.toString();
hours = now.getHours();
mins = now.getMinutes();

if(mins < 10)
mins = "0" + mins
secs = now.getSeconds();
if(secs < 10)
secs = "0" + secs
real = "" + ((hours > 12) ? hours - 12 : hours)
real +=(":" + mins)
real +=(hours >=12) ?  " pm" : " am"
		
 if(hours< 12)
			  {
			  greet = "<b>Good Morning!</b><br>"
			  timeText = "morning "
			  }
			  else if(hours == 12)
			  {
			  greet = "<b>Good Afternoon!</b><br>"
			  timeText = "afternoon "
			  }
			  else if (hours < 17)
			  {
			  greet = "<b>Good Afternoon!</b><br>"
			  timeText = " afternoon "
			  }
			  else
			  {
			  greet = "<b>Good Evening!</b><br>"
			  timeText =" evening "
			  }
			
	window.status = fun1() +"  "+ hours + ":" + mins + ":" + secs + " Welcome to Blue Star Canada " +  real .toString();
	


    }
Clock()
 