// Only put the quicklink box in IF Javascript is enabled
// It is useless otherwise

function openLink(selectbox) { 
	var newIndex = selectbox.selectedIndex; 
	if ( newIndex != 0 && selectbox.options[newIndex].value.length > 0 ) {
		window.location.assign(selectbox.options[newIndex].value); 
	}
} 

document.write("<div id=\"quicklink\">");
document.write("    <form name=\"fquicklink\">");
document.write("        <select name=\"linkname\" onChange=\"openLink(this)\">");
document.write("            <option>Quick Links</option>");
document.write("            <option>---------------------------------</option>");
document.write("                <option value=\"/about/directions.html\">&nbsp;&#8226; Phone / Hours / Directions</option>");
document.write("                <option value=\"/services/museum_passes.html\">&nbsp;&#8226; Museum Passes</option>");
document.write("                <option value=\"http://www.eventkeeper.com/code/events.cfm?curOrg=WILM\" target=\"blank\">&nbsp;&#8226; Calendar of Events</option>");
document.write("                <option value=\"http://catalog.mvlc.org/ipac20/ipac.jsp?profile=mwl&menu=search#focus\">&nbsp;&#8226; Library Catalog</option>");
document.write("                <option value=\"http://catalog.mvlc.org/ipac20/ipac.jsp?profile=mwl&menu=account#focus\">&nbsp;&#8226; My Account</option>");
document.write("                <option value=\"/about/friends.html\">&nbsp;&#8226; Friends of the Library</option>");
document.write("                <option value=\"/assign_alert.html\">&nbsp;&#8226; Teacher Assignment Alert</option>");
document.write("                <option value=\"/contact.html\">&nbsp;&#8226; Contact Us</option>");
document.write("            <option>---------------------------------</option>");
document.write("        </select>");
document.write("    </form>");
document.write("</div>");