var allegrofun_big='';function BigPicture(){w=window.open('','','width=700,height=500,left=10,top=5,toolbar=no,directories=no,menubar=no,locations=no,status=yes,scrollbars=yes,resizable=yes,fullscreen=no');w.document.open();w.document.writeln('<html><body style="margin:0;padding:5px;text-align:center;"><a href="javascript:window.close();"><img src="'+allegrofun_big+'" border="0" name="im" id="im"><br><br>Zamknij okno</a></body></html>');w.document.close();w.focus();return false;}
function gallery(imgs){document.write('<div align="center" style="padding: 20px 0;">');if(imgs.large.length==1)
document.write('<img src="'+imgs.large[0]+'">');else{allegrofun_big=imgs.large[0];document.write('<table cellspacing="0" cellpadding="5"><tr><td class="gallery-big" style="padding-top: 1px; width:400px; height:300px;"><a href="#" onclick="return BigPicture();"><img name="big_photo" src="'+imgs.medium[0]+'" style="max-width:400px;max-height:300px;" class="gallery-big" /></a></td></tr><tr><td class="gallery-thumbs"><table cellspacing="0" cellpadding="0" align="center"><tr>');for(var i=0;i<imgs.large.length;i++){document.write('<td width="133" height="99"><a href="#" onclick="allegrofun_big=\''+imgs.large[i]+'\';document.big_photo.src=\''+imgs.medium[i]+'\';return false;"><img src="'+imgs.small[i]+'" alt="" class="gallery-big" width="128" height="96" /></a></td>');if(i==3||i==7){document.write('</tr><tr>');}}
document.write('</tr><tr></tr></table></td></tr></table>');}
document.write('</div>');}
function MidPicture(mid,big){allegrofun_big=big;document.big_photo.src=mid;return false;}
window.onload=function(){var u=document.getElementById('user_field');var w=document.body.clientWidth-135;if(u.offsetWidth>w){u.style.width=w-5+"px";}}