function zoomo(picURL){ 
okno=window.open("","zoomer","left=300,top=200,width=300,height=150,noresizable,noscrollbars,menubar=no,status=no");
okno.document.writeln("<html><head><meta http-equiv='Content-Type' content='text/html; charset=utf-8' /><title>zoomer</title><script type='text/javascript'>window.open('', 'zoomer','resizable');self.focus();window.moveTo(300,200);var res1=300;var res2=150;if (document.layers){window.resizeTo(res1-10,res2);}else{window.resizeTo(res1,res2);}var NS = (navigator.appName=='Netscape')?true:false;");
okno.document.writeln("function fitPic(){iWidth=(NS)?window.innerWidth:document.body.clientWidth;iHeight = (NS)?window.innerHeight:document.body.clientHeight+60;iWidth = document.images[0].width - iWidth;iHeight = document.images[0].height - iHeight;window.resizeBy(iWidth+20,iHeight+80);window.open('', 'zoomer','noresizable');");
okno.document.writeln("window.moveTo((screen.width-document.images[0].width)/2,(screen.height-document.images[0].height)/2);if (document.getElementById&&!document.all){document.getElementById('obrazek1Div').style.visibility='hidden';}if (document.all) {document.all.obrazek1Div.style.visibility='hidden';}");
okno.document.writeln("if (document.layers){document.obrazek1Div.visibility='hidden';}self.focus();};</scr"+"ipt></HEAD><BO"+"DY bgcolor='#bfc1b3' topmargin='9' leftmargin='9' style='overflow:hidden' onload='fitPic();'><div id='obrazek2Div'><table width='1' height='1' border='0' bgcolor='#ffffff' cellpadding='1' cellspacing='0'><tr><td><a href=javascript:close();>");
okno.document.writeln("<img src='" +picURL+ "' border=0 alt='close'></a></td></tr></table></div><div id='obrazek1Div' style='position:absolute;left:0px;top:0px;z-index:1;'><table width='300' height='150' border='0' bgcolor='#bfc1b3'><tr><td align=center valign=top><img src='img/loading.gif'></td></tr></table></div></body></html>");
okno.document.close();
}


function zoom(picURL,title,info){ 

ititle="sdfsdf sdfsdfsdfsdf sdfsdfsd";
iinfo="ooo sdfsdf sdfsdf <br />sdsdfsdf<br />sdsdfsdf";

okno=window.open("","zoomer","left=300,top=200,width=300,height=160,noresizable,noscrollbars,menubar=no,status=no");
okno.document.writeln("<html><head><meta http-equiv='Content-Type' content='text/html; charset=utf-8' /><title>Zoom</title><script type='text/javascript'>window.open('', 'zoomer','resizable');self.focus();window.moveTo(300,200);var res1=300;var res2=160;window.resizeTo(res1,res2);var NS = (navigator.appName=='Netscape')?true:false;");
okno.document.writeln("function fitPic(){iWidth=(NS)?window.innerWidth:document.body.clientWidth;iHeight = (NS)?window.innerHeight:document.body.clientHeight;iWidth=document.images[0].width-iWidth;iHeight=document.images[0].height-iHeight;window.resizeBy(iWidth+20,iHeight+");
nwinheight=20;
if(title){
nwinheight+=20;
}
if(info){
nwinheight+=50;
}
okno.document.writeln(nwinheight+");window.open('', 'zoomer','noresizable');window.moveTo((screen.width-document.images[0].width)/2,(screen.height-document.images[0].height)/2);if (document.getElementById&&!document.all){document.getElementById('obrazek1Div').style.visibility='hidden';};if (document.all){document.all.obrazek1Div.style.visibility='hidden';}");
okno.document.writeln("if (document.layers){document.obrazek1Div.visibility='hidden';}self.focus();};</scr"+"ipt></head><bo"+"dy bgcolor='#e9e8de' style='overflow:hidden;margin:9px;padding:0px;font-family:Arial;color:#333333;font-size:12px;' onload='fitPic();'><div id='obrazek2Div'><table width='1' border='0' bgcolor='#111111' cellpadding='1' cellspacing='0'");
okno.document.writeln("summary=''><tr><td><a href='javascript:close();'><img src='" +picURL+ "' border='0' alt='zamknij / close' title='zamknij/close' /></a></td></tr></table>");
if(title){
okno.document.writeln("<div style='font-family:Arial;color:#333333;font-size:11px;margin-top:4px;'>"+title+"</div>");
}
if(info){
okno.document.writeln("<div style='font-family:Arial;color:#333333;font-size:11px;margin-top:4px;height:47px;overflow:auto;background-color:#f3f2ec;padding:2px;'>"+info+"</div>");
}
okno.document.writeln("</div><div id='obrazek1Div' style='position:absolute;");
okno.document.writeln("left:0px;top:0px;z-index:1;height:100%'><table style='width:300px;height:100%;' border='0' bgcolor='#eeeeee' summary=''><tr><td style='font-family:Arial;color:#333333;font-size:12px;' align='center' valign='middle' >ładuję / loading ...</td></tr></table></div></body></html>");
okno.document.close();
}
