
/***********************************************
* 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 home
var menu0=new Array()
menu0[0]='<a class="toplinks" href=""> Audio Tracks</a><br>'
menu0[1]='<a class="toplinks" href=""> Videos</a><br>'
menu0[2]='<a class="toplinks" href=""> Services</a><br>'
menu0[3]='<a class="toplinks" href=""> Help</a><br>'

//Contents for audio tracks
var menu1=new Array()
menu1[0]='<a class="toplinks" href=""> Audio Tracks</a><br>'
menu1[1]='<a class="toplinks" href=""> Videos</a><br>'
menu1[2]='<a class="toplinks" href=""> Services</a><br>'
menu1[3]='<a class="toplinks" href=""> Help</a><br>'

//Contents for student resources
var menu2=new Array()

menu2[0]='<a class="toplinks" href="../Audio/audioonline.asp"> Online Audio Files</a><br>'
menu2[1]='<a class="toplinks" href="../audio.htm"> Audio for Checkout</a><br>'
menu2[2]='<a class="toplinks" href="../Video/video.htm"> Online Video Files</a><br>'
menu2[3]='<a class="toplinks" href="../Video/video_checkold.htm"> Video for Checkout</a><br>'
menu2[4]='<a class="toplinks" href="../languageResources.asp"> Language Learning Resources</a><br>'
menu2[5]='<a class="toplinks" href="../language_keyboard.htm"> Inputting Foreign Characters</a><br>'
menu2[6]='<a class="toplinks" href="../studentpractice/studentviewcourseselect.aspx"> Online Practice Program</a><br>'
//menu2[3]='<a class="toplinks" href="http://builder.com"> LINK 4</a><br>'

//Contents for faculty resources
var menu3=new Array()
menu3[0]='<a class="toplinks" href="http://forlanglab.lsu.edu/LabReservationSystem2005/"> Lab Reservation </a><br>'
menu3[1]='<a class="toplinks" href="../reservation_policies.htm"> Reservation Policies</a><br>'
menu3[2]='<a class="toplinks" href="../checkout_policies.htm"> Checkout Policies</a><br>'
menu3[3]='<a class="toplinks" href="../training_seminars.htm"> Training Seminars</a><br>'
menu3[4]='<a class="toplinks" href="../related_links.htm"> Related Links</a><br>'
menu3[5]='<a class="toplinks" href="../StudentPractice/frmLogin.aspx"> Web Administration</a><br>'
menu3[6]='<a class="toplinks" href="../StudentPractice/frmLogin.aspx"> Practice Exercises</a><br>'



//Contents for facilities
var menu4=new Array()
menu4[0]='<a class="toplinks" href="../Facilities/room249.htm"> Room 249 - Main Office </a><br>'
menu4[1]='<a class="toplinks" href="../Facilities/room214and216.htm"> Room 214/216 - PC Lab</a><br>'
menu4[2]='<a class="toplinks" href="../Facilities/room234.htm"> Room 234 - Video Room</a><br>'
menu4[3]='<a class="toplinks" href="../Facilities/room230.htm"> Room 234 - PC Lab</a><br>'
menu4[4]='<a class="toplinks" href="../Facilities/room226.htm"> Room 226 - Mac Lab</a><br>'
menu4[5]='<a class="toplinks" href="../Facilities/room138.htm"> Room 138 - Mac Lab</a><br>'
menu4[6]='<a class="toplinks" href="../Facilities/room253.htm"> Room 253 - Digital Media Room</a><br>'

//Contents for resources
var menu5=new Array()
menu5[0]='<a class="toplinks" href="../equipment.htm"> Equipment</a><br>'
menu5[1]='<a class="toplinks" href="../software.htm"> Software</a><br>'

//Contents for hours and contact
var menu6=new Array()
menu6[0]='<a class="toplinks" href="http://www.javascriptkit.com"> lINK 1</a><br>'
menu6[1]='<a class="toplinks" href="http://www.freewarejava.com"> lINK 2</a><br>'
menu6[2]='<a class="toplinks" href="http://codingforums.com"> LINK 3</a><br>'
menu6[3]='<a class="toplinks" href="http://builder.com"> LINK 4</a><br>'

//Contents for personnel
var menu7=new Array()
menu7[0]='<a class="toplinks" href="../Personnel Pages/personnel_dir.htm"> Director</a><br>'
menu7[1]='<a class="toplinks" href="../Personnel Pages/personnel_grada.htm"> Graduate Assistants</a><br>'
menu7[2]='<a class="toplinks" href="../Personnel Pages/personnel_supvr.htm"> Supervisors</a><br>'
//menu7[3]='<a class="toplinks" href="../Personnel Pages/personnel_staff.htm"> Staff</a><br>'
		
var menuwidth='165px' //default menu width
var menubgcolor='white'  //menu bgcolor
var disappeardelay=100  //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=-500
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 windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
}
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

//banner rotation
function ry(adddotdot)
{
	ry=Math.round(Math.random()*3+1);
	q=document.images[1].src= (adddotdot ? "../" : "" ) + "images/banner"+ry+".jpg"
//alert(a)
}

