/*
* PLAN DE VILLE : CHATOU
* Version 1.0
* Creation date: Fevrier 2010
* Author: Dynamik Informatik - PELLET Alexandre - www.dynamik-informatik.fr
* Author email: pellet.alexandre@gmail.com
*/

var img_path = "./images/control/";


NavigationControl = function ( map )
{
	this.map = map;
	GControl.call(this);
};
jQuery.extend ( NavigationControl, GControl );
NavigationControl.prototype = new GControl();
	
NavigationControl.prototype.initialize = function(map)
{
	var container = document.createElement("div");	
	container.className = "gmap_nav";
	

	
	block_nav = jQuery("#nav-control")/*.clone()*/[0];
	block_nav.style.display = "block";
	
	container.appendChild ( block_nav );
	map.getContainer().appendChild(container);
	
	//getOverviewMap()
	
	
	//On ajoute la overview
	/*setTimeout ( function ()
	{
		var oOverviewElement = document.getElementById("map_overview"); 
		var oElement = document.getElementById('map').removeChild(oOverviewElement);
    	document.getElementById("overview_container").appendChild(oElement);
	
		//var map2 = new GMap2 (document.getElementById("map_overview_container"));
		//map2.setCenter (start_lat, 13);
	
		setTimeout ( function ()
		{
			overview.hide();
			overview.show();
			oOverviewElement.style.position='';
			oOverviewElement.style.bottom='';
			oOverviewElement.style.right='';
			
			jQuery ('#map_overview > div').css ('border', '0px');
			jQuery ('#map_overview > div').css ('right', '');
			jQuery ('#map_overview > div').css ('bottom', '');
			
			jQuery ('#map_overview > div > div').css ('left', '0px');
			jQuery ('#map_overview > div > div').css ('top', '0px');
			jQuery ('#map_overview > div > div').css ('width', '118px');
			jQuery ('#map_overview > div > div').css ('height', '118px');
			jQuery ('#map_overview > div > img').css ('display', 'none');

		}, 1000); 
	}, 2000 );*/
	return container;
};
NavigationControl.prototype.getDefaultPosition = function()
{
    return new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(0, 0));
};

