var $soon = {
	init: function(){
		$soon.obj = $('#soon');
		$soon.pane = $('.scroll-pane');
		/*$('#today').append($soon.obj);*/
		$soon.showLink = $('#show-soon');
		$soon.hideLinkTop = $('#hide-soon-top');
		$soon.hideLinkBottom = $('#hide-soon-bot');
		$soon.maxLink = $('#max-soon');
		$soon.minLink = $('#min-soon');		
		/*$soon.obj.height($('#today').height());*/
		$('#soon-wrap').height($('#soon').height());
		$soon.showLink.click($soon.show);
		$soon.hideLinkTop.click($soon.hide);		
		$soon.hideLinkBottom.click($soon.hide);
		/*$soon.maxLink.click($soon.max);
		$soon.minLink.click($soon.min);*/
		$soon.minLink.click($soon.up);
	}
	
,	show: function(){
		$('#today .content').animate({
			left: '-100%'
		}, 450);
		$('#today .slider_box').animate({
			left: '-100%'
		}, 450);
		$('#workspace').animate({
			height: $('#soon-wrap').height() + 261
		}, 450);
		$('#today').css({
			height: $('#soon-wrap').height() + 90,
			bottom: 'auto',
			top: '171px'
		});
		$('#show-soon').fadeOut(50);
		$('#soon-wrap').animate({
			left: '0%'
		}, 450);

	}

,	hide: function(){
		$('#today .content').animate({
			left: '0%'
		}, 450);
		$('#today .slider_box').animate({
			left: '0%'
		}, 450);
		$('#workspace').animate({
			height: $('#today .slider_box').height() + $('#today .content').height() + 14 + 171 // 14 - .content padding-top, 171 - top
		}, 450, function() {
			$('#today').css({
				height: $('#today .slider_box').height() + $('#today .content').height() + 14, // 14 - .content padding-top 
				bottom: '0',
				top: 'auto'
			});
		});
		$('#show-soon').fadeIn(50);
		$('#soon-wrap').animate({
			left: '100%'
		}, 450);
	}

, up : function() {
    $("html").animate({ scrollTop: destination}, 500 )  
  }
}



$(window).load(function() {
     //$(".scroll-pane").scroll();
     //$('#boxprosc').addClass("scrl");
  });


