function openWindow(url,hei,wi) {
	if ((hei == null) || (hei == "")) { hei = "400"; }
	if ((wi == null) || (wi == "")) { wi = "500";  }
		window.open(url,null,'height='+hei+',width='+wi+',status=1,toolbar=0,scrollbars=1');
	}

//////////////////////////////////////////////////////

function subme() {
   	 document.f.submit();

	}

//////////////////////////////////////////////////////

	No3 = (parseInt(navigator.appVersion) > 3) ? 1:0;
	layer = (document.all && No3) ? "document.all['L'+menu].style" : (document.layers && No3) ? "document.layers['L'+menu]" : 0;
	var timer;

	function Show() { if(layer) {
			if(timer) clearTimeout(timer);
			for(menu=0; menu<Layer.length; menu++) { if(Layer[menu]) { eval(layer).visibility = "hidden"; } }
			for(i=0; i<arguments.length; i++) { menu=arguments[i]; eval(layer).visibility = "visible"; }
	} }
	function Hide() { timer = setTimeout("Show()", 500); }

	  function open_window(url) {
	   var  nameit, details;
	   if (document.layers) {leftMarg='screenX=5,'; topMarg='screenY=5,'}
	   else if (document.all) {leftMarg='left=5,'; topMarg='top=5,'}
	   nameit='faqWindow';
	   details = leftMarg + topMarg + 'toolbar=0,location=0,directories=0,status=no,menubar=no,scrollbars=yes,resizable=yes,width=400,height=400';
	   doPopUp = window.open(url, nameit, details);

   }


//////////////////////////////////////////////////////

        hovercolor   = "#F7EEBD";       // color name/code
        bgcolor      = "#FBF6D9";       // color name/code
        background   = "";                      // picture url

        menu_border  = 1;                       // IE only
        border_color = "#CC0000";       // IE only

        arrow_pic    = "arrow.gif"; // url of arrow picture for submenus

//////////////////////////////////////////////////////


if(document.all) { if(!background) { background=bgcolor; } else { background = "url("+background+")"; } }

function LayerSpecs(Left,Top,Width) { if(No3) {
        if(document.all) { Top+=7; Left+=2; Width-=6; }
        this.left  = Left;
        this.top   = Top;
        this.info  = "";
        T=0;
        for(i=3; i<arguments.length; i++) {
                if(document.all) { this.info += "<TR><TD WIDTH="+Width+" onMouseOver='this.bgColor=\""+hovercolor+"\"' onMouseOut='this.bgColor=\"\"'>"+arguments[i]+"</TD></TR>"; }
                else { this.info += "<LAYER onMouseOver='this.bgColor=\""+hovercolor+"\"' onMouseOut='this.bgColor=\""+bgcolor+"\"' WIDTH="+Width+" POSITION=RELATIVE TOP="+T+">&nbsp;"+arguments[i]+"</LAYER>"; }
                T+=20;
        }
} }

Layer = new Array();
arrow = "<IMG SRC='"+arrow_pic+"' WIDTH=6 HEIGHT=10 BORDER=0 ALT=''>";


//////////////////////////////////////////////



Layer[1] =      new LayerSpecs(53,203,140,
			'* <A HREF="scriptur.html" style="font-family:Arial;font-size:12px;" onMouseOver="Show(1)">Scriptural Theology</A> ',
                        '* <A HREF="liturgic.html" style="font-family:Arial;font-size:12px;" onMouseOver="Show(1)">Liturgical Theology</A> ',
                        '* <A HREF="dogmatic.html" style="font-family:Arial;font-size:12px;" onMouseOver="Show(1)">Dogmatic Theology</A> ',
                        '* <A HREF="ethics.html" style="font-family:Arial;font-size:12px;" onMouseOver="Show(1)">Ethics</A> ',
                        '* <A HREF="canonlaw.html" style="font-family:Arial;font-size:12px;" onMouseOver="Show(1)">Canon Law</A> ',
                        '* <A HREF="pastoral.html" style="font-family:Arial;font-size:12px;" onMouseOver="Show(1)">Pastoral Theology</A> ',
                        '* <A HREF="contemp.html" style="font-family:Arial;font-size:12px;" onMouseOver="Show(1)">Contemporary</A> '


 );

Layer[2] =      new LayerSpecs(110,220,200,
                        '* <A HREF="clement.html" style="font-family:Arial;font-size:12px;" onMouseOver="Show(2)">Clement of Alexandria</A>',
    			'* <A HREF="origen.html" style="font-family:Arial;font-size:12px;" onMouseOver="Show(2)">Origen of Alexandria</A>',
			'* <A HREF="athanasi.html" style="font-family:Arial;font-size:12px;" onMouseOver="Show(2)">St. Athanasius</A>',
			'* <A HREF="gnyssa.html" style="font-family:Arial;font-size:12px;" onMouseOver="Show(2)">St. Gregory of Nyssa</A>',
			'* <A HREF="basil.html" style="font-family:Arial;font-size:12px;" onMouseOver="Show(2)">St. Basil</A>',
			'* <A HREF="nazianz.html" style="font-family:Arial;font-size:12px;" onMouseOver="Show(2)">St. Gregory Nazianzen</A>',
			'* <A HREF="psdionysi.html" style="font-family:Arial;font-size:12px;" onMouseOver="Show(2)">Pseudo-Dionysius the Areopagite</A>',
			'* <A HREF="maximus.html" style="font-family:Arial;font-size:12px;" onMouseOver="Show(2)">St. Maximus Confessor</A>',
			'* <A HREF="damascus.html" style="font-family:Arial;font-size:12px;" onMouseOver="Show(2)">St. John of Damascus</A>'

);


Layer[3] =      new LayerSpecs(55,239,165,
                        '* <A HREF="editors.html#emoore" style="font-family:Arial;font-size:12px;" onMouseOver="Show(3)">Edward Moore</A>',
    			'* <A HREF="editors.html#lshaw" style="font-family:Arial;font-size:12px;" onMouseOver="Show(3)">Lewis Shaw</A>',
    			'* <A HREF="editors.html#marmelch" style="font-family:Arial;font-size:12px;" onMouseOver="Show(3)">Mar Melchizedek</A>'
);



////////////////////////////////////////////////////////////////

j = (Layer[0]) ? 0:1;

for(i=j; i<Layer.length; i++) {
        if(document.all && No3) { document.write("<SPAN onMouseOver='clearTimeout(timer)' onMouseOut='Hide("+i+")' ID='L"+i+"' STYLE='position:absolute; visibility:hidden; background:"+background+"; top:"+Layer[i].top+"; left:"+Layer[i].left+";'><TABLE STYLE='border:solid "+menu_border+" "+border_color+"'>"+Layer[i].info+"</TABLE></SPAN>"); }
        else if(document.layers && No3) { document.write("<LAYER onMouseOver='clearTimeout(timer)' onMouseOut='Hide("+i+")' ID='L"+i+"' POSITION=ABSOLUTE VISIBILITY=HIDDEN BGCOLOR='"+bgcolor+"' BACKGROUND='"+background+"' TOP="+Layer[i].top+" LEFT="+Layer[i].left+">"+Layer[i].info+"</LAYER>"); }
}

// if(document.all) { document.all["menubar"].style.visibility = "visible"; }
// else if(document.layers) { document.layers["menubar"].visibility = "visible"; }

//////////////////////////////////////////////////////////////

////SCROLL BAR////////



var ua = navigator.userAgent;
var opera = /opera [56789]|opera\/[56789]/i.test(ua);
var ie = !opera && /msie [56789]/i.test(ua);
var moz = !opera && /mozilla\/[56789]/i.test(ua);

if (ie && window.attachEvent) {
window.attachEvent("onload", function () {
var scrollBorderColor = "#CC0000";
var scrollFaceColor = "#F7EEBD";
var scrollLightColor = "#FBF6D9";
with (document.body.style) {
scrollbarDarkShadowColor = scrollBorderColor;
scrollbar3dLightColor = scrollBorderColor;
scrollbarArrowColor = "#990000";
scrollbarBaseColor = scrollFaceColor;
scrollbarFaceColor = scrollLightColor;
scrollbarHighlightColor = scrollLightColor;
scrollbarShadowColor = scrollFaceColor;
scrollbarTrackColor = "#F7EEBD";
}
});
}



