/***********************************************
* 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 menu 1
var menu1=new Array()
menu1[0]='<a href="http://www.ocen.org/">Online College Courses</a>'
menu1[1]='<a href="http://www.ocen.org/online-college-degrees-information.html">Online College Degrees Information</a>'
menu1[2]='<a href="http://www.ocen.org/future-online-college-education.html">Future in Online College Education</a>'
menu1[3]='<a href="http://www.ocen.org/pros-cons-distance-learning.html">Pros and Cons of Distance Learning</a>'
menu1[4]='<a href="http://www.ocen.org/candidates-distance-learning.html">Candidates for Distance Learning</a>'
menu1[5]='<a href="http://www.ocen.org/online-education-questionaire.html">Online Education Questionnaire</a>'
menu1[6]='<a href="http://www.ocen.org/online-course-misconduct.html">Online Course Misconduct</a>'
menu1[7]='<a href="http://www.ocen.org/distance-learning-education.html">Distance Learning Education Success Skills</a>'
menu1[8]='<a href="http://www.ocen.org/online-continuing-education.html">Online Continuing Education</a>'
menu1[9]='<a href="http://www.ocen.org/why.html">Why Study Online?</a>'
menu1[10]='<a href="http://www.ocen.org/how.html">How Online Classes Work</a>'
menu1[11]='<a href="http://www.ocen.org/evaluation.html">Evaluation</a>'

//Contents for menu 2
var menu2=new Array()
menu2[0]='<a href="http://www.ocen.org/traditional-online-choose.html">Traditional or Online: How do I Choose?</a>'
menu2[1]='<a href="http://www.ocen.org/setting-goals.html">Setting Goals</a>'
menu2[2]='<a href="http://www.ocen.org/tips-online-learning.html">Tips for Online Learning</a>'
menu2[3]='<a href="http://www.ocen.org/accreditation-status.html">Accreditation Status</a>'
menu2[4]='<a href="http://www.ocen.org/institutions.html">Institutions</a>'
menu2[5]='<a href="http://www.ocen.org/quality.html">Quality of Schools</a>'
menu2[6]='<a href="http://www.ocen.org/right.html">Is it Right for Me?</a>'

//Contents for menu 3
var menu3=new Array()
menu3[0]='<a href="http://www.ocen.org/financial-assistance-distance-learning.html">Financial Assistance for Distance Learning</a>'
menu3[1]='<a href="http://www.ocen.org/onlinescholarships.html">Online Scholarships</a>'

//Contents for menu 4
var menu4=new Array()
menu4[0]='<a href="http://www.ocen.org/online-college-programs.html">Online College Programs</a>'
menu4[1]='<a href="http://www.ocen.org/trade-programs.html">Trade Programs</a>'
menu4[2]='<a href="http://www.ocen.org/study.html">Areas of Study</a>'
menu4[3]='<a href="http://www.ocen.org/business.html">Areas of Business</a>'
menu4[4]='<a href="http://www.ocen.org/curriculum.html">Curriculum</a>'
menu4[5]='<a href="http://www.ocen.org/types.html">Types of Degrees</a>'

//Contents for menu 5
var menu5=new Array()
menu5[0]='<a href="http://www.ocen.org/careercounseling.html">Career Counselling</a>'
menu5[1]='<a href="http://www.ocen.org/technical-requirements.html">Technical Requirements</a>'
menu5[2]='<a href="http://www.ocen.org/timemanagement.html">Time Management</a>'
menu5[3]='<a href="http://www.ocen.org/online-college-resources.html">Online College Resources</a>'
menu5[4]='<a href="http://www.ocen.org/online-education-terminology.html">Online Education Terminology</a>'
menu5[5]='<a href="http://www.ocen.org/used-textbooks.html">Used Textbooks</a>'
menu5[6]='<a href="http://www.ocen.org/faq.html">FAQs</a>'
menu5[7]='<a href="http://www.ocen.org/links.html">Links</a>'

//Contents for menu 6
var menu6=new Array()
menu6[0]='<a href="http://www.ocen.org/articles.html">Articles at a Glance</a>'
menu6[1]='<a href="http://www.ocen.org/article1-ten-hottest-careers.html">Ten Hottest Careers</a>'
menu6[2]='<a href="http://www.ocen.org/article2-higher-education.html">Higher Education @ Net Speed</a>'
menu6[3]='<a href="http://www.ocen.org/article3-types-of-online-degrees.html">Types of Online Degrees</a>'
menu6[4]='<a href="http://www.ocen.org/article4-mla-writing-style-apa-writing-style.html">MLA Writing Style vs APA Writing Style</a>'
		
var menuwidth='165px' //default menu width
var menubgcolor='#F9FBFF'  //menu bgcolor
var disappeardelay=250  //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="-500px"
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 topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
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){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
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

