/* Script: JVEqualHeight - Equal elements height. License: Proprietary - JoomlaVi Club members only Copyright: Copyright (C) JoomlaVi. All rights reserved. */ var JVEqualHeight = function(selectors){ var maxHeight = 0; $$(selectors).each(function(selector){ maxHeight = Math.max(maxHeight, selector.getCoordinates().height); }); $$(selectors).each(function(selector){ selector.setStyle(window.ie6 ? 'height' : 'min-height', maxHeight); }); }; /* Script: JVEffects - JV Effects such as background color. License: Proprietary - JoomlaVi Club members only Copyright: Copyright (C) JoomlaVi. All rights reserved. */ var JVEffects = new Class({ Implements: [Options], options:{ fxDuration: 350, fxTransition: Fx.Transitions.linear, wait: false }, initialize: function(selectors, fxPropertiesFrom, fxPropertiesTo, options){ this.setOptions(options); $$(selectors).each(function(selector, index){ var selectorFx = new Fx.Styles(selector, this.options); selector.addEvents({ 'mouseenter': function(){ selectorFx.stop().start(fxPropertiesFrom); }, 'mouseleave': function(){ selectorFx.stop().start(fxPropertiesTo); } }); }); } }); window.addEvent('domready', function(){ var selectors = $$('.e-height'); if(selectors){ selectors.each(function(el){ if(el){ var childs = el.getElements(".jv-module"); if(childs){ var maxHeight = 0; childs.each(function(child){ maxHeight = Math.max(maxHeight, child.getCoordinates().height); }); childs.each(function(child){ child.setStyle(window.ie6 ? 'height' : 'min-height', maxHeight); }); } } }); } });