// JavaScript Document
myDate= new Date()
myDay=myDate.getDay()
myMinutes= myDate.getMinutes()
mySeconds= myDate.getSeconds()
myHours= myDate.getHours()
myYear= myDate.getFullYear( )
myMonth= myDate.getMonth()
myMonth= myMonth+1
mydate= myDate.getDate()
var minute, sec, hour
var amPm = "AM"
function Clock() 
	{
	myDate= new Date()
	myDay=myDate.getDay()
	myMinutes= myDate.getMinutes()
	mySeconds= myDate.getSeconds()
	myHours= myDate.getHours()
		if (myHours>= 12) 
		{ 
   		amPm= "PM"; 
		}	
		if (myHours> 12) 
		{ 
   		myHours = myHours - 12
		}	
		if (myMinutes< 10) 
		{ 
		myMinutes= "0"+myMinutes
		}
		if (mySeconds< 10) 
		{ 
   		mySeconds= "0"+mySeconds 
		}
		if (myHours== 0) 
		{ 
   		myHours= myHours+12; 
		}
		if (myDay== 1)
		{
		myDay= "Mon";
		}
		if (myDay== 2)
		{
		myDay= "Tue";
		}
		if (myDay== 3)
		{
		myDay= "Wed";
		}
		if (myDay== 4)
		{
		myDay= "Thr";
		}
		if (myDay== 5)
		{
		myDay= "Fri";
		}
		if (myDay== 6)
		{
		myDay= "Sat";
		}
		if (myDay== 7)
		{
		myDay= "Sun";
		}
	theTime= "&nbsp;"+myMonth+"/"+mydate+"/"+myYear+" "+myDay+" "+myHours+":"+myMinutes+":"+mySeconds+" "+amPm
	document.getElementById("javatime").innerHTML =theTime
	setTimeout("Clock()",1000)
	}

var pictures = new Array ("images/rega.jpg" ,"images/regb.jpg" ,"images/regc.jpg" ,"images/regd.jpg" ,"images/rege.jpg" ,"images/regf.jpg" ,"images/regg.jpg");
var picture_num = 0;
var current_picture = new Image();
function start_show() 
{
setInterval("slideshow()", 3000);
}

function slideshow() 
{
	picture_num++;
		if (picture_num == pictures.length) 
		{
		picture_num = 0;
		}
		current_picture.src = pictures[picture_num];
		document["rotating_picture"].src = current_picture.src;
}
