// if (document.all.clicksound==null){ //uncomment this line if you plan on having multiple navbars on one web page
//used for storing the sound position in the web page
document.write('<bgsound id="oversound">');
document.write('<bgsound id="clicksound">');


	var AgntUsr=navigator.userAgent.toLowerCase();
	var DomYes=document.getElementById?1:0;
	var NavYes=AgntUsr.indexOf('mozilla')!=-1&&AgntUsr.indexOf('compatible')==-1?1:0;
	var ExpYes=AgntUsr.indexOf('msie')!=-1?1:0;
	var Opr=AgntUsr.indexOf('opera')!=-1?1:0;
	var DomNav=DomYes&&NavYes?1:0;
 	var DomExp=DomYes&&ExpYes?1:0;
	var Nav4=NavYes&&!DomYes&&document.layers?1:0;
	var Exp4=ExpYes&&!DomYes&&document.all?1:0;
	var PosStrt=(NavYes||ExpYes)&&!Opr?1:0;


if (document.images) {
	//Button Image definitions go here		!!!!!
//***************   START IMAGE DEFINITION    **********************//
//** test IMAGE START **//
                test0_over=new Image(263, 29);
                test0_over.src="test0_over.gif";
                test0_off=new Image(263, 29);
                test0_off.src="test0.gif";

                test1_over=new Image(523, 29);
                test1_over.src="test1_over.gif";
                test1_off=new Image(523, 29);
                test1_off.src="test1.gif";

                test2_over=new Image(783, 29);
                test2_over.src="test2_over.gif";
                test2_off=new Image(783, 29);
                test2_off.src="test2.gif";

                test3_over=new Image(1043, 29);
                test3_over.src="test3_over.gif";
                test3_off=new Image(1043, 29);
                test3_off.src="test3.gif";

                test4_over=new Image(1303, 29);
                test4_over.src="test4_over.gif";
                test4_off=new Image(1303, 29);
                test4_off.src="test4.gif";

                test5_over=new Image(1563, 29);
                test5_over.src="test5_over.gif";
                test5_off=new Image(1563, 29);
                test5_off.src="test5.gif";

                test6_over=new Image(1823, 29);
                test6_over.src="test6_over.gif";
                test6_off=new Image(1823, 29);
                test6_off.src="test6.gif";

                test7_over=new Image(2083, 29);
                test7_over.src="test7_over.gif";
                test7_off=new Image(2083, 29);
                test7_off.src="test7.gif";

                test8_over=new Image(2343, 29);
                test8_over.src="test8_over.gif";
                test8_off=new Image(2343, 29);
                test8_off.src="test8.gif";

                test9_over=new Image(2605, 29);
                test9_over.src="test9_over.gif";
                test9_off=new Image(2605, 29);
                test9_off.src="test9.gif";

//** test IMAGE END **//



//***************   END IMAGE DEFINITION    **********************//
               }  //CLOSING FOR IMAGE DEFINITION AREA

               
//***************   START MENU DEFINITION    **********************//
//** test MENU START **//
var test_Menu = new Array();
test_Menu[0] = new Array("test1",1,115,"About Us","zoo.html","MZS Council Members","MZS.html","Key Personnel","KPersonnel.html","The 5 Pillars We Stand","pillars.html","A Journey Through Time","Microsoft%20Word%20-%20Journeythroughtime.pdf","Diary","diary.html","Conference","conference.html","Training","training_external.html","Careers","jobs.html");
test_Menu[1] = new Array("test2",1,115,"Opening Hours & Rates","openinghours.html","Zoo Map","map.html","Getting There","gettingthere.html","Food & Souvenir Kiosk","fnboutlet.html","Other Facilities","facilities.html","Show Times","showtime.html","Snapshot With Animals","snapshot.html","Rides","rides.html");
test_Menu[2] = new Array("test3",1,115,"Birthdays","birthday.html","Family Day","familyday.html","Scenic Points For Functions","scenicpoint.html","Kancil Hall","kancilhall.html","Tunku Abdul Rahman Theatre","theatre.html");
test_Menu[3] = new Array("test4",1,115,"Adopt Our Animals","adopt.html","List of Donors/ Sponsors ","sponsor07.html","Be A Volunteer","volunteerprogram.html","Student Training","student.html");
test_Menu[4] = new Array("test5",1,115,"Newspaper Articles","newspaper01.html","Annual Reports ","annualreport.html","Archive ","newsarchive.html");
test_Menu[5] = new Array("test6",1,115,"Animals In CITES","conservation.html","Research Paper On Milky Storks","rp_milkystorks.html","Research Paper on False Gharial","rp_falsegharial.html");
test_Menu[6] = new Array("test7",1,115,"Educational Packages","edu_packages.html","Educational Materials","edu_materials.html","Fun & Games ","edu_fun&games.html");
test_Menu[7] = new Array("test8",1,115,"Reptile Park","exhibits.html","Amphibian World","amphibian.html","Monkeys/Lesser Apes","ex_monkey.html","Malaysian Elephants","ex_elephants.html","Lake Birds","ex_lakebirds.html","Bird Aviary","ex_birdaviary.html","Nocturnal Exhibits","ex_nocturnal.html","Wallaby/Kangaroo/...","ex_wallaby.html","Humbolt Penguin","ex_humbolt.html","Children's World","ex_childrens.html","Bear Complex","ex_bear.html","Savannah Walk","ex_savannah.html","Nile Hippopotamus","ex_nilehippo.html","Mammal Kingdom","ex_mammal.html","Freshwater Aquaria","ex_freshwater.html","Cat Walk","ex_cat.html","Ape Centre","ex_ape.html");
//** test MENU END **//


