/**
 * @author iaan
 */
		 
		 function initImagery()
		 {
		   //Move the map buttons into position
		   var oBtns = document.getElementById("MapControlButtons");
		   document.getElementById("MapPanel").appendChild(oBtns);
		   
		   //Make visible
		   oBtns.style.visibility="visible";  
				 	
		 }
		 
		 function DisplayImagey()
		 {
            g_map.hideDefaultMap();
            g_map.showImagery();
    	    if(document.getElementById("radShowHybrid").checked)
		    {
                g_map.showDefaultMapForImagery();	
		    }
		    else
		    {
		        g_map.hideDefaultMapForImagery();
		    }
		    
		    g_map.resize();
		    map_type = "Imagery";
			
			document.getElementById("dvBtnImagery").className = "MapButtonsSelected";
			document.getElementById("dvBtnDisplayMap").className = "MapButtons";
					    
		    /*
		    g_map.RemoveAllObjects();
		        
		    g_map.DisplayImagery(true);
		    g_map.SetTransparency(100);
		    if (document.getElementById("radShowStreets").checked) //Display streets on imagery
		    {
		        g_map.SetLayers("AG_PROVINCES|Mapstyle4;AG_TOWNS_CENTROID|Point_SCHEME;AG_STREETS|Mapstyle3");
		    }
		    else
		    {
		        g_map.SetLayers("AG_PROVINCES|Mapstyle4;AG_TOWNS_CENTROID|Point_SCHEME"); //No streets on imagery   
		    }
		    g_map.ResizeMap();
		    map_type = "Imagery";
			
			document.getElementById("dvBtnImagery").className = "MapButtonsSelected";
			document.getElementById("dvBtnDisplayMap").className = "MapButtons";*/
		 }
		 
		 function DisplayMap()
		 {
		    g_map.hideImagery();
		    g_map.hideDefaultMapForImagery();
		    g_map.showDefaultMap();
		    g_map.resize();
		    
			map_type = "Map";

			document.getElementById("dvBtnImagery").className = "MapButtons";
			document.getElementById("dvBtnDisplayMap").className = "MapButtonsSelected";	
			
		    /*g_map.RemoveAllObjects();
		    
		    g_map.DisplayImagery(false);
		    g_map.SetTransparency(0);
		    g_map.SetLayers("AG_PROVINCES|Mapstyle3;AG_SUBURBS|Dineke1;AG_TOWNS_CENTROID|Point_SCHEME;AG_STREETS|Mapstyle3");
		    g_map.ResizeMap();
		    map_type = "Map";

			document.getElementById("dvBtnImagery").className = "MapButtons";
			document.getElementById("dvBtnDisplayMap").className = "MapButtonsSelected";		
			*/      
		 }
