* 
 * You can contact X2Engine, Inc. P.O. Box 66752, Scotts Valley,
 * California 95067, USA. or at email address contact@x2engine.com.
 * 
 * The interactive user interfaces in modified source and object code versions
 * of this program must display Appropriate Legal Notices, as required under
 * Section 5 of the GNU Affero General Public License version 3.
 * 
 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
 * these Appropriate Legal Notices must retain the display of the "Powered by
 * X2Engine" logo. If the display of the logo is not reasonably feasible for
 * technical reasons, the Appropriate Legal Notices must display the words
 * "Powered by X2Engine".
 *****************************************************************************************/
$this->pageTitle = Yii::app()->name . ' - Login';
LoginThemeHelper::init();
$loginBoxHeight = 210;
if ($profile) {
    //$loginBoxHeight -= 30;
}
if ($model->useCaptcha) {
    $loginBoxHeight -= 56;
}
Yii::app()->clientScript->registerCss('loginExtraCss', "\n\n#login-box-outer {\n    top: " . $loginBoxHeight . "px;\n}\n\n");
Yii::app()->clientScript->registerScript('loginPageJS', "\n;(function () {\n\n/*\$('#login-form-inputs-container').children ('input').focus (function () {\n    \$(this).addClass ('login-input-focus');\n    \$(this).siblings ('input').removeClass ('login-input-focus');\n}).blur (function () {\n    \$(this).removeClass ('login-input-focus');\n    \$(this).siblings ('input').removeClass ('login-input-focus');\n});*/\n\ndocument.getElementById('LoginForm_username').focus (); // for when autofocus isn't supported\n\nvar mobileLoginUrl = '" . Yii::app()->getBaseUrl() . '/index.php/mobile/login' . "';\n\$('#mobile-signin-button').click (function () {\n    \$('#login-form-outer').attr ('action', mobileLoginUrl);\n});\n\n\n}) ();\n    \n\n", CClientScript::POS_READY);
// Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl.'/js/loginTheme.js', CClientScript::POS_END);
?>
<div id="login-box-outer">
<div class="container<?php 
echo $profile ? ' welcome-back-page' : '';
?>