function wpdmp_map_manager_view()
    {
        wpdmp_print_popup_dialog();
        //$mapid = $_GET['mapid'];
        $maps = wpdmp_get_maps();
        //load first found map as default
        if ($mapid == '') {
            $map = $maps[0];
            $mapid = $maps[0]['id'];
        } else {
            $map = wpdmp_get_map($mapid);
        }
        $map_name = $map['map'];
        $map_path = $map['map'];
        //print_map_url($map_name);
        ?>
	
	<div class="wrap">
	
	<div id="col-right">
		<h1><?php 
        _e('Preview map', 'wp-design-maps-and-places');
        ?>
</h1>
	<?php 
        wpdmp_print_map_manager($mapid, 'backend_map_manager');
        ?>
	   </div>
	   <div id="col-left" style="width:33%">
			<?php 
        wpdmp_print_maps_available($maps);
        ?>
		</div>	
	</div>
		
	<div id="progressbar" style="background: url(<?php 
        echo WPDMP_PLUGIN_URL . 'images/spin.gif';
        ?>
) center center no-repeat #fff"/></div>
<?php 
        wpdmp_print_css_and_effects();
    }
 function wpdmp_print_maps_available_callback()
 {
     $maps = wpdmp_get_maps();
     ob_start();
     wpdmp_print_maps_available($maps);
     $content = ob_get_contents();
     ob_end_clean();
     echo $content;
     die;
     exit;
 }