
// Pre-cache the images and display them on the page
function load_images() 
{ for(I = 0; I < document.all.smallpic.length; I++) 
    { imgcache[I] = new Image(); 
	  imgcache[I].src = "images/" + prod[I] + ".jpg"; 
	  document.all.smallpic[I].src = imgcache[I].src; 
	}
}

function select_item(itemnum)
{ if(itemnum >= document.all.smallpic.length) return;
  document.all.prodname.innerText = itemname[itemnum];
  document.all.proddesc.innerText = itemdesc[itemnum];
  document.all.prodimg.src = imgcache[itemnum].src;
 } 

function load_arrays() 
{
// Product Codes are used for image names - eg. 10-1065.jpg
prod[0] = "FlatironBldg2";  itemname[0] = "The Flatiron Building";
itemdesc[0] = " ";

prod[1] = "WashingtonSqPark2";  itemname[1] = "Washington Square Park";
itemdesc[1] = "Greenwich Village";

prod[2] = "Tiles7";  itemname[2] = "Tiles for America";
itemdesc[2] = "Both sides of this fence were covered with tiles made about 9-11";

prod[3] = "Tiles4";  itemname[3] = "Tiles for America";
itemdesc[3] = " ";

prod[4] = "ImagineLivingSign";  itemname[4] = "Pretty hard to Imagine!";
itemdesc[4] = " ";

prod[5] = "TechnoCar1";  itemname[5] = "Techno Car";
itemdesc[5] = " ";
}

function showpic(htmfile, nwidth, nheight)
{
if(window_opened) newwin.close();
newwin = open(htmfile,"Menu","width=" + nwidth + ",height=" + nheight + ",resizable,");
window_opened = true;
newwin.focus();
}




