﻿(function (a) { a.fn.verticalAlign = function (d) { var g = { tag: "img" }; var d = a.extend(g, d), c = a(this).find(d.tag), f = 0, e; c.eq(c.length - 1).load(function () { b() }); function b() { c.each(function () { _this = a(this); if (_this.height() > f) { f = _this.height() } }); c.each(function () { _this = a(this); e = (f - _this.height()) / 2; _this.css({ paddingTop: e, paddingBottom: e }) }) } b() } })(jQuery); (function (a) { a.fn.maxiPad = function (f) { var j = { trimLeft: "0", trimRight: "0", ieDelay: true }; var e, h, g, d, c, b; var f = a.extend(j, f); return this.each(function () { var i = a(this); h = a("> li a", i); g = 0; d = h.length; c = 0; for (g = 0; g < d; g++) { c += h.eq(g).width() } remainder = Math.floor(((i.width() - c) / 2) / d); b = i.width() - (c + (remainder * 2 * d)); h.css({ "padding-left": remainder - f.trimLeft, "padding-right": remainder - f.trimRight }).eq(d - 1).css("padding-right", remainder + b); if (f.ieDelay) { if (!(a.support.opacity)) { i.css("top", "0") } } }) } })(jQuery);$(document).ready(function () { var e = $("#slideshow").find("a"), d, f = '<ul id="slideNav">', c = 0, g; e.css({ left: "980px" }).eq(0).addClass("currentSlide").css("left", "0"); for (d = 1; d <= e.length; d++) { f += '<li><a href="#">' + d + "</a>" } f += "</ul>"; $("#slideshow").append(f); Cufon.replace("#slideNav a"); g = $("#slideNav li"); g.eq(0).addClass("on"); var b = setInterval(function () { a(c) }, 6000); function a(j, h) { g.removeClass("on"); e.removeClass("currentSlide").eq(c).css("zIndex", "8").animate({ left: "-980px" }, 1000, function () { $(this).css("left", "980px") }); if (h == true) { c = j } else { if (c < e.length - 1) { c++ } else { c = 0 } } e.eq(c).css("zIndex", "10").animate({ left: "0" }, 1000).addClass("currentSlide"); g.eq(c).addClass("on") } $("#slideNav a").click(function () { if (!($(this).parents("li").hasClass("on"))) { clearInterval(b); a($(this).parents("li").index(), true); b = setInterval(function () { a(c) }, 6000) } return false }); $(".bottomFeature").find("a").addClass("right"); $(".productList").verticalAlign(); $("#ankle ul").verticalAlign(); $('#blogPosts li').eq(0).addClass('firstPost'); });
