<!--
// ==============================================
// Copyright 2003 by jsCode.com
// Source: jsCode.com
// Author: etLux
// Free for all; but please leave in the header.
// ==============================================

// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array. Rememeber
// to increment the theImages[x] index!

theImages[0] = 'images/index/banner_top.jpg'
theImages[1] = 'images/index/banner_top1.jpg'
theImages[2] = 'images/index/banner_top2.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('<img src="'+theImages[whichImage]+'">');
}

function showImage2(){
document.write('<img src="../'+theImages[whichImage]+'">');
}

function layerSetup(id,visibility,tag,image)
{
	if(document.getElementById)
	{
		this.obj = document.getElementById(id).style;
		this.obj.visibility = visibility;
		document.getElementById(id).innerHTML = '<table width="217" border="1" cellpadding="0" cellspacing="0" bordercolor="#999999"><tr><td height="128"><img src="images/'+ image +'" width="215" height="128" border="0"></td></tr><tr><td height="33">'+ tag +'</td></tr></table>';
		return this.obj;
	}
	else if(document.all)
	{
		this.obj = document.all[id].style;
		this.obj.visibility = visibility;
		document.getElementById(id).innerHTML = '<table width="217" border="1" cellpadding="0" cellspacing="0" bordercolor="#999999"><tr><td height="128"><img src="images/'+ image +'" width="215" height="128" border="0"></td></tr><tr><td height="33">'+ tag +'</td></tr></table>';
		return this.obj;
	}
	else if(document.layers)
	{
		this.obj = document.layers[id];
		this.obj.visibility = visibility;
		document.getElementById(id).innerHTML = '<table width="217" border="1" cellpadding="0" cellspacing="0" bordercolor="#999999"><tr><td height="128"><img src="images/'+ image +'" width="215" height="128" border="0"></td></tr><tr><td height="33">'+ tag +'</td></tr></table>';
		return this.obj;
	}
}

function visVisible(param,tag,image)
{
	new layerSetup(param,'visible',tag,image);
}

function visHidden(param,tag,image)
{
	new layerSetup(param,'hidden',tag,image);
}

//-->