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 showpic(fname,x,y,cim)
 {
  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>" + cim + "</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 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 mutat(subject)
  {
  if(document.getElementById(subject).style.display=='none') { document.getElementById(subject).style.display='inline'; }
 }
 function rejt(subject)
  {
  if(document.getElementById(subject).style.display=='inline') { document.getElementById(subject).style.display='none'; }
 }

function load(url,place) {
 var req = null;
 if (window.XMLHttpRequest)
  req = new XMLHttpRequest()
 else
  if (window.ActiveXObject) req = new ActiveXObject("Microsoft.XMLHTTP");

 req.onreadystatechange = function() {
  if (req.readyState == 4)
   if (req.status == 200)
    document.getElementById(place).innerHTML = req.responseText;
   else
    document.getElementById(place).innerHTML = "AJAX error.";
 } 
 req.open("GET", url, true); 
 req.send(null);
}

function bookmark(){
    var title="Evelin Esküvői- és alkalmi ruhaszalon - Veszprém, Ajka"
    var url="http://www.ruhaszalon.hu.hu"

    if (window.sidebar) window.sidebar.addPanel(title, url,"");

    else if( window.opera && window.print )
    {
    var mbm = document.createElement('a');
    mbm.setAttribute('rel','sidebar');
    mbm.setAttribute('href',url);
    mbm.setAttribute('title',title);
    mbm.click();
    }

    else if( document.all ) window.external.AddFavorite( url, title);

}


