/*** SET BUTTON'S FOLDER HERE ***/
var buttonFolder = "buttons/";

/*** SET BUTTONS' FILENAMES HERE ***/
upSources = new Array("button1up.png","button2up.png","button3up.png","button4up.png","button5up.png","button6up.png","button7up.png","button8up.png","button9up.png","button10up.png","button11up.png","button12up.png","button13up.png","button14up.png","button15up.png","button16up.png");

overSources = new Array("button1over.png","button2over.png","button3over.png","button4over.png","button5over.png","button6over.png","button7over.png","button8over.png","button9over.png","button10over.png","button11over.png","button12over.png","button13over.png","button14over.png","button15over.png","button16over.png");

// SUB MENUS DECLARATION, YOU DONT NEED TO EDIT THIS
subInfo = new Array();
subInfo[1] = new Array();
subInfo[2] = new Array();
subInfo[3] = new Array();
subInfo[4] = new Array();
subInfo[5] = new Array();
subInfo[6] = new Array();
subInfo[7] = new Array();
subInfo[8] = new Array();
subInfo[9] = new Array();
subInfo[10] = new Array();
subInfo[11] = new Array();
subInfo[12] = new Array();
subInfo[13] = new Array();
subInfo[14] = new Array();
subInfo[15] = new Array();
subInfo[16] = new Array();


//*** SET SUB MENUS TEXT LINKS AND TARGETS HERE ***//
subInfo[1][1] = new Array("<font color=“9900CC“>#1!!!My Resource of </font>--<font color=“Gold“>comparing Bible versions, Greek with English, And More!!</font>","http://www.centropian.com/religion/biblebrowserframeindex.html","remain");
subInfo[1][2] = new Array("","","remain");
subInfo[1][3] = new Array("<font color=“9900CC“>Bible Gateway: </font>--<font color=“Gold“>One of the TOP resources online</font>","http://bible.gospelcom.net\" ","remain");
subInfo[1][4] = new Array("<font color=“9900CC“>Blue Letter Bible:</font>--<font color=“Gold“>I use this one. Now it has audio readings!!</font> ","http://www.khouse.org/blueletter","remain");
subInfo[1][5] = new Array("<font color=“9900CC“>The New Testiment Gateway </font>--<font color=“Gold“>Various references and studies</font>","http://www.ntgateway.com/","remain");
subInfo[1][6] = new Array("<font color=“9900CC“>Audio Bible: </font>--<font color=“Gold“>(King James ver. read by Alexander Scourby) </font>","http://www.audio-bible.com/bible/bible.html","remain");
subInfo[1][7] = new Array("","","remain");
subInfo[1][8] = new Array("<font color=“9900CC“>Bibles.net</font>--<font color=“Gold“>A great resource of online Bible\'s and Biblical reference materials</font>","http://www.bibles.net","remain");
subInfo[1][9] = new Array("<font color=“9900CC“>Virtual Christianity</font> --<font color=“Gold“>A great list of online Bibles by Virtual Christianity</font>","http://www.internetdynamics.com/pub/vc/bibles.html","remain");

subInfo[2][1] = new Array("<font color=“9900CC“>Bible Study Guide: ","http://www.biblestudyguide.org/comment/index.htm","remain");
subInfo[2][2] = new Array("<font color=“9900CC“>Oremus Bible Browser:","http://bible.oremus.org/index.html","remain");
subInfo[2][3] = new Array("<font color=“9900CC“>Online Parallel Bible verses shown in 8 English translations","http://bible.cc/","remain");
subInfo[2][4] = new Array("<font color=“9900CC“>Unbound BibleGreek, Hebrew, Latin, 42 other languages, lexicons","http://unbound.biola.edu/","remain");
subInfo[2][5] = new Array("<font color=“9900CC“>Bible KeeperVarious Languages","http://www.biblekeeper.com/","remain");
subInfo[2][6] = new Array("<font color=“9900CC“>Bibles for the WorldVarious langauge translations","http://www.bibles-for-the-world.com/","remain");
subInfo[2][7] = new Array("<font color=“9900CC“>Concordant","http://www.concordant.org/version/index.html","remain");
subInfo[2][8] = new Array("<font color=“9900CC“>Various Languages</font>","http://www.iclnet.org/pub/resources/christian-books.html","remain");

