var active="m0";
var links=Array("home.html","csomagok.php","rendeles.html","pontok.html","kolcsonzes.html","jotanacs.html","kilenchonap.html","kalkulator.html","kapcsolat.html","kosar.php");
function on(object)
{
	if(object.id!=active)object.style.color = "#ee8913";
}
function out(object)
{
	if(object.id!=active)object.style.color = "#ee2480";
}
function activate(object)
{
	if(object.id!=active)
	{
		object.style.color = "#ee8913";
		getelem(active).style.color = "#ee2480";
		active = object.id;
		num=object.id.substring(1);
		getelem("content").src="content/"+links[num];
	}
}
function activateparent(object)
{
	if(object.id!=parent.active)
	{
		object.style.color = "#ee8913";
		getparentelem(parent.active).style.color = "#ee2480";
		parent.active = object.id;
		num=object.id.substring(1);
		getparentelem("content").src="content/"+links[num];
	}
}
function getelem(id)
{
	if(document.layers)
	{
		return document.layers[id];
	}
	else if(document.all && !document.getElementById)
	{
		return document.all[id];
	}
	else if(document.getElementById)
	{
		return document.getElementById(id);
	}
	else
	{
		document.write("Please, use a dhtml browser! -- Használj dhtml browsert!");
	}
}

function getparentelem(id)
{
	if(document.layers)
	{
		return top.parent.document.layers[id];
	}
	else if(document.all && !document.getElementById)
	{
		return top.parent.document.all[id];
	}
	else if(document.getElementById)
	{
		return top.parent.document.getElementById(id);
	}
	else
	{
		document.write("Please, use a dhtml browser! -- Használj dhtml browsert!");
	}
}
