/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//Contents for BIBLES
var menu1=new Array()
menu1[0]='<a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%2Fwww.amazon.com%2FBibles-Christianity-Religion-Spirituality-Books%2Fb%3Fie%3DUTF8%26node%3D12059&tag=marbygra-20&linkCode=ur2&camp=1789&creative=9325" target="_blank">Amazon</a><img src="http://www.assoc-amazon.com/e/ir?t=marbygra-20&amp;l=ur2&amp;o=1" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />'
menu1[1]='<a href="http://books.barnesandnoble.com/search/results.aspx?SRT=R&WRD=bibles&DREF=1" target="_blank">Barnes & Noble</a>'
menu1[2]='<a href="http://www.christianbook.com/Christian/Books/easy_find?N=1014722&Ns=product%2Enumber%5Fsold&Nso=1&Nu=product%2Eendeca%5Frollup&event=AFF&p=1134612" target="_blank">Christian Book</a>'
menu1[3]='<a href="http://www.familychristian.com/?intCategory=1" target="_blank">Family Christian</a><img src="http://www.lduhtrp.net/image-2280153-10292034" width="1" height="1" border="0"/>'
menu1[4]='<a href="http://www.parable.com/parable/section_58.htm&rid=2783" target="_blank">Parable</a>'
menu1[5]='<a href="http://www.thebiblesource.com" target="_blank">The Bible Source</a>'
menu1[6]='<a href="http://www.overstock.com/search?taxonomy=dep9&SearchType=bookspage&keywords=bibles&x=0&y=0" target="_blank">Overstock</a><img alt="icon" width="1" height="1" src="http://ad.linksynergy.com/fs-bin/show?id=EXQ0V0umSg4&bids=57189.546217429&type=10&subid=">'
menu1[7]='<a href="http://www.bookschristian.com/se/view/bibles/index.html" target="_blank">Books Christian</a>'


//Contents for DVD's
var menu2=new Array()
menu2[0]='<a href="" target="_blank">Barnes & Noble</a>'
menu2[1]='<a href="http://www.christianbook.com/Christian/Books/easy_find?N=1014692&Ns=product%2Enumber%5Fsold&Nso=1%CE%9D&category=Video+%2F+DVD&event=AFF&format=1014692&p=1134612" target="_blank">Christian Book</a>'
menu2[2]='<a href="http://www.christiancinema.com/catalog/default.php?ref=340&cPath=22" target="_blank">Christian Cinema</a>'
menu2[3]='<a href="http://www.jdoqocy.com/click-2280153-10292040" target="_blank">Family Christian</a><img src="http://www.ftjcfx.com/image-2280153-10292040" width="1" height="1" border="0"/>'
menu2[4]='<a href="http://www.parable.com/parable/section_61.htm&rid=2783" target="_blank">Parable</a>'
menu2[5]='<a href="http://www.myaffiliateprogram.com/u/bibles/e.asp?e=7&id=2349&p=category.asp?CategoryID=47" target="_blank">The Bible Source</a>'
menu2[6]='<a href="http://click.linksynergy.com/fs-bin/click?id=EXQ0V0umSg4&offerid=57189.546217455&type=10&subid=" target="_blank">Overstock</a><img alt="icon" width="1" height="1" src="http://ad.linksynergy.com/fs-bin/show?id=EXQ0V0umSg4&bids=57189.546217455&type=10&subid=">'
menu2[7]='<a href="http://www.bookschristian.com/refer/lonbec85/foxfaith.htmlG7Gfeature=Fox%20Faith" target="_blank">Fox Faith</a>'
menu2[8]='<a href="http://www.musichristian.com/refer/lonbec85/dvd/index.html" target="_blank">Musichristian</a>'


