// -------------------------------------------------------- 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 koleso_big(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 gotolink(){');
//window.open(document.location.href);
//writeln('window.open(document.location.href="http://www.artdesign.lv");');
writeln('window.open(\'http://www.p-y.lv/public/?id=8&ln=lv\',\'\',\'width=640,height=480,Toolbar=1, Location=1, Scrollbars=1, Status=1,resizable=yes\');');
writeln('self.close();');

//index.html","Artel","Width="+screen.width+", Height="+screen.height+", Toolbar=0, Location=0, Scrollbars=1, Status=1", "Status=1

writeln('}');
					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('</head><body bgcolor=ffffff scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="gotolink()">');
					writeln('<div id="Layer1" style="position:absolute; width:100%; height:100%; z-index:1">');
					writeln('<img name="pRofile" src='+imageURL+' border="0" 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