//***************   END MENU DEFINITION    **********************//
//}     //uncomment this line if you plan on having multiple navbars on one web page


//********************* DO NOT MODIFY ANYTHING BELOW THIS LINE!!!!  *************************************//
function DL_GetElementLeft(eElement)
{var nLeftPos = eElement.offsetLeft;var eParElement = eElement.offsetParent;
while (eParElement != null){nLeftPos += eParElement.offsetLeft;eParElement = eParElement.offsetParent;}
return nLeftPos;}


function DL_GetElementTop(eElement)
{var nTopPos = eElement.offsetTop;var eParElement = eElement.offsetParent;
while (eParElement != null){nTopPos += eParElement.offsetTop;eParElement = eParElement.offsetParent;}
return nTopPos;}


function ActiveOverImage(NavBar_Subitem)
{var JN_nav;var JN_Complete;NavBar_imageOn(NavBar_Subitem);
if(document.getElementById){JN_Complete = "document.getElementById('" + NavBar_Subitem + "Menu')";}
else if(document.all){JN_Complete = "document.all['" + NavBar_Subitem + "Menu']";}JN_Nav = eval(JN_Complete);
if (JN_Nav){if (JN_Nav.menupos==1){document.getElementById(NavBar_Subitem+'Menu').style.pixelLeft=DL_GetElementLeft(document.getElementById(NavBar_Subitem));
document.getElementById(NavBar_Subitem+'Menu').style.pixelTop=DL_GetElementTop(document.getElementById(NavBar_Subitem))+document.getElementById(NavBar_Subitem).offsetHeight;}
else{document.getElementById(NavBar_Subitem+'Menu').style.pixelLeft=DL_GetElementLeft(document.getElementById(NavBar_Subitem))+document.getElementById(NavBar_Subitem).offsetWidth;
document.getElementById(NavBar_Subitem+'Menu').style.pixelTop=DL_GetElementTop(document.getElementById(NavBar_Subitem));}JN_Nav.style.visibility = 'visible';}}


function InActiveImage(NavBar_Subitem)
{var JN_Nav;var JN_Complete;NavBar_imageOff(NavBar_Subitem);
if(document.getElementById){JN_Complete = "document.getElementById('" + NavBar_Subitem + "Menu')";}
else if(document.all){JN_Complete = "document.all['" + NavBar_Subitem + "Menu']";}JN_Nav = eval(JN_Complete);
if (JN_Nav){JN_Nav.style.visibility = 'hidden';}}


function NavBar_imageOn(iname)
{if (document.images){document[iname].src = eval(iname + "_over.src");}}

function NavBar_imageOff(iname)
{if (document.images){document[iname].src = eval(iname + "_off.src");}}

