//***************************Pop Up Bottom Menu****************//
//This is only going to be used with menu items, so the messages
//here need not be dynmaic.
var description=new Array()
//student facing (virtualoffice)
description[0]='Check out the answers to all the most frequently asked questions!' //faq
description[1]='Check out the course help pages!' //help pages
description[2]='Post your questions and comments to the discussion forums.' //forums
description[3]='Can\'t find what you are looking for? Ask a question!' //qbot
description[4]='Download valuable course material.' //search
description[5]='View important dates on the course calendar.' //calendar;
description[31]='View and suggest terms and definitions for this course.' //glossary
//instructor facing (virtualoffice)
description[6]='View your account, change account details, your password, personal information, and more!' //account
description[7]='Customize the look of your site, includes colors, your logo, and much more!' //cusotmize
description[8]='Create topics to help classify information seen on the site.' //categories
description[9]='Create, edit, and delete custom webpages on your site.' //webpages
description[10]='View and edit your personal information, change your password, and more!' //account for sub users
description[11]='Create, delete, manage, and edit administrative users in your VirtualOffice.' //manage users
description[12]='Manage your image library.' //image library
description[13]='Manage your document library.' //document library
description[14]='Manage your course calendar.' //course calendar
description[15]='View your website quick stats.' //course calendar
description[16]='Create new FAQ\'s and edit or delete your existing ones.' //faq
description[17]='Create new help pages and edit or delete your existing ones.' //help
description[18]='Create new discussion forums, and delete and edit old ones.' //df
description[19]='Customize your news ticker by adding news events that link to FAQ\'s, help pages, and more!' //stats
description[20]='There are currently unanswered question(s) from your students to your Virtual TA.' //qbot
description[21]='View your website overview and detailed statistics.' //stats
description[26]='Manage, approve, and remove your registered students and website users.' //stats
description[27]='Send, reply, and view messages from your students and website users.' //message center
description[28]='Place and retrieve files for your students and website users.' //drop box
description[30]='Build a custom glossary for your students to use.' //glossary
description[32]='Manage and build your course grade book.' //glossary
//student facing (homeroom)
description[22]='View an overview of your course(s).' //homeroom main
description[23]='Manage your personal HomeRoom calendar.' //personal calendar
description[24]='Manage your HomeRoom profile.' //profile
description[25]='Add and register for courses in your HomeRoom.' //add course
description[29]='Place and retrieve files for your courses.' //add course
description[33]='Create and join study groups for your classes and school.' //add course
//do not edit below this line
var iens6=document.all||document.getElementById;
var ns4=document.layers;
var thename = '';
var theobj;
var thetext = '';
var winHeight = 0;
var winPositionFromTop = 0;
var winWidth = 0;
var startH=2;
var openTimer = '';
function setObj(text,theswitch,inwidth,inheight) {
thetext=text
if(iens6){
thename = 'viewer';
theobj=document.getElementById? document.getElementById(thename):document.all.thename
winHeight=100
if(iens6&&document.all) {
winPositionFromTop=document.body.clientHeight
winWidth=(document.body.clientWidth-document.body.leftMargin)
}
if(iens6&&!document.all) {
winPositionFromTop=window.innerHeight
winWidth=(window.innerWidth-(document.body.offsetLeft+30))
}
if(theswitch=="override") {
winWidth=inwidth
winHeight=inheight
}
theobj.style.width=winWidth
theobj.style.height=startH
if(iens6&&document.all) {
theobj.style.top=document.body.scrollTop+winPositionFromTop
theobj.innerHTML = ""
theobj.insertAdjacentHTML("BeforeEnd","
")
}
if(iens6&&!document.all) {
theobj.style.top=window.pageYOffset+winPositionFromTop
theobj.innerHTML = ""
theobj.innerHTML=""
}
}
if(ns4){
thename = "nsviewer"
theobj = eval("document."+thename)
winPositionFromTop=window.innerHeight
winWidth=window.innerWidth
winHeight=100
if(theswitch=="override") {
winWidth=inwidth
winHeight=inheight
}
theobj.moveTo(0,eval(window.pageYOffset+winPositionFromTop))
theobj.width=winWidth
theobj.clip.width=winWidth
theobj.document.write("")
theobj.document.close()
}
viewIt()
}
function viewIt() {
if(startH<=winHeight) {
if(iens6) {
theobj.style.visibility="visible"
if(iens6&&document.all) {
theobj.style.top=(document.body.scrollTop+winPositionFromTop)-startH
}
if(iens6&&!document.all) {
theobj.style.top=(window.pageYOffset+winPositionFromTop)-startH
}
theobj.style.height=startH
startH+=2
openTimer=setTimeout("viewIt()",10)
}
if(ns4) {
theobj.visibility = "visible"
theobj.moveTo(0,(eval(window.pageYOffset+winPositionFromTop)-startH))
theobj.height=startH
theobj.clip.height=(startH)
startH+=2
openTimer=setTimeout("viewIt()",10)
}
}else{
clearTimeout(openTimer)
}
}
function stopIt() {
if(iens6) {
theobj.innerHTML = ""
theobj.style.visibility="hidden"
startH=2
}
if(ns4) {
theobj.document.write("")
theobj.document.close()
theobj.visibility="hidden"
theobj.width=0
theobj.height=0
theobj.clip.width=0
theobj.clip.height=0
startH=2
}
}