/* Menuk megjelenitese / eltuntetese */ 
function on1(){$('submenu1').setStyle('display', 'block');}
function off1(){$('submenu1').setStyle('display', 'none');}
function on2(){$('submenu2').setStyle('display', 'block');}
function off2(){$('submenu2').setStyle('display', 'none');}
function on3(){$('submenu3').setStyle('display', 'block');}
function off3(){$('submenu3').setStyle('display', 'none');}
function on4(){$('submenu4').setStyle('display', 'block');}
function off4(){$('submenu4').setStyle('display', 'none');}
function on5(){$('submenu5').setStyle('display', 'block');}
function off5(){$('submenu5').setStyle('display', 'none');}


/* Gombok onMouse glow-ja */ 
function m11on(){document.getElementById('m1-1').src = 'images/buttons/m1-1_on.jpg';}
function m11off(){document.getElementById('m1-1').src = 'images/buttons/m1-1.jpg';}
function m12on(){document.getElementById('m1-2').src = 'images/buttons/m1-2_on.jpg';}
function m12off(){document.getElementById('m1-2').src = 'images/buttons/m1-2.jpg';}
function m13on(){document.getElementById('m1-3').src = 'images/buttons/m1-3_on.jpg';}
function m13off(){document.getElementById('m1-3').src = 'images/buttons/m1-3.jpg';}
function m21on(){document.getElementById('m2-1').src = 'images/buttons/m2-1_on.jpg';}
function m21off(){document.getElementById('m2-1').src = 'images/buttons/m2-1.jpg';}
function m22on(){document.getElementById('m2-2').src = 'images/buttons/m2-2_on.jpg';}
function m22off(){document.getElementById('m2-2').src = 'images/buttons/m2-2.jpg';}
function m31on(){document.getElementById('m3-1').src = 'images/buttons/m3-1_on.jpg';}
function m31off(){document.getElementById('m3-1').src = 'images/buttons/m3-1.jpg';}
function m32on(){document.getElementById('m3-2').src = 'images/buttons/m3-2_on.jpg';}
function m32off(){document.getElementById('m3-2').src = 'images/buttons/m3-2.jpg';}
function m33on(){document.getElementById('m3-3').src = 'images/buttons/m3-3_on.jpg';}
function m33off(){document.getElementById('m3-3').src = 'images/buttons/m3-3.jpg';}
function m41on(){document.getElementById('m4-1').src = 'images/buttons/m4-1_on.jpg';}
function m41off(){document.getElementById('m4-1').src = 'images/buttons/m4-1.jpg';}
function m42on(){document.getElementById('m4-2').src = 'images/buttons/m4-2_on.jpg';}
function m42off(){document.getElementById('m4-2').src = 'images/buttons/m4-2.jpg';}
function m43on(){document.getElementById('m4-3').src = 'images/buttons/m4-3_on.jpg';}
function m43off(){document.getElementById('m4-3').src = 'images/buttons/m4-3.jpg';}
function m51on(){document.getElementById('m5-1').src = 'images/buttons/m5-1_on.jpg';}
function m51off(){document.getElementById('m5-1').src = 'images/buttons/m5-1.jpg';}
function m52on(){document.getElementById('m5-2').src = 'images/buttons/m5-2_on.jpg';}
function m52off(){document.getElementById('m5-2').src = 'images/buttons/m5-2.jpg';}
function m53on(){document.getElementById('m5-3').src = 'images/buttons/m5-3_on.jpg';}
function m53off(){document.getElementById('m5-3').src = 'images/buttons/m5-3.jpg';}

/* Fejlécgombok onMouse szinvaltasa */ 
function mh1on(){document.getElementById('menuhead1').src = 'images/buttons/menu1_on.jpg';}
function mh1off(){document.getElementById('menuhead1').src = 'images/buttons/menu1.jpg';}
function mh2on(){document.getElementById('menuhead2').src = 'images/buttons/menu2_on.jpg';}
function mh2off(){document.getElementById('menuhead2').src = 'images/buttons/menu2.jpg';}
function mh3on(){document.getElementById('menuhead3').src = 'images/buttons/menu3_on.jpg';}
function mh3off(){document.getElementById('menuhead3').src = 'images/buttons/menu3.jpg';}
function mh4on(){document.getElementById('menuhead4').src = 'images/buttons/menu4_on.jpg';}
function mh4off(){document.getElementById('menuhead4').src = 'images/buttons/menu4.jpg';}
function mh5on(){document.getElementById('menuhead5').src = 'images/buttons/menu5_on.jpg';}
function mh5off(){document.getElementById('menuhead5').src = 'images/buttons/menu5.jpg';}
function mh6on(){document.getElementById('menuhead6').src = 'images/buttons/menu6_on.jpg';}
function mh6off(){document.getElementById('menuhead6').src = 'images/buttons/menu6.jpg';}
function mh7on(){document.getElementById('menuhead7').src = 'images/buttons/menu7_on.jpg';}
function mh7off(){document.getElementById('menuhead7').src = 'images/buttons/menu7.jpg';}


