function galerie(shckp,shckti,shckte,shckid)
{ var undefined;

  if (shckti==undefined || (shckti=='')) {shckti='';}
  if (shckte==undefined || (shckti=='')) {shckte='';}
  if (shckid==undefined) {shckid='';}

  x=(screen.availWidth/2)-(800/2);y=(screen.availHeight/2)-(600/2);

  shcknw=window.open('',shckid,'resizable=1,width=800,height=600,top='+y+',left='+x+'');

  with (shcknw)
  {
    focus();
    document.open();
    document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">\n\n');
		document.write('');
		document.write('<html>\n<head>\n<title>Galerie</title>\n');
		document.write('<meta http-equiv="imagetoolbar" content="no">\n');
		document.write('<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">\n');
		document.write('<style type="text/css">body{margin:0px;padding:0px;overflow:hidden;}</style>\n</head>\n\n');
		document.write('<body onload="opener.shckrez(document.images[0].width,document.images[0].height);">\n\n')
                 document.write('<table border=0" width="100%">\n');
                 document.write('<tr>\n<td align="center" width="100%">\n');
                 document.write('<a href="javascript:self.close()">');
		document.write('<img src="'+shckp+'" border="0" alt="'+shckte+'"></a>\n')
                 document.write('</td>\n</tr>\n');
                 document.write('</table>\n');

		if (navigator.appName.toLowerCase() != 'netscape')
  	{
			document.write('<table border="0" cellpadding="0" cellspacing="0" style="height:100%;">\n');
			document.write('  <tr>\n');
			document.write('    <td valign="top"></td>\n');
			document.write('  </tr>\n');
			document.write('</table>\n\n');
		}

		document.write('</body>\n</html>');
		document.close();
  }
}


function shckrez(x,y)
{
if (navigator.appName.toLowerCase() == 'microsoft internet explorer')
  {

 	if ((navigator.userAgent.toLowerCase().indexOf('aol')==-1) && (navigator.userAgent.toLowerCase().indexOf('opera')==-1))
     	{
     		xX=15;
	     	yY=34;
     	}

	if (navigator.userAgent.toLowerCase().indexOf('opera')!=-1)
     	{
     		xX=12;
     		yY=38;
     	}

	if (navigator.userAgent.toLowerCase().indexOf('aol')!=-1)
     	{
     		xX=4;
     		yY=4;
     	}

  }

else
{


	if(navigator.appVersion.substring(0,1) < "5")
		{
	     	xX=0;
	     	yY=0;
		}

	else
		{
	     	xX=8;
	     	yY=36;
		}


	if (navigator.userAgent.toLowerCase().indexOf('firefox')!=-1)
     	{
				shcknw.location.reload();
     		xX=8;
     		yY=56;
     	}

}


if ((screen.availWidth > x) || (screen.availHeight > y))
{

	shckx=(screen.availWidth/2)-((x+xX)/2);
	shcky=(screen.availHeight/2)-((y+yY)/2);
	shcknw.moveTo(shckx,shcky);


	shcknw.resizeTo(x+xX,y+yY);

	yK=y-shcknw.shckLWH.height;
	if (yK>0)
	{
		shcknw.resizeTo(x+xX,y+yY+yK);
		shcknw.moveTo(shckx,(screen.availHeight/2)-((y+yY+yK)/2));
	}

}
else
{
	shcknw.moveTo((screen.availWidth*0.1)/2,(screen.availHeight*0.1)/2);
	shcknw.resizeTo(screen.availWidth-(screen.availWidth*0.1),screen.availHeight-(screen.availHeight*0.1));
}

}