//Contents for MUSIC
var menu3=new Array()
menu3[0]='<a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%2Fwww.amazon.com%2FChristian-Gospel-Music%2Fb%3Fie%3DUTF8%26node%3D173429&tag=marbygra-20&linkCode=ur2&camp=1789&creative=9325" target="_blank">Amazon</a><img src="http://www.assoc-amazon.com/e/ir?t=marbygra-20&amp;l=ur2&amp;o=1" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />'
menu3[1]='<a href="http://service.bfast.com/bfast/click?bfmid=2181&sourceid=41646194&categoryid=religious_mus" target="_blank">Barnes & Noble</a>'
menu3[2]='<a href="http://www.christianbook.com/html/specialty/1002.html?event=AFF&p=1134612" target="_blank">Christian Book</a>'
menu3[3]='<a href="http://www.anrdoezrs.net/click-2280153-10292032" target="_blank">Family Christian</a><img src="http://www.lduhtrp.net/image-2280153-10292032" width="1" height="1" border="0"/>'
menu3[4]='<a href="http://www.parable.com/parable/section_60.htm&rid=2783" target="_blank">Parable</a>'
menu3[5]='<a href="http://www.myaffiliateprogram.com/u/bibles/e.asp?e=7&id=2349&p=category.asp?CategoryID=10" target="_blank">The Bible Source</a>'
menu3[6]='<a href="http://click.linksynergy.com/fs-bin/click?id=EXQ0V0umSg4&offerid=57189.546217457&type=10&subid=" target="_blank">Overstock</a><img alt="icon" width="1" height="1" src="http://ad.linksynergy.com/fs-bin/show?id=EXQ0V0umSg4&bids=57189.546217457&type=10&subid=">'
menu3[7]='<a href="http://www.musichristian.com/refer/lonbec85/index.html" target="_blank">Musichristian</a>'


//Contents for BOOKS
var menu4=new Array()
menu4[0]='<a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%2Fwww.amazon.com%2Fs%3Fie%3DUTF8%26keywords%3Dchristian%26rh%3Dn%253A1000%252Ck%253Achristian%252Cn%253A22%26page%3D1&tag=marbygra-20&linkCode=ur2&camp=1789&creative=9325" target="_blank">Amazon</a><img src="http://www.assoc-amazon.com/e/ir?t=marbygra-20&amp;l=ur2&amp;o=1" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />'
menu4[1]='<a href="http://service.bfast.com/bfast/click?bfmid=2181&sourceid=41646194&categoryid=rn_religion2" target="_blank">Barnes & Noble</a>'
menu4[2]='<a href="http://www.christianbook.com/Christian/Books/easy_find?Go=Go&Go.x=12&Go.y=13&N=0&Ne=0&Ntk=keywords&Ntt=christian+books&action=Search&cms=1&event=AFF&nav_search=1&p=1134612" target="_blank">Christian Book</a>'
menu4[3]='<a href="http://www.dpbolvw.net/click-2280153-10292031" target="_blank">Family Christian</a><img src="http://www.lduhtrp.net/image-2280153-10292031" width="1" height="1" border="0"/>'
menu4[4]='<a href="http://www.parable.com/parable/section_59.htm&rid=2783" target="_blank">Parable</a>'
menu4[5]='<a href="http://www.myaffiliateprogram.com/u/bibles/e.asp?e=7&id=2349&p=category.asp?CategoryID=8" target="_blank">The Bible Source</a>'
menu4[6]='<a href="http://click.linksynergy.com/fs-bin/click?id=EXQ0V0umSg4&offerid=57189.546217408&type=10&subid=" target="_blank">Overstock</a><img alt="icon" width="1" height="1" src="http://ad.linksynergy.com/fs-bin/show?id=EXQ0V0umSg4&bids=57189.546217408&type=10&subid=">'

