
menunum=0;menus=new Array();_d=document;function addmenu(){menunum++;menus[menunum]=menu;}function dumpmenus(){mt="<scr"+"ipt language=javascript>";for(a=1;a<menus.length;a++){mt+=" menu"+a+"=menus["+a+"];"}mt+="<\/scr"+"ipt>";_d.write(mt)}




effect = "Fade(duration=0.4);Alpha(style=0,opacity=100)"


timegap=500			// The time delay for menus to remain visible 500
followspeed=5		// Follow Scrolling speed
followrate=40		// Follow Scrolling Rate
suboffset_top=4;	// Sub menu offset Top position 
suboffset_left=6;	// Sub menu offset Left position
closeOnClick = true

style1=[			// style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
"009900",				// Mouse Off Font Color
"transparent",			// Mouse Off Background Color
"FFFFFF",			// Mouse On Font Color
"009900",			// Mouse On Background Color
"",			// Menu Border Color 
10,					// Font Size in pixels 
"normal",			// Font Style (italic or normal)
"bold",				// Font Weight (bold or normal)
"MS Sans Serif, Microsoft Sans Serif",	// Font Name
2,					// Menu Item Padding
,		// Sub Menu Image (Leave this blank if not needed)
,					// 3D Border & Separator bar
"66ffff",			// 3D High Color
"000099",			// 3D Low Color
"black",			// Current Page Item Font Color (leave this blank to disable)
"yellow",				// Current Page Item Background Color (leave this blank to disable)
,		// Top Bar image (Leave this blank to disable)
"ffffff",			// Menu Header Font Color (Leave blank if headers are not needed)
"000000",	// Menu Header Background Color (Leave blank if headers are not needed)
"navy",				// Menu Item Separator Color
]

style2=[			// style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
"666666",				// Mouse Off Font Color

"ffffff",			// Mouse Off Background Color
//"999999",			// Mouse Off Background Color
//"666699",			// Mouse On Font Color
"000000",			// Mouse On Font Color
//"999999",			// Mouse On Background Color
"CCFFCC",			// Mouse On Background Color
"000000",			// Menu Border Color  เส้นขอบเมนู
10,					// Font Size in pixels 
"normal",			// Font Style (italic or normal)
"normal",				// Font Weight (bold or normal) ในเมนู
"MS Sans Serif, Microsoft Sans Serif",	// Font Name
1,					// Menu Item Padding
,		// Sub Menu Image (Leave this blank if not needed)
"",					// 3D Border & Separator bar
"66ffff",			// 3D High Color
"000099",			// 3D Low Color
"black",			// Current Page Item Font Color (leave this blank to disable)
"yellow",				// Current Page Item Background Color (leave this blank to disable)
,		// Top Bar image (Leave this blank to disable)
"ffffff",			// Menu Header Font Color (Leave blank if headers are not needed)
"666699",	// Menu Header Background Color (Leave blank if headers are not needed)
"navy",				// Menu Item Separator Color
]

