function high(tr) {
           tr.style.cursor = 'hand';
           tr.style.background = '#FFFFFF';
           //tr.children[1].children[0].style.color = '#aa0000';
           }
  function low(tr) {
           tr.style.background = 'transparent';
           tr.style.cursor = 'auto';
           //tr.children[1].children[0].style.color = 'black'
           }
  function link(href) { window.location = href; }		   
 
 //function showImg( img_src, img_w, img_h, img_name ) {
 
 function showImg( img_src, img_name ) {	
 var img_w, img_h;
	
	img_w_n = 300;
	img_h_n = 10;
	
	img_w_o = img_w;
	img_name='Pensjonat Arkadia '+img_name;
   var popup = window.open('','','width=' + img_w_n + ',height=' + img_h_n + ',resizable=0,scrollbars=no,menubar=no');
   popup.document.open();
   popup.document.write('<html><head><title>'+img_name+'<\/title><\/head>');   
   popup.document.write('<script type="text/javascript" src="/template/szablon2/menu.js"></script>');
   
   popup.document.write('<body style="margin: 0;padding: 0; position: relative;">');
   popup.document.write('<a href="javascript:window.close();" style="border: none; display: block; margin: 0 ;border: 20px solid #404040; padding: 0;"><img style="margin: 0; padding: 0; border: 10px solid #B4AC74;" src=/images/' + img_src + ' onload="ResizeWin();" name="obrazek" alt="'+img_name+'" title="'+img_name+'"/></a>');
   popup.document.write('<br /><div style="position: absolute; top:30; left: 30; background-color: #ffffff; filter:alpha(opacity=75); opacity:.75; width: '+img_w_o+'; padding: 5px 0; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;"><p style="margin: 0 5px; padding: 0;">'+img_name+'<\/p><\/div>');
   popup.document.write('<\/body><\/html>');
//   popup.document.focus();
   popup.document.close();
}

	function ResizeWin()
	{   			    var pos_x,pos_y,x,y;

                x = screen.width - document.images["obrazek"].width;
                y = screen.height- document.images["obrazek"].height;

                if (x<0 || y<0) 
                { 

					if (y<=x) 
					{
					 document.images["obrazek"].height = screen.height-70;
					}
					else
					{
					 document.images["obrazek"].width = screen.width-50;
					} 
 
                }

		
		window.resizeTo(document.images["obrazek"].width+50+15,document.images["obrazek"].height+70+40);		
		pos_x = parseInt( (screen.width - document.images["obrazek"].width-50)/2 );
		pos_y = parseInt( (screen.height - document.images["obrazek"].height-70)/2 );		
		window.moveTo(pos_x,pos_y);
	}