//Contents for JEWELRY
var menu5=new Array()
menu5[0]='<a href="http://abbeypress.com/search.asp?ss=jewelry&ipp=5000" target="_blank">Abbey Press</a>'
menu5[1]='<a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%2Fwww.amazon.com%2Fs%3Furl%3Dsearch-alias%253Djewelry%26field-keywords%3Dreligion%26Go.x%3D0%26Go.y%3D0%26Go%3DGo&tag=marbygra-20&linkCode=ur2&camp=1789&creative=9325" target="_blank">Amazon</a><img src="http://www.assoc-amazon.com/e/ir?t=marbygra-20&amp;l=ur2&amp;o=1" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />'
menu5[2]='<a href="http://www.christianbook.com/Christian/Books/easy_find?N=5100+1029934&Ne=1000000&Ns=product%2Enumber%5Fsold&Nso=1&Nu=product%2Eendeca%5Frollup&category=Gifts&event=AFF&format=1014723&p=1134612" target="_blank">Christian Book</a>'
menu5[3]='<a href="http://www.myaffiliateprogram.com/u/bibles/e.asp?e=7&id=2349&p=category.asp?CategoryID=42" target="_blank">The Bible Source</a>'
menu5[4]='<a href="http://click.linksynergy.com/fs-bin/click?id=EXQ0V0umSg4&offerid=57189.546217471&type=10&subid=" target="_blank">Overstock</a><img alt="icon" width="1" height="1" src="http://ad.linksynergy.com/fs-bin/show?id=EXQ0V0umSg4&bids=57189.546217471&type=10&subid=">'
menu5[5]='<a href="http://www.dpbolvw.net/click-2280153-10427940" target="_blank">Diamond</a><img src="http://www.awltovhc.com/image-2280153-10427940" width="1" height="1" border="0"/>'

//Contents for APPAREL
var menu6=new Array()
menu6[0]='<a href="http://www.jdoqocy.com/click-2280153-10292037" target="_blank">Family Christian</a><img src="http://www.tqlkg.com/image-2280153-10292037" width="1" height="1" border="0"/>'
menu6[1]='<a href="http://www.christianbook.com/Christian/Books/cms_content?event=AFF&p=1134612&page=366932&sp=1019" target="_blank">Christian Book</a>'
menu6[2]='<a href="http://affiliates.choiceshirts.com/z/7/CD1920/&l=14321" target="_blank">Choice Shirts</a>'
menu6[3]='<a href="http://www.solidlightco.com/?Click=294&gclid=CKLcmuKHtIkCFSeaYAodmTlhOw" target="_blank">Solid Light Co</a>'

//Contents for DECOR
var menu7=new Array()
menu7[0]='<a href="http://www.abbeypress.com/" target="_blank">Abbey Press</a>'
menu7[1]='<a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%2Fwww.amazon.com%2Fs%3Furl%3Dsearch-alias%253Daps%26field-keywords%3Dhome%2Bdecor%26Go.x%3D13%26Go.y%3D14%26Go%3DGo&tag=marbygra-20&linkCode=ur2&camp=1789&creative=9325" target="_blank">Amazon</a><img src="http://www.assoc-amazon.com/e/ir?t=marbygra-20&amp;l=ur2&amp;o=1" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />'
menu7[2]='<a href="http://www.christianbook.com/Christian/Books/easy_find?%20Home=&N=1014723&Ne=1000000&Ns=product%2Enumber%5Fsold&Nso=1&Nu=product%2Eendeca%5Frollup&category=Gift%20&event=AFF&p=1134612" target="_blank">Christian Book</a>'
menu7[3]='<a href="http://www.anrdoezrs.net/click-2280153-10374987" target="_blank">Home Decorators</a><img src="http://www.lduhtrp.net/image-2280153-10374987" width="1" height="1" border="0"/>'
menu7[4]='<a href="http://click.linksynergy.com/fs-bin/click?id=EXQ0V0umSg4&offerid=123805.545853814&type=10&subid=" target="_blank">Poster Checkout</a><img alt="icon" width="1" height="1" src="http://ad.linksynergy.com/fs-bin/show?id=EXQ0V0umSg4&bids=123805.545853814&type=10&subid=">'

