ie4 = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ))
ns4 = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4 ))

var IE=document.all?1:0;

if (IE) {
        layerRef="document.all";
        styleRef=".style";
       }
       else
       {
       layerRef="document.layers";
       styleRef="";
      }

var t_id = setInterval(animate,20);
var pos=0;
var dir=2;
var len=0;

function animate()
{
var elem = document.getElementById('progress');
if(elem != null) {
if (pos==0) len += dir;
if (len>32 || pos>79) pos += dir;
if (pos>79) len -= dir;
if (pos>79 && len==0) pos=0;
elem.style.left = pos;
elem.style.width = len;
}
}

function remove_loading() {
this.clearInterval(t_id);
var targelem = document.getElementById('loader_container');
targelem.style.display='none';
targelem.style.visibility='hidden';
var t_id = setInterval(animate,60);
}

function showpic(fname,x,y)
 {
  nwindow = window.open("","newwin","width="+ x +",height="+ y +",Status=no,menubar=no,scrollbars=no,alwaysRaised=yes");
  nwindow.document.open();
  nwindow.document.write("<HTML> <HEAD>");
  nwindow.document.write("<TITLE>Bezár: klikk a képre &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </TITLE>");
  nwindow.document.write("</HEAD>");
  nwindow.document.write("<BODY bgcolor='#FFFFFF' link='white' leftmargin='0' topmargin='0' rightmargin='0' bottommargin='0' marginheight='0' marginwidth='0'>");
  nwindow.document.write("<table cellpadding='0' cellspacing='0' border='0' width='"+ x +"' height='" + y +"'>");
  nwindow.document.write("<tr><td>");
  nwindow.document.write(" <a href='javascript:close()'><img src='" + fname +"' border='0'> ");
  nwindow.document.write("</a></td></tr>");
  nwindow.document.write("</table></BODY></HTML>");
  nwindow.document.close();
 }
 
 function mutat(subject)
  {
  if(document.getElementById(subject).style.display=='none') { document.getElementById(subject).style.display=''; }
 }
 function rejt(subject)
  {
  if(document.getElementById(subject).style.display=='') { document.getElementById(subject).style.display='none'; }
 }
 
 
