window.onresize = function winresize()
  {
  reposlayers();
  }
  
function reposlayers()
  {
 if (navigator.userAgent.indexOf('Opera') != -1)
    {
	if (document.body.className=="one")
	  document.body.className="two";
	else
	  document.body.className="one";
    //document.body.className += ''; // force opera and other browsers to reflow (refresh)
    }
  }
  
function popup(kep,scroll)
    {
      if (scroll==null) {scroll='no';}
      page='/favat/etelek/popup.php?kepfile='+kep+'&scroll='+scroll;
      w = 1;
      h = 1;
      l = 0;
      t = 0;
      settings = 'scrollbars=' + scroll + ',resizable=no,status=no,menubar=no,width=' + w + ',height=' + h + ',left='
                 + l + ',top=' + t + ',screenX=' + l + ',screenY=' + t;
      win = window.open(page, 'popup', settings);
      win.focus(); 
}

var win;

function popupleiras(page, scroll, w, h, name)
    {
    if (w == null)
        {
        w = 750;
        }

    if (h == null)
        {
        h = 500;
        }


    if (scroll == null)
        {
        scroll = 'no';
        }

    if (name == null)
        {
        name = 'popupleiras';
        }

    l = (window.screen.width - (w + 10))/2;
    t = (window.screen.height - (h + 55 + 62))/2;
    settings = 'scrollbars=no,resizable=yes,status=no,menubar=no,width=' + w + ',height=' + h + ',left='
                 + l + ',top=' + t + ',screenX=' + l + ',screenY=' + t;
    win = window.open(page, 'ambrozia', settings);
    win.focus();
    }
	