
var menu1=new Array()
menu1[1]='<a href="governing_body.html" class="header_menu">Governing Body</a>'
menu1[2]='<a href="principal_desk.html" class="header_menu">Principal’s Desk</a>'
menu1[3]='<a href="past_principal.html" class="header_menu">Principal’s of the College</a>'

var menu2=new Array()
menu2[1]='<a href="college_history.html" class="header_menu">History</a>'
menu2[2]='<a href="vision.html" class="header_menu">Vision & Mission</a>'
menu2[3]='<a href="photogallery.html" class="header_menu">Photo Gallery</a>'
menu2[4]='<a href="research.html" class="header_menu">Research</a>'


var menu3=new Array()
menu3[1]='<a href="commerce.html" class="header_menu">Commerce</a>'
menu3[2]='<a href="economics.html" class="header_menu">Economics</a>'
menu3[3]='<a href="mathematics.html" class="header_menu">Mathematics</a>'
menu3[4]='<a href="bengali.html" class="header_menu">Bengali</a>'
menu3[5]='<a href="english.html" class="header_menu">English</a>'
menu3[6]='<a href="hindi.html" class="header_menu">Hindi</a>'
menu3[7]='<a href="education.html" class="header_menu">Education</a>'
menu3[7]='<a href="political_science.html" class="header_menu">Political Science</a>'



var menu4=new Array()
menu4[1]='<a href="teaching.html" class="header_menu">Teaching</a>'
menu4[2]='<a href="non_teaching.html" class="header_menu">Non-Teaching</a>'



var menu5=new Array()
menu5[1]='<a href="admission_procedure.html" class="header_menu">Admission Procedure</a>'
menu5[2]='<a href="academic_session.html" class="header_menu">Academic Session</a>'
menu5[3]='<a href="academic_calender.html" class="header_menu">Academic Calendar</a>'
menu5[4]='<a href="examination.html" class="header_menu">Examination</a>'

var menu6=new Array()
menu6[1]='<a href="std_activities.html" class="header_menu">Activities</a>'
menu6[2]='<a href="career.html" class="header_menu">Career Guidance</a>'
menu6[3]='<a href="allumni.html" class="header_menu">Alumni & Association </a>'
menu6[4]='<a href="coaching.html" class="header_menu">Remedial Coaching </a>'


var menu7=new Array()
menu7[1]='<a href="contact_details.html" class="header_menu">Contact Details</a>'
menu7[2]='<a href="college_location.html" class="header_menu">Location & Map</a>'
menu7[3]='<a href="enquiry.php" class="header_menu">Feedback & Enquiry</a>'
menu7[4]='<a href="http://www.agcbosecollege.org/webmail" class="header_menu">Members</a>'









var menuwidth='150px' //default menu width
var menuheight='' //default menu height

var menubgcolor=''  //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+';  height:'+menuheight+'; 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"
//alert(clearbrowseredge(obj, "bottomedge"));
dropmenuobj.style.top=dropmenuobj.y-0+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;


