/*   THUMBNAIL BUTTONS ARE LISTED HERE BELOW  */
if (document.images) {

	alien_caron = new Image(52,52);
	alien_caron.src = "images/illustrations/buttons/alien_car_ov.jpg";
	alien_caroff = new Image(52,52);
	alien_caroff.src = "images/illustrations/buttons/alien_car_up.jpg";
	
	DFE_2007_Holiday_cardon = new Image(52,52);
	DFE_2007_Holiday_cardon.src = "images/illustrations/buttons/DFE_2007_Holiday_card_ov.jpg";
	DFE_2007_Holiday_cardoff = new Image(52,52);
	DFE_2007_Holiday_cardoff.src = "images/illustrations/buttons/DFE_2007_Holiday_card_up.jpg";
	
	westernon = new Image(52,52);
	westernon.src = "images/illustrations/buttons/western_ov.jpg";
	westernoff = new Image(52,52);
	westernoff.src = "images/illustrations/buttons/western_up.jpg";
	
	DFriedon = new Image(52,52);
	DFriedon.src = "images/illustrations/buttons/DFried_ov.jpg";
	DFriedoff = new Image(52,52);
	DFriedoff.src = "images/illustrations/buttons/DFried_up.jpg";

	lilystiffon = new Image(52,52);
	lilystiffon.src = "images/illustrations/buttons/lilystiff_ov.jpg";
	lilystiffoff = new Image(52,52);
	lilystiffoff.src = "images/illustrations/buttons/lilystiff_up.jpg";

	lovely_keyon = new Image(52,52);
	lovely_keyon.src = "images/illustrations/buttons/lovely_key_ov.jpg";
	lovely_keyoff = new Image(52,52);
	lovely_keyoff.src = "images/illustrations/buttons/lovely_key_up.jpg";

	blackguardon = new Image(52,52);
	blackguardon.src = "images/illustrations/buttons/blackguard_ov.jpg";
	blackguardoff = new Image(52,52);
	blackguardoff.src = "images/illustrations/buttons/blackguard_up.jpg";
	
	dragonamuleton = new Image(52,52);
	dragonamuleton.src = "images/illustrations/buttons/dragonamulet_ov.jpg";
	dragonamuletoff = new Image(52,52);
	dragonamuletoff.src = "images/illustrations/buttons/dragonamulet_up.jpg";
	
	emporeron = new Image(52,52);
	emporeron.src = "images/illustrations/buttons/emporer_ov.jpg";
	emporeroff = new Image(52,52);
	emporeroff.src = "images/illustrations/buttons/emporer_up.jpg";
	
	DeathsHandon = new Image(52,52);
	DeathsHandon.src = "images/illustrations/buttons/DeathsHand_ov.jpg";
	DeathsHandoff = new Image(52,52);
	DeathsHandoff.src = "images/illustrations/buttons/DeathsHand_up.jpg";
	
	gnomeon = new Image(52,52);
	gnomeon.src = "images/illustrations/buttons/gnome_ov.jpg";
	gnomeoff = new Image(52,52);
	gnomeoff.src = "images/illustrations/buttons/gnome_up.jpg";
	
	jaysgalon = new Image(52,52);
	jaysgalon.src = "images/illustrations/buttons/jaysgal_ov.jpg";
	jaysgaloff = new Image(52,52);
	jaysgaloff.src = "images/illustrations/buttons/jaysgal_up.jpg";
	
	kangon = new Image(52,52);
	kangon.src = "images/illustrations/buttons/kang_ov.jpg";
	kangoff = new Image(52,52);
	kangoff.src = "images/illustrations/buttons/kang_up.jpg";
	
	kingmakeron = new Image(52,52);
	kingmakeron.src = "images/illustrations/buttons/kingmaker_ov.jpg";
	kingmakeroff = new Image(52,52);
	kingmakeroff.src = "images/illustrations/buttons/kingmaker_up.jpg";
	
	maxon = new Image(52,52);
	maxon.src = "images/illustrations/buttons/max_ov.jpg";
	maxoff = new Image(52,52);
	maxoff.src = "images/illustrations/buttons/max_up.jpg";
	
	monkon = new Image(52,52);
	monkon.src = "images/illustrations/buttons/monk_ov.jpg";
	monkoff = new Image(52,52);
	monkoff.src = "images/illustrations/buttons/monk_up.jpg";
	
	pirateson = new Image(52,52);
	pirateson.src = "images/illustrations/buttons/pirates_ov.jpg";
	piratesoff = new Image(52,52);
	piratesoff.src = "images/illustrations/buttons/pirates_up.jpg";
	
	scholarson = new Image(52,52);
	scholarson.src = "images/illustrations/buttons/scholars_ov.jpg";
	scholarsoff = new Image(52,52);
	scholarsoff.src = "images/illustrations/buttons/scholars_up.jpg";
	
	thedirgeon = new Image(52,52);
	thedirgeon.src = "images/illustrations/buttons/thedirge_ov.jpg";
	thedirgeoff = new Image(52,52);
	thedirgeoff.src = "images/illustrations/buttons/thedirge_up.jpg";
	
	toadon = new Image(52,52);
	toadon.src = "images/illustrations/buttons/toad_ov.jpg";
	toadoff = new Image(52,52);
	toadoff.src = "images/illustrations/buttons/toad_up.jpg";
	
	wucoveron = new Image(52,52);
	wucoveron.src = "images/illustrations/buttons/wucover_ov.jpg";
	wucoveroff = new Image(52,52);
	wucoveroff.src = "images/illustrations/buttons/wucover_up.jpg";
	
	wustageson = new Image(52,52);
	wustageson.src = "images/illustrations/buttons/wustages_ov.jpg";
	wustagesoff = new Image(52,52);
	wustagesoff.src = "images/illustrations/buttons/wustages_up.jpg";
	
	HotDawn_01on = new Image(52,52);
	HotDawn_01on.src = "images/illustrations/buttons/HotDawn_01_ov.jpg";
	HotDawn_01off = new Image(52,52);
	HotDawn_01off.src = "images/illustrations/buttons/HotDawn_01_up.jpg";
	
	IDon = new Image(52,52);
	IDon.src = "images/illustrations/buttons/ID_ov.jpg";
	IDoff = new Image(52,52);
	IDoff.src = "images/illustrations/buttons/ID_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;
		}
		}
	

/* 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("alien_car.jpg",
"DFE_2007_Holiday_card_01.jpg",
"western.jpg",
"DFried.jpg",
"lilystiff.jpg",
"lovely_key.jpg",
"ID.jpg",
"DeathsHand.jpg",
"pirates.jpg",
"wucover.jpg",
"kang.jpg",
"emporer.jpg", 
"scholars.jpg",
"thedirge.jpg", 
"dragonamulet.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/illustrations/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/illustrations/enlarged/"+largeArr[currPic];
		myDivID.innerHTML = textArray1[currPic];
	} else {
		currPic = largeArr.length-1;
		document.mainpic.src = "images/illustrations/enlarged/"+largeArr[currPic];
		myDivID.innerHTML = textArray1[currPic];
		
	}
}

function nextPic() {
	currPic++;
	if (currPic<=largeArr.length-1) {
		document.mainpic.src = "images/illustrations/enlarged/"+largeArr[currPic];
		myDivID.innerHTML = textArray1[currPic];
	} else {
		currPic = 0;
		document.mainpic.src = "images/illustrations/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/illustrations/popup_pics/illustration1/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');");
}

