BAM Marine – Mercury Marine & Mercruiser engines and parts …

')); var a = function (t) { var n = e(".nivo-caption", s); if (i.currentImage.attr("title") != "" && i.currentImage.attr("title") != undefined) { var r = i.currentImage.attr("title"); if (r.substr(0, 1) == "#") r = e(r).html(); if (n.css("display") == "block") { setTimeout(function () { n.html(r) }, t.animSpeed) } else { n.html(r); n.stop().fadeIn(t.animSpeed) } } else { n.stop().fadeOut(t.animSpeed) } }; a(r); var f = 0; if (!r.manualAdvance && o.length > 1) { f = setInterval(function () { d(s, o, r, false) }, r.pauseTime) } if (r.directionNav) { s.append('"); e(s).on("click", "a.nivo-prevNav", function () { if (i.running) { return false } clearInterval(f); f = ""; i.currentSlide -= 2; d(s, o, r, "prev") }); e(s).on("click", "a.nivo-nextNav", function () { if (i.running) { return false } clearInterval(f); f = ""; d(s, o, r, "next") }) } if (r.controlNav) { i.controlNavEl = e(''); s.after(i.controlNavEl); for (var l = 0; l ') } else { i.controlNavEl.append('' + (l + 1) + "") } } e("a:eq(" + i.currentSlide + ")", i.controlNavEl).addClass("active"); e("a", i.controlNavEl).bind("click", function () { if (i.running) return false; if (e(this).hasClass("active")) return false; clearInterval(f); f = ""; u.attr("src", i.currentImage.attr("src")); i.currentSlide = e(this).attr("rel") - 1; d(s, o, r, "control") }) } if (r.pauseOnHover) { s.hover(function () { i.paused = true; clearInterval(f); f = "" }, function () { i.paused = false; if (f === "" && !r.manualAdvance) { f = setInterval(function () { d(s, o, r, false) }, r.pauseTime) } }) } s.bind("nivo:animFinished", function () { u.attr("src", i.currentImage.attr("src")); i.running = false; e(o).each(function () { if (e(this).is("a")) { e(this).css("display", "none") } }); if (e(o[i.currentSlide]).is("a")) { e(o[i.currentSlide]).css("display", "block") } if (f === "" && !i.paused && !r.manualAdvance) { f = setInterval(function () { d(s, o, r, false) }, r.pauseTime) } r.afterChange.call(this) }); var h = function (t, n, r) { if (e(r.currentImage).parent().is("a")) e(r.currentImage).parent().css("display", "block"); e('img[src="' + r.currentImage.attr("src") + '"]', t).not(".nivo-main-image,.nivo-control img").width(t.width()).css("visibility", "hidden").show(); var i = e('img[src="' + r.currentImage.attr("src") + '"]', t).not(".nivo-main-image,.nivo-control img").parent().is("a") ? e('img[src="' + r.currentImage.attr("src") + '"]', t).not(".nivo-main-image,.nivo-control img").parent().height() : e('img[src="' + r.currentImage.attr("src") + '"]', t).not(".nivo-main-image,.nivo-control img").height(); for (var s = 0; s

').css({ left: o * s + "px", width: t.width() - o * s + "px", height: i + "px", opacity: "0", overflow: "hidden" })) } else { t.append(e('

').css({ left: o * s + "px", width: o + "px", height: i + "px", opacity: "0", overflow: "hidden" })) } } e(".nivo-slice", t).height(i); u.stop().animate({ height: e(r.currentImage).height() }, n.animSpeed) }; var p = function (t, n, r) { if (e(r.currentImage).parent().is("a")) e(r.currentImage).parent().css("display", "block"); e('img[src="' + r.currentImage.attr("src") + '"]', t).not(".nivo-main-image,.nivo-control img").width(t.width()).css("visibility", "hidden").show(); var i = Math.round(t.width() / n.boxCols), s = Math.round(e('img[src="' + r.currentImage.attr("src") + '"]', t).not(".nivo-main-image,.nivo-control img").height() / n.boxRows); for (var o = 0; o

Read the original here:

BAM Marine - Mercury Marine & Mercruiser engines and parts ...

Related Posts

Comments are closed.