// JavaScript Document


var main = { 
	statusbar: function(show) {
		var date = $('date');
		var handle = $('datehandle');

		if (show == 1) {
			handle.style.display = 'none';
			date.style.position = 'fixed';
			date.style.left = '-400px';
			date.morph('left:0px', {duration:.3})
		} else {
			handle.style.display = 'block';
			date.style.position = 'absolute';
			date.style.left = '0';
		}
		//new Effect.Appear(date, {duration:1});
	}
	
}

/*

var mood_slider = $('mood_slider'),
	stimmungjs = $('stimmungjs'),
	stimmungpercentjs = $('stimmungpercentjs'),
	mood1 = $('mood1'),
	mood2 = $('mood2'),
	mood3 = $('mood3'),
	mood4 = $('mood4'),
	mood5 = $('mood5');
	handle = $('handle');
	formstimmung = $('formstimmung');
		new Control.Slider(mood_slider.down('.handle'), mood_slider, {
		  range: $R(0, 100),
		  sliderValue: 100/4*stimmungjs.value-25,
		  
		  onSlide: function(value) {
			stimmung.morph(value);
		  },
		  onChange: function(value) { 
			stimmung.morph(value);
			new Ajax.Updater('stimmungdone','/home/community/profil/start/{USER.id}?stimmung='+stimmungjs.value+'&stimmungsent=1&block=main.module_profile.userstart.stimmungdone', {  });
		  }
		})
		stimmung.morph(100/4*stimmungjs.value-25);
*/
