/*   THUMBNAIL BUTTONS ARE LISTED HERE BELOW  */

if (document.images) {

	lennyon = new Image(52,52);
	lennyon.src = "images/concepts/buttons/lenny_ov.jpg";
	lennyoff = new Image(52,52);
	lennyoff.src = "images/concepts/buttons/lenny_up.jpg";
	
	gnome_gardenon = new Image(52,52);
	gnome_gardenon.src = "images/concepts/buttons/gnome_garden_ov.jpg";
	gnome_gardenoff = new Image(52,52);
	gnome_gardenoff.src = "images/concepts/buttons/gnome_garden_up.jpg";
	
	gnome_tnton = new Image(52,52);
	gnome_tnton.src = "images/concepts/buttons/gnome_tnt_ov.jpg";
	gnome_tntoff = new Image(52,52);
	gnome_tntoff.src = "images/concepts/buttons/gnome_tnt_up.jpg";
	
	timmyon = new Image(52,52);
	timmyon.src = "images/concepts/buttons/timmy_ov.jpg";
	timmyoff = new Image(52,52);
	timmyoff.src = "images/concepts/buttons/timmy_up.jpg";
	
	bumperson = new Image(52,52);
	bumperson.src = "images/concepts/buttons/bumpers_ov.jpg";
	bumpersoff = new Image(52,52);
	bumpersoff.src = "images/concepts/buttons/bumpers_up.jpg";
	
	Zombie_ballon = new Image(52,52);
	Zombie_ballon.src = "images/concepts/buttons/Zombie_ball_ov.jpg";
	Zombie_balloff = new Image(52,52);
	Zombie_balloff.src = "images/concepts/buttons/Zombie_ball_up.jpg";
	
	bathorroron = new Image(52,52);
	bathorroron.src = "images/concepts/buttons/bathorror_ov.jpg";
	bathorroroff = new Image(52,52);
	bathorroroff.src = "images/concepts/buttons/bathorror_up.jpg";
	
	bioboyon = new Image(52,52);
	bioboyon.src = "images/concepts/buttons/bioboy_ov.jpg";
	bioboyoff = new Image(52,52);
	bioboyoff.src = "images/concepts/buttons/bioboy_up.jpg";
	
	devoureron = new Image(52,52);
	devoureron.src = "images/concepts/buttons/devourer_ov.jpg";
	devoureroff = new Image(52,52);
	devoureroff.src = "images/concepts/buttons/devourer_up.jpg";
	
	drgamuleton = new Image(52,52);
	drgamuleton.src = "images/concepts/buttons/drgamulet_ov.jpg";
	drgamuletoff = new Image(52,52);
	drgamuletoff.src = "images/concepts/buttons/drgamulet_up.jpg";
	
	elementalon = new Image(52,52);
	elementalon.src = "images/concepts/buttons/elemental_ov.jpg";
	elementaloff = new Image(52,52);
	elementaloff.src = "images/concepts/buttons/elemental_up.jpg";
	
	goblinon = new Image(52,52);
	goblinon.src = "images/concepts/buttons/goblin_ov.jpg";
	goblinoff = new Image(52,52);
	goblinoff.src = "images/concepts/buttons/goblin_up.jpg";
	
	magethroneon = new Image(52,52);
	magethroneon.src = "images/concepts/buttons/magethrone_ov.jpg";
	magethroneoff = new Image(52,52);
	magethroneoff.src = "images/concepts/buttons/magethrone_up.jpg";
	
	Mutant_Docon = new Image(52,52);
	Mutant_Docon.src = "images/concepts/buttons/Mutant_Doc_ov.jpg";
	Mutant_Docoff = new Image(52,52);
	Mutant_Docoff.src = "images/concepts/buttons/Mutant_Doc_up.jpg";
	
	merchanton = new Image(52,52);
	merchanton.src = "images/concepts/buttons/merchant_ov.jpg";
	merchantoff = new Image(52,52);
	merchantoff.src = "images/concepts/buttons/merchant_up.jpg";
	
	orcpirate1on = new Image(52,52);
	orcpirate1on.src = "images/concepts/buttons/orcpirate1_ov.jpg";
	orcpirate1off = new Image(52,52);
	orcpirate1off.src = "images/concepts/buttons/orcpirate1_up.jpg";
	
	orcpirate2on = new Image(52,52);
	orcpirate2on.src = "images/concepts/buttons/orcpirate2_ov.jpg";
	orcpirate2off = new Image(52,52);
	orcpirate2off.src = "images/concepts/buttons/orcpirate2_up.jpg";
	
	parroton = new Image(52,52);
	parroton.src = "images/concepts/buttons/parrot_ov.jpg";
	parrotoff = new Image(52,52);
	parrotoff.src = "images/concepts/buttons/parrot_up.jpg";
	
	potcpirateon = new Image(52,52);
	potcpirateon.src = "images/concepts/buttons/potcpirate_ov.jpg";
	potcpirateoff = new Image(52,52);
	potcpirateoff.src = "images/concepts/buttons/potcpirate_up.jpg";
	
	sealguardon = new Image(52,52);
	sealguardon.src = "images/concepts/buttons/sealguard_ov.jpg";
	sealguardoff = new Image(52,52);
	sealguardoff.src = "images/concepts/buttons/sealguard_up.jpg";
	
	spiderdemonon = new Image(52,52);
	spiderdemonon.src = "images/concepts/buttons/spiderdemon_ov.jpg";
	spiderdemonoff = new Image(52,52);
	spiderdemonoff.src = "images/concepts/buttons/spiderdemon_up.jpg";
	
	zombiescientiston = new Image(52,52);
	zombiescientiston.src = "images/concepts/buttons/zombiescientist_ov.jpg";
	zombiescientistoff = new Image(52,52);
	zombiescientistoff.src = "images/concepts/buttons/zombiescientist_up.jpg";
	
	zombie_carrieron = new Image(52,52);
	zombie_carrieron.src = "images/concepts/buttons/zombie_carrier_ov.jpg";
	zombie_carrieroff = new Image(52,52);
	zombie_carrieroff.src = "images/concepts/buttons/zombie_carrier_up.jpg";
	
	troglidyteon = new Image(52,52);
	troglidyteon.src = "images/concepts/buttons/troglidyte_ov.jpg";
	troglidyteoff = new Image(52,52);
	troglidyteoff.src = "images/concepts/buttons/troglidyte_up.jpg";
	
	trolltouchon = new Image(52,52);
	trolltouchon.src = "images/concepts/buttons/trolltouch_ov.jpg";
	trolltouchoff = new Image(52,52);
	trolltouchoff.src = "images/concepts/buttons/trolltouch_up.jpg";

	batcreatureon = new Image(52,52);
	batcreatureon.src = "images/concepts/buttons/batcreature_ov.jpg";
	batcreatureoff = new Image(52,52);
	batcreatureoff.src = "images/concepts/buttons/batcreature_up.jpg";
	
	
}

