/*Rollover effect on different image script-
By JavaScript Kit (http://javascriptkit.com)
Over 200+ free scripts here!
*/

// photoInfo object constructor

function photoInfo (elmntId,details1,details2,details3) {
	this.elmntId = elmntId;
	this.details1 = details1;
	this.details2 = details2;
	this.details3 = details3;
	return true;
}

// photoInfoList object constructor

function photoInfoList (elmntId,details1,details2,details3,details4,details5,details6) {
	this.elmntId = elmntId;
	this.details1 = details1;
	this.details2 = details2;
	this.details3 = details3;
	this.details4 = details4;
	this.details5 = details5;
	this.details6 = details6;
	return true;
}


function changeimage(towhat,url){
	if (document.images)
	{
		document.images.targetimage.src=towhat.src
	}
}

var lastElmntIdDisplayed = '';

function changeImageAndText(towhatimage,towhattext,url){
	if (document.images)
	{
		dinfo = document.getElementById(lastElmntIdDisplayed);
		//alert(dinfo);
		if (dinfo) {
			dinfo.style.display = "none";
			lastElmntIdDisplayed = '';
		}
		document.images.targetimage.src=towhatimage.src;
		if (towhattext.elmntId != "")
		{
			//alert(towhattext.elmntId + towhattext.details1 + towhattext.elmntId + towhattext.details2);
			dinfo = document.getElementById(towhattext.elmntId);
			//alert(dinfo);
			if (dinfo) {
				dinfo.style.display = "block";
				lastElmntIdDisplayed = towhattext.elmntId;
			}
		}
		else
		{
			// turn off the division last turned on
		}
		d1 = document.getElementById('fainfoText1');
		if (d1) {
			d1.childNodes[0].data = '';
			d1.childNodes[0].data = towhattext.details1;
		}
		d2 = document.getElementById('fainfoText2');
		if (d2) {
			d2.childNodes[0].data = '';
			d2.childNodes[0].data = towhattext.details2;
		}
		d3 = document.getElementById('fainfoText3');
		if (d3) {
			d3.childNodes[0].data = '';
			d3.childNodes[0].data = towhattext.details3;
		}
		d4 = document.getElementById('fainfoText4');
		if (d4) {
			d4.childNodes[0].data = '';
			d4.childNodes[0].data = towhattext.details4;
		}
		d5 = document.getElementById('fainfoText5');
		if (d5) {
			d5.childNodes[0].data = '';
			d5.childNodes[0].data = towhattext.details5;
		}
		d6 = document.getElementById('fainfoText6');
		if (d6) {
			d6.childNodes[0].data = '';
			d6.childNodes[0].data = towhattext.details6;
		}
	}
	return true;
}

function warp(){
	window.location=gotolink
}
function newpage(newurl) {
	parent.location=newurl
}

var myImages=new Array()
var myThumbImages=new Array()

function preloadimages(images, thumbs){
	for ( i=0; i < images.length; i++ )
	{
		myImages[i]=new Image()
		myImages[i].src= images[i]
	}
	for ( i=0; i < thumbs.length; i++ )
	{
		myThumbImages[i]=new Image()
		myThumbImages[i].src= thumbs[i]
	}
	return true;
}