//  Force getElementById to workif(!document.getElementById){	if(document.all)	document.getElementById=function(){		if(typeof document.all[arguments[0]]!="undefined")		return document.all[arguments[0]]		else		return null	}	else if(document.layers)	document.getElementById=function(){		if(typeof document[arguments[0]]!="undefined")		return document[arguments[0]]		else		return null	}}function changeClass(id, c) {	document.getElementById(id).className = c;}//  Alternative to "voided" linksfunction Hello() {	// Empty function}//  Show and Hide objectsfunction showObject(id) {	document.getElementById(id).style.display = "";	}function hideObject(id) {	document.getElementById(id).style.display = "none";}//  Get visible thumbnails from index.htmlfunction getVisible() {	var visibleObjects = "";	var visibleStatus = "";	for (i = 0; i < slideMax; i++) {		id = "thumbnail" + i;		visibleStatus = document.getElementById(id).style.display;		if (visibleStatus != "none") {			if (visibleObjects) visibleObjects += ",";			visibleObjects += slideId[i];		}	}	return visibleObjects;}// open iframefunction makeFrame(url) {	document.getElementById('sframe').innerHTML =" ";	document.getElementById('slide').style.display = "block";	document.getElementById('fadebg').style.display = "block";			//document.getElementById('sframe').innerHTML ="<iframe src=\""+url+"\" width=\"540px\" height=\"550px\" frameborder=\"0\" framespacing=\"0\" marginheight=\"0\"  marginwidth=\"0\" hspace=\"0\" vspace=\"0\" scrolling=\"no\" name=\"slide_frame\" id=\"slide_frame\"></iframe>";			// start the FADE!	Loader(url);			// setTimeout('parent.generateOutput("Cancel")',0);	//var sMsg = "Hello, world";	//window.setTimeout("alert(" + sMsg + ")", 30);		}function writeFrame(url) {		document.getElementById('sframe').innerHTML ="<iframe src=\""+url+"\" width=\"540px\" height=\"550px\" frameborder=\"0\" framespacing=\"0\" marginheight=\"0\"  marginwidth=\"0\" hspace=\"0\" vspace=\"0\" scrolling=\"no\" name=\"slide_frame\" id=\"slide_frame\"></iframe>";				}// close iframefunction closeFrame() {	document.getElementById('sframe').innerHTML =" ";	document.getElementById('slide').style.display = "none";	document.getElementById('fadebg').style.display = "none";}function showContact() {	document.getElementById('contactDiv').style.display = "";	document.getElementById('fadebg').style.display = "block";	// start the FADE!	Loader();	}function hideContact() {	document.getElementById('contactDiv').style.display = "none";	document.getElementById('fadebg').style.display = "none";}// ----------------------------------------// FADE Codevar fadeArray = new Array(0, 6, 11, 17, 23, 30, 38, 47, 56, 66, 75);var currentFade = 0;var totalFade = fadeArray.length;var urlToGo = " ";function Loader(url) {	setZero(url);	window.setTimeout("Fader();", 5);}function setZero(url) {	urlToGo = url;	setOpac(0);}function Fader() {	setOpac(fadeArray[currentFade]);	currentFade++;	if (currentFade < totalFade) {		window.setTimeout("Fader();", 10);	} else {		writeFrame(urlToGo);		currentFade = 0;	}}function setOpac(opacity) {	// Fix for math error in some browsers	opacity = (opacity == 100) ? 99.999 : opacity;		// IE/Windows	document.getElementById('imgsDisplay').style.filter = "alpha(opacity:"+opacity+")";	// Safari < 1.2, Konqueror	document.getElementById('imgsDisplay').style.KHTMLOpacity = opacity/100;		// Older Mozilla and Firefox	document.getElementById('imgsDisplay').style.MozOpacity = opacity/100;	// Safari 1.2, newer Firefox and Mozilla, CSS3	document.getElementById('imgsDisplay').style.opacity = opacity/100;}// -------------------------------------------------------//  Popup windowsfunction popWindow(url, id, width, height) {	var x = (screen.width  / 2) - (width  / 2);	var y = (screen.height / 2) - (height / 2) - 20;	newWindow = window.open(url,id,"width="+ width +",height="+ height +",scrollbars=no,resizable=no,left="+ x +",top="+ y);	newWindow.focus();}//  Slide Controlsfunction slideNext() {	hideObject("slide"+ slideCurrent);	slideCurrent++;	if (slideCurrent > slideMax) slideCurrent = 0;	showObject("slide"+ slideCurrent);}function slidePrev() {	hideObject("slide"+ slideCurrent);	slideCurrent--;	if (slideCurrent < 0) slideCurrent = slideMax;	showObject("slide"+ slideCurrent);}// TOOLTIP// ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||// // Coded by Travis Beckham// http://www.squidfingers.com | http://www.podlob.com// If want to use this code, feel free to do so, but please leave this message intact.//// ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||// --- version date: 06/13/04 ---------------------------------------------------------tooltip = {	name : "tooltipDiv",	offsetX : 10,	offsetY : 10,	tip : null};tooltip.init = function () {	if (!document.getElementById) return;		// It would be nice to be able to generate the tooltip div, 	// but when using document.createElement Explorer5/MacOS9, 	// the tooltip div becomes 100% of the window height.	// Therefore, we have to use document.getElementById to access	// a div that is already in the body.		// this.tip = document.createElement ("div");	// this.tip.setAttribute ("id", this.name);	// document.body.appendChild (this.tip);		this.tip = document.getElementById (this.name);	if (this.tip) document.onmousemove = function (evt) {tooltip.move (evt)};};tooltip.move = function (evt) {	var x=0, y=0;	if (document.all) {// Explorer			// Explorer5 contains the documentElement object but it's empty, 		// so we must check if the scrollLeft property is available.				// If Explorer6 is in Quirks mode, the documentElement properties 		// will still be defined, but they will contain the number 0.				// If Explorer6 is in Standards compliant mode, the document.body 		// properties will still be defined, but they will contain the number 0.				x = (document.documentElement && document.documentElement.scrollLeft) ? document.documentElement.scrollLeft : document.body.scrollLeft;		y = (document.documentElement && document.documentElement.scrollTop) ? document.documentElement.scrollTop : document.body.scrollTop;		x += window.event.clientX;		y += window.event.clientY;			} else {// Mozilla		x = evt.pageX;		y = evt.pageY;	}	// If the style property value is not a string containing the unit measurement,	// browsers in standard compliant mode will not set the property.	this.tip.style.left = (x + this.offsetX) + "px";	this.tip.style.top = (y + this.offsetY) + "px";};tooltip.show = function (text) {	if (!this.tip) return;	this.tip.innerHTML = text;	// Without the next line, Explorer5/Mac has a redraw problem.	this.tip.style.visibility = "visible";	this.tip.style.display = "block";};tooltip.hide = function () {	if (!this.tip) return;	// Without the next line, Explorer5/Mac has a redraw problem.	this.tip.style.visibility = "hidden";	this.tip.style.display = "none";	this.tip.innerHTML = "";};