addmenu(menu=[		// This is the array that contains your menu properties and details
"lmainmenu",			// Menu Name - This is needed in order for the menu to be called
,					// Menu Top - The Top position of the menu in pixels
,				// Menu Left - The Left position of the menu in pixels
132,					// Menu Width - Menus width in pixels  130 ไม่รวมหน้าหลัก ถ้าเอาหน้าหลักออก
,					// Menu Border Width 
"center",					// Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle" กำหนดให้สับเมนูอยู่บนหรือล่าง
style1,				// Properties Array - this is set higher up, as above
1,					// Always Visible - allows the menu item to be visible at all time (1=on/0=off)
"center",				// Alignment - sets the menu elements text alignment, values valid here are: left, right or center
,					// Filter - Text variable for setting transitional effects on menu activation - see above for more info
,					// Follow Scrolling - Tells the menu item to follow the user down the screen (visible at all times) (1=on/0=off)
1, 					// Horizontal Menu - Tells the menu to become horizontal instead of top to bottom style (1=on/0=off)
,					// Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page (1=on/0=off)
,					// Position of TOP sub image left:center:right
,					// Set the Overall Width of Horizontal Menu to 100% and height to the specified amount (Leave blank to disable)
,					// Right To Left - Used in Hebrew for example. (1=on/0=off)
,					// Open the Menus OnClick - leave blank for OnMouseover (1=on/0=off) คลิก1 ครั้งแล้วแสดง
,					// ID of the div you want to hide on MouseOver (useful for hiding form elements)
,					// Background image for menu when BGColor set to transparent.
,					// Scrollable Menu
,					// Reserved for future use
//--------------------------------------------
,"หน้าหลัก","index1.asp target=_top",,,0 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"ข้อมูลทั่วไปของ สชป.9","show-menu=m1",,"",0
,"ข้อมูลบุคลากร","show-menu=m2",,"",0
,"ข้อมูลสถานการณ์น้ำ","show-menu=m3",,"",0
,"หน่วยงานในสังกัด","show-menu=m4",,"",0
,"แผนผังเว็บไซต์","index_sitemap.asp target=_top",,,0 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"

//-----------------ข้อมูลทั่วไป-----------------------------------------
])
	addmenu(menu=["m1",
	,,160,1,"",style2,,"left",effect,,,,,,,,,,,,
	,"ประวัติความเป็นมา","index_general1.asp ",,,0
	,"วิสัยทัศน์และแผนยุทธศาสตร์","index_general2.asp ",,,0
	,"หน้าที่ความรับผิดชอบ","index_general3.asp ",,,0
	,"พื้นที่รับผิดชอบ","index_general4.asp ",,,0
	,"โครงสร้างองค์กร","index_general5.asp ",,,0
	,"สถานที่ติดต่อหน่วยงานในสังกัด","index_general6.asp ",,,0
	])

//-------------------บุคลากร----------------------------------------------
	addmenu(menu=["m2",
	,,136,1,"",style2,,"left",effect,,,,,,,,,,,,
   , "ทำเนียบผู้อำนวยการ","index_person1.asp",,,0
   ,"รายนามผู้บริหาร","index_person2.asp",,,0
   	])
 
//--------------------แผนงานงบประมาณ--------------------------------
	addmenu(menu=["m3",
	,,270,1,"",style2,,"left",effect,,,,,,,,,,,,
	,"สถานการณ์น้ำของอ่างเก็บน้ำต่างๆ ในเขต สชป.9","http://www.rid9.com/rid9_new/menu_level.asp  target=__blank",,,0
    ,"ตารางแสดงรายงานสภาพน้ำของอ่างเก็บน้ำในเขต สชป.9","http://www.rid9.com/rid9_new/menu_levelnew.asp  target=__blank",,,0
    ,"รายงานสรุปสถานการณ์น้ำในช่วงฤดูแล้ง - ฤดูฝน","http://www.rid9.com/rid9_new/menu_water.asp target=__blank",,,0
    ,"ฐานข้อมูลสถานการณ์น้ำ","http://www.rid9.com/rid9_new/water_admin.asp target=__blank",,,0
   ,"โทรมาตรลุ่มน้ำจันทบุรี","http://61.19.46.211/ target=__blank",,,0

	])
