
/***********************************************
* 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="introduction.htm">Introduction</a>'
menu1[1]='<a href="industry-profile.htm">Industry Profile</a>'
menu1[2]='<a href="venue.htm">Venue</a>'
menu1[3]='<a href="organizer.htm">Supporting Organizer</a>'
menu1[4]='<a href="organizers-profile.htm">Organizer’s Profile</a>'

//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<a href="category.htm">Exhibition Category</a>'
menu2[1]='<a href="stand-cost.htm">Stand space cost</a>'
menu2[2]='<a href="sample-stall.htm">Sample stall</a>'
menu2[3]='<a href="floor-plan.htm">Floor plan</a>'
menu2[4]='<a href="registration-form.htm">Registration Form</a>'
menu2[5]='<a href="sponsorship.htm">Sponsorship option</a>'
menu2[6]='<a href="exhibition.htm">Exhibition Manual </a>'
menu2[7]='<a href="terms.htm">Terms & Condition </a>'


//Contents for menu 3, and so on
var menu3=new Array()
menu3[0]='<a href="visitors-profile.htm">Visitors Profile</a>'
menu3[1]='<a href="exhibitor-list.htm">Exhibitor list</a>'
menu3[2]='<a href="accommodation.htm">Accommodation</a>'
menu3[3]='<a href="visitors-reg-form.htm">Visitors Reg.form</a>'

//Contents for menu 4, and so on
var menu4=new Array()
menu4[0]='<a href="about-sat.htm">About SAT</a>'
menu4[1]='<a href="toefl.htm">About TOEFL</a>'
menu4[2]='<a href="ielts.htm">About IELTS</a>'
menu4[3]='<a href="act.htm">About ACT</a>'
menu4[4]='<a href="lsat.htm">About LSAT</a>'
menu4[5]='<a href="application-document.htm">Application documents</a>'
menu4[6]='<a href="conduct-test.htm">Who conducts the test?</a>'
menu4[7]='<a href="take-test.htm">Who can take the test?</a>'
menu4[8]='<a href="test-cost.htm">How much does it cost?</a>'
menu4[9]='<a href="test-structure.htm">What is the test structure?</a>'
menu4[10]='<a href="how-long-test.htm">How long is my test score valid?</a>'
menu4[11]='<a href="score-universities.htm">score by the universities?</a>'
menu4[12]='<a href="remember.htm">Points to remember</a>'
menu4[13]='<a href="sat-registration.htm">SAT Registration FAQs</a>'

//Contents for menu 3, and so on
var menu5=new Array()
menu5[0]='<a href="application-basics.htm">Application basics</a>'
menu5[1]='<a href="semesters-begin.htm">When do the semesters begin?</a>'
menu5[2]='<a href="apply.htm">when should you apply?</a>'
menu5[3]='<a href="application-doc.htm">Application documents</a>'
menu5[4]='<a href="rolling-admission.htm">What is rolling admission system?</a>'
menu5[5]='<a href="early-decision.htm">What is early decision deadline?</a>'
menu5[6]='<a href="application-forms.htm">Sample Application forms</a>'
menu5[7]='<a href="essay-topics.htm">Common essay topics</a>'
menu5[8]='<a href="#">Take the IMS Diagnostic Test</a>'
menu5[9]='<a href="#">Diagnostic Test Results</a>'

var menu6=new Array()
menu6[0]='<a href="#">Sources of funding</a>'
menu6[1]='<a href="#">Financial aid options</a>'
menu6[2]='<a href="#">Other sources of funding</a>'
menu6[3]='<a href="#">Global Outreach Educational Program</a>'


var menu7=new Array()
menu7[0]='<a href="#">What is a Visa?</a>'
menu7[1]='<a href="#">Types of visas</a>'
menu7[2]='<a href="#">Cost of visa</a>'
menu7[3]='<a href="#">What is a permit?</a>'
menu7[4]='<a href="#">Eligibility</a>'
menu7[5]='<a href="#">apply for a student visa?</a>'
menu7[6]='<a href="#">Visa offices</a>'
menu7[7]='<a href="#">documents for an interview?</a>'
menu7[8]='<a href="#">Reasons for visa rejection</a>'

var menu8=new Array()
menu8[0]='<a href="philosophy.htm">IMS Philosophy</a>'
menu8[1]='<a href="undergrad-study.htm">Undergrad Study Abroad Program</a>'
menu8[2]='<a href="scholarships.htm">Scholarships</a>'
menu8[3]='<a href="loans.htm">Loans</a>'
menu8[4]='<a href="global-outreach.htm">Global Outreach Educational Program</a>'

		
var menuwidth='165px' //default menu width
var menubgcolor='#FECB09'  //menu bgcolor
var disappeardelay=150  //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

