   NS4 = (document.layers);   
   IE4 = (document.all);  
   ver4 = (NS4 || IE4);    
   isMac = (navigator.appVersion.indexOf("Mac") != -1);
   isMenu = (NS4 || (IE4 && !isMac));  
   
   if (isMenu) {
	   menuVersion = 3;
	   menuWidth = 290;
	   borWid = 1;
	   borSty = "solid";
	   borCol = "#000000";
	   separator = 1;
	   separatorCol = "#000000";
	   fntFam = "Verdana,Arial,Helvetica";
	   fntBold = false;
	   fntItal = false;
	   fntSiz = 8;
	   fntCol = "#FFFFFF";
	   overFnt = "#000000";
	   itemPad = 3;
	   backCol = "#000000";
	   overCol = "#000000";
	   imgSrc = "../but_bm/bullet/bullet02.gif";
	   imgSiz = 11;
	   childOffset = -2;
	   childOverlap = 4;
	   perCentOver = null;
	   clickStart = false;
	   clickKill = false;
	   secondsVisible = .3;
	   keepHilite = true;
	   NSfontOver = true;
	   showVisited = null;
	   isFrames = false;
	   navFrLoc = "left";
	   }  
	   
	   if (isMenu) {
	//----- LATARBELAKANG PROJEK MYKEDAH---

arMenu1 = new Array(
190,157,119,
"","",
"#CA0074","#FF8BCF",
"#9F0000","#E16CB9",
"<img src=../but_bm/bullet/her_bullet1.gif> Latar Belakang & Objektif",../60am/601_bkg.html",0,
"<img src=../but/bullet/her_bullet1.gif> Perkongsian Pintar","../60am/602_partners.html",0,
//"<img src=../but/bullet/her_bullet1.gif> Para Penaja","../60am/603_sponsor.html",0,
"<img src=../but/bullet/her_bullet1.gif> Maklum Balas","../60am/604_feedback.html",0)

//----- E-SERVIS---
arMenu2 = new Array(
195,260,119,
"","",
"#CA0074","#FF8BCF",
"#9F0000","#E16CB9",
"<img src=../but_bm/bullet/her_bullet1.gif> Kalendar Peristiwa","/cgi-bin/calendar/calendar.pl",0,
"<img src=../but/bullet/her_bullet1.gif> Direktori Perniagaan","/kedah_direktori.htm",0,
"<img src=../but/bullet/her_bullet1.gif> Pertukaran Mata Wang Asing","http://www.xe.net/pca/",0,
"<img src=../but/bullet/her_bullet1.gif> Waktu Solat","../solat/solat_area.html",0,
"<img src=../but/bullet/her_bullet1.gif> Koleksi Makanan Tradisional","../50koleksi/501_menu.html",0
)

//----- E-KOMUNITI---
arMenu3 = new Array(
195,330,119,
"","",
"#CA0074","#FF8BCF",
"#9F0000","#E16CB9",
"<img src=../but/bullet/her_bullet1.gif> Forum","/cgi-bin/e_forum/forum.cgi",0,
"<img src=../but/bullet/her_bullet1.gif> Rangkaian Pelajar","",1,
"<img src=../but/bullet/her_bullet1.gif> Ruang Iklan","/cgi-bin/classified/suite/classifieds/classifieds.cgi",0
)

arMenu3_2 = new Array(
//"<img src=../but/bullet/her_bullet1.gif> Jaringan Institusi<br>&nbsp;&nbsp;&nbsp;Pengajian Tinggi","",0,
//"<img src=../but/bullet/her_bullet1.gif> Jaringan Sekolah","",0,
"<img src=../but/bullet/her_bullet1.gif> Forum Pelajar","/cgi-bin/e_forum/forum.cgi",0,
"<img src=../but/bullet/her_bullet1.gif> SMK Tunku Abdul Malik","http://smktamweb.cjb.net",0,
"<img src=../but/bullet/her_bullet1.gif> SMK Dato' Syed Omar","http://mysmkdso.topcities.com",0,
"<img src=../but/bullet/her_bullet1.gif> SMK Syed Mohamed  <br>&nbsp;&nbsp;Al-Bukhary","http://www.al-bukhary.cjb.net",0,
"<img src=../but/bullet/her_bullet1.gif> SMK Tunku Abdul Rahman","http://www.mykedah.com/school/mystar-as",0,
"<img src=../but/bullet/her_bullet1.gif> SMK Mergong","http://smkmergong.tripod.com",0,
"<img src=../but/bullet/her_bullet1.gif> SM Teknik Jalan Stadium","http://www.mykedah.com/school/smt-js",0,
"<img src=../but/bullet/her_bullet1.gif> SMK Sultanah Asma","http://www.mykedah.com/school/smksa-asma",0,
"<img src=../but/bullet/her_bullet1.gif> Kolej Sultan Abdul Hamid","http://www.mykedah.com/school/myksah",0,
"<img src=../but/bullet/her_bullet1.gif> SMK Sultanah Bahiyah","http://www.mykedah.com/school/smksb-bahiyah",0,
"<img src=../but/bullet/her_bullet1.gif> SMK Darulaman","http://www.smkdarulaman.netfirms.com",0
)

//----- OTHER LINKS---
arMenu4 = new Array(
170,391,119,
"","",
"#CA0074","#FF8BCF",
"#9F0000","#E16CB9",
"<img src=../but/bullet/her_bullet1.gif> Kerajaan Persekutuan <br>&nbsp;&nbsp;dan Agensi","../60am/605_1.htm",0,
"<img src=../but/bullet/her_bullet1.gif> Kerajaan Negeri dan <br>&nbsp;&nbsp; Agensi","../60am/605_2.htm",0
)

//----- PETA LAMAN---
arMenu5 = new Array(
170,455,119,
"","",
"#CA0074","#FF8BCF",
"#9F0000","#E16CB9",
"<img src=../but/bullet/her_bullet1.gif> Senarai Menu Mykedah","../60am/mel_site_map.htm",0
)

//----- HERITAGE---
arMenu6 = new Array(
188,145,184,
"","",
"#0054D2","#93B6FF",
"#4467AE","#7E98D3",
"<img src=../but/bullet/main_bullet1.gif> Awal Kedah","",1,
"<img src=../but/bullet/main_bullet1.gif> Kemasukan Islam","",1,
"<img src=../but/bullet/main_bullet1.gif> Pentadbiran","",1,
"<img src=../but/bullet/main_bullet1.gif> Perundangan","",1,
"<img src=../but/bullet/main_bullet1.gif> Kebudayaan","",1,
"<img src=../but/bullet/main_bullet1.gif> Kesusasteraan","",1,
"<img src=../but/bullet/main_bullet1.gif> Ekonomi","",1,
"<img src=../but/bullet/main_bullet1.gif> Politik","",1,
"<img src=../but/bullet/main_bullet1.gif> Pendidikan","",1,
"<img src=../but/bullet/main_bullet1.gif> Legenda/Metos","",1,
"<img src=../but/bullet/main_bullet1.gif> Koleksi Kedah","",1,
"<img src=../but/bullet/main_bullet1.gif> Geologi","",1,
"<img src=../but/bullet/main_bullet1.gif> Raja Kita","../raja_kita/bm/index.htm",0
)

//----- AWAL KEDAH---
arMenu6_1 = new Array(
"<img src=../but/bullet/main_bullet1.gif> Perkembangan Sejarah<br>&nbsp;&nbsp;&nbsp;Awal Negeri Kedah","101_1.html",0,
"<img src=../but/bullet/main_bullet1.gif> Lembah Bujang","101_2.html",0,
"<img src=../but/bullet/main_bullet1.gif> Penyelidikan Awal Istana &nbsp;&nbsp;&nbsp;Pulau Tiga","101_3.html",0
)

//----- KEMASUKAN ISLAM---
arMenu6_2 = new Array(
"<img src=../but/bullet/main_bullet1.gif> Sejarah Kemasukan dan<br>&nbsp;&nbsp; Perkembangan Islam","102_1.html",0,
"<img src=../but/bullet/main_bullet1.gif> Kemasukan Islam ke<br>&nbsp;&nbsp; Kedah","102_2.html",0,
"<img src=../but/bullet/main_bullet1.gif> Perkembangan Undang-<br>&nbsp;&nbsp; Undang Islam","102_3.html",0,
"<img src=../but/bullet/main_bullet1.gif> Tokoh Ulama","102_4_menu.html",0,
"<img src=../but/bullet/main_bullet1.gif> Pertapakan & Penyebaran<br>&nbsp;&nbsp; Islam","102_5.html",0,
"<img src=../but/bullet/main_bullet1.gif> Peranan dan Sumbangan <br>&nbsp;&nbsp; Ulama Kedah Silam","102_6.html",0
)

//----- PENTADBIRAN---
arMenu6_3 = new Array(
"<img src=../but/bullet/main_bullet1.gif> Sejarah Administrasi Thai","103_1.html",0,
"<img src=../but/bullet/main_bullet1.gif> Implikasi Pemerintahan<br>&nbsp;&nbsp;&nbsp;Jepun","103_2.html",0,
"<img src=../but/bullet/main_bullet1.gif> Perang Dunia Kedua dan &nbsp;&nbsp;&nbsp;Serangan Jepun","103_3.html",0,
"<img src=../but/bullet/main_bullet1.gif> Pusat-Pusat Pentadbiran","103_4.html",0,"<img src=../but/bullet/main_bullet1.gif> Sejarah Perkembangan &nbsp;&nbsp;&nbsp;Kerajaan dan Pentadbiran &nbsp;&nbsp;&nbsp;Negeri","103_5.html",0,
"<img src=../but/bullet/main_bullet1.gif> Zaman Pemerintahan &nbsp;&nbsp;&nbsp;Beraja Melayu","103_6.html",0,
"<img src=../but/bullet/main_bullet1.gif> Surat-menyurat Zaman &nbsp;&nbsp;&nbsp;Sultan Abdul Hamid Halim &nbsp;&nbsp;&nbsp;Shah (1882-1943)","103_7.html",0,
"<img src=../but/bullet/main_bullet1.gif> Sistem dan Kuasa &nbsp;&nbsp;&nbsp;Pentadbiran Negeri Kedah","103_8.html",0,
"<img src=../but/bullet/main_bullet1.gif> Pertempuran Di Jitra","103_9.html",0,
"<img src=../but/bullet/main_bullet1.gif> Sejarah Pasukan &nbsp;&nbsp;&nbsp;Sukarelawan","103_10.html",0,
"<img src=../but/bullet/main_bullet1.gif> Salasilah Kesultanan &nbsp;&nbsp;&nbspKedah","103_11.html",0
//"<img src=../but/bullet/main_bullet1.gif> Perdana Menteri Kedah","103_12.html",0
)

//----- PERUNDANGAN---
arMenu6_4 = new Array(
"<img src=../but/bullet/main_bullet1.gif> Hukum Kanun Kedah","104_1.html",0,
"<img src=../but/bullet/main_bullet1.gif> Perundangan Kerajaan<br>&nbsp;&nbsp; Kedah Lama","104_2.html",0
)

//----- KEBUDAYAAN---
arMenu6_5 = new Array(
"<img src=../but/bullet/main_bullet1.gif> Hadrah","105_1.html",0,
"<img src=../but/bullet/main_bullet1.gif> Berendul","105_2.html",0,
"<img src=../but/bullet/main_bullet1.gif> Ghazal Kedah","105_3.html",0,
"<img src=../but/bullet/main_bullet1.gif> Menora","105_4.html",0,
"<img src=../but/bullet/main_bullet1.gif> Mek Mulung","105_5.html",0,
"<img src=../but/bullet/main_bullet1.gif> Laga Kerbau","105_6.html",0,
"<img src=../but/bullet/main_bullet1.gif> Sabung Ayam","105_7.html",0,
"<img src=../but/bullet/main_bullet1.gif> Jikey","105_8.html",0,
"<img src=../but/bullet/main_bullet1.gif> Wayang Kulit","105_9.html",0,
"<img src=../but/bullet/main_bullet1.gif> Berbekam/Menghisap &nbsp;&nbsp;&nbsp;Darah","105_10.html",0,
"<img src=../but/bullet/main_bullet1.gif> Halu Pulau","105_11.html",0,
"<img src=../but/bullet/main_bullet1.gif> Nobat Kedah","105_12.html",0,
"<img src=../but/bullet/main_bullet1.gif> Tengkolok Melayu Kedah","105_13.html",0,
"<img src=../but/bullet/main_bullet1.gif> Perahu Lumba Di Raja","105_14.html",0,
//"<img src=../but/bullet/main_bullet1.gif> Perahu Lumba","105_15.html",0,
"<img src=../but/bullet/main_bullet1.gif> Silat Negeri Kedah","105_16.html",0
)

//----- KESUSASTERAAN---
arMenu6_6 = new Array(
"<img src=../but/bullet/main_bullet1.gif>Alor Setar Sebagai Pusat<br>&nbsp;&nbsp; Perkembangan Bahasa","106_1.html",0,
"<img src=../but/bullet/main_bullet1.gif> Al-Tarikh Salasilah Negeri<br>&nbsp;&nbsp; Kedah Dalam Konteks<br>&nbsp;&nbsp;   Penulisan Sejarah Kedah","106_2.html",0,
"<img src=../but/bullet/main_bullet1.gif> Dialek Kedah","106_3.html",0,
"<img src=../but/bullet/main_bullet1.gif> Sejarah Awal Penulisan","106_4.html",0,
"<img src=../but/bullet/main_bullet1.gif> Manuskrip Melayu","106_5.html",0,
"<img src=../but/bullet/main_bullet1.gif> Tokoh-Tokoh Penulis<br>&nbsp;&nbsp; Kedah","106_6.html",0,
"<img src=../but/bullet/main_bullet1.gif> Syair Duka Nestapa","106_7.html",0,
"<img src=../but/bullet/main_bullet1.gif> Syair Sultan Maulana","106_8.html",0
)

//----- EKONOMI---
arMenu6_7 = new Array(
"<img src=../but/bullet/main_bullet1.gif> Penanaman Padi Di Kedah","108_1.html",0,
"<img src=../but/bullet/main_bullet1.gif> Kecenderungan Kedah<br>&nbsp;&nbsp;&nbsp;Terhadap Getah","108_2.html",0,
"<img src=../but/bullet/main_bullet1.gif> Pusat Perniagaan Orang<br>&nbsp;&nbsp;&nbsp;Melayu di Tanjung Chali","108_3.html",0,
"<img src=../but/bullet/main_bullet1.gif> Penangkapan Ikan Air &nbsp;&nbsp;&nbsp;Tawar Cara Tradisional","108_4.html",0,
"<img src=../but/bullet/main_bullet1.gif> Adat Persawahan Negeri<br>&nbsp;&nbsp;&nbsp;Kedah","108_5.html",0,
"<img src=../but/bullet/main_bullet1.gif> Bulan Piama","108_6.html",0
)

//----- POLITIK---
arMenu6_8 = new Array(
"<img src=../but/bullet/main_bullet1.gif> Perkembangan Politik<br>&nbsp;&nbsp; Dari Perspektif Sejarah","109_1.html",0,
"<img src=../but/bullet/main_bullet1.gif> Penentangan Orang &nbsp;&nbsp;&nbsp;Melayu Kedah Terhadap &nbsp;&nbsp;&nbsp;Malayan Union","109_2.html",0,
"<img src=../but/bullet/main_bullet1.gif> Kesinambungan Gerakan<br>&nbsp;&nbsp; Nasionalisme","109_3.html",0,
"<img src=../but/bullet/main_bullet1.gif> Politik Dan Pentadbiran &nbsp;&nbsp;&nbsp;Kedah Hingga Abad Ke-9","109_4.html",0
//"<img src=../but/bullet/main_bullet1.gif> Hubungan Kedah Dengan &nbsp;&nbsp;&nbsp;Kuasa Luar Hingga 1945","109_5.html",0
)

//----- PENDIDIKAN---
arMenu6_9 = new Array(
"<img src=../but/bullet/main_bullet1.gif> Sejarah Pendidikan <br>&nbsp;&nbsp;&nbsp;Inggeris","110_1.html",0,
"<img src=../but/bullet/main_bullet1.gif> Persekolahan Melayu <br>&nbsp;&nbsp;&nbsp;Di Kedah","110_2.html",0,
"<img src=../but/bullet/main_bullet1.gif> Pondok-pondok Di Kedah","110_3.html",0
)

//----- LEGENDA & METOS---
arMenu6_10 = new Array("<img src=../but/bullet/main_bullet1.gif> Mahsuri","111_1.html",0,
"<img src=../but/bullet/main_bullet1.gif> Merong Mahawangsa -<br>&nbsp;&nbsp; Antara Metos Dan Realiti","111_2.html",0,
"<img src=../but/bullet/main_bullet1.gif> Sinopsis Hikayat Merong <br>&nbsp;&nbsp; Mahawangsa","111_3.html",0,
"<img src=../but/bullet/main_bullet1.gif> Cerita Terung Pipit","111_4.html",0,
"<img src=../but/bullet/main_bullet1.gif> Puteri Lindungan Bulan","111_5.html",0,
"<img src=../but/bullet/main_bullet1.gif> Raja Bersiung","111_6.html",0
)

//----- KOLEKSI KEDAH---
arMenu6_11 = new Array("<img src=../but/bullet/main_bullet1.gif> Akhbar Jepun","http://www.mykedah.com/cgi-bin/akhbar/user/db.cgi?db=default&uid=&view_records=1&ID=*",0,
 "<img src=../but/bullet/main_bullet1.gif> Suara Seberkas","112_1.html",0
 )
//----- GEOLOGI---
arMenu6_12 = new Array("<img src=../but/bullet/main_bullet1.gif> Geotapak Langkawi","113_menu.html",0
)

//----- RAJA KITA---
//arMenu6_13 = new Array(
//"<img src=../but/bullet/main_bullet1.gif> Sistem Monarki Negeri<br>&nbsp;&nbsp;&nbsp;Kedah","107_1.html",0,
//"<img src=../but/bullet/main_bullet1.gif> Duli-Duli Yang Maha Mulia","107_3.html",0,
//"<img src=../but/bullet/main_bullet1.gif> Alat Kebesaran Diraja","107_4.html",0,
//"<img src=../but/bullet/main_bullet1.gif> Adat Istiadat Diraja","107_5.html",0,
//"<img src=../but/bullet/main_bullet1.gif> Darjah Pengurniaan<br>&nbsp;&nbsp;&nbsp;Negeri","107_6.html",0,
//"<img src=../but/bullet/main_bullet1.gif> Album Di Raja","107_8.html",0//
)

