﻿/* --- minified js --- */;/*#
 * jQuery UI Effects Highlight
 *
 * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 * 
 * http://docs.jquery.com/UI/Effects/Highlight
 *
 * Depends:
 * effects.core.js
 */
(function(osjs){osjs.effects.highlight=function(o){return this.queue(function(){var el=osjs(this),props=['backgroundImage','backgroundColor','opacity'];var mode=osjs.effects.setMode(el,o.options.mode||'show');var color=o.options.color||"#ffff99";var oldColor;if(el.data("backgroundColor"))
oldColor=el.data("backgroundColor");else
oldColor=el.css("backgroundColor");osjs.effects.save(el,props);el.show();el.css({backgroundImage:'none',backgroundColor:color});var animation={backgroundColor:oldColor};if(mode=="hide")animation['opacity']=0;el.animate(animation,{queue:false,duration:o.duration,easing:o.options.easing,complete:function(){if(mode=="hide")el.hide();osjs.effects.restore(el,props);if(mode=="show"&&osjs.browser.msie)this.style.removeAttribute('filter');if(o.callback)o.callback.apply(this,arguments);el.dequeue();}});});};})(osjs);