﻿/// <reference path="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.6.4-vsdoc.js" />
(function () { var e = jQuery, f = "jQuery.pause", d = 1, b = e.fn.animate, a = {}; function c() { return new Date().getTime() } e.fn.animate = function (k, h, j, i) { var g = e.speed(h, j, i); g.complete = g.old; return this.each(function () { if (!this[f]) { this[f] = d++ } var l = e.extend({}, g); b.apply(e(this), [k, e.extend({}, l)]); a[this[f]] = { run: true, prop: k, opt: l, start: c(), done: 0} }) }; e.fn.pause = function () { return this.each(function () { if (!this[f]) { this[f] = d++ } var g = a[this[f]]; if (g && g.run) { g.done += c() - g.start; if (g.done > g.opt.duration) { delete a[this[f]] } else { e(this).stop(); g.run = false } } }) }; e.fn.resume = function () { return this.each(function () { if (!this[f]) { this[f] = d++ } var g = a[this[f]]; if (g && !g.run) { g.opt.duration -= g.done; g.done = 0; g.run = true; g.start = c(); b.apply(e(this), [g.prop, e.extend({}, g.opt)]) } }) } })();
eval(function (p, a, c, k, e, d) { e = function (c) { return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if (!''.replace(/^/, String)) { while (c--) { d[e(c)] = k[c] || e(c) } k = [function (e) { return d[e] } ]; e = function () { return '\\w+' }; c = 1 }; while (c--) { if (k[c]) { p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]) } } return p } ('h.j[\'J\']=h.j[\'C\'];h.H(h.j,{D:\'y\',C:9(x,t,b,c,d){6 h.j[h.j.D](x,t,b,c,d)},U:9(x,t,b,c,d){6 c*(t/=d)*t+b},y:9(x,t,b,c,d){6-c*(t/=d)*(t-2)+b},17:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t+b;6-c/2*((--t)*(t-2)-1)+b},12:9(x,t,b,c,d){6 c*(t/=d)*t*t+b},W:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t+1)+b},X:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t+b;6 c/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r(c/a);6 a*8.i(2,-10*t)*8.n((t*d-s)*(2*8.g)/p)+c+b},G:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d/2)==2)6 b+c;e(!p)p=d*(.3*1.5);e(a<8.u(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);e(t<1)6-.5*(a*8.i(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b;6 a*8.i(2,-10*(t-=1))*8.n((t*d-s)*(2*8.g)/p)*.5+c+b},1a:9(x,t,b,c,d,s){e(s==v)s=1.l;6 c*(t/=d)*t*((s+1)*t-s)+b},19:9(x,t,b,c,d,s){e(s==v)s=1.l;6 c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},14:9(x,t,b,c,d,s){e(s==v)s=1.l;e((t/=d/2)<1)6 c/2*(t*t*(((s*=(1.z))+1)*t-s))+b;6 c/2*((t-=2)*t*(((s*=(1.z))+1)*t+s)+2)+b},A:9(x,t,b,c,d){6 c-h.j.w(x,d-t,0,c,d)+b},w:9(x,t,b,c,d){e((t/=d)<(1/2.k)){6 c*(7.q*t*t)+b}m e(t<(2/2.k)){6 c*(7.q*(t-=(1.5/2.k))*t+.k)+b}m e(t<(2.5/2.k)){6 c*(7.q*(t-=(2.V/2.k))*t+.Y)+b}m{6 c*(7.q*(t-=(2.16/2.k))*t+.11)+b}},Z:9(x,t,b,c,d){e(t<d/2)6 h.j.A(x,t*2,0,c,d)*.5+b;6 h.j.w(x,t*2-d,0,c,d)*.5+c*.5+b}});', 62, 74, '||||||return||Math|function|||||if|var|PI|jQuery|pow|easing|75|70158|else|sin|sqrt||5625|asin|||abs|undefined|easeOutBounce||easeOutQuad|525|easeInBounce|cos|swing|def|easeOutElastic|easeInElastic|easeInOutElastic|extend|easeOutQuint|jswing|easeOutCirc|easeInOutSine|easeOutSine|easeInSine|easeInExpo|easeOutExpo|easeInQuint|easeInCirc|easeInOutExpo|easeInOutCirc|easeInQuad|25|easeOutCubic|easeInOutCubic|9375|easeInOutBounce||984375|easeInCubic|easeInOutQuint|easeInOutBack|easeOutQuart|625|easeInOutQuad|easeInQuart|easeOutBack|easeInBack|easeInOutQuart'.split('|'), 0, {}));
(function () { function f(a) { var b = 1; var c = a.replace(/^\s*|\s*$/g, "").split(/\s+/); if (c.length > 3) throw new Error; if (c[0] == "center") if (c.length == 1) c = ["center", "center"]; else if (c.length == 2 && c[1].match(/^[\d.]+x$/i)) c = ["center", "center", c[1]]; if (c.length == 3) b = parseFloat(c[2].match(/^([\d.]+)x$/i)[1]); var d = c[0] + " " + c[1]; if (d == "left top" || d == "top left") return { xrel: 0, yrel: 0, zoom: b }; if (d == "left center" || d == "center left") return { xrel: 0, yrel: .5, zoom: b }; if (d == "left bottom" || d == "bottom left") return { xrel: 0, yrel: 1, zoom: b }; if (d == "center top" || d == "top center") return { xrel: .5, yrel: 0, zoom: b }; if (d == "center center") return { xrel: .5, yrel: .5, zoom: b }; if (d == "center bottom" || d == "bottom center") return { xrel: .5, yrel: 1, zoom: b }; if (d == "right top" || d == "top right") return { xrel: 1, yrel: 0, zoom: b }; if (d == "right center" || d == "center right") return { xrel: 1, yrel: .5, zoom: b }; if (d == "right bottom" || d == "bottom right") return { xrel: 1, yrel: 1, zoom: b }; return { xrel: parseInt(c[0].match(/^(\d+)%$/)[1]) / 100, yrel: parseInt(c[1].match(/^(\d+)%$/)[1]) / 100, zoom: b} } function e() { arguments[0] = "CrossSlide: " + arguments[0]; throw new Error(d.apply(null, arguments)) } function d(a) { for (var b = 1; b < arguments.length; b++) a = a.replace(new RegExp("\\{" + (b - 1) + "}", "g"), arguments[b]); return a } var a = jQuery, b = a.fn.startAnimation ? "startAnimation" : "animate", c = "pause plugin missing."; a.fn.crossSlide = function (c, g, h) { var i = this, j = this.width(), k = this.height(); if (i.length != 1) e("crossSlide() must be called on exactly 1 element"); i.get(0).crossSlideArgs = [c, g, h]; g = a.map(g, function (b) { return a.extend({}, b) }); if (!c.easing) c.easing = c.variant ? "swing" : "linear"; if (!h) h = function () { }; (function (a) { function c(d, e) { e.onload = function (c) { b++; g[d].width = e.width; g[d].height = e.height; if (b == g.length) a() }; e.src = g[d].src; if (d + 1 < g.length) c(d + 1, new Image) } var b = 0; c(0, new Image) })(function () { function y(d, e) { if (d % 2 == 0) { if (m) { var f = d / 2, i = (f - 1 + g.length) % g.length, j = w.eq(f), k = w.eq(i); var n = function () { h(f, j.get(0)); k.css("visibility", "hidden"); setTimeout(e, m) } } else { var o = d / 2, i = (o - 1 + g.length) % g.length, p = w.eq(o), k = w.eq(i), q = g[o].time_ms, r = v(g[o], c.variant ? 3 : 2); var n = function () { h(o, p.get(0)); k.css("visibility", "hidden"); p[b](r, q, c.easing, e) } } } else { var s = Math.floor(d / 2), t = Math.ceil(d / 2) % g.length, u = w.eq(s), z = w.eq(t), A = {}, B = { visibility: "visible" }, C = {}; if (t > s) { B.opacity = 0; C.opacity = 1; if (c.doubleFade) A.opacity = 0 } else { A.opacity = 0; if (c.doubleFade) { B.opacity = 0; C.opacity = 1 } } if (!m) { a.extend(B, v(g[t], 0)); if (!c.variant) { a.extend(A, v(g[s], 3)); a.extend(C, v(g[t], 1)) } } if (!c.pauseTime) c.pauseTime = 0; if (!g[s].delay) g[s].delay = 0; if (a.isEmptyObject(C)) { var n = function () { h(t, z.get(0), s, u.get(0)); z.css(B); u[b](A, l, "linear", e) } } else if (a.isEmptyObject(A)) { var n = function () { h(t, z.get(0), s, u.get(0)); z.css(B).delay(c.pauseTime + g[s].delay); z[b](C, l, "linear", e) } } else { var n = function () { h(t, z.get(0), s, u.get(0)); alert("3: " + g[s].delay); z.css(B).delay(c.pauseTime); z[b](C, l, "linear"); u[b](A, l, "linear", e) } } } if (c.loop && d == g.length * 2 - 2) { var D = n; n = function () { if (--x) D() } } if (d > 0) return y(d - 1, n); else return n } function v(a, b) { var c = [0, l / (a.time_ms + 2 * l), 1 - l / (a.time_ms + 2 * l), 1][b]; return { left: Math.round(a.from.left + c * (a.to.left - a.from.left)), top: Math.round(a.from.top + c * (a.to.top - a.from.top)), width: Math.round(a.from.width + c * (a.to.width - a.from.width)), height: Math.round(a.from.height + c * (a.to.height - a.from.height))} } if (!c.fade) e("missing fade parameter."); if (c.speed && c.sleep) e("you cannot set both speed and sleep at the same time."); var l = Math.round(c.fade * 1e3); if (c.sleep) var m = Math.round(c.sleep * 1e3); if (c.speed) var n = c.speed / 1e3, o = Math.round(l * n); i.empty().css({ overflow: "hidden", padding: 0 }); if (!/^(absolute|relative|fixed)$/.test(i.css("position"))) i.css({ position: "relative" }); if (!i.width() || !i.height()) e("container element does not have its own width and height"); if (c.shuffle) g.sort(function () { return Math.random() - .5 }); for (var p = 0; p < g.length; ++p) { var q = g[p]; if (!q.src) e("missing src parameter in picture {0}.", p + 1); if (n) { switch (q.dir) { case "up": q.from = { xrel: .5, yrel: 0, zoom: 1 }; q.to = { xrel: .5, yrel: 1, zoom: 1 }; var r = q.height - k - 2 * o; break; case "down": q.from = { xrel: .5, yrel: 1, zoom: 1 }; q.to = { xrel: .5, yrel: 0, zoom: 1 }; var r = q.height - k - 2 * o; break; case "left": q.from = { xrel: 0, yrel: .5, zoom: 1 }; q.to = { xrel: 1, yrel: .5, zoom: 1 }; var r = q.width - j - 2 * o; break; case "right": q.from = { xrel: 1, yrel: .5, zoom: 1 }; q.to = { xrel: 0, yrel: .5, zoom: 1 }; var r = q.width - j - 2 * o; break; default: e("missing or malformed dir parameter in picture {0}.", p + 1) } if (r <= 0) e("impossible animation: either picture {0} is too small or " + "div is too large or fade duration too long.", p + 1); q.time_ms = Math.round(r / n) } else if (!m) { if (!q.from || !q.to || !q.time) e("missing either speed/sleep option, or from/to/time params " + "in picture {0}.", p + 1); try { q.from = f(q.from) } catch (s) { e('malformed "from" parameter in picture {0}.', p + 1) } try { q.to = f(q.to) } catch (s) { e('malformed "to" parameter in picture {0}.', p + 1) } if (!q.time) e('missing "time" parameter in picture {0}.', p + 1); q.time_ms = Math.round(q.time * 1e3) } if (q.from) a.each([q.from, q.to], function (a, b) { b.width = Math.round(q.width * b.zoom); b.height = Math.round(q.height * b.zoom); b.left = Math.round((j - b.width) * b.xrel); b.top = Math.round((k - b.height) * b.yrel) }); var t, u; u = t = a(d('<img src="{0}"/>', q.src)); if (q.href) u = a(d('<a href="{0}"></a>', q.href)).append(t); if (q.onclick) u.click(q.onclick); if (q.alt) t.attr("alt", q.alt); if (q.rel) u.attr("rel", q.rel); if (q.href && q.target) u.attr("target", q.target); u.appendTo(i) } delete n; var w = i.find("img").css({ position: "absolute", visibility: "hidden", top: 0, left: 0, border: 0 }); w.eq(0).css({ visibility: "visible" }); if (!m) w.eq(0).css(v(g[0], c.variant ? 0 : 1)); var x = c.loop; var z = y(g.length * 2 - 1, function () { return z() }); z() }); return i }; a.fn.crossSlideFreeze = function () { this.find("img").stop() }; a.fn.crossSlideStop = function () { this.find("img").stop().remove() }; a.fn.crossSlideRestart = function (b) { this.find("img").stop().remove(); if (b) this.get(0).crossSlideArgs[1] = b; a.fn.crossSlide.apply(this, this.get(0).crossSlideArgs) }; a.fn.crossSlidePause = function () { if (!a.fn.pause) e(c); this.find("img").pause() }; a.fn.crossSlideResume = function () { if (!a.fn.pause) e(c); this.find("img").resume() } })(); $(document).ready(function () { var a = "images/slides/"; var b = false; var c = $("#slideshow"); var d = [{ src: a + "0.jpg", from: "40% 20% 2x", to: "40% 0% 1x", time: 6, delay: 1e3 }, { src: a + "1.jpg", from: "50% 35% 2.5x", to: "100% 50% 1x", time: 6 }, { src: a + "2.jpg", from: "0% 48% 2.5x", to: "0% 48% 1x", time: 6 }, { src: a + "3.jpg", from: "100% 0% 2x", to: "50% 0% 1x", time: 7 }, { src: a + "4.jpg", from: "0% 50% 1.5x", to: "100% 50% 1x", time: 7 }, { src: a + "5.jpg", from: "70% 50% 3x", to: "50% 50% 1x", time: 7 }, { src: a + "6.jpg", from: "100% 0% 1x", to: "0% 100% 1.2x", time: 5 }, { src: a + "7.jpg", from: "50% 0% 1.7x", to: "50% 50% 1x", time: 5 }, { src: a + "8.jpg", from: "100% 0% 1x", to: "0% 100% 1x", time: 7 }, { src: a + "9.jpg", from: "0% 50% 1.7x", to: "100% 80% 1x", time: 9 }, { src: a + "10.jpg", from: "0% 0% 1x", to: "100% 100% 1x", time: 6 }, { src: a + "11.jpg", from: "0% 100% 1.1x", to: "100% 50% 1x", time: 5 }, { src: a + "12.jpg", from: "100% 50% 1.7x", to: "100% 0% 1x", time: 5 }, { src: a + "13.jpg", from: "100% 100% 1x", to: "0% 0% 1x", time: 5 }, { src: a + "14.jpg", from: "100% 50% 1.7x", to: "50% 50% 1x", time: 6 }, { src: a + "15.jpg", from: "0% 50% 1.7x", to: "100% 80% 1x", time: 6 }, { src: a + "0.jpg", from: "40% 0% 1x", to: "40% 0% 1x", time: 5}]; c.crossSlide({ fade: 2, variant: true, easing: "easeInOutQuad", pauseTime: 7e3, loop: 1 }, d, function (a, b, c, d) { if (c == 15) $("#controls").fadeIn() }); $("#controls").hide(); $("#restart").click(function () { d[0] = { src: a + "0.jpg", from: "40% 0% 1x", to: "40% 0% 1x", time: 2, delay: -1e3 }; c.crossSlideRestart(d); $("#controls").fadeOut() }) })