//-----ALOR SETAR IN FOCUS-----
arMenu7 = new Array(
185,145,228,
"","",
"#0054D2","#93B6FF",
"#4467AE","#7E98D3",
"<img src=../but/bullet/main_bullet1.gif> Balai Besar","../30alorsetar/301_bb.html",0,
"<img src=../but/bullet/main_bullet1.gif> Balai Nobat","../30alorsetar/302_bn.html",0,
"<img src=../but/bullet/main_bullet1.gif> Balai Seni","../30alorsetar/303_bs.html",0,
"<img src=../but/bullet/main_bullet1.gif> Mahkamah Tinggi","../30alorsetar/304_mt.html",0,
"<img src=../but/bullet/main_bullet1.gif> Masjid Zahir","../30alorsetar/305_mz.html",0,"<img src=../but/bullet/main_bullet1.gif> Muzium Di Raja","../30alorsetar/306_mdr.html",0,
"<img src=../but/bullet/main_bullet1.gif> Bangunan Mahkamah<br>&nbsp;&nbsp;&nbsp;Rendah Lama","../30alorsetar/307_bmrl.html",0,
"<img src=../but/bullet/main_bullet1.gif> Wisma Negeri","../30alorsetar/309_wn.html",0,
"<img src=../but/bullet/main_bullet1.gif> Bangunan Wan Muhammad<br>&nbsp;&nbsp;&nbsp;Saman","../30alorsetar/310_bwms.html",0,
"<img src=../but/bullet/main_bullet1.gif> Menara Jam Besar","../30alorsetar/311_mjb.html",0,
"<img src=../but/bullet/main_bullet1.gif> Istana Pelamin","../30alorsetar/312_ip.html",0,
"<img src=../but/bullet/main_bullet1.gif> Medan Budaya","../30alorsetar/313_mb.html",0,
"<img src=../but/bullet/main_bullet1.gif> Alor Setar Dulu & Sekarang","../album_d&s/index.html",0,
"<img src=../but/bullet/main_bullet1.gif> Perkahwinan Tiga Juta","../30alorsetar/308.html",0
)

