		
var page = 1;		
		
var loading = new Image();
loading.src = '/images/oogiesrevenge/loading.gif';

var page1 = new Image();
page1.src = '/images/oogiesrevenge/walkthrough/items/page1.jpg';

var page2 = new Image();
page2.src = '/images/oogiesrevenge/walkthrough/items/page2.jpg';

var items = new Array;

items[1] = new Array; 
items[1].name = 'Halloween Door'; 
items[1].what = 'You need to return it to the Hinterlands.';
items[1].where = 'Chapter 1, Jack\'s Return';
items[1].when = 'You get it after defeating Shadow Oogie.';

items[2] = new Array; 
items[2].name = 'Valentine Door'; 
items[2].what = 'You need to return it to the Hinterlands.';
items[2].where = 'Chapter 5, The Crypt Creeper';
items[2].when = 'You get it after defeating the Super Spider.';

items[3] = new Array; 
items[3].name = 'St. Patrick\'s Day Door'; 
items[3].what = 'You need to return it to the Hinterlands.';
items[3].where = 'Chapter 8, Changing Brains';
items[3].when = 'You get it after beating Dr. Finkelstein.';

items[4] = new Array; 
items[4].name = 'Thanksgiving Door'; 
items[4].what = 'You need to return it to the Hinterlands.';
items[4].where = 'Chapter 11, Peril in the Pumpkin Head';
items[4].when = 'You get it after beating Barrel.';

items[5] = new Array; 
items[5].name = 'Independence Day Door'; 
items[5].what = 'You need to return it to the Hinterlands.';
items[5].where = 'Chapter 15, Rooftop Rumble';
items[5].when = 'You get it after beating Lock, Shock, and Barrel.';

items[6] = new Array; 
items[6].name = 'Easter Door'; 
items[6].what = 'You need to return it to the Hinterlands.';
items[6].where = 'Chapter 17, Casino Clash';
items[6].when = 'You get it after beating Oogie.';

items[7] = new Array; 
items[7].name = 'Christmas Door'; 
items[7].what = 'You need it to get into Christmas Town.';
items[7].where = 'Chapter 20, Fire and Ice Frenzy';
items[7].when = 'You get it after defeating the Fire and Ice Kings.';

items[8] = new Array; 
items[8].name = 'Residential Area Key'; 
items[8].what = 'You need it to get into the Residential Area.';
items[8].where = 'Chapter 11, Peril in the Pumpkin Head';
items[8].when = 'You get it after beating Barrel.';

items[9] = new Array; 
items[9].name = 'Laboratory Key'; 
items[9].what = 'You need it to get into Dr. Finkelstein\'s laboratory.';
items[9].where = 'Chapter 5, The Crypt Creeper';
items[9].when = 'You get it after defeating the Super Spider.';

items[10] = new Array; 
items[10].name = 'Spiral Hill Gate Key'; 
items[10].what = 'You need it to get to the Spiral Hill.';
items[10].where = 'Chapter 18, Spiral Hill';
items[10].when = 'You get it after examining Zero\'s grave, and following him to the Hen Bane gravestone.';

items[11] = new Array; 
items[11].name = 'Star'; 
items[11].what = 'You need it to decorate the Christmas tree.';
items[11].where = 'Chapter 22, Christmas Town';
items[11].when = 'None.';

items[12] = new Array; 
items[12].name = 'Christmas Stocking'; 
items[12].what = 'You need it to decorate the Christmas tree.';
items[12].where = 'Chapter 22, Christmas Town';
items[12].when = 'You get it after destroying the carousel.';

items[13] = new Array; 
items[13].name = 'Red Ornament'; 
items[13].what = 'You need it to decorate the Christmas tree.';
items[13].where = 'Chapter 22, Christmas Town';
items[13].when = 'It is randomly in one of the small Christmas trees.';

items[14] = new Array; 
items[14].name = 'Blue Ornament'; 
items[14].what = 'You need it to decorate the Christmas tree.';
items[14].where = 'Christmas Town, Hidden Place 17';
items[14].when = 'None.';

