document.writeln("<LINK REL=stylesheet TYPE=text/css HREF=../style.css>");

function LinkActive(status_text, id, up) {
	if (!up) up=""; else up="../";
	if (id) {
		image=up + "graphics/active/" + id + ".gif";
		g=document.getElementById(id);
		g.src=image;
	}
	window.status=status_text;
}

function LinkPassive(id, up) {
	if (!up) up=""; else up="../";
	if (id) {
		image=up + "graphics/" + id + ".gif";
		g=document.getElementById(id);
		g.src=image;
	}
	window.status="";
}

function MenuStatusText(id) {
	language=window.location.pathname.split("/");
	if (language[1]=="hungarian") {
		switch (id) {
			case "about": status_text="Magunkról"; break;
			case "coaching": status_text="A coaching"; break;
			case "secret": status_text="A gyors siker titka"; break;
			case "references": status_text="Referenciák"; break;
			case "publications": status_text="Cikkek"; break;
			case "contact": status_text="Kapcsolat"; break;
			case "success": status_text="A gyors siker titka"; break;
			case "possibility": status_text="A lehetőség bennünk van"; break;
			case "performance": status_text="Megnövekedett teljesítmények"; break;
			case "process": status_text="A coaching folyamata"; break;
			default: status_text="";
		}
	} else {
		switch (id) {
			case "about": status_text="About Us"; break;
			case "coaching": status_text="The Coaching"; break;
			case "secret": status_text="The Secret of Quick Success"; break;
			case "references": status_text="References"; break;
			case "publications": status_text="Publications"; break;
			case "contact": status_text="Contact Us"; break;
			case "success": status_text="The Secret of Quick Success"; break;
			case "possibility": status_text="We Have the Possibility Within Ourselves"; break;
			case "performance": status_text="Increased Performance"; break;
			case "process": status_text="The Process of Coaching"; break;
			default: status_text="";
		}
	}
	return status_text;
}

function MenuActive(pagetype, id) {
	if (pagetype=="secret") {
		pagesubtype=window.location.pathname.split("_");
		pagesubtype=pagesubtype[2];
		pagesubtype=pagesubtype.split(".");
		pagesubtype=pagesubtype[0];
		image="graphics/active/subtitle_" + pagesubtype + "_" + id + ".gif";
	} else {
		image="graphics/active/" + pagetype + "_button_" + id + ".gif";
	}
	g=document.getElementById(id);
	g.src=image;
	window.status=MenuStatusText(id);
}

function MenuPassive(pagetype, id) {
	if (pagetype=="secret") {
		pagesubtype=window.location.pathname.split("_");
		pagesubtype=pagesubtype[2];
		pagesubtype=pagesubtype.split(".");
		pagesubtype=pagesubtype[0];
		image="graphics/subtitle_" + pagesubtype + "_" + id + ".gif";
	} else {
		image="graphics/" + pagetype + "_button_" + id + ".gif";
	}
	g=document.getElementById(id);
	g.src=image;
	window.status="";
}

function EMail(string) {
	alphabet = new Array("@", " ", ".", "!", "-", "_", "&#34;", "<", ">", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "á", "b", "c", "d", "e", "é", "f", "g", "h", "i", "í", "j", "k", "l", "m", "n", "o", "ó", "ö", "ő", "p", "q", "r", "s", "t", "u", "ú", "ü", "ű", "v", "w", "x", "y", "z", "A", "Á", "B", "C", "D", "E", "É", "F", "G", "H", "I", "Í", "J", "K", "L", "M", "N", "O", "Ó", "Ö", "Ő", "P", "Q", "R", "S", "T", "U", "Ú", "Ü", "Ű", "V", "W", "X", "Y", "Z");
	email_array=string.split("#");
	email="";
	for (i=0; i<email_array.length; i++) {
		j=email_array[i];
		email+=alphabet[j];
	}
	return email;
}
