
function showThumbnail(idx)
{
	CurrIdx = idx;

  if (document.all){
	document.images.Pic.style.filter="blendTrans(duration=1)";
 	document.images.Pic.style.filter="blendTrans(duration=1)";
	 document.images.Pic.filters.blendTrans.Apply();
  }
   
	document.images.Pic.src = "thumb.aspx?src="  + ImageArray[idx].src ;
	document.images.Pic.title = " " + ImageArray[idx].caption + " - Click to enlarge ";
	document.images.Pic.width = 250;
	document.images.Pic.style.border = "solid #CECE9A 4pt;";
	//document.images.Pic.style.borderLeft = "solid black 1px;";
	//document.images.Pic.style.borderRight = "solid gray 3px;";
	//document.images.Pic.style.borderBottom = "solid gray 3px;";
	
	if(document.getElementById)
        	document.getElementById('Caption').innerHTML = ImageArray[idx].caption + " <br> (Click to enlarge) ";
 
   if (document.all){
      document.images.Pic.filters.blendTrans.Play();
   }
}

function Enlarge()
{
	var URL = "Pic.asp?src=" + ImageArray[CurrIdx].src + "&alt=" + ImageArray[CurrIdx].caption;	
	var width = ImageArray[CurrIdx].width;
	var height = ImageArray[CurrIdx].height;
	var x = (window.screen.availWidth - width ) / 2; 
	var y = (window.screen.availHeight - height ) / 2; 
	
	var features = "width=" + width + ", height=" + height + ", scrollbars=no, left=" + x +", top=" + y; 
	// open the window 
	win = open(URL,'', features); 		
	
}  