// JavaScript Document
function changeImage0() {
			document.photo0.src="Images/btn0on.png"
		}
		
		function resetImage0() {
			document.photo0.src="Images/btn0off.png"
		}
		function changeImage() {
			document.photo.src="Images/btn1on.png"
		}
		
		function resetImage() {
			document.photo.src="Images/btn1off.png"
		}
		
		function changeImage2() {
			document.photo2.src="Images/btn2on.png"
		}
		
		function resetImage2() {
			document.photo2.src="Images/btn2off.png"
		}
		
		function changeImage3() {
			document.photo3.src="Images/btn3on.png"
		}
		
		function resetImage3() {
			document.photo3.src="Images/btn3off.png"
		}
		
		function changeImage4() {
			document.photo4.src="Images/btn4on.png"
		}
		
		function resetImage4() {
			document.photo4.src="Images/btn4off.png"
		}
		
		function changeImage5() {
			document.photo5.src="Images/btn5on.png"
		}
		
		function resetImage5() {
			document.photo5.src="Images/btn5off.png"
		}
		
		function changeImage6() {
			document.photo6.src="Images/btn6on.png"
		}
		
		function resetImage6() {
			document.photo6.src="Images/btn6off.png"
		}
		
		function changeImage7() {
			document.photo7.src="Images/btn7on.png"
		}
		
		function resetImage7() {
			document.photo7.src="Images/btn7off.png"
		}

var slideshow=new Array();
var numImages=6;
for (i=0; i<numImages; i++)
{
  slideshow[i]=new Image();
  slideshow[i].src="Images/image"+(i+1)+".png";
}
var curImage=-1;

function swapImage()
	{
	if (document.images)
		{
		var nextImage=curImage+1;
		if (nextImage>=numImages)
		nextImage=0;
		if (slideshow[nextImage] && slideshow[nextImage].complete)
			{
			var target=0;
			if (document.images.myImage)
			target=document.images.myImage;
			if (document.all && document.getElementById("myImage"))
			target=document.getElementById("myImage");

			// make sure target is valid
			if (target)
				{
				document.myImage.src=slideshow[nextImage].src;
				curImage=nextImage;
				}
			setTimeout("swapImage()", 3000);
			}
		else
			{
			setTimeout("swapImage()", 300);
			}
		}
	}
	setTimeout("swapImage()", 3000);
	
	
		function openWindow() {
			window.open("Calendar/calendar/demoBlog.php","_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizeable=yes, copyhistory=no, width=770, height=600")
		}
