 Views
 ###
 
-Weathermaps.GroupListView = Ember.View.extend {
-  templateName: 'grouplist'
-  active: true #always visible
-  
-  valueBinding: 'Weathermaps.groups.value'
-  optionsBinding: 'Weathermaps.groups.options'
+MainMenuView = Ember.View.extend {
   
   title: (->
     value = @get 'value'

  
  valueBinding: 'Weathermaps.times.value'
  optionsBinding: 'Weathermaps.times.options'
  
  title: (->
    value = @get 'value'
    if value then value else 'Time'
  ).property('value')
  
  select: (e) ->
    $(e.target).parents('.open').removeClass('open')
    @set 'value', e.context
  
}

#init

  
  valueBinding: 'Weathermaps.dates.value'
  optionsBinding: 'Weathermaps.dates.options'
 
}

Weathermaps.TimeListView = MainMenuView.extend {
  templateName: 'datelist'
  groupBinding: 'Weathermaps.groups.value'
  mapBinding:   'Weathermaps.maps.value'
