/***********************************************
* 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
***********************************************/

var menuwidth='300px' //default menu width
var menubgcolor=''  //menu bgcolor
var disappeardelay=1000  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="no" //hide menu when user clicks within menu?

//Contents for menu 01
var menu01=new Array()
menu01[000]='<li class="dortcredo"><a target="_blank" title="Albert Mohler" href="http://www.albertmohler.com/">AlbertMohler.com</a> </li><li class="tms"><a target="_blank" title="Todd Bolen" href="http://blog.bibleplaces.com/">BiblePlaces Blog</a> </li><li class="dort"><a target="_blank" title="Jim Hale" href="http://www.examiner.com/x-35125-Charleston-Calvinist-Examiner">Calvinist Examiner</a> </li><li class="dortcredo"><a target="_blank" title="Tim Challies" href="http://www.challies.com/">Challies Dot Com</a> </li><li class="dortcredo"><a target="_blank" title="Daniel van de Laar, the eminent Dutch-Canadian theologian/philosopher" href="http://doulogos.blogspot.com/">Doulogos</a> </li><li class="tms"><a target="_blank" title="Paul Lamey, et al" href="http://expositorythoughts.wordpress.com/">Expository Thoughts</a> </li><li class="dortcredo"><a target="_blank" title="Bob Hayton"href="http://www.fundamentallyreformed.com/">Fundamentally Reformed</a> </li><li class="tms"><a target="_blank" title="Fred Butler" href="http://hipandthigh.blogspot.com/">Hip and Thigh</a> </li><li class="dortcredo"><a target="_blank" title="Steve Weaver" href="pastorsteveweaver.wordpress.com/">Pastor Steve Weaver's Blog</a> </li><li class="dortcredo"><a target="_blank" title="Thabiti Anyabwile" href="http://thegospelcoalition.org/blogs/thabitianyabwile/">Pure Church</a> </li><li class="dortcredo"><a target="_blank" title="Phil Johnson, et al" href="http://teampyro.blogspot.com/search/label/Phil%20Johnson">Pyromaniacs</a> </li><li class="dortcredo"><a target="_blank" href="http://rebecca-writes.com/">Rebecca Writes</a> </li><li class="dortcredo"><a target="_blank" title="Scott Aniol" href="http://religiousaffections.org/blog">Religious Affections</a> </li><li class="dortcredo"><a target="_blank" title="Brad Williams" href="http://alienman.blogspot.com/">Sojourner</a> </li><li class="tms"><a target="_blank" title="Michael Beasley" href="http://thearmoury.blogspot.com/">The Armoury</a> </li><li class="non"><a target="_blank" title="Reynaldo Reynoso, Token non-Reformed Blogger and All-around Nice Guy" href="http://www.biblearchive.com">The Bible Archive</a> </li><li class="dortcredo"><a target="_blank" title="Kim Shay" href="http://philippians314.squarespace.com/">The Upward Call</a> </li><li class="dortcredo"><a target="_blank" title="Chip Bayer" href="http://thideology.wordpress.com/">Thideology</a> </li><li class="dortcredo"><a target="_blank" title="Phillip Way" href="http://timeintheword.wordpress.com/">TIME in the Word Ministries</a> </li><li class="dortcredo"><a target="_blank" href="http://voiceofvision.blogspot.com/" title="J.D. Hatfield">Voice of Vision</a> </li>'

//Contents for menu 02,
var menu02=new Array()
menu02[000]=''

//Contents for menu 03,
var menu03=new Array()
menu03[000]=''

//Contents for menu 04,
var menu04=new Array()
menu04[000]=''

//Contents for menu 05,
var menu05=new Array()
menu05[000]=''

//Contents for menu 06,
var menu06=new Array()
menu06[000]=''

//Contents for menu 07,
var menu07=new Array()
menu07[000]=''

//Contents for menu 08,
var menu08=new Array()
menu08[000]=''

//Contents for menu 09,
var menu09=new Array()
menu09[000]=''

//Contents for menu 10,
var menu10=new Array()
menu10[000]='''

/////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