//-----HALL OF FAME -----
arMenu8 = new Array(
185,145,270,
"","",
"#0054D2","#93B6FF",
"#4467AE","#7E98D3",
"<img src=../but/bullet/main_bullet1.gif> Di Antara Yang Pertama<br>&nbsp;&nbsp; Di Malaysia Dari Kedah","../20hall_fame/201a_menu.html",0,
"<img src=../but/bullet/main_bullet1.gif> Anak-Anak Kedah","../20hall_fame/202a_menu.html",0,
"<img src=../but/bullet/main_bullet1.gif> Menteri Besar Kedah","../20hall_fame/203_menu.html",0,
"<img src=../but/bullet/main_bullet1.gif> Setiausaha Kerajaan<br>&nbsp;&nbsp; Negeri Kedah","../20hall_fame/204_menu.html",0,
"<img src=../but/bullet/main_bullet1.gif> Pegawai Tadbir Negeri","../20hall_fame/205_menu.html",0,
"<img src=../but/bullet/main_bullet1.gif> Exco Negeri Kedah","../20hall_fame/206_menu.html",0
//"<img src=../but/bullet/main_bullet1.gif> Anak Kedah","../20hall_fame/207_menu.html",0
)

//-----PETA -----
arMenu9 = new Array(
185,145,310,
"","",
"#0054D2","#93B6FF",
"#4467AE","#7E98D3",
"<img src=../but/bullet/main_bullet1.gif> Kedah Darul Aman","../40peta/401_1.swf",0,
"<img src=../but/bullet/main_bullet1.gif> Rancangan Struktur","",1,
"<img src=../but/bullet/main_bullet1.gif> Rancangan Tempatan","",1,
"<img src=../but/bullet/main_bullet1.gif> Kawasan Perindustrian","",1,
"<img src=../but/bullet/main_bullet1.gif> Pengairan Muda","",1,
"<img src=../but/bullet/main_bullet1.gif> Alor Star","../40peta/alor_star.swf",0,
"<img src=../but/bullet/main_bullet1.gif> Kulim Hi-Tech","../40peta/kulim_hitech.swf",0
)

