function rmw_go(){var c=document.getElementsByTagName("IMG");for(var e=0;e<c.length;e++){var f=c[e];if(String(f.getAttribute("resizemod"))=="on"){if(rmw_wait_for_width&&f.width&&!isNaN(f.width)){if(f.width>Number(rmw_max_width)){f.setAttribute("resizemod","off");f.onload=null;f.removeAttribute("onload");var d=f.cloneNode(false);var a=f.parentNode;d.setAttribute("width",String(rmw_max_width));a.replaceChild(d,f);rmw_make_pop(d,f.width,f.height)}}else{if(!rmw_wait_for_width){f.setAttribute("resizemod","off");var d=f.cloneNode(false);f.onload=null;f.removeAttribute("onload");var a=f.parentNode;var b=rmw_count++;d.setAttribute("resizemod",String(b));rmw_preload[b]=new Image();rmw_preload[b].src=f.src;if(window.showModelessDialog){d.style.margin="2px"}d.style.border=rmw_border_1;d.style.width="1px";a.replaceChild(d,f)}}}}if(!rmw_over&&document.getElementById("resizemod")){rmw_over=true;rmw_go()}else{if(!rmw_over){window.setTimeout("rmw_go()",2000)}}}function rmw_img_loaded(rmw_obj){if(!document.getElementsByTagName||!document.createElement){return}var rmw_att=String(rmw_obj.getAttribute("resizemod"));var rmw_real_width=false;if((rmw_att!="on")&&(rmw_att!="off")){var rmw_index=Number(rmw_att);if(rmw_preload[rmw_index].width){rmw_real_width=rmw_preload[rmw_index].width;real_height=rmw_preload[rmw_index].height}}else{rmw_obj.setAttribute("resizemod","off");if(rmw_obj.width){rmw_real_width=rmw_obj.width;real_height=rmw_obj.height}}if(!rmw_real_width||isNaN(rmw_real_width)||(rmw_real_width<=0)){var rmw_rand1=String(rmw_count++);eval("rmw_retry"+rmw_rand1+" = rmw_obj;");eval("window.setTimeout('rmw_img_loaded(rmw_retry"+rmw_rand1+")',2000);");return}if(rmw_real_width>Number(rmw_max_width)){if(window.showModelessDialog){rmw_obj.style.margin="2px"}rmw_make_pop(rmw_obj,rmw_real_width,real_height)}else{if(!rmw_wait_for_width){rmw_obj.style.width=String(rmw_real_width)+"px";rmw_obj.style.border="0";if(window.showModelessDialog){rmw_obj.style.margin="0px"}}}if(window.ActiveXObject){window.clearTimeout(rmw_timer1);rmw_timer1=window.setTimeout("rmw_refresh_tables()",10000)}}function rmw_refresh_tables(){var a=document.getElementsByTagName("TABLE");for(var b=0;b<a.length;b++){a[b].refresh()}}function rmw_make_pop(rmw_ref,real_width,real_height){rmw_info_resize(rmw_ref,real_width,real_height);rmw_ref.style.border=rmw_border_2;rmw_ref.style.width=String(rmw_max_width)+"px";if(!window.opera){rmw_ref.onclick=function(){if(!rmw_pop.closed){rmw_pop.close()}rmw_pop=window.open("about:blank","c",rmw_pop_features);rmw_pop.resizeTo(window.screen.availWidth,window.screen.availHeight);rmw_pop.moveTo(0,0);rmw_pop.focus();rmw_pop.location.href=this.src}}else{var rmw_rand2=String(rmw_count++);eval("rmw_pop"+rmw_rand2+" = new Function(\"rmw_pop = window.open('"+rmw_ref.src+"','c','"+rmw_pop_features+"'); if (rmw_pop) {rmw_pop.focus();}\")");eval("rmw_ref.onclick = rmw_pop"+rmw_rand2+";")}document.all?rmw_ref.style.cursor="hand":rmw_ref.style.cursor="pointer";rmw_ref.title=rmw_image_title;if(window.showModelessDialog){rmw_ref.style.margin="0px"}}if(document.getElementsByTagName&&document.createElement){rmw_preload=new Array();if(window.GeckoActiveXObject||window.showModelessDialog){rmw_wait_for_width=false}else{rmw_wait_for_width=true}rmw_pop_features="top=0,left=0,width="+String(window.screen.width-80)+",height="+String(window.screen.height-190)+",scrollbars=1,resizable=1";rmw_over=false;rmw_count=1;rmw_timer1=null;if(!window.opera){rmw_pop=new Object();rmw_pop.closed=true;rmw_old_onunload=window.onunload;window.onunload=function(){if(rmw_old_onunload){rmw_old_onunload();rmw_old_onunload=null}if(!rmw_pop.closed){rmw_pop.close()}}}window.setTimeout("rmw_go()",2000)}function rmw_info_resize(c,b,a){var d=document.createElement("div");d.style.width=rmw_max_width+2+"px";var f=Math.round(rmw_max_width/b*100);d.innerHTML='<div style="background: #000;font-size: 10px;color: #a8a8a8;border: 1px dashed #555;border-top: 0px;margin-bottom: 5px;text-align: center;padding: 4px;line-height: 1;">Ten obrazek został pomniejszony ['+b+"x"+a+"] do  "+f+"%, kliknij na niego aby go powiększyć</div>";var e=c.parentNode;e.insertBefore(d,c.nextSibling)};

