window.addEvent('domready', function() {
	
	var height_Scroll = $('container_Scroll').getSize().y;
	setScrollHeight(hmax);
	
	if ( ($('container_Scroll_content').getSize().y) > ($('container_Scroll').getSize().y) ) {
		myScrollFx = new Fx.Scroll('container_Scroll', {
			wait: false
		});
		mySlide = new Slider($('areaScroll'), $('knobScroll'), {
			steps: $('container_Scroll_content').getSize().y-($('container_Scroll').getSize().y),
			mode: 'vertical',
			onChange: function(step) {
				$('container_Scroll').scrollTo(0,step);
			}
		}).set(0);
	} else {
		$('areaScroll').setStyle('visibility','hidden');
		$('container_Scroll').setStyle('margin-left','-15px');
		setScrollHeight(height_Scroll);
	}
	
});

var setScrollHeight = function(height){
	$('areaScroll').setStyle('height',height+'px');
	$('container_Scroll').setStyle('height',height+'px');
}
