// Image Pop Up/Resize
   
function enlargePic(sPicURL) {
	window.open("enlarge.htm?"+sPicURL, "","resizable=1,height=300,width=300");
}

var arrTemp=self.location.href.split("?"); 
var picUrl = (arrTemp.length>1)?arrTemp[1]:""; 
var NS = (navigator.appName=="Netscape")?true:false; 

function fitPic() { 
       iWidth = (NS)?window.innerWidth:document.body.parentNode.clientWidth; 
       iHeight = (NS)?window.innerHeight:document.body.parentNode.clientHeight; 
       iWidth = document.images[0].width - iWidth; 
       iHeight = document.images[0].height - iHeight; 
       window.resizeBy(iWidth, iHeight-1); 
       self.focus(); 
}