function popup(kep,scroll)
    {
      if (scroll==null) {scroll='no';}
      page='/favat/gulf_galeria/popup.php?kepfile='+kep+'&scroll='+scroll;
      w = 1;
      h = 1;
      l = 0;
      t = 0;
      settings = 'scrollbars=' + scroll + ',resizable=no,status=no,menubar=yes,width=' + w + ',height=' + h + ',left='
                 + l + ',top=' + t + ',screenX=' + l + ',screenY=' + t;
      win = window.open(page, 'popup', settings);
      win.focus(); 
}

function popupfull_a(page)
    {
        w = (window.screen.width - 10);
        h = (window.screen.height- 60);
        scrollb = 'no';

    l = (window.screen.width - (w + 10))/2;
    t = (window.screen.height - (h + 15 + 42))/2;
    settings = 'scrollbars=' + scrollb + ',resizable=no,status=no,menubar=no,width=' + w + ',height=' + h + ',left='
                 + l + ',top=' + t + ',screenX=' + l + ',screenY=' + t;
    win = window.open(page, 'popupfull_a', settings);
    win.focus();
    }

function popupleiras(page, w, h, scroll)
    {
    if (w == null)
        {
        w = 790;
        }

    if (h == null)
        {
        h = 540;
        }


    if (scroll == null)
        {
        scroll = 'yes';
        }

    l = (window.screen.width - (w + 10))/2;
    t = (window.screen.height - (h + 78))/2;
    settings = 'scrollbars=' + scroll + ',resizable=no,status=no,menubar=yes,width=' + w + ',height=' + h + ',left='+ l + ',top=' + t + ',screenX=' + l + ',screenY=' + t;
    win = window.open(page, 'popupleiras', settings);
    win.focus();
    } 


function popupleiras2(page, w, h, scroll)
    {
    if (w == null)
        {
        w = 790;
        }

    if (h == null)
        {
        h = 540;
        }


    if (scroll == null)
        {
        scroll = 'yes';
        }

    l = (window.screen.width - (w + 10))/2;
    t = (window.screen.height - (h + 78))/2;
    settings = 'scrollbars=' + scroll + ',resizable=no,status=no,menubar=yes,width=' + w + ',height=' + h + ',left='+ l + ',top=' + t + ',screenX=' + l + ',screenY=' + t;
    win = window.open(page, 'popupleiras2', settings);
    win.focus();
    } 