// JavaScript Document

var theImages = new Array() 
theImages[0] = '../files/inqstu_home_image1.jpg'
theImages[1] = '../files/inqstu_home_image2.jpg'
theImages[2] = '../files/inqstu_home_image3.jpg'
theImages[3] = '../files/inqstu_home_image4.jpg'
theImages[4] = '../files/inqstu_home_image5.jpg'

var theImages2 = new Array() 
theImages2[0] = '../files/engtea_home_image1.jpg'
theImages2[1] = '../files/engtea_home_image2.jpg'
theImages2[2] = '../files/engtea_home_image3.jpg'
theImages2[3] = '../files/engtea_home_image4.jpg'
theImages2[4] = '../files/engtea_home_image5.jpg'

var theImages3 = new Array() 
theImages3[0] = '../files/Facilities_home_image1.jpg'
theImages3[1] = '../files/Facilities_home_image2.jpg'
theImages3[2] = '../files/Facilities_home_image3.jpg'
theImages3[3] = '../files/Facilities_home_image4.jpg'
theImages3[4] = '../files/Facilities_home_image5.jpg'

var theImages4 = new Array() 
theImages4[0] = '../files/invpar_home_image1.jpg'
theImages4[1] = '../files/invpar_home_image2.jpg'
theImages4[2] = '../files/invpar_home_image3.jpg'
theImages4[3] = '../files/invpar_home_image4.jpg'
theImages4[4] = '../files/invpar_home_image5.jpg'

// ======================================
// do not change anything below this line
// ======================================

var j = 0
var p = theImages.length;

var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}

var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<a href="page25.asp"><img src="'+theImages[whichImage]+'"></a>');
}
function showImage2(){
document.write('<a href="page5.asp"><img src="'+theImages2[whichImage]+'"></a>');
}
function showImage3(){
document.write('<a href="page8.asp"><img src="'+theImages3[whichImage]+'"></a>');
}

function showImage4(){
document.write('<a href="page37.asp"><img src="'+theImages4[whichImage]+'"></a>');
}



function scaleFlash(popUpWidth,popUpHeight){
		if(popUpWidth <= 207){
				document.getElementById('LatestNews').style.zIndex="9999";
		}
		else if(popUpWidth >= 207){
				document.getElementById('LatestNews').style.zIndex="-9999";
			}
	}