subInfo[3][1] = new Array("<font color=“9900CC“>Christian Classics Ethernet Liberary: ","http://www.ccel.org/","remain");
subInfo[3][2] = new Array("<font color=“9900CC“>The Internet Encyclopedia of Philosophy: ","http://www.iep.utm.edu/","remain");
subInfo[3][3] = new Array("<font color=“9900CC“>K.C. Hanson\'s Homepage: ","http://www.kchanson.com/","remain");
subInfo[3][4] = new Array("<font color=“9900CC“>Perseus Digital library: ","http://www.perseus.tufts.edu/","remain");
subInfo[3][5] = new Array("<font color=“9900CC“>The Catholic Enclyclopedia ","http://www.newadvent.org/cathen/  ","remain");
subInfo[3][6] = new Array("<font color=“9900CC“>Stanford University Library - Religous studies collection ","http://www-sul.stanford.edu/depts/hasrg/religious/","remain");
subInfo[3][7] = new Array("<font color=“9900CC“>Theology Websight","http://www.theologywebsite.com/","remain");
subInfo[3][8] = new Array("<font color=“9900CC“>Johannine Literature Web</font>","http://bellarmine.lmu.edu/faculty/fjust/John.","remain");

subInfo[4][1] = new Array("<font color=“9900CC“>Where to do research ","http://www.wheretodoresearch.com/Philosophy.htm","remain");
subInfo[4][2] = new Array("<font color=“9900CC“>Socrates","http://www.philosophypages.com/ph/plat.htm   ","remain");
subInfo[4][3] = new Array("<font color=“9900CC“>Aristotle ","http://members.tripod.com/~batesca/aristotle.html","remain");
subInfo[4][4] = new Array("<font color=“9900CC“>Plato ","http://www.philosophypages.com/ph/plat.htm","remain");
subInfo[4][5] = new Array("<font color=“9900CC“>Augustine ","http://ccat.sas.upenn.edu/jod/augustine.html","remain");
subInfo[4][6] = new Array("<font color=“9900CC“>Pelagius","http://www.wku.edu/~rob.harbison/projects/pelagius.html","remain");
subInfo[4][7] = new Array("<font color=“9900CC“>Anselm","http://www.philosophypages.com/ph/anse.htm","remain");
subInfo[4][8] = new Array("<font color=“9900CC“>Barth ","http://www.ptsem.edu/grow/barth/barth_links.htm","remain");
subInfo[4][9] = new Array("<font color=“9900CC“>Bonhoeffer","http://www.dbonhoeffer.org/","remain");
subInfo[4][10] = new Array("<font color=“9900CC“>Hegel ","http://www.hegel.net/sitemap.htm","remain");
subInfo[4][11] = new Array("<font color=“9900CC“>Kant","http://www.bioethicscourse.info/kantsite/kant-hmpg.html","remain");
subInfo[4][12] = new Array("<font color=“9900CC“>Schleiermacher </font>","http://www.theology.ie/theologians/schleier.htm","remain");

subInfo[5][1] = new Array("<font color=“9900CC“>#1!!! My Timelines <img src=\"cooltext1.gif\">","http://www.centropian.com/religion/time.html","remain");
subInfo[5][2] = new Array("","","remain");
subInfo[5][3] = new Array("<font color=“Gold“>Favorites","Favorites","remain");
subInfo[5][4] = new Array("<font color=“9900CC“>Bible History Online ","http://www.bible-history.com/","remain");
subInfo[5][5] = new Array("<font color=“9900CC“>-Abzu-oriental institute - guide to the ancient near east ","http://www-oi.uchicago.edu/OI/DEPT/RA/ABZU/ABZU.HTML","remain");
subInfo[5][6] = new Array("","","remain");
subInfo[5][7] = new Array("<font color=“Gold“>Timelines","Timelines","remain");
subInfo[5][8] = new Array("<font color=“9900CC“>Bible World History Timeline","http://agards-bible-timeline.com/timeline_online.html","remain");
subInfo[5][9] = new Array("-<font color=“9900CC“>Christian Chronology","http://campus.northpark.edu/history/WebChron/Christianity/Christianity.html","remain");
subInfo[5][10] = new Array("","","remain");
subInfo[5][11] = new Array("<font color=“Gold“>Resource Guides","Resource Guides","remain");
subInfo[5][12] = new Array("<font color=“9900CC“>Internet Ancient History Resource Guide","http://www.ancienthistory.ugent.be/history/iahrg/","remain");
subInfo[5][13] = new Array("<font color=“9900CC“>History Links","http://www.csun.edu/~hcfll004/histlink.html","remain");
subInfo[5][14] = new Array("","","remain");
subInfo[5][15] = new Array("<font color=“gold“>Ancient Sumeria/Mesopotamian History","Ancient Sumeria/Mesopotamian History","remain");
subInfo[5][16] = new Array("<font color=“9900CC“>Electronic Text Corpus of Summarian Literature  University of Oxford ","http://www-etcsl.orient.ox.ac.uk/","remain");
subInfo[5][17] = new Array("<font color=“9900CC“>Mesopotamia - Evensville ","http://history.evansville.net/meso.html","remain");
subInfo[5][18] = new Array("<font color=“9900CC“>Gateways to Babylon ","http://www.gatewaystobabylon.com/","remain");
subInfo[5][19] = new Array("<font color=“9900CC“>Root Entry - Mesopotamia","http://www.science.widener.edu/ssci/mesopotamia/","remain");
subInfo[5][20] = new Array("<font color=“9900CC“>Brief Outline of Ancient Mesopotamia History ","http://www.usfca.edu/westciv/Mesochro.html","remain");
subInfo[5][21] = new Array("<font color=“9900CC“>Another outline of Mesopotamian History ","http://www.wsu.edu/~dee/MESO/TIMELINE.HTM","remain");
subInfo[5][22] = new Array("<font color=“9900CC“>Museum with excavations of Ur ","http://www.upenn.edu/museum/Collections/bowersmuseum.html","remain");
subInfo[5][23] = new Array("<font color=“9900CC“>Poppa\'s Ancient Near east ","http://victorian.fortunecity.com/kensington/207/mideast1.html","remain");
subInfo[5][24] = new Array("<font color=“9900CC“>Mesopotamia ","http://www.republic.k12.mo.us/highschool/teachers/tstephen/meso.htm-","remain");

subInfo[6][1] = new Array("<font color=“9900CC“>Dostoyevski page","http://www.kiosek.com/dostoevsky ","remain");
subInfo[6][2] = new Array("<font color=“9900CC“>Read The Brothers Karamazov and others here ","http://www.kiosek.com/dostoevsky/library.html","remain");
subInfo[6][3] = new Array("<font color=“9900CC“>C.S. Lewis Online ","http://www.cslewisonline.com/","remain");
subInfo[6][4] = new Array("<font color=“9900CC“>C.S. Lewis - 20th Century knight ","http://ic.net/~erasmus/RAZ26.HTM","remain");
subInfo[6][5] = new Array("<font color=“9900CC“>The Lewis Legacy Online","http://www.discovery.org/lewis/lewislegacy.html","remain");
subInfo[6][6] = new Array("<font color=“9900CC“>One more ","http://www.ipl.org/cgi-bin/ref/litcrit/litcrit.out.pl?au=lew-55","remain");
subInfo[6][7] = new Array("<font color=“9900CC“>Contemporary Christian Authors ","Contemporary","remain");
subInfo[6][8] = new Array("<font color=“9900CC“>Andrew Murray Religious Book Reviews","http://www.salvation.com/books/andrewmurray.htm","remain");
subInfo[6][9] = new Array("<font color=“9900CC“>Harvard University Press ","http://www.hup.harvard.edu/subjectindex/religion.html","remain");

subInfo[7][1] = new Array("<font color=“9900CC“>Art from Gothic, Renaissance and Baroque periods ","http://gallery.euroweb.hu/index.html","remain");
subInfo[7][2] = new Array("<font color=“9900CC“>LInks to Arg ","http://www.smc.qld.edu.au/relart.htm","remain");
subInfo[7][3] = new Array("<font color=“9900CC“>Museai Vaticani ","http://www.christusrex.org/www1/vaticano/","remain");
subInfo[7][4] = new Array("<font color=“9900CC“>Cathedrals and Holy Sights","Cathedrals","remain");
subInfo[7][5] = new Array("<font color=“9900CC“>The Holy Sepulcre ","http://www.christusrex.org/www1/ofm/TSspmain.html","remain");

subInfo[8][1] = new Array("<font color=“9900CC“>Afganistan","Afganistan","remain");
subInfo[8][2] = new Array("<font color=“9900CC“> THE WAY ","http://www.cnn.com/2001/WORLD/asiapcf/central/08/28/afghan.visits/index.html","remain");
subInfo[8][3] = new Array("<font color=“9900CC“>The Organization ","http://www.shelter.org/newsletter.html","remain");

subInfo[9][1] = new Array("<font color=“9900CC“>Luther Seminary / Evangelical Lutheran Church of America ","http://www.luthersem.edu/","remain");
subInfo[9][2] = new Array("<font color=“9900CC“>Bethel College and Seminary/ Babtist/Evangelical","http://www.bethel.edu/Welcome.html","remain");
subInfo[9][3] = new Array("<font color=“9900CC“>University of Chicago Divinity School ","http://divinity.uchicago.edu/","remain");
subInfo[9][4] = new Array("<font color=“9900CC“>Yale Divinity school ","http://www.yale.edu/divinity/","remain");
subInfo[9][5] = new Array("<font color=“9900CC“>Harvard Divinity School ","http://www.hds.harvard.edu/","remain");

subInfo[10][1] = new Array("<font color=“9900CC“>Shepard of the Hills Lutheran Church (ELCA) Shorview Mn ","http://www.elca.org/ScriptLib/OS/Congregations/cdsSearch.asp?state=MN&city=Shoreview","remain");
subInfo[10][2] = new Array("<font color=“9900CC“>Wooddale church-Eden Prarie ","http://www.wooddale.org/","remain");
subInfo[10][3] = new Array("<font color=“9900CC“>St Olaf College ","http://www.stolaf.edu/orgs/stucong/","remain");

subInfo[11][1] = new Array("<font color=“9900CC“>Vatican Offician Sight ","<A HREF=\"http://www.vatican.va/","remain");
subInfo[11][2] = new Array("<font color=“9900CC“>Evangelical Lutheran Church of America ","<A HREF=\"http://www.elca.org/","remain");
subInfo[11][3] = new Array("<font color=“9900CC“>The Lutheran Church - Missouri Synod ","<A HREF=\"http://www.lcms.org/","remain");
subInfo[11][4] = new Array("<font color=“9900CC“>American Babtist Churches - USA ","<A HREF=\"http://www.abc-usa.org/","remain");
subInfo[11][5] = new Array("<font color=“9900CC“>Evangelical Covanent Churches ","<A HREF=\"http://www.covchurch.org/cov/","remain");
subInfo[11][6] = new Array("<font color=“9900CC“>The Episcopal Church, USA ","<A HREF=\"http://www.ecusa.anglican.org","remain");
subInfo[11][7] = new Array("<font color=“9900CC“>The Presbyterian Church (USA) ","<A HREF=\"http://www.pcusa.org/","remain");
subInfo[11][8] = new Array("<font color=“9900CC“>The United Methodist Church ","<A HREF=\"http://www.umc.org/","remain");

subInfo[12][1] = new Array("<font color=“9900CC“>Nation wide Bible study organizations ","","remain");
subInfo[12][2] = new Array("<font color=“9900CC“>Bible Study Fellowship ","http://withchrist.org/bsf.htm","");
subInfo[12][3] = new Array("<font color=“9900CC“>Articles related to BSF ","http://withchrist.org/articles.htm#THE%20GOSPEL","");
subInfo[12][4] = new Array("<font color=“9900CC“>Billy Grahm\'s sight ","http://www.billygraham.org/home/flash.asp ","");
subInfo[12][5] = new Array("<font color=“9900CC“>conservative Christians, ","http://www.catholic.net/rcc/Periodicals/Crisis/2000-06/wright.html","");
subInfo[12][6] = new Array("<font color=“9900CC“>Fellowship of Christian Athletes ","http://www.fca.org","");
subInfo[12][7] = new Array("<font color=“9900CC“>InterVarsity Christian Fellowship ","http://www.ivcf.org/","");

subInfo[13][1] = new Array("<font color=“9900CC“>Religion Course I have taken and Papers written ","http://www.centropian.com/religion/religionclasses/classe.html","");

subInfo[14][1] = new Array("<font color=“9900CC“>my forum","http://www.centropian.com/religion/forum.html","");

subInfo[15][1] = new Array("<font color=“9900CC“>Singles: My list of online Christian dating services","-http://www.centropian.com/religion/singles.html","");

subInfo[16][1] = new Array("<font color=“9900CC“>bookstore","-http://www.centropian.com/store/bookstore/bookcase.html","");


//*** SET SUB MENU POSITION ( RELATIVE TO BUTTON ) ***//
var xSubOffset = 0;
var ySubOffset = 22;



//*** NO MORE SETTINGS BEYOND THIS POINT ***//
var overSub = false;
var delay = 1000;
totalButtons = upSources.length;

// GENERATE SUB MENUS
for ( x=0; x<totalButtons; x++) {
	// SET EMPTY DIV FOR BUTTONS WITHOUT SUBMENU
	if ( subInfo[x+1].length < 1 ) { 
		document.write('<div id="submenu' + (x+1) + '">');
	// SET DIV FOR BUTTONS WITH SUBMENU
	} else {
		document.write('<div id="submenu' + (x+1) + '" class="dropmenu" ');
		document.write('onMouseOver="overSub=true;');
		document.write('setOverImg(\'' + (x+1) + '\',\'\');"');
		document.write('onMouseOut="overSub=false;');
		document.write('setTimeout(\'hideSubMenu(\\\'submenu' + (x+1) + '\\\')\',delay);');
		document.write('setOutImg(\'' + (x+1) + '\',\'\');">');


		document.write('<ul>');
		for ( k=0; k<subInfo[x+1].length-1; k++ ) {
			document.write('<li>');
			document.write('<a href="' + subInfo[x+1][k+1][1] + '" ');
			document.write('target="' + subInfo[x+1][k+1][2] + '">');
			document.write( subInfo[x+1][k+1][0] + '</a>');
			document.write('</li>');
		}
		document.write('</ul>');
	}
	document.write('</div>');
}





//*** MAIN BUTTONS FUNCTIONS ***//
// PRELOAD MAIN MENU BUTTON IMAGES
function preload() {
	for ( x=0; x<totalButtons; x++ ) {
		buttonUp = new Image();
		buttonUp.src = buttonFolder + upSources[x];
		buttonOver = new Image();
		buttonOver.src = buttonFolder + overSources[x];
	}
}

// SET MOUSEOVER BUTTON
function setOverImg(But, ID) {
	document.getElementById('button' + But + ID).src = buttonFolder + overSources[But-1];
}

// SET MOUSEOUT BUTTON
function setOutImg(But, ID) {
	document.getElementById('button' + But + ID).src = buttonFolder + upSources[But-1];
}



//*** SUB MENU FUNCTIONS ***//
// GET ELEMENT ID MULTI BROWSER
function getElement(id) {
	return document.getElementById ? document.getElementById(id) : document.all ? document.all(id) : null; 
}

// GET X COORDINATE
function getRealLeft(id) { 
	var el = getElement(id);
	if (el) { 
		xPos = el.offsetLeft;
		tempEl = el.offsetParent;
		while (tempEl != null) {
			xPos += tempEl.offsetLeft;
			tempEl = tempEl.offsetParent;
		} 
		return xPos;
	} 
} 

// GET Y COORDINATE
function getRealTop(id) {
	var el = getElement(id);
	if (el) { 
		yPos = el.offsetTop;
		tempEl = el.offsetParent;
		while (tempEl != null) {
			yPos += tempEl.offsetTop;
			tempEl = tempEl.offsetParent;
		}
		return yPos;
	}
}

// MOVE OBJECT TO COORDINATE
function moveObjectTo(objectID,x,y) {
	var el = getElement(objectID);
	el.style.left = x;
	el.style.top = y;
}

// MOVE SUBMENU TO CORRESPONDING BUTTON
function showSubMenu(subID, buttonID) {
	hideAllSubMenus();
	butX = getRealLeft(buttonID);
	butY = getRealTop(buttonID);
	moveObjectTo(subID,butX+xSubOffset, butY+ySubOffset);
}

// HIDE ALL SUB MENUS
function hideAllSubMenus() {
	for ( x=0; x<totalButtons; x++) {
		moveObjectTo("submenu" + (x+1) + "",-500, -500 );
	}
}

// HIDE ONE SUB MENU
function hideSubMenu(subID) {
	if ( overSub == false ) {
		moveObjectTo(subID,-500, -500);
	}
}



//preload();


