Hyphenator.run();

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

	/**
	 * Tooltip
	 */
	new FloatingTips('div.tip', { 
		position: 'top'
	});

	/**
	 * Slider
	 */
	if($('noob-box')) {
		var handles_more = $$('#noob-handles-more span');
		var teaser = new noobSlide({
			box: $('noob-box'),
			items: $$('#noob-box h3'),
			size: 940,
			handles: $$('#noob-handles li'),
			addButtons: {
				previous: $('prev'), 
				play: $('play'), 
				stop: $('stop'), 
				playback: $('playback'), 
				next: $('next') 
			},
			onWalk: function(currentItem,currentHandle) {
				$$(this.handles,handles_more).removeClass('active');
				$$(currentHandle,handles_more[this.currentIndex]).addClass('active');
			},
			autoPlay: true,
			interval: 7500
		});
		teaser.addHandleButtons(handles_more);
		teaser.walk(0);
	}
	
});
