<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
	<title></title>
	<telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
    <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
    <script type="text/javascript">
        //<![CDATA[


        function onTabSelecting(sender, args) {

            if (args.get_tab().get_pageViewID()) {

                args.get_tab().set_postBack(false);

            }

        }

        function onTabSelected(sender, args) {
            if (args.get_tab().get_pageViewID()) {
                
                var RadToolBar1 = $find(args.get_tab().get_value() + "_userControl_RadToolBar1");
                var filterButton = RadToolBar1.findItemByValue("Filter");

                if (filterButton) {
                    switch (args.get_tab().get_value()) {
                        case "Air":
                            filterButton.set_text(showHideFilterAirText);
                            break;
                        case "Domestic":
                            filterButton.set_text(showHideFilterDomesticText);
                            break;

                    }
                }
            }

        }
 
          //]]>
    </script>
    </telerik:RadScriptBlock>

</head>
<body>
    <form id="form1" runat="server">
	<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
		<Scripts>
			<%--Needed for JavaScript IntelliSense in VS2010--%>
			<%--For VS2008 replace RadScriptManager with ScriptManager--%>
			<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
			<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
			<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
		</Scripts>
	</telerik:RadScriptManager>
	<script type="text/javascript">
		//Put your JavaScript code here.
    </script>
	<telerik:RadAjaxManager ID="ramMain" EnableAJAX="true" runat="server"> 
       <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="MainPanel">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="MainPanel" LoadingPanelID="ralpDefault" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
           </AjaxSettings>
 
     </telerik:RadAjaxManager>
 
         <telerik:RadAjaxLoadingPanel ID="ralpDefault" runat="server" Height="75px" Width="75px">
        </telerik:RadAjaxLoadingPanel>

 <asp:Panel ID="MainPanel" runat="server">
    <telerik:RadTabStrip OnClientTabSelecting="onTabSelecting"  OnClientTabSelected="onTabSelected"  ID="rtsMain" runat="server"  Width="100%" Align="Left" MultiPageID="rmpMain" >
        </telerik:RadTabStrip>
 
         <telerik:RadMultiPage ID="rmpMain" runat="server" Height="100%"> 
        </telerik:RadMultiPage>
</asp:Panel>

	</form>
</body>
</html>
