<%@ page language="C#" autoeventwireup="true" inherits="Main, FaxCore.OSA40" uiculture="Auto" %>

<%@ Import Namespace="System.Threading" %>
<%@ Import Namespace="Osa.Util" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta name="Browser" content="NetFront" />
    <title>Main Menu</title>
    <asp:Literal runat="server" ID="activeStyleSheet"></asp:Literal>
</head>
<body>
    <script type="text/javascript">
        function Dispatch(el)
        {       
          switch(el.id)
          {
		    case "id_source":
			    document.location = "SourceSetting.aspx";
			    break;
		    case "id_exposure_level":
			    document.location = "ExposureSetting.aspx";
			    break;
		    case "id_resolution":
			    document.location = "ResolutionSetting.aspx";
			    break;
		    case "id_file_format":
			    document.location = "FileFormatSetting.aspx";
			    break;
		    case "id_color_mode":
			    document.location = "ColorModeSetting.aspx";
			    break;
		    case "id_special":
			    document.location = "SpModeSetting.aspx";
			    break;
			case "id_preview":				    		    
			    document.location = "Preview.aspx";			    
			    break;
		    default:
			    break;
	      }
        }
    </script>

    <form id="Form1" method="post" runat="server">
    <div id="header" style="left: 0px; position: absolute; top: 0px;">
        <asp:Label ID="id_Label_Title" runat="server"></asp:Label>
    </div>
    <br />
    <br />
    <div style="float: right;">
        <asp:ImageButton ID="id_start_scan" runat="server" Height="50px" AlternateText="Start Scan"
            Width="50px" OnClick="id_start_scan_Click" ImageUrl="Images/start_button_1.png" />
    </div>
    <table id="Table1" border="0" style="width: 85%; height: 20px">
        <tr>
            <td style="width: 20%">
                <input id="id_source" type="button" value="<%= str_id_src %>" onclick="Dispatch(this)"
                    class="btn_Main" />
            </td>
            <td style="vertical-align: middle; width: 20%; text-align: left">
                <%= str_read_label %>
            </td>
            <td style="vertical-align: middle; width: 20%; text-align: left">
                <label style="background-color: Blue">
                    <%= str_read_value %></label>
            </td>
            <td style="vertical-align: middle; width: 20%; text-align: left">
                <%= str_send_label %>
            </td>
            <td style="vertical-align: middle; width: 20%; text-align: left">
                <label style="background-color: Blue">
                    <%= str_send_value %></label>
            </td>
        </tr>
        <tr>
            <td style="width: 20%">
                <input id="id_exposure_level" type="button" value="<%= str_id_exposure_level %>"
                    onclick="Dispatch(this)" class="btn_Main" />
            </td>
            <td style="vertical-align: middle; width: 20%; text-align: left">
                <label style="background-color: Blue">
                    <%= str_exposure_level %></label>
            </td>
            <td style="vertical-align: middle; text-align: left" colspan="3">
                <%= str_exposure_mode %>
            </td>
        </tr>
        <tr>
            <td style="width: 20%">
                <input id="id_resolution" type="button" value="<%= str_id_resolution %>" onclick="Dispatch(this)"
                    class="btn_Main" />
            </td>
            <td style="vertical-align: middle; text-align: left" colspan="4">
                <%= str_resolution %>
            </td>
        </tr>
        <tr>
            <td style="width: 20%">
                <input id="id_file_format" type="button" value="<%= str_id_file_format %>" onclick="Dispatch(this)"
                    class="btn_Main" disabled="disabled" />
            </td>
            <td style="vertical-align: middle; text-align: left" colspan="2">
                <%= str_file_format %>
            </td>
            <td style="vertical-align: middle; text-align: left" colspan="2">
                <%= str_file_comp %>
            </td>
        </tr>
        <tr id="id_tr_color_mode" runat="server">
            <td style="width: 20%">
                <input id="id_color_mode" type="button" value="<%= str_id_color_mode %>" onclick="Dispatch(this)"
                    class="btn_Main" />
            </td>
            <td style="vertical-align: middle; text-align: left" colspan="4">
                <%= str_color_mode %>
            </td>
        </tr>
        <tr>
            <td style="width: 20%">
                <input id="id_special" type="button" value="<%= str_id_special %>" onclick="Dispatch(this)" class="btn_Main" />
            </td>
            <td style="vertical-align: middle; text-align: left" colspan="4">            
                <%= str_sp_mode %>
            </td>
        </tr>
        <tr>
            <td style="width: 20%">
                <input id="id_preview" type="button" runat="server" visible="false" value="" onclick="Dispatch(this)" class="btn_Main" />
            </td>
            <td style="vertical-align: middle; text-align: left" colspan="4">            
                <%=str_preview%>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
