
var verNum;
verNum = parseInt(navigator.appVersion);

button = new Array(10);

path = "images/rollovers/";

button[0] = "about";
button[1] = "interactive";
button[2] = "balloon";
button[3] = "wax";
button[4] = "inflatables";
button[5] = "walls";
button[6] = "contact";
button[7] = "hotair";
button[8] = "games";
button[9] = "airdd";
button[10] = "handart";
button[11] = "wall";
button[12] = "sumo";
button[13] = "titanic";
button[14] = "iron";

mevent = new Array(3);
mevent[0] = "";
mevent[1] = "_mo";
mevent[2] = "_click";

for(j=0;j<3;j++) { 
        for(i=0;i<15;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/hotair_flip.jpg";

alt1 = new Image();
alt1.src = "images/pictures/games_flip.jpg";

alt2 = new Image();
alt2.src = "images/pictures/airdd_flip.jpg";

alt3 = new Image();
alt3.src = "images/pictures/handart_flip.jpg";
                                           
alt4 = new Image();
alt4.src = "images/pictures/wall_flip.jpg";

alt5 = new Image();
alt5.src = "images/pictures/sumo_flip.jpg";

alt6 = new Image();
alt6.src = "images/pictures/titanic_flip.jpg";

alt7 = new Image();
alt7.src = "images/pictures/iron_flip.jpg";

