 noImage2 = new Image();noImage2.src="/images/noimage.gif"
  
  function showpict(nOption){
	 //function to update the image tag with the image parameters.
	 var xstr='Image#'+nOption+'\n'+aImg[nOption].src+'\nDimensions: '+aImg[nOption].width+'x'+aImg[nOption].height;
	 document.images['image1'].alt=xstr
     if (aLabel[nOption].length > 1) 
         xstr=aLabel[nOption];
     document.images['image1'].src=aImg[nOption].src;
     document.images['image1'].width=aImg[nOption].width;
     document.images['image1'].height=aImg[nOption].height;
	 
	
     }

   function galleryleft()
  	{
	//Displays 5 images down the left side of the page
    for (var c=1; c<=6; c++)
		{
			document.write("<a href='javascript:showpict("+c+")' ");
            if(aImg[c].src == noImage2.src)
				document.write('onMouseOver=""><img src='+aImg[c].src+' width=50 height=50 border=1 alt="#'+c+'"></a><br><br>'); 
			else
            	document.write('onMouseOver="javascript:showpict('+c+')"><img src='+aImg[c].src+' width=50 height=50 border=1 alt="#'+c+'"></a><br><br>'); 
 	     }
      }

	function galleryright()
  	{
	//Displays 2 images down the left side of the page
    for (var c=7; c<=12; c++)
		{
			document.write("<a href='javascript:showpict("+c+")' ");
			if(aImg[c].src == noImage2.src)
				document.write('onMouseOver=""><img src='+aImg[c].src+' width=50 height=50 border=1 alt="#'+c+'"></a><br><br>'); 
			else
            	document.write('onMouseOver="javascript:showpict('+c+')"><img src='+aImg[c].src+' width=50 height=50 border=1 alt="#'+c+'"></a><br><br>'); 
 	     }
      }