window.addEvent('domready', function() {
	// rollOvers pour les images
	// Application : class="roll"

	//preload images
	var aPreLoad = new Array();
	var aPreLoadi = 0;
	
	//do rollover
	$$('img.roll').each(function(el){
		//let's preload
		aPreLoad[aPreLoadi] = new Image();
		aPreLoad[aPreLoadi].src = el.src.replace(el.src.replace('_off_', '_on_'));
		aPreLoadi++;
	
		el.addEvent('mouseover',function(){
			//console.log(this);
			this.setAttribute('src',this.src.replace('_off_', '_on_'));
		});
	
		el.addEvent('mouseout',function(){
			this.setAttribute('src',this.src.replace('_on_','_off_'));
		});
	});


	// tooltip on apple
	//var appleHelpTips = new RedTips('.help', {offsets: {x: -100, y: 0}, fixed: true });
	
	// tooltip on apple
	//var bigAppleHelpTips = new RedTips('.helpbig', {offsets: {x: -80, y: 17}, fixed: true });

});

// rollOvers for Text
// Application : class="rollText"
window.addEvent('domready',function() {
	$$('.rollText').each(function(el){
		var original = el.getStyle('color');
		var morph = new Fx.Morph(el,{ 'duration':'300' });
		el.addEvents({
			'mouseenter' : function() { morph.start({ 'color':'#ff8c00' }) },
			'mouseleave' : function() { morph.start({ 'color': original }) }
		});
	});
});

window.addEvent('domready', function() {Shadowbox.init();});


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