//Contents for KIDS
var menu8=new Array()
menu8[0]='<a href="http://www.christianbook.com/Christian/Books/easy_find?N=1014662&Ne=1000000&Ns=product%2Enumber%5Fsold&Nso=1&Nu=product%2Eendeca%5Frollup&category=Kids&event=AFF&p=1134612" target="_blank">Christian Book</a>'
menu8[1]='<a href="http://www.christiancinema.com/catalog/default.php?ref=340&cPath=59" target="_blank">Christian Cinema</a>'
menu8[2]='<a href="http://www.tkqlhce.com/click-2280153-5354914" target="_top">Childrens Christian DVDs, CDs, Videos & Games</a>'
menu8[3]='<a href="http://www.parable.com/parable/section_62.htm&rid=2783" target="_blank">Parable</a>'
menu8[4]='<a href="http://www.myaffiliateprogram.com/u/bibles/e.asp?e=7&id=2349&p=category.asp?CategoryID=34" target="_blank">The Bible Source</a>'
menu8[5]='<a href="http://click.linksynergy.com/fs-bin/click?id=EXQ0V0umSg4&offerid=57189.546217475&type=10&subid=" target="_blank">Overstock</a><img alt="icon" width="1" height="1" src="http://ad.linksynergy.com/fs-bin/show?id=EXQ0V0umSg4&bids=57189.546217475&type=10&subid=">'
menu8[6]='<a href="http://www.musichristian.com/refer/lonbec85/categoryb.htmlG7Gcat_id=2004" target="_blank">Children & Youth</a>'
menu8[7]='<a href="http://www.musichristian.com/refer/lonbec85/VeggieStore/index.html" target="_blank">Veggie Tales</a>'

//Contents for SOFTWARE
var menu9=new Array()
menu9[0]='<a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%2Fwww.amazon.com%2Fs%3Furl%3Dsearch-alias%253Dsoftware%26field-keywords%3Dreligious%26Go.x%3D10%26Go.y%3D13%26Go%3DGo&tag=marbygra-20&linkCode=ur2&camp=1789&creative=9325" target="_blank">Amazon</a><img src="http://www.assoc-amazon.com/e/ir?t=marbygra-20&amp;l=ur2&amp;o=1" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />'
menu9[1]='<a href="http://www.parable.com/parable/section_67.htm&rid=2783" target="_blank">Parable</a>'
menu9[2]='<a href="http://www.dpbolvw.net/click-2280153-10292030" target="_blank">Family Christian</a><img src="http://www.lduhtrp.net/image-2280153-10292030" width="1" height="1" border="0"/>'
menu9[3]='<a href="http://www.christianbook.com/Christian/Books/easy_find?N=1014786&Ne=1000000&Ns=product%2Enumber%5Fsold&Nso=1%CE%9D&category=Software&event=AFF&p=1134612" target="_blank">Christian Book</a>'

//Contents for SUPPLIES
var menu10=new Array()
menu10[0]='<a href="http://www.christianbook.com/html/specialty/1048.html?event=AFF&p=1134612" target="_blank">Christian Book</a>'
menu10[1]='<a href="http://www.tkqlhce.com/click-2280153-10292039" target="_blank">Family Christian</a><img src="http://www.awltovhc.com/image-2280153-10292039" width="1" height="1" border="0"/>'
menu10[2]='<a href="http://www.religiousmall.com/church_supplies.html&id=lonbec85&domainid=2381" target="_blank">Religious Mall</a>'
menu10[3]='<a href="http://www.aitsafe.com/go.htm?go=agards-bible-timeline.com&afid=43749&tm=180&im=1" target="_blank">Bible Timeline</a>'
menu10[4]='<a href="http://lonbec1985.arkada1.hop.clickbank.net" target="_blank">Content Purity</a>'
menu10[5]='<a href="http://www.bookschristian.com/refer/lonbec85/category.htmlG7Gcat_id=831" target="_blank">Biblical Studies</a>'
menu10[6]='<a href="http://www.bookschristian.com/refer/lonbec85/category.htmlG7Gcat_id=909" target="_blank">Church & Ministry</a>'
menu10[7]='<a href="http://www.bookschristian.com/refer/lonbec85/churchsupplies_5.htmlG7Gfeature=Worship%20Resources" target="_blank">Pastor/Worship</a>'



