window.addEvent('domready', function() {
    //
    // from noob
    var nS4 = new noobSlide({
    box: $('box'),
    items: $$('#box div'),
    size: 940,
    handles: $$('#handles li'),
    onWalk: function(currentItem,currentHandle){
    this.handles.removeClass('active');
    currentHandle.addClass('active');
    }
    });
    // end noob
    
    //
	$('myForm').addEvent('submit', function(e) {
		//Prevents the default submit event from loading a new page.
		e.stop();
		//Empty the log and show the spinning indicator.
		var log = $('log_res').empty().addClass('ajax-loading');
		//Set the options of the form's Request handler. 
		//("this" refers to the $('myForm') element).
		this.set('send', {onComplete: function(response) { 
			log.removeClass('ajax-loading');
			log.set('html', response);
		}});
		//Send the form.
		this.send();
	});
  
});


