/* colorbox */
// ColorBox v1.3.4 - a full featured, light-weight, customizable lightbox based on jQuery 1.3
// c) 2009 Jack Moore - www.colorpowered.com - jack@colorpowered.com
// Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
(function(B) { var r = "colorbox", p = "hover", x = true, P = false, U, n = !B.support.opacity, R = n && !window.XMLHttpRequest, y = "cbox_open", J = "cbox_load", u = "cbox_complete", I = "cbox_cleanup", o = "cbox_closed", M = "resize.cbox_resize", G, S, T, d, z, k, b, F, c, N, D, g, s, j, m, K, l, H, t, V, i, f, a, q, h, A, O, w, L, C = { transition: "elastic", speed: 400, width: P, height: P, innerWidth: P, innerHeight: P, initialWidth: "333", initialHeight: "250", maxWidth: "90%", maxHeight: "90%", scalePhotos: x, scrolling: x, inline: P, html: P, iframe: P, photo: P, href: P, title: P, rel: P, opacity: 0.7, preloading: P, current: "{current} of {total}", previous: "previous", next: "next", close: "close", open: P, overlayClose: x, slideshow: P, slideshowAuto: x, slideshowSpeed: 2500, slideshowStart: "start slideshow", slideshowStop: "stop slideshow", onOpen: P, onLoad: P, onComplete: P, onCleanup: P, onClosed: P }; function E(W, X) { X = X === "x" ? N.width() : N.height(); return (typeof W === "string") ? Math.round((W.match(/%/) ? (X / 100) * parseInt(W, 10) : parseInt(W, 10))) : W } function v(W) { W = typeof (W) === "function" ? W.call(q) : W; return O.photo || W.match(/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i) } function Q() { for (var W in O) { if (typeof (O[W]) === "function" && W.substring(0, 2) !== "on") { O[W] = O[W].call(q) } } } function e(X) { q = X; O = B(q).data(r); Q(); var W = O.rel || q.rel; if (W && W !== "nofollow") { c = B(".cboxElement").filter(function() { var Y = B(this).data(r).rel || this.rel; return (Y === W) }); A = c.index(q); if (A < 0) { c = c.add(q); A = c.length - 1 } } else { c = B(q); A = 0 } if (!w) { w = x; L = x; h = q; h.blur(); B().bind("keydown.cbox_close", function(Y) { if (Y.keyCode === 27) { Y.preventDefault(); U.close() } }).bind("keydown.cbox_arrows", function(Y) { if (c.length > 1) { if (Y.keyCode === 37) { Y.preventDefault(); H.click() } else { if (Y.keyCode === 39) { Y.preventDefault(); l.click() } } } }); if (O.overlayClose) { G.css({ cursor: "pointer" }).one("click", U.close) } B.event.trigger(y); if (O.onOpen) { O.onOpen.call(q) } t.html(O.close); G.css({ opacity: O.opacity }).show(); O.w = E(O.initialWidth, "x"); O.h = E(O.initialHeight, "y"); U.position(0); if (R) { N.bind("resize.cboxie6 scroll.cboxie6", function() { G.css({ width: N.width(), height: N.height(), top: N.scrollTop(), left: N.scrollLeft() }) }).trigger("scroll.cboxie6") } } U.slideshow(); U.load() } U = B.fn.colorbox = function(W, Y) { var X = this; if (!X.length) { if (X.selector === "") { X = B(X); W.open = x } else { return this } } X.each(function() { var Z = B.extend({}, B(this).data(r) ? B(this).data(r) : C, W); B(this).data(r, Z).addClass("cboxElement"); if (Y) { B(this).data(r).onComplete = Y } }); if (W && W.open) { e(X) } return this }; U.init = function() { function W(X) { return B('<div id="cbox' + X + '"/>') } N = B(window); S = B('<div id="colorbox"/>'); G = W("Overlay").hide(); T = W("Wrapper"); d = W("Content").append(D = W("LoadedContent").css({ width: 0, height: 0 }), g = W("LoadingOverlay"), s = W("LoadingGraphic"), j = W("Title"), m = W("Current"), K = W("Slideshow"), l = W("Next"), H = W("Previous"), t = W("Close")); T.append(B("<div/>").append(W("TopLeft"), z = W("TopCenter"), W("TopRight")), B("<div/>").append(k = W("MiddleLeft"), d, b = W("MiddleRight")), B("<div/>").append(W("BottomLeft"), F = W("BottomCenter"), W("BottomRight"))).children().children().css({ "float": "left" }); B("body").prepend(G, S.append(T)); if (n) { S.addClass("cboxIE"); if (R) { G.css("position", "absolute") } } d.children().addClass(p).mouseover(function() { B(this).addClass(p) }).mouseout(function() { B(this).removeClass(p) }).hide(); V = z.height() + F.height() + d.outerHeight(x) - d.height(); i = k.width() + b.width() + d.outerWidth(x) - d.width(); f = D.outerHeight(x); a = D.outerWidth(x); S.css({ "padding-bottom": V, "padding-right": i }).hide(); l.click(U.next); H.click(U.prev); t.click(U.close); d.children().removeClass(p); B(".cboxElement").live("click", function(X) { if (X.button !== 0) { return x } else { e(this); return P } }) }; U.position = function(ab, Y) { var aa, X = N.height(), Z = Math.max(X - O.h - f - V, 0) / 2 + N.scrollTop(), W = Math.max(document.documentElement.clientWidth - O.w - a - i, 0) / 2 + N.scrollLeft(); aa = (S.width() === O.w + a && S.height() === O.h + f) ? 0 : ab; T[0].style.width = T[0].style.height = "9999px"; function ac(ad) { z[0].style.width = F[0].style.width = d[0].style.width = ad.style.width; s[0].style.height = g[0].style.height = d[0].style.height = k[0].style.height = b[0].style.height = ad.style.height } S.dequeue().animate({ width: O.w + a, height: O.h + f, top: Z, left: W }, { duration: aa, complete: function() { ac(this); L = P; T[0].style.width = (O.w + a + i) + "px"; T[0].style.height = (O.h + f + V) + "px"; if (Y) { Y() } }, step: function() { ac(this) } }) }; U.resize = function(aa) { if (!w) { return } var ab, Z, X, ad, ah, W, af, Y = O.transition === "none" ? 0 : O.speed; N.unbind(M); if (!aa) { af = setTimeout(function() { var ai = D.wrapInner("<div style='overflow:auto'></div>").children(); O.h = ai.height(); D.css({ height: O.h }); ai.replaceWith(ai.children()); U.position(Y) }, 1); return } D.remove(); D = B('<div id="cboxLoadedContent"/>').html(aa); function ae() { O.w = O.w || D.width(); O.w = O.mw && O.mw < O.w ? O.mw : O.w; return O.w } function ac() { O.h = O.h || D.height(); O.h = O.mh && O.mh < O.h ? O.mh : O.h; return O.h } D.hide().appendTo(G).css({ width: ae(), overflow: O.scrolling ? "auto" : "hidden" }).css({ height: ac() }).prependTo(d); B("#cboxPhoto").css({ cssFloat: "none" }); if (R) { B("select:not(#colorbox select)").filter(function() { return this.style.visibility !== "hidden" }).css({ visibility: "hidden" }).one(I, function() { this.style.visibility = "inherit" }) } function ag(ai) { U.position(ai, function() { if (!w) { return } if (n) { if (W) { D.fadeIn(100) } S[0].style.removeAttribute("filter") } d.children().show(); if (O.iframe) { D.append("<iframe id='cboxIframe'" + (O.scrolling ? " " : "scrolling='no'") + " name='iframe_" + new Date().getTime() + "' frameborder=0 src='" + (O.href || q.href) + "' " + (n ? "allowtransparency='true'" : "") + " />") } g.hide(); s.hide(); K.hide(); if (c.length > 1) { m.html(O.current.replace(/\{current\}/, A + 1).replace(/\{total\}/, c.length)); l.html(O.next); H.html(O.previous); if (O.slideshow) { K.show() } } else { m.hide(); l.hide(); H.hide() } j.html(O.title || q.title); B.event.trigger(u); if (O.onComplete) { O.onComplete.call(q) } if (O.transition === "fade") { S.fadeTo(Y, 1, function() { if (n) { S[0].style.removeAttribute("filter") } }) } N.bind(M, function() { U.position(0) }) }) } if ((O.transition === "fade" && S.fadeTo(Y, 0, function() { ag(0) })) || ag(Y)) { } if (O.preloading && c.length > 1) { Z = A > 0 ? c[A - 1] : c[c.length - 1]; ad = A < c.length - 1 ? c[A + 1] : c[0]; ah = B(ad).data(r).href || ad.href; X = B(Z).data(r).href || Z.href } }; U.load = function() { var X, W, Z, Y = U.resize; L = x; q = c[A]; O = B(q).data(r); Q(); B.event.trigger(J); if (O.onLoad) { O.onLoad.call(q) } O.h = O.height ? E(O.height, "y") - f - V : O.innerHeight ? E(O.innerHeight, "y") : P; O.w = O.width ? E(O.width, "x") - a - i : O.innerWidth ? E(O.innerWidth, "x") : P; O.mw = O.w; O.mh = O.h; if (O.maxWidth) { O.mw = E(O.maxWidth, "x") - a - i; O.mw = O.w && O.w < O.mw ? O.w : O.mw } if (O.maxHeight) { O.mh = E(O.maxHeight, "y") - f - V; O.mh = O.h && O.h < O.mh ? O.h : O.mh } X = O.href || B(q).attr("href"); g.show(); s.show(); t.show(); if (O.inline) { B('<div id="cboxInlineTemp" />').hide().insertBefore(B(X)[0]).bind(J + " " + I, function() { B(this).replaceWith(D.children()) }); Y(B(X)) } else { if (O.iframe) { Y(" ") } else { if (O.html) { Y(O.html) } else { if (v(X)) { W = new Image(); W.onload = function() { var aa; W.onload = null; W.id = "cboxPhoto"; B(W).css({ margin: "auto", border: "none", display: "block", cssFloat: "left" }); if (O.scalePhotos) { Z = function() { W.height -= W.height * aa; W.width -= W.width * aa }; if (O.mw && W.width > O.mw) { aa = (W.width - O.mw) / W.width; Z() } if (O.mh && W.height > O.mh) { aa = (W.height - O.mh) / W.height; Z() } } if (O.h) { W.style.marginTop = Math.max(O.h - W.height, 0) / 2 + "px" } Y(W); if (c.length > 1) { B(W).css({ cursor: "pointer" }).click(U.next) } if (n) { W.style.msInterpolationMode = "bicubic" } }; W.src = X } else { B("<div />").appendTo(G).load(X, function(aa, ab) { if (ab === "success") { Y(this) } else { Y(B("<p>Request unsuccessful.</p>")) } }) } } } } }; U.next = function() { if (!L) { A = A < c.length - 1 ? A + 1 : 0; U.load() } }; U.prev = function() { if (!L) { A = A > 0 ? A - 1 : c.length - 1; U.load() } }; U.slideshow = function() { var X, W, Y = "cboxSlideshow_"; K.bind(o, function() { K.unbind(); clearTimeout(W); S.removeClass(Y + "off " + Y + "on") }); function Z() { K.text(O.slideshowStop).bind(u, function() { W = setTimeout(U.next, O.slideshowSpeed) }).bind(J, function() { clearTimeout(W) }).one("click", function() { X(); B(this).removeClass(p) }); S.removeClass(Y + "off").addClass(Y + "on") } X = function() { clearTimeout(W); K.text(O.slideshowStart).unbind(u + " " + J).one("click", function() { Z(); W = setTimeout(U.next, O.slideshowSpeed); B(this).removeClass(p) }); S.removeClass(Y + "on").addClass(Y + "off") }; if (O.slideshow && c.length > 1) { if (O.slideshowAuto) { Z() } else { X() } } }; U.close = function() { B.event.trigger(I); if (O.onCleanup) { O.onCleanup.call(q) } w = P; B().unbind("keydown.cbox_close keydown.cbox_arrows"); N.unbind(M + " resize.cboxie6 scroll.cboxie6"); G.css({ cursor: "auto" }).fadeOut("fast"); S.stop(x, P).fadeOut("fast", function() { D.remove(); S.css({ opacity: 1 }); d.children().hide(); try { h.focus() } catch (W) { } B.event.trigger(o); if (O.onClosed) { O.onClosed.call(q) } }) }; U.element = function() { return B(q) }; U.settings = C; B(U.init) } (jQuery));

