// defintions.js 10-05-2009

function loadFile(strFile,strName) {
	parent.opener.strName = strName;
	window.location = strFile + ".html"
} // end of function

function displayTitle() {
	var strTitle = "";
	strFile = parent.opener.strName;
	for (var cnt1 = 0; cnt1 < rayNames.length; cnt1++) {
		if (rayNames[cnt1].toLowerCase() == strFile.toLowerCase()) {
			strTitle += "<span class='bgld'>&nbsp;" + rayNames[cnt1] + "&nbsp;</span>";
		} else {
			strTitle += "<span class='b'>" + rayNames[cnt1] + "</span>";
		}
		if (cnt1 < rayNames.length - 1) {
			strTitle += " - "
		}
	}
	parent.opener.strName = "";
	return strTitle;
} // end of function

function footnoteLayer() {
	var strLyr = "<div id='idFNLyr' style='position:absolute; left:20px; top:100px; height:20px; width:570px; z-index:1; visibility:hidden'></div>";
	return strLyr;
} // end of function

var strLinkGood = "link good as of: 11-11-2007";
var strLinkFailed = "link failed as of: 11-11-2007";

function fN(strID) {
	var strFootNote = "";
	var strOpen = "<table border='0' bgcolor='#843921' cellpadding='5' cellspacing='0' width='570'>";
	strOpen += "<tr><td align='right' class='tan' valign='top'>";
	strOpen += "<a href='javascript: fN(\"hide\")' class='atan'>close</a></td></tr>";
	strOpen += "<tr><td align='left' class='tan' valign='top'>";
	var strClose = "</td></tr></table>";
	showLayer("idFNLyr");
	switch(strID) {
		case "hide":
			strOpen = "";
			strFootNote ="";
			strClose = "";
			hideLayer("idFNLyr");
			break;
		case "1":
			strFootNote ="<span class='btan'>Forests of the Vampire:</span> Slavic Myth<br>Authors: Charles Phillips, Michael Kerrigan<br>Time-Life 'Myth and Mankind' series<br>ISBN: 0-7054-3616-6";
			break;
		case "2":
			strFootNote ="<span class='btan'>New Larousse Encyclopedia of Mythology</span><br>Slavonic Mythology<br>LCCC: 68-57758";
			break;
		case "3":
			strFootNote ="<a href='http://web.raex.com/~obsidian/SlavPan.html' class='atan' target='_blank'>http://web.raex.com/~obsidian/SlavPan.html</a><br>Slavic & Eurasian Pantheons<br>Site Owner: Bruce R. Gordon<br>" + strLinkGood;
			break;
		case "4":
			strFootNote ="http://www.okana.net and http://www.okana.org/page.html<br>Okana's Web &#8211; Slavic Spirits link<br>Site Owner: Denice Szafran<br>" + strLinkFailed;
			break;
		case "5":
			strFootNote ="<a href='http://members.aol.com/hpsofsnert/index.html' class='atan' target='_blank'>http://members.aol.com/hpsofsnert/index.html</a><br>Slavic Paganism & Witchcraft<br>Site Owner: Ainsley Friedberg<br>" + strLinkGood;
			break;
		case "6":
			strFootNote ="<a href='http://www.geocities.com/cas111jd/slavs/index.htm' class='atan' target='_blank'>http://www.geocities.com/cas111jd/slavs/index.htm</a><br>Slavic Home Page<br>Site Owner: Jeff Day<br>" + strLinkFailed + "<br><br><span class='btan'>Note:</span> currently referencing a copy of the old web site&#8212;made for reseach purposes&#8212;under the fair usage section of the copyright statute.";
			break;
		case "7":
			strFootNote ="<span class='btan'>The Slavs:</span> Ancient Peoples and Places, Vol. 74.<br>Author: Marija Gimbutas<br>Praeger Publishing<br>LCCC: 73-121074";
			break;
		case "8":
			strFootNote ="<span class='btan'>Funk & Wagnalls Standard Dictionary of Folklore, Mythology, & Legend</span><br>&#8211; Slavic Mythology<br>Author: Roman Jakobson<br>ISBN 0-308-40090-9";
			break;
		case "9":
			strFootNote ="<a href='http://www.florilegium.org/files/CULTURES/Rus-Handbook-art.html' class='atan' target='_blank'>http://www.florilegium.org/files/CULTURES/Rus-Handbook-art.html</a><br>The Rus' Handbook<br>Author: Susan Carroll-Clark<br>Society for Creative Anacronism<br>" + strLinkGood;
			break;
		case "10":
			strFootNote ="<a href='http://www.winterscapes.com/slavic.htm' class='atan' target='_blank'>http://www.winterscapes.com/slavic.htm</a><br>Moist Mother Earth &#8211; Slavic Myth & Religion<br>Site Owner: Sarah Kate Istra Winter<br>" + strLinkGood;
			break;
		case "11":
			strFootNote ="<a href='http://free.bol.bg/slavpagan/home.html' class='atan' target='_blank'>http://free.bol.bg/slavpagan/home.html</a><br>Slavic Fire<br>Site Owner: Georgi Mihov<br>" + strLinkFailed + "<br><br><span class='btan'>Note:</span> occasionally references the <a href='http://www.omda.bg/engl/history/mistificacia.html' class='atan' target='_blank'>Veda Slovena</a><br>the authenticity of which has neither been proved nor disproved<br>" + strLinkGood;
			break;
		case "12":
			strFootNote ="<a href='http://www.pantheon.org/articles/b/baba_yaga.html' class='atan' target='_blank'>http://www.pantheon.org/articles/b/baba_yaga.html</a><br>Author: Micha F. Lindemans<br>" + strLinkGood + "<br><a href='http://www.pantheon.org/articles/b/bannik.html' class='atan' target='_blank'>http://www.pantheon.org/articles/b/bannik.html</a><br>Author: John McCannon<br>" +strLinkGood + "<br><a href='http://www.pantheon.org/articles/c/crnobog.html' class='atan' target='_blank'>http://www.pantheon.org/articles/c/crnobog.html</a><br>Author: Micha F. Lindemans<br>" + strLinkGood + "<br><a href='http://www.pantheon.org/articles/o/ovinnik.html' class='atan' target='_blank'>http://www.pantheon.org/articles/o/ovinnik.html</a><br>Author: John McCannon<br>" + strLinkGood + "<br><a href='http://www.pantheon.org/articles/r/rusalka.html' class='atan' target='_blank'>http://www.pantheon.org/articles/r/rusalka.html</a><br>Author: Micha F. Lindemans<br>" + strLinkGood + "<br><a href='http://www.pantheon.org/articles/z/zaltys.html' class='atan' target='_blank'>http://www.pantheon.org/articles/z/zaltys.html</a><br>Author: Micha F. Lindemans<br>" + strLinkGood;
			break;
		case "13":
			strFootNote ="<a href='http://www.russian-crafts.com/customs/russian-spirits.html' class='atan' target='_blank'>http://www.russian-crafts.com/customs/russian-spirits.html</a><br>Russian Crafts<br>Site Owner: Terletski Mikhail<br>" + strLinkGood;
			break;
		case "14":
			strFootNote ="<span class='btan'>The Book of Goddesses & Heroines</span><br>Author: Pat Monaghan<br>Llewellyn Publications<br>ISBN: 1-56718-465-0";
			break;
		case "15":
			strFootNote ="<a href='http://clover.slavic.pitt.edu/~tales/' class='atan' target='_blank'>http://clover.slavic.pitt.edu/~tales/</a><br>Russian Fairy Tales (RUSS 0090)<br>Author: David J. Birnbaum<br>" + strLinkGood;
			break;
		case "16":
			strFootNote ="<a href='http://lomeray13.webpark.pl/pantheon.html' class='atan' target='_blank'>http://lomeray13.webpark.pl/pantheon.html</a><br>Polish Language site &#8211; Slavic mythology (in English)<br>Site Owner: Lomeray Zywia<br>" + strLinkGood;
			break;
		case "17":
			strFootNote ="<a href='http://greek-gods.tripod.com/Slavic.htm' class='atan' target='_blank'>http://greek-gods.tripod.com/Slavic.htm</a><br>Slavic Mythological Images<br>Site Owner: Alex Fantalov<br>" + strLinkGood;
			break;
		case "18":
			strFootNote ="<a href='http://www.mythicarts.com/writing/index.htm' class='atan' target='_blank'>http://www.mythicarts.com/writing/index.htm</a><br>Baba Yaga's Hut: Initiatory Entrance the Underworld<br>Site Owner: Laura Strong<br>" + strLinkGood;
			break;
		case "19":
			strFootNote ="<a href='http://www.vedmi.com/slavictradition.html' class='atan' target='_blank'>http://www.vedmi.com/slavictradition.html</a><br>Russian Paganism<br>Site Owner: Serguei Plonski<br>" + strLinkFailed + "<br><br><span class='btan'>Note:</span> occasionally references the <a href='http://en.wikipedia.org/wiki/Book_of_Veles' class='atan' target='_blank'>Book of Veles</a><br>the authenticity of which has neither been proved nor disproved<br>" + strLinkGood;
			break;
		case "20":
			strFootNote ="<a href='http://www.mythopedia.info/16-slavs.htm' class='atan' target='_blank'>http://www.mythopedia.info/16-slavs.htm</a><br>Mythaeum: An Archetypal Encyclopedia of Myth: Slavs<br>Site Owner: Marinus Anthony van der Sluijs<br>" + strLinkFailed;
			break;
		case "21":
			strFootNote ="<a href='http://www.slavjanskij.boom.ru/Stranicaangl.htm' class='atan' target='_blank'>http://www.slavjanskij.boom.ru/Stranicaangl.htm</a><br>Slavic Pagan community of Estonia<br>" + strLinkFailed + "<br><br><span class='btan'>Note:</span> currently referencing a copy of the old English language web site&#8212;made for reseach purposes&#8212;under the fair usage section of the copyright statute.<br><br><a href='http://www.slavjanskij.boom.ru/' class='atan' target='_blank'>http://www.slavjanskij.boom.ru/</a><br>Stezja Pravi (non-English)<br>" + strLinkGood;
			break;
		case "22":
			strFootNote ="<a href='http://pandora.cii.wwu.edu/vajda/russ110/handout_p1_paganism.htm' class='atan' target='_blank'>http://pandora.cii.wwu.edu/vajda/russ110/handout_p1_paganism.htm</a><br>East Slavic Paganism handout<br>Author: Edward Vajda<br>" + strLinkGood;
			break;
		case "23":
			strFootNote ="<a href='http://en.wikipedia.org/wiki/Slavic_mythology' class='atan' target='_blank'>http://en.wikipedia.org/wiki/Slavic_mythology</a><br>Slavic Mythology &#8211; various authors<br><span class='btan'>Note:</span> Wikipedia is an open source site<br>there is no guarantee of the validity of the information in the articles<br>" + strLinkGood;
			break;
		case "24":
			strFootNote ="<span class='btan'>Slovenska Mitologija: Enciklopedijski recnik</span><br>various authors &#8211; translations by Endymion_Pan of Yahoo<br>Zepter Book World, Beograd, 2001<br>ISBN 86-7494-025-0";
			break;
		case "25":
			strFootNote ="<a href='http://groups.msn.com/BoilandBubble/baltoslavicdeities.msnw' class='atan' target='_blank'>http://groups.msn.com/BoilandBubble/baltoslavicdeities.msnw</a><br>BoilandBubble@groups.msn.com<br>Group Owner: ekkie<br>Balto-Slavic Mythology<br>" + strLinkFailed;
			break;
		case "26":
			strFootNote ="<a href='http://www.utexas.edu/cola/depts/lrc/eieol/ocsol-0.html' class='atan' target='_blank'>http://www.utexas.edu/cola/depts/lrc/eieol/ocsol-0.html</a><br>A. Richard Diebold Center for Indo-European Language and Culture<br>Linguistics Research Center<br>The University of Texas at Austin<br>Old Church Slavonic Online<br>" + strLinkGood;
			break;
		case "27":
			strFootNote ="<a href='http://www.indo-european.nl/cgi-bin/query.cgi?basename=%5Cdata%5Cie%5Cslav&root=leiden' class='atan' target='_blank'>http://www.indo-european.nl/cgi-bin/query.cgi?basename=\\data\\ie\\slav&root=leiden</a><br>Slavic inherited lexicon [Derksen] :<br>database<br>" + strLinkGood;
			break;
		case "28":
			strFootNote ="<a href='http://www.ibiblio.org/sergei/Zaroff/' class='atan' target='_blank'>http://www.ibiblio.org/sergei/Zaroff/</a><br>Organised Pagan Cult in Kievan Rus' :<br>The Invention of Foreign Elite or Evolution of Local Tradition?<br>Author: Roman Zaroff<br>" + strLinkGood;
			break;
		case "ahd4":
			strFootNote ="<a href='http://www.bartleby.com/61/' class='atan' target='_blank'>http://www.bartleby.com/61/</a><br>American Heritage Dictionary of the English Language online<br>4th Edition, 2000<br>" + strLinkGood;
			break;
		case "infer":
			strFootNote ="logical inference based on known data";
	}
	if (parent.opener.flgIE5) { // IExplorer 5.x
		document.all.idFNLyr.innerHTML = unescape(strOpen + strFootNote + strClose);
	} else if (parent.opener.flgIE6_8 || parent.opener.flgMoz || parent.opener.flgNN6) { // IExplorer 6.x - 8.x, Mozilla 1.x - 3.x, Netscape 6.2.2
		document.getElementById("idFNLyr").innerHTML = unescape(strOpen + strFootNote + strClose);
	} else if (parent.opener.flgNN4) { // Netscape 4.7
		document.idFNLyr.document.write(unescape(strOpen + strFootNote + strClose));
		document.idFNLyr.document.close();
	}
} // end of function

function showLayer(idLyr) {
	if (parent.opener.flgIE5) { // IExplorer 5.x
			eval("document.all." + idLyr + ".style.visibility = 'visible'");
	} else if (parent.opener.flgIE6_8 || parent.opener.flgMoz || parent.opener.flgNN6) { // IExplorer 6.x - 8.x, Mozilla 1.x - 3.x, Netscape 6.2.2
		document.getElementById(idLyr).style.visibility = "visible";
	} else if (parent.opener.flgNN4) { // Netscape 4.7
		eval("document." + idLyr + ".visibility = 'show'");
	}
} // end of function

function hideLayer(idLyr) {
	if (parent.opener.flgIE5) { // IExplorer 5.x
			eval("document.all." + idLyr + ".style.visibility = 'hidden'");
	} else if (parent.opener.flgIE6_8 || parent.opener.flgMoz || parent.opener.flgNN6) { // IExplorer 6.x - 8.x, Mozilla 1.x - 3.x, Netscape 6.2.2
		document.getElementById(idLyr).style.visibility = "hidden";
	} else if (parent.opener.flgNN4) { // Netscape 4.7
		eval("document." + idLyr + ".visibility = 'hide'");
	}
} // end of function
