<!--

var thumbButton = new Array();
thumbButton[0] = new Image();
thumbButton[1] = new Image();
thumbButton[2] = new Image();
thumbButton[3] = new Image();
thumbButton[4] = new Image();
thumbButton[5] = new Image();
thumbButton[6] = new Image();
thumbButton[7] = new Image();

thumbButton[0].src= "images/davemoss-menu-home-off.gif"; 
thumbButton[1].src= "images/davemoss-menu-business-off.gif";
thumbButton[2].src= "images/davemoss-menu-inthestudio-off.gif";
thumbButton[3].src= "images/davemoss-menu-weddings-off.gif";
thumbButton[4].src= "images/davemoss-menu-events-off.gif";
thumbButton[5].src= "images/davemoss-menu-tuition-off.gif";
thumbButton[6].src= "images/davemoss-menu-gallery-off.gif";
thumbButton[7].src= "images/davemoss-menu-aboutus-off.gif";

var thumbButtonOn = new Array();
thumbButtonOn[0] = new Image();
thumbButtonOn[1] = new Image();
thumbButtonOn[2] = new Image();
thumbButtonOn[3] = new Image();
thumbButtonOn[4] = new Image();
thumbButtonOn[5] = new Image();
thumbButtonOn[6] = new Image();
thumbButtonOn[7] = new Image();

thumbButtonOn[0].src= "images/davemoss-menu-home-on.gif"; 
thumbButtonOn[1].src= "images/davemoss-menu-business-on.gif";
thumbButtonOn[2].src= "images/davemoss-menu-inthestudio-on.gif";
thumbButtonOn[3].src= "images/davemoss-menu-weddings-on.gif";
thumbButtonOn[4].src= "images/davemoss-menu-events-on.gif";
thumbButtonOn[5].src= "images/davemoss-menu-tuition-on.gif";
thumbButtonOn[6].src= "images/davemoss-menu-gallery-on.gif";
thumbButtonOn[7].src= "images/davemoss-menu-aboutus-on.gif";


function allLoaded(){
	document.images['loadingStatus'].src= "images/spacer.gif";
}


function changeBground(theImg){

	//theObj = getObject('roll');
	
	newImage = bgImgs[theImg];
	
	
	if (isW3C){ 
	//alert(newImage);
        document.getElementById('Roll').style.backgroundImage = newImage;
      
	}

}

function buttons_on(imgName,i)

	

    {
	
		
        // for each button set the image to show for a mouse over
        document.images[imgName].src= thumbButtonOn[i].src;
		

}
function buttons_off(imgName,i)

   {
       
	

        // for each button set the image to show when mouse is moved away
		document.images[imgName].src= thumbButton[i].src;

    
}

loadingDisplay = new Image();
loadingDisplay.src = "images/displayloading.gif"; //OFF

function showLarge(i)

   {
   		document.images['displayImage'].src= loadingDisplay.src;
   	 	document.images['displayImage'].src= showPicture[i];
	}

function hideLarge()

   {
      document.images['displayImage'].src= "images/spacer.gif";
}


function right(e) {
if (navigator.appName == 'Netscape' && 
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' && 
(event.button == 2 || event.button == 3)) {
alert("All images are the copyright of Dave Moss,\r\nplease refrain from saving images to your\r\ndesktop,as this is a copyright infringement.");
return false;
}
return true;
}

document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;



//-->


