//sidemenu_array.js now here
if(navigator.appVersion.indexOf("MSIE 6.0")>0)
{
	effect = "Fade(duration=0.2);Shadow(color='#777777', Direction=135, Strength=5)"
}
else
{
	effect = "Shadow(color='#777777', Direction=135, Strength=5)"
}

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)}






//effect2 = "Alpha( style=0,opacity=65)"
//effect=""




dumpmenus();
//end of sidemenu_array.js


////////////////////////////////////
// Editable properties START here //
////////////////////////////////////

timegap=500					// The time delay for menus to remain visible on mouse off
followspeed=5				// Follow Scrolling speed (higher number makes the scrolling smoother but slower)
followrate=40				// Follow Scrolling Rate (use a minimum of 40 or you may experience problems)
suboffset_top=10;			// Sub menu offset Top position 
suboffset_left=12;			// Sub menu offset Left position


if(navigator.appVersion.indexOf("MSIE 6.0")>0)
{
	effect = "Fade(duration=0.2);Alpha(style=0,opacity=88);Shadow(color='#777777', Direction=135, Strength=5)"
}
else
{
	effect = "Shadow(color='#777777', Direction=135, Strength=5);"
}

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.
"663300",					// Mouse Off Font Color
"E7D1A5",					// Mouse Off Background Color
"FFFFFF",					// Mouse On Font Color
"BFC0BE",				// Mouse On Background Color
"003366",					// Menu Border Color 
10,							// Font Size (default is px but you can specify mm, pt or a percentage)
"normal",					// Font Style (italic or normal)
"bold",						// Font Weight (bold or normal)
"Verdana, Tahoma, Arial, Helvetica, sans-serif",	// Font Name
3,							// Menu Item Padding
"menu/images/3darrow.gif",	// Sub Menu Image (Leave this blank if not needed)
,							// 3D Border & Separator bar
"66ffff",					// 3D High Color
"000099",					// 3D Low Color
"Purple",					// Current Page Item Font Color (leave this blank to disable)
"pink",						// Current Page Item Background Color (leave this blank to disable)
,//"menu/images/3darrow_down.gif",	// Top Bar image (Leave this blank to disable)
"ffffff",					// Menu Header Font Color (Leave blank if headers are not needed)
"000099",					// Menu Header Background 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
101,				// Menu Top - The Top position of the menu in pixels
0,					// Menu Left - The Left position of the menu in pixels
,					// Menu Width - Menus width in pixels
,					// Menu Border Width 
,					// Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
style2,				// 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)
,					// 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
1,					// ..Now Obsolete..
,					// 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
,"&nbsp;Main Page &nbsp;&nbsp;&nbsp;","static_index.php",,,1
//,"&nbsp;Domestic &nbsp;&nbsp;&nbsp;","#",,,1// "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
,"&nbsp;Domestic &nbsp;&nbsp;&nbsp;","show-menu=Domestic","#",,1// "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
// เพิ่ม Menu  หลัก Tourism Statistic ในส่วนที่ยังไม่ได้มีการเรียกใช้เดิม โดยรงค์ 14/09/04 พี่วิภาดา อนุมัติ  
,"&nbsp;Tourism Statistic &nbsp;&nbsp;&nbsp;","show-menu=Tourism","#",,1
//,"&nbsp;International &nbsp;&nbsp;&nbsp;","#",,,1
,"&nbsp;International","show-menu=International",,,1
,"&nbsp;Contact TAT Statistics Division &nbsp;&nbsp;&nbsp;","mailto:inteldiv@tat.or.th",,,1
])


if(document.layers)m1div="_d.layers['menu1'].document.layers['mel1'].document.layers['subscribeform']"; else m1div="subscribeform"

addmenu(menu=["Domestic","offset=1",,195,1,"",style2,,"",effect,,,,,,,,m1div,,,,
,"Domestic Tourism Statistics", "static_tst.php",,,1
])

// เพิ่ม Menu  ย่อยของ Tourism Statistic ในส่วนที่ยังไม่ได้มีการเรียกใช้เดิม โดยรงค์ 14/09/04 พี่วิภาดา อนุมัติ  
addmenu(menu=["Tourism","offset=2",,195,1,"",style2,,"",effect,,,,,,,,m1div,,,,
,"Thailand Tourism Statistic", "static_tts.php",,,1
,"Tourism Situation", "static_tsi_list.php",,,1
,"Tourism Expenditures", "static_tex.php",,,1
])

addmenu(menu=["International","offset=3",,200,1,"",style2,,"",effect,,,,,,,,m1div,,,,
,"International Tourist Arrivals by Nationality and Mode of Transport", "static_download.php?Rpt=nmt",,,1
,"International Tourist Arrivals by Country of Residence", "static_download.php?Rpt=cre",,,1
,"Profile of International Tourist Arrivals", "static_download.php?Rpt=ita",,,1
,"Average Length of Stay of International Tourist Arrivals", "static_download.php?Rpt=als",,,1
,"Outgoing Thai Nationals by Country of Destination", "static_download.php?Rpt=otn",,,1
// เพิ่ม Menu 2 ข้อหลังในส่วนที่ยังไม่ได้มีการเรียกใช้เดิม โดยรงค์ 10/09/04 พี่วิภาดา อนุมัติ  
,"International Tourist Arrivals to Thailand by Nationality at International Airport", "static_download.php?Rpt=ata",,,1
,"International Tourist Arrivals to Thailand by Nationality at Southern Ports of Entry", "static_download.php?Rpt=ats",,,1
])




//////////////////////////////////
// Editable properties END here //
//////////////////////////////////
dumpmenus() // This must be the last line in this file