//----- RANCANGAN STRUKTUR---
arMenu9_2 = new Array(
"<img src=../but/bullet/main_bullet1.gif> Kubang Pasu","../40peta/402_1.swf",0,
"<img src=../but/bullet/main_bullet1.gif> Bandar Baharu","../40peta/402_2.swf",0,
"<img src=../but/bullet/main_bullet1.gif> Kulim","../40peta/402_3.swf",0,
"<img src=../but/bullet/main_bullet1.gif> Yan","../40peta/402_4.swf",0,
"<img src=../but/bullet/main_bullet1.gif> Kuala Muda","../40peta/402_5.swf",0,
"<img src=../but/bullet/main_bullet1.gif> Kota Setar","../40peta/402_6.swf",0
)

//----- RANCANGAN TEMPATAN---
arMenu9_3 = new Array(
"<img src=../but/bullet/main_bullet1.gif> Selasih","../40peta/403_1.swf",0,
"<img src=../but/bullet/main_bullet1.gif> Junjong","../40peta/403_2.swf",0,
"<img src=../but/bullet/main_bullet1.gif> Bandar Kulim","../40peta/403_3.swf",0,
"<img src=../but/bullet/main_bullet1.gif> Kulim-Junjung","../40peta/403_4.swf",0,
"<img src=../but/bullet/main_bullet1.gif> Kelang Lama","../40peta/403_5.swf",0
)

//----- KAWASAN PERINDUSTRIAN---
arMenu9_4 = new Array(
"<img src=../but/bullet/main_bullet1.gif> Alor Setar","../40peta/404_1.swf",0,
"<img src=../but/bullet/main_bullet1.gif> Gurun","../40peta/404_2.swf",0,
"<img src=../but/bullet/main_bullet1.gif> Kubang Pasu","../40peta/404_3.swf",0,
"<img src=../but/bullet/main_bullet1.gif> Kulim/Bandar Baharu","../40peta/404_4.swf",0,
"<img src=../but/bullet/main_bullet1.gif> Kuala Ketil","../40peta/404_5.swf",0,
"<img src=../but/bullet/main_bullet1.gif> Kuala Muda","../40peta/404_6.swf",0
)

//----- PENGAIRAN MUDA---
arMenu9_5 = new Array(
"<img src=../but/bullet/main_bullet1.gif> Jenis Tanah","../40peta/405_1.swf",0,
"<img src=../but/bullet/main_bullet1.gif> Jadual Penanaman Padi","../40peta/405_2.swf",0
)

loader = (isFrames) ? (NS4) ? parent : parent.document.body : window;
loader.onload = startIt;
if(NS4){	
	origWidth = loader.innerWidth;	
	origHeight = loader.innerHeight;	
	loader.onresize = reDo;
	}
isLoaded = false;
NSresized = false;

if (!window.menuVersion) {	
	clickKill = showVisited = NSfontOver = keepHilite = clickStart = false;
}
if (!window.imgHspace) imgHspace=0;

isWin = (navigator.appVersion.indexOf("Win") != -1)
if (!isWin && !isMac) NSfontOver = showVisited = false;

mSecsVis = secondsVisible*1000;
isRight = (window.navFrLoc && navFrLoc == "right");

imgSuf = (isRight) ? ">"  : " ALIGN=RIGHT>";
imgStr = "<IMG SRC='" + imgSrc + "' WIDTH=" + imgSiz + " HEIGHT=" + imgSiz +" VSPACE=2 HSPACE="+ imgHspace +" BORDER=0"+ imgSuf;fullImgSize = (imgSiz+(imgHspace*2));

