// JavaScript Documentfunction addLoadListener(fn){	if (typeof window.addEventListener != 'undefined')	{		window.addEventListener('load', fn, false);	}	else if (typeof document.addEventListener != 'undefined')	{		document.addEventListener('load', fn, false);	}	else if (typeof window.attachEvent != 'undefined')	{		window.attachEvent('onload', fn);	}	else	{		var oldfn = window.onload;		if (typeof window.onload != 'function')		{			window.onload = fn;		}		else		{			window.onload = function()			{				oldfn();				fn();			};		}	}}//----------------------------------------function MM_preloadImages() { //v3.0  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}}function MM_swapImgRestore() { //v3.0  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;}function MM_findObj(n, d) { //v4.01  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);  if(!x && d.getElementById) x=d.getElementById(n); return x;}function MM_swapImage() { //v3.0  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}}// The following code added to Dreamweaver's code// Comma separated list of images to rotate var imgs = new Array(		'images/businessPhoto.jpg',		'images/transPhoto.jpg',		'images/weldPhoto.jpg',		'images/edPhoto.jpg',		'images/autoPhoto.jpg');// delay in milliseconds between image swaps 1000 = 1 second var delay = 10000;var counter = 0;function preloadImgs(){  for(var i=0;i<imgs.length;i++){    MM_preloadImages(imgs[i]);  }}function randomImages(){  if(counter == (imgs.length)){    counter = 0;  }  MM_swapImage('rotator', '', imgs[counter++]);  setTimeout('randomImages()', delay);}//----------------------------------------function retrieveComputedStyle(element, styleProperty) {	var computedStyle = null;	if (typeof element.currentStyle != "undefined") {		computedStyle = element.currentStyle;	} else {		computedStyle = document.defaultView.getComputedStyle(element, null);	}	return computedStyle[styleProperty];}function moveObject(target, destinationLeft, destinationTop, maxSpeed) {	var currentLeft = parseInt(retrieveComputedStyle(target, "left"));	var currentTop = parseInt(retrieveComputedStyle(target, "top"));		if (isNaN(currentLeft)) {		currentLeft = 0;	}	if (isNaN(currentTop)) {		currentTop = 0;	}	if (currentLeft < destinationLeft) {		currentLeft += maxSpeed;		if (currentLeft > destinationLeft) {			currentLeft = destinationLeft;		}	} else {		currentLeft -= maxSpeed;		if (currentLeft < destinationLeft) {			currentLeft = destinationLeft;		}	}		if (currentTop < destinationTop) {		currentTop += maxSpeed;		if (currentTop > destinationTop) {			currentTop = destinationTop;		}	} else {		currentTop -= maxSpeed;		if (currentTop < destinationTop) {			currentTop = destinationTop;		}	}		target.style.left = currentLeft + "px";	target.style.top = currentTop + "px";		if (currentLeft == destinationLeft && currentTop == destinationTop) {		clearInterval(target.animationTimer);	}}function setDefault() {	tab1 = document.getElementById('bar1');	tab2 = document.getElementById('bar2');	tab3 = document.getElementById('bar3');	tab4 = document.getElementById('bar4');	box1 = document.getElementById('content1');	box2 = document.getElementById('content2');	box3 = document.getElementById('content3');	box4 = document.getElementById('content4');			boxesOff();		tab1.animationTimer = setInterval(function() {moveObject(tab1, 0, 0, 75)}, 25);	tab2.animationTimer = setInterval(function() {moveObject(tab2, 0, 20, 75)}, 25);	tab3.animationTimer = setInterval(function() {moveObject(tab3, 0, 20, 75)}, 25);		tab4.animationTimer = setInterval(function() {moveObject(tab4, 0, 20, 75)}, 25);		box1.style.display = "inline";	}function state2() {	tab1 = document.getElementById('bar1');	tab2 = document.getElementById('bar2');	tab3 = document.getElementById('bar3');	tab4 = document.getElementById('bar4');	box1 = document.getElementById('content1');	box2 = document.getElementById('content2');	box3 = document.getElementById('content3');	box4 = document.getElementById('content4');		boxesOff();		tab1.animationTimer = setInterval(function() {moveObject(tab1, 0, 0, 75)}, 50);	tab2.animationTimer = setInterval(function() {moveObject(tab2, 0, 0, 75)}, 50);	tab3.animationTimer = setInterval(function() {moveObject(tab3, 0, 20, 75)}, 50);	tab4.animationTimer = setInterval(function() {moveObject(tab4, 0, 20, 75)}, 50);		box2.style.display = "inline";	}function state3() {	tab1 = document.getElementById('bar1');	tab2 = document.getElementById('bar2');	tab3 = document.getElementById('bar3');	tab4 = document.getElementById('bar4');	box1 = document.getElementById('content1');	box2 = document.getElementById('content2');	box3 = document.getElementById('content3');	box4 = document.getElementById('content4');		boxesOff();		tab1.animationTimer = setInterval(function() {moveObject(tab1, 0, 0, 75)}, 50);	tab2.animationTimer = setInterval(function() {moveObject(tab2, 0, 0, 75)}, 50);	tab3.animationTimer = setInterval(function() {moveObject(tab3, 0, 0, 75)}, 50);	tab4.animationTimer = setInterval(function() {moveObject(tab4, 0, 20, 75)}, 50);		box3.style.display = "inline";	}function state4() {	tab1 = document.getElementById('bar1');	tab2 = document.getElementById('bar2');	tab3 = document.getElementById('bar3');	tab4 = document.getElementById('bar4');	box1 = document.getElementById('content1');	box2 = document.getElementById('content2');	box3 = document.getElementById('content3');	box4 = document.getElementById('content4');		boxesOff();		tab1.animationTimer = setInterval(function() {moveObject(tab1, 0, 0, 75)}, 50);	tab2.animationTimer = setInterval(function() {moveObject(tab2, 0, 0, 75)}, 50);	tab3.animationTimer = setInterval(function() {moveObject(tab3, 0, 0, 75)}, 50);	tab4.animationTimer = setInterval(function() {moveObject(tab4, 0, 0, 75)}, 50);		box4.style.display = "inline";	}function boxesOff() {	box1.style.display = "none";	box2.style.display = "none";		box3.style.display = "none";			box4.style.display = "none";	}addLoadListener(setDefault);addLoadListener(preloadImgs);addLoadListener(randomImages);