// JavaScript Document

// JavaScript Document

flyoutFunction = function( navid ) {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById( navid );
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}			
		}
	}
}
flyoutDiv = function( navid ) {
	if (document.all&&document.getElementById) {
		node = document.getElementById( navid );
		node.onmouseover=function() {
			this.className+=" over";
		}
		node.onmouseout=function() {
			this.className=this.className.replace(" over", "");
		}
	}
}

startList = function() {
	flyoutFunction("nav");
//	flyoutFunction("leftNav");	
//	flyoutDiv("leftFlyout");
}


function previewImage(image) {
	window.open('images/' + image, 'imageWindow','width=500,height=900');
}

function previewWideImage(image) {
	window.open('images/' + image, 'imageWindow','width=310,height=225');
}

function previewImageLg(image) {
	window.open('images/' + image, 'imageWindow','width=255,height=317');
}

/*   Start gallery script...        */



function openImg(img)
{
	ele		= document.getElementById('dspPhoto');
	ele.style.display = 'block';
	eleImg	= document.getElementById('dspPhotoImg');
	eleImg.style.display = 'block';
	eleImg.style.backgroundImage = 'url(' + img + ')';
}


function closeImg()
{
	ele = document.getElementById('dspPhoto');
	ele.style.display = 'none';
	eleImg	= document.getElementById('dspPhotoImg');
	eleImg.style.display = 'none';
}

/*   END gallery script...        */






window.onload=startList;


	

