
var verNum;
verNum = parseInt(navigator.appVersion);

button = new Array(9);

path = "images/mo/";

button[0] = "home";
button[1] = "contact";
button[2] = "info";
button[3] = "projectors";
button[4] = "tablets";
button[5] = "video";
button[6] = "smart";
button[7] = "installation";
button[8] = "peripherals";


mevent = new Array(3);
mevent[0] = "";
mevent[1] = "_mo";
mevent[2] = "_click";

for(j=0;j<3;j++) { 
        for(i=0;i<9;i++) { 
	        eval(button[i]+mevent[j]+" = new Image;")
        	eval(button[i]+mevent[j]+".src = '"+path+button[i]+mevent[j]+".gif';")
        }
}
curr_on = "";

function flip(imgName) {
	if ((verNum >= 3) && (curr_on != imgName)) {
        	if(document [imgName].src != eval(imgName+"_mo.src")) {
		        document [imgName].src = eval(imgName+"_mo.src");
	        }
	}
}

function flipout(imgName) {
	if ((verNum >= 3) && (curr_on != imgName)) {
	        if(document [imgName].src != eval(imgName+".src")) {
		        document [imgName].src = eval(imgName+".src");
	        }
	}
}

function setclick(imgName) {
	if (verNum >= 3) {
		if(curr_on != "") {
		        document [curr_on].src = eval(curr_on+".src");
		}
		curr_on = imgName;
		document [imgName].src = eval(imgName+"_click.src");
		window.focus();
	}
}

function setgray(imgName) {
	if(curr_on != "" && imgName == "") {
	        document [curr_on].src = eval(curr_on+".src");
	} else if(imgName != "") {
	        document [imgName].src = eval(imgName+".src");
	}
	curr_on = "";
	window.focus();
}

//function imageChange(imageID,imageName,imageID2,imageName2) {            
function imageChange(imageID,imageName,imageID2) {   
	document.images[imageID].src = eval(imageName + ".src");
	//document.images[imageID].src = eval(imageName + ".src");
}



alt0 = new Image();
alt0.src = "images/pictures/tomwilson1.jpg";

alt1 = new Image();
alt1.src = "images/pictures/tomandbrian.jpg";

alt2 = new Image();
alt2.src = "images/pictures/tomandmarkus.jpg";

alt3 = new Image();
alt3.src = "images/pictures/tomandsusan.jpg";
                                           
alt4 = new Image();
alt4.src = "images/pictures/tomandpeter.jpg";

alt5 = new Image();
alt5.src = "images/pictures/tomandgeorge.jpg";

alt6 = new Image();
alt6.src = "images/pictures/tomanddad.jpg";

alt7 = new Image();
alt7.src = "images/pictures/tomandmom.jpg";