if(IE4) imgStr = "<SPAN STYLE='height:100%;width:"+ (fullImgSize-(isRight?3:0)) +";float:"+ (isRight?"left":"right") +";overflow:hidden'>"+ imgStr +"</SPAN>";

//spStr = (isRight && NS4) ? "<SPACER TYPE=HORIZONTAL SIZE="+imgSiz+">" : "";

areCreated = false;
menuLoc = null;

function initVars() {	
	if(areCreated) {		
		for(i=1; i<topCount; i++) {			
			cur = eval("elMenu"+i);			
			clearTimeout(cur.hideTimer);			
			cur.hideTimer=null;		
		}		
		clearTimeout(allTimer);	
	}	
	topCount = 1;	
	areCreated = false;	
	beingCreated = false;	
	isOverMenu = false;	
	currentMenu = null;	
	allTimer = null;
}

initVars();

function NSunloaded(){	
	isLoaded = false;
}

function NSloaded(e){	
	if (e.target.name == mainFrName) {		
		initVars();		
		startIt();	
	}
}

function IEunloaded() {	
	initVars();	
	isLoaded = false;	
	setTimeout("keepTrack()",50)
}

function keepTrack() {	
	if (menuLoc.document.readyState == "complete") {		
		initVars();		
		startIt();	
	}	
	else {		
		setTimeout("keepTrack()",50);	
	}
}

function startIt() {	
	isLoaded = true;	
	if (isFrames) {			
	menuLoc = eval("parent.frames." + mainFrName);		
	if (NS4) {			
		loader.captureEvents(Event.LOAD);			
		loader.onload = NSloaded;			
		menuLoc.onunload = NSunloaded;		
	}		
	if (IE4) {			
		menuLoc.document.body.onunload = IEunloaded;		
	}	
}	
else {		
	menuLoc = window;	
}	
menuLoc.nav = nav = window;	
if (clickKill) {		
	if (NS4) menuLoc.document.captureEvents(Event.MOUSEDOWN);		
	menuLoc.document.onmousedown = clicked;	
}	
makeTop();	
}
function makeTop(){	
	beingCreated = true;	
	if(IE4) {		
		topZ = 0;		
		for (z=0;z<menuLoc.document.all.length;z++){			
		oldEl = menuLoc.document.all(z);			
		topZ = Math.max(oldEl.style.zIndex,topZ)		
	}	
}	
while(eval("window.arMenu" + topCount)) {		
	(NS4) ? makeMenuNS(false,topCount) : makeMenuIE(false,topCount);		
	topCount++	
}	
areCreated = true;	
beingCreated = false;
}

function makeMenuNS(isChild,menuCount,parMenu,parItem) {	
	tempArray = eval("arMenu" + menuCount);	
	if (!isChild) {		
		tempWidth = tempArray[0] ? tempArray[0] : menuWidth;		
		menu = makeElement("elMenu" + menuCount,tempWidth,null,null);	
	}	
	else {		
		menu = makeElement("elMenu" + menuCount,null,parMenu,null);	
	}	
	menu.array = tempArray;	
	menu.setMenuTree = setMenuTree;	
	menu.setMenuTree(isChild,parMenu);	
	while (menu.itemCount < menu.maxItems) {		
		menu.itemCount++;		
		prevItem = (menu.itemCount > 1) ? menu.item : null;		
		itemName = "item" + menuCount + "_" + menu.itemCount;		
		menu.item = makeElement(itemName,null,null,menu);		
		menu.item.prevItem = prevItem;		
		menu.item.setup = itemSetup;		
		menu.item.setup(menu.itemCount,menu.array);		
		if (menu.item.hasMore) {			
			makeMenuNS(true,menuCount + "_" + menu.itemCount,menu,menu.item);			
			menu = menu.parentMenu;		
		}	
	}	
	menu.lastItem = menu.item;	
	menu.setup(isChild,parMenu,parItem);
}
	function findTree(men){	
		foundTree = false;	
		for(i=11;i<men.array.length;i+=3){		
			if(men.array[i]) {			
				foundTree = true;			
				break;		
			}	
		}	
		
		return foundTree;
	}
	function setMenuTree(isChild,parMenu) {	
		if (!isChild) {		
			this.menuWidth = this.array[0] ? this.array[0] : menuWidth;		
			this.menuLeft = this.array[1];		this.menuTop = this.array[2];		
			this.menuFontColor = this.array[3] ? this.array[3] : fntCol;		
			this.menuFontOver = this.array[4] ? this.array[4] : overFnt;		
			this.menuBGColor = this.array[5] ? this.array[5] : backCol;		
			this.menuBGOver = this.array[6] ? this.array[6] : overCol;		
			this.menuBorCol = this.array[7] ? this.array[7] : borCol;		
			this.menuSeparatorCol = this.array[8] ? this.array[8] : separatorCol;		
			this.treeParent = this;		
			this.startChild = this;		
			this.isTree = findTree(this);	
		}	
		else {		
			this.menuWidth = parMenu.menuWidth;		
			this.menuLeft = parMenu.menuLeft;		
			this.menuTop = parMenu.menuTop;		
			this.menuFontColor = parMenu.menuFontColor;		
			this.menuFontOver = parMenu.menuFontOver;		
			this.menuBGColor = parMenu.menuBGColor;		
			this.menuBGOver = parMenu.menuBGOver;		
			this.menuBorCol = parMenu.menuBorCol;		
			this.menuSeparatorCol = parMenu.menuSeparatorCol;		
			this.treeParent = parMenu.treeParent;		
			this.isTree = parMenu.isTree;	
		}	
		
		this.maxItems = (isChild) ? this.array.length/3 : (this.array.length-9)/3;	
		this.hasParent = isChild;    
		this.setup = menuSetup;	
		this.itemCount = 0;
	}
	
