// Writes the Flash files into the html document
function LoadFlash() {

	var so = new SWFObject("flash/homepage-slideshow.swf", "slideshow", "417", "277", "6", "#FFF");
	so.write("slideshow");
}


// THUMBNAIL GALLERY

var current ;

function loadFace (whichface) {
	if (document.getElementById) {
		// load the face
		obj=document.getElementById(whichface) ;
		document.getElementById('img_viewer').src = obj.href ;
		
		// reset last thumbnail
		if (document.getElementById(current)) {
//		document.getElementById(current + "Txt").style.color="#333" ;
		document.getElementById(current + "_Border").style.backgroundColor="#dacdbc" ;
		}

		// highlight the new thumbnail
//		document.getElementById(whichface + "Txt").style.color="#FFF" ;
		document.getElementById(whichface + "_Border").style.backgroundColor="#ede6dd" ;

		// update the current thumbnail
		current = whichface ;
		
		return false ;
	} else {
		return true ;
	}
}

function InitThumbnails (id) {
		obj=document.getElementById(id) ;

		document.getElementById('img_viewer').src = obj.href ;
		document.getElementById(id + "_Border").style.backgroundColor="#ede6dd" ;
		current = id ;		

}