(function(a){if(typeof a.userAgs!=="function"){(a.userAgs=function(){if(a.fn.jquery<1.4){a.browser={};var c=(function(){var g=navigator.userAgent.toLowerCase();var f=/(webkit)[ \/]([\w.]+)/.exec(g)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(g)||/(msie) ([\w.]+)/.exec(g)||!/compatible/.test(g)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(g)||[];return{browser:f[1]||"",version:f[2]||"0"}})();if(c.browser){a.browser[c.browser]=true}a.browser.version=c.version}var e=function(j,h){if(typeof j==="string"&&typeof h==="string"){j=a.trim(j.replace(/[^0-9\.]+$/g,"").replace(/\.+$/g,""));h=a.trim(h.replace(/[^0-9\.]+$/g,"").replace(/\.+$/g,""));if(j.match(/[0-9]+/)&&j.match(/^[0-9\.]+$/)){if(h.match(/[0-9]+/)&&h.match(/^[0-9\.]+$/)){var g=j.split("."),f=h.split(".");for(var k=0;k");ad.open=true}ae.each(function(){E.data(this,v,E.extend({},E.data(this,v)||F,ad));E(this).addClass(p)});af=ad.open;if(E.isFunction(af)){af=af.call(ae)}if(af){f(ae[0])}return ae};G.init=function(){U=E(R);aa=K().attr({id:v,"class":t?O+(Z?"IE6":"IE"):""});M=K("Overlay",Z?"position:absolute":"").hide();ab=K("Wrapper");d=K("Content").append(I=K("LoadedContent","width:0; height:0; overflow:hidden"),h=K("LoadingOverlay").add(K("LoadingGraphic")),n=K("Title"),r=K("Current"),q=K("Next"),N=K("Previous"),S=K("Slideshow").bind(Q,w),x=K("Close"));ab.append(K().append(K("TopLeft"),C=K("TopCenter"),K("TopRight")),K(false,"clear:left").append(o=K("MiddleLeft"),d,b=K("MiddleRight")),K(false,"clear:left").append(K("BottomLeft"),L=K("BottomCenter"),K("BottomRight"))).children().children().css({"float":"left"});j=K(false,"position:absolute; width:9999px; visibility:hidden; display:none");E("body").prepend(M,aa.append(ab,j));d.children().hover(function(){E(this).addClass("hover")},function(){E(this).removeClass("hover")}).addClass("hover");ac=C.height()+L.height()+d.outerHeight(true)-d.height();l=o.width()+b.width()+d.outerWidth(true)-d.width();g=I.outerHeight(true);a=I.outerWidth(true);aa.css({"padding-bottom":ac,"padding-right":l}).hide();q.click(function(){G.next()});N.click(function(){G.prev()});x.click(function(){G.close()});y=q.add(N).add(r).add(S);d.children().removeClass("hover");E("."+p).live("click",function(ad){if(!((ad.button!==0&&typeof ad.button!=="undefined")||ad.ctrlKey||ad.shiftKey||ad.altKey)){ad.preventDefault();f(this)}});M.click(function(){if(X.overlayClose){G.close()}});E(k).bind("keydown",function(ad){if(A&&X.escKey&&ad.keyCode===27){ad.preventDefault();G.close()}if(A&&X.arrowKey&&!T&&c[1]){if(ad.keyCode===37&&(D||X.loop)){ad.preventDefault();N.click()}else{if(ad.keyCode===39&&(D").children();X.h=ae.height();ae.replaceWith(ae.children())}I.css({height:X.h});G.position(X.transition==="none"?0:X.speed)}};G.prep=function(af){if(!A){return}var ag=X.transition==="none"?0:X.speed;U.unbind("resize."+O);I.remove();I=K("LoadedContent").html(af);function ad(){X.w=X.w||I.width();X.w=X.mw&&X.mw1){if(typeof X.current==="string"){r.html(X.current.replace(/\{current\}/,D+1).replace(/\{total\}/,an)).show()}q[(X.loop||D")[0].src=al}if(z(ap)){E("")[0].src=ap}}}else{y.hide()}if(X.iframe){ak=E("