image1 = new Image();
image1.src = "images/logohmco.jpg";
image2 = new Image();
image2.src = "images/hmdeck.jpg";
image3 = new Image();
image3.src = "images/hmnavmap.gif";
<!-- Original:  CodeLifter.com (support@codelifter.com) -->
<!-- Web Site:  http://www.codelifter.com -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin

// Set slideShowSpeed (milliseconds)

var slideShowSpeed = 3000;

// Duration of crossfade (seconds)

var crossFadeDuration = 1;

// Specify the image files

var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = 'images/hmphoto2.jpg'
Pic[1] = 'images/hmphotojb.jpg'
Pic[2] = 'images/hmphoto4.jpg'
Pic[3] = 'images/hmphoto5.jpg'

// do not edit anything below this linevar t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
	preLoad[i] = new Image();
	preLoad[i].src = Pic[i];
}

function runSlideShow() {

	if (document.all) {
		document.images.SlideShow.style.filter="blendTrans(duration=3)";
		document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
		document.images.SlideShow.filters.blendTrans.Apply();
	}

	document.images.SlideShow.src = preLoad[j].src;

	if (document.all) {
		document.images.SlideShow.filters.blendTrans.Play();
	}
	j = j + 1;
	
	if (j > (p - 1)) j = 0;
		t = setTimeout('runSlideShow()', slideShowSpeed);
	}
	
<!-- Popup Window Script-->
<!-- By JavaScript Kit (http://javascriptkit.com)-->
<!-- JavaScript tutorials and over 400+ free scripts-->

function openpopup(){
	var popurl = "compare.cgi"
	var title =  "View and compare veneers"
	winpops=window.open(popurl,"","width=640,height=600,status,scrollbars,menubar,resizable,")
}

function overImage(x){
	for (i=1; i<=3; i++){
		on = eval("nav_" + x + "_on");
		nav = "image_"+ x;
		document [nav].src = on.src;
	}
}

function outImage(x){
	for (i=1; i<=3; i++){
		off = eval("nav_" + i + "_off");
		nav = "image_"+ i;
		document [nav].src = off.src;
	}
}