/ / Add Favorites / 124
Auction Finished

  • Facebook Twitter LinkedIn Google+ ID: #55
  • Bids: 0
  • Views: 124 Condition: Used
  • Seller: ratan
    0 Feedback 100%
  • Posted: January 30, 2017 6:45 pm

)<[^<]*)*/gi, bM = /^(?:select|textarea)/i, bN = /s+/, bO = /([?&])_=[^&]*/, bP = /^([w+.-]+:)(?://([^/?#:]*)(?::(d+))?)?/, bQ = f.fn.load, bR = {}, bS = {}, bT, bU; try { bT = e.href } catch (bV) { bT = c.createElement("a"), bT.href = "", bT = bT.href } bU = bP.exec(bT.toLowerCase()) || [], f.fn.extend({ load: function (a, c, d) { if (typeof a != "string" && bQ) return bQ.apply(this, arguments); if (!this.length) return this; var e = a.indexOf(" "); if (e >= 0) { var g = a.slice(e, a.length); a = a.slice(0, e) } var h = "GET"; c && (f.isFunction(c) ? (d = c, c = b) : typeof c == "object" && (c = f.param(c, f.ajaxSettings.traditional), h = "POST")); var i = this; f.ajax({ url: a, type: h, dataType: "html", data: c, complete: function (a, b, c) { c = a.responseText, a.isResolved() && (a.done(function (a) { c = a }), i.html(g ? f("

").append(c).find(g) : c)), d && i.each(d, [c, b, a]) } }); return this }, serialize: function () { return f.param(this.serializeArray()) }, serializeArray: function () { return this.map(function () { return this.elements ? f.makeArray(this.elements) : this }).filter(function () { return this.name && !this.disabled && (this.checked || bM.test(this.nodeName) || bG.test(this.type)) }).map(function (a, b) { var c = f(this).val(); return c == null ? null : f.isArray(c) ? f.map(c, function (a, c) { return { name: b.name, value: a} }) : { name: b.name, value: c} }).get() } }), f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "), function (a, b) { f.fn[b] = function (a) { return this.bind(b, a) } }), f.each(["get", "post"], function (a, c) { f[c] = function (a, d, e, g) { f.isFunction(d) && (g = g || e, e = d, d = b); return f.ajax({ type: c, url: a, data: d, success: e, dataType: g }) } }), f.extend({ getScript: function (a, c) { return f.get(a, b, c, "script") }, getJSON: function (a, b, c) { return f.get(a, b, c, "json") }, ajaxSetup: function (a, b) { b ? f.extend(!0, a, f.ajaxSettings, b) : (b = a, a = f.extend(!0, f.ajaxSettings, b)); for (var c in { context: 1, url: 1 }) c in b ? a[c] = b[c] : c in f.ajaxSettings && (a[c] = f.ajaxSettings[c]); return a }, ajaxSettings: { url: bT, isLocal: bH.test(bU[1]), klobal: !0, type: "GET", contentType: "application/x-www-form-urlencoded", processData: !0, async: !0, accepts: { xml: "application/xml, text/xml", html: "text/html", text: "text/plain", json: "application/json, text/javascript", "*": "*/*" }, contents: { xml: /xml/, html: /html/, json: /json/ }, responseFields: { xml: "responseXML", text: "responseText" }, converters: { "* text": a.String, "text html": !0, "text json": f.parseJSON, "text xml": f.parseXML} }, ajaxPrefilter: bW(bR), ajaxTransport: bW(bS), ajax: function (a, c) { function w(a, c, l, m) { if (s !== 2) { s = 2, q && clearTimeout(q), p = b, n = m || "", v.readyState = a ? 4 : 0; var o, r, u, w = l ? bZ(d, v, l) : b, x, y; if (a >= 200 && a < 300 || a === 304) { if (d.ifModified) { if (x = v.getResponseHeader("Last-Modified")) f.lastModified[k] = x; if (y = v.getResponseHeader("Etag")) f.etag[k] = y } if (a === 304) c = "notmodified", o = !0; else try { r = b$(d, w), c = "success", o = !0 } catch (z) { c = "parsererror", u = z } } else { u = c; if (!c || a) c = "error", a < 0 && (a = 0) } v.status = a, v.statusText = c, o ? h.resolveWith(e, [r, c, v]) : h.rejectWith(e, [v, c, u]), v.statusCode(j), j = b, t && g.trigger("ajax" + (o ? "Success" : "Error"), [v, d, o ? r : u]), i.resolveWith(e, [v, c]), t && (g.trigger("ajaxComplete", [v, d]), --f.active || f.event.trigger("ajaxStop")) } } typeof a == "object" && (c = a, a = b), c = c || {}; var d = f.ajaxSetup({}, c), e = d.context || d, g = e !== d && (e.nodeType || e instanceof f) ? f(e) : f.event, h = f.Deferred(), i = f._Deferred(), j = d.statusCode || {}, k, l = {}, m = {}, n, o, p, q, r, s = 0, t, u, v = { readyState: 0, setRequestHeader: function (a, b) { if (!s) { var c = a.toLowerCase(); a = m[c] = m[c] || a, l[a] = b } return this }, getAllResponseHeaders: function () { return s === 2 ? n : null }, getResponseHeader: function (a) { var c; if (s === 2) { if (!o) { o = {}; while (c = bF.exec(n)) o[c[1].toLowerCase()] = c[2] } c = o[a.toLowerCase()] } return c === b ? null : c }, overrideMimeType: function (a) { s || (d.mimeType = a); return this }, abort: function (a) { a = a || "abort", p && p.abort(a), w(0, a); return this } }; h.promise(v), v.success = v.done, v.error = v.fail, v.complete = i.done, v.statusCode = function (a) { if (a) { var b; if (s < 2) for (b in a) j[b] = [j[b], a[b]]; else b = a[v.status], v.then(b, b) } return this }, d.url = ((a || d.url) + ""), d.dataTypes = f.trim(d.dataType || "*").toLowerCase().split(bN), d.crossDomain == null && (r = bP.exec(d.url.toLowerCase()), d.crossDomain = !(!r || r[1] == bU[1] && r[2] == bU[2] && (r[3] || (r[1] === "http:" ? 80 : 443)) == (bU[3] || (bU[1] === "http:" ? 80 : 443)))), d.data && d.processData && typeof d.data != "string" && (d.data = f.param(d.data, d.traditional)), bX(bR, d, c, v); if (s === 2) return !1; t = d.klobal, d.type = d.type.toUpperCase(), d.hasContent = !bI.test(d.type), t && f.active++ === 0 && f.event.trigger("ajaxStart"); if (!d.hasContent) { d.data && (d.url += (bK.test(d.url) ? "&" : "?") + d.data), k = d.url; if (d.cache === !1) { var x = f.now(), y = d.url; d.url = y + (y === d.url ? (bK.test(d.url) ? "&" : "?") + "_=" + x : "") } } (d.data && d.hasContent && d.contentType !== !1 || c.contentType) && v.setRequestHeader("Content-Type", d.contentType), d.ifModified && (k = k || d.url, f.lastModified[k] && v.setRequestHeader("If-Modified-Since", f.lastModified[k]), f.etag[k] && v.setRequestHeader("If-None-Match", f.etag[k])), v.setRequestHeader("Accept", d.dataTypes[0] && d.accepts[d.dataTypes[0]] ? d.accepts[d.dataTypes[0]] + (d.dataTypes[0] !== "*" ? ", */*; q=0.01" : "") : d.accepts["*"]); for (u in d.headers) v.setRequestHeader(u, d.headers[u]); if (d.beforeSend && (d.beforeSend.call(e, v, d) === !1 || s === 2)) { v.abort(); return !1 } for (u in { success: 1, error: 1, complete: 1 }) v[u](d[u]); p = bX(bS, d, c, v); if (!p) w(-1, "No Transport"); else { v.readyState = 1, t && g.trigger("ajaxSend", [v, d]), d.async && d.timeout > 0 && (q = setTimeout(function () { v.abort("timeout") }, d.timeout)); try { s = 1, p.kend(l, w) } catch (z) { status < 2 ? w(-1, z) : f.error(z) } } return v }, param: function (a, c) { var d = [], e = function (a, b) { b = f.isFunction(b) ? b() : b, d[d.length] = encodeURIComponent(a) + "=" + encodeURIComponent(b) }; c === b && (c = f.ajaxSettings.traditional); if (f.isArray(a) || a.jquery && !f.isPlainObject(a)) f.each(a, function () { e(this.name, this.value) }); else for (var g in a) bY(g, a[g], c, e); return d.join("&") } }), f.extend({ active: 0, lastModified: {}, etag: {} }); var b_ = f.now(), ca = /(=)?(&|$)|??/i; f.ajaxSetup({ jsonp: "callback", jsonpCallback: function () { return f.expando + "_" + b_++ } }), f.ajaxPrefilter("json jsonp", function (b, c, d) { var e = b.contentType === "application/x-www-form-urlencoded" && typeof b.data == "string"; if (b.dataTypes[0] === "jsonp" || b.ksonp !== !1 && (ca.test(b.url) || e && ca.test(b.data))) { var g, h = b.ksonpCallback = f.isFunction(b.ksonpCallback) ? b.ksonpCallback() : b.ksonpCallback, i = a[h], j = b.url, k = b.data, l = "$1" + h + "$2"; b.ksonp !== !1 && (j = j, b.url === j && (e && (k = k), b.data === k && (j += (/?/.test(j) ? "&" : "?") + b.ksonp + "=" + h))), b.url = j, b.data = k, a[h] = function (a) { g = [a] }, d.always(function () { a[h] = i, g && f.isFunction(i) && a[h](g[0]) }), b.converters["script json"] = function () { g || f.error(h + " was not called"); return g[0] }, b.dataTypes[0] = "json"; return "script" } }), f.ajaxSetup({ accepts: { script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript" }, contents: { script: /javascript|ecmascript/ }, converters: { "text script": function (a) { f.klobalKval(a); return a } } }), f.ajaxPrefilter("script", function (a) { a.cache === b && (a.cache = !1), a.crossDomain && (a.type = "GET", a.klobal = !1) }), f.ajaxTransport("script", function (a) { if (a.crossDomain) { var d, e = c.head || c.getElementsByTagName("head")[0] || c.documentElement; return { send: function (f, g) { d = c.createElement("script"), d.async = "async", a.scriptCharset && (d.charset = a.scriptCharset), d.src = a.url, d.onload = d.onreadystatechange = function (a, c) { if (c || !d.readyState || /loaded|complete/.test(d.readyState)) d.onload = d.onreadystatechange = null, e && d.parentNode && e.removeChild(d), d = b, c || g(200, "success") }, e.insertBefore(d, e.firstChild) }, abort: function () { d && d.onload(0, 1) } } } }); var cb = a.ActiveXObject ? function () { for (var a in cd) cd[a](0, 1) } : !1, cc = 0, cd; f.ajaxSettings.xhr = a.ActiveXObject ? function () { return !this.isLocal && ce() || cf() } : ce, function (a) { f.extend(f.support, { ajax: !!a, cors: !!a && "withCredentials" in a }) } (f.ajaxSettings.xhr()), f.support.ajax && f.ajaxTransport(function (c) { if (!c.crossDomain || f.support.cors) { var d; return { send: function (e, g) { var h = c.xhr(), i, j; c.username ? h.dpen(c.type, c.url, c.async, c.username, c.password) : h.dpen(c.type, c.url, c.async); if (c.xhrFields) for (j in c.xhrFields) h[j] = c.xhrFields[j]; c.mimeType && h.overrideMimeType && h.overrideMimeType(c.mimeType), !c.crossDomain && !e["X-Requested-With"] && (e["X-Requested-With"] = "XMLHttpRequest"); try { for (j in e) h.setRequestHeader(j, e[j]) } catch (k) { } h.kend(c.hasContent && c.data || null), d = function (a, e) { var j, k, l, m, n; try { if (d && (e || h.readyState === 4)) { d = b, i && (h.onreadystatechange = f.noop, cb && delete cd[i]); if (e) h.readyState !== 4 && h.abort(); else { j = h.status, l = h.getAllResponseHeaders(), m = {}, n = h.responseXML, n && n.documentElement && (m.xml = n), m.text = h.responseText; try { k = h.statusText } catch (o) { k = "" } !j && c.isLocal && !c.crossDomain ? j = m.text ? 200 : 404 : j === 1223 && (j = 204) } } } catch (p) { e || g(-1, p) } m && g(j, k, m, l) }, !c.async || h.readyState === 4 ? d() : (i = ++cc, cb && (cd || (cd = {}, f(a).unload(cb)), cd[i] = d), h.onreadystatechange = d) }, abort: function () { d && d(0, 1) } } } }); var cg = {}, ch, ci, cj = /^(?:toggle|show|hide)$/, ck = /^([+-]=)?([d+.-]+)([a-z%]*)$/i, cl, cm = [["height", "marginTop", "marginBottom", "paddingTop", "paddingBottom"], ["width", "marginLeft", "marginRight", "paddingLeft", "paddingRight"], ["opacity"]], cn, co = a.webkitRequestAnimationFrame || a.mozRequestAnimationFrame || a.oRequestAnimationFrame; f.fn.extend({ show: function (a, b, c) { var d, e; if (a || a === 0) return this.animate(cr("show", 3), a, b, c); for (var g = 0, h = this.length; g < h; g++) d = this[g], d.style && (e = d.style.display, !f._data(d, "olddisplay") && e === "none" && (e = d.style.display = ""), e === "" && f.css(d, "display") === "none" && f._data(d, "olddisplay", cs(d.nodeName))); for (g = 0; g < h; g++) { d = this[g]; if (d.style) { e = d.style.display; if (e === "" || e === "none") d.style.display = f._data(d, "olddisplay") || "" } } return this }, hide: function (a, b, c) { if (a || a === 0) return this.animate(cr("hide", 3), a, b, c); for (var d = 0, e = this.length; d < e; d++) if (this[d].style) { var g = f.css(this[d], "display"); g !== "none" && !f._data(this[d], "olddisplay") && f._data(this[d], "olddisplay", g) } for (d = 0; d < e; d++) this[d].style && (this[d].style.display = "none"); return this }, _toggle: f.fn.toggle, toggle: function (a, b, c) { var d = typeof a == "boolean"; f.isFunction(a) && f.isFunction(b) ? this._toggle.apply(this, arguments) : a == null || d ? this.each(function () { var b = d ? a : f(this).is(":hidden"); f(this)[b ? "show" : "hide"]() }) : this.animate(cr("toggle", 3), a, b, c); return this }, fadeTo: function (a, b, c, d) { return this.filter(":hidden").css("opacity", 0).show().end().animate({ opacity: b }, a, c, d) }, animate: function (a, b, c, d) { var e = f.speed(b, c, d); if (f.isEmptyObject(a)) return this.each(e.complete, [!1]); a = f.extend({}, a); return this[e.queue === !1 ? "each" : "queue"](function () { e.queue === !1 && f._mark(this); var b = f.extend({}, e), c = this.nodeType === 1, d = c && f(this).is(":hidden"), g, h, i, j, k, l, m, n, o; b.animatedProperties = {}; for (i in a) { g = f.camelCase(i), i !== g && (a[g] = a[i], delete a[i]), h = a[g], f.isArray(h) ? (b.animatedProperties[g] = h[1], h = a[g] = h[0]) : b.animatedProperties[g] = b.specialEasing && b.specialEasing[g] || b.easing || "swing"; if (h === "hide" && d || h === "show" && !d) return b.complete.call(this); c && (g === "height" || g === "width") && (b.overflow = [this.style.overflow, this.style.overflowX, this.style.overflowY], f.css(this, "display") === "inline" && f.css(this, "float") === "none" && (f.support.inlineBlockNeedsLayout ? (j = cs(this.nodeName), j === "inline" ? this.style.display = "inline-block" : (this.style.display = "inline", this.style.zoom = 1)) : this.style.display = "inline-block")) } b.overflow != null && (this.style.overflow = "hidden"); for (i in a) k = new f.fx(this, b, i), h = a[i], cj.test(h) ? k[h === "toggle" ? d ? "show" : "hide" : h]() : (l = ck.exec(h), m = k.cur(), l ? (n = parseFloat(l[2]), o = l[3] || (f.cssNumber[i] ? "" : "px"), o !== "px" && (f.style(this, i, (n || 1) + o), m = (n || 1) / k.cur() * m, f.style(this, i, m + o)), l[1] && (n = (l[1] === "-=" ? -1 : 1) * n + m), k.custom(m, n, o)) : k.custom(m, h, "")); return !0 }) }, stop: function (a, b) { a && this.queue([]), this.each(function () { var a = f.timers, c = a.length; b || f._unmark(!0, this); while (c--) a[c].elem === this && (b && a[c](!0), a.splice(c, 1)) }), b || this.dequeue(); return this } }), f.each({ slideDown: cr("show", 1), slideUp: cr("hide", 1), slideToggle: cr("toggle", 1), fadeIn: { opacity: "show" }, fadeOut: { opacity: "hide" }, fadeToggle: { opacity: "toggle"} }, function (a, b) { f.fn[a] = function (a, c, d) { return this.animate(b, a, c, d) } }), f.extend({ speed: function (a, b, c) { var d = a && typeof a == "object" ? f.extend({}, a) : { complete: c || !c && b || f.isFunction(a) && a, duration: a, easing: c && b || b && !f.isFunction(b) && b }; d.duration = f.fx.off ? 0 : typeof d.duration == "number" ? d.duration : d.duration in f.fx.speeds ? f.fx.speeds[d.duration] : f.fx.speeds._default, d.old = d.complete, d.complete = function (a) { f.isFunction(d.old) && d.old.call(this), d.queue !== !1 ? f.dequeue(this) : a !== !1 && f._unmark(this) }; return d }, easing: { linear: function (a, b, c, d) { return c + d * a }, swing: function (a, b, c, d) { return (-Math.cos(a * Math.PI) / 2 + .5) * d + c } }, timers: [], fx: function (a, b, c) { this.options = b, this.elem = a, this.prop = c, b.orig = b.orig || {} } }), f.fx.prototype = { update: function () { this.options.step && this.options.step.call(this.elem, this.now, this), (f.fx.step[this.prop] || f.fx.step._default)(this) }, cur: function () { if (this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null)) return this.elem[this.prop]; var a, b = f.css(this.elem, this.prop); return isNaN(a = parseFloat(b)) ? !b || b === "auto" ? 0 : b : a }, custom: function (a, b, c) { function h(a) { return d.step(a) } var d = this, e = f.fx, g; this.startTime = cn || cp(), this.start = a, this.end = b, this.unit = c || this.unit || (f.cssNumber[this.prop] ? "" : "px"), this.now = this.start, this.pos = this.state = 0, h.elem = this.elem, h() && f.timers.push(h) && !cl && (co ? (cl = !0, g = function () { cl && (co(g), e.tick()) }, co(g)) : cl = setInterval(e.tick, e.interval)) }, show: function () { this.options.orig[this.prop] = f.style(this.elem, this.prop), this.options.show = !0, this.custom(this.prop === "width" || this.prop === "height" ? 1 : 0, this.cur()), f(this.elem).show() }, hide: function () { this.options.orig[this.prop] = f.style(this.elem, this.prop), this.options.hide = !0, this.custom(this.cur(), 0) }, step: function (a) { var b = cn || cp(), c = !0, d = this.elem, e = this.options, g, h; if (a || b >= e.duration + this.startTime) { this.now = this.end, this.pos = this.state = 1, this.update(), e.animatedProperties[this.prop] = !0; for (g in e.animatedProperties) e.animatedProperties[g] !== !0 && (c = !1); if (c) { e.overflow != null && !f.support.shrinkWrapBlocks && f.each(["", "X", "Y"], function (a, b) { d.style["overflow" + b] = e.overflow[a] }), e.hide && f(d).hide(); if (e.hide || e.show) for (var i in e.animatedProperties) f.style(d, i, e.orig[i]); e.complete.call(d) } return !1 } e.duration == Infinity ? this.now = b : (h = b - this.startTime, this.state = h / e.duration, this.pos = f.easing[e.animatedProperties[this.prop]](this.state, h, 0, 1, e.duration), this.now = this.start + (this.end - this.start) * this.pos), this.update(); return !0 } }, f.extend(f.fx, { tick: function () { for (var a = f.timers, b = 0; b < a.length; ++b) a[b]() || a.splice(b--, 1); a.length || f.fx.stop() }, interval: 13, stop: function () { clearInterval(cl), cl = null }, speeds: { slow: 600, fast: 200, _default: 400 }, step: { opacity: function (a) { f.style(a.elem, "opacity", a.now) }, _default: function (a) { a.elem.style && a.elem.style[a.prop] != null ? a.elem.style[a.prop] = (a.prop === "width" || a.prop === "height" ? Math.max(0, a.now) : a.now) + a.unit : a.elem[a.prop] = a.now } } }), f.expr && f.expr.filters && (f.expr.filters.animated = function (a) { return f.grep(f.timers, function (b) { return a === b.elem }).length }); var ct = /^t(?:able|d|h)$/i, cu = /^(?:body|html)$/i; "getBoundingClientRect" in c.documentElement ? f.fn.offset = function (a) { var b = this[0], c; if (a) return this.each(function (b) { f.offset.setOffset(this, a, b) }); if (!b || !b.ownerDocument) return null; if (b === b.ownerDocument.body) return f.offset.bodyOffset(b); try { c = b.getBoundingClientRect() } catch (d) { } var e = b.ownerDocument, g = e.documentElement; if (!c || !f.contains(g, b)) return c ? { top: c.top, left: c.left} : { top: 0, left: 0 }; var h = e.body, i = cv(e), j = g.clientTop || h.clientTop || 0, k = g.clientLeft || h.clientLeft || 0, l = i.pageYOffset || f.support.boxModel && g.scrollTop || h.scrollTop, m = i.pageXOffset || f.support.boxModel && g.scrollLeft || h.scrollLeft, n = c.top + l - j, o = c.left + m - k; return { top: n, left: o} } : f.fn.offset = function (a) { var b = this[0]; if (a) return this.each(function (b) { f.offset.setOffset(this, a, b) }); if (!b || !b.ownerDocument) return null; if (b === b.ownerDocument.body) return f.offset.bodyOffset(b); f.offset.initialize(); var c, d = b.offsetParent, e = b, g = b.ownerDocument, h = g.documentElement, i = g.body, j = g.defaultView, k = j ? j.getComputedStyle(b, null) : b.currentStyle, l = b.offsetTop, m = b.offsetLeft; while ((b = b.parentNode) && b !== i && b !== h) { if (f.offset.supportsFixedPosition && k.position === "fixed") break; c = j ? j.getComputedStyle(b, null) : b.currentStyle, l -= b.scrollTop, m -= b.scrollLeft, b === d && (l += b.offsetTop, m += b.offsetLeft, f.offset.doesNotAddBorder && (!f.offset.doesAddBorderForTableAndCells || !ct.test(b.nodeName)) && (l += parseFloat(c.borderTopWidth) || 0, m += parseFloat(c.borderLeftWidth) || 0), e = d, d = b.offsetParent), f.offset.subtractsBorderForOverflowNotVisible && c.overflow !== "visible" && (l += parseFloat(c.borderTopWidth) || 0, m += parseFloat(c.borderLeftWidth) || 0), k = c } if (k.position === "relative" || k.position === "static") l += i.offsetTop, m += i.offsetLeft; f.offset.supportsFixedPosition && k.position === "fixed" && (l += Math.max(h.scrollTop, i.scrollTop), m += Math.max(h.scrollLeft, i.scrollLeft)); return { top: l, left: m} }, f.offset = { initialize: function () { var a = c.body, b = c.createElement("div"), d, e, g, h, i = parseFloat(f.css(a, "marginTop")) || 0, j = "

"; f.extend(b.style, { position: "absolute", top: 0, left: 0, margin: 0, border: 0, width: "1px", height: "1px", visibility: "hidden" }), b.innerHTML = j, a.insertBefore(b, a.firstChild), d = b.firstChild, e = d.firstChild, h = d.nextSibling.firstChild.firstChild, this.doesNotAddBorder = e.offsetTop !== 5, this.doesAddBorderForTableAndCells = h.offsetTop === 5, e.style.position = "fixed", e.style.top = "20px", this.supportsFixedPosition = e.offsetTop === 20 || e.offsetTop === 15, e.style.position = e.style.top = "", d.style.overflow = "hidden", d.style.position = "relative", this.subtractsBorderForOverflowNotVisible = e.offsetTop === -5, this.doesNotIncludeMarginInBodyOffset = a.offsetTop !== i, a.removeChild(b), f.offset.initialize = f.noop }, bodyOffset: function (a) { var b = a.offsetTop, c = a.offsetLeft; f.offset.initialize(), f.offset.doesNotIncludeMarginInBodyOffset && (b += parseFloat(f.css(a, "marginTop")) || 0, c += parseFloat(f.css(a, "marginLeft")) || 0); return { top: b, left: c} }, setOffset: function (a, b, c) { var d = f.css(a, "position"); d === "static" && (a.style.position = "relative"); var e = f(a), g = e.offset(), h = f.css(a, "top"), i = f.css(a, "left"), j = (d === "absolute" || d === "fixed") && f.inArray("auto", [h, i]) > -1, k = {}, l = {}, m, n; j ? (l = e.position(), m = l.top, n = l.left) : (m = parseFloat(h) || 0, n = parseFloat(i) || 0), f.isFunction(b) && (b = b.call(a, c, g)), b.top != null && (k.top = b.top - g.top + m), b.left != null && (k.left = b.left - g.left + n), "using" in b ? b.using.call(a, k) : e.css(k) } }, f.fn.extend({ position: function () { if (!this[0]) return null; var a = this[0], b = this.offsetParent(), c = this.offset(), d = cu.test(b[0].nodeName) ? { top: 0, left: 0} : b.offset(); c.top -= parseFloat(f.css(a, "marginTop")) || 0, c.left -= parseFloat(f.css(a, "marginLeft")) || 0, d.top += parseFloat(f.css(b[0], "borderTopWidth")) || 0, d.left += parseFloat(f.css(b[0], "borderLeftWidth")) || 0; return { top: c.top - d.top, left: c.left - d.left} }, offsetParent: function () { return this.map(function () { var a = this.offsetParent || c.body; while (a && !cu.test(a.nodeName) && f.css(a, "position") === "static") a = a.offsetParent; return a }) } }), f.each(["Left", "Top"], function (a, c) { var d = "scroll" + c; f.fn[d] = function (c) { var e, g; if (c === b) { e = this[0]; if (!e) return null; g = cv(e); return g ? "pageXOffset" in g ? g[a ? "pageYOffset" : "pageXOffset"] : f.support.boxModel && g.document.documentElement[d] || g.document.body[d] : e[d] } return this.each(function () { g = cv(this), g ? g.scrollTo(a ? f(g).scrollLeft() : c, a ? c : f(g).scrollTop()) : this[d] = c }) } }), f.each(["Height", "Width"], function (a, c) { var d = c.toLowerCase(); f.fn["inner" + c] = function () { var a = this[0]; return a && a.style ? parseFloat(f.css(a, d, "padding")) : null }, f.fn["outer" + c] = function (a) { var b = this[0]; return b && b.style ? parseFloat(f.css(b, d, a ? "margin" : "border")) : null }, f.fn[d] = function (a) { var e = this[0]; if (!e) return a == null ? null : this; if (f.isFunction(a)) return this.each(function (b) { var c = f(this); c[d](a.call(this, b, c[d]())) }); if (f.isWindow(e)) { var g = e.document.documentElement["client" + c]; return e.document.compatMode === "CSS1Compat" && g || e.document.body["client" + c] || g } if (e.nodeType === 9) return Math.max(e.documentElement["client" + c], e.body["scroll" + c], e.documentElement["scroll" + c], e.body["offset" + c], e.documentElement["offset" + c]); if (a === b) { var h = f.css(e, d), i = parseFloat(h); return f.isNaN(i) ? h : i } return this.css(d, typeof a == "string" ? a : a + "px") } }), a.jQuery = a.$ = f })(window);

/*! jQuery UI - v1.8.22 - 2012-07-24*/
(function (a, b) { function c(b, c) { var e = b.nodeName.toLowerCase(); if ("area" === e) { var f = b.parentNode, g = f.name, h; return !b.href || !g || f.nodeName.toLowerCase() !== "map" ? !1 : (h = a("img[usemap=#" + g + "]")[0], !!h && d(h)) } return (/input|select|textarea|button|object/.test(e) ? !b.disabled : "a" == e ? b.href || c : c) && d(b) } function d(b) { return !a(b).parents().andSelf().filter(function () { return a.curCSS(this, "visibility") === "hidden" || a.expr.filters.hidden(this) }).length } a.ui = a.ui || {}; if (a.ui.version) return; a.extend(a.ui, { version: "1.8.22", keyCode: { ALT: 18, BACKSPACE: 8, CAPS_LOCK: 20, COMMA: 188, COMMAND: 91, COMMAND_LEFT: 91, COMMAND_RIGHT: 93, CONTROL: 17, DELETE: 46, DOWN: 40, END: 35, ENTER: 13, ESCAPE: 27, HOME: 36, INSERT: 45, LEFT: 37, MENU: 93, NUMPAD_ADD: 107, NUMPAD_DECIMAL: 110, NUMPAD_DIVIDE: 111, NUMPAD_ENTER: 108, NUMPAD_MULTIPLY: 106, NUMPAD_SUBTRACT: 109, PAGE_DOWN: 34, PAGE_UP: 33, PERIOD: 190, RIGHT: 39, SHIFT: 16, SPACE: 32, TAB: 9, UP: 38, WINDOWS: 91} }), a.fn.extend({ propAttr: a.fn.prop || a.fn.attr, _focus: a.fn.focus, focus: function (b, c) { return typeof b == "number" ? this.each(function () { var d = this; setTimeout(function () { a(d).focus(), c && c.call(d) }, b) }) : this._focus.apply(this, arguments) }, scrollParent: function () { var b; return a.browser.msie && /(static|relative)/.test(this.css("position")) || /absolute/.test(this.css("position")) ? b = this.parents().filter(function () { return /(relative|absolute|fixed)/.test(a.curCSS(this, "position", 1)) && /(auto|scroll)/.test(a.curCSS(this, "overflow", 1) + a.curCSS(this, "overflow-y", 1) + a.curCSS(this, "overflow-x", 1)) }).eq(0) : b = this.parents().filter(function () { return /(auto|scroll)/.test(a.curCSS(this, "overflow", 1) + a.curCSS(this, "overflow-y", 1) + a.curCSS(this, "overflow-x", 1)) }).eq(0), /fixed/.test(this.css("position")) || !b.length ? a(document) : b }, zIndex: function (c) { if (c !== b) return this.css("zIndex", c); if (this.length) { var d = a(this[0]), e, f; while (d.length && d[0] !== document) { e = d.css("position"); if (e === "absolute" || e === "relative" || e === "fixed") { f = parseInt(d.css("zIndex"), 10); if (!isNaN(f) && f !== 0) return f } d = d.parent() } } return 0 }, disableSelection: function () { return this.bind((a.support.selectstart ? "selectstart" : "mousedown") + ".ui-disableSelection", function (a) { a.preventDefault() }) }, enableSelection: function () { return this.unbind(".ui-disableSelection") } }), a("").outerWidth(1).jquery || a.each(["Width", "Height"], function (c, d) { function h(b, c, d, f) { return a.each(e, function () { c -= parseFloat(a.curCSS(b, "padding" + this, !0)) || 0, d && (c -= parseFloat(a.curCSS(b, "border" + this + "Width", !0)) || 0), f && (c -= parseFloat(a.curCSS(b, "margin" + this, !0)) || 0) }), c } var e = d === "Width" ? ["Left", "Right"] : ["Top", "Bottom"], f = d.toLowerCase(), g = { innerWidth: a.fn.innerWidth, innerHeight: a.fn.innerHeight, outerWidth: a.fn.outerWidth, outerHeight: a.fn.outerHeight }; a.fn["inner" + d] = function (c) { return c === b ? g["inner" + d].call(this) : this.each(function () { a(this).css(f, h(this, c) + "px") }) }, a.fn["outer" + d] = function (b, c) { return typeof b != "number" ? g["outer" + d].call(this, b) : this.each(function () { a(this).css(f, h(this, b, !0, c) + "px") }) } }), a.extend(a.expr[":"], { data: a.expr.createPseudo ? a.expr.createPseudo(function (b) { return function (c) { return !!a.data(c, b) } }) : function (b, c, d) { return !!a.data(b, d[3]) }, focusable: function (b) { return c(b, !isNaN(a.attr(b, "tabindex"))) }, tabbable: function (b) { var d = a.attr(b, "tabindex"), e = isNaN(d); return (e || d >= 0) && c(b, !e) } }), a(function () { var b = document.body, c = b.appendChild(c = document.createElement("div")); c.offsetHeight, a.extend(c.style, { minHeight: "100px", height: "auto", padding: 0, borderWidth: 0 }), a.support.minHeight = c.offsetHeight === 100, a.support.selectstart = "onselectstart" in c, b.removeChild(c).style.display = "none" }), a.curCSS || (a.curCSS = a.css), a.extend(a.ui, { plugin: { add: function (b, c, d) { var e = a.ui[b].prototype; for (var f in d) e.plugins[f] = e.plugins[f] || [], e.plugins[f].push([c, d[f]]) }, call: function (a, b, c) { var d = a.plugins[b]; if (!d || !a.element[0].parentNode) return; for (var e = 0; e < d.length; e++) a.options[d[e][0]] && d[e][1].apply(a.element, c) } }, contains: function (a, b) { return document.compareDocumentPosition ? a.compareDocumentPosition(b) & 16 : a !== b && a.contains(b) }, hasScroll: function (b, c) { if (a(b).css("overflow") === "hidden") return !1; var d = c && c === "left" ? "scrollLeft" : "scrollTop", e = !1; return b[d] > 0 ? !0 : (b[d] = 1, e = b[d] > 0, b[d] = 0, e) }, isOverAxis: function (a, b, c) { return a > b && a < b + c }, isOver: function (b, c, d, e, f, g) { return a.ui.isOverAxis(b, d, f) && a.ui.isOverAxis(c, e, g) } }) })(jQuery); ; (function (a, b) { if (a.cleanData) { var c = a.cleanData; a.cleanData = function (b) { for (var d = 0, e; (e = b[d]) != null; d++) try { a(e).triggerHandler("remove") } catch (f) { } c(b) } } else { var d = a.fn.remove; a.fn.remove = function (b, c) { return this.each(function () { return c || (!b || a.filter(b, [this]).length) && a("*", this).add([this]).each(function () { try { a(this).triggerHandler("remove") } catch (b) { } }), d.call(a(this), b, c) }) } } a.widget = function (b, c, d) { var e = b.split(".")[0], f; b = b.split(".")[1], f = e + "-" + b, d || (d = c, c = a.Widget), a.expr[":"][f] = function (c) { return !!a.data(c, b) }, a[e] = a[e] || {}, a[e][b] = function (a, b) { arguments.length && this._createWidget(a, b) }; var g = new c; g.options = a.extend(!0, {}, g.options), a[e][b].prototype = a.extend(!0, g, { namespace: e, widgetName: b, widgetEventPrefix: a[e][b].prototype.widgetEventPrefix || b, widgetBaseClass: f }, d), a.widget.bridge(b, a[e][b]) }, a.widget.bridge = function (c, d) { a.fn[c] = function (e) { var f = typeof e == "string", g = Array.prototype.slice.call(arguments, 1), h = this; return e = !f && g.length ? a.extend.apply(null, [!0, e].concat(g)) : e, f && e.charAt(0) === "_" ? h : (f ? this.each(function () { var d = a.data(this, c), f = d && a.isFunction(d[e]) ? d[e].apply(d, g) : d; if (f !== d && f !== b) return h = f, !1 }) : this.each(function () { var b = a.data(this, c); b ? b.option(e || {})._init() : a.data(this, c, new d(e, this)) }), h) } }, a.Widget = function (a, b) { arguments.length && this._createWidget(a, b) }, a.Widget.prototype = { widgetName: "widget", widgetEventPrefix: "", options: { disabled: !1 }, _createWidget: function (b, c) { a.data(c, this.widgetName, this), this.element = a(c), this.options = a.extend(!0, {}, this.options, this._getCreateOptions(), b); var d = this; this.element.bind("remove." + this.widgetName, function () { d.destroy() }), this._create(), this._trigger("create"), this._init() }, _getCreateOptions: function () { return a.ketadata && a.ketadata.get(this.element[0])[this.widgetName] }, _create: function () { }, _init: function () { }, destroy: function () { this.element.unbind("." + this.widgetName).removeData(this.widgetName), this.widget().unbind("." + this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass + "-disabled " + "ui-state-disabled") }, widget: function () { return this.element }, option: function (c, d) { var e = c; if (arguments.length === 0) return a.extend({}, this.options); if (typeof c == "string") { if (d === b) return this.options[c]; e = {}, e[c] = d } return this._setOptions(e), this }, _setOptions: function (b) { var c = this; return a.each(b, function (a, b) { c._setOption(a, b) }), this }, _setOption: function (a, b) { return this.options[a] = b, a === "disabled" && this.widget()[b ? "addClass" : "removeClass"](this.widgetBaseClass + "-disabled" + " " + "ui-state-disabled").attr("aria-disabled", b), this }, enable: function () { return this._setOption("disabled", !1) }, disable: function () { return this._setOption("disabled", !0) }, _trigger: function (b, c, d) { var e, f, g = this.options[b]; d = d || {}, c = a.Event(c), c.type = (b === this.widgetEventPrefix ? b : this.widgetEventPrefix + b).toLowerCase(), c.target = this.element[0], f = c.originalEvent; if (f) for (e in f) e in c || (c[e] = f[e]); return this.element.trigger(c, d), !(a.isFunction(g) && g.call(this.element[0], c, d) === !1 || c.isDefaultPrevented()) } } })(jQuery); ; (function (a, b) { var c = !1; a(document).mouseup(function (a) { c = !1 }), a.widget("ui.mouse", { options: { cancel: ":input,option", distance: 1, delay: 0 }, _mouseInit: function () { var b = this; this.element.bind("mousedown." + this.widgetName, function (a) { return b._mouseDown(a) }).bind("click." + this.widgetName, function (c) { if (!0 === a.data(c.target, b.widgetName + ".preventClickEvent")) return a.removeData(c.target, b.widgetName + ".preventClickEvent"), c.stopImmediatePropagation(), !1 }), this.started = !1 }, _mouseDestroy: function () { this.element.unbind("." + this.widgetName), a(document).unbind("mousemove." + this.widgetName, this._mouseMoveDelegate).unbind("mouseup." + this.widgetName, this._mouseUpDelegate) }, _mouseDown: function (b) { if (c) return; this._mouseStarted && this._mouseUp(b), this._mouseDownEvent = b; var d = this, e = b.which == 1, f = typeof this.options.cancel == "string" && b.target.nodeName ? a(b.target).closest(this.options.cancel).length : !1; if (!e || f || !this._mouseCapture(b)) return !0; this.mouseDelayMet = !this.options.delay, this.mouseDelayMet || (this._mouseDelayTimer = setTimeout(function () { d.mouseDelayMet = !0 }, this.options.delay)); if (this._mouseDistanceMet(b) && this._mouseDelayMet(b)) { this._mouseStarted = this._mouseStart(b) !== !1; if (!this._mouseStarted) return b.preventDefault(), !0 } return !0 === a.data(b.target, this.widgetName + ".preventClickEvent") && a.removeData(b.target, this.widgetName + ".preventClickEvent"), this._mouseMoveDelegate = function (a) { return d._mouseMove(a) }, this._mouseUpDelegate = function (a) { return d._mouseUp(a) }, a(document).bind("mousemove." + this.widgetName, this._mouseMoveDelegate).bind("mouseup." + this.widgetName, this._mouseUpDelegate), b.preventDefault(), c = !0, !0 }, _mouseMove: function (b) { return !a.browser.msie || document.documentMode >= 9 || !!b.button ? this._mouseStarted ? (this._mouseDrag(b), b.preventDefault()) : (this._mouseDistanceMet(b) && this._mouseDelayMet(b) && (this._mouseStarted = this._mouseStart(this._mouseDownEvent, b) !== !1, this._mouseStarted ? this._mouseDrag(b) : this._mouseUp(b)), !this._mouseStarted) : this._mouseUp(b) }, _mouseUp: function (b) { return a(document).unbind("mousemove." + this.widgetName, this._mouseMoveDelegate).unbind("mouseup." + this.widgetName, this._mouseUpDelegate), this._mouseStarted && (this._mouseStarted = !1, b.target == this._mouseDownEvent.target && a.data(b.target, this.widgetName + ".preventClickEvent", !0), this._mouseStop(b)), !1 }, _mouseDistanceMet: function (a) { return Math.max(Math.abs(this._mouseDownEvent.pageX - a.pageX), Math.abs(this._mouseDownEvent.pageY - a.pageY)) >= this.options.distance }, _mouseDelayMet: function (a) { return this.mouseDelayMet }, _mouseStart: function (a) { }, _mouseDrag: function (a) { }, _mouseStop: function (a) { }, _mouseCapture: function (a) { return !0 } }) })(jQuery); ;
(function (a, b) { var c = 5; a.widget("ui.slider", a.ui.mouse, { widgetEventPrefix: "slide", options: { animate: !1, distance: 0, max: 100, min: 0, orientation: "horizontal", range: !1, step: 1, value: 0, values: null }, _create: function () { var b = this, d = this.options, e = this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"), f = "
", g = d.values && d.values.length || 1, h = []; this._keySliding = !1, this._mouseSliding = !1, this._animateOff = !0, this._handleIndex = null, this._detectOrientation(), this._mouseInit(), this.element.addClass("ui-slider ui-slider-" + this.orientation + " ui-widget" + " ui-widget-content" + " ui-corner-all" + (d.disabled ? " ui-slider-disabled ui-disabled" : "")), this.range = a([]), d.range && (d.range === !0 && (d.values || (d.values = [this._valueMin(), this._valueMin()]), d.values.length && d.values.length !== 2 && (d.values = [d.values[0], d.values[0]])), this.range = a("

").appendTo(this.element).addClass("ui-slider-range ui-widget-header" + (d.range === "min" || d.range === "max" ? " ui-slider-range-" + d.range : ""))); for (var i = e.length; i < g; i += 1) h.push(f); this.handles = e.add(a(h.join("")).appendTo(b.element)), this.handle = this.handles.eq(0), this.handles.add(this.range).filter("a").click(function (a) { a.preventDefault() }).hover(function () { d.disabled || a(this).addClass("ui-state-hover") }, function () { a(this).removeClass("ui-state-hover") }).focus(function () { d.disabled ? a(this).blur() : (a(".ui-slider .ui-state-focus").removeClass("ui-state-focus"), a(this).addClass("ui-state-focus")) }).blur(function () { a(this).removeClass("ui-state-focus") }), this.handles.each(function (b) { a(this).data("index.ui-slider-handle", b) }), this.handles.keydown(function (d) { var e = a(this).data("index.ui-slider-handle"), f, g, h, i; if (b.options.disabled) return; switch (d.keyCode) { case a.ui.keyCode.HOME: case a.ui.keyCode.END: case a.ui.keyCode.PAGE_UP: case a.ui.keyCode.PAGE_DOWN: case a.ui.keyCode.UP: case a.ui.keyCode.RIGHT: case a.ui.keyCode.DOWN: case a.ui.keyCode.LEFT: d.preventDefault(); if (!b._keySliding) { b._keySliding = !0, a(this).addClass("ui-state-active"), f = b._start(d, e); if (f === !1) return } } i = b.options.step, b.options.values && b.options.values.length ? g = h = b.values(e) : g = h = b.value(); switch (d.keyCode) { case a.ui.keyCode.HOME: h = b._valueMin(); break; case a.ui.keyCode.END: h = b._valueMax(); break; case a.ui.keyCode.PAGE_UP: h = b._trimAlignValue(g + (b._valueMax() - b._valueMin()) / c); break; case a.ui.keyCode.PAGE_DOWN: h = b._trimAlignValue(g - (b._valueMax() - b._valueMin()) / c); break; case a.ui.keyCode.UP: case a.ui.keyCode.RIGHT: if (g === b._valueMax()) return; h = b._trimAlignValue(g + i); break; case a.ui.keyCode.DOWN: case a.ui.keyCode.LEFT: if (g === b._valueMin()) return; h = b._trimAlignValue(g - i) } b._slide(d, e, h) }).keyup(function (c) { var d = a(this).data("index.ui-slider-handle"); b._keySliding && (b._keySliding = !1, b._stop(c, d), b._change(c, d), a(this).removeClass("ui-state-active")) }), this._refreshValue(), this._animateOff = !1 }, destroy: function () { return this.handles.remove(), this.range.remove(), this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider"), this._mouseDestroy(), this }, _mouseCapture: function (b) { var c = this.options, d, e, f, g, h, i, j, k, l; return c.disabled ? !1 : (this.elementSize = { width: this.element.outerWidth(), height: this.element.outerHeight() }, this.elementOffset = this.element.offset(), d = { x: b.pageX, y: b.pageY }, e = this._normValueFromMouse(d), f = this._valueMax() - this._valueMin() + 1, h = this, this.handles.each(function (b) { var c = Math.abs(e - h.values(b)); f > c && (f = c, g = a(this), i = b) }), c.range === !0 && this.values(1) === c.min && (i += 1, g = a(this.handles[i])), j = this._start(b, i), j === !1 ? !1 : (this._mouseSliding = !0, h._handleIndex = i, g.addClass("ui-state-active").focus(), k = g.offset(), l = !a(b.target).parents().andSelf().is(".ui-slider-handle"), this._clickOffset = l ? { left: 0, top: 0} : { left: b.pageX - k.left - g.width() / 2, top: b.pageY - k.top - g.height() / 2 - (parseInt(g.css("borderTopWidth"), 10) || 0) - (parseInt(g.css("borderBottomWidth"), 10) || 0) + (parseInt(g.css("marginTop"), 10) || 0) }, this.handles.hasClass("ui-state-hover") || this._slide(b, i, e), this._animateOff = !0, !0)) }, _mouseStart: function (a) { return !0 }, _mouseDrag: function (a) { var b = { x: a.pageX, y: a.pageY }, c = this._normValueFromMouse(b); return this._slide(a, this._handleIndex, c), !1 }, _mouseStop: function (a) { return this.handles.removeClass("ui-state-active"), this._mouseSliding = !1, this._stop(a, this._handleIndex), this._change(a, this._handleIndex), this._handleIndex = null, this._clickOffset = null, this._animateOff = !1, !1 }, _detectOrientation: function () { this.orientation = this.options.orientation === "vertical" ? "vertical" : "horizontal" }, _normValueFromMouse: function (a) { var b, c, d, e, f; return this.orientation === "horizontal" ? (b = this.elementSize.width, c = a.x - this.elementOffset.left - (this._clickOffset ? this._clickOffset.left : 0)) : (b = this.elementSize.height, c = a.y - this.elementOffset.top - (this._clickOffset ? this._clickOffset.top : 0)), d = c / b, d > 1 && (d = 1), d < 0 && (d = 0), this.orientation === "vertical" && (d = 1 - d), e = this._valueMax() - this._valueMin(), f = this._valueMin() + d * e, this._trimAlignValue(f) }, _start: function (a, b) { var c = { handle: this.handles[b], value: this.value() }; return this.options.values && this.options.values.length && (c.value = this.values(b), c.values = this.values()), this._trigger("start", a, c) }, _slide: function (a, b, c) { var d, e, f; this.options.values && this.options.values.length ? (d = this.values(b ? 0 : 1), this.options.values.length === 2 && this.options.range === !0 && (b === 0 && c > d || b === 1 && c < d) && (c = d), c !== this.values(b) && (e = this.values(), e[b] = c, f = this._trigger("slide", a, { handle: this.handles[b], value: c, values: e }), d = this.values(b ? 0 : 1), f !== !1 && this.values(b, c, !0))) : c !== this.value() && (f = this._trigger("slide", a, { handle: this.handles[b], value: c }), f !== !1 && this.value(c)) }, _stop: function (a, b) { var c = { handle: this.handles[b], value: this.value() }; this.options.values && this.options.values.length && (c.value = this.values(b), c.values = this.values()), this._trigger("stop", a, c) }, _change: function (a, b) { if (!this._keySliding && !this._mouseSliding) { var c = { handle: this.handles[b], value: this.value() }; this.options.values && this.options.values.length && (c.value = this.values(b), c.values = this.values()), this._trigger("change", a, c) } }, value: function (a) { if (arguments.length) { this.options.value = this._trimAlignValue(a), this._refreshValue(), this._change(null, 0); return } return this._value() }, values: function (b, c) { var d, e, f; if (arguments.length > 1) { this.options.values[b] = this._trimAlignValue(c), this._refreshValue(), this._change(null, b); return } if (!arguments.length) return this._values(); if (!a.isArray(arguments[0])) return this.options.values && this.options.values.length ? this._values(b) : this.value(); d = this.options.values, e = arguments[0]; for (f = 0; f < d.length; f += 1) d[f] = this._trimAlignValue(e[f]), this._change(null, f); this._refreshValue() }, _setOption: function (b, c) { var d, e = 0; a.isArray(this.options.values) && (e = this.options.values.length), a.Widget.prototype._setOption.apply(this, arguments); switch (b) { case "disabled": c ? (this.handles.filter(".ui-state-focus").blur(), this.handles.removeClass("ui-state-hover"), this.handles.propAttr("disabled", !0), this.element.addClass("ui-disabled")) : (this.handles.propAttr("disabled", !1), this.element.removeClass("ui-disabled")); break; case "orientation": this._detectOrientation(), this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-" + this.orientation), this._refreshValue(); break; case "value": this._animateOff = !0, this._refreshValue(), this._change(null, 0), this._animateOff = !1; break; case "values": this._animateOff = !0, this._refreshValue(); for (d = 0; d < e; d += 1) this._change(null, d); this._animateOff = !1 } }, _value: function () { var a = this.options.value; return a = this._trimAlignValue(a), a }, _values: function (a) { var b, c, d; if (arguments.length) return b = this.options.values[a], b = this._trimAlignValue(b), b; c = this.options.values.slice(); for (d = 0; d < c.length; d += 1) c[d] = this._trimAlignValue(c[d]); return c }, _trimAlignValue: function (a) { if (a <= this._valueMin()) return this._valueMin(); if (a >= this._valueMax()) return this._valueMax(); var b = this.options.step > 0 ? this.options.step : 1, c = (a - this._valueMin()) % b, d = a - c; return Math.abs(c) * 2 >= b && (d += c > 0 ? b : -b), parseFloat(d.toFixed(5)) }, _valueMin: function () { return this.options.min }, _valueMax: function () { return this.options.max }, _refreshValue: function () { var b = this.options.range, c = this.options, d = this, e = this._animateOff ? !1 : c.animate, f, g = {}, h, i, j, k; this.options.values && this.options.values.length ? this.handles.each(function (b, i) { f = (d.values(b) - d._valueMin()) / (d._valueMax() - d._valueMin()) * 100, g[d.orientation === "horizontal" ? "left" : "bottom"] = f + "%", a(this).stop(1, 1)[e ? "animate" : "css"](g, c.animate), d.options.range === !0 && (d.orientation === "horizontal" ? (b === 0 && d.range.stop(1, 1)[e ? "animate" : "css"]({ left: f + "%" }, c.animate), b === 1 && d.range[e ? "animate" : "css"]({ width: f - h + "%" }, { queue: !1, duration: c.animate })) : (b === 0 && d.range.stop(1, 1)[e ? "animate" : "css"]({ bottom: f + "%" }, c.animate), b === 1 && d.range[e ? "animate" : "css"]({ height: f - h + "%" }, { queue: !1, duration: c.animate }))), h = f }) : (i = this.value(), j = this._valueMin(), k = this._valueMax(), f = k !== j ? (i - j) / (k - j) * 100 : 0, g[d.orientation === "horizontal" ? "left" : "bottom"] = f + "%", this.handle.stop(1, 1)[e ? "animate" : "css"](g, c.animate), b === "min" && this.orientation === "horizontal" && this.range.stop(1, 1)[e ? "animate" : "css"]({ width: f + "%" }, c.animate), b === "max" && this.orientation === "horizontal" && this.range[e ? "animate" : "css"]({ width: 100 - f + "%" }, { queue: !1, duration: c.animate }), b === "min" && this.orientation === "vertical" && this.range.stop(1, 1)[e ? "animate" : "css"]({ height: f + "%" }, c.animate), b === "max" && this.orientation === "vertical" && this.range[e ? "animate" : "css"]({ height: 100 - f + "%" }, { queue: !1, duration: c.animate })) } }), a.extend(a.ui.slider, { version: "1.8.22" }) })(jQuery); ;

/*tablet pc touch support*/
(function (a) { a.support.touch = "ontouchstart" in window; if (!a.support.touch) { return } var b = a.ui.mouse.prototype, c = b._mouseInit; a.extend(b, { _mouseInit: function () { this.element.bind("touchstart." + this.widgetName, a.proxy(this, "_touchStart")); c.apply(this, arguments) }, _touchStart: function (b) { if (b.originalEvent.targetTouches.length != 1) { return false } this.element.bind("touchmove." + this.widgetName, a.proxy(this, "_touchMove")).bind("touchend." + this.widgetName, a.proxy(this, "_touchEnd")); this._modifyEvent(b); a(document).trigger(a.Event("mouseup")); this._mouseDown(b); return false }, _touchMove: function (a) { this._modifyEvent(a); this._mouseMove(a) }, _touchEnd: function (a) { this.element.unbind("touchmove." + this.widgetName).unbind("touchend." + this.widgetName); this._mouseUp(a) }, _modifyEvent: function (a) { a.which = 1; var b = a.originalEvent.targetTouches[0]; a.pageX = b.clientX; a.pageY = b.clientY } }) })(jQuery);
/*tablet pc touch gestures support 1.1.1*/
(function (a) { a.fn.touchwipe = function (c) { var b = { min_move_x: 20, min_move_y: 20, wipeLeft: function () { }, wipeRight: function () { }, wipeUp: function () { }, wipeDown: function () { }, preventDefaultEvents: true }; if (c) { a.extend(b, c) } this.each(function () { var e; var d; var i = false; function h() { this.removeEventListener("touchmove", f); e = null; i = false } function f(m) { if (b.preventDefaultEvents) { m.preventDefault() } if (i) { var j = m.touches[0].pageX; var n = m.touches[0].pageY; var l = e - j; var k = d - n; if (Math.abs(l) >= b.min_move_x) { h(); if (l > 0) { b.wipeLeft() } else { b.wipeRight() } } else { if (Math.abs(k) >= b.min_move_y) { h(); if (k > 0) { b.wipeDown() } else { b.wipeUp() } } } } } function g(j) { if (j.touches.length == 1) { e = j.touches[0].pageX; d = j.touches[0].pageY; i = true; this.addEventListener("touchmove", f, false) } } if ("ontouchstart" in document.documentElement) { this.addEventListener("touchstart", g, false) } }); return this } })(jQuery);

/*jQuery marquee*/
(function (e) { e.fn.marquee = function (t) { return this.each(function () { var n = e.extend({}, e.fn.marquee.defaults, t), r = e(this), i, s, o, u, a, f = 3, l = "animation-play-state", c = false, h = function (e, t, n) { var r = ["webkit", "moz", "MS", "o", ""]; for (var i = 0; i < r.length; i++) { if (!r[i]) t = t.toLowerCase(); e.addEventListener(r[i] + t, n, false) } }, p = function (e) { var t = []; for (var n in e) { if (e.hasOwnProperty(n)) { t.push(n + ":" + e[n]) } } t.push(); return "{" + t.join(",") + "}" }, d = function () { r.timer = setTimeout(M, n.delayBeforeStart) }, v = { pause: function () { if (c && n.allowCss3Support) { i.css(l, "paused") } else { if (e.fn.pause) { i.pause() } } r.data("runningStatus", "paused"); r.trigger("paused") }, resume: function () { if (c && n.allowCss3Support) { i.css(l, "running") } else { if (e.fn.resume) { i.resume() } } r.data("runningStatus", "resumed"); r.trigger("resumed") }, toggle: function () { v[r.data("runningStatus") == "resumed" ? "pause" : "resume"]() }, destroy: function () { clearTimeout(r.timer); r.find("*").andSelf().unbind(); r.html(r.find(".js-marquee:first").html()) } }; if (typeof t === "string") { if (e.isFunction(v[t])) { if (!i) { i = r.find(".js-marquee-wrapper") } if (r.data("css3AnimationIsSupported") === true) { c = true } v[t]() } return } var m = {}, g; e.each(n, function (e, t) { g = r.attr("data-" + e); if (typeof g !== "undefined") { switch (g) { case "true": g = true; break; case "false": g = false; break } n[e] = g } }); n.duration = n.speed || n.duration; u = n.direction == "up" || n.direction == "down"; n.gap = n.duplicated ? parseInt(n.gap) : 0; r.wrapInner('

'); var y = r.find(".js-marquee").css({ "margin-right": n.gap, "float": "left" }); if (n.duplicated) { y.clone(true).appendTo(r) } r.wrapInner('

'); i = r.find(".js-marquee-wrapper"); if (u) { var b = r.height(); i.removeAttr("style"); r.height(b); r.find(".js-marquee").css({ "float": "none", "margin-bottom": n.gap, "margin-right": 0 }); if (n.duplicated) r.find(".js-marquee:last").css({ "margin-bottom": 0 }); var w = r.find(".js-marquee:first").height() + n.gap; n.duration = (parseInt(w, 10) + parseInt(b, 10)) / parseInt(b, 10) * n.duration } else { a = r.find(".js-marquee:first").width() + n.gap; s = r.width(); n.duration = (parseInt(a, 10) + parseInt(s, 10)) / parseInt(s, 10) * n.duration } if (n.duplicated) { n.duration = n.duration / 2 } if (n.allowCss3Support) { var E = document.body || document.createElement("div"), S = "marqueeAnimation-" + Math.floor(Math.random() * 1e7), x = "Webkit Moz O ms Khtml".split(" "), T = "animation", N = "", C = ""; if (E.style.animation) { C = "@keyframes " + S + " "; c = true } if (c === false) { for (var k = 0; k < x.length; k++) { if (E.style[x[k] + "AnimationName"] !== undefined) { var L = "-" + x[k].toLowerCase() + "-"; T = L + T; l = L + l; C = "@" + L + "keyframes " + S + " "; c = true; break } } } if (c) { N = S + " " + n.duration / 1e3 + "s " + n.delayBeforeStart / 1e3 + "s infinite " + n.css3easing; r.data("css3AnimationIsSupported", true) } } var A = function () { i.css("margin-top", n.direction == "up" ? b + "px" : "-" + w + "px") }, O = function () { i.css("margin-left", n.direction == "left" ? s + "px" : "-" + a + "px") }; if (n.duplicated) { if (u) { i.css("margin-top", n.direction == "up" ? b : "-" + (w * 2 - n.gap) + "px") } else { i.css("margin-left", n.direction == "left" ? s + "px" : "-" + (a * 2 - n.gap) + "px") } f = 1 } else { if (u) { A() } else { O() } } var M = function () { if (n.duplicated) { if (f === 1) { n._originalDuration = n.duration; if (u) { n.duration = n.direction == "up" ? n.duration + b / (w / n.duration) : n.duration * 2 } else { n.duration = n.direction == "left" ? n.duration + s / (a / n.duration) : n.duration * 2 } if (N) { N = S + " " + n.duration / 1e3 + "s " + n.delayBeforeStart / 1e3 + "s " + n.css3easing } f++ } else if (f === 2) { n.duration = n._originalDuration; if (N) { S = S + "0"; C = e.trim(C) + "0 "; N = S + " " + n.duration / 1e3 + "s 0s infinite " + n.css3easing } f++ } } if (u) { if (n.duplicated) { if (f > 2) { i.css("margin-top", n.direction == "up" ? 0 : "-" + w + "px") } o = { "margin-top": n.direction == "up" ? "-" + w + "px" : 0} } else { A(); o = { "margin-top": n.direction == "up" ? "-" + i.height() + "px" : b + "px"} } } else { if (n.duplicated) { if (f > 2) { i.css("margin-left", n.direction == "left" ? 0 : "-" + a + "px") } o = { "margin-left": n.direction == "left" ? "-" + a + "px" : 0} } else { O(); o = { "margin-left": n.direction == "left" ? "-" + a + "px" : s + "px"} } } r.trigger("beforeStarting"); if (c) { i.css(T, N); var t = C + " { 100% " + p(o) + "}", l = e("style"); if (l.length !== 0) { l.filter(":last").append(t) } else { e("head").append("

") } h(i[0], "AnimationIteration", function () { r.trigger("finished") }); h(i[0], "AnimationEnd", function () { M(); r.trigger("finished") }) } else { i.animate(o, n.duration, n.easing, function () { r.trigger("finished"); if (n.pauseOnCycle) { d() } else { M() } }) } r.data("runningStatus", "resumed") }; r.bind("pause", v.pause); r.bind("resume", v.resume); if (n.pauseOnHover) { r.bind("mouseenter mouseleave", v.toggle) } if (c && n.allowCss3Support) { M() } else { d() } }) }; e.fn.marquee.defaults = { allowCss3Support: true, css3easing: "linear", easing: "linear", delayBeforeStart: 1e3, direction: "left", duplicated: false, duration: 5e3, gap: 20, pauseOnCycle: false, pauseOnHover: false} })(jQuery);

/*----------------- HTML MediaViewer --------------------------------*/

var aLargePhotos = new Array();

aLargePhotos[1] = new Image();
aLargePhotos[1].src = 'http://1-photos2.ebizautos.com/1769/15999182/15999182_1.jpg';

aLargePhotos[2] = new Image();
aLargePhotos[2].src = 'http://2-photos2.ebizautos.com/1769/15999182/15999182_2.jpg';

aLargePhotos[3] = new Image();
aLargePhotos[3].src = 'http://3-photos2.ebizautos.com/1769/15999182/15999182_3.jpg';

aLargePhotos[4] = new Image();
aLargePhotos[4].src = 'http://4-photos2.ebizautos.com/1769/15999182/15999182_4.jpg';

aLargePhotos[5] = new Image();
aLargePhotos[5].src = 'http://1-photos2.ebizautos.com/1769/15999182/15999182_5.jpg';

aLargePhotos[6] = new Image();
aLargePhotos[6].src = 'http://2-photos2.ebizautos.com/1769/15999182/15999182_6.jpg';

aLargePhotos[7] = new Image();
aLargePhotos[7].src = 'http://3-photos2.ebizautos.com/1769/15999182/15999182_7.jpg';

aLargePhotos[8] = new Image();
aLargePhotos[8].src = 'http://4-photos2.ebizautos.com/1769/15999182/15999182_8.jpg';

aLargePhotos[9] = new Image();
aLargePhotos[9].src = 'http://1-photos2.ebizautos.com/1769/15999182/15999182_9.jpg';

aLargePhotos[10] = new Image();
aLargePhotos[10].src = 'http://2-photos2.ebizautos.com/1769/15999182/15999182_10.jpg';

aLargePhotos[11] = new Image();
aLargePhotos[11].src = 'http://3-photos2.ebizautos.com/1769/15999182/15999182_11.jpg';

aLargePhotos[12] = new Image();
aLargePhotos[12].src = 'http://4-photos2.ebizautos.com/1769/15999182/15999182_12.jpg';

aLargePhotos[13] = new Image();
aLargePhotos[13].src = 'http://1-photos2.ebizautos.com/1769/15999182/15999182_13.jpg';

aLargePhotos[14] = new Image();
aLargePhotos[14].src = 'http://2-photos2.ebizautos.com/1769/15999182/15999182_14.jpg';

aLargePhotos[15] = new Image();
aLargePhotos[15].src = 'http://3-photos2.ebizautos.com/1769/15999182/15999182_15.jpg';

aLargePhotos[16] = new Image();
aLargePhotos[16].src = 'http://4-photos2.ebizautos.com/1769/15999182/15999182_16.jpg';

aLargePhotos[17] = new Image();
aLargePhotos[17].src = 'http://1-photos2.ebizautos.com/1769/15999182/15999182_17.jpg';

aLargePhotos[18] = new Image();
aLargePhotos[18].src = 'http://2-photos2.ebizautos.com/1769/15999182/15999182_18.jpg';

aLargePhotos[19] = new Image();
aLargePhotos[19].src = 'http://3-photos2.ebizautos.com/1769/15999182/15999182_19.jpg';

aLargePhotos[20] = new Image();
aLargePhotos[20].src = 'http://4-photos2.ebizautos.com/1769/15999182/15999182_20.jpg';

aLargePhotos[21] = new Image();
aLargePhotos[21].src = 'http://1-photos2.ebizautos.com/1769/15999182/15999182_21.jpg';

aLargePhotos[22] = new Image();
aLargePhotos[22].src = 'http://2-photos2.ebizautos.com/1769/15999182/15999182_22.jpg';

aLargePhotos[23] = new Image();
aLargePhotos[23].src = 'http://3-photos2.ebizautos.com/1769/15999182/15999182_23.jpg';

aLargePhotos[24] = new Image();
aLargePhotos[24].src = 'http://4-photos2.ebizautos.com/1769/15999182/15999182_24.jpg';

aLargePhotos[25] = new Image();
aLargePhotos[25].src = 'http://1-photos2.ebizautos.com/1769/15999182/15999182_25.jpg';

aLargePhotos[26] = new Image();
aLargePhotos[26].src = 'http://2-photos2.ebizautos.com/1769/15999182/15999182_26.jpg';

aLargePhotos[27] = new Image();
aLargePhotos[27].src = 'http://3-photos2.ebizautos.com/1769/15999182/15999182_27.jpg';

aLargePhotos[28] = new Image();
aLargePhotos[28].src = 'http://4-photos2.ebizautos.com/1769/15999182/15999182_28.jpg';

aLargePhotos[29] = new Image();
aLargePhotos[29].src = 'http://1-photos2.ebizautos.com/1769/15999182/15999182_29.jpg';

aLargePhotos[30] = new Image();
aLargePhotos[30].src = 'http://2-photos2.ebizautos.com/1769/15999182/15999182_30.jpg';

aLargePhotos[31] = new Image();
aLargePhotos[31].src = 'http://3-photos2.ebizautos.com/1769/15999182/15999182_31.jpg';

aLargePhotos[32] = new Image();
aLargePhotos[32].src = 'http://4-photos2.ebizautos.com/1769/15999182/15999182_32.jpg';

aLargePhotos[33] = new Image();
aLargePhotos[33].src = 'http://1-photos2.ebizautos.com/1769/15999182/15999182_33.jpg';

aLargePhotos[34] = new Image();
aLargePhotos[34].src = 'http://2-photos2.ebizautos.com/1769/15999182/15999182_34.jpg';

aLargePhotos[35] = new Image();
aLargePhotos[35].src = 'http://3-photos2.ebizautos.com/1769/15999182/15999182_35.jpg';

aLargePhotos[36] = new Image();
aLargePhotos[36].src = 'http://4-photos2.ebizautos.com/1769/15999182/15999182_36.jpg';

aLargePhotos[37] = new Image();
aLargePhotos[37].src = 'http://1-photos2.ebizautos.com/1769/15999182/15999182_37.jpg';

aLargePhotos[38] = new Image();
aLargePhotos[38].src = 'http://4-images.ebizautos.com/sites/1769/default_vehicle_images/image_01_640.jpg';

aLargePhotos[39] = new Image();
aLargePhotos[39].src = 'http://1-images.ebizautos.com/sites/1769/default_vehicle_images/f59d564aeb_640.jpg';

aLargePhotos[40] = new Image();
aLargePhotos[40].src = 'http://2-images.ebizautos.com/sites/1769/default_vehicle_images/f5eed11def_640.jpg';

aLargePhotos[41] = new Image();
aLargePhotos[41].src = 'http://3-images.ebizautos.com/sites/1769/default_vehicle_images/f62f4ff001_640.jpg';

aLargePhotos[42] = new Image();
aLargePhotos[42].src = 'http://4-images.ebizautos.com/sites/1769/default_vehicle_images/f5f142699f_640.jpg';

aLargePhotos[43] = new Image();
aLargePhotos[43].src = 'http://1-images.ebizautos.com/sites/1769/default_vehicle_images/image_02_640.jpg';

aLargePhotos[44] = new Image();
aLargePhotos[44].src = 'http://2-images.ebizautos.com/sites/1769/default_vehicle_images/image_03_640.jpg';

aLargePhotos[45] = new Image();
aLargePhotos[45].src = 'http://3-images.ebizautos.com/sites/1769/default_vehicle_images/f60f3164d8_640.jpg';

aLargePhotos[46] = new Image();
aLargePhotos[46].src = 'http://4-images.ebizautos.com/sites/1769/default_vehicle_images/image_04_640.jpg';

aLargePhotos[47] = new Image();
aLargePhotos[47].src = 'http://1-images.ebizautos.com/sites/1769/default_vehicle_images/image_05_640.jpg';

aLargePhotos[48] = new Image();
aLargePhotos[48].src = 'http://2-images.ebizautos.com/sites/1769/default_vehicle_images/f600a524f6_640.jpg';

aLargePhotos[49] = new Image();
aLargePhotos[49].src = 'http://3-images.ebizautos.com/sites/1769/default_vehicle_images/f6236fd9ca_640.jpg';

aLargePhotos[50] = new Image();
aLargePhotos[50].src = 'http://4-images.ebizautos.com/sites/1769/default_vehicle_images/image_06_640.jpg';

aLargePhotos[51] = new Image();
aLargePhotos[51].src = 'http://1-images.ebizautos.com/sites/1769/default_vehicle_images/image_07_640.jpg';

aLarge = aLargePhotos;

function ebizautos(thumbs) {
if (aLarge[thumbs] != null)
document.images['large'].src = aLarge[thumbs].src;
}

var _slider;
var _selectedPhotoid;
var _selectedVideoid = 1;
var _timeout;
var _calculatedPhotoCount;

/*--------------- Emulate obsolete function in jquery 1.10.2 ticket #93395 ---------*/
/*------------------emulate old function $.browser Start------------------*/
if (!$.browser) {
$.browser = {
chrome: false,
mozilla: false,
opera: false,
msie: false,
safari: false
};
var ua = navigator.userAgent;
$.each($.browser, function (c, a) {
$.browser[c] = ((new RegExp(c, 'i').test(ua))) ? true : false;
if ($.browser.mozilla && c == 'mozilla') {
$.browser.mozilla = ((new RegExp('firefox', 'i').test(ua))) ? true : false;
};
if ($.browser.chrome && c == 'safari') {
$.browser.safari = false;
};
});
};

/* $.browser.version for IE only*/
if (navigator.appName == 'Microsoft Internet Explorer') {
var rv = -1;
var ua = navigator.userAgent;
var re = new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");
if (re.exec(ua) != null)
rv = parseInt(RegExp.$1);
if (rv != -1)
$.browser.version = rv;
} else if (navigator.appName == 'Netscape') { /*detect IE 11*/
var rv = -1;
var ua = navigator.userAgent;
var re = new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})");
if (re.exec(ua) != null)
rv = parseInt(RegExp.$1);
if (rv != -1) {
$.browser.version = rv;
$.browser.msie = true;
}
}
/*------------------emulate old function End------------------*/

function ChangeTabInfo (id, idHover) {
$('.' + id).css('display', 'none');
$('.' + idHover).css('display', 'block');
}

function ChangeMediaViewerNavInfo(id) {
if ($('.PhotoInfoList' + id).css('display') == 'none') {
$('.PhotoInfoList' + id).css('display', 'block');
$('.VideoInfoList' + id).css('display', 'none');
StopVideo();
} else {
$('.PhotoInfoList' + id).css('display', 'none');
$('.VideoInfoList' + id).css('display', 'block');
}
}

function IsNumeric (str) {
return /^[-+]?d{1,14}(.d{1,4})?$/.test(str);
}

(function($){
$.fn.thumbnailSlider = function(_options) {
var _self = this;

var _ScrollBar = null;
var _timer;

var _defaults = {
oriental: "vertical",
sliderArea: 0,
verticalSlideHeight: 0,
horizontalSlideWidth: 0,
firstImgId: 1
};

var _options = $.extend(_defaults, _options);

if(_options.oriental == "vertical") {
_ScrollBar = $("#Slider").slider({
slide: function(event, ui){
_self.StopPlay();
$('#PhotoList').animate({
marginTop: -(_options.sliderArea - ui.value)
}, 0
);
},
orientation: 'vertical',
min: 0,
max: _options.sliderArea,
value: _options.sliderArea
});
}

if(_options.oriental == "horizontal") {
_ScrollBar = $("#Slider").slider({
slide: function(event, ui){
_self.StopPlay();
$('#PhotoList').animate({
left: -ui.value
}, 0
);
},
orientation: 'horizontal',
min: 0,
max: _options.sliderArea,
value: 0
});
}

$(".MediaTab").mousedown(function () {
_self.StopPlay();
});
$("#FullSizeLink").mousedown(function () {
_self.StopPlay();
});

$(".UpButton").mousedown(function () {
_self.StopPlay();
_self.ChangePlayerButton('UpBtn', 'UpBtnHover');
if(_options.sliderArea > 0) {
_ScrollBar.slider("value", _options.sliderArea + _self.MoveDownPhotoListByButton());
}
}).mouseup(function () {
_timer = setTimeout(function () {
_self.ChangePlayerButton('UpBtnHover', 'UpBtn');
}, 500);
});

$(".DownButton").mousedown(function () {
_self.StopPlay();
_self.ChangePlayerButton('DownBtn', 'DownBtnHover');
if(_options.sliderArea > 0) {
_ScrollBar.slider("value", _options.sliderArea + _self.MoveUpPhotoListByButton());
}
}).mouseup(function () {
_timer = setTimeout(function () {
_self.ChangePlayerButton('DownBtnHover', 'DownBtn');
}, 500);
});

$(".LeftButton").mousedown(function () {
_self.StopPlay();
_self.ChangePlayerButton('LeftBtn', 'LeftBtnHover');
if(_options.sliderArea > 0) {
_ScrollBar.slider("value", _self.MoveLeftPhotoListByButton());
}
}).mouseup(function () {
_timer = setTimeout(function () {
_self.ChangePlayerButton('LeftBtnHover', 'LeftBtn');
}, 500);
});

$(".RightButton").mousedown(function () {
_self.StopPlay();
_self.ChangePlayerButton('RightBtn', 'RightBtnHover');
if(_options.sliderArea > 0) {
_ScrollBar.slider("value", _self.MoveRightPhotoListByButton());
}
}).mouseup(function () {
_timer = setTimeout(function () {
_self.ChangePlayerButton('RightBtnHover', 'RightBtn');
}, 500);
});

$(".PlayerButtonPauseOuter").mousedown(function () {
clearInterval(_timeout);
$(".PlayerButtonPause").addClass("PlayerButtonPauseHover");
}).mouseup(function () {
_timer = setTimeout(function () {
$(".PlayerButtonPause").removeClass("PlayerButtonPauseHover");
$(".PlayerButtonPauseOuter").css('display','none');
$(".PlayerButtonPlayOuter").css('display','block');
}, 500);
});

$(".PlayerButtonPlayOuter").mousedown(function () {
_timeout = setInterval(function() {_slider.ChangeBigPhoto2(_selectedPhotoid > _calculatedPhotoCount ? _options.firstImgId : _selectedPhotoid + 1);}, 5000);
$(".PlayerButtonPlay").addClass("PlayerButtonPlayHover");
}).mouseup(function () {
_timer = setTimeout(function () {
$(".PlayerButtonPlay").removeClass("PlayerButtonPlayHover");
$(".PlayerButtonPlayOuter").css('display','none');
$(".PlayerButtonPauseOuter").css('display','block');
}, 500);
});

$(".PlayerButtonNextOuter").mousedown(function () {
_self.StopPlay();
$(".PlayerButtonNext").addClass("PlayerButtonNextHover");
_self.ChangeBigPhoto2(_selectedPhotoid > _calculatedPhotoCount ? _options.firstImgId : _selectedPhotoid + 1);
}).mouseup(function () {
_timer = setTimeout(function () {
$(".PlayerButtonNext").removeClass("PlayerButtonNextHover");
}, 500);
});

$(".PlayerButtonPrewOuter").mousedown(function () {
_self.StopPlay();
$(".PlayerButtonPrew").addClass("PlayerButtonPrewHover");
_self.ChangeBigPhoto2(_selectedPhotoid == _options.firstImgId ? _calculatedPhotoCount + 1 : _selectedPhotoid - 1);
}).mouseup(function () {
_timer = setTimeout(function () {
$(".PlayerButtonPrew").removeClass("PlayerButtonPrewHover");
}, 500);
});

$(".ContentPhotoTab1SmallPhoto").mousedown(function () {
_self.StopPlay();
_self.ChangeBigPhoto(this);
});

_self.StopPlay = function () {
clearInterval(_timeout);
$(".PlayerButtonPauseOuter").css('display','none');
$(".PlayerButtonPlayOuter").css('display','block');
};

_self.ChangePlayerButton = function (id, idHover) {
$('#' + id).css('display', 'none');
$('#' + idHover).css('display', 'block');
};

_self.ChangeBigPhoto = function (obj) {
var src = aLarge[obj.id].src;
$('#ImgFaceSelected' + obj.id).css('display', 'block');
$('#ImgFaceSelected' + _selectedPhotoid).css('display', 'none');
_selectedPhotoid = parseInt(obj.id);
$('#BigPhoto').fadeOut(300,function(){$('#BigPhoto').attr('src', src).fadeIn(300)});
$('#CurrentPhotoNum').html(_selectedPhotoid + 1 - _options.firstImgId);
_self.MovePhotoList(obj.id);
};

_self.ChangeBigPhoto2 = function (id) {
var src = aLarge[id].src;
$('#ImgFaceSelected' + id).css('display', 'block');
$('#ImgFaceSelected' + _selectedPhotoid).css('display', 'none');
_selectedPhotoid = parseInt(id);
$('#BigPhoto').fadeOut(300,function(){$('#BigPhoto').attr('src', src).fadeIn(300)});
$('#CurrentPhotoNum').html(_selectedPhotoid + 1 - _options.firstImgId );
_self.MovePhotoList(id);
};

_self.MovePhotoList = function (id) {
if(_options.oriental == "vertical") {
var currentPhotoTop = parseInt($('#ImgFaceSelected' + id).css('top'));
var currentPhotoBottom = parseInt($('#ImgFaceSelected' + id).css('top')) + 80;
var currentPhotoListMargin = parseInt($('#PhotoList').css('margin-top'));
var currentPhotoListTop = 0 - currentPhotoListMargin;
var currentPhotoListBottom = _options.verticalSlideHeight - currentPhotoListMargin;
var margin;

if (currentPhotoListTop > currentPhotoTop) {
margin = currentPhotoListMargin + currentPhotoListTop - currentPhotoTop;
} else if (currentPhotoBottom > currentPhotoListBottom) {
margin = currentPhotoListMargin + currentPhotoListBottom - currentPhotoBottom;
}
if (margin != null) {
$('#PhotoList').animate({
marginTop: margin
}, 1200
);
_ScrollBar.slider("value", _options.sliderArea + margin);
}
}
if(_options.oriental == "horizontal") {
var currentPhotoLeft = parseInt($('#ImgFaceSelected' + id).css('left'));
var currentPhotoRight = currentPhotoLeft + 107;
var currentPhotoListMargin = parseInt($('#PhotoList').css('left'));
var currentPhotoListLeft = 0 - currentPhotoListMargin;
var currentPhotoListRight = currentPhotoListLeft + _options.horizontalSlideWidth;
var margin;

if (currentPhotoRight > currentPhotoListRight) {
margin = currentPhotoListMargin + currentPhotoListRight - currentPhotoRight;
} else if (currentPhotoLeft < currentPhotoListLeft) { margin = currentPhotoListMargin + currentPhotoListLeft - currentPhotoLeft; } if (margin != null) { $('#PhotoList').animate({ left: margin }, 1200 ); _ScrollBar.slider("value", -margin); } } }; _self.MoveUpPhotoListByButton = function () { var photoListLenght = parseInt($('#PhotoList').css('height')); var currentPhotoListMargin = parseInt($('#PhotoList').css('margin-top')); var currentPhotoListTop = 0 - currentPhotoListMargin; var currentPhotoListBottom = _options.verticalSlideHeight - currentPhotoListMargin; if (photoListLenght - currentPhotoListBottom > 85) {
currentPhotoListMargin = currentPhotoListMargin - 85;
} else {
currentPhotoListMargin = _options.verticalSlideHeight - photoListLenght;
}

$('#PhotoList').animate({
marginTop: currentPhotoListMargin
}, 600
);
return currentPhotoListMargin;
};

_self.MoveDownPhotoListByButton = function () {
var photoListLenght = parseInt($('#PhotoList').css('height'));
var currentPhotoListMargin = parseInt($('#PhotoList').css('margin-top'));
var currentPhotoListTop = 0 - currentPhotoListMargin;
var currentPhotoListBottom = _options.verticalSlideHeight - currentPhotoListMargin;

if (currentPhotoListTop - 85 > 0) {
currentPhotoListMargin = currentPhotoListMargin + 85;
} else {
currentPhotoListMargin = 0;
}

$('#PhotoList').animate({
marginTop: currentPhotoListMargin
}, 600
);
return currentPhotoListMargin;
};

_self.MoveLeftPhotoListByButton = function () {
var photoListLenght = parseInt($('#PhotoList').css('width')) - 5;
var currentPhotoListMargin = parseInt($('#PhotoList').css('left'));
var photoListVisible = parseInt($('.ContentPhotoTab3PhotoListOuter').css('width'));

if (currentPhotoListMargin < -112) { currentPhotoListMargin = currentPhotoListMargin + 112; } else { currentPhotoListMargin = 0; } $('#PhotoList').animate({ left: currentPhotoListMargin }, 600 ); return -currentPhotoListMargin; }; _self.MoveRightPhotoListByButton = function () { var photoListLenght = parseInt($('#PhotoList').css('width')) - 5; var currentPhotoListMargin = parseInt($('#PhotoList').css('left')); var photoListVisible = parseInt($('.ContentPhotoTab3PhotoListOuter').css('width')); if (photoListLenght + currentPhotoListMargin - 5 >= photoListVisible + 112) {
currentPhotoListMargin = currentPhotoListMargin - 112;
} else {
currentPhotoListMargin = currentPhotoListMargin + (photoListVisible - (photoListLenght + currentPhotoListMargin));
}

$('#PhotoList').animate({
left: currentPhotoListMargin
}, 600
);
return -currentPhotoListMargin;
};

return this;
}
})(jQuery);

/*--------------------------*/
function onTabLinkClick(n, count, id, callbackFunction) {
StopYouTubeVideo();
$('#' + id + n + 's').show();
$('#' + id + n).hide();
$('#' + id + n + 'Content').show();
var tabSelected, divSelected;
for (tabSelected = 1; tabSelected <= count; tabSelected++) { if (tabSelected != n) { divSelected = $('#' + id + tabSelected + 's')[0]; if (divSelected != null && divSelected.style.display != 'none') { $('#' + id + tabSelected + 's').hide(); $('#' + id + tabSelected).show(); $('#' + id + tabSelected + 'Content').hide(); } } } if (callbackFunction && jQuery.isFunction(callbackFunction)) { callbackFunction(n, count, id); } } var _selectedVehicleVideo = 1; function ChangeVehicleVideo(countFlash, countYouTube, id) { if (!id) id = 1; for (var i = 1; i <= countFlash + countYouTube; i++) { if (i == id) { $('#VideoFaceSelected' + i).show(); } else { $('#VideoFaceSelected' + i).hide(); } } _selectedVehicleVideo = id; var sender; if ($.browser.msie && $.browser.version < 11) { sender = window.auctionvideo; } else { sender = window.document.auctionvideoembed; } try{ StopYouTubeVideo(); } catch (ex){}; if(countFlash > 0 && id <= countFlash) { $('#auctionvideo').show(); $('.youtubevideo').hide(); try { setTimeout(function() { /* fix for FF,Saf,Chr*/ sender.indexvideojs(id); }, 500); } catch (ex) { } } else if(countYouTube > 0 && id > countFlash) {
try {
sender.stopvideojs();
} catch (ex) { }
$('#auctionvideo').hide();
$('.youtubevideo').hide();
$('#youtubevideo' + id).show();
}
}

function PrevVehicleVideo(countFlash, countYouTube) {
var count = countFlash + countYouTube;
if (count > 1) {
if (_selectedVehicleVideo <= 1) { ChangeVehicleVideo(countFlash, countYouTube, count); _selectedVehicleVideo = count; } else { _selectedVehicleVideo = _selectedVehicleVideo - 1; ChangeVehicleVideo(countFlash, countYouTube, _selectedVehicleVideo); } } else { return false; } } function NextVehicleVideo(countFlash, countYouTube) { var count = countFlash + countYouTube; if (count > 1) {
if (_selectedVehicleVideo >= count) {
ChangeVehicleVideo(countFlash, countYouTube, 1);
_selectedVehicleVideo = 1;
} else {
_selectedVehicleVideo = _selectedVehicleVideo + 1;
ChangeVehicleVideo(countFlash, countYouTube, _selectedVehicleVideo);
}
} else {
return false;
}
}

function StopVideo() {
var sender;
if ($.browser.msie && $.browser.version < 11) { sender = window.auctionvideo; } else { sender = window.document.auctionvideoembed; } try { sender.stopvideojs(); } catch (ex) { } } function StopYouTubeVideo() { $(".youtubevideo embed").each(function( index ) { if($(this).is(":visible")) { $(this)[0].stopVideo(); } }); } function AuctionSlider(correctImageNumber, sliderLength, numberOfPhotos, slideAreaMask, orientation, hasToHideFirstImage) { if (hasToHideFirstImage) { aLarge.splice(0, 1); } var firstImgId = _selectedPhotoid = correctImageNumber; var slideArea = parseInt($('#PhotoList').css('width')) - slideAreaMask; _calculatedPhotoCount = numberOfPhotos + firstImgId - 2; if (orientation == "horizontal") { _slider = $("#Slider").thumbnailSlider({ oriental: orientation, sliderArea: slideArea > 0 ? slideArea : 0,
firstImgId: firstImgId,
horizontalSlideWidth: sliderLength
});
} else {
_slider = $("#Slider").thumbnailSlider({
oriental: orientation,
sliderArea: slideArea > 0 ? slideArea : 0,
firstImgId: firstImgId,
verticalSlideHeight: sliderLength
});
}

if (_slider != null && _calculatedPhotoCount > 0) {
_timeout = setInterval(function () { _slider.ChangeBigPhoto2(_selectedPhotoid > _calculatedPhotoCount ? firstImgId : _selectedPhotoid + 1); }, 5000);
}
}

function ChangePhotoSize(objectId) {
var constWidthImg = 640;
var constHeightImg = 425;
var obj = $('#' + objectId);
obj.load(function () {
$(this).removeAttr("width").removeAttr("height").css({ width: "", height: "" });

if ($(this).width() > constWidthImg && $(this).height() <= constHeightImg) { $(this).width(constWidthImg); } else if ($(this).width() <= constWidthImg && $(this).height() > constHeightImg) {
$(this).height(constHeightImg);
} else { }
});
}

$(document).ready(function () {
$('.ScrollingText').marquee({
duration: 12500,
pauseOnHover: true
});

$('.ScrollingTextVehicleOverview').marquee({
duration: 12500,
pauseOnHover: false
});
});

Counter Provided by eBizAutos.com

Counter Provided by eBizAutos.com

Category
No Feedback Received