var oldList = '';

function hideList()
{
if (navigator.appName == "Netscape")
{
 		if (oldList)
		{
		 document.layers[oldList].visibility = 'hidden';
		 document.layers[oldList].zIndex = -100;
		}
}
else
{
 		if (oldList)
		{
		
		 document.all[oldList].style.visibility = 'hidden';
		 document.all[oldList].style.zIndex = -100;
		}
}		
}

function showList(listName)
{
if (navigator.appName == "Netscape")
{
 		if (oldList)
		{
		 document.layers[oldList].visibility = 'hidden';
		 document.layers[oldList].zIndex = -100;
		}
 		document.layers[listName].visibility = 'visible';
		document.layers[listName].zIndex = 400;
		oldList = listName;
}
else
{
 		if (oldList)
		{
		
		 document.all[oldList].style.visibility = 'hidden';
		 document.all[oldList].style.zIndex = -100;
		}
 		document.all[listName].style.visibility = 'visible';
		document.all[listName].style.zIndex = 400;
		oldList = listName;
}		
}

function link_menu()
{
var link_text= "<a class='vertnav' onmouseover='javascript:hideList();' onmouseout='javascript:hideList();' href='index.html'>Eberly Home</a>"
+"<a class='vertnav' href='about.html' onmouseover='javascript:hideList();showList(\"about\");' onclick='javascript:hideList();'>About the Library</a>"
+"<a class='vertnav' href='books.html' onmouseover='javascript:hideList();'>Finding Books</a>"
+"<a class='vertnav' href='articles.html' onmouseover='javascript:hideList();'>Finding Articles</a>"
+"<a class='vertnav' href='videos.html' onmouseover='javascript:hideList();'>Finding DVD\'s, Videos &amp; CD\'s</a>"
+"<a class='vertnav' href='resources.html' onmouseover='javascript:hideList();'>Finding Internet Resources</a>"
+"<a class='vertnav' href='reserved.html' onmouseover='javascript:hideList();'>Finding Reserve Readings</a>"
+"<a class='vertnav' href='help.html' onmouseover='javascript:hideList();'>Ask a Librarian</a>"
+"<a class='vertnav' href='faculty_help.html' onmouseover='javascript:hideList();'>Resources for Faculty</a>"
+"<a class='vertnav' href='faith_learning.html' onmouseover='javascript:hideList();'>Faith and Learning Resources</a>"
+"<br>"
+"<span class='blurbage'> Who do I contact for:</span><br>"
+"<a class='vertnav' href='wylie.html' onmouseover='javascript:hideList();'>Book or Journal Orders</a>"
+"<a class='vertnav' href='redd.html' onmouseover='javascript:hideList();'>Audiovisual Media Orders</a>"
+"<a class='vertnav' href='ill_form.html' onmouseover='javascript:hideList();'>Interlibrary Loan Requests</a>"
//+"<a class='vertnav' href='book_form.html' onmouseover='javascript:hideList();'>Books from Eberly Library</a>"
+"<a class='vertnav' href='redd.html' onmouseover='javascript:hideList();'>Scheduling Library Orientations</a>"
+"<a class='vertnav' href='wylie.html' onmouseover='javascript:hideList();'>General Library Concerns</a>"
document.write(link_text);
}


function about_menu()
{
var menu_text = "<a class='rollovernav' href='collections.html' >Library Collections</a>"
+"<a class='rollovernav'  href='mission.html'>Mission</a>"
+"<a class='rollovernav'  href='hours.html'>Library Hours</a>"
+"<a class='rollovernav'  href='staff.html'>Staff Directory</a>"
+"<a class='rollovernav'  href='policies.html'>Policies and Guidelines</a>"
+"<a class='rollovernav'  href='ill_form.html'>Interlibrary Loan</a>";

document.write(menu_text);



}

function show_book(form)
{
if (document.layers) 
{
book_div=document.book;
article_div=document.article;
book_div.visibility = "visible";
article_div.visibility = "hidden";
}
else if (document.all)
{
book_div=document.all.book.style;
article_div=document.all.article.style;
book_div.visibility = "visible";
article_div.visibility = "hidden";
}
else if (document.getElementById)
{
book_div=document.getElementById("book").style;
article_div=document.getElementById("article").style;
book_div.visibility = "visible";
article_div.visibility = "hidden";
}
}

function show_article(form)
{
if (document.layers) 
{
book_div=document.book;
article_div=document.article;
book_div.visibility = "hidden";
article_div.visibility = "visible";
}
else if (document.all)
{
book_div=document.all.book.style;
article_div=document.all.article.style;
book_div.visibility = "hidden";
article_div.visibility = "visible";
}
else if (document.getElementById)
{
book_div=document.getElementById("book").style;
article_div=document.getElementById("article").style;
book_div.visibility = "hidden";
article_div.visibility = "visible";
}
}


