<html>

    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>Template</title>

        <!--Styles-->
        <link rel="stylesheet" type="text/css" href="styles/master.css">
        <link rel="stylesheet" type="text/css" href="styles/of_puppets.css">
        <link rel="stylesheet" href="styles/fonts/Lobster/stylesheet.css">
	<link rel="stylesheet" href="styles/fonts/SF-Toontime/stylesheet.css">
        <!--Scripts-->
        <script type="text/javascript" src="scripts/jquery-1.6.2.min.js"></script>
        <script type="text/javascript" src="scripts/jquery-ui-1.8.9.custom.min.js"></script>
        <script type="text/javascript" src="scripts/template2.js"></script>
        <script type="text/javascript">
            $(document).ready(function(){
                var lang = ""; //locale language
                if(window.sankore){
                    lang = sankore.locale().substr(0,2);    
                } else 
                    lang = "en";
                if(lang == "en"){
                    if(window.sankore)
                        sankore.enableDropOnWidget(false);
                    $("#ub-widget").append('<div id="mp_setup"></div><div id="mp_word"></div>');
                    modeView();
                }
                else{
                    returnStatus(lang);
                }
                
                function returnStatus(lang){
                    $.ajax({
                        type: 'POST',
                        url:'locales/' + lang + '/index.html',
                        statusCode: {
                            404: function() {
                                if(window.sankore)
                                    sankore.enableDropOnWidget(false);
                                modeView();
                            },
                            200: function(){
                                window.location.href = 'locales/' + lang + '/index.html';
                            }
                        }
                    });                    
                }                
            });
        </script>
    </head>

    <body>
        <table class="body_table" cellpadding=0 cellspacing=0>
            <tr style="height: 54px;">
                <td class="b_top_left">&nbsp;</td>
                <td class="b_top_center">
                    <div id="wgt_name"></div>
                    <div id="wgt_help"></div> 
                    <div id="wgt_reload"></div>                    
                    <div id="wgt_display" class="selected"></div>
                    <div id="wgt_edit"></div>
                </td>
                <td class="b_top_right">&nbsp;</td>
            </tr>

            <tr>
                <td class="b_center_left">&nbsp;</td>
                <td>
                    <div id="help"></div>
                    <div id="ub-widget">
                        <div id="parameters">
                            <div class="inline">
                                <label>
                                    <select id="style_select">
                                        <option value="1"></option>
                                        <option value="2"></option>
                                        <option value="3"></option>
                                    </select>
                                </label>
                            </div>
                        </div>
                    </div>
                </td>
                <td class="b_center_right">&nbsp;</td>
            </tr>     

            <tr style="height: 54px;">
                <td class="b_bottom_left">&nbsp;</td>
                <td class="b_bottom_center">&nbsp;</td>
                <td class="b_bottom_right">&nbsp;</td>
            </tr>
        </table>
    </body>

</html>