1(function(t){t.fn.awShowcase=function(e){var ee={content_width:700,content_height:470,fit_to_parent:!1,auto:!1,interval:3e3,continuous:!1,loading:!0,tooltip_width:200,tooltip_icon_width:32,tooltip_icon_height:32,tooltip_offsetx:18,tooltip_offsety:0,arrows:!0,buttons:!0,btn_numbers:!1,keybord_keys:!1,mousetrace:!1,pauseonover:!0,stoponclick:!0,transition:"hslide",transition_delay:300,transition_speed:500,show_caption:"onload",thumbnails:!1,thumbnails_position:"outside-last",thumbnails_direction:"vertical",thumbnails_slidex:0,dynamic_height:!1,speed_change:!1,viewline:!1,fullscreen_width_x:15,custom_function:null};e=t.extend(ee,e);var c=0,Z=0,G=!1,E=!1,d=null,r=t(this),b=e.content_width,T=!1,H=1e4,Y=0,D=0,R=0,_=t(document.createElement("div")).css("overflow","hidden").css("position","relative").addClass("showcase-content-container").prependTo(r);e.fit_to_parent&&(b=t(r).width()+e.fullscreen_width_x),e.viewline&&(e.thumbnails=!1,e.dynamic_height=!1,_.css("width",H),r.css("overflow","hidden"),$(".showcase-arrow-previous").hide());var M=[],A=[],o=0;r.children(".showcase-slide").each(function(){var n=t(this);if(o++,e.thumbnails){var l=n.find(".showcase-thumbnail");A.push(l),l.remove()}var s=n.find(".showcase-content").children().width(),a=n.find(".showcase-content").children().height();M.push(n.html()),n.remove();var h=K(o-1);(e.viewline||o===1)&&_.append(h),e.viewline&&(h.css("position","relative"),h.css("float","left"),h.css("width",s)),e.dynamic_height?(h.css("height",a),o===1&&_.css("height",a)):(h.css("height",e.content_height),o===1&&_.css("height",e.content_height)),(e.viewline||o===1)&&(I(h),g(h),e.show_caption==="show"&&t(h).find(".showcase-caption").show())});var u,U=0,q=0;if(e.thumbnails){for(thumb_container=t("<div />"),thumb_restriction=t("<div />"),u=t("<div />"),i=A.length-1;i>=0;--i){var J=t(A[i]).css({overflow:"hidden"});J.attr("id","showcase-thumbnail-"+i),J.addClass(i===0?"active":""),J.click((function(n,l){return function(){d&&(E=!0,clearInterval(d)),O(n,l)}})(i,"")),u.prepend(J)}e.thumbnails_position==="outside-first"||e.thumbnails_position==="outside-last"?(e.thumbnails_direction!=="horizontal"?(_.css("float","left"),_.css("width",e.content_width),thumb_container.css("float","left"),thumb_container.css("height",e.content_height)):t(u).find(".showcase-thumbnail").css("float","left"),e.thumbnails_position==="outside-last"?(r.append(thumb_container),e.thumbnails_direction!=="horizontal"&&r.append(t("<div />").addClass("clear"))):(r.prepend(thumb_container),e.thumbnails_direction!=="horizontal"&&r.append(t("<div />
1").addClass("clear")))):(thumb_container.css({position:"absolute","z-index":20}),e.thumbnails_direction==="horizontal"?(thumb_container.css({left:0,right:0}),t(u).find(".showcase-thumbnail").css("float","left"),t(u).append(t("<div />").addClass("clear")),e.thumbnails_position==="inside-first"?thumb_container.css("top",0):thumb_container.css("bottom",0)):(thumb_container.css({top:0,bottom:0}),e.thumbnails_position==="inside-first"?thumb_container.css("left",0):thumb_container.css("right",0)),_.prepend(thumb_container)),thumb_container.addClass("showcase-thumbnail-container"),thumb_container.css("overflow","hidden"),thumb_restriction.addClass("showcase-thumbnail-restriction"),thumb_restriction.css({overflow:"hidden",position:"relative"}),e.thumbnails_direction==="horizontal"&&thumb_restriction.css({float:"left"}),u.addClass("showcase-thumbnail-wrapper"),e.thumbnails_direction==="horizontal"?u.addClass("showcase-thumbnail-wrapper-horizontal"):u.addClass("showcase-thumbnail-wrapper-vertical"),u.css("position","relative"),thumb_restriction.append(u),thumb_container.append(thumb_restriction);var p=t('<div class="showcase-thumbnail-button-backward" />');e.thumbnails_direction!=="horizontal"?p.html('<span class="showcase-thumbnail-vertical"><span>Up</span></span>'):(p.css({float:"left"}),p.html('<span class="showcase-thumbnail-horizontal"><span>Left</span></span>')),p.click(function(){N("backward",!1,!0)}),thumb_container.prepend(p);var z=t('<div class="showcase-thumbnail-button-forward" />');e.thumbnails_direction!=="horizontal"?z.html('<span class="showcase-thumbnail-vertical"><span>Down</span></span>'):(z.css({float:"left"}),z.html('<span class="showcase-thumbnail-horizontal"><span>Right</span></span>')),z.click(function(){N("forward",!1,!0)}),thumb_container.append(z);var F=0;if(e.thumbnails_direction!=="horizontal")for(F=k(u,!1),F+=k(p)+k(z);F<e.content_height;)F+=k(t(A[0])),q++;else for(F=C(u,!1),F+=C(p)+C(z);F<b;)F+=C(t(A[0])),q++;if(q+1>A.length&&(e.thumbnails_direction!=="horizontal"?thumb_restriction.css("margin-top",k(p)):thumb_restriction.css("margin-left",C(p)),p.hide(),z.hide()),e.thumbnails_direction!=="horizontal"){var te=k(p)+k(z);thumb_restriction.css("height",e.content_height-te)}else{var ie=C(p)+C(z);thumb_restriction.css("width",b-ie)}e.thumbnails_direction==="horizontal"?(t(".showcase-thumbnail").each(function(){U+=C(t(this))}),u.css("width",U)):t(".showcase-thumbnail").each(function(){U+=k(t(this))})}if(e.thumbnails&&e.thumbnails_position.indexOf("outside")!==-1&&e.thumbnails_direction!=="horizontal"&&!e.viewline?r.css("width",b+C(u,!0,!1)):e.fit_to_parent||r.css("width",b),o>1&&e.auto&&(d=window.setInterval(V,e.interval)),e.auto&&e.pauseonover&&(r.mouseenter(function(){G=!0,clearInterval(d)}),r.mouseleave(function(){E||(G=!1,d=window.setInterval(V,e.interval))})),e.arrows&&o>1&&(t(document.createElement("div")).addClass("showcase-arrow-previous").prependTo(r).click(function(){d&&(e.stoponclick&&(E=!0),clearInterval(d)),O(c===0?o-1:parseInt(c)-1,"previous")}),t(document.createElement("div")).addClass("showcase-arrow-next").prependTo(r).click(function(){d&&(e.stoponclick&&(E=!0),clearInterval(d)),O(c+1,"next")}),e.viewline&&$(".showcase-arrow-previous").hide()),e.buttons&&o>1)for(t(document.createElement("div")).css("clear","both").addClass("showcase-button-wrapper").appendTo(r),i=0;i<o;)t(document.createElement("span")).attr("id","showcase-navigation-button-"+i).addClass(i===0?"active":"").html(e.btn_numbers?parseInt(i)+1:"●").click((function(n,l){return function(){d&&(e.stoponclick&&(E=!0),clearInterval(d)),O(n,l)}})(i,"")).appendTo(t(r).find(".showcase-button-wrapper")),i++;e.keybord_keys&&t(document).keydown(function(n){e.stoponclick&&(E=!0),d&&clearInterval(d),n.keyCode===37&&O(c===0?o-1:parseInt(c)-1,"previous"),n.keyCode===39&&O(c===o-1?0:parseInt(c)+1,"next")});function K(n){var l=t(document.createElement("div")).attr("id","showcase-content-"+n).css("overflow","hidden").css("position","absolute").addClass("showcase-content").html(M[n]);return e.viewline||l.css("width",e.content_width),e.fit_to_parent&&!e.viewline&&l.css("left",b/2-e.content_width/2),l}function V(){var n=parseInt(c)+1;n===o&&e.continuous?n=0:n===o&&!e.continuous&&(G=!0,clearInterval(d)),G||O(n,"next")}function O(n,l){if(c!==n&&!T){var s,a,h=0,f,x=e.fit_to_parent?b/2-e.content_width/2:0;if(n>c&&l!=="previous"||l==="next")if(e.viewline){if(c<o-1){for(e.speed_change||(T=!0),j(),e.pauseonover&&window.clearInterval(d),R=0,f=c+1,len=o;f<len;++f)s=P[f],R+=s.find(".showcase-content").children().width();R>b?(D=Y,Y-=P[c].find(".showcase-content").children().width()):$(".
1showcase-arrow-next").is(":visible")&&(D=Y,Y=-(H-(R+(b-R))),$(".showcase-arrow-next").fadeOut(300)),_.animate({left:Y+"px"},e.transition_speed,function(){T=!1}),$(".showcase-arrow-next").is(":visible")&&c++,$(".showcase-arrow-previous").fadeIn(300)}}else e.speed_change||(T=!0),s=t(r).find("#showcase-content-"+parseInt(c)),a=K(n),_.append(a),e.dynamic_height?a.css("height",a.find(".showcase-content").children().height()):a.css("height",e.content_height),s.find(".showcase-content").children().height()>a.find(".showcase-content").children().height()&&e.dynamic_height&&(_.stop(!0,!0).animate({height:a.find(".showcase-content").children().height()},200),h=100),e.transition==="hslide"?t(s).delay(h).animate({left:-e.content_width},e.transition_speed+e.transition_delay,function(){s.remove()}):e.transition==="vslide"?t(s).delay(h).animate({top:-e.content_height},e.transition_speed+e.transition_delay,function(){s.remove()}):t(s).delay(h).fadeOut(e.transition_speed,function(){s.remove()}),I(s,!0),g(s,!0),e.transition==="hslide"?(a.css("left",b),t(a).delay(h).animate({left:x},e.transition_speed,function(){I(a),g(a),W(a)})):e.transition==="vslide"?(a.css("top",r.height()),t(a).delay(h).animate({top:"0px"},e.transition_speed,function(){I(a),g(a),W(a)})):(a.css("left",x),a.css("display","none"),t(a).delay(h).fadeIn(e.transition_speed,function(){I(a),g(a),W(a)}));else(n<c||l==="previous")&&(e.viewline?(c!==0&&(e.speed_change||(T=!0),j(),e.pauseonover&&window.clearInterval(d),_.animate({left:D+"px"},e.transition_speed,function(){T=!1}),Y=D,c--,c===0&&$(".showcase-arrow-previous").fadeOut(300),old_id=c-1,sub_width=t(P[old_id]).width(),D=D+sub_width),$(".showcase-arrow-next").fadeIn(300)):(e.speed_change||(T=!0),s=t(r).find("#showcase-content-"+parseInt(c)),a=K(n),_.append(a),e.dynamic_height?a.css("height",a.find(".showcase-content").children().height()):a.css("height",e.content_height),s.find(".showcase-content").children().height()>a.find(".showcase-content").children().height()&&e.dynamic_height&&(_.stop(!0,!0).animate({height:a.find(".showcase-content").children().height()},200),h=100),e.transition==="hslide"?t(s).delay(h).animate({left:b+"px"},e.transition_speed+e.transition_delay,function(){I(s,!0),g(s,!0),s.remove()}):e.transition==="vslide"?t(s).delay(h).animate({top:e.content_height+"px"},e.transition_speed+e.transition_delay,function(){I(s,!0),g(s,!0),s.remove()}):t(s).delay(h).fadeOut(e.transition_speed,function(){I(s,!0),g(s,!0),s.remove()}),e.transition==="hslide"?(a.css("left","-"+e.content_width+"px"),t(a).delay(h).animate({left:x},e.transition_speed,function(){I(a),g(a),W(a)})):e.transition==="vslide"?(a.css("top","-"+r.height()+"px"),t(a).delay(h).animate({top:"0px"},e.transition_speed,function(){I(a),g(a),W(a)})):(a.css("left",x),a.css("display","none"),t(a).delay(h).fadeIn(e.transition_speed,function(){I(a),g(a),W(a)})),_.append(a)));e.viewline||(Z=c,c=n,e.thumbnails&&(c>Z&&l!=="previous"||l==="next"?N("forward",!0):(c<Z||l==="previous")&&N("backward",!0)),e.arrows&&(t(r).find(".showcase-arrow-previous").unbind("click").click(function(){d&&(e.stoponclick&&(E=!0),clearInterval(d)),O(c===0?o-1:parseInt(c)-1,"previous")}),t(r).find(".showcase-arrow-next").unbind("click").click(function(){d&&(e.stoponclick&&(E=!0),clearInterval(d)),O(c===o-1?0:parseInt(c)+1,"next")})),e.thumbnails&&(f=0,r.find(".showcase-thumbnail").each(function(){var w=t(this);w.removeClass("active"),f===c&&w.addClass("active"),f++})),e.show_caption==="show"&&t(a).find(".showcase-caption").show()),e.buttons&&(f=0,r.find(".showcase-button-wrapper span").each(function(){var w=t(this);w.removeClass("active"),f===c&&w.addClass("active"),f++})),typeof e.custom_function=="function"&&e.custom_function()}}function W(n){e.dynamic_height&&_.stop(!0,!0).animate({height:n.find(".showcase-content").children().height()},200),T=!1}var v=0;function N(n,l,s){var a=!0,h=k(t(u).find(".showcase-thumbnail"));e.thumbnails_direction==="horizontal"&&(h=C(t(u).find(".showcase-thumbnail")));var f=1;if(e.thumbnails_slidex===0&&(e.thumbnails_slidex=q),l){for(var x=v,w=0;x<0;)e.thumbnails_direction==="horizontal"?x+=C(t(A[0])):x+=k(t(A[0])),w++;var X=w,S=q+w-1;c>=X&&c<=S&&(a=!1);var L;if(c-S>e.thumbnails_slidex)for(L=c-S;L>e.thumbnails_slidex;)L-=e.thumbnails_slidex,f++;else if(X-c>e.thumbnails_slidex)for(L=X-c;L>e.thumbnails_slidex;)L-=e.thumbnails_slidex,f++;else f=1}n==="forward"&&a?(e.thumbnails_direction==="vertical"&&e.content_height<U+v||e.thumbnails_direction==="horizontal"&&e.content_width<U+v?v-=h*(e.thumbnails_slidex*f):c===0&&(s||(v=0)),e.thumbnails_direction==="horizontal"?u.animate({left:v},300):u.animate({top:v},300)):a&&(v<0?v+=h*(e.thumbnails_slidex*f):c===o-1?s||(v-=h*(e.thumbnails_slidex*f)):v=0,e.thumbnails_direction==="horizontal"?u.animate({left:v},300):u.animate({top:v},300))}function g(n,l){var s=n.find(".showcase-caption");l?s.stop(!0,!0).fadeOut(300):e.show_caption==="onload"?s.fadeIn(300):e.show_caption==="onhover"&&(t(n).mouseenter(function(){s.fadeIn(300)}),t(n).mouseleave(function(){s.stop(!0,!0).fadeOut(100)}))}function I(n,l){n.find(".showcase-tooltips a").each(function(){if(l)t(this).stop(!0,!0).fadeOut(300);else{var s=t(this).attr("coords");s=s.split(","),t(this).addClass("showcase-plus-anchor"),t(this).css("position","absolute"),t(this).css("display","none"),t(this).css("width",e.tooltip_icon_width),t(this).css("height",e.tooltip_icon_height),t(this).css("left",parseInt(s[0])-parseInt(e.tooltip_icon_width)/2),t(this).css("top",parseInt(s[1])-parseInt(e.tooltip_icon_height)/2);var a=t(this).html();t(this).mouseenter(function(){B(n,s[0],s[1],a)}),t(this).mouseleave(function(){B(n,s[0],s[1],a)}),t(this).html(""),t(this).fadeIn(300)}})}var m=null;function B(n,l,s,a){if(m===null){m=t(document.createElement("div")).addClass("showcase-tooltip").css("display","none").css("position","absolute").css("max-width",e.tooltip_width).html(a),n.append(m);var h=parseInt(m.css("padding-right"))*2+parseInt(m.css("border-right-width"))*2,f=parseInt(m.css("padding-bottom"))*2+parseInt(m.css("border-bottom-width"))*2;lastx=parseInt(l)+m.width()+h,lasty=parseInt(s)+m.height()+f,lastx<e.content_width?m.css("left",parseInt(l)+parseInt(e.tooltip_offsetx)):m.css("left",parseInt(l)-parseInt(e.tooltip_offsetx)-(parseInt(m.width())+parseInt(e.tooltip_offsetx))),lasty<e.content_height?m.css("top",parseInt(s)+parseInt(e.tooltip_offsety)):m.css("top",parseInt(s)-parseInt(e.tooltip_offsety)-(parseInt(m.height())+parseInt(f))),m.fadeIn(400)}else m.fadeOut(400),m.remove(),m=null}
1function k(n,l,s,a,h){l=typeof l<"u"?l:!0,s=typeof s<"u"?s:!0,a=typeof a<"u"?a:!0,h=typeof h<"u"?h:!0;var f=l?t(n).height():0,x=s?parseFloat(t(n).css("margin-top"))+parseFloat(t(n).css("margin-bottom")):0,w=a?parseFloat(t(n).css("padding-top"))+parseFloat(t(n).css("padding-bottom")):0,X=h?parseFloat(t(n).css("border-top-width"))+parseFloat(t(n).css("border-bottom-width")):0;return f+=x+w+X,f}function C(n,l,s,a,h){l=typeof l<"u"?l:!0,s=typeof s<"u"?s:!0,a=typeof a<"u"?a:!0,h=typeof h<"u"?h:!0;var f=l?t(n).width():0,x=s?parseFloat(t(n).css("margin-left"))+parseFloat(t(n).css("margin-right")):0,w=a?parseFloat(t(n).css("padding-left"))+parseFloat(t(n).css("padding-right")):0,X=h?parseFloat(t(n).css("border-left-width"))+parseFloat(t(n).css("border-right-width")):0;return f+=x+w+X,f}if(e.mousetrace){var y=t(document.createElement("div")).css("position","absolute").css("top","0").css("background-color","#fff").css("color","#000").css("padding","3px 5px").css("x-index","30").html("X: 0 Y: 0");r.append(y);var Q=r.offset();_.mousemove(function(n){y.html("X: "+(n.pageX-Q.left)+" Y: "+(n.pageY-Q.top))})}$("#awOnePageButton").click(function(){if($(".view-page").is(":visible")){var l=t(document.createElement("div"));l.addClass("showcase-onepage"),r.before(l),d&&(E=!0,clearInterval(d)),$(this).find(".view-page").hide(),$(this).find(".view-slide").show(),r.hide(),$.each(M,function(a,h){obj=K(a),obj.css("position","relative"),l.append(obj),I(obj),g(obj),e.dynamic_height?obj.css("height",obj.find(".showcase-content").children().height()):obj.css("height",e.content_height)});var s=t(document.createElement("div"));s.addClass("clear"),l.append(s)}else $(".showcase-onepage").remove(),$(this).find(".view-page").show(),$(this).find(".view-slide").hide(),r.show();return!1});var P=[];function j(){H=0,_.children("div").each(function(){H+=$(this).find(".showcase-content").children().width(),P.push($(this))})}r.removeClass("showcase-load")}})(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.