//LEFT MENU

//Family Life
var menu11=new Array()
menu11[0]='<a href="http://www.familylife.com/site/c.dnJHKLNnFoG/b.3204559/k.F5BB/Attend_a_conference.htm" target="_blank">Weekend To Remember</a>'
menu11[1]='<a href="http://www.familylife.com/site/c.dnJHKLNnFoG/b.3204381/k.9630/Healthy_Marriage.htm" target="_blank">Healthy Marriage</a>'
menu11[2]='<a href="http://www.familylife.com/site/c.dnJHKLNnFoG/b.3204389/k.A8CA/Troubled_marriage.htm" target="_blank">Troubled Marriage</a>'
menu11[3]='<a href="http://www.familylife.com/site/c.dnJHKLNnFoG/b.3204387/k.91CE/Romance__Sex.htm" target="_blank">Romance & Sex</a>'
menu11[4]='<a href="http://www.familylife.com/site/c.dnJHKLNnFoG/b.3204525/k.FD1/Better_Parenting__FamilyLifecom.htm" target="_blank">Better Parenting</a>'
menu11[5]='<a href="http://www.familylife.com/site/c.dnJHKLNnFoG/b.3204383/k.9C34/Spiritual_growth.htm" target="_blank">Spiritual Growth</a>'


//Walk To Emmaus
var menu12=new Array()
menu12[0]='<a href="http://www.upperroom.org/emmaus/" target="_blank">Emmaus Listings</a>'
menu12[1]='<a href="http://www.upperroom.com/chrysalis/" target="_blank">Chrysalis</a>'

//Church Listings
var menu13=new Array()
menu13[0]='<a href="http://www.usachurch.com/" target="_blank">USA Church Listings</a>'

//Mens Links
var menu14=new Array()
menu14[0]='<a href="http://www.crosssearch.com/People/Men/" target="_blank">CrossSearch</a>'
menu14[1]='<a href="http://www.promisekeepers.org/" target="_blank">Promise Keepers</a>'
menu14[2]='<a href="http://www.newmanmag.com/" target="_blank">New Man Magazine</a>'
menu14[3]='<a href="http://www.christianitytoday.com/men/" target="_blank">Christian Men</a>'
menu14[4]='<a href="http://www.musichristian.com/refer/lonbec85/categoryb.htmlG7Gcat_id=2001">Just for Men</a>'


//Womens Links
var menu15=new Array()
menu15[0]='<a href="http://www.shelovesgod.com/" target="_blank">She Loves God</a>'
menu15[1]='<a href="http://www.christianitytoday.com/women" target="_blank">Todays Christian Women</a>'
menu15[2]='<a href="http://christianwomentoday.com/" target="_blank">Christian Women Today</a>'
menu15[3]='<a href="http://www.women-of-faith.com/" target="_blank">Women-of-Faith</a>'
menu15[4]='<a href="http://www.musichristian.com/refer/lonbec85/categoryb.htmlG7Gcat_id=2002" target="_blank">Just for Women</a>'


