var GlobalMenuItem = "";
function MenuRollOver(MenuItem, Over) {
	if (GlobalMenuItem) {
		eval ("document.images." + GlobalMenuItem + ".src = 'http://atmail.com/images/header_menu_item_" + GlobalMenuItem + ".gif'");
	}
	if (Over == true) {
		eval ("document.images." + MenuItem + ".src = 'http://atmail.com/images/header_menu_item_" + MenuItem + "_over.gif'");
	}
	GlobalMenuItem = MenuItem;
}


//Contents for Solutions
var About = new Array();
About[0] = "<a href='company profile.html'>Company Profile</a>";
About[1] = "<a href='mission.html'>Mission Statement</a>";
About[2] = "<a href='coverage.html'>Network Coverage</a>";
//About[2] = "<a href='Airport.html'>Airport Information</a>";
//Contents for Support

var Home = new Array();
Home[0] = "<a href='sponsorships.html'>Sponsorships</a>";
Home[1] = "<a href='promotions.html'>Promotions</a>";
/*Services[2] = "<a href='Ramp_Handling.html'>Ramp Handling</a>";
Services[3] = "<a href='Executive_Aviation.html'>Executive Aviation</a>";
Services[4] = "<a href='Crew_Transportation.html'>Crew Transportation</a>";*/

var Dealer = new Array();
Dealer[0] = "<a href='zantel shops.html'>Zantel Shops</a>";
Dealer[1] = "<a href='national dealers.html'>National Dealers</a>";
Dealer[2] = "<a href='regional dealers.html'>Regional Dealers</a>";

var Roaming = new Array();
Roaming[0] = "<a href='int roaming.html'>International roaming</a>";
Roaming[1] = "<a href='roaming partners.html'>Roaming Partners & Tariff</a>";

var Customer = new Array();
Customer[0] = "<a href='GSM_EZ pay.html'>Corporate Customers</a>";
Customer[1] = "<a href='customer care.html'>FAQs</a>";
Customer[2] = "<a href='SIM_FAQs.html'>SIM Registration</a>";

var Careers = new Array();
Careers[0] = "<a href='GSM_EZ pay.html'>Corporate Customers</a>";
Careers[1] = "<a href='customer care.html'>FAQs</a>";
Careers[2] = "<a href='SIM_FAQs.html'>SIM Registration</a>";


var product = new Array();
product[0] = "<a href='1_sh_per_sec.html'>1 Tsh PER SECOND</a>";
product[1] = "<a href='cdma.html'>ZCONNECT</a>";
product[2] = "<a href='GPRS.html'>GPRS</a>";
product[3] = "<a href='MMS.html'>MMS</a>";
product[4] ="<a href='http://ztunes.zantel.com/user/loginindex.screen'>ZTUNES</a>";

//product[4] = "<a href='babkubwa moja.html'>BABKUBWA MOJA</a>";
product[5] = "<a href='int calls.html'>INTERNATIONAL CALLS</a>";
product[6] = "<a href='flat tariff.html'>SAWA SAWA TARIFF</a>";
product[7] = "<a href='Zbiashara.html'>Z BIASHARA</a>";
product[8] = "<a href='zpesa.html'>Z PESA</a>";


//product[9] = "<a href='babkubwa extra.html'>BABKUBWA EXTRA</a>";

//Contents for Search
var Search = new Array();
Search[0] = "<div id='menusearch'> <form action='http://atmail.com/search.php' method='post' name='searchform'><input class='searchinput' class='form' name='search' size='15' style='width:60%'>  <input class='form' type='submit' name='Submit2' value='Search'></div>";


var menuwidth = "260px" //default menu width
var menubgcolor = "#ffffff"; //menu bgcolor
var disappeardelay = 250; //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick = "no" //hide menu when user clicks within menu?

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=-500
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='800';
//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 windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
}
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"
dropmenuobj.style.filter = "alpha(opacity=" + 90 + ")";
dropmenuobj.style.opacity = "0.90";

}

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 (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