/* dropshadow */
/*
	VERSION: Drop Shadow jQuery Plugin 1.6  12-13-2007

	REQUIRES: jquery.js (1.2.6 or later)
				
	AUTHOR: Larry Stevens (McLars@eyebulb.com) This work is in the public domain,
					and it is not supported in any way. Use it at your own risk.
*/
(function(B){var A=1;B.fn.dropShadow=function(C){var D=B.extend({left:4,top:4,blur:2,opacity:0.5,color:"black",swap:false},C);var E=B([]);this.not(".dropShadow").each(function(){var N=B(this);var J=[];var G=(D.blur<=0)?0:D.blur;var M=(G==0)?D.opacity:D.opacity/(G*8);var O=(D.swap)?A:A+1;var F=(D.swap)?A+1:A;var P;if(this.id){P=this.id+"_dropShadow"}else{P="ds"+(1+Math.floor(9999*Math.random()))}B.data(this,"shadowId",P);B.data(this,"shadowOptions",C);N.attr("shadowId",P).css("zIndex",O);if(N.css("position")!="absolute"){N.css({position:"relative",zoom:1})}bgColor=N.css("backgroundColor");if(bgColor=="rgba(0, 0, 0, 0)"){bgColor="transparent"}if(bgColor!="transparent"||N.css("backgroundImage")!="none"||this.nodeName=="SELECT"||this.nodeName=="INPUT"||this.nodeName=="TEXTAREA"){J[0]=B("<div></div>").css("background",D.color)}else{J[0]=N.clone().removeAttr("id").removeAttr("name").removeAttr("shadowId").css("color",D.color)}J[0].addClass("dropShadow").css({height:N.outerHeight(),left:G,opacity:M,position:"absolute",top:G,width:N.outerWidth(),zIndex:F});var L=(8*G)+1;for(K=1;K<L;K++){J[K]=J[0].clone()}var K=1;var I=G;while(I>0){J[K].css({left:I*2,top:0});J[K+1].css({left:I*4,top:I*2});J[K+2].css({left:I*2,top:I*4});J[K+3].css({left:0,top:I*2});J[K+4].css({left:I*3,top:I});J[K+5].css({left:I*3,top:I*3});J[K+6].css({left:I,top:I*3});J[K+7].css({left:I,top:I});K+=8;I--}var H=B("<div></div>").attr("id",P).addClass("dropShadow").css({left:N.position().left+D.left-G,marginTop:N.css("marginTop"),marginRight:N.css("marginRight"),marginBottom:N.css("marginBottom"),marginLeft:N.css("marginLeft"),position:"absolute",top:N.position().top+D.top-G,zIndex:F});for(K=0;K<L;K++){H.append(J[K])}N.after(H);E=E.add(H);B(window).resize(function(){try{H.css({left:N.position().left+D.left-G,top:N.position().top+D.top-G})}catch(Q){}});A+=2});return this.pushStack(E)};B.fn.redrawShadow=function(){this.removeShadow();return this.each(function(){var C=B.data(this,"shadowOptions");B(this).dropShadow(C)})};B.fn.removeShadow=function(){return this.each(function(){var C=B(this).shadowId();B("div#"+C).remove()})};B.fn.shadowId=function(){return B.data(this[0],"shadowId")};B(function(){var C="<style type='text/css' media='print'>";C+=".dropShadow{visibility:hidden;}</style>";B("head").append(C)})})(jQuery);
