$today = {
	init: function() {
		$today.cont = $('#today>div.content');
		$today.slider = $("#slider");
		$today.films = $today.cont.find('.film');
		var body_width = $("body").width();
		$today.isHidden = false;
	  //$today.setSizes();

		var thread = false;
		/*$(window).resize(function(){
			return (function(){
				if (thread) clearTimeout(thread);
				thread = setTimeout($today.setSizes,0);
			})();
		});*/
	},    
	
	setSizes: function(){
    //$today.cont.height($("#slider_films_box").height()+150);
		//workspace.height($today.slider.height()+265);
	},
	
	toggle: function(){
		if ($today.isHidden) {
			$today.cont.parent().stop(true,false);
			$today.cont.parent().animate({
				bottom: 0
			});
		} else {
			$today.cont.parent().stop(true,false);
			$today.cont.parent().animate({
				bottom: -$today.cont.parent().height()+14
			});
		}
		$today.isHidden = !$today.isHidden;	
	}    

,	moveLeft: function(){
		var left = $today.cont.offset().left;
		$today.cont.css({
			position: 'absolute'
		,	left: left
		});
		$today.cont.animate({
			left: '-100%'
		},0);
		return left;
	}
,	moveRight: function(){
    var left = $today.cont.offset().left;
		$today.cont.css({
      position: 'relative'
		,	left: left
		});
		$today.cont.animate({
			left: '0'
		});
		return left;	
	}
}