function Generate_Menu(NavBar_Menu, JN_backcolor, JN_overcolor, JN_textcolor, JN_overtextcolor, JN_linecolor)
{if ((document.all) || (document.getElementById)){var NavBar_Subitem = "";
for (j = 0; j < NavBar_Menu.length; j++)
{NavBar_Subitem += "<div id=\"" + NavBar_Menu[j][0] + "Menu\" menupos=\""+ NavBar_Menu[j][1] +"\" style=\"z-index:999; position: absolute; left: 0;  width: " + NavBar_Menu[j][2] + ";  visibility: hidden\" onmouseover=\"ActiveOverImage('" + NavBar_Menu[j][0] + "');\" onmouseout=\"InActiveImage('" + NavBar_Menu[j][0] + "');\">";NavBar_Subitem += "<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"" + NavBar_Menu[j][2] + "\">";
NavBar_Subitem += "<tr>";NavBar_Subitem += "<td colspan=\"2\" bgcolor=\"" + JN_linecolor + "\" height=\"1\"><img src=\"pixel.gif\" width=\"1\" height=\"1\"></td>";
NavBar_Subitem += "</tr>";for (i=3; i < NavBar_Menu[j].length-1; i=i+2){NavBar_Subitem += "<tr>";
NavBar_Subitem += "<td width=\"1\" bgcolor=\"" + JN_linecolor + "\"><img src=\"pixel.gif\" width=\"1\" height=\"22\"></td>";
if( document.isRemoteHosted == 'local' ){NavBar_Subitem += "<td width=\"108\" bgcolor=\"" + JN_backcolor + "\" class=\"NavbarMenu\" onClick=\"document.location.href='" + NavBar_Menu[j][i+1] + "'\" onmouseover=\"this.bgColor='" + JN_overcolor + "';this.style.color='" + JN_overtextcolor+ "';\" onmouseout=\"this.bgColor='" + JN_backcolor + "';this.style.color='" + JN_textcolor + "'\" style=\"color: " + JN_textcolor + "\"><div style=\"padding-left:12px;\">" + NavBar_Menu[j][i] + "</a></div></td>";}
else if( !(IsRelativeURL( NavBar_Menu[j][i+1] )) ) {NavBar_Subitem += "<td width=\"108\" bgcolor=\"" + JN_backcolor + "\" class=\"NavbarMenu\" onClick=\"document.location.href='" + NavBar_Menu[j][i+1] + "'\" onmouseover=\"this.bgColor='" + JN_overcolor + "';this.style.color='" + JN_overtextcolor+ "';\" onmouseout=\"this.bgColor='" + JN_backcolor + "';this.style.color='" + JN_textcolor + "'\" style=\"color: " + JN_textcolor + "\"><div style=\"padding-left:12px;\">" + NavBar_Menu[j][i] + "</a></div></td>";}
else{NavBar_Subitem += "<td width=\"108\" bgcolor=\"" + JN_backcolor + "\" class=\"NavbarMenu\" onClick=\"document.location.href='" + NavBar_Menu[j][i+1] + "'\" onmouseover=\"this.bgColor='" + JN_overcolor + "';this.style.color='" + JN_overtextcolor+ "';\" onmouseout=\"this.bgColor='" + JN_backcolor + "';this.style.color='" + JN_textcolor + "'\" style=\"color: " + JN_textcolor + "\"><div style=\"padding-left:12px;\">" + NavBar_Menu[j][i] + "</a></div></td>";}NavBar_Subitem += "<td width=\"1\" bgcolor=\"" + JN_linecolor + "\"><img src=\"pixel.gif\" width=\"1\" height=\"22\"></td>";NavBar_Subitem += "</tr>";NavBar_Subitem += "<tr>";NavBar_Subitem += "<td colspan=\"3\" bgcolor=\"" + JN_linecolor + "\" height=\"1\"><img src=\"pixel.gif\" width=\"1\" height=\"1\"></td>";
NavBar_Subitem += "</tr>";}
NavBar_Subitem += "</table>";
NavBar_Subitem += "</div>";}
document.write(NavBar_Subitem);}}

function IsRelativeURL (url)
{if (url.indexOf('http://') == 0){return false;}
else if (url.indexOf('https://') == 0) {return false;}else if (url.indexOf('ftp://') == 0){return false;}
else if(url.indexOf('mailto://') == 0){return false;}else{return true;}}function playMouseOver(WaveName)
{if (document.all) {document.all.oversound.src = WaveName;}}

function playMouseClick(WaveName)
{if (document.all){document.all.clicksound.src = WaveName;}}
