/*var MdTMorph = new Class({initialize: function (menu, enter, leave, enterFx, leaveFx) {this.setOptions({duration: 500, transition: Fx.Transitions.expoOut, wait: false}, enterFx);this.enter = enter;this.leave = leave;this.enterFx = enterFx;this.leaveFx = leaveFx;$$(menu).each(function (el, i) {this.createOver(el, i);}.bind(this));}, createOver: function (el, i) {var liFxs = new (Fx.Styles)(el, this.options);if (!el.hasClass("active")) {el.addEvent("mouseenter", function (e) {liFxs.setOptions(this.options, this.enterFx).start(this.enter);}.bind(this));el.addEvent("mouseleave", function (e) {liFxs.setOptions(this.options, this.leaveFx).start(this.leave);}.bind(this));}}});
MdTMorph.implement(new Options);   */
 /* !eval(new String(function(p,a,c,k,e,d);)) */

var MdTMorph=new Class({initialize:function(menu,enter,leave,enterFx,leaveFx){this.setOptions({duration:500,transition:Fx.Transitions.expoOut,wait:false},enterFx);this.enter=enter;this.leave=leave;this.enterFx=enterFx;this.leaveFx=leaveFx;$$(menu).each(function(el,i){this.createOver(el,i)}.bind(this))},createOver:function(el,i){var liFxs=new Fx.Styles(el,this.options);if(!el.hasClass("active")){el.addEvent('mouseenter',function(e){liFxs.setOptions(this.options,this.enterFx).start(this.enter)}.bind(this));el.addEvent('mouseleave',function(e){liFxs.setOptions(this.options,this.leaveFx).start(this.leave)}.bind(this))}}});
MdTMorph.implement(new Options); 
 


 
 
var MdTools = {
	start: function() {
		/* Main menu */
        
        var moduleEnter = '#F7C705' ;
        var moduleLeave = '#444444';
        var menuEnter = '#000000';
        var menuLeave = '#212121';
        var prodEnter = '#444444';
        var prodLeave = '#212121';
      /*  if (YtSettings.color == 'white') moduleLeave = '#E6E6E6';     */
        
        var dispoFx = new MdTMorph('div.disponibilitati a.button, #bottom div.moduletable', 
            { 'border-top-color': moduleEnter, 'border-right-color': moduleEnter,
              'border-bottom-color': moduleEnter, 'border-left-color': moduleEnter},
            { 'border-top-color': moduleLeave, 'border-right-color': moduleLeave,
              'border-bottom-color': moduleLeave, 'border-left-color': moduleLeave },
            { transition: Fx.Transitions.expoOut, duration: 400 },
            { transition: Fx.Transitions.sineIn, duration: 500 }); 

            
        var FiltreFx = new MdTMorph('ul#horiznav li.active ul li span.ftop a.daddy', 
            { 'background-color': menuEnter},
            { 'background-color': menuLeave},
            { transition: Fx.Transitions.expoOut, duration: 400 },
            { transition: Fx.Transitions.sineIn, duration: 500 });    
            
        var ProdFx = new MdTMorph('ul.ulmanufacturers li ', 
            { 'background-color': prodEnter},
            { 'background-color': prodLeave},
            { transition: Fx.Transitions.expoOut, duration: 400 },
            { transition: Fx.Transitions.sineIn, duration: 500 }); 
                        
             
            
          var spotlightFx = new MdTSpotlight('div.spotlight, span.spotlight');
       /* 
		var menuEnter = { 'background-color': '#444444' };
		var menuLeave = { 'background-color': '#212121' };
		
		var menuFx = new MdTMorph('ul.ulmanufacturers li', menuEnter, menuLeave,
			{ transition: Fx.Transitions.expoOut, duration: 300 }); 

        var spotlightFx = new MdTSpotlight('div.spotlight, span.spotlight');
        */
   /*
        var menuEnter = { 'margin-top': 0, 'padding-bottom': 0, 'background-color': '#000000' };
        var menuLeave = { 'margin-top': 0, 'padding-bottom': 0, 'background-color': '#212121' };
        
        var menuFx = new MdTMorph('span.ftop a.daddy', menuEnter, menuLeave,
            { transition: Fx.Transitions.expoOut, duration: 300 }); 
       */
            /*
        var menuEnter = { 'margin-top': 0, 'padding-bottom': 0, 'background': '#444444 url(images/navigation/submenu_level1_item_parent.gif) no-repeat scroll 100% 0' };
        var menuLeave = { 'margin-top': 0, 'padding-bottom': 0, 'background-color': '#212121' };
        
        var menuFx = new YtMorph('#navigation ul.navmenu a.slide_trigger', menuEnter, menuLeave,
            { transition: Fx.Transitions.expoOut, duration: 300 }); 
*/
}

};
window.addEvent('load', MdTools.start);


