URL="http://www.ickentaur.hu/eng";
IURL="http://www.ickentaur.hu/index.html";

//URL="http://sompet/ick.hu/htdocs/eng";
//IURL="http://sompet/ick.hu/htdocs/index.html";

top.JUMPINGNUM=0;	//ha jumpolunk, nem tudunk közvetlen almenüpontra ugrani, mert még nem töltődött be!! ezért elmentjük a változóba és ha a változó nem üres akkor odaugrik az onload
top.JUMPINGGIF='';	

function jump(main,sub,gif) { 
	top.JUMPINGNUM=sub;
	top.JUMPINGGIF=gif;
	mainmenu_reset();
	mainmenu_active(main);
}

function mainmenu_click(actual) { 
	mainmenu_reset();
	mainmenu_active(actual);
}

function subloaded(submenunum,gif) { 	//ha betöltődött a submenuframe-ba a html akkor aktivaljuk az első menüpontot
	if (top.JUMPINGNUM!=0)	{	
		top.submenu.submenu_click(JUMPINGNUM,JUMPINGGIF);
		if (submenunum==6) { ext="php"; } else { ext="html"; }
		top.text.location=URL+"/"+submenunum+"/text"+JUMPINGNUM+"."+ext;	
		top.JUMPINGNUM=0; 
		top.JUMPINGGIF=0;
	}
	else	{
		top.submenu.submenu_click(1,gif);
	}
}

function mainmenu_reset() { 
	if (document.images) {
		for (var i=1; i<9; i+=1) {
			imgname="mainmenu"+i;
			imgsrc="images/menu/menu_0"+i+".gif";
			if (document[imgname])	{
				document[imgname].src = imgsrc;
			}
		}
	}
}

function mainmenu_active(actual) { 
	imgname="mainmenu"+actual;
	imgsrc="images/menu/menu_0"+actual+"_a.gif";
	if (document.images) {
			if (document[imgname])	{
				document[imgname].src = imgsrc;
			}
		}	
		
	if (actual==1)	{	top.location=IURL;	}
	else	 {		
		if (actual==6) { ext="php"; } else { ext="html"; }
		top.submenu.location=URL+"/"+actual+"/submenu.html";	
		top.text.location=URL+"/"+actual+"/text1."+ext;	
	}
	

}

function gfxchange(title,photo) { 	
		top.document["title"].src=title;
		top.document["photo"].src=photo;
}
		
