function show (image, w, h){
coin=window.open("","coin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+w+",height="+h+"");
coin.document.writeln('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">');
coin.document.writeln('<html>');
coin.document.writeln('<head>');
coin.document.writeln('<title>Picture</title>');
coin.document.writeln('<meta http-equiv="Copyright" content="Orangelio Studio">');
coin.document.writeln('<meta http-equiv="Reply-to" content="lionet@one.lv">');
coin.document.writeln('</head>');
coin.document.writeln('<body background="" bgcolor="" marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">');
coin.document.write('<a href="javascript:window.close();">');
coin.document.writeln('<img border="0" src="'+image+'" width='+w+' height='+h+'>');
coin.document.write('</a></body></html>');
coin.document.close();
}


// -------------------------------------------------------- window open:start
					PositionX = 100;
					PositionY = 100;
					defaultWidth  = 500;
					defaultHeight = 500;
					var AutoClose = true;
					// ================================
					if (parseInt(navigator.appVersion.charAt(0))>=4){
					var isNN=(navigator.appName=="Netscape")?1:0;
					var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
					var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
					var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
					function view(imageURL,imageTitle){
					if (isNN){imgWin=window.open('about:blank','',optNN);}
					if (isIE){imgWin=window.open('about:blank','',optIE);}
					with (imgWin.document){
					writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');
					writeln('<sc'+'ript>');
					writeln('var isNN,isIE;');
					writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
					writeln('isNN=(navigator.appName=="Netscape")?1:0;');
					writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
					writeln('function reSizeToImage(){');
					writeln('if (isIE){');
					writeln('window.resizeTo(100,100);');
					writeln('width=100-(document.body.clientWidth-document.images[0].width);');
					writeln('height=100-(document.body.clientHeight-document.images[0].height);');
					writeln('window.resizeTo(width,height);}');
					writeln('if (isNN){');       
					writeln('window.innerWidth=document.images["pRofile"].width;');
					writeln('window.innerHeight=document.images["pRofile"].height;}}');
					writeln('function doTitle(){document.title="'+imageTitle+'";}');
					writeln('</sc'+'ript>');
					if (!AutoClose) 
					writeln('</head><body bgcolor=ffffff scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
					else 
					writeln('</head><body bgcolor=ffffff scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
					writeln('<div id="Layer1" style="position:absolute; width:100%; height:100%; z-index:1">');
					writeln('<img name="pRofile" src='+imageURL+' style="display:block"></div>');
					writeln('<div id="Layer2" style="position:absolute; width:100%; height:100%; z-index:2">');
					writeln('<img src="gfx/_blank.gif" width="100%" height="100%" GALLERYIMG="no"></div></body></html>');
					close();		
					}} 
// -------------------------------------------------------- window open:end