items[15] = new Array; 
items[15].name = 'Candle'; 
items[15].what = 'You need it to decorate the Christmas tree.';
items[15].where = 'Christmas Town, Hidden Place 18';
items[15].when = 'None.';

items[16] = new Array; 
items[16].name = 'Mayor\'s House Key Piece 1'; 
items[16].what = 'You need it to get into the Mayor\'s house.';
items[16].where = 'Chapter 13, The Vampire Brothers';
items[16].when = 'You get it after returning one of the Vampires into his coffin.';

items[17] = new Array; 
items[17].name = 'Mayor\'s House Key Piece 2'; 
items[17].what = '';
items[17].where = 'Chapter 13, The Vampire Brothers';
items[17].when = 'You get it after returning one of the Vampires into his coffin.';

items[18] = new Array; 
items[18].name = 'Mayor\'s House Key Piece 3'; 
items[18].what = 'You need it to get into the Mayor\'s house.';
items[18].where = 'Chapter 13, The Vampire Brothers';
items[18].when = 'You get it after returning one of the Vampires into his coffin.';

items[19] = new Array; 
items[19].name = 'Mayor\'s House Key Piece 4'; 
items[19].what = 'You need it to get into the Mayor\'s house.';
items[19].where = 'Chapter 13, The Vampire Brothers';
items[19].when = 'You get it after returning one of the Vampires into his coffin.';

items[20] = new Array; 
items[20].name = 'Halloween Oogie Door'; 
items[20].what = 'Nothing much...';
items[20].where = 'Chapter 19, The Hinterlands - Part 1';
items[20].when = 'You get it after replacing it with the real Halloween Door.';

items[21] = new Array; 
items[21].name = 'Valentine Oogie Door'; 
items[21].what = 'You need it to unroll the Spiral Hill.';
items[21].where = 'Chapter 19, The Hinterlands - Part 1';
items[21].when = 'You get it after defeating all the nearby enemies before the time runs out.';

items[22] = new Array; 
items[22].name = 'St. Patrick\'s Day Oogie Door'; 
items[22].what = 'You need it to unroll the Spiral Hill.';
items[22].where = 'Chapter 19, The Hinterlands - Part 1';
items[22].when = 'You get it after defeating all the nearby enemies before the time runs out.';

items[23] = new Array; 
items[23].name = 'Thanksgiving Oogie Door'; 
items[23].what = 'You need it to unroll the Spiral Hill.';
items[23].where = 'Chapter 19, The Hinterlands - Part 1';
items[23].when = 'You get it after defeating all the nearby enemies before the time runs out.';

items[24] = new Array; 
items[24].name = 'Independence Day Oogie Door'; 
items[24].what = 'Nothing much...';
items[24].where = 'Chapter 19, The Hinterlands - Part 1';
items[24].when = 'You get it after replacing it with the real Independence Day Door.';

items[25] = new Array; 
items[25].name = 'Easter Oogie Door'; 
items[25].what = 'You need it to unroll the Spiral Hill.';
items[25].where = 'Chapter 19, The Hinterlands - Part 1';
items[25].when = 'You get it after defeating all the nearby enemies before the time runs out.';

items[26] = new Array; 
items[26].name = 'Christmas Oogie Door'; 
items[26].what = 'Nothing much...';
items[26].where = 'Chapter 21, The Hinterlands - Part 2';
items[26].when = 'You get it after replacing it with the real Christmas Door.';

items[27] = new Array; 
items[27].name = 'Bone Driver'; 
items[27].what = 'You need it to stop the Clown.';
items[27].where = 'Chapter 12, Runaway Clown';
items[27].when = 'You get it from Dr. Finkelstein.';

items[28] = new Array; 
items[28].name = 'Vampire Bats'; 
items[28].what = 'You need to return them to their coffins.';
items[28].where = 'Chapter 13, The Vampire Brothers';
items[28].when = 'There are four of them. You can catch them with the Soul Robber.';