function makeMenuIE(isChild,menuCount,parMenu) {	

	menu = makeElement("elMenu" + menuCount);	
	menu.array = eval("arMenu" + menuCount);	
	menu.setMenuTree = setMenuTree;	
	menu.setMenuTree(isChild,parMenu);	
	menu.itemStr = "";	
	while (menu.itemCount < menu.maxItems) {		
		menu.itemCount++;		
		itemName = "item" + menuCount + "_" + menu.itemCount;		
		arrayPointer = (isChild) ? (menu.itemCount-1)*3 :((menu.itemCount-1)*3)+9;		
		dispText = menu.array[arrayPointer];		
		hasMore = menu.array[arrayPointer + 2];		
		htmStr = (hasMore) ? imgStr + dispText : dispText;		
		menu.itemStr += "<SPAN ID=" + itemName + " STYLE=\"width:" + (menu.menuWidth-(borWid*2)) + "\">" + htmStr + "</SPAN><BR>";		
		if (hasMore) {			
			makeMenuIE(true,menuCount + "_" + menu.itemCount,menu);			
			menu = menu.parentMenu;		
		}		
	}	
	menu.innerHTML = menu.itemStr;	
	itemColl = menu.children.tags("SPAN");	
	for (i=0; i<itemColl.length; i++) {		
		it = itemColl(i);		
		it.setup = itemSetup;		
		it.setup(i+1,menu.array);	
	}	
menu.lastItem = itemColl(itemColl.length-1);	
menu.setup(isChild,parMenu);
}

function makeElement(whichEl,whichWidth,whichParent,whichContainer) {	
	if (NS4) {		
		if (whichWidth) {			
			elWidth = whichWidth;		
		}		
		else {			
			elWidth = (whichContainer) ? whichContainer.menuWidth : whichParent.menuWidth;			
			if (whichContainer) elWidth = elWidth-(borWid*2)-(itemPad*2);		
		}		
		if (!whichContainer) whichContainer = menuLoc;		
		eval(whichEl + "= new Layer(elWidth,whichContainer)");	
	}	
	else {		
		elStr = "<DIV ID=" + whichEl + " STYLE='position:absolute'></DIV>";		
		menuLoc.document.body.insertAdjacentHTML("BeforeEnd",elStr);		
		if (isFrames) eval(whichEl + "= menuLoc." + whichEl);	
	}
	return eval(whichEl);
}

function itemSetup(whichItem,whichArray) {	
	this.onmouseover = itemOver;	
	this.onmouseout = itemOut;	
	this.container = (NS4) ? this.parentLayer : this.offsetParent;	
	arrayPointer = (this.container.hasParent) ? (whichItem-1)*3 : ((whichItem-1)*3)+9;	
	this.dispText = whichArray[arrayPointer];	
	this.linkText = whichArray[arrayPointer + 1];	
	this.hasMore = whichArray[arrayPointer + 2];	
	if (IE4 && this.hasMore) 
	{		
		this.child = eval("elMenu" + this.id.substr(4));		
		this.child.parentMenu = this.container;		
		this.child.parentItem = this;	
	}	
	if (this.linkText) {		
	if (NS4) {			
		this.captureEvents(Event.MOUSEUP)			
		this.onmouseup = linkIt;		
	}		
	else {			
		this.onclick = linkIt;			
		this.style.cursor = "hand";		
	}	
}	
if (NS4) {		
	htmStr = this.dispText;		
	if (fntBold) htmStr = htmStr.bold();		
	if (fntItal) htmStr = htmStr.italics();		
	htmStr = "<FONT FACE='" + fntFam + "' POINT-SIZE=" + fntSiz + ">" + htmStr+ "</FONT>";		
	this.htmStrOver = htmStr.fontcolor(this.container.menuFontOver);		
	this.htmStr = htmStr.fontcolor(this.container.menuFontColor);		
	
	if(this.hasMore) {			
		this.document.write(imgStr);			
		this.document.close();		
	}		
	this.visibility = "inherit";		
	this.bgColor = this.container.menuBGColor;		
	
	if (whichItem == 1) {			
		this.top = borWid + itemPad;		
	}		
	else {			
		this.top = this.prevItem.top + this.prevItem.clip.height + separator;		
	}		
	this.left = borWid + itemPad;		
	this.clip.top = this.clip.left = -itemPad;		
	this.clip.right = this.container.menuWidth-(borWid*2)-itemPad;		
	maxTxtWidth = this.container.menuWidth-(borWid*2)-(itemPad*2);		
	if (this.container.isTree) maxTxtWidth-=(fullImgSize); 		
	this.txtLyr = new Layer(maxTxtWidth,this);		
	if (isRight && this.container.isTree) this.txtLyr.left = fullImgSize;		
	this.txtLyr.document.write(this.htmStr);		
	this.txtLyr.document.close();		
	this.txtLyr.visibility = "inherit";		
	this.clip.bottom = this.txtLyr.document.height+itemPad;		
	this.dummyLyr = new Layer(100,this);		
	this.dummyLyr.left = this.dummyLyr.top = -itemPad;		
	this.dummyLyr.clip.width = this.clip.width;		
	this.dummyLyr.clip.height = this.clip.height;		
	this.dummyLyr.visibility = "inherit";	
}	
	else {		
		with (this.style) {			
			padding = itemPad;			
			if (this.container.isTree && !this.hasMore) {				
				if (isRight) paddingLeft = itemPad+fullImgSize;				
				else paddingRight = itemPad+fullImgSize;			
			}			
			color = this.container.menuFontColor;			
			fontSize = fntSiz + "pt";			
			fontWeight = (fntBold) ? "bold" : "normal";			
			fontStyle =	(fntItal) ? "italic" : "normal";			
			fontFamily = fntFam;			
			borderBottomWidth = separator + "px";			
			borderBottomColor = this.container.menuSeparatorCol;			
			borderBottomStyle = "solid";			
			backgroundColor = this.container.menuBGColor;		
		}	
	}
}	
	
