window.addEvent('domready', function() {

new SimpleCarousel($('Carousel'), $$('#Carousel div.slide'), $$('#Carousel div.button'), {
    rotateAction: 'click'
});
	

myMooScroller = new MooScroller('scrollcontent', 'scrollKnob');

//var myTips = new Tips('.Tips');

	//store titles and text
	$$('a.Tips').each(function(element,index) {
		var content = element.get('title').split('::');
		element.store('tip:title', content[0]);
		element.store('tip:text', content[1]);
	});
	
	//create the tooltips
	var tipz = new Tips($$('.Tips'),{
		className: '.Tips',
	initialize: function(){
	
		this.fx = new Fx.Tween(this.tip, {property: 'opacity', duration: 200, link: 'cancel'}).set(0);
		},
		onShow: function () {		
			this.fx.start(1);
		},
		onHide: function() {		
			this.fx.start(0);			
		}
});



	$$('div.button').set('opacity', 0.8).addEvents({
		mouseenter: function(){
			this.morph({
				'opacity': 1
			});
		},
		mouseleave: function(){
			this.morph({
				'opacity': 0.8
			});
		}
	});



});




