var animation={};animation[ref.size]=mode=='show'?distance:0;animation[ref.position]=mode=='show'?0:distance/2;el.animate(animation,o.speed,o.options.easing,function(){if(mode=='hide')el.hide();$.ec.restore(el,props);$.ec.removeWrapper(el);if(o.callback)o.callback.apply(this,arguments);});});}})(jQuery);(function($){$.ec.drop=function(o){this.each(function(){var el=$(this),props=['position','top','left','opacity'];var mode=o.options.mode||'hide';var direction=o.options.direction||'left';$.ec.save(el,props);el.show();$.ec.createWrapper(el);var ref=(direction=='up'||direction=='down')?'top':'left';var motion=(direction=='up'||direction=='left')?'pos':'neg';var distance=o.options.distance||(ref=='top'?el.outerHeight({margin:true})/2:el.outerWidth({margin:true})/2);if(mode=='show')el.css('opacity',0).css(ref,motion=='pos'?-distance:distance);var animation={opacity:mode=='show'?1:0};animation[ref]=(mode=='show'?(motion=='pos'?'+=':'-='):(motion=='pos'?'-=':'+='))+distance;el.animate(animation,o.speed,o.options.easing,function(){if(mode=='hide')el.hide();$.ec.restore(el,props);$.ec.removeWrapper(el);if(o.callback)o.callback.apply(this,arguments);});});}})(jQuery);(function($){$.ec.fade=function(o){this.each(function(){var el=$(this),props=['opacity'];var mode=o.options.mode||'effect';var opacity=o.options.opacity||0;$.ec.save(el,props);el.show();if(mode=='show')el.css({opacity:0});var animation={opacity:mode=='show'?1:opacity};el.animate(animation,o.speed,o.options.easing,function(){if(mode=='hide')el.hide();if(mode!='effect')$.ec.restore(el,props);if(o.callback)o.callback.apply(this,arguments);});});}})(jQuery);(function($){$.ec.fold=function(o){this.each(function(){var el=$(this),props=['position'];var mode=o.options.mode||'hide';var size=o.options.size||15;$.ec.save(el,props);el.show();var wrapper=$.ec.createWrapper(el).css({overflow:'hidden'});var ref=(mode=='show')?['width','height']:['height','width'];var distance=(mode=='show')?[wrapper.width(),wrapper.height()]:[wrapper.height(),wrapper.width()];if(mode=='show')wrapper.css({height:size,width:0});var animation1={},animation2={};animation1[ref[0]]=mode=='show'?distance[0]:size;animation2[ref[1]]=mode=='show'?distance[1]:0;wrapper.animate(animation1,o.speed/2,o.options.easing).animate(animation2,o.speed/2,o.options.easing,function(){if(mode=='hide')el.hide();$.ec.restore(el,props);$.ec.removeWrapper(el);if(o.callback)o.callback.apply(this,arguments);});});}})(jQuery);(function($){$.ec.highlight=function(o){this.each(function(){var el=$(this),props=['backgroundImage','backgroundColor','opacity'];var mode=o.options.mode||'show';var color=o.options.color||"#ffff99";$.ec.save(el,props);el.show();el.css({backgroundImage:'none',backgroundColor:color});var animation={backgroundColor:$.data(this,"ec.storage.backgroundColor")};if(mode=="hide")animation['opacity']=0;el.animate(animation,o.speed,o.options.easing,function(){if(mode=="hide")el.hide();$.ec.restore(el,props);if(o.callback)o.callback.apply(this,arguments);});});}})(jQuery);(function($){$.ec.pulsate=function(o){this.each(function(){var el=$(this);var mode=o.options.mode||'show';var times=o.options.times||5;if(mode!='hide')times--;if(el.is(':hidden')){el.css('opacity',0);el.show();el.animate({opacity:1},o.speed/2,o.options.easing);times--;} 
var animation={};animation[ref.size]=mode=='show'?distance:0;animation[ref.position]=mode=='show'?0:distance/2;el.animate(animation,o.speed,o.options.easing,function(){if(mode=='hide')el.hide();$.ec.restore(el,props);$.ec.removeWrapper(el);if(o.callback)o.callback.apply(this,arguments);});});}})(jQuery);(function($){$.ec.drop=function(o){this.each(function(){var el=$(this),props=['position','top','left','opacity'];var mode=o.options.mode||'hide';var direction=o.options.direction||'left';$.ec.save(el,props);el.show();$.ec.createWrapper(el);var ref=(direction=='up'||direction=='down')?'top':'left';var motion=(direction=='up'||direction=='left')?'pos':'neg';var distance=o.options.distance||(ref=='top'?el.outerHeight({margin:true})/2:el.outerWidth({margin:true})/2);if(mode=='show')el.css('opacity',0).css(ref,motion=='pos'?-distance:distance);var animation={opacity:mode=='show'?1:0};animation[ref]=(mode=='show'?(motion=='pos'?'+=':'-='):(motion=='pos'?'-=':'+='))+distance;el.animate(animation,o.speed,o.options.easing,function(){if(mode=='hide')el.hide();$.ec.restore(el,props);$.ec.removeWrapper(el);if(o.callback)o.callback.apply(this,arguments);});});}})(jQuery);(function($){$.ec.fade=function(o){this.each(function(){var el=$(this),props=['opacity'];var mode=o.options.mode||'effect';var opacity=o.options.opacity||0;$.ec.save(el,props);el.show();if(mode=='show')el.css({opacity:0});var animation={opacity:mode=='show'?1:opacity};el.animate(animation,o.speed,o.options.easing,function(){if(mode=='hide')el.hide();if(mode=='hide')$.ec.restore(el,props);if(o.callback)o.callback.apply(this,arguments);});});}})(jQuery);(function($){$.ec.fold=function(o){this.each(function(){var el=$(this),props=['position'];var mode=o.options.mode||'hide';var size=o.options.size||15;$.ec.save(el,props);el.show();var wrapper=$.ec.createWrapper(el).css({overflow:'hidden'});var ref=(mode=='show')?['width','height']:['height','width'];var distance=(mode=='show')?[wrapper.width(),wrapper.height()]:[wrapper.height(),wrapper.width()];if(mode=='show')wrapper.css({height:size,width:0});var animation1={},animation2={};animation1[ref[0]]=mode=='show'?distance[0]:size;animation2[ref[1]]=mode=='show'?distance[1]:0;wrapper.animate(animation1,o.speed/2,o.options.easing).animate(animation2,o.speed/2,o.options.easing,function(){if(mode=='hide')el.hide();$.ec.restore(el,props);$.ec.removeWrapper(el);if(o.callback)o.callback.apply(this,arguments);});});}})(jQuery);(function($){$.ec.highlight=function(o){this.each(function(){var el=$(this),props=['backgroundImage','backgroundColor','opacity'];var mode=o.options.mode||'show';var color=o.options.color||"#ffff99";$.ec.save(el,props);el.show();el.css({backgroundImage:'none',backgroundColor:color});var animation={backgroundColor:$.data(this,"ec.storage.backgroundColor")};if(mode=="hide")animation['opacity']=0;el.animate(animation,o.speed,o.options.easing,function(){if(mode=="hide")el.hide();$.ec.restore(el,props);if(o.callback)o.callback.apply(this,arguments);});});}})(jQuery);(function($){$.ec.pulsate=function(o){this.each(function(){var el=$(this);var mode=o.options.mode||'show';var times=o.options.times||5;if(mode!='hide')times--;if(el.is(':hidden')){el.css('opacity',0);el.show();el.animate({opacity:1},o.speed/2,o.options.easing);times--;} 
var animation={};animation[ref.size]=mode=='show'?distance:0;animation[ref.position]=mode=='show'?0:distance/2;el.animate(animation,o.speed,o.options.easing,function(){if(mode=='hide')el.hide();$.ec.restore(el,props);$.ec.removeWrapper(el);if(o.callback)o.callback.apply(this,arguments);});});}})(jQuery);(function($){$.ec.drop=function(o){this.each(function(){var el=$(this),props=['position','top','left','opacity'];var mode=o.options.mode||'hide';var direction=o.options.direction||'left';$.ec.save(el,props);el.show();$.ec.createWrapper(el);var ref=(direction=='up'||direction=='down')?'top':'left';var motion=(direction=='up'||direction=='left')?'pos':'neg';var distance=o.options.distance||(ref=='top'?el.outerHeight({margin:true})/2:el.outerWidth({margin:true})/2);if(mode=='show')el.css('opacity',0).css(ref,motion=='pos'?-distance:distance);var animation={opacity:mode=='show'?1:0};animation[ref]=(mode=='show'?(motion=='pos'?'+=':'-='):(motion=='pos'?'-=':'+='))+distance;el.animate(animation,o.speed,o.options.easing,function(){if(mode=='hide')el.hide();$.ec.restore(el,props);$.ec.removeWrapper(el);if(o.callback)o.callback.apply(this,arguments);});});}})(jQuery);(function($){$.ec.fade=function(o){this.each(function(){var el=$(this),props=['opacity'];var mode=o.options.mode||'effect';var opacity=o.options.opacity||0;$.ec.save(el,props);el.show();if(mode=='show')el.css({opacity:0});var animation={opacity:mode=='show'?1:opacity};el.animate(animation,o.speed,o.options.easing,function(){if(mode=='hide')el.hide();if(mode!='effect')$.ec.restore(el,props);if(o.callback)o.callback.apply(this,arguments);});});}})(jQuery);(function($){$.ec.fold=function(o){this.each(function(){var el=$(this),props=['position'];var mode=o.options.mode||'hide';var size=o.options.size||15;$.ec.save(el,props);el.show();var wrapper=$.ec.createWrapper(el).css({overflow:'hidden'});var ref=(mode=='show')?['width','height']:['height','width'];var distance=(mode=='show')?[wrapper.width(),wrapper.height()]:[wrapper.height(),wrapper.width()];if(mode=='show')wrapper.css({height:size,width:0});var animation1={},animation2={};animation1[ref[0]]=mode=='show'?distance[0]:size;animation2[ref[1]]=mode=='show'?distance[1]:0;wrapper.animate(animation1,o.speed/2,o.options.easing).animate(animation2,o.speed/2,o.options.easing,function(){if(mode=='hide')el.hide();$.ec.restore(el,props);$.ec.removeWrapper(el);if(o.callback)o.callback.apply(this,arguments);});});}})(jQuery);(function($){$.ec.highlight=function(o){this.each(function(){var el=$(this),props=['backgroundImage','backgroundColor','opacity'];var mode=o.options.mode||'show';var color=o.options.color||"#ffff99";$.ec.save(el,props);el.show();el.css({backgroundImage:'none',backgroundColor:color});var animation={backgroundColor:$.data(this,"ec.storage.backgroundColor")};if(mode=="hide")animation['opacity']=0;el.animate(animation,o.speed,o.options.easing,function(){if(mode=="hide")el.hide();$.ec.restore(el,props);if(o.callback)o.callback.apply(this,arguments);});});}})(jQuery);(function($){$.ec.pulsate=function(o){this.each(function(){var el=$(this);var mode=o.options.mode||'show';var times=o.options.times||5;if(mode!='hide')times--;if(el.is(':hidden')){el.css('opacity',0);el.show();el.animate({opacity:1},o.speed/2,o.options.easing);times--;}for(var i=0;i<times;i++){el.animate({opacity:0},o.speed/2,o.options.easing).animate({opacity:1},o.speed/2,o.options.easing);};if(mode=='hide'){el.animate({opacity:0},o.speed/2,o.options.easing,function(){el.hide();if(o.callback)o.callback.apply(this,arguments);});}else{el.animate({opacity:0},o.speed/2,o.options.easing).animate({opacity:1},o.speed/2,o.options.easing,function(){if(o.callback)o.callback.apply(this,arguments);});};});}})(jQuery);(function($){$.ec.puff=function(o){this.each(function(){var el=$(this);var mode=o.options.mode||'hide';var percent=parseInt(o.options.percent)||150;o.options.fade=true;var original={height:el.height(),width:el.width()};var factor=percent/100;el.from=(mode=='hide')?original:{height:original.height*factor,width:original.width*factor};o.options.from=el.from;o.options.percent=(mode=='hide')?percent:100;o.options.mode=mode;el.effect('scale',o.options,o.speed,o.callback);});};$.ec.scale=function(o){this.each(function(){var el=$(this);var mode=o.options.mode||'effect';var percent=parseInt(o.options.percent)||(parseInt(o.options.percent)==0?0:(mode=='hide'?0:100));var direction=o.options.direction||'both';var origin=o.options.origin;if(mode!='effect'){origin=origin||['middle','center'];o.options.restore=true;}
2527	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2527/5f58332f7e20af3ce5621708549f37ffc85e4462/jquery-fx.js/clean/javascripts/jquery-fx.js