/* --------------------------------------
   The Top Level Images.
   --------------------------------------
*/

menu_image1_src = "/images/about.gif"
menu_image2_src = "/images/traveltools.gif"
menu_image3_src = "/images/bookings.gif"

menu_image1_highlight_src = "/images/about.gif"
menu_image2_highlight_src = "/images/traveltools.gif"
menu_image3_highlight_src = "/images/bookings.gif"

/* --------------------------------------
   General Submenu Settings.
   --------------------------------------
*/

menu_submenu_x = 0
menu_submenu_y = 15
menu_submenu_width = 150

menu_submenu_border = 1
menu_submenu_border_color = "#FFBF00"
menu_submenu_item_indent = 5
menu_submenu_item_height = 18
menu_submenu_item_spacing = 1
menu_submenu_item_spacing_color = "#FFBF00"
menu_submenu_background_color = "#FFFFCC"
menu_submenu_highlight_color = "#FFBF00"

menu_submenu_font_face = "Verdana, Arial, Helvetica, sans-serif"
menu_submenu_font_size = 1
menu_submenu_font_color = "#000000"
menu_submenu_font_highlight_color = "#FFFFFF"
menu_submenu_url_target = "_self"
menu_hide_delay = 200

/* --------------------------------------
   Submenu Items.
   --------------------------------------
*/

menu_submenu1_1_text = "Nok Fast Facts"
menu_submenu1_1_link = "/html/about/fastfacts.html"
menu_submenu1_2_text = "Nok Plane"
menu_submenu1_2_link = "/html/about/planes.html"
menu_submenu1_3_text = "Pilots & Crew"
menu_submenu1_3_link = "/html/about/pilotsandcrew.html"
menu_submenu1_4_text = "Nok Culture"
menu_submenu1_4_link = "/html/about/culture.html"
menu_submenu1_5_text = "Nok Safety"
menu_submenu1_5_link = "/html/about/safety.html"
menu_submenu1_6_text = "Call Center"
menu_submenu1_6_link = "/html/about/callcenter.html"
menu_submenu1_7_text = "Company Profile"
menu_submenu1_7_link = "/html/about/companyprofile.html"
menu_submenu1_8_text = "Employment"
menu_submenu1_8_link = "/html/about/employment.html"

menu_submenu2_1_text = "Flight Schedule"
menu_submenu2_1_link = "/html/traveltools/flightschedule.html"
menu_submenu2_2_text = "Route Map"
menu_submenu2_2_link = "/html/traveltools/routemap.html"
menu_submenu2_3_text = "Best Deals"
menu_submenu2_3_link = "/html/traveltools/bestdeals.html"
menu_submenu2_4_text = "How to Book and Pay"
menu_submenu2_4_link = "/html/traveltools/howtobook.html"
//menu_submenu2_5_text = "How to Pay?"
//menu_submenu2_5_link = "/html/traveltools/howtopay.html"
menu_submenu2_5_text = "How to Select Your Seat"
menu_submenu2_5_link = "/html/traveltools/howtoselectyourseat.html"
menu_submenu2_6_text = "Nok Plus"
menu_submenu2_6_link = "/html/traveltools/nokplus.html"
menu_submenu2_7_text = "In Flight Service"
menu_submenu2_7_link = "/html/traveltools/inflightservice.html"

//'Invoices Online','/welcome.aspx?pg=request_invoice&currlang=en'
menu_submenu3_1_text = "New Booking"
menu_submenu3_1_link = "/welcome.aspx?gg=data&currlang=en"
menu_submenu3_2_text = "Receipt Confirmation"
menu_submenu3_2_link = "/welcome.aspx?pg=request_confirmation&currlang=en"
menu_submenu3_3_text = "View/Print Confirmation"
menu_submenu3_3_link = "/welcome.aspx?pg=bkgmodmanager&status=VIEWBOOKING&currlang=en"
menu_submenu3_4_text = "Select Your Seat"
menu_submenu3_4_link = "/welcome.aspx?pg=bkgmodmanager&status=SELECTSEAT&currlang=en"
menu_submenu3_5_text = "Group Booking Request"
menu_submenu3_5_link = "/html/traveltools/groupbooking_en.html"

menu_browser = "nn3";
menu_mac = false;
if(document.getElementById) menu_browser = "nn6";
if(document.all) menu_browser = "ie";
if(document.layers) menu_browser = "nn";
if(navigator.userAgent.toLowerCase().indexOf("mac")) menu_mac = true;
if(navigator.userAgent.toLowerCase().indexOf("ppc")) menu_mac = true;
if(navigator.userAgent.toLowerCase().indexOf("powerpc")) menu_mac = true;
document.write("<script language=\"JavaScript1.2\" src=\"/function/menu/menu_"+menu_browser+".js\"></script>");

function writeHeader(thPage, enPage) {
	html = "<TABLE id=theHeader cellSpacing=0 cellPadding=0 width=100% border=0>"
	html += "  <TR bgColor=#ffbf00>"
	html += "    <TD vAlign=middle width=220 bgColor=#ffbf00 height=43>"
	html += "      <TABLE cellSpacing=0 cellPadding=0 width=220 border=0>"
	html += "        <TR>"
	html += "          <TD align=middle width=34%>"
	//html += "	     <A href=http://"
	//html += location.hostname
	//html += "/welcome.aspx?currlang=en>"
	html += "<IMG alt=Home src=images/logosmall.gif border=0></A></TD>"
	html += "          <TD width=53%>"
	//html += "	     <A href=http://"
	//html += location.hostname
	//html += "/welcome.aspx?currlang=en>"
	html += "<IMG alt=Home src=images/logo_nokaircoth.gif border=0></A></TD>"
	html += "          <TD width=13%></TD>"
	html += "        </TR>"
	html += "      </TABLE>"
	html += "    </TD>"
	html += "    <TD align=right bgColor=#ffbf00 height=53>"
	html += "      <table width=100%  border=0 cellspacing=0 cellpadding=0>"
	html += "        <tr>"
	html += "          <td valign=bottom>&nbsp;"
	/*
	html += "	    <TABLE id=Table1 cellSpacing=0 cellPadding=0 width=510 border=0>"
	html += "              <TR>"
	html += "                <TD width=89><A onmouseover=\"menu_activate(1)\" onmouseout=\"menu_deactivate(1)\" href=\"#\"><IMG name=\"menu_image1\" src=/images/about.gif border=0></A></TD>"
	html += "                <TD width=91><A onmouseover=\"menu_activate(2)\" onmouseout=\"menu_deactivate(2)\" href=\"#\"><IMG name=\"menu_image2\" src=/images/traveltools.gif border=0></A></TD>"
	html += "                <TD width=78><A onmouseover=\"menu_activate(3)\" onmouseout=\"menu_deactivate(3)\" href=\"#\"><IMG name=\"menu_image3\" src=/images/bookings.gif border=0></A></TD>"
	html += "                <TD width=104><A href=/html/faq/faq.aspx><IMG src=/images/but_faq.gif border=0></A></TD>"
	html += "                <TD width=84><A href=/html/about/contactnok.html><IMG src=/images/but_contactnok.gif border=0></A></TD>"
	html += "                <TD width=100%>&nbsp;</TD>"
	html += "              </TR>"
	html += "            </TABLE>"
	*/
	html += "          </td>"
	html += "          <td align=right>"
	html += "	   <table width=206 border=0 cellspacing=0 cellpadding=0>"
	html += "            <tr>"
	html += "              <td>&nbsp;</td>"
	html += "              <td width=32 valign=bottom>"
	html += "                <table width=32 border=0 cellspacing=0 cellpadding=0>"
	html += "                  <tr>"

	if ((window.location.href.indexOf("bkgmanager")>-1) || (window.location.href.indexOf("bkgerrorpage")>-1)) {
		thPage	= "/welcome.aspx?currlang=th"
	} else {
		if (window.location.href.indexOf("currlang=en")>-1) {
			thPage = window.location.href.replace("currlang=en", "currlang=th")
		}	
	}

	html += "                    <td>&nbsp;</td>"
	html += "                  </tr>"
	html += "                  <tr>"

	if ((window.location.href.indexOf("bkgmanager")>-1) || (window.location.href.indexOf("bkgerrorpage")>-1)) {
		enPage	= "/welcome.aspx?currlang=en"
	} else {
		if (window.location.href.indexOf("currlang=th")>-1) {
			enPage = window.location.href.replace("currlang=th", "currlang=en")
		} else {
			enPage = window.location.href
		}
	}

	html += "                    <td>&nbsp;</td>"
	html += "                  </tr>"
	html += "              </table>"
	html += "             </td>"
	html += "            </tr>"
	html += "          </table>"
	html += "         </td>"
	html += "        </tr>"
	html += "      </table>"
	html += "    </TD>"
	html += "  </TR>"
	html += "</TABLE>"
	document.write(html)
		//alert(html);
		//document.mainform.aa.value = html;

}

function writeFooter() {
	//alert('footer');
	html = "<table border=0 cellspacing=0 cellpadding=0 width=100%>"
	html += "<tr>"
	html += "<td align=center>"
	html += "<span class=body>"
	html += "<font color=\"#ffffff\">&copy;2008 SN-Team@Nok Air. All rights reserved.</font>"
//	html += "<a href=\"/html/traveltools/howtobook.html\">How to Book and Pay</a> | "
//	html += "<a href=\"/html/traveltools/howtopay.html\"> How to Pay</a> | "
//	html += "<a href=\"/html/traveltools/termandcondition.html\">Terms and Conditions</a>"
	html += "</span>"
	html += "</td>"
        html += "</tr>"
        html += "</table>"
	document.write(html)
}