window.defaultStatus = 'PKS w Końskich S.A.';

function show_status(txt)
{
	window.status = txt;
}

function hidden_status()
{
	window.status = '';
}







noweOkienko = null;

function galeria(src, w, h){

  if(window.screen){
    aw=screen.availWidth;
    ah=screen.availHeight;
  }else{
    aw=640;
    ah=450;
  }

  if(noweOkienko==null || noweOkienko.closed){

    ustawienia=
     "left=" + (aw-w)/2 + ","
    +"top=" + (ah-h)/2 + ","
    +"screenX=" + (aw-w)/2 + ","
    +"screenY=" + (ah-h)/2 + ","
    +"width=" + w + ","
    +"height=" + h + ","
    +"innerWidth=" + w + ","
    +"innerHeight=" + h + ","
    +"toolbar=no,"
    +"location=no,"
    +"directories=no,"
    +"status=no,"
    +"menubar=no,"
    +"scrollbars=no,"
    +"resizable=no"

    noweOkienko = window.open('','obrazek',ustawienia);

  }

  noweOkienko.document.open();
  noweOkienko.document.clear();
  noweOkienko.document.write(

     "<html><head>\n"
    +"<style><!--\n"
    +"body{background-repeat:no-repeat}\n"
    +"--></style>\n"
	+"<TITLE>PKS w Końskich S.A.</TITLE>\n"
    +"</head>\n"
    +"<body background='gfx/" + src + "'>"
	+"</body>\n"
    +"</html>"

  );

  noweOkienko.document.close();

  x=(aw-w)/2;
  y=(ah-h)/2;
  noweOkienko.moveTo(x,y)
  h = h + 29;
  w = w + 10;
  noweOkienko.resizeTo(w,h);
  
  noweOkienko.focus();

}