	window.addEvent('domready',function(){
		var fxOptionsACA = {duration:500, transition:Fx.Transitions.Expo.easeOut, wait:false}
		var nS = new noobSlide({
			interval : 8000,
			autoPlay : true,
			box: $('box'),
			items: $$('#box div'),
			size: 895,
			handles: $$('#handles a'),
			onWalk: function(currentItem,currentHandle){
				this.handles.removeClass('on');
				currentHandle.addClass('on');
			},
			fxOptions: fxOptionsACA
		});
		$$('#handles a').addEvent('click', function() {
			if($$('.mask').getStyle('height')=='0px') {

				$$('.mask').set('tween', {
					duration: 1000,
					transition: Fx.Transitions.Bounce.linear, // This could have been also 'bounce:out'
					onComplete : function() {
						if(NFFix()) {
							NFFix();
						}
					}
				}).tween('height', '195px');
			}
		});
		$('closeCross').addEvent('click', function() {
				$$('.mask').set('tween', {
					duration: 1000,
					transition: Fx.Transitions.Bounce.linear, // This could have been also 'bounce:out'
					onComplete : function() {
						if(NFFix()) {
							NFFix();
						}
					}
				}).tween('height', '0px');
		});

		
	});

