/*////////////////////////////////////////////////////////////////////////////////////////////////////
/// JAVASCRIPT FOR dcag.ca ///////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////*/

/*/ VARIABLES //////////////////////////////////////////////////////////////////////////////////////*/

/*/ END VARIABLES //////////////////////////////////////////////////////////////////////////////////*/

/*/ CLASSES ////////////////////////////////////////////////////////////////////////////////////////*/

/*/ END CLASSES ////////////////////////////////////////////////////////////////////////////////////*/

/*/ OPERATIONS /////////////////////////////////////////////////////////////////////////////////////*/

/*/ END OPERATIONS /////////////////////////////////////////////////////////////////////////////////*/

/*/ DOMREADY  //////////////////////////////////////////////////////////////////////////////////////*/
window.addEvent('domready', function(){

	$('bdf_over').setStyle('opacity',0);
	$('rcf_over').setStyle('opacity',0);
	$('cf_over').setStyle('opacity',0);

	$$('.nav').each(function(el){
		el.ani = new Fx.Morph(el.getProperty('alt') + '_over', {duration: 500, transition: Fx.Transitions.easeOut, link: 'cancel'});
		el.addEvents({
			'mouseover':function(){
				this.ani.start({
					'opacity':[0,1]
				});
			},
			'mouseout':function(){
				this.ani.start({
					'opacity':[1,0]
				});
			}
		});
	});
	
});
/*/ END DOMREADY  //////////////////////////////////////////////////////////////////////////////////*/
