﻿(function(a) { a.fn.toggleFade = function(b) { b = jQuery.extend({ speedIn: "normal", speedOut: b.speedIn }, b); return this.each(function() { var c = jQuery(this).is(":hidden"); jQuery(this)[c ? "fadeIn" : "fadeOut"](c ? b.speedIn : b.speedOut) }) } })(jQuery); (function(a) { a.fn.toggleSlide = function(b) { b = jQuery.extend({ speedIn: "normal", speedOut: b.speedIn }, b); return this.each(function() { var c = jQuery(this).is(":hidden"); jQuery(this)[c ? "slideDown" : "slideUp"](c ? b.speedIn : b.speedOut) }) } })(jQuery); $.fn.clearSelect = function() { return this.each(function() { if (this.tagName == "SELECT") { this.options.length = 0 } }) }; $.fn.fillSelect = function(a) { return this.clearSelect().each(function() { if (this.tagName == "SELECT") { var b = this; $.each(a, function(c, e) { var d = new Option(e.Text, e.Value); if ($.browser.msie) { b.add(d) } else { b.add(d, null) } }) } }) };
