// JavaScript Document

//*****************************************
// Blending Image Slide Show Script- 
// © Dynamic Drive (www.dynamicdrive.com)
// For full source code, visit http://www.dynamicdrive.com/
//*****************************************

//specify interval between slide (in mili seconds)
var slidespeed=3000

//specify images
var slideimages=new Array("rotimage/rotimage1.gif","rotimage/rotimage2.gif","rotimage/rotimage3.gif", "rotimage/rotimage4.gif")

//specify corresponding links
var slidelinks=new Array("#","#","#");

var newwindow=1 //open links in new window? 1=yes, 0=no

var imageholder=new Array()
var ie=document.all
for (i=0;i<slideimages.length;i++){
imageholder[i]=new Image()
imageholder[i].src=slideimages[i]
}

function gotoshow(){
if (newwindow)
window.open(slidelinks[whichlink])
else
window.location=slidelinks[whichlink]
}


preimage = new Image(23,14);
preimage.src = "images/menuback.gif";
preblank = new Image(23,14);
preblank.src = "images/spacer.gif";


function onover(index) {
	var obj = document.getElementById("text1" + index);
	if(obj == null)
		// alert("fail!");
		return;
	obj.className = "menu-over";
	var obj = document.getElementById("text2" + index);
	if(obj == null)
		return;
		// alert("fail!");
	obj.className = "menu-over";
	var obj = document.getElementById("pointer" + index);
	if(obj == null)
		return ;
		// alert("fail!");
	obj.src = preimage.src;
}


function onout(index) {
	var obj = document.getElementById("text1" + index);
	if(obj == null)
		return ;
		// alert("fail!");
	obj.className = "menu-cap";
	var obj = document.getElementById("text2" + index);
	if(obj == null)
		return ;
		// alert("fail!");
	obj.className = "menu-normal";
	var obj = document.getElementById("pointer" + index);
	if(obj == null)
		return ;
		// alert("fail!");
	obj.src = preblank.src;
}

