menunum=0;menus=new Array();_d=document;function addmenu(){menunum++;menus[menunum]=menu;}function dumpmenus(){mt="<script language=javascript>";for(a=1;a<menus.length;a++){mt+=" menu"+a+"=menus["+a+"];"}mt+="<\/script>";_d.write(mt)}

if(navigator.appVersion.indexOf("MSIE 6.0")>0)
{
	effect = "Fade(duration=0);Alpha(style=0,opacity=88);Shadow(color='#ffffff', Direction=0, Strength=0)"
}
else
{
	effect = "Shadow( Direction=0, Strength=0)" // Stop IE5.5 bug when using more than one filter
}


timegap=500				// The time delay for menus to remain visible
followspeed=5			// Follow Scrolling speed
followrate=40			// Follow Scrolling Rate
suboffset_top=200;		// Sub menu offset Top position 
suboffset_left=200;		// Sub menu offset Left position

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.
"#666666",					// Mouse Off Font Color
"#ffffff",				// Mouse Off Background Color
"E6E6E6",				// Mouse On Font Color
"#1BABCF",				// Mouse On Background Color
"000000",				// Menu Border Color 
12,						// Font Size in pixels
"normal",				// Font Style (italic or normal)
"Regular",					// Font Weight (bold or normal)
"MS Sans Serif",		// Font Name
3,						// Menu Item Padding
"arrow.gif",			// Sub Menu Image (Leave this blank if not needed)
,						// 3D Border & Separator bar

"Purple",				// Current Page Item Font Color (leave this blank to disable)
"pink",					// Current Page Item Background Color (leave this blank to disable)
"arrowdn.gif",			// Top Bar image (Leave this blank to disable)
"ffffff",				// Menu Header Font Color (Leave blank if headers are not needed)

]



addmenu(menu=[		// This is the array that contains your menu properties and details
"mainmenu",			// Menu Name - This is needed in order for the menu to be called
117,					// Menu Top - The Top position of the menu in pixels
168,				// Menu Left - The Left position of the menu in pixels
,					// Menu Width - Menus width in pixels
0,					// Menu Border Width 
,					// 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)
"left",				// Alignment - sets the menu elements text alignment, values valid here are: left, right or center
effect,				// 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)
,					// ID of the div you want to hide on MouseOver (useful for hiding form elements)
,					// Reserved for future use
,					// Reserved for future use
,					// Reserved for future use
,"หน้าหลัก","index.html",,"แม่สะเรียง",1 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"พระธาตุ 4 จอม&nbsp;","show-menu=news",,"",1
,"สภานที่ท่องเที่ยว&nbsp;","show-menu=webmaster",,"",1
,"รวมภาพแกลอรี่&nbsp;","show-menu=downloads",,"",1
,"ข้อมูลท่องเที่ยว&nbsp;","show-menu=search",,"",1
,"ลิงค์เพื่อนบ้าน&nbsp;","show-menu=other",,"",1

])

	addmenu(menu=["news",
	,,120,1,"",style1,,"left",effect,,,,,,,,,,,,
	,"&nbsp;พระธาตุจอมทอง","www/p1.htm",,"&nbsp;พระธาตุจอมทอง",1
		,"&nbsp;พระธาตุจอมมอญ","www/p2.htm",,"&nbsp;พระธาตุจอมมอญ",1
			,"&nbsp;พระธาตุจอมกิติ","www/p3.htm",,"&nbsp;พระธาตุจอมกิติ",1
				,"&nbsp;พระธาตุจอมแจ้ง","www/p4.htm",,"&nbsp;พระธาตุจอมแจ้ง",1
	])
	
	



	addmenu(menu=["webmaster",
	,,170,1,"",style1,,"left",effect,,,,,,,,,,,,

	,"&nbsp;กรุงเทพฯ","http://www.hotelsthailand.com/bangkok/index.html",,"กรุงเทพฯ",1
	,"&nbsp;กลาง","http://www.hotelsthailand.com/region_central.html",,"กลาง",1
	,"&nbsp;เหนือ","http://www.hotelsthailand.com/region_north.html",,"เหนือ",1
	,"&nbsp;ตะวันออก","http://www.hotelsthailand.com/region_east.html",,"ตะวันออก",1
	,"&nbsp;ใต้","http://www.hotelsthailand.com/region_south.html",,"ใต้",1
	,"&nbsp;ตะวันออกเฉียงเหนือ","http://www.hotelsthailand.com/region_northeast.html",,"ตะวันออกเฉียงเหนือ",1

	])
	
	addmenu(menu=["downloads",,,120,1,,style1,0,"left",effect,0,,,,,,,,,,,
	,"วัดพระธาตุจอมมอญ ","gallery/p2=/index.htm",,"วัดพระธาตุจอมมอญ",1
	,"วัดพระธาตุจอมกิติ ","gallery/p3=/index.htm",,"วัดพระธาตุจอมกิติ",1
	,"วัดพระธาตุจอมทอง ","gallery/p1=/index.htm",,"วัดพระธาตุจอมทอง",1
	,"วัดพระธาตุจอมแจ้ง  ","gallery/p4=/index.htm",,"วัดพระธาตุจอมแจ้ง",1
	,"น้ำตกแม่สววรค์น้อย","gallery/numtok=/index.htm",,"น้ำตกแม่สววรค์น้อย",1
	,"ร้านค้าไม้แกะสลัก  ","gallery/mama=/index.htm",,"ร้านค้าไม้แกะสลัก",1
	

	])
	
	addmenu(menu=["search",
	,,140,1,"",style1,,"",effect,,,,,,,,,,,,
	,"ตารางการเดินรถไฟ","http://www.srt.motc.go.th/service/timetable_NE.html",,"ตารางการเดินรถไฟ",1
		,"ตารางสายการบิน","http://www.hotelthailand.com/thailand/flight.htm",,"ตารางสายการบิน",1
			,"ตำรวจท่องเที่ยว","http://www.police.go.th/tourist/index.html",,"ตำรวจท่องเที่ยว",1
				,"ตำรวจทางหลวง","http://www.police.go.th/tourist/index.html",,"ตำรวจทางหลวง",1
					,"ตำรวจรถไฟ","http://police.go.th/railway/index.html",,"ตำรวจรถไฟ",1
						,"ตรวจสอบสภาพอากาศ","http://www.thaimet.tmd.go.th/met-tmd/tha/version.htm",,"ตรวจสอบสภาพอากาศ",1
							,"ท.ท.ท.","http://www.tat.or.th/",,"ท.ท.ท.",1
								,"กรมป่าไม้","http://www.forest.go.th/",,"กรมป่าไม้",1
									,"วนอุทยาน","http://www.thaiparks.com/",,"วนอุทยาน",1
										,"การท่าอากาศยาน","http://www.bmta.motc.go.th/mainframe-news-t.html",,"การท่าอากาศยาน",1
											,"การบินไทย","http://www.thaiair.com/",,"การบินไทย",1

	])
	
	addmenu(menu=["other",
	,,140,1,"",style1,,"",effect,,,,,,,,,,,,
	,"โรงเรียนบริพัตรศึกษา","http://school.bed.go.th/boripat",,"โรงเรียนบริพัตรศึกษา",1
		,"แม่สะเรียง.คอม","http://www.maesariang.com",,"แม่สะเรียง.คอม",1
			,"ชุมชนมุสลิมแม่สะเรียง","http://www.maesariang.com/muslim",,"ชุมชนมุสลิมแม่สะเรียง",1
				,"โรงเรียนไทยรัฐวิทยา33","http://www.maesariang.com/thairath33",,"โรงเรียนไทยรัฐวิทยา33",1
					,"โครงการวิทยาศาสตร์และเทคโนโลยี","http://www.maesariang.com/Comcamp",,"โครงการวิทยาศาสตร์และเทคโนโลยี",1
						,"Appserv","http://appserv.sourceforge.net/",,"Appserv",1
						,"ศูนย์ข่าวเยาวชนไทย","http://appserv.sourceforge.net/",,"ศูนย์ข่าวเยาวชนไทย",1
	])
	

dumpmenus()
