<!-- Rollover Image Script - Place within <head> tag -->
<!-- Hide from older browsers
function SwitchImg()
{ //start
  var rem, keep=0, store, obj, switcher=new Array, history=document.Data;
    for (rem=0; rem < (SwitchImg.arguments.length-2); rem+=3) {
    	store = SwitchImg.arguments[(navigator.appName == 'Netscape')?rem:rem+1];
    if ((store.indexOf('document.layers[')==0 && document.layers==null) ||
        (store.indexOf('document.all[')==0 && document.all==null))
         store = 'document'+store.substring(store.lastIndexOf('.'),store.length);
         obj = eval(store);
    if (obj != null) {
   	   switcher[keep++] = obj;
      switcher[keep++] = (history==null || history[keep-1]!=obj)?obj.src:history[keep];
      obj.src = SwitchImg.arguments[rem+2];
  } }
  document.Data = switcher;
} //end

function RestoreImg()
{ //start
  if (document.Data != null)
    for (var rem=0; rem<(document.Data.length-1); rem+=2)
      document.Data[rem].src=document.Data[rem+1];
} //end

// end hiding contents -->


function w_open(img_name,w,h) 
{
  img_win=window.open("","","width="+w+",height="+h);
  img_win.document.writeln("<html><head><style>body{background-repeat: no-repeat;}</style></head>");
  img_win.document.writeln("<body onBlur=\"window.close()\" onClick=\"window.close()\" background=\""+img_name+"\">");
  img_win.document.write("</body></html>");
}


// f wyswietla obraz mniejszy, po kliknieciu okazywane jest okno z duzym obrazem
// @param small_img_path
// @param big_img_path
// @param comment
function paint_img(small_img_path, small_img_width, small_img_height, big_img_path, big_img_width, big_img_height, alt, comment, img_float, title)
{
 
s_w = small_img_width + 16;

if (comment == "")
  s = "";
else
  s = "<tr><td><div class=\"nr_rys\" style=\"width: 100%;\">"+ comment +"</div></td></tr>";

document.write("<table style=\"width: " + s_w + "px; float: " + img_float + ";\">"+
  
       "<tbody><tr><td>" +   
       "<img class=\"img_rys\" style=\"cursor: pointer; border: 1px solid #D3D3D3; padding: 1px; margin: 10px;\""+ 
	     " src=\"" + small_img_path + "\""+
             " width=\"" + small_img_width + "\""+
			 " height=\"" + small_img_height + "\""+
			 " alt=\""+ alt + "\""+
			 " border=\"0\""+
			 " align=\"middle\""+
			 " title=\"" + title + "\""+
             " onClick=\"javascript:show_big_img('" + big_img_path + "'," + big_img_width + "," + big_img_height + ");\"></td></tr>"+			  
       s +
       "</tbody>" +
    "</table>"  
  );
  
}

function show_big_img(img_path, img_width, img_height)
{
  if (img_path != '')
  {
	w_open(img_path,img_width,img_height);  
    return true;
  }
  else
    return false;	 
}