/*   CODE FOR BUTTON ROLLOVERS  */
function rollOver(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;
		}
		}
	
/* PHOTOGALLERY CODE*/


/* ARRAYS TO STORE THE LARGE THUMBNAIL PICTURES;
   MAKE SURE THAT THEY ARE SPELT EXACTLY, AND 
   IN THE ORDER IN WHICH THEY APPEAR ON THE PAGE */
largeArr = new Array("lenny.jpg",
"gnome_garden.jpg",
"gnome_tnt.jpg",
"timmy.jpg",
"Mutant_Doc.jpg",
"zombiescientist.jpg",
"bumpers.jpg",
"Zombie_ball.jpg",
"zombie_carrier.jpg",
"potcpirate.jpg",
"orcpirate1.jpg",
"orcpirate2.jpg",
"batcreature.jpg",
"parrot.jpg", 
"troglidyte.jpg");


/* ARRAYS TO STORE THE DESCRIPTIONS OF EACH PICTURE;
   MAKE SURE THEY ARE IN THE ORDER IN WHICH THEY 
   APPEAR ON THE PAGE; OTHERWISE THEY WON'T CORRESPOND 
   CORRECTLY WITH THE PICTURES (ABOVE) */
textArray1 = new Array(" ", 
" ", 
" ", 
 " ",
 " ",
 " ",
 " ",
 " ",
 " ",
 " ",
 " ",
 " ",
 " ",
 " ",

 " ");


/* CODE FOR PREVIOUS AND NEXT BUTTONS; DON'T HAVE TO TOUCH */


var currPic = 0;
//function to swap pics
function swapMainPic(p_num) {
	document.mainpic.src = "images/concepts/enlarged/"+largeArr[p_num];
	currPic = p_num;
	myDivID.innerHTML = textArray1[p_num];
	
	//alert("Current Pic "+currPic);
	
}

function prevPic() {
	currPic--;
	if (currPic>=0) {
		document.mainpic.src = "images/concepts/enlarged/"+largeArr[currPic];
		myDivID.innerHTML = textArray1[currPic];
	} else {
		currPic = largeArr.length-1;
		document.mainpic.src = "images/concepts/enlarged/"+largeArr[currPic];
		myDivID.innerHTML = textArray1[currPic];
		
	}
}

function nextPic() {
	currPic++;
	if (currPic<=largeArr.length-1) {
		document.mainpic.src = "images/concepts/enlarged/"+largeArr[currPic];
		myDivID.innerHTML = textArray1[currPic];
	} else {
		currPic = 0;
		document.mainpic.src = "images/concepts/enlarged/"+largeArr[currPic];
		myDivID.innerHTML = textArray1[currPic];
	}
	  
}

/* CODE FOR POP-UP WINDOWS; DON'T HAVE TO TOUCH */
function viewLarge(p_pic) {



	var width = screen.width;
	var height = screen.height;
	var largePic = "images/concepts/popup_pics/concept1/show.htm?id="+p_pic;
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(largePic, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=760,height=420,left = 0,top = 0');");
}
