/*
 Must return javascript code

 PHP code will be parsed

 <?php
 echo time();
 ?>
 */
// Define the tour!
var tour = {
    nextOnTargetClick: true,


    steps: [

        {
            title: "<?php echo MH_TOUR_SETUP_EMAIL_TITLE_TOUR_STEP1; ?>",
            content: "<?php echo MH_TOUR_SETUP_EMAIL_CONTENT_TOUR_STEP1; ?>",
            target: document.querySelector('[id*="tab_configbeez"]'),
            placement: "bottom",
            multipage: true, // indicates that the next step is on a different page.
            showNextButton: true,

            onNext: function () {
                window.location = "<?php echo mh_href_link(FILENAME_MAILBEEZ, 'tab=configbeez'); ?>"
            }
        },
        {
            title: "<?php echo MH_TOUR_SETUP_EMAIL_TITLE_TOUR_STEP2; ?>",
            content: "<?php echo MH_TOUR_SETUP_EMAIL_CONTENT_TOUR_STEP2; ?>",
            target: document.querySelector('[id*="module_config_queen"]'),
            placement: "right",
            xOffset: "center",
            yOffset: -20,
            multipage: false, // indicates that the next step is on a different page.
            showNextButton: true

        },
        {
            title: "<?php echo MH_TOUR_SETUP_EMAIL_TITLE_TOUR_STEP3; ?>",
            content: "<?php echo MH_TOUR_SETUP_EMAIL_CONTENT_TOUR_STEP3; ?>",
            target: document.querySelector('[id*="MAILBEEZ_MAILHIVE_EMAIL_COPY"]'),
            placement: "left",
            yOffset: -10,
            multipage: false, // indicates that the next step is on a different page.
            showNextButton: true

        },
        {
            title: "<?php echo MH_TOUR_SETUP_EMAIL_TITLE_TOUR_STEP4; ?>",
            content: "<?php echo MH_TOUR_SETUP_EMAIL_CONTENT_TOUR_STEP4; ?>",
            target: document.querySelector('a[href*="config_queen&action=edit"]'),
            placement: "left",
            yOffset: -20,

            multipage: true, // indicates that the next step is on a different page.
            showNextButton: true,

            onNext: function () {
                window.location = "<?php echo mh_href_link(FILENAME_MAILBEEZ, 'module=config_queen&action=edit'); ?>"
            }

        },
        {
            title: "<?php echo MH_TOUR_SETUP_EMAIL_TITLE_TOUR_STEP5; ?>",
            content: "<?php echo MH_TOUR_SETUP_EMAIL_CONTENT_TOUR_STEP5; ?>",
            target: document.querySelector('input[name*="MAILBEEZ_MAILHIVE_EMAIL_COPY"]'),
            placement: "left",
            yOffset: -20

        }
    ]
}