1/* 2 jQuery zAccordion Plugin v2.1.0 3 Copyright (c) 2010 - 2012 Nate Armagost, http://www.armagost.com/zaccordion 4 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 5 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 6 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 7*/ 8!function(t){"use strict";t.fn.zAccordion=function(i){var e={timeout:6e3,width:null,slideWidth:null,tabWidth:null,height:null,startingSlide:0,slideClass:null,easing:null,speed:1200,auto:!0,trigger:"click",pause:!0,invert:!1,animationStart:t.noop,animationComplete:t.noop,buildComplete:t.noop,errors:!1},d={displayError:function(t,i){window.console&&i&&window.console.log("zAccordion: "+t+".")},findChildElements:function(t){return void 0===t.children().get(0)?!1:!0},getNext:function(t,i){var e=i+1;return e>=t&&(e=0),e},fixHeight:function(t){return null===t.height&&void 0!==t.slideHeight?(t.height=t.slideHeight,!0):null!==t.height&&void 0===t.slideHeight?!0:null===t.height&&void 0===t.slideHeight?!1:void 0},getUnits:function(t){return null!==t?t.toString().indexOf("%")>-1?"%":(t.toString().indexOf("px")>-1,"px"):void 0},toInteger:function(t){return null!==t?parseInt(t,10):void 0},sizeAccordion:function(t,i){return void 0===i.width&&void 0===i.slideWidth&&void 0===i.tabWidth?(d.displayError("width must be defined",i.errors),!1):void 0!==i.width&&void 0===i.slideWidth&&void 0===i.tabWidth?i.width>100&&"%"===i.widthUnits?(d.displayError("width cannot be over 100%",i.errors),!1):(i.slideWidthUnits=i.widthUnits,i.tabWidthUnits=i.widthUnits,"%"===i.widthUnits?(i.tabWidth=100/(t.children().size()+1),i.slideWidth=100-(t.children().size()-1)*i.tabWidth):(i.tabWidth=i.width/(t.children().size()+1),i.slideWidth=i.width-(t.children().size()-1)*i.tabWidth),!0):void 0===i.width&&void 0!==i.slideWidth&&void 0===i.tabWidth?(d.displayError("width must be defined",i.errors),!1):void 0===i.width&&void 0===i.slideWidth&&void 0!==i.tabWidth?(d.displayError("width must be defined",i.errors),!1):void 0!==i.width&&void 0===i.slideWidth&&void 0!==i.tabWidth?i.widthUnits!==i.tabWidthUnits?(d.displayError("Units do not match",i.errors),!1):i.width>100&&"%"===i.widthUnits?(d.displayError("width cannot be over 100%",i.errors),!1):t.children().size()*i.tabWidth>100&&"%"===i.widthUnits||t.children().size()*i.tabWidth>i.width&&"px"===i.widthUnits?(d.displayError("tabWidth too large for accordion",i.errors),!1):(i.slideWidthUnits=i.widthUnits,i.slideWidth="%"===i.widthUnits?100-(t.children().size()-1)*i.tabWidth:i.width-(t.children().size()-1)*i.tabWidth,!0):void 0!==i.width&&void 0!==i.slideWidth&&void 0===i.tabWidth?i.widthUnits!==i.slideWidthUnits?(d.displayError("Units do not match",i.errors),!1):i.width>100&&"%"===i.widthUnits?(d.displayError("width cannot be over 100%",i.errors),!1):i.slideWidth>=i.width?(d.displayError("slideWidth cannot be greater than or equal to width",i.errors),!1):t.children().size()*i.slideWidth<100&&"%"===i.widthUnits||t.children().size()*i.slideWidth<i.width&&"px"===i.widthUnits?(d.displayError("slideWidth too small for accordion",i.errors),!1):(i.tabWidthUnits=i.widthUnits,i.tabWidth="%"===i.widthUnits?(100-i.slideWidth)/(t.children().size()-1):(i.width-i.slideWidth)/(t.children().size()-1),!0):void 0===i.width&&void 0!==i.slideWidth&&void 0!==i.tabWidth?(d.displayError("width must be defined",i.errors),!1):void 0!==i.width&&void 0!==i.slideWidth&&void 0!==i.tabWidth?(d.displayError("At maximum two of three attributes (width, slideWidth, and tabWidth) should be defined",i.errors),!1):void 0},timer:function(t){var i=t.data("next")+1;if(t.data("pause")&&t.data("inside")&&t.data("auto"))try{window.clearTimeout(t.data("interval"))}catch(e){}else if(t.data("pause")&&!t.data("inside")&&t.data("auto")){try{window.clearTimeout(t.data("interval"))}catch(d){}t.data("interval",window.setTimeout(function(){t.children(t.children().get(0).tagName+":nth-child("+i+")").trigger(t.data("trigger"))},t.data("timeout")))}else if(!t.data("pause")&&t.data("auto")){try{window.clearTimeout(t.data("interval"))}catch(s){}t.data("interval",window.setTimeout(function(){t.children(t.children().get(0).tagName+":nth-child("+i+")").trigger(t.data("trigger"))},t.data("timeout")))}}},s={init:function(i){var s,r=["slideWidth","tabWidth","startingSlide","slideClass","animationStart","animationComplete","buildComplete"];for(s=0;s<r.length;s+=1)void 0!==t(this).data(r[s].toLowerCase())&&(t(this).data(r[s],t(this).data(r[s].toLowerCase())),t(this).removeData(r[s].toLowerCase()));return i=t.extend(e,i,t(this).data()),this.length<=0?(d.displayError("Selector does not exist",i.errors),!1):d.fixHeight(i)?d.findChildElements(this)?i.speed>i.timeout?(d.displayError("Speed cannot be greater than timeout",i.errors),!1):(i.heightUnits=d.getUnits(i.height),i.height=d.toInteger(i.height),i.widthUnits=d.getUnits(i.width),i.width=d.toInteger(i.width),i.slideWidthUnits=d.getUnits(i.slideWidth),i.slideWidth=d.toInteger(i.slideWidth),i.tabWidthUnits=d.getUnits(i.tabWidth),i.tabWidth=d.toInteger(i.tabWidth),null!==i.slideClass&&(i.slideOpenClass=i.slideClass+"-open",i.slideClosedClass=i.slideClass+"-closed",i.slidePreviousClass=i.slideClass+"-previous"),d.sizeAccordion(this,i)?this.each(function(){var e,s,r,a,n=i,h=t(this),l=[],o=-1;e=n.slideWidth-n.tabWidth,s=h.get(0).tagName,r=h.children().get(0).tagName,a=h.children().size(),h.data(t.extend({},{auto:n.auto,interval:null,timeout:n.timeout,trigger:n.trigger,current:n.startingSlide,previous:o,next:d.getNext(a,n.startingSlide),slideClass:n.slideClass,inside:!1,pause:n.pause})),"%"===n.heightUnits&&(n.height="BODY"===h.parent().get(0).tagName?.01*n.height*t(window).height():.01*n.height*h.parent().height(),n.heightUnits="px"),h.children().each(function(i){var d,s,o;s=n.invert?(a-1)*n.tabWidth-i*n.tabWidth:i*n.tabWidth,l[i]=s,d=n.invert?10*(a-1-i):10*i,null!==n.slideClass&&t(this).addClass(n.slideClass),t(this).css({top:0,"z-index":d,margin:0,padding:0,"float":"left",display:"block",position:"absolute",overflow:"hidden",
8width:n.slideWidth+n.widthUnits,height:n.height+n.heightUnits}),"LI"===r&&t(this).css({"text-indent":0}),t(this).css(n.invert?{right:s+n.widthUnits,"float":"right"}:{left:s+n.widthUnits,"float":"left"}),i===n.startingSlide?(t(this).css("cursor","default"),null!==n.slideClass&&t(this).addClass(n.slideOpenClass)):(t(this).css("cursor","pointer"),null!==n.slideClass&&t(this).addClass(n.slideClosedClass),i>n.startingSlide&&!n.invert?(o=i+1,h.children(r+":nth-child("+o+")").css({left:l[o-1]+e+n.widthUnits})):i<n.startingSlide&&n.invert&&(o=i+1,h.children(r+":nth-child("+o+")").css({right:l[o-1]+e+n.widthUnits})))}),h.css({display:"block",height:n.height+n.heightUnits,width:n.width+n.widthUnits,padding:0,position:"relative",overflow:"hidden"}),("UL"===s||"OL"===s)&&h.css({"list-style":"none"}),h.hover(function(){if(h.data("inside",!0),h.data("pause"))try{window.clearTimeout(h.data("interval"))}catch(t){}},function(){h.data("inside",!1),h.data("auto")&&h.data("pause")&&d.timer(h)}),h.children().bind(n.trigger,function(){var i,s,c,u,g,v,p=t(this);if(p.index()!==h.data("current")){for(c=o+1,u=h.data("current")+1,0!==c&&null!==n.slideClass&&h.children(r+":nth-child("+c+")").removeClass(n.slidePreviousClass),h.children(r+":nth-child("+u+")"),null!==n.slideClass&&h.children(r+":nth-child("+u+")").addClass(n.slidePreviousClass),o=h.data("current"),h.data("previous",h.data("current")),c=o,c+=1,h.data("current",p.index()),u=h.data("current"),u+=1,h.children().css("cursor","pointer"),p.css("cursor","default"),null!==n.slideClass&&(h.children().addClass(n.slideClosedClass).removeClass(n.slideOpenClass),p.addClass(n.slideOpenClass).removeClass(n.slideClosedClass)),h.data("next",d.getNext(a,p.index())),d.timer(h),n.animationStart.call(h.get(0),p.get(0)),v=l[h.data("current")]+n.widthUnits,g=n.invert?{right:v}:{left:v},h.children(r+":nth-child("+u+")").stop().animate(g,n.speed,n.easing,function(){n.animationComplete.call(h.get(0),this)}),i=0;a>i;i+=1)s=i+1,i<h.data("current")&&(n.invert?h.children(r+":nth-child("+s+")").stop().animate({right:n.width-s*n.tabWidth+n.widthUnits},n.speed,n.easing):h.children(r+":nth-child("+s+")").stop().animate({left:l[i]+n.widthUnits},n.speed,n.easing)),i>h.data("current")&&(n.invert?h.children(r+":nth-child("+s+")").stop().animate({right:(a-s)*n.tabWidth+n.widthUnits},n.speed,n.easing):h.children(r+":nth-child("+s+")").stop().animate({left:l[i]+e+n.widthUnits},n.speed,n.easing));return!1}}),h.data("auto")&&d.timer(h),n.buildComplete.call(h.get(0))}):!1):(d.displayError("No child elements available",i.errors),!1):(d.displayError("height must be defined",i.errors),!1)},stop:function(){t(this).data("auto")&&(window.clearTimeout(t(this).data("interval")),t(this).data("auto",!1))},start:function(){if(!t(this).data("auto")){var i=t(this).data("next")+1;t(this).data("auto",!0),t(this).children(t(this).children().get(0).tagName+":nth-child("+i+")").trigger(t(this).data("trigger"))}},trigger:function(i){i=parseInt(i,10),(i>=t(this).children().size()||0>i)&&(i=0),i+=1,t(this).children(t(this).children().get(0).tagName+":nth-child("+i+")").trigger(t(this).data("trigger"))},destroy:function(i){var e,d,r=t(this).data("slideClass");return void 0!==i&&(e=void 0!==i.removeStyleAttr?i.removeStyleAttr:!0,d=void 0!==i.removeClasses?i.removeClasses:!1),window.clearTimeout(t(this).data("interval")),t(this).children().stop().unbind(t(this).data("trigger")),t(this).unbind("mouseenter mouseleave mouseover mouseout"),e&&(t(this).removeAttr("style"),t(this).children().removeAttr("style")),d&&(t(this).children().removeClass(r),t(this).children().removeClass(r+"-open"),t(this).children().removeClass(r+"-closed"),t(this).children().removeClass(r+"-previous")),t(this).removeData(),void 0!==i&&"undefined"!==i.destroyComplete&&("undefined"!=typeof i.destroyComplete.afterDestroy&&i.destroyComplete.afterDestroy(),i.destroyComplete.rebuild)?s.init.apply(this,[i.destroyComplete.rebuild]):void 0}};return s[i]?s[i].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof i&&i?void t.error("zAccordion: "+i+" does not exist."):s.init.apply(this,arguments)}}(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.