var button_b='<img id=m1 width=50px height=50px src=\'images/menu_gombok/base.gif\'>';
var button_h='<img id=m1 width=50px height=50px src=\'images/menu_gombok/highlighted.gif\'>';
var button_a='<img id=m1 width=50px height=50px src=\'images/menu_gombok/active.gif\'>';

var mvtext=new Array('Muzsikavarázs','<span style="color: #ff0000">Nyári szünet</span>')
var mvi=0;

var actualink=0

function Pop(srchtml)
{
startDate=new Date();
html=window.open(srchtml,startDate.getTime(),"toolbar=no,location=no,resizable=no,status=no,scrollbars=yes,menubar=no,width=600,height=400,left="+((screen.width/100)*50-340)+",top="+((screen.height/100)*50-260));
}

function PopF(srchtml)
{
startDate=new Date();
html=window.open(srchtml,startDate.getTime(),"toolbar=no,location=no,resizable=yes,status=no,scrollbars=yes,menubar=no,width=650,height=400,left="+((screen.width/100)*50-340)+",top="+((screen.height/100)*50-260));
}

var IE = document.all?true:false;
if (!IE) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = getMouseXY;

var tempX = 0;
var tempY = 0;

function getMouseXY(e) {
if (IE) { // grab the x-y pos.s if browser is IE
	tempX = event.clientX + document.body.scrollLeft;
	tempY = event.clientY + document.body.scrollTop;
}
else {  // grab the x-y pos.s if browser is NS
	tempX = e.pageX;
	tempY = e.pageY;
}  
if (tempX < 0){tempX = 0;}
if (tempY < 0){tempY = 0;}  
return true;
}

function MM_findObj(n, d) { //v4.0
	var p,i,x;
	if(!d) d=document;
	if((p=n.indexOf("?"))>0&&parent.frames.length) {
		d=parent.frames[n.substring(p+1)].document;
		n=n.substring(0,p);
	}
	if(!(x=d[n])&&d.all)
		x=d.all[n];
	for (i=0;!x&&i<d.forms.length;i++)
		x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++)
		x=MM_findObj(n,d.layers[i].document);
	if(!x && document.getElementById)
		x=document.getElementById(n);

	return x;
}

function ToggleLayers(laynam,xcoord,ycoord,forcehide) {
	obj=document.getElementById(laynam);
	if (obj.style){
		obj=obj.style; 
		v=obj.visibility;
		v=(v=='visible')?'hidden':'visible';
		if (forcehide==1)
			v='hidden';
		obj.top=ycoord;
		obj.left=xcoord;
	}
    obj.visibility=v;
}
	

function muzsikavarazs(){
	mvi=(mvi)?0:1
	MM_findObj('menutext8').innerHTML=mvtext[mvi];
	setTimeout('muzsikavarazs()',3000);
}

function init()
	{
//	obj=MM_findObj('maincontent').style;
//	setTimeout('muzsikavarazs()',2000);
	}

