function start() {   
   rolloverInit();
   photoGallery();
}
window.onload = start;   

/*----------Roll Overs-----------*/
function rolloverInit() {
	for (var i=0; i<document.images.length; i++) {
		if (document.images[i].parentNode.tagName == "A") {
			setupRollover(document.images[i]);
		}
	}
}

function setupRollover(thisImage) {
	thisImage.outImage = new Image();
	thisImage.outImage.src = thisImage.src;
	thisImage.onmouseout = rollOut;

	thisImage.overImage = new Image();
	thisImage.overImage.src = "images/nav/" + thisImage.id + "_on.jpg";
	thisImage.onmouseover = rollOver;	
}

function rollOver() {
	this.src = this.overImage.src;
}

function rollOut() {
	this.src = this.outImage.src;
}

//Side Photo Gallery//
var c=0
var s
function photoGallery()
{
if (c%7==0){
document.getElementById('photo-gallery').src = "images/sidePicGallery/pic1.jpg";
}
if (c%7==1){
document.getElementById('photo-gallery').src = "images/sidePicGallery/pic2.jpg";
}
if (c%7==2){
document.getElementById('photo-gallery').src = "images/sidePicGallery/pic3.jpg";
}
if (c%7==3){
document.getElementById('photo-gallery').src = "images/sidePicGallery/pic4.jpg";
}
if (c%7==4){
document.getElementById('photo-gallery').src = "images/sidePicGallery/pic5.jpg";
}
if (c%7==5){
document.getElementById('photo-gallery').src = "images/sidePicGallery/pic6.jpg";
}
if (c%7==6){
document.getElementById('photo-gallery').src = "images/sidePicGallery/pic7.jpg";
}
c=c+1
s=setTimeout("photoGallery()",1000)
}
