/*
				Toolbar for dataVoice
*/
 var map, vectorLayer;;
 var toolbar;
		function addSeparator(toolbar){
            toolbar.add(new Ext.Toolbar.Spacer());
            toolbar.add(new Ext.Toolbar.Separator());
            toolbar.add(new Ext.Toolbar.Spacer());
        } 

        function initToolbarContent() {
        
            toolbar.addControl(
                new OpenLayers.Control.ZoomToMaxExtent({
                    map: map,
                    title: 'Zoom to maximum map extent'
                }), {
                    iconCls: 'zoomfull', 
                    toggleGroup: 'map'
                }
            );
            
            addSeparator(toolbar);
			
			toolbar.addControl(
                new OpenLayers.Control.ZoomIn({
                    title: 'Zoom in 2X: click on this button'
                }), {
                    iconCls: 'zoomin', 
                    toggleGroup: 'map'
                }
            );
        
            toolbar.addControl(
                new OpenLayers.Control.ZoomOut({
                    out: true,
                    title: 'Zoom out 2X: click on this button'
                }), {
                    iconCls: 'zoomout', 
                    toggleGroup: 'map'
                }
            );

        
             toolbar.addControl(
                new OpenLayers.Control.ZoomBox({
                    title: 'Zoom in: click in the map or use the left mouse button and drag to create a rectangle'
                }), {
                    iconCls: 'zoombox', 
                    toggleGroup: 'map'
                }
            );
            
            toolbar.addControl(
                new OpenLayers.Control.DragPan({
                    isDefault: true,
                    title: 'Pan map: keep the left mouse button pressed and drag the map'
                }), {
                    iconCls: 'pan', 
                    toggleGroup: 'map'
                }
            );
            
            addSeparator(toolbar);
        
            var nav = new OpenLayers.Control.NavigationHistory();
            map.addControl(nav);
            nav.activate();
            
            toolbar.add(
                new Ext.Toolbar.Button({
                    iconCls: 'back',
                    tooltip: 'Previous view', 
                    handler: nav.previous.trigger
                })
            );
            
            toolbar.add(
                new Ext.Toolbar.Button({
                    iconCls: 'next',
                    tooltip: 'Next view', 
                    handler: nav.next.trigger
                })
            );
            
            addSeparator(toolbar);
            
			
			toolbar.activate();
/*			toolbar.addText('Geographic Position: ');
			map.addControl( new OpenLayers.Control.MousePosition(
												{
													div: OpenLayers.Util.getElement('mousePos'),
													separator: '&deg;E ',
													suffix: '&deg;N'
												})
			);
			
			toolbar.addElement('mousePos');
            toolbar.activate();
*/			
        }