//----------------------สถานการณ์น้ำ--------------------------------------
	addmenu(menu=["m4",
		,,145,1,"",style2,,"left",effect,,,,,,,,,,,,
		, "หน่วยงานภายใน","show-menu=m41",,"",0
		, "โครงการชลประทาน","show-menu=m42",,"",0
		, "โครงการส่งน้ำและบำรุงรักษา","show-menu=m43",,"",0
		, "โครงการก่อสร้าง","show-menu=m44",,"",0
		, "โครงการปฏิบัติการคันคูน้ำ","show-menu=m45",,"",0

		])
			addmenu(menu=["m41",
		,,145,1,"",style2,,"left",effect,,,,,,,,,,,,
		, "ฝ่ายบริหารทั่วไป","# target=__blank",,,0
		, "ส่วนวิศวกรรมบริหาร","sv/cu.php target=__blank",,,0
		, "ส่วนจัดสรรน้ำและบำรุงรักษา","http://irrigation.rid.go.th/rid9/water/web/page/indexwater.html target=__blank",,,0
		, "ส่วนปฏิบัติการ","# target=__blank",,,0
		, "ส่วนเครื่องจักรกล","# target=__blank",,,0
		])
		addmenu(menu=["m42",
		,,70,1,"",style2,,"left",effect,,,,,,,,,,,,
		, "ชลบุรี","http://ridceo.rid.go.th/chonburi target=__blank",,,0
		, "ฉะเชิงเทรา","http://ridceo.rid.go.th/chachun/ target=__blank",,,0
		, "นครนายก","http://ridceo.rid.go.th/nkyok/ target=__blank",,,0
		, "ปราจีนบุรี","http://ridceo.rid.go.th/prachin/ target=__blank",,,0
		, "ระยอง","http://www.rayongrid.com target=__blank",,,0
		, "จันทบุรี","http://61.19.46.211/chan/ target=__blank",,,0
		, "ตราด","http://ridceo.rid.go.th/trad/ target=__blank",,,0
		, "สระแก้ว","http://ridceo.rid.go.th/sakaeo/ target=__blank",,,0
		])
		addmenu(menu=["m43",
		,,120,1,"",style2,,"left",effect,,,,,,,,,,,,
		, "นครนายก","http://www2.asis.co.th/nayok/ target=__blank",,,0
		, "บางพลวง","http://www.geocities.com/bangpluang_project target=__blank",,,0
		, "เขื่อนบางปะกง","http://www.telebangpakong.com target=__blank",,,0
		, "คลองสียัด","http://siyat.ccs.go.th target=__blank",,,0
		, "ประแสร์","http://www.ridprasae.com target=__blank",,,0
		, "เขื่อนขุนด่านปราการชล","http://www.khundandam.th.gs target=__blank",,,0
		])
		addmenu(menu=["m44",
		,,110,1,"",style2,,"left",effect,,,,,,,,,,,,
		, "โครงการก่อสร้าง 1/09","http://www.rid109.org/project109 target=__blank",,,0
		, "โครงการก่อสร้าง 2/09","http://www.geocities.com/pr2w9/ target=__blank",,,0
		])
		addmenu(menu=["m45",
		,,150,1,"",style2,,"left",effect,,,,,,,,,,,,
		, "โครงการปฏิบัติการคันคูน้ำที่ 9","http://members.thai.net/dike9 target=__blank",,,0
		])

//-------------------------------เกษตร/ชลประทาน------------------------------
	addmenu(menu=["m5",
		,,350,1,"",style2,,"left",effect,,,,,,,,,,,,
		, "เอกสารข้อมูลจัดสรรน้ำ/กลุ่มผู้ใช้น้ำ","html/menu5/pmenu_2.html target=___blank",,,0
		,"ข้อมูลโครงการขนาดใหญ่/กลาง/เล็ก","# target=___blank",,,0
		, "ข้อมูลแผนการปลูกพืชฤดูแล้ง/ฝน","html/menu5/pmenu_3.html target=___blank",,,0
		, "แผนการส่งน้ำ/จัดสรรน้ำ/ปลูกพืช","html/menu5/pmenu_1.html target=___blank",,,0
		, "รายงานการใช้เครื่องสูบน้ำเพื่อช่วยเหลือการปลูกพืชฤดูแล้ง ปี 2547/2548","html/menu5/newpmenu.htm target=___blank",,,0
		, "รายงานการสูบน้ำด้วยเครื่องสูบน้ำด้วยไฟฟ้าในเขต สชป.4","information_rid4/report_electric/electric.html target=___blank",,,0
		])


dumpmenus()