function menuSetup(hasParent,openCont,openItem) {	
	this.onmouseover = menuOver;	
	this.onmouseout = menuOut;	
	this.showIt = showIt;	
	this.keepInWindow = keepInWindow;	
	this.hideTree = hideTree	this.hideParents = hideParents;	
	this.hideChildren = hideChildren;	
	this.hideTop = hideTop;	
	this.hasChildVisible = false;	
	this.isOn = false;	this.hideTimer = null;	
	this.childOverlap = (perCentOver != null) ? ((perCentOver/100) * this.menuWidth) : childOverlap;	
	this.currentItem = null;	
	this.hideSelf = hideSelf;	
	if (hasParent) {		
		this.hasParent = true;		
		this.parentMenu = openCont;		
		if (NS4) {			
			this.parentItem = openItem;			
			this.parentItem.child = this;		
			}	
		}	
		else {		
			this.hasParent = false;	
		}	
		if (NS4) {		
			this.bgColor = this.menuBorCol;		
			this.fullHeight = this.lastItem.top + this.lastItem.clip.bottom + borWid;		
			this.clip.right = this.menuWidth;		
			this.clip.bottom = this.fullHeight;	
		}	
		else {		
			with (this.style) {			
				width = this.menuWidth;			
				borderWidth = borWid;			
				borderColor = this.menuBorCol;			
				borderStyle = borSty;			
				zIndex = topZ;		
			}		
			this.lastItem.style.border="";		
			this.fullHeight = this.scrollHeight;		
			this.showIt(false);		
			this.onselectstart = cancelSelect;		
			this.moveTo = moveTo;		
			this.moveTo(0,0);	
		}
	}
	
	function popUp(menuName,e){	
		if (NS4 && NSresized) startIt();	
		if (!isLoaded) return;	
		linkEl = (NS4) ? e.target : event.srcElement;	
		if (clickStart) linkEl.onclick = popMenu;	
		if (!beingCreated && !areCreated) startIt();	
		linkEl.menuName = menuName;		
		if (!clickStart) popMenu(e);
	}
	
	function popMenu(e){	
		if (!isLoaded || !areCreated) return true;	
		eType = (NS4) ? e.type : event.type;	
		if (clickStart && eType != "click") return true;	
		hideAll();	
		linkEl = (NS4) ? e.target : event.srcElement;	
		currentMenu = eval(linkEl.menuName);	
		currentMenu.hasParent = false;	
		currentMenu.treeParent.startChild = currentMenu;	
		if (IE4) menuLocBod = menuLoc.document.body;	
		if (!isFrames) {		
			xPos = (currentMenu.menuLeft) ? currentMenu.menuLeft : (NS4) ? e.pageX : (event.clientX + menuLocBod.scrollLeft);		
			yPos = (currentMenu.menuTop) ? currentMenu.menuTop : (NS4) ? e.pageY : (event.clientY + menuLocBod.scrollTop);	
		}	
		else {		
			switch (navFrLoc) {			
				case "left":				
					xPos = (currentMenu.menuLeft) ? currentMenu.menuLeft : (NS4) ? menuLoc.pageXOffset : menuLocBod.scrollLeft;				
					yPos = (currentMenu.menuTop) ? currentMenu.menuTop : (NS4) ? (e.pageY-pageYOffset)+menuLoc.pageYOffset : event.clientY + menuLocBod.scrollTop;				
					break;			
				case "top":				
					xPos = (currentMenu.menuLeft) ? currentMenu.menuLeft : (NS4) ? (e.pageX-pageXOffset)+menuLoc.pageXOffset : event.clientX + menuLocBod.scrollLeft;				
					yPos = (currentMenu.menuTop) ? currentMenu.menuTop : (NS4) ? menuLoc.pageYOffset : menuLocBod.scrollTop;				
					break;			
				case "bottom":				
					xPos = (currentMenu.menuLeft) ? currentMenu.menuLeft : (NS4) ? (e.pageX-pageXOffset)+menuLoc.pageXOffset : event.clientX + menuLocBod.scrollLeft;				
					yPos = (currentMenu.menuTop) ? currentMenu.menuTop : (NS4) ? menuLoc.pageYOffset+menuLoc.innerHeight : menuLocBod.scrollTop + menuLocBod.clientHeight;				
					break;			
				case "right":				
					xPos = (currentMenu.menuLeft) ? currentMenu.menuLeft : (NS4) ? menuLoc.pageXOffset+menuLoc.innerWidth : menuLocBod.scrollLeft+menuLocBod.clientWidth;				
					yPos = (currentMenu.menuTop) ? currentMenu.menuTop : (NS4) ? (e.pageY-pageYOffset)+menuLoc.pageYOffset : event.clientY + menuLocBod.scrollTop;				
					break;		
				}	
			}	
			currentMenu.moveTo(xPos,yPos);	
			currentMenu.keepInWindow()	currentMenu.isOn = true;	
			currentMenu.showIt(true);	
			return false;
		}
		
		function menuOver(e) {	
			this.isOn = true;	
			isOverMenu = true;	
			currentMenu = this;	
			if (this.hideTimer) clearTimeout(this.hideTimer);
		}
		
	function menuOut() {	
		if (IE4) {		
			theEvent = menuLoc.event;		
			if (theEvent.srcElement.contains(theEvent.toElement)) return;	
		}	
		this.isOn = false;	
		isOverMenu = false;	
		menuLoc.status = "";	
		if (!clickKill) allTimer = setTimeout("currentMenu.hideTree()",10);  
	}
	
	function itemOver(){	
		if (keepHilite) {		
			if (this.container.currentItem && this.container.currentItem != this) {			
				if (NS4) {				
					this.container.currentItem.bgColor = this.container.menuBGColor;				
					if (NSfontOver) {					
						with (this.container.currentItem.txtLyr.document) {						
							write(this.container.currentItem.htmStr)						
							close();	
						}				
					}			
				}			
				else {				
					with (this.container.currentItem.style) {					
						backgroundColor = this.container.menuBGColor;					
						color = this.container.menuFontColor;				
					}			
				}		
			}	
		}	
		if (IE4) {		
		theEvent = menuLoc.event;		
		if (theEvent.srcElement.tagName == "IMG") return;		
		this.style.backgroundColor = this.container.menuBGOver;		
		this.style.color = this.container.menuFontOver;	
	}	
	else {		
		this.bgColor = this.container.menuBGOver;		
		if (NSfontOver) {			
			this.txtLyr.document.write(this.htmStrOver);			
			this.txtLyr.document.close();		
		}	
	}	
	menuLoc.status = this.linkText;	
	this.container.currentItem = this;	
	
	if (this.container.hasChildVisible) {		
		this.container.hideChildren(this);	
	}	
	
	if (this.hasMore) {		
	horOffset = (isRight) ? (this.container.childOverlap - this.container.menuWidth) : (this.container.menuWidth - this.container.childOverlap);
	
	if (NS4) {			
		this.childX = this.container.left + horOffset;			
		this.childY = (this.pageY+this.clip.top) + childOffset;		
	}		
	else {			
		this.childX = this.container.style.pixelLeft + horOffset;			
		this.childY = this.offsetTop + this.container.style.pixelTop + childOffset + borWid;		
	}		
		
		this.child.moveTo(this.childX,this.childY);		
		this.child.keepInWindow();		
		this.container.hasChildVisible = true;		
		this.container.visibleChild = this.child;		
		this.child.showIt(true);	
	}
}

function itemOut() {	
	if (IE4) {		
		theEvent = menuLoc.event;    	
		if (theEvent.srcElement.contains(theEvent.toElement)     
	|| (theEvent.fromElement.tagName=="IMG" && theEvent.toElement.contains(theEvent.fromElement)))        
		return;		
		if (!keepHilite) {			
			this.style.backgroundColor = this.container.menuBGColor;			
			this.style.color = this.container.menuFontColor;		
		}	
	}	
	else {		
		if (!keepHilite) {			
			this.bgColor = this.container.menuBGColor;			
			if (NSfontOver) {				
				with (this.txtLyr.document) {					
					write(this.htmStr);					
					close();				
				}			
			}			
		}		
		if (!isOverMenu && !clickKill) {			
			allTimer = setTimeout("currentMenu.hideTree()",10); 		
		}	
	}
}

