function menu() {
	runSlideShow();
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		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", "");
				}
			}
		}
	}
}



var SlideShowSpeed = 3000;

var CrossFadeDuration = 3;

var Picture = new Array(); 
var Caption = new Array(); 


Picture[1]  = '/images2/landrover.jpg';
Picture[2]  = '/images2/wheelarch.jpg';
Picture[3]  = '/images2/boxes.jpg';
Picture[4]  = '/images2/part.jpg';
Picture[5]  = '/images2/valmet.jpg';
Picture[6]  = '/images2/holelocation.jpg';
Picture[7]  = '/images2/welding.jpg';
Picture[8]  = '/images2/windscreen.jpg';
Picture[9]  = '/images2/plasmascreen.jpg';
Picture[10]  = '/images2/biscuit.jpg';
Picture[11]  = '/images2/tyre3d.jpg';
Picture[12]  = '/images2/scan.jpg';
Picture[13]  = '/images2/text.jpg';
Picture[14]  = '/images2/rangerover.jpg';
Picture[15]  = '/images2/ostlogo.jpg';
Caption[1]  = "Over 13 million vehicles glazed using SRS-VisionSensors from OST";
Caption[2]  = "Fast accurate location of seams, even in  shiny materials, with CSS-WeldSensor";
Caption[3]  = "Vast range of 2D and 3D vision systems for palletisation applications";
Caption[4]  = "High quality turnkey inspection systems at an affordable price - contact OST today.";
Caption[5]  = "Industry preferred vision technology for vehicle assembly";
Caption[6]  = "Tailored to your requirements - Feature location using stereo vision or laser based technology. ";
Caption[7]  = "Precise correction of your weld path whilst welding, with the CSS-WeldSensor";
Caption[8]  = "Accurate Gap and Flush measurement for inspection and assembly robot guidance";
Caption[9]  = "Best bespoke vision inspection systems.<br>Contact us today  ";
Caption[10]  = "Extensive knowledge of imaging requirementsfrom food inspection to vehicle location – you can trust OST Vision Systems  ";
Caption[11]  = "Latest 3D imaging technology for  accurate reading of tyre “DOT”  code";
Caption[12]  = "High speed laser scanning for 3D inspection and accurate part location ";
Caption[13]  = "Neural networks for the utmost reliability in text recognition ";
Caption[14]  = "Highest quality solution to your robot guidance requirements, supplied by OST";
Caption[15]  = "For the best and the most flexible approach to solving your machine vision requirements, contact OST today";
var tss;
var iss;
var jss = 1;
var pss = Picture.length-1;

var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++){
preLoad[iss] = new Image();
preLoad[iss].src = Picture[iss];}

function runSlideShow(){
if (document.all){
document.images.PictureBox.style.filter="blendTrans(duration=2)";
document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox.filters.blendTrans.Apply();}
document.images.PictureBox.src = preLoad[jss].src;
if (document.getElementById) document.getElementById("CaptionBox").innerHTML= Caption[jss];
if (document.all) document.images.PictureBox.filters.blendTrans.Play();
jss = jss + 1;
if (jss > (pss)) jss=1;
tss = setTimeout('runSlideShow()', SlideShowSpeed);
}

