(function (a) { a.fn.equalHeight = function () { var b = 0; var c = 0; this.each(function () { b = a(this).outerHeight(); c = (b > c) ? b : c; }); return this.each(function () { var d = a(this); var f = c - (d.outerHeight() - d.height()); var e = a.browser.msie && a.browser.version < 7 ? "height" : "min-height"; var f = a.browser.msie && a.browser.version < 7 ? (f - 2) : f; d.css(e, f + "px"); }); }; })(jQuery); (function (a) { a.fn.equalWidth = function () { var b = 0; var c = 0; this.each(function () { b = a(this).width(); c = (b > c) ? b : c; }); return this.each(function () { var d = a(this); var e = c - (d.innerWidth() - d.width()); var g = a.browser.msie && a.browser.version < 7 ? "width" : "min-width"; var f = a.browser.msie && a.browser.version < 7 ? (e - 2) : e; d.css(g, c + "px"); }); }; })(jQuery); (function (a) { a.fn.topDrop = function (b) { var c = { speed: 100, hoverTimeout: 250 }; var b = a.extend(c, b); this.each(function () { var e, d = false; var f = a(this); if (f.hasClass("open")) { return false; } f.hover(function () { clearTimeout(e); f.addClass("hover").find(".dropContent").stop(1, 1).slideDown(b.speed).css("width", f.width()); }, function () { e = setTimeout(function () { a(".dropper .option").hide(); f.removeClass("hover").find(".dropContent").hide(); }, b.hoverTimeout); }); }); }; })(jQuery); (function (a) { a.fn.linkedBlock = function (b) { var c = { target: "a:first", hover: true, hoverClass: "hover" }; var b = a.extend(c, b); this.each(function () { var e = a(this); var d = e.find(b.target).attr("href"); if (!d) { return false; } if (b.hover) { e.hover(function () { e.addClass(b.hoverClass); }, function () { e.removeClass(b.hoverClass); }); } e.css("cursor", "pointer").click(function () { window.location = d; return false; }); }); }; })(jQuery); (function (a) { a.fn.accordions = function (b) { var c = { scrolls: false, keepOpen: false, scrollTo: true, useHash: true }; var b = a.extend(c, b); this.each(function () { var g = a(this), d; var f = a("tr:even", g).addClass("accTitle"); a(".accTitle", g).append('<th class="arrow" />').next("tr").find("td:last").attr("colspan", "2").addClass("last"); var i = a("tr:odd", g).addClass("accContent").hide(); var j = f.children("th"); a(".accContent").each(function () { a(this).find("td:first").addClass("first"); }); f.each(function () { d = a("th", a(this)).size(); }); if (d > 3) { j.each(function () { a(this).css("width", a(this).innerWidth() + "px"); }); } j.click(function () { var k = a(window).scrollTop(); if (b.keepOpen) { a(this, g).parent("tr").find("th:last").toggleClass("open"); a(this, g).parent("tr").next(".accContent").toggle(); } else { if (a(this).parent("tr").find("th:last").hasClass("open")) { a(this).siblings("th:last").removeClass("open").parent("tr").next("tr").hide(); } else { g.find(".open").removeClass("open").parent("tr").next("tr").hide(); a(this, g).parent("tr").next("tr").show(); a(this, g).siblings(":last").addClass("open"); if (b.useHash) { window.location.hash = a(this).parent("tr").attr("title"); } } } return false; }); if (b.useHash) { if (window.location.hash) { var e = window.location.hash; var h = a('tr[title="' + e.substr(1) + '"]').offset().top; a('tr[title="' + e.substr(1) + '"]', g).find("th.arrow").addClass("open").parents("tr").next("tr").show(); if (b.scrollTo) { window.scroll(0, h); } } } }); }; })(jQuery); (function (a) { a.fn.dropdown = function (b) { var c = { speed: 100, hoverTimeout: 250 }; var b = a.extend(c, b); this.each(function () { var f, e = false; var g = a(this); var h = a('<input type="hidden" name="' + g.attr("id") + '" value="" />'); if (a(".option a.selected", g).size() > 0) { var d = a(".option a.selected", g).text(); a(".option a.selected", g).remove(); a(".select", g).text(d); } a(".select", g).click(function () { clearTimeout(f); var i = a(".option", g); if (i.is(":visible")) { i.hide(); g.removeClass("open"); } else { a(".option").hide(); i.slideDown(b.speed, function () { g.addClass("open"); }).css("width", g.width() - 2); } }); g.hover(function () { clearTimeout(f); }, function () { f = setTimeout(function () { g.removeClass("open").children(".option").hide(10); }, b.hoverTimeout); }); }); }; })(jQuery); (function (a) { a.fn.newsTicker = function (b) { var c = { animSpeed: 250, interval: 8 }; var b = a.extend(c, b); this.each(function () { var f = a(this), d; var g = a(".scrollItem", f); var h = f.width(); var e = g.length; a(".holder", f).css("width", (h * e)); a('.scrollItem:first', f).addClass('show'); ; if (e > 1) { var i = setInterval(function () { var j = a(".show", f).index(); if (j == (e - 1)) { a(".show", f).removeClass("show").fadeOut(b.animSpeed, function () { a(".scrollItem:first", f).fadeIn(b.animSpeed).addClass("show"); }); } else { a(".show", f).removeClass("show").fadeOut(b.animSpeed, function () { a(this).next(".scrollItem", f).fadeIn(b.animSpeed).addClass("show"); }); } }, (b.interval * 1000)); } }); }; })(jQuery);