items[29] = new Array; 
items[29].name = 'Bone Biscuit'; 
items[29].what = 'You need it to get Igor to let you in the lab.';
items[29].where = 'Chapter 6, The Doctor\'s Hunch';
items[29].when = 'You get it from the Corpse Kid, after answering at least 7 of his questions correctly.';

items[30] = new Array; 
items[30].name = 'Mayor\'s Letter'; 
items[30].what = 'Nothing much...';
items[30].where = 'Chapter 1, Jack\'s Return';
items[30].when = 'It is on gate of Jack\'s house.';

items[31] = new Array; 
items[31].name = 'Paper Airplane'; 
items[31].what = 'Nothing much...';
items[31].where = 'Chapter 5, The Crypt Creeper';
items[31].when = 'It is next to the bridge in the Old Graveyard.';

items[32] = new Array; 
items[32].name = 'Soup Recipe'; 
items[32].what = 'It tells you what you need to make the Sleeping Soup.';
items[32].where = 'Chapter 7, The Lightning Round';
items[32].when = 'You can get it from Sally in the Graveyard.';

items[33] = new Array; 
items[33].name = 'Vampires\' Note'; 
items[33].what = 'Nothing much...';
items[33].where = 'Chapter 13, The Vampire Brothers';
items[33].when = 'It is in the Vampire Castle, on the table.';

items[34] = new Array; 
items[34].name = 'Golden Pumpkin'; 
items[34].what = 'They increase Jack\'s hit points by two (one pumpkin).';
items[34].where = 'Chapter 2, The Witching Hour';
items[34].when = 'You can purchase two of them in the Witches\' Shop, and see the rest below.';

items[35] = new Array; 
items[35].name = 'Deadly Nightshade'; 
items[35].what = 'You need it to make the Sleeping Soup.';
items[35].where = 'Graveyard, Hidden Place 5';
items[35].when = 'This is only available in the Deadly Nightshade Secret Chapter.';

items[36] = new Array; 
items[36].name = 'Frog\'s Breath'; 
items[36].what = 'You need it to make the Sleeping Soup.';
items[36].where = 'Chapter 7, The Lightning Round';
items[36].when = 'This is only available in the Deadly Nightshade Secret Chapter.';

items[37] = new Array; 
items[37].name = 'Worm\'s Wart'; 
items[37].what = 'You need it to make the Sleeping Soup.';
items[37].where = 'Chapter 7, The Lightning Round';
items[37].when = 'This is only available in the Deadly Nightshade Secret Chapter.';

items[38] = new Array; 
items[38].name = 'Sleeping Soup'; 
items[38].what = 'You need it to make the Sleeping Soup.';
items[38].where = 'Chapter 7, The Lightning Round';
items[38].when = 'You get it from Sally after collecting all the Sleeping Soup ingredients in the Deadly Nightshade Secret Chapter.';

function ShowTitles()
	{
	for (x = 1; x <= 19; x++)
		{
		if (page == 1) { y = x; pagetitle = 'Page 2'; }
		else if (page == 2) { y = x + 19;  pagetitle = 'Page 1'; }
		document.getElementById('map'+x).title = items[y]['name'];
		document.getElementById('mappage').title = pagetitle;
		}
	}
	
function ShowItem(item)
  {
  item = (page == 1) ? item : item + 19;
  document.images['item_pic'].src = loading.src;
  document.images['item_pic'].src = '/images/oogiesrevenge/walkthrough/items/' + item + '.jpg';
  document.getElementById('item_name').innerHTML = items[item].name;
  document.getElementById('item_what').innerHTML = items[item].what;
  document.getElementById('item_where').innerHTML = items[item].where;
  document.getElementById('item_when').innerHTML = items[item].when;
  }	
	
function ChangePage()
  {
  if (page == 1) { page = 2; document.images['itempage'].src = page2.src; }
  else { page = 1; document.images['itempage'].src = page1.src; }
  }
	
ShowItem(1);
//ShowTitles();


