
function foto(nazwa, w, h)
{
 var pos_y = (screen.height/2)-(h/2);
 var pos_x = (screen.width/2)-(w/2);
 if( pos_y < 0 ) pos_y = 0;
 if( pos_x < 0 ) pos_x = 0;
 window.open("foto.php?" + nazwa, "","tollbar=no,menubar=no,location=no,personalbar=no,scrollbars=no,status=no,resizable=no,width="+ w +",height="+ h +", top="+ pos_y +",left="+ pos_x);
} // foto()

/*************************************/

function foto2(nazwa, w, h)
{
 var pos_y = (screen.height/2)-(h/2);
 var pos_x = (screen.width/2)-(w/2);
 if( pos_y < 0 ) pos_y = 0;
 if( pos_x < 0 ) pos_x = 0;
 window.open("foto.php?" + nazwa, "","tollbar=no,menubar=no,location=no,personalbar=no,scrollbars=yes,status=no,resizable=no,width="+ w +",height="+ h +", top="+ pos_y +",left="+ pos_x);
} // foto2()

/*************************************/

function dodaj_do_ulubionych()
{
 if( document.all )
  window.external.AddFavorite(location.href, document.title);
 else if( window.sidebar )
  window.sidebar.addPanel(document.title, location.href, "");
 else
  alert('Naciśnij Ctrl+D aby dodać stronę do ulubionych');
} // dodaj_do_ulubionych() 

/*************************************/

function ustaw_jako_startowa()
{
  if (navigator.appName == "Netscape") {
    alert("Ze względów bezpieczeństwa ta funkcja nie jest dostępna pod przeglądarkami z rodziny Mozilla oraz Netscape.");
  } else {
    document.body.style.behavior='url(#default#homepage)';
    document.body.setHomePage(location.href);
  }
} // ustaw_jako_startowa()

/*************************************/

function akcja(id)
{
 obj = document.getElementById(id);
 if(obj.style.display == 'none')
  obj.style.display = 'block';
 else
  obj.style.display = 'none';
} // akcja()

/*************************************/

function powiekszenie(img2)
{
	var okno = window.open("", "","tollbar=no,menubar=no,location=no,personalbar=no,scrollbars=no,status=no,resizable=no");
	var img = new Image();
	img.src = img2;
	var kod;
	kod  = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">';
	kod += '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl">';
	kod += '<head>';
	kod += '<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />';
	kod += '<title>hm</title>';
	kod += '</head>';
	kod += '<body style="background: #ffffff; margin: 0px;">';
	kod += '<div style="line-height: 1px; font-size: 1px;"><img src="' + img2 + '" alt="" /></div>';
	kod += '</body>';
	kod += '</html>';
	okno.document.write(kod);

	var pos_y = (screen.height/2)-(img.height/2);
	var pos_x = (screen.width/2)-(img.width/2);
	if( pos_y < 0 ) pos_y = 0;
	if( pos_x < 0 ) pos_x = 0;
	okno.window.moveTo(pos_x, pos_y);

  if(document.all) {
  	okno.window.resizeTo(img.width, img.height + 35);
  } else {
  	okno.window.resizeTo(img.width + 6, img.height + 55);
  }

} // powiekszenie()

/*************************************/
