// JavaScript Document
function menu_aktiv_on(id)
{
  var row = document.getElementById(id);
	row.style.background = '#328ce6';
	row.style.color = '#ffffff';
	row.style.cursor='hand';
	}
	
function menu_aktiv_out(id)
{
 var row = document.getElementById(id);
	row.style.background = '#eff1ec';
	row.style.color = '';
	row.style.cursor='';
	}	

function window_open(url_address,window_width,window_height,framename) {
  sx = (screen.availWidth - window_width) / 2;
  sy = (screen.availHeight - window_height) / 2;
  params = "width="+window_width+",height="+window_height+",Left="+sx+",Top="+sy+",screenX="+sx+",screenY="+sy;
  additional = 'resizable=no,controls=yes,menubar=no,toolbar=no,scrollbars=no';
  params += "," + additional;
  nw = window.open(url_address, framename, params);
  nw.document.open();
  nw.document.write("<html><head><title>Acoustic Center - Képek</title></head>\n");
  nw.document.write("<body marginwidth='0' marginheight='0' topmargin='0' leftmargin='0'>\n");
  nw.document.write("<center><img src='"+url_address+"' alt='Képek'></center>\n");
  nw.document.write("</body>\n");
  nw.document.write("</html>\n");
  nw.document.close();
  nw.focus();
}	

function window_open_(url_address,window_width,window_height,framename) {
  sx = (screen.availWidth - window_width) / 2;
  sy = (screen.availHeight - window_height) / 2;
  params = "width="+window_width+",height="+window_height+",Left="+sx+",Top="+sy+",screenX="+sx+",screenY="+sy;
  additional = 'resizable=yes,controls=yes,menubar=no,toolbar=no,scrollbars=yes';
  params += "," + additional;
  nw = window.open(url_address, framename, params);
  nw.document.open();
  nw.document.write("<html><head><title>Acoustic Center - Képek</title></head>\n");
  nw.document.write("<body marginwidth='0' marginheight='0' topmargin='0' leftmargin='0'>\n");
  nw.document.write("<center><img src='"+url_address+"' alt='Képek'></center>\n");
  nw.document.write("</body>\n");
  nw.document.write("</html>\n");
  nw.document.close();
  nw.focus();
}	