//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="/in/tutor.html">Tutors Page</a>'
menu1[1]='<a href="/in/searchstudent.html">Find Student</a>'
menu1[2]='<a href="/in/vacancy-jobsearch.aspx">Find Jobs</a>'
menu1[3]='<a href="/in/account/profile.aspx">Update Profile</a>'
menu1[4]='<a href="/in/account/Calendar_monthView.aspx">Calendar</a>'
menu1[5]='<a href="/in/account/inbox.aspx">Check Messages</a>'
menu1[6]='<a href="/in/account/attmark.aspx">Mark Attendance</a>'
menu1[7]='<a href="/in/account/tutor-homework.aspx">Homework/Test</a>'
menu1[8]='<a href="/in/treg.aspx">Sign Up / Registration</a>'
menu1[9]='<a href="/in/demo.html">Demo</a>'


var menu2=new Array()
menu2[0]='<a href="/in/student.html">Students Page</a>'
menu2[1]='<a href="/in/searchstored.html">Find Tutor</a>'
menu2[2]='<a href="/in/institute-course.aspx">Find Institute</a>'
menu2[3]='<a href="/in/model-paper-s.aspx">Model Paper</a>'
menu2[4]='<a href="/in/advsearch.html">Advance Search</a>'
menu2[5]='<a href="/in/tellfriend.aspx">Tell a Friend</a>'
menu2[6]='<a href="/in/subjecttutor.html">Subject Wise Tutors</a>'
menu2[7]='<a href="/in/sreg.aspx">Sign Up / Registration</a>'

var menu3=new Array()
menu3[0]='<a href="/in/parents.html">Parents Page</a>'
menu3[1]='<a href="/in/parentguide3.html">Help in Homework</a>'
menu3[2]='<a href="/in/parentguide2.html">What Type of Tutor you Need</a>'
menu3[3]='<a href="/in/advsearch.html">Advance Search</a>'
menu3[4]='<a href="/in/preg.aspx">Sign Up / Registration</a>'

var menu4=new Array()
menu4[0]='<a href="tutor.aspx">Tutors Page</a>'
menu4[1]='<a href="searchstudent.aspx">Find Student</a>'
menu4[2]='<a href="vacancy-jobsearch.aspx">Find Jobs</a>'
menu4[3]='<a href="profile.aspx">Update Profile</a>'
menu4[4]='<a href="Calendar_monthView.aspx">Calendar</a>'
menu4[5]='<a href="inbox.aspx">Check Messages</a>'
menu4[6]='<a href="attmark.aspx">Mark Attendance</a>'
menu4[7]='<a href="tutor-homework.aspx">Homework/Test</a>'
menu4[8]='<a href="/in/demo.html">Demo</a>'



var menu5=new Array()
menu5[0]='<a href="student.aspx">Students Page</a>'
menu5[1]='<a href="searchstored.aspx">Find Tutor</a>'
menu5[2]='<a href="institute-course.aspx">Find Institute</a>'
menu5[3]='<a href="model-paper-s.aspx">Model Paper</a>'
menu5[4]='<a href="advsearch.aspx">Advance Search</a>'
menu5[5]='<a href="tellfriend.aspx">Tell a Friend</a>'
menu5[6]='<a href="subjecttutor.aspx">Subject Wise Tutors</a>'
menu5[7]='<a href="../sreg.aspx">Sign Up / Registration</a>'

var menu6=new Array()
menu6[0]='<a href="parents.aspx">Parents Page</a>'
menu6[1]='<a href="parentguide3.aspx">Help in Homework</a>'
menu6[2]='<a href="parentguide2.aspx">What Type of Tutor you Need</a>'
menu6[3]='<a href="advsearch.aspx">Advance Search</a>'
menu6[4]='<a href="../preg.aspx">Sign Up / Registration</a>'

var menu7=new Array()
menu7[0]='<a href="institute.html">Institute Features</a>'
menu7[1]='<a href="account/vacancy-manage.aspx">Manage Job Postings</a>'
menu7[2]='<a href="account/profile.aspx">Update Profile</a>'
menu7[3]='<a href="account/Calendar_monthView.aspx">Institute Calendar</a>'
menu7[4]='<a href="account/inbox.aspx">Check Messages</a>'
menu7[5]='<a href="account/mass-comm-message.aspx">Bulk Email/SMS</a>'
menu7[6]='<a href="account/noticeboard.aspx">Notice Board</a>'
menu7[7]='<a href="Advertisement.html">Advertisement</a>'
menu7[8]='<a href="account/offline-add-student.aspx">Update Student List</a>'
menu7[9]='<a href="/in/org-demo.html" target="_new">Demo</a>'

var menu8=new Array()
menu8[0]='<a href="institute.aspx">Institute Features</a>'
menu8[1]='<a href="vacancy-manage.aspx">Manage Job Postings</a>'
menu8[2]='<a href="profile.aspx">Update Profile</a>'
menu8[3]='<a href="Calendar_monthView.aspx">Institute Calendar</a>'
menu8[4]='<a href="inbox.aspx">Check Messages</a>'
menu8[5]='<a href="mass-comm-message.aspx">Bulk Email/SMS</a>'
menu8[6]='<a href="noticeboard.aspx">Notice Board</a>'
menu8[7]='<a href="s-advertisement.aspx">Advertisement</a>'
menu8[8]='<a href="offline-add-student.aspx">Update Student List</a>'
menu8[9]='<a href="/in/org-demo.html" target="_new">Demo</a>'

var menu9=new Array()
menu9[0]='<a href="/in/demo.html" target="new">Demo</a>'
menu9[1]='<a href="/in/org-demo.html" target="new">Institute Demo</a>'
menu9[2]='<a href="/in/mass-messging-demo.html">Demo of Mass Messaging </a>'
menu9[3]='<a href="/in/home_demo.html" target="new">Homework Demo</a>'

var menu10=new Array()
menu10[0]='<a href="/in/service-offer.html">Overview</a>'
menu10[1]='<a href="/in/Listing.html">Listing</a>'
menu10[2]='<a href="/in/Messaging.html">Messaging</a>'
menu10[3]='<a href="/in/class-management.html">Class Management</a>'
menu10[4]='<a href="/in/Advertisement.html">Advertisement</a>'
menu10[5]='<a href="/in/combo-package.html">Combo Packages</a>'
menu10[6]='<a href="/in/pricing.html">Pricing</a>'

var menu11=new Array()
menu11[0]='<a href="s-service-offer.aspx">Overview</a>'
menu11[1]='<a href="s-listing.aspx">Listing</a>'
menu11[2]='<a href="s-messaging.aspx">Messaging</a>'
menu11[3]='<a href="s-class-management.aspx">Class Management</a>'
menu11[4]='<a href="s-advertisement.aspx">Advertisement</a>'
menu11[5]='<a href="s-combo-package.aspx">Combo Packages</a>'
menu11[6]='<a href="s-pricing.aspx">Pricing</a>'

var menuwidth='150px' //default menu width
var menubgcolor='green' //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>')

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="z-index:100;visibility:hidden;width:160px" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')
document.write('<iframe id="dropmenuiframe" src="" style="display:none;" frameborder="0"></iframe>')

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=-500
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover") {
obj.visibility=visible
unhideIframe() }
else if (e.type=="click") {
obj.visibility=hidden
hideIframe() }
}


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")+obj.offsetWidth-62+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+25+"px"
unhideIframe()
}

return clickreturnvalue()
}

function dropdownmenu2(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")+obj.offsetWidth-77+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+25+"px"
unhideIframe()
}

return clickreturnvalue()
}

function dropdownmenu3(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")+obj.offsetWidth-71+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+25+"px"
unhideIframe()
}

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"
hideIframe()
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes") {
document.onclick=delayhidemenu//function(){
//hidemenu();
//hideIframe();
//}
}


// Hide IFrame
function hideIframe() {
var theIframe = document.getElementById("dropmenuiframe")
theIframe.style.display = "none";
}

// Unhide IFrame
function unhideIframe() {
var theIframe = document.getElementById("dropmenuiframe")
var theDiv = document.getElementById("dropmenudiv");
theIframe.style.visibility = "visible";
theIframe.style.width = theDiv.offsetWidth;
theIframe.style.height = theDiv.offsetHeight;
theIframe.style.top = theDiv.offsetTop;
theIframe.style.left = theDiv.offsetLeft;
theIframe.style.zIndex = theDiv.style.zIndex - 1;
theIframe.style.position="absolute";
theIframe.style.display = "block";
}

