function pageload(page) {

	switch(page)
	{
	case "menu1": window.location="http://www.omen.hu/index.php"; break;
	case "menu2": window.location="http://www.omen.hu/biografia.php"; break;
	case "menu3": window.location="http://www.omen.hu/diszkografia.php"; break;
	case "menu4": window.location="http://www.omen.hu/koncert.php"; break;
	case "menu5": window.location="http://www.omen.hu/gallery.php"; break;
	case "menu6": window.location="http://www.omen.hu/extrak.php"; break;
	case "menu7": window.location="http://www.omen.hu/forum.php"; break;
    case "menu8": window.location="http://www.darkshop.hu/omen/ds_index.jsp"; break;
	case "menu9": window.location="http://www.omen.hu/linkek.php"; break;
	case "menu10": window.location="http://www.omen.hu/kapcsolat.php"; break;
	default: window.location="http://www.omen.hu/index.php"; break;
	}
}

function menuchange(token) {
	var str_mn = document.getElementById(token).src;
	if (str_mn.match("-on") == null) {document.getElementById(token).src = str_mn.replace("-off","-on");}
	if (str_mn.match("-off") == null) {document.getElementById(token).src = str_mn.replace("-on","-off");}
}

function showkoncert(which) {
	if (document.getElementById(which).className == "koncert-content1") {
			document.getElementById(which).className = "koncert-content2";
			document.getElementById(which+"-reszletek").src = "http://www.omen.hu/images/site/reszletek-becsuk.jpg";
		}
	else {
			document.getElementById(which).className = "koncert-content1";
			document.getElementById(which+"-reszletek").src = "http://www.omen.hu/images/site/reszletek-kinyit.jpg";
		}
	bottom();
}

function showdalszoveg1(which) {
	document.getElementById(which).className = "dalszoveg2";
	bottom();document.location = "#" + which;
}

function showdalszoveg2(which) {
	document.getElementById(which).className = "dalszoveg1";
	bottom();
}

function bottom() {
	document.getElementById('bottomback').style.top = (document.getElementById('container').offsetHeight+88)+"px";
	document.getElementById('bottomback').style.zIndex = 1;
}

function domp3(trackid) {
	var mptext11  = "<object type=\"application/x-shockwave-flash\" width=\"170\" height=\"15\" data=\"mp3/mp3player.swf?autoplay=true&track_index="
	var mptext12 = "\" align=\"middle\">";
	var mptext21 = "<param name=\"movie\" value=\"mp3/mp3player.swf?autoplay=true&track_index=";
	var mptext22 ="\" width=\"170\" height=\"15\" />";
	var mptext3  = "</object>";
	document.getElementById('mp3layer').innerHTML = mptext11 + trackid + mptext12 + mptext21 + trackid + mptext22 + mptext3;
}