function moveTo(xPos,yPos) {	
	this.style.pixelLeft = xPos;	
	this.style.pixelTop = yPos;
}

function showIt(on) {	
	if (NS4) {		
		this.visibility = (on) ? "show" : "hide";		
		if (keepHilite && this.currentItem) {			
			this.currentItem.bgColor = this.menuBGColor;			
			if (NSfontOver) {				
				with (this.currentItem.txtLyr.document) {					
					write(this.currentItem.htmStr);					
					close();				
				}			
			}		
		}	
	}	
	else {		
		this.style.visibility = (on) ? "visible" : "hidden";		
		if (keepHilite && this.currentItem) {			
			with (this.currentItem.style) {				
				backgroundColor = this.menuBGColor;				
				color = this.menuFontColor;			
			}		
		}	
	}	
	this.currentItem = null;
}

function keepInWindow() {	
	scrBars = 20;	
	botScrBar = (isFrames && navFrLoc=="bottom") ? (borWid*2) : scrBars;	
	rtScrBar = (isFrames && navFrLoc=="right") ? (borWid*2) : scrBars;	
	if (NS4) {		
		winRight = (menuLoc.pageXOffset + menuLoc.innerWidth) - rtScrBar;		
		rightPos = this.left + this.menuWidth;		
		if (rightPos > winRight) {			
			if (this.hasParent) {				
				parentLeft = this.parentMenu.left;				
				newLeft = ((parentLeft-this.menuWidth) + this.childOverlap);				
				this.left = newLeft;			
			}			
			else {				
				dif = rightPos - winRight;				
				this.left -= dif;			
			}		
		}		
		winBot = (menuLoc.pageYOffset + menuLoc.innerHeight) - botScrBar ;		
		botPos = this.top + this.fullHeight;		
		
		if (botPos > winBot) {			
			dif = botPos - winBot;			
			this.top -= dif;		
		}		
		winLeft = menuLoc.pageXOffset;		
		leftPos = this.left;		
		
		if (leftPos < winLeft) {			
			if (this.hasParent) {				
				parentLeft = this.parentMenu.left;				
				newLeft = ((parentLeft+this.menuWidth) - this.childOverlap);				
				this.left = newLeft;			
			}			
			else {				
				this.left = 5;			
			}		
		}	
	}	
	else {    	
	winRight = (menuLoc.document.body.scrollLeft + menuLoc.document.body.clientWidth) - rtScrBar;		
	rightPos = this.style.pixelLeft + this.menuWidth;			
	
	if (rightPos > winRight) {			
		if (this.hasParent) {				
			parentLeft = this.parentMenu.style.pixelLeft;				
			newLeft = ((parentLeft - this.menuWidth) + this.childOverlap);				
			this.style.pixelLeft = newLeft;			
		}			
		else {				
			dif = rightPos - winRight;				
			this.style.pixelLeft -= dif;			
		}		
	}		
	winBot = (menuLoc.document.body.scrollTop + menuLoc.document.body.clientHeight) - botScrBar;		
	botPos = this.style.pixelTop + this.fullHeight;		
	
	if (botPos > winBot) {			
		dif = botPos - winBot;			
		this.style.pixelTop -= dif;		
	}		
	winLeft = menuLoc.document.body.scrollLeft;		
	leftPos = this.style.pixelLeft;		
	
	if (leftPos < winLeft) {			
		if (this.hasParent) {				
			parentLeft = this.parentMenu.style.pixelLeft;				
			newLeft = ((parentLeft+this.menuWidth) - this.childOverlap);				
			this.style.pixelLeft = newLeft;			
		}			
		else {				
			this.style.pixelLeft = 5;			
			}		
		}	
	}
}

function linkIt() {	
	if (this.linkText.indexOf("javascript:")!=-1) eval(this.linkText)	
	else menuLoc.location.href = this.linkText;
}

function popDown(menuName){	
	if (!isLoaded || !areCreated) return;	
	whichEl = eval(menuName);	
	whichEl.isOn = false;	
	if (!clickKill) whichEl.hideTop();
}

function hideAll() {	
	for(i=1; i<topCount; i++) {		
		temp = eval("elMenu" + i + ".startChild");		
		temp.isOn = false;		
		if (temp.hasChildVisible) temp.hideChildren();		
		temp.showIt(false);	
	}	
}

function hideTree() { 	
	allTimer = null;	
	if (isOverMenu) return;	
	if (this.hasChildVisible) {		
		this.hideChildren();	
	}	
	this.hideParents();
}

function hideTop() {	
	whichTop = this;	
	(clickKill) ? whichTop.hideSelf() : (this.hideTimer = setTimeout("if(whichTop.hideSelf)whichTop.hideSelf()",mSecsVis));
}

function hideSelf() {	
	this.hideTimer = null;	
	if (!this.isOn && !isOverMenu) { 		
		this.showIt(false);	
	}
}

function hideParents() {	
	tempMenu = this;	
	while (tempMenu.hasParent) {		
		tempMenu.showIt(false);		
		tempMenu.parentMenu.isOn = false;				
		tempMenu = tempMenu.parentMenu;	
	}	
	tempMenu.hideTop();
}

function hideChildren(item) {	
	tempMenu = this.visibleChild;	
	while (tempMenu.hasChildVisible) {		
		tempMenu.visibleChild.showIt(false);		
		tempMenu.hasChildVisible = false;		
		tempMenu = tempMenu.visibleChild;	
	}	
	
	if (!this.isOn || !item.hasMore || this.visibleChild != this.child) {		
		this.visibleChild.showIt(false);		
		this.hasChildVisible = false;	
	}
}

function cancelSelect(){return false}

function reDo(){	
	if (loader.innerWidth==origWidth && loader.innerHeight==origHeight) return;	
	initVars();	
	NSresized=true;	menuLoc.location.reload();
}

function clicked() {	
	if (!isOverMenu && currentMenu!=null && !currentMenu.isOn) {		
		whichEl = currentMenu;		
		whichEl.hideTree();	
	}
}

window.onerror = handleErr;

function handleErr(){	
	arAccessErrors = ["permission","access"];	
	mess = arguments[0].toLowerCase();	
	found = false;	
	for (i=0;i<arAccessErrors.length;i++) {		
		errStr = arAccessErrors[i];		
		if (mess.indexOf(errStr)!=-1) found = true;	
	}	
	return found;
}  
	}