/* Linkek */
function go01() {window.location.href = 'szolg_kov.html';}		/* Kovetkezo szolgalatok */
function go02() {window.location.href = 'szolg_mult.html';}		/* Elmult szolgalatok */
function go03() {window.location.href = 'index.html';}			/* Hirek = index */
function go04() {window.location.href = 'szovetseg.html';}		/* A zenekar */
function go05() {window.location.href = 'tagok.html';}			/* Tagok */
function go06() {window.location.href = 'szolg_gyermek.html';}	/* Szolgálatok gyermekeknek */
function go07() {window.location.href = 'szolg_fiatal.html';}	/* Szolgálatok fiataloknak */
function go08() {window.location.href = 'szolg_gyuli.html';}	/* Szolgálatok gyulekezetunkben */
function go09() {window.location.href = 'feltolt.html';}		/* Feltoltekezes */
function go10() {window.location.href = 'extrak.html';}			/* Extrak*/
function go11() {window.location.href = 'lemez_csn.html';}		/* Lemez / CSN */
function go12() {window.location.href = 'lemez_oiv.html';}		/* Lemez / OIV */
function go13() {window.location.href = 'lemez_rendeles.php';}	/* Lemez / Rendeles */
function go14() {window.location.href = 'elerhetoseg.html';}	/* Elerhetoseg */
function go15() {window.location.href = 'tamogatas.html';}		/* Tamogatas */
function go16() {window.location.href = 'koszonet.html';}		/* Koszonet */

/* Default ugras ha van almenu is */
function go17() {window.location.href = 'index.html';}			/* Ajanlo fogomb */
function go18() {window.location.href = 'szovetseg.html';}		/* Magunkrol fogomb */
function go19() {window.location.href = 'szolg.html';}			/* ! Szolgalatok fogomb */
function go20() {window.location.href = 'lemez.php';}			/* ! Lemez fogomb */
function go21() {window.location.href = 'elerhetoseg.html';}	/* Kapcsolat fogomb */


function init(){

/* Menuk megjelenitese / eltuntetese */ 
$('menu1').addEvent('mouseenter',on1);
$('menu1').addEvent('mouseleave',off1);

$('menu2').addEvent('mouseenter',on2);
$('menu2').addEvent('mouseleave',off2);

$('menu3').addEvent('mouseenter',on3);
$('menu3').addEvent('mouseleave',off3);

$('menu6').addEvent('mouseenter',on4);
$('menu6').addEvent('mouseleave',off4);

$('menu7').addEvent('mouseenter',on5);
$('menu7').addEvent('mouseleave',off5);


/* Gombok onMouse glow-ja */
$('menuhead1').addEvent('mouseenter',mh1on);
$('menu1').addEvent('mouseleave',mh1off);

$('menuhead2').addEvent('mouseenter',mh2on);
$('menu2').addEvent('mouseleave',mh2off);

$('menuhead3').addEvent('mouseenter',mh3on);
$('menu3').addEvent('mouseleave',mh3off);

$('menuhead4').addEvent('mouseenter',mh4on);
$('menuhead4').addEvent('mouseleave',mh4off);

$('menuhead5').addEvent('mouseenter',mh5on);
$('menuhead5').addEvent('mouseleave',mh5off);

$('menuhead6').addEvent('mouseenter',mh6on);
$('menu6').addEvent('mouseleave',mh6off);

$('menuhead7').addEvent('mouseenter',mh7on);
$('menu7').addEvent('mouseleave',mh7off);


/* Fejlécgombok onMouse szinvaltasa */
$('m1-1').addEvent('mouseenter',m11on);
$('m1-1').addEvent('mouseleave',m11off);

$('m1-2').addEvent('mouseenter',m12on);
$('m1-2').addEvent('mouseleave',m12off);

$('m1-3').addEvent('mouseenter',m13on);
$('m1-3').addEvent('mouseleave',m13off);

$('m2-1').addEvent('mouseenter',m21on);
$('m2-1').addEvent('mouseleave',m21off);

$('m2-2').addEvent('mouseenter',m22on);
$('m2-2').addEvent('mouseleave',m22off);

$('m3-1').addEvent('mouseenter',m31on);
$('m3-1').addEvent('mouseleave',m31off);

$('m3-2').addEvent('mouseenter',m32on);
$('m3-2').addEvent('mouseleave',m32off);

$('m3-3').addEvent('mouseenter',m33on);
$('m3-3').addEvent('mouseleave',m33off);

$('m4-1').addEvent('mouseenter',m41on);
$('m4-1').addEvent('mouseleave',m41off);

$('m4-2').addEvent('mouseenter',m42on);
$('m4-2').addEvent('mouseleave',m42off);

$('m4-3').addEvent('mouseenter',m43on);
$('m4-3').addEvent('mouseleave',m43off);

$('m5-1').addEvent('mouseenter',m51on);
$('m5-1').addEvent('mouseleave',m51off);

$('m5-2').addEvent('mouseenter',m52on);
$('m5-2').addEvent('mouseleave',m52off);

$('m5-3').addEvent('mouseenter',m53on);
$('m5-3').addEvent('mouseleave',m53off);

/* Linkek */
$('m1-1').addEvent('click',go01);
$('m1-2').addEvent('click',go02);
$('m1-3').addEvent('click',go03);
$('m2-1').addEvent('click',go04);
$('m2-2').addEvent('click',go05);
$('m3-1').addEvent('click',go06);
$('m3-2').addEvent('click',go07);
$('m3-3').addEvent('click',go08);
$('menu4').addEvent('click',go09);
$('menu5').addEvent('click',go10);
$('m4-1').addEvent('click',go11);
$('m4-2').addEvent('click',go12);
$('m4-3').addEvent('click',go13);
$('m5-1').addEvent('click',go14);
$('m5-2').addEvent('click',go15);
$('m5-3').addEvent('click',go16);

/* Ahol almenu is van (link) */
$('menuhead1').addEvent('click',go17);
$('menuhead2').addEvent('click',go18);
$('menuhead3').addEvent('click',go19);
$('menuhead6').addEvent('click',go20);
$('menuhead7').addEvent('click',go21);
}