//Kids Corner
var menu16=new Array()
menu16[0]='<a href="http://cbh.gospelcom.net/" target="_blank">CBH Ministries</a>'
menu16[1]='<a href="http://netministries.org/kids.htmls" target="_blank">Net Ministries</a>'
menu16[2]='<a href="http://akidsheart.com/" target="_blank">A Kids Heart</a>'
menu16[3]='<a href="http://www.kids-teens.org/" target="_blank">Kids-Teens</a>'
menu16[4]='<a href="http://www.coloring.ws/adamandeve.htm" target="_blank">Adam and Eve</a>'
menu16[5]='<a href="http://www.angelverses.org/" target="_blank">Angel Verses</a>'
menu16[6]='<a href="http://www.christiancharacterbuilders.com/" target="_blank">Bible Stories 4 Kids</a>'
menu16[7]='<a href="http://www.jesusanswers.com/christian/children.htm" target="_blank">Children Bible Stories & Puzzles</a>'
menu16[8]='<a href="http://www.christiancoloring.com/" target="_blank">Christian Coloring</a>'
menu16[9]='<a href="http://www.first-school.ws/theme/bible.htm" target="_blank">Bible Preschool Activities</a>'
menu16[10]='<a href="http://www.kidfocus.net/eflp.php?pid=62968&D=135211&C=36112&domain=kidfocus.net&V=10375&K=kids+crafts&K2=" target="_blank">Kid Focus.net</a>'
menu16[11]='<a href="http://www.ilovejesus.com/school/sow4christ/index3.html" target="_blank">I Love Jesus</a>'

//Links
var menu17=new Array()
menu17[0]='<a href="http://www.kcrn.org/ministrylinks.htm" target="_blank">KCRN Ministry Links</a>'
menu17[1]='<a href="http://www.christianwebsite.com/" target="_blank">ChristianWebSite</a>'
menu17[2]='<a href="http://www.christianwebsites.org/" target="_blank">Christian Web Sites</a>'
menu17[3]='<a href="http://www.servehim.com/" target="_blank">Serve Him</a>'
menu17[4]='<a href="http://www.christsites.com/index.cfm?m=0" target="_blank">Christ Sites</a>'
menu17[5]='<a href="http://www.crossdaily.com/" target="_blank">Cross Daily</a>'
menu17[6]='<a href="http://www.christiannewstoday.com/" target="_blank">Christian International News</a>'
menu17[7]='<a href="http://www.seekgod.org/" target="_blank">Seek God</a>'
menu17[8]='<a href="http://www.family.org/" target="_blank">Family.org</a>'
menu17[9]='<a href="http://www.loveyourmarriage.com/" target="_blank">Love Your Christian Marriage</a>'
menu17[10]='<a href="http://www.christianity.com/" target="_blank">Christianity</a>'

//News
var menu18=new Array()
menu18[0]='<a href="http://www.christianpost.com/" target="_blank">Christian Post</a>'
menu18[1]='<a href="http://www.agapepress.org/" target="_blank">Agape Press</a>'
menu18[2]='<a href="http://www.christiannewsdaily.com/" target="_blank">Christian Newst Daily</a>'
menu18[3]='<a href="http://www.watch.org/" target="_blank">White House & World News</a>'

//Know God
var menu19=new Array()
menu19[0]='<a href="http://www.allaboutgod.com/how-to-be-saved.htm" target="_blank">All About God</a>'
menu19[1]='<a href="http://www.areyousaved.com/index.html" target="_blank">Are You Saved</a>'
menu19[2]='<a href="http://www.godlovestheworld.com/" target="_blank">God Loves the World</a>'
menu19[3]='<a href="http://www.harvest.org/knowgod/" target="_blank">Harvest Online</a>'
menu19[4]='<a href="http://www.bible.ca/indexsalvation.htm" target="_blank">How To Be Saved</a>'
menu19[5]='<a href="http://www.jesusislord.com/" target="_blank">Jesus is Lord</a>'
menu19[6]='<a href="http://www.jesus-is-savior.com/Basics/howtobesaved.htm" target="_blank">Jesus-Is-Savior</a>'
menu19[7]='<a href="http://www.greatcom.org/laws/englishkgp/" target="_blank">Know God Personally</a>'
menu19[8]='<a href="http://www.neverthirsty.org/" target="_blank">Never Thirsty</a>'



//END LEFT MENU
///////////////////////

var menuwidth='165px' //default menu width
var menubgcolor='lightyellow'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu
