var menu1=new Array()
menu1[0]='<a href="http://mtnldelhi.in/glance/organization.htm">Organisational Setup</a>'
menu1[1]='<a href="http://mtnldelhi.in/customer/contactus.htm">Contact Us</a>'
menu1[2]='<a href="http://cricket.mtnldelhi.in/feedback_form/feedback_form.jsp">Feedback</a>'
menu1[3]='<a href="http://enewsletter.mtnldelhi.in/emag/">E-Newsletter</a>'

var menu2=new Array()
menu2[0]='<a href="http://mtnl.in/chairman.htm">Message from CMD</a>'
menu2[1]='<a href="http://mtnl.in/directors.htm">Board of Director</a>'
menu2[2]='<a href="http://mtnl.in/mission.htm">Mission</a>'
menu2[3]='<a href="http://mtnl.in/vision.htm">Vision</a>'
menu2[4]='<a href="http://mtnl.in/network/index.htm">Network Structure</a>'
menu2[5]='<a href="http://mtnl.in/growth/index.htm">Growth & Achivement</a>'

menu2[6]='<a href="http://mtnl.in/custmer_care.htm">Customer Care</a>'


var menu3=new Array()
menu3[0]='<a href="http://mtnldelhi.in/dolphin/index1.htm">Dolphin/Trump</a>'
menu3[1]='<a href="http://mtnldelhi.in/services/garuda_index.htm">Garuda/CDMA</a>'
menu3[2]='<a href="http://mtnldelhi.in/services/broadband.htm">Triband Broadband</a>'
menu3[3]='<a href="http://mtnldelhi.in/services/internet.htm">Internet Services</a>'
menu3[4]='<a href="http://mtnldelhi.in/services/iptv.htm">IPTV</a>'
menu3[5]='<a href="http://wifine.mtnl.net.in/">Wi-Fine</a>'
menu3[6]='<a href="http://mtnldelhi.in/commercial/basic_tariff.htm">Basic Landline</a>'
menu3[7]='<a href="http://mtnldelhi.in/services/freephone.htm">Intelligent Network</a>'
menu3[8]='<a href="http://mtnldelhi.in/services/isdn.htm">ISDN</a>'
menu3[9]='<a href="http://mtnldelhi.in/services/leasedcircuit.htm">Leased circuit</a>'
menu3[10]='<a href="http://mtnltrustline.com/">Digital Certificate</a>'
menu3[11]='<a href="http://mtnldelhi.in/services/nationaltrunk.htm">Trunk Service</a>'
menu3[12]='<a href="http://mtnltrustline.com/">Digital Certificate</a>'
menu3[13]='<a href="http://mtnldelhi.in/commercial/indiaone_tariff2.htm">MTNL OneIndia</a>'
menu3[14]='<a href="http://mtnldelhi.in/services/mpls.htm">MPLS/VPN</a>'



var menu4=new Array()
menu4[0]='<a href="http://mtnldelhi.in/dolphin/dolphin_tariff_new.htm">Dolphin/Trump GSM</a>'
menu4[1]='<a href="http://mtnldelhi.in/services/garuda_tariff.htm">Garuda/CDMA</a>'
menu4[2]='<a href="http://mtnldelhi.in/commercial/broadband_tariff.htm">Triband Broadband</a>'
menu4[3]='<a href="http://mtnldelhi.in/commercial/internet_tariff.htm">Internet Services</a>'
menu4[4]='<a href="http://mtnldelhi.in/commercial/iptv_tariff.htm">IPTV</a>'
menu4[5]='<a href="http://mtnldelhi.in/commercial/basic_tariff.htm">Basic Landline</a>'
menu4[6]='<a href="http://mtnldelhi.in/commercial/network_tariff.htm">Intelligent Network</a>'
menu4[7]='<a href="http://mtnldelhi.in/commercial/isdn_tariff.htm">ISDN</a>'
menu4[8]='<a href="http://mtnldelhi.in/services/leasedcircuit1.htm">Leased circuit</a>'
menu4[9]='<a href="http://mtnldelhi.in/commercial/indiaone_tariff.htm">MTNL OneIndia</a>'
menu4[10]='<a href="http://mtnldelhi.in/commercial/mpls_vpn.htm">MPLS/VPN</a>'


var menu5=new Array()
menu5[0]='<a href="http://mtnldelhi.in/forms/index.htm">Forms</a>'
menu5[1]='<a href="javascript:opensearchlevel1();">Broadband User-Guide</a>'


var menu6=new Array()
menu6[0]='<a href="http://customercare.mtnldelhi.in/">Online Support</a>'
menu6[1]='<a href="http://mtnldelhi.in/customer/billassistance.htm">Billing</a>'
menu6[2]='<a href="http://mtnldelhi.in/gm_dgm.htm">Contact details of senior officers of MTNL </a>'
menu6[3]='<a href="http://mtnldelhi.in/customer/nodal_officer.htm">List of Nodal Officers</a>'
menu6[4]='<a href="http://mtnldelhi.in/services/mtnl_dist.htm">List of Distributors of MTNL products & Services</a>'
menu6[5]='<a href="http://mtnldelhi.in/commercial/retail_outlet.htm">MTNL products at Oxigen Relail</a>'
menu6[6]='<a href="http://mtnldelhi.in/customer/contactus.htm">Helpline</a>'
menu6[7]='<a href="http://mtnldelhi.in/customer/zone.htm">Public Grievance</a>'
menu6[8]='<a href="http://mtnldelhi.in/customer/faq.htm">FAQs</a>'
menu6[9]='<a href="http://mtnl.in/rti_act_index.htm">RTI</a>'

var menu7=new Array()
menu7[0]='<a href="http://mtnl.in">Corporate site</a>'
menu7[1]='<a href="http://mtnlmumbai.in/">Mumbai Site</a>'
menu7[2]='<a href="http://mtnldelhi.in/">Delhi Site</a>'
menu7[3]='<a href="http://billecs.mtnldelhi.in/">Payment Portal</a>'
menu7[4]='<a href="http://customercare.mtnldelhi.in/">Customer Care</a>'
menu7[5]='<a href="http://mtnltrustline.com/">Mtnl Trustline</a>'
menu7[6]='<a href="http://etender.mtnldelhi.in/">E-Tendering Site</a>'
menu7[7]='<a href="http://wifine.mtnl.net.in/">Wifine</a>'
menu7[8]='<a href="http://anmol.bol.net.in/">Internet Telephony</a>'
menu7[9]='<a href="http://phonebook.bol.net.in/">Directory Site</a>'
menu7[10]='<a href="http://cettm.mtnl.in">Training Centre</a>'
menu7[11]='<a href="http://enewsletter.mtnldelhi.in">ENewsletter</a>'
menu7[12]='<a href="http://sms.mtnl.net.in">Web2Mobile</a>'
menu7[13]='<a href="http://intranet.mtnldelhi.in">Intranet</a>'





var menuwidth='100px' //default menu width
var menubgcolor='white'  //menu bgcolor
var disappeardelay=50  //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="-900px"
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
