<script type="text/javascript">
    window._nsl.push(function ($) {
        $(document).ready(function () {
            var $container = $('#<?php echo $containerID; ?>');
            $container.find('.nsl-container')
                .addClass('nsl-container-embedded-login-layout-below')
                .css('display', 'block');

            $container
                .appendTo($container.closest('form'));
        });
    });
</script>
<?php
$style = '
    {{containerID}} .nsl-container {
        display: none;
    }

    {{containerID}} .nsl-container-login-layout-below {
        clear: both;
        padding: 20px 0 0;
    }

    .login form {
        padding-bottom: 20px;
    }';
?>
<style type="text/css">
    <?php echo str_replace('{{containerID}}','#' . $containerID, $style); ?>
</style>
<?php
$style = '
    {{containerID}} .nsl-container {
        display: block;
    }';
?>
<noscript>
    <style type="text/css">
        <?php echo str_replace('{{containerID}}','#' . $containerID, $style); ?>
    </style>
</noscript>