window.addEvent('domready',function() {

		//noobslide
    var handles8_more = $$('#handles8_more span');
		var nS8 = new noobSlide({
			box: $('box8'),
			items: $$('#box8 h3'),
			size: 570,
			handles: $$('#homeMap div a img'),
			onWalk: function(currentItem,currentHandle){
				//style for handles
				$$(this.handles,handles8_more).removeClass('active');	
				$$(this.handles).fade(0.5);
                $$(currentHandle,handles8_more[this.currentIndex]).addClass('active');
				//text for "previous" and "next" default buttons
				$$(currentHandle).fade(1);
			}
		});
		//more handle buttons
		nS8.addHandleButtons(handles8_more);
		//walk to item 3 witouth fx
		nS8.walk(0,false,true);
		nS8.play(5000,"next",true);
       
       
     var myTransition = new Fx.Transition(Fx.Transitions.Quint, 3);

     var scroll = new Fx.Scroll(window, {
      wait: false,
      duration: 800,
      offset: {'x': 0, 'y': 0},
      transition: myTransition.easeInOut
     });

       $$('#homeMap div a img').addEvent('click', function(event) {
        event = new Event(event).stop();
        scroll.toElement('homeMap');
       });



		});
