<!-- 
function addfav()
   {
   if (document.all)
      {
      window.external.AddFavorite("http://www.e-netro.ro","E-Netro Business Center Romania")
      }
   }

homeon = new Image();
homeon.src = "images/menu_1_on.gif";
homeoff = new Image();
homeoff.src = "images/menu_1_off.gif";
cegkaton = new Image();
cegkaton.src = "images/menu_2_on.gif";
cegkatoff = new Image();
cegkatoff.src = "images/menu_2_off.gif";
tevkaton = new Image();
tevkaton.src = "images/menu_3_on.gif";
tevkatoff = new Image();
tevkatoff.src = "images/menu_3_off.gif";
termkaton = new Image();
termkaton.src = "images/menu_4_on.gif";
termkatoff = new Image();
termkatoff.src = "images/menu_4_off.gif";
hnccegon = new Image();
hnccegon.src = "images/menu_5_on.gif";
hnccegoff = new Image();
hnccegoff.src = "images/menu_5_off.gif";
uzletion = new Image();
uzletion.src = "images/menu_6_on.gif";
uzletioff = new Image();
uzletioff.src = "images/menu_6_off.gif";
mgon = new Image();
mgon.src = "images/menu_7_on.gif";
mgoff = new Image();
mgoff.src = "images/menu_7_off.gif";
infoon = new Image();
infoon.src = "images/menu_8_on.gif";
infooff = new Image();
infooff.src = "images/menu_8_off.gif";
infocegon = new Image();
infocegon.src = "images/menu_9_on.gif";
infocegoff = new Image();
infocegoff.src = "images/menu_9_off.gif";
mediaon = new Image();
mediaon.src = "images/menu_10_on.gif";
mediaoff = new Image();
mediaoff.src = "images/menu_10_off.gif";
kapcson = new Image();
kapcson.src = "images/menu_11_on.gif";
kapcsoff = new Image();
kapcsoff.src = "images/menu_11_off.gif";
infonetroon = new Image();
infonetroon.src = "images/menu_12_on.gif";
infonetrooff = new Image();
infonetrooff.src = "images/menu_12_off.gif";
infohncon = new Image();
infohncon.src = "images/menu_13_on.gif";
infohncoff = new Image();
infohncoff.src = "images/menu_13_off.gif";
cegunkrolon = new Image();
cegunkrolon.src = "images/menu_14_on.gif";
cegunkroloff = new Image();
cegunkroloff.src = "images/menu_14_off.gif";
jelentkezeson = new Image();
jelentkezeson.src = "images/menu_15_on.gif";
jelentkezesoff = new Image();
jelentkezesoff.src = "images/menu_15_off.gif";
palyazaton = new Image();
palyazaton.src = "images/menu_16_on.gif";
palyazatoff = new Image();
palyazatoff.src = "images/menu_16_off.gif";
gazdasagion = new Image();
gazdasagion.src = "images/menu_17_on.gif";
gazdasagioff = new Image();
gazdasagioff.src = "images/menu_17_off.gif";
kozerdekuon = new Image();
kozerdekuon.src = "images/menu_18_on.gif";
kozerdekuoff = new Image();
kozerdekuoff.src = "images/menu_18_off.gif";
cibon = new Image();
cibon.src = "images/menu_19_on.gif";
ciboff = new Image();
ciboff.src = "images/menu_19_off.gif";
jatekon = new Image();
jatekon.src = "images/menu_20_on.gif";
jatekoff = new Image();
jatekoff.src = "images/menu_20_off.gif";
forumon = new Image();
forumon.src = "images/menu_21_on.gif";
forumoff = new Image();
forumoff.src = "images/menu_21_off.gif";
hasznoson = new Image();
hasznoson.src = "images/menu_22_on.gif";
hasznosoff = new Image();
hasznosoff.src = "images/menu_22_off.gif";
kozbeszon = new Image();
kozbeszon.src = "images/menu_23_on.gif";
kozbeszoff = new Image();
kozbeszoff.src = "images/menu_23_off.gif";


function img_act(imgName)
{
        imgOn = eval(imgName + "on.src");
        document [imgName].src = imgOn;
}

function img_inact(imgName) 
{
        imgOff = eval(imgName + "off.src");
        document[imgName].src = imgOff;
}

function NewPopupWindow(url, width, height)
{
	var open = window.open(url, 'wndpopup', 'width=' + width + ',height=' + height + ',menubar=no,status=no,location=no,scrollbars=yes, resizable=yes');
	open.moveTo((screen.availWidth - width) / 2, (screen.availHeight - height) / 2 + 10);
	open.focus();
}

function NewPopupWindow2(url, width, height)
{
	var open = window.open(url, 'wndpopup', 'width=' + width + ',height=' + height + ',menubar=no, status=no, location=no, scrollbars=no, resizable=no');
	open.moveTo((screen.availWidth - width) / 2, (screen.availHeight - height) / 2 + 10);
	open.focus();
}

var elementStatus = new Array();

function xGetElementById(e)
{
  if (typeof(e) != 'string') return e;
  if (document.getElementById) e = document.getElementById(e);
  else if (document.all) e = document.all[e];
  else e = null;
  return e;
}

function NIW(img, width, height)
{
	var url = "img_viewer.php?img=" + img;
	var name = 'img_window';
	var left = (screen.availWidth - width) / 2;
	var top = (screen.availHeight - height) / 2;
	var open = window.open(url, name, 'left=' + left + ',top=' + top + ',width=' + width + ',height=' + height + ',menubar=no,status=no,location=no,resizable=no');
	open.focus();
}

function hideElement(e)
{
	var element = xGetElementById(e);
	element.style.display = "none";
}

function showElement(e)
{
	var element = xGetElementById(e);
	element.style.display = "block";
}

function switchElement(e)
{
	if (!elementStatus[e])
	{
		elementStatus[e] = "hide";
	}
	if (elementStatus[e] == "show")
	{
		elementStatus[e] = "hide";
		hideElement(e);
	}
	else
	{
		elementStatus[e] = "show";
		showElement(e);
	}
}

// -- End -->

