/* JS Functions PacificFirstMtg.com */

// Load images
if (document.images) {
	pic1on = new Image(116,24);
	pic1on.src = "images/tabs_over_02.gif";
	pic1off = new Image(116,24);
	pic1off.src = "images/tabs_02.gif";

	pic2on = new Image(115,24);
	pic2on.src = "images/tabs_over_03.gif";
	pic2off = new Image(115,24);
	pic2off.src = "images/tabs_03.gif";
	
	pic3on = new Image(115,24);
	pic3on.src = "images/tabs_over_04.gif";
	pic3off = new Image(115,24);
	pic3off.src = "images/tabs_04.gif";
	
	pic4on = new Image(115,24);
	pic4on.src = "images/tabs_over_05.gif";
	pic4off = new Image(115,24);
	pic4off.src = "images/tabs_05.gif";
	
	pic5on = new Image(115,24);
	pic5on.src = "images/tabs_over_06.gif";
	pic5off = new Image(115,24);
	pic5off.src = "images/tabs_06.gif";
	
	pic6on = new Image(115,24);
	pic6on.src = "images/tabs_over_07.gif";
	pic6off = new Image(115,24);
	pic6off.src = "images/tabs_07.gif";

	pic7on = new Image(115,24);
	pic7on.src = "images/tabs_over_08.gif";
	pic7off = new Image(115,24);
	pic7off.src = "images/tabs-products2_08.gif";
}


// rollover functions
function RollOn(imgName) {
	if (document.images) {
		imgOn=eval(imgName + "on.src");
		document[imgName].src= imgOn;
	}
}

function RollOff(imgName) {
	if (document.images) {
		imgOff=eval(imgName + "off.src");
		document[imgName].src= imgOff;
	}
}




// random image
var ImageList = new Array();

ImageList[1] = "images/pics/1.jpg";
ImageList[2] = "images/pics/2.jpg";
ImageList[3] = "images/pics/3.jpg";
ImageList[4] = "images/pics/4.jpg";
ImageList[5] = "images/pics/5.jpg";
ImageList[6] = "images/pics/6.jpg";
ImageList[7] = "images/pics/7.jpg";
ImageList[8] = "images/pics/8.jpg";
ImageList[9] = "images/pics/9.jpg";
ImageList[10] = "images/pics/10.jpg";
ImageList[11] = "images/pics/11.jpg";
ImageList[12] = "images/pics/12.jpg";
ImageList[13] = "images/pics/13.jpg";

var I = ImageList.length;
var whichImage1 = Math.round(Math.random() * (I - 3));
var whichImage2 = Math.round(Math.random() * (I - 3));
var whichImage3 = Math.round(Math.random() * (I - 3));

if (whichImage2 == whichImage1) {
	whichImage2 = 12;
}
if (whichImage3 == whichImage1) {
	whichImage3 = 13;
}
if (whichImage3 == whichImage2) {
	whichImage3 = 13;
}

if (whichImage1 == 0) {
	whichImage1 = 12;
}
if (whichImage2 == 0) {
	whichImage2 = 12;
}
if (whichImage3 == 0) {
	whichImage3 == 13;
}


function showImage() {

	document.write("<img src='" + ImageList[whichImage1] + "' border='0' ><br>");
	document.write("<img src='" + ImageList[whichImage2] + "' border='0' ><br>");
	document.write("<img src='" + ImageList[whichImage3] + "' border='0' >");
}


