function OpenThumb(spicURL,sTitle)
{
	var xcen = (screen.availWidth-100)/2;
	var ycen = (screen.availHeight-100)/2;
	window.open("thumbviewer.html?" + spicURL + "?" + sTitle, "", "status=yes,resizable=1,height=100,width=100,left=" + xcen + ",top=" + ycen);
}

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

function FitPic()
{
	iWidth = (NS)? window.innerWidth:document.body.clientWidth;
	iHeight = (NS)? window.innerHeight:document.body.clientHeight;

	iWidth = document.images[0].width - iWidth;
    iHeight = document.images[0].height - iHeight;
    window.resizeBy(iWidth+30, iHeight-1+30);

	var xcen = (screen.availWidth-document.body.clientWidth)/2;
	var ycen = (screen.availHeight-document.body.clientHeight)/2;
	window.moveTo(xcen,ycen);
    self.focus();
}