function aken(url, nimi)
{
	//height = screen.height;
	//width = screen.width;
	// 'width=' + width + ',height=' + height + '
	Win = window.open(url,nimi,'resizable=no,scrollbars=yes,menubar=no,status=no,fullscreen=yes');
	Win.document.write('<html><head><title>Kontuur Leo Burnett</title></head><body scroll="yes" onblur="self.close();" style="margin:0 0 0 0; background:#dddddd;"><table width="100%" height="100%" style="height: 100%" border="0"><tr><td valign="middle" align="center" style="cursor: pointer;" onclick="self.close();"><img alt="'+nimi+'" src="'+url+'" border="0"></td></tr></table></body></html>');
	//Win.moveTo((screen.width-width)/2,(screen.height-height)/2);
}
PositionX = 0;
PositionY = 0;
defaultWidth  = 500;
defaultHeight = 500;
var AutoClose = false;
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,menubar=no,status=yes,width=150,height=500,left='+PositionX+',top='+PositionY;
function picpop(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>Kontuur Leo Burnett</title><style>body{margin:0px; topmargin:0px; leftmargin: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(screen.width,screen.height);}');
		writeln('if (isNN){');
		writeln('window.innerWidth=document.images["pilt"].width;');
		writeln('window.innerHeight=document.images["pilt"].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('<img name="pilt" src='+imageURL+' style="display:block; cursor: pointer;" onclick="self.close();"></body></html>');
		//imgWin.moveTo((screen.width-defaultWidth)/2,(screen.height-defaultHeight)/2);
		close();
	}
}
