// JavaScript Document
//Contents for menu 1
var contactus=new Array()

contactus[0]='<a href="contactview.html">Contact Form</a>';
contactus[1]='<a href="addresses.html">Addresses</a>';
contactus[2]='<a  href="http://www.jinansystem.com/application/applicant/" target="_blank">Undergraduate Applicants</a>';
contactus[3]='<a  href="http://www.jinansystem.com/application/applicant/" target="_blank">Graduate Applicants</a>';
contactus[4]='<a href="allsites.html">All Web Sites</a>';


var news=new Array()

news[0]='<a href="http://www.jinan.edu.lb/index0.htm" class="mail" target="_blank" >News & Events</a>';
news[1]='<a href="http://www.jinan.edu.lb/index0.htm" class="mail" target="_blank" >Archive</a>';

var prospective=new Array()

//prospective[0]='<a href="brief.html">In Brief</a>';
//prospective[1]='<a href="around.html">Getting Around</a>';

prospective[0]='<a href="transferstud.html">Transfer Students</a>';
prospective[1]='<a href="entranceexams.html">Entrance Exams</a>';

prospective[2]='<a href="admissionreq.html">Admission Requirements</a>';
prospective[3]='<a href="registrationproc.html">Registration Procedure</a>';
prospective[4]='<a href="financialstud.html">Financial</a>';
prospective[5]='<a href="calendar.html">Academic Calendar</a>';

prospective[6]='<a  href="http://www.jinansystem.com/application/applicant/" target="_blank">Undergraduate Applicants </a>';
prospective[7]='<a  href="http://www.jinansystem.com/application/applicant/" target="_blank">Graduate Applicants</a>';
prospective[8]='<a href="future.html">Planning Your Future</a>';

var affairs=new Array()

//affairs[0]='<a href="inbrief.html">In Brief</a>';
affairs[0]='<a href="acadoffices.html">Academic Offices </a>';
affairs[1]='<a href="guideac.html">Academic Guides</a>';
affairs[2]='<a href="financialstud.html">Financial</a>';
affairs[3]='<a href="scholarshipsproc.html">Scholarships Procedure</a>';
affairs[4]='<a href="policies.html">Policies</a>';

var campus=new Array()

campus[0]='<a href="campusoverview.html">OverView </a>';
campus[1]='<a href="annualevents.html">Annual Events</a>';
campus[2]='<a href="facilities.html">Facilities and Services</a>';
//campus[2]='<a href="arts.html">Arts, Events & Exhibitions</a>';
campus[3]='<a href="athletics.html">Athletics & Fitness </a>';

campus[4]='<a href="jinanlabs.html">Jinan Labs </a>';
//campus[5]='<a href="housing.html">Housing & Dining </a>';
//campus[6]='<a href="theater.html">Theater</a>';
//campus[7]='<a href="religious.html">Religious Life</a>';
//campus[8]='<a href="studentorg.html">Student Organizations</a>';
//campus[9]='<a href="visitingcampus.html">Visiting Campus</a>';
//campus[10]='<a href="campustours.html">campus Tours</a>';
campus[5]='<a href="gettingtocampus.html">Getting to campus</a>';
campus[6]='<a href="halls.html">Halls</a>';









 
     
	 
     
      
       
       
        
		   
         
          
          
    




		
var menuwidth='110px' //default menu width
var menubgcolor='#cccccc'  //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
