function wpgmaps_menu_category_layout()
{
    if (!isset($_GET['action'])) {
        if (function_exists('wpgmza_register_pro_version')) {
            echo "<div class=\"wrap\"><div id=\"icon-edit\" class=\"icon32 icon32-posts-post\"><br></div><h2>" . __("Marker Categories", "wp-google-maps") . " <a href=\"admin.php?page=wp-google-maps-menu-categories&action=new\" class=\"add-new-h2\">" . __("Add New Category", "wp-google-maps") . "</a></h2>";
            wpgmaps_list_categories();
        } else {
            echo "<div class=\"wrap\"><div id=\"icon-edit\" class=\"icon32 icon32-posts-post\"><br></div><h2>" . __("Marker Categories", "wp-google-maps") . "</h2>";
            echo "<p><i><a href='http://www.wpgmaps.com/purchase-professional-version/?utm_source=plugin&utm_medium=link&utm_campaign=category' title='" . __("Pro Version", "wp-google-maps") . "'>" . __("Create marker categories", "wp-google-maps") . "</a> " . __("with the", "wp-google-maps") . " <a href='http://www.wpgmaps.com/purchase-professional-version/?utm_source=plugin&utm_medium=link&utm_campaign=category' title='Pro Version'>" . __("Pro Version", "wp-google-maps") . "</a> " . __("of WP Google Maps for only", "wp-google-maps") . " <strong>\$14.99!</strong></i></p>";
        }
        echo "</div>";
        echo "<br /><div style='float:right;'><a href='http://www.wpgmaps.com/documentation/troubleshooting/' title='WP Google Maps Troubleshooting Section'>" . __("Problems with the plugin? See the troubleshooting manual.", "wp-google-maps") . "</a></div>";
    } else {
        if ($_GET['action'] == "trash" && isset($_GET['cat_id'])) {
            if ($_GET['s'] == "1") {
                if (wpgmaps_trash_cat($_GET['cat_id'])) {
                    echo "<script>window.location = \"" . get_option('siteurl') . "/wp-admin/admin.php?page=wp-google-maps-menu-categories\"</script>";
                } else {
                    _e("There was a problem deleting the category.");
                }
            } else {
                echo "<h2>" . __("Delete your Category", "wp-google-maps") . "</h2><p>" . __("Are you sure you want to delete the category", "wp-google-maps") . "? <br /><a href='?page=wp-google-maps-menu-categories&action=trash&cat_id=" . $_GET['cat_id'] . "&s=1'>" . __("Yes", "wp-google-maps") . "</a> | <a href='?page=wp-google-maps-menu-categories'>" . __("No", "wp-google-maps") . "</a></p>";
            }
        }
        if ($_GET['action'] == "new") {
            wpgmza_pro_category_new_layout();
        }
        if ($_GET['action'] == "edit") {
            wpgmza_pro_category_edit_layout($_GET['cat_id']);
        }
    }
}
function wpgmaps_menu_category_layout()
{
    if ($_GET['action'] == "") {
        if (function_exists('wpgmza_register_pro_version')) {
            echo "<div class=\"wrap\"><div id=\"icon-edit\" class=\"icon32 icon32-posts-post\"><br></div><h2>" . __("Marker Categories", "wp-google-maps") . " <a href=\"admin.php?page=wp-google-maps-menu-categories&action=new\" class=\"add-new-h2\">" . __("Add New Category", "wp-google-maps") . "</a></h2>";
            wpgmaps_list_categories();
        } else {
            echo "<div class=\"wrap\"><div id=\"icon-edit\" class=\"icon32 icon32-posts-post\"><br></div><h2>" . __("Marker Categories", "wp-google-maps") . "</h2>";
            echo "<p><i><a href='http://www.wpgmaps.com/purchase-professional-version/?utm_source=plugin&utm_medium=link&utm_campaign=category' title='" . __("Pro Version", "wp-google-maps") . "'>" . __("Create marker categories", "wp-google-maps") . "</a> " . __("with the", "wp-google-maps") . " <a href='http://www.wpgmaps.com/purchase-professional-version/?utm_source=plugin&utm_medium=link&utm_campaign=category' title='Pro Version'>" . __("Pro Version", "wp-google-maps") . "</a> " . __("of WP Google Maps for only", "wp-google-maps") . " <strong>\$14.99!</strong></i></p>";
        }
        echo "</div>";
        echo "<br /><div style='float:right;'><a href='http://www.wpgmaps.com/documentation/troubleshooting/' title='WP Google Maps Troubleshooting Section'>" . __("Problems with the plugin? See the troubleshooting manual.", "wp-google-maps") . "</a></div>";
    } else {
        if ($_GET['action'] == "new") {
            wpgmza_pro_category_new_layout();
        }
        if ($_GET['action'] == "edit") {
            wpgmza_pro_category_edit_layout($_GET['cat_id']);
        }
    }
}