function Scrolltop() {
	this.scroll(0,0)
}


function showphoto (title, photo, name) {

	var NewWin = window.open("", name,"width=5,height=5,resizable=no,scrollbars=yes");
	NewWin.document.write('<html><head><meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=big5">\n');
	NewWin.document.write('<title>'+title+'</title></head><body bgcolor="#ffffff" topmargin=0 leftmargin=0>\n');
	NewWin.document.write('<center><table width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td>\n');
	
	NewWin.document.write('<a title="Close Image" href="javascript:window.close();"><img src='+photo+' border=0></a>');
	
	NewWin.document.write('</td></tr></table>\n');
	NewWin.document.write('</body></html>\n');
	
	NewWin.document.write('<script language=javascript>\n');
	
	NewWin.document.write('img = new Image();\n');
	NewWin.document.write('img.src="'+photo+'";\n');
	
	NewWin.document.write('cnt = 0\n');
	NewWin.document.write('sh = screen.height;\n');
	NewWin.document.write('sw = screen.width;\n');
	NewWin.document.write('function resizeFrame() {\n');
	NewWin.document.write('	if (img.width != 0 && img.height != 0)\n');
	NewWin.document.write('		wWidth = (img.width+29 > sw-100)?sw-100:img.width+29;\n');
	NewWin.document.write('		wHeight = (img.height+29>sh-200)?sh-200:img.height+29;\n');
	NewWin.document.write('		if ((wWidth == "undefined" || wHeight == "undefined") && cnt < 10) {\n');
	NewWin.document.write('			cnt ++;\n');
	NewWin.document.write('			setTimeout(resizeFrame, 500);\n');
	NewWin.document.write('		}\n');
	NewWin.document.write('		else {\n');
	NewWin.document.write('			top.moveTo((sw - wWidth)/2, (sh - wHeight)/2);\n');
	NewWin.document.write('			top.resizeTo(wWidth, wHeight);\n');
	NewWin.document.write('		}\n');
	NewWin.document.write('	}\n');
	NewWin.document.write('setTimeout(resizeFrame, 500);\n');
	NewWin.document.write('</script>\n');
	NewWin.focus();
}