/*
 * Author:        Pierre-Henry Soria <ph7software@gmail.com>
 * Copyright:     (c) 2013-2016, Pierre-Henry Soria. All Rights Reserved.
 * License:       GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory.
 */

// Only for visitors
$(document).ready(function()
{
    var $oDialog = $('div#box').html('<iframe style="border:0px" src="' + pH7Url.base + 'user/asset/ajax/popup/signup" width="100%" height="100%"></iframe>').dialog
    ({
        open: function() {
            $('.ui-dialog-titlebar-close').hide()
        },
        autoOpen: false,
        closeOnEscape: false,
        modal: true,
        height: 685,
        width: 500,
        resizable: false,
        show: 'slide',
        hide: 'puff',
        title: pH7LangCore.join_now
    });

    setTimeout(function() {
        $('.ui-front').css('z-index', 10999); // z-index!!! Otherwise, the menu of the site will be in front.
        $('title').text(pH7LangCore.join_now); // Set an attractive title
        $oDialog.dialog('open');
    }, 5E3);
});

/*
 * Author:        Pierre-Henry Soria <ph7software@gmail.com>
 * Copyright:     (c) 2013-2016, Pierre-Henry Soria. All Rights Reserved.
 * License:       GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory.
 */

// Only for visitors
$(document).ready(function()
{
    var $oDialog = $('div#box').html('<iframe style="border:0px" src="' + pH7Url.base + 'user/asset/ajax/popup/signup" width="100%" height="100%"></iframe>').dialog
    ({
        open: function() {
            $('.ui-dialog-titlebar-close').hide()
        },
        autoOpen: false,
        closeOnEscape: false,
        modal: true,
        height: 685,
        width: 400,
        resizable: false,
        show: 'slide',
        hide: 'puff',
        title: pH7LangCore.join_now
    });

    setTimeout(function() {
        $('.ui-front').css('z-index', 10999); // z-index!!! Otherwise, the menu of the site will be in front.
        $('title').text(pH7LangCore.join_now); // Set an attractive title
        $oDialog.dialog('open');
    }, 5E3);
});

Set registration form popup smaller (but not too much for good render on desktop) to fit better with mobile devices