Comments – wpDiscuz - Version 1.0.3

Version Description

  • Fixed Bug : Problem with options page redirection on Wordpress multi-sites
Download this release

Release Info

Developer AdvancedCoding
Plugin Icon 128x128 Comments – wpDiscuz
Version 1.0.3
Comparing to
See all releases

Code changes from version 1.0.9 to 1.0.3

bxslider/bower.json DELETED
@@ -1,25 +0,0 @@
1
- {
2
- "name": "bxslider-4",
3
- "version": "4.1.2",
4
- "homepage": "http://bxslider.com",
5
- "license": "MIT",
6
- "main": [
7
- "jquery.bxslider.js",
8
- "jquery.bxslider.css",
9
- "images/bx_loader.gif",
10
- "images/controls.png"
11
- ],
12
- "keywords": [
13
- "bxslider",
14
- "javascript",
15
- "jquery",
16
- "library"
17
- ],
18
- "ignore": [
19
- "**/.*",
20
- "*.md"
21
- ],
22
- "dependencies": {
23
- "jquery": ">=1.6"
24
- }
25
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bxslider/images/bx_loader.gif DELETED
Binary file
bxslider/images/controls.png DELETED
Binary file
bxslider/jquery.bxslider.css DELETED
@@ -1,194 +0,0 @@
1
- /**
2
- * BxSlider v4.1.2 - Fully loaded, responsive content slider
3
- * http://bxslider.com
4
- *
5
- * Written by: Steven Wanderski, 2014
6
- * http://stevenwanderski.com
7
- * (while drinking Belgian ales and listening to jazz)
8
- *
9
- * CEO and founder of bxCreative, LTD
10
- * http://bxcreative.com
11
- */
12
-
13
-
14
- /** RESET AND LAYOUT
15
- ===================================*/
16
-
17
- .bx-wrapper {
18
- position: relative;
19
- margin: 0 auto 40px;
20
- padding: 0;
21
- *zoom: 1;
22
- }
23
-
24
- .bx-wrapper img {
25
- max-width: 100%;
26
- display: block;
27
- }
28
-
29
- /** THEME
30
- ===================================*/
31
-
32
- .bx-wrapper .bx-viewport {
33
-
34
- left: -5px;
35
- background: #fff;
36
- }
37
-
38
- .bx-wrapper .bx-pager,
39
- .bx-wrapper .bx-controls-auto {
40
- position: absolute;
41
- bottom: -30px;
42
- width: 100%;
43
- }
44
-
45
- /* LOADER */
46
-
47
- .bx-wrapper .bx-loading {
48
- min-height: 50px;
49
- background: url(images/bx_loader.gif) center center no-repeat #fff;
50
- height: 100%;
51
- width: 100%;
52
- position: absolute;
53
- top: 0;
54
- left: 0;
55
- z-index: 2000;
56
- }
57
-
58
- /* PAGER */
59
-
60
- .bx-wrapper .bx-pager {
61
- text-align: center;
62
- font-size: .85em;
63
- font-family: Arial;
64
- font-weight: bold;
65
- color: #666;
66
- padding-top: 20px;
67
- }
68
-
69
- .bx-wrapper .bx-pager .bx-pager-item,
70
- .bx-wrapper .bx-controls-auto .bx-controls-auto-item {
71
- display: inline-block;
72
- *zoom: 1;
73
- *display: inline;
74
- }
75
-
76
- .bx-wrapper .bx-pager.bx-default-pager a {
77
- background: #666;
78
- text-indent: -9999px;
79
- display: block;
80
- width: 10px;
81
- height: 10px;
82
- margin: 0 5px;
83
- outline: 0;
84
- -moz-border-radius: 5px;
85
- -webkit-border-radius: 5px;
86
- border-radius: 5px;
87
- }
88
-
89
- .bx-wrapper .bx-pager.bx-default-pager a:hover,
90
- .bx-wrapper .bx-pager.bx-default-pager a.active {
91
- background: #000;
92
- }
93
-
94
- /* DIRECTION CONTROLS (NEXT / PREV) */
95
-
96
- .bx-wrapper .bx-prev {
97
- left: 10px;
98
- background: url(images/controls.png) no-repeat 0 -32px;
99
- }
100
-
101
- .bx-wrapper .bx-next {
102
- right: 10px;
103
- background: url(images/controls.png) no-repeat -43px -32px;
104
- }
105
-
106
- .bx-wrapper .bx-prev:hover {
107
- background-position: 0 0;
108
- }
109
-
110
- .bx-wrapper .bx-next:hover {
111
- background-position: -43px 0;
112
- }
113
-
114
- .bx-wrapper .bx-controls-direction a {
115
- position: absolute;
116
- top: 50%;
117
- margin-top: -16px;
118
- outline: 0;
119
- width: 32px;
120
- height: 32px;
121
- text-indent: -9999px;
122
- z-index: 9999;
123
- }
124
-
125
- .bx-wrapper .bx-controls-direction a.disabled {
126
- display: none;
127
- }
128
-
129
- /* AUTO CONTROLS (START / STOP) */
130
-
131
- .bx-wrapper .bx-controls-auto {
132
- text-align: center;
133
- }
134
-
135
- .bx-wrapper .bx-controls-auto .bx-start {
136
- display: block;
137
- text-indent: -9999px;
138
- width: 10px;
139
- height: 11px;
140
- outline: 0;
141
- background: url(images/controls.png) -86px -11px no-repeat;
142
- margin: 0 3px;
143
- }
144
-
145
- .bx-wrapper .bx-controls-auto .bx-start:hover,
146
- .bx-wrapper .bx-controls-auto .bx-start.active {
147
- background-position: -86px 0;
148
- }
149
-
150
- .bx-wrapper .bx-controls-auto .bx-stop {
151
- display: block;
152
- text-indent: -9999px;
153
- width: 9px;
154
- height: 11px;
155
- outline: 0;
156
- background: url(images/controls.png) -86px -44px no-repeat;
157
- margin: 0 3px;
158
- }
159
-
160
- .bx-wrapper .bx-controls-auto .bx-stop:hover,
161
- .bx-wrapper .bx-controls-auto .bx-stop.active {
162
- background-position: -86px -33px;
163
- }
164
-
165
- /* PAGER WITH AUTO-CONTROLS HYBRID LAYOUT */
166
-
167
- .bx-wrapper .bx-controls.bx-has-controls-auto.bx-has-pager .bx-pager {
168
- text-align: left;
169
- width: 80%;
170
- }
171
-
172
- .bx-wrapper .bx-controls.bx-has-controls-auto.bx-has-pager .bx-controls-auto {
173
- right: 0;
174
- width: 35px;
175
- }
176
-
177
- /* IMAGE CAPTIONS */
178
-
179
- .bx-wrapper .bx-caption {
180
- position: absolute;
181
- bottom: 0;
182
- left: 0;
183
- background: #666\9;
184
- background: rgba(80, 80, 80, 0.75);
185
- width: 100%;
186
- }
187
-
188
- .bx-wrapper .bx-caption span {
189
- color: #fff;
190
- font-family: Arial;
191
- display: block;
192
- font-size: .85em;
193
- padding: 10px;
194
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bxslider/jquery.bxslider.js DELETED
@@ -1,1343 +0,0 @@
1
- /**
2
- * BxSlider v4.1.2 - Fully loaded, responsive content slider
3
- * http://bxslider.com
4
- *
5
- * Copyright 2014, Steven Wanderski - http://stevenwanderski.com - http://bxcreative.com
6
- * Written while drinking Belgian ales and listening to jazz
7
- *
8
- * Released under the MIT license - http://opensource.org/licenses/MIT
9
- */
10
-
11
- ;(function($){
12
-
13
- var plugin = {};
14
-
15
- var defaults = {
16
-
17
- // GENERAL
18
- mode: 'horizontal',
19
- slideSelector: '',
20
- infiniteLoop: true,
21
- hideControlOnEnd: false,
22
- speed: 800,
23
- easing: null,
24
- slideMargin: 0,
25
- startSlide: 0,
26
- randomStart: false,
27
- captions: false,
28
- ticker: false,
29
- tickerHover: false,
30
- adaptiveHeight: false,
31
- adaptiveHeightSpeed: 500,
32
- video: false,
33
- useCSS: true,
34
- preloadImages: 'visible',
35
- responsive: true,
36
- slideZIndex: 50,
37
- wrapperClass: 'bx-wrapper',
38
-
39
- // TOUCH
40
- touchEnabled: true,
41
- swipeThreshold: 50,
42
- oneToOneTouch: true,
43
- preventDefaultSwipeX: true,
44
- preventDefaultSwipeY: false,
45
-
46
- // PAGER
47
- pager: true,
48
- pagerType: 'full',
49
- pagerShortSeparator: ' / ',
50
- pagerSelector: null,
51
- buildPager: null,
52
- pagerCustom: null,
53
-
54
- // CONTROLS
55
- controls: true,
56
- nextText: 'Next',
57
- prevText: 'Prev',
58
- nextSelector: null,
59
- prevSelector: null,
60
- autoControls: false,
61
- startText: 'Start',
62
- stopText: 'Stop',
63
- autoControlsCombine: false,
64
- autoControlsSelector: null,
65
-
66
- // AUTO
67
- auto: false,
68
- pause: 4000,
69
- autoStart: true,
70
- autoDirection: 'next',
71
- autoHover: false,
72
- autoDelay: 0,
73
- autoSlideForOnePage: false,
74
-
75
- // CAROUSEL
76
- minSlides: 1,
77
- maxSlides: 1,
78
- moveSlides: 0,
79
- slideWidth: 0,
80
-
81
- // CALLBACKS
82
- onSliderLoad: function() {},
83
- onSlideBefore: function() {},
84
- onSlideAfter: function() {},
85
- onSlideNext: function() {},
86
- onSlidePrev: function() {},
87
- onSliderResize: function() {}
88
- }
89
-
90
- $.fn.bxSlider = function(options){
91
-
92
- if(this.length == 0) return this;
93
-
94
- // support mutltiple elements
95
- if(this.length > 1){
96
- this.each(function(){$(this).bxSlider(options)});
97
- return this;
98
- }
99
-
100
- // create a namespace to be used throughout the plugin
101
- var slider = {};
102
- // set a reference to our slider element
103
- var el = this;
104
- plugin.el = this;
105
-
106
- /**
107
- * Makes slideshow responsive
108
- */
109
- // first get the original window dimens (thanks alot IE)
110
- var windowWidth = $(window).width();
111
- var windowHeight = $(window).height();
112
-
113
-
114
-
115
- /**
116
- * ===================================================================================
117
- * = PRIVATE FUNCTIONS
118
- * ===================================================================================
119
- */
120
-
121
- /**
122
- * Initializes namespace settings to be used throughout plugin
123
- */
124
- var init = function(){
125
- // merge user-supplied options with the defaults
126
- slider.settings = $.extend({}, defaults, options);
127
- // parse slideWidth setting
128
- slider.settings.slideWidth = parseInt(slider.settings.slideWidth);
129
- // store the original children
130
- slider.children = el.children(slider.settings.slideSelector);
131
- // check if actual number of slides is less than minSlides / maxSlides
132
- if(slider.children.length < slider.settings.minSlides) slider.settings.minSlides = slider.children.length;
133
- if(slider.children.length < slider.settings.maxSlides) slider.settings.maxSlides = slider.children.length;
134
- // if random start, set the startSlide setting to random number
135
- if(slider.settings.randomStart) slider.settings.startSlide = Math.floor(Math.random() * slider.children.length);
136
- // store active slide information
137
- slider.active = { index: slider.settings.startSlide }
138
- // store if the slider is in carousel mode (displaying / moving multiple slides)
139
- slider.carousel = slider.settings.minSlides > 1 || slider.settings.maxSlides > 1;
140
- // if carousel, force preloadImages = 'all'
141
- if(slider.carousel) slider.settings.preloadImages = 'all';
142
- // calculate the min / max width thresholds based on min / max number of slides
143
- // used to setup and update carousel slides dimensions
144
- slider.minThreshold = (slider.settings.minSlides * slider.settings.slideWidth) + ((slider.settings.minSlides - 1) * slider.settings.slideMargin);
145
- slider.maxThreshold = (slider.settings.maxSlides * slider.settings.slideWidth) + ((slider.settings.maxSlides - 1) * slider.settings.slideMargin);
146
- // store the current state of the slider (if currently animating, working is true)
147
- slider.working = false;
148
- // initialize the controls object
149
- slider.controls = {};
150
- // initialize an auto interval
151
- slider.interval = null;
152
- // determine which property to use for transitions
153
- slider.animProp = slider.settings.mode == 'vertical' ? 'top' : 'left';
154
- // determine if hardware acceleration can be used
155
- slider.usingCSS = slider.settings.useCSS && slider.settings.mode != 'fade' && (function(){
156
- // create our test div element
157
- var div = document.createElement('div');
158
- // css transition properties
159
- var props = ['WebkitPerspective', 'MozPerspective', 'OPerspective', 'msPerspective'];
160
- // test for each property
161
- for(var i in props){
162
- if(div.style[props[i]] !== undefined){
163
- slider.cssPrefix = props[i].replace('Perspective', '').toLowerCase();
164
- slider.animProp = '-' + slider.cssPrefix + '-transform';
165
- return true;
166
- }
167
- }
168
- return false;
169
- }());
170
- // if vertical mode always make maxSlides and minSlides equal
171
- if(slider.settings.mode == 'vertical') slider.settings.maxSlides = slider.settings.minSlides;
172
- // save original style data
173
- el.data("origStyle", el.attr("style"));
174
- el.children(slider.settings.slideSelector).each(function() {
175
- $(this).data("origStyle", $(this).attr("style"));
176
- });
177
- // perform all DOM / CSS modifications
178
- setup();
179
- }
180
-
181
- /**
182
- * Performs all DOM and CSS modifications
183
- */
184
- var setup = function(){
185
- // wrap el in a wrapper
186
- el.wrap('<div class="' + slider.settings.wrapperClass + '"><div class="bx-viewport"></div></div>');
187
- // store a namspace reference to .bx-viewport
188
- slider.viewport = el.parent();
189
- // add a loading div to display while images are loading
190
- slider.loader = $('<div class="bx-loading" />');
191
- slider.viewport.prepend(slider.loader);
192
- // set el to a massive width, to hold any needed slides
193
- // also strip any margin and padding from el
194
- el.css({
195
- width: slider.settings.mode == 'horizontal' ? (slider.children.length * 100 + 215) + '%' : 'auto',
196
- position: 'relative'
197
- });
198
- // if using CSS, add the easing property
199
- if(slider.usingCSS && slider.settings.easing){
200
- el.css('-' + slider.cssPrefix + '-transition-timing-function', slider.settings.easing);
201
- // if not using CSS and no easing value was supplied, use the default JS animation easing (swing)
202
- }else if(!slider.settings.easing){
203
- slider.settings.easing = 'swing';
204
- }
205
- var slidesShowing = getNumberSlidesShowing();
206
- // make modifications to the viewport (.bx-viewport)
207
- slider.viewport.css({
208
- width: '100%',
209
- overflow: 'hidden',
210
- position: 'relative'
211
- });
212
- slider.viewport.parent().css({
213
- maxWidth: getViewportMaxWidth()
214
- });
215
- // make modification to the wrapper (.bx-wrapper)
216
- if(!slider.settings.pager) {
217
- slider.viewport.parent().css({
218
- margin: '0 auto 0px'
219
- });
220
- }
221
- // apply css to all slider children
222
- slider.children.css({
223
- 'float': slider.settings.mode == 'horizontal' ? 'left' : 'none',
224
- listStyle: 'none',
225
- position: 'relative'
226
- });
227
- // apply the calculated width after the float is applied to prevent scrollbar interference
228
- slider.children.css('width', getSlideWidth());
229
- // if slideMargin is supplied, add the css
230
- if(slider.settings.mode == 'horizontal' && slider.settings.slideMargin > 0) slider.children.css('marginRight', slider.settings.slideMargin);
231
- if(slider.settings.mode == 'vertical' && slider.settings.slideMargin > 0) slider.children.css('marginBottom', slider.settings.slideMargin);
232
- // if "fade" mode, add positioning and z-index CSS
233
- if(slider.settings.mode == 'fade'){
234
- slider.children.css({
235
- position: 'absolute',
236
- zIndex: 0,
237
- display: 'none'
238
- });
239
- // prepare the z-index on the showing element
240
- slider.children.eq(slider.settings.startSlide).css({zIndex: slider.settings.slideZIndex, display: 'block'});
241
- }
242
- // create an element to contain all slider controls (pager, start / stop, etc)
243
- slider.controls.el = $('<div class="bx-controls" />');
244
- // if captions are requested, add them
245
- if(slider.settings.captions) appendCaptions();
246
- // check if startSlide is last slide
247
- slider.active.last = slider.settings.startSlide == getPagerQty() - 1;
248
- // if video is true, set up the fitVids plugin
249
- if(slider.settings.video) el.fitVids();
250
- // set the default preload selector (visible)
251
- var preloadSelector = slider.children.eq(slider.settings.startSlide);
252
- if (slider.settings.preloadImages == "all") preloadSelector = slider.children;
253
- // only check for control addition if not in "ticker" mode
254
- if(!slider.settings.ticker){
255
- // if pager is requested, add it
256
- if(slider.settings.pager) appendPager();
257
- // if controls are requested, add them
258
- if(slider.settings.controls) appendControls();
259
- // if auto is true, and auto controls are requested, add them
260
- if(slider.settings.auto && slider.settings.autoControls) appendControlsAuto();
261
- // if any control option is requested, add the controls wrapper
262
- if(slider.settings.controls || slider.settings.autoControls || slider.settings.pager) slider.viewport.after(slider.controls.el);
263
- // if ticker mode, do not allow a pager
264
- }else{
265
- slider.settings.pager = false;
266
- }
267
- // preload all images, then perform final DOM / CSS modifications that depend on images being loaded
268
- loadElements(preloadSelector, start);
269
- }
270
-
271
- var loadElements = function(selector, callback){
272
- var total = selector.find('img, iframe').length;
273
- if (total == 0){
274
- callback();
275
- return;
276
- }
277
- var count = 0;
278
- selector.find('img, iframe').each(function(){
279
- $(this).one('load', function() {
280
- if(++count == total) callback();
281
- }).each(function() {
282
- if(this.complete) $(this).load();
283
- });
284
- });
285
- }
286
-
287
- /**
288
- * Start the slider
289
- */
290
- var start = function(){
291
- // if infinite loop, prepare additional slides
292
- if(slider.settings.infiniteLoop && slider.settings.mode != 'fade' && !slider.settings.ticker){
293
- var slice = slider.settings.mode == 'vertical' ? slider.settings.minSlides : slider.settings.maxSlides;
294
- var sliceAppend = slider.children.slice(0, slice).clone().addClass('bx-clone');
295
- var slicePrepend = slider.children.slice(-slice).clone().addClass('bx-clone');
296
- el.append(sliceAppend).prepend(slicePrepend);
297
- }
298
- // remove the loading DOM element
299
- slider.loader.remove();
300
- // set the left / top position of "el"
301
- setSlidePosition();
302
- // if "vertical" mode, always use adaptiveHeight to prevent odd behavior
303
- if (slider.settings.mode == 'vertical') slider.settings.adaptiveHeight = true;
304
- // set the viewport height
305
- slider.viewport.height(getViewportHeight());
306
- // make sure everything is positioned just right (same as a window resize)
307
- el.redrawSlider();
308
- // onSliderLoad callback
309
- slider.settings.onSliderLoad(slider.active.index);
310
- // slider has been fully initialized
311
- slider.initialized = true;
312
- // bind the resize call to the window
313
- if (slider.settings.responsive) $(window).bind('resize', resizeWindow);
314
- // if auto is true and has more than 1 page, start the show
315
- if (slider.settings.auto && slider.settings.autoStart && (getPagerQty() > 1 || slider.settings.autoSlideForOnePage)) initAuto();
316
- // if ticker is true, start the ticker
317
- if (slider.settings.ticker) initTicker();
318
- // if pager is requested, make the appropriate pager link active
319
- if (slider.settings.pager) updatePagerActive(slider.settings.startSlide);
320
- // check for any updates to the controls (like hideControlOnEnd updates)
321
- if (slider.settings.controls) updateDirectionControls();
322
- // if touchEnabled is true, setup the touch events
323
- if (slider.settings.touchEnabled && !slider.settings.ticker) initTouch();
324
- }
325
-
326
- /**
327
- * Returns the calculated height of the viewport, used to determine either adaptiveHeight or the maxHeight value
328
- */
329
- var getViewportHeight = function(){
330
- var height = 0;
331
- // first determine which children (slides) should be used in our height calculation
332
- var children = $();
333
- // if mode is not "vertical" and adaptiveHeight is false, include all children
334
- if(slider.settings.mode != 'vertical' && !slider.settings.adaptiveHeight){
335
- children = slider.children;
336
- }else{
337
- // if not carousel, return the single active child
338
- if(!slider.carousel){
339
- children = slider.children.eq(slider.active.index);
340
- // if carousel, return a slice of children
341
- }else{
342
- // get the individual slide index
343
- var currentIndex = slider.settings.moveSlides == 1 ? slider.active.index : slider.active.index * getMoveBy();
344
- // add the current slide to the children
345
- children = slider.children.eq(currentIndex);
346
- // cycle through the remaining "showing" slides
347
- for (i = 1; i <= slider.settings.maxSlides - 1; i++){
348
- // if looped back to the start
349
- if(currentIndex + i >= slider.children.length){
350
- children = children.add(slider.children.eq(i - 1));
351
- }else{
352
- children = children.add(slider.children.eq(currentIndex + i));
353
- }
354
- }
355
- }
356
- }
357
- // if "vertical" mode, calculate the sum of the heights of the children
358
- if(slider.settings.mode == 'vertical'){
359
- children.each(function(index) {
360
- height += $(this).outerHeight();
361
- });
362
- // add user-supplied margins
363
- if(slider.settings.slideMargin > 0){
364
- height += slider.settings.slideMargin * (slider.settings.minSlides - 1);
365
- }
366
- // if not "vertical" mode, calculate the max height of the children
367
- }else{
368
- height = Math.max.apply(Math, children.map(function(){
369
- return $(this).outerHeight(false);
370
- }).get());
371
- }
372
-
373
- if(slider.viewport.css('box-sizing') == 'border-box'){
374
- height += parseFloat(slider.viewport.css('padding-top')) + parseFloat(slider.viewport.css('padding-bottom')) +
375
- parseFloat(slider.viewport.css('border-top-width')) + parseFloat(slider.viewport.css('border-bottom-width'));
376
- }else if(slider.viewport.css('box-sizing') == 'padding-box'){
377
- height += parseFloat(slider.viewport.css('padding-top')) + parseFloat(slider.viewport.css('padding-bottom'));
378
- }
379
-
380
- return height;
381
- }
382
-
383
- /**
384
- * Returns the calculated width to be used for the outer wrapper / viewport
385
- */
386
- var getViewportMaxWidth = function(){
387
- var width = '100%';
388
- if(slider.settings.slideWidth > 0){
389
- if(slider.settings.mode == 'horizontal'){
390
- width = (slider.settings.maxSlides * slider.settings.slideWidth) + ((slider.settings.maxSlides - 1) * slider.settings.slideMargin);
391
- }else{
392
- width = slider.settings.slideWidth;
393
- }
394
- }
395
- return width;
396
- }
397
-
398
- /**
399
- * Returns the calculated width to be applied to each slide
400
- */
401
- var getSlideWidth = function(){
402
- // start with any user-supplied slide width
403
- var newElWidth = slider.settings.slideWidth;
404
- // get the current viewport width
405
- var wrapWidth = slider.viewport.width();
406
- // if slide width was not supplied, or is larger than the viewport use the viewport width
407
- if(slider.settings.slideWidth == 0 ||
408
- (slider.settings.slideWidth > wrapWidth && !slider.carousel) ||
409
- slider.settings.mode == 'vertical'){
410
- newElWidth = wrapWidth;
411
- // if carousel, use the thresholds to determine the width
412
- }else if(slider.settings.maxSlides > 1 && slider.settings.mode == 'horizontal'){
413
- if(wrapWidth > slider.maxThreshold){
414
- // newElWidth = (wrapWidth - (slider.settings.slideMargin * (slider.settings.maxSlides - 1))) / slider.settings.maxSlides;
415
- }else if(wrapWidth < slider.minThreshold){
416
- newElWidth = (wrapWidth - (slider.settings.slideMargin * (slider.settings.minSlides - 1))) / slider.settings.minSlides;
417
- }
418
- }
419
- return newElWidth;
420
- }
421
-
422
- /**
423
- * Returns the number of slides currently visible in the viewport (includes partially visible slides)
424
- */
425
- var getNumberSlidesShowing = function(){
426
- var slidesShowing = 1;
427
- if(slider.settings.mode == 'horizontal' && slider.settings.slideWidth > 0){
428
- // if viewport is smaller than minThreshold, return minSlides
429
- if(slider.viewport.width() < slider.minThreshold){
430
- slidesShowing = slider.settings.minSlides;
431
- // if viewport is larger than minThreshold, return maxSlides
432
- }else if(slider.viewport.width() > slider.maxThreshold){
433
- slidesShowing = slider.settings.maxSlides;
434
- // if viewport is between min / max thresholds, divide viewport width by first child width
435
- }else{
436
- var childWidth = slider.children.first().width() + slider.settings.slideMargin;
437
- slidesShowing = Math.floor((slider.viewport.width() +
438
- slider.settings.slideMargin) / childWidth);
439
- }
440
- // if "vertical" mode, slides showing will always be minSlides
441
- }else if(slider.settings.mode == 'vertical'){
442
- slidesShowing = slider.settings.minSlides;
443
- }
444
- return slidesShowing;
445
- }
446
-
447
- /**
448
- * Returns the number of pages (one full viewport of slides is one "page")
449
- */
450
- var getPagerQty = function(){
451
- var pagerQty = 0;
452
- // if moveSlides is specified by the user
453
- if(slider.settings.moveSlides > 0){
454
- if(slider.settings.infiniteLoop){
455
- pagerQty = Math.ceil(slider.children.length / getMoveBy());
456
- }else{
457
- // use a while loop to determine pages
458
- var breakPoint = 0;
459
- var counter = 0
460
- // when breakpoint goes above children length, counter is the number of pages
461
- while (breakPoint < slider.children.length){
462
- ++pagerQty;
463
- breakPoint = counter + getNumberSlidesShowing();
464
- counter += slider.settings.moveSlides <= getNumberSlidesShowing() ? slider.settings.moveSlides : getNumberSlidesShowing();
465
- }
466
- }
467
- // if moveSlides is 0 (auto) divide children length by sides showing, then round up
468
- }else{
469
- pagerQty = Math.ceil(slider.children.length / getNumberSlidesShowing());
470
- }
471
- return pagerQty;
472
- }
473
-
474
- /**
475
- * Returns the number of indivual slides by which to shift the slider
476
- */
477
- var getMoveBy = function(){
478
- // if moveSlides was set by the user and moveSlides is less than number of slides showing
479
- if(slider.settings.moveSlides > 0 && slider.settings.moveSlides <= getNumberSlidesShowing()){
480
- return slider.settings.moveSlides;
481
- }
482
- // if moveSlides is 0 (auto)
483
- return getNumberSlidesShowing();
484
- }
485
-
486
- /**
487
- * Sets the slider's (el) left or top position
488
- */
489
- var setSlidePosition = function(){
490
- // if last slide, not infinite loop, and number of children is larger than specified maxSlides
491
- if(slider.children.length > slider.settings.maxSlides && slider.active.last && !slider.settings.infiniteLoop){
492
- if (slider.settings.mode == 'horizontal'){
493
- // get the last child's position
494
- var lastChild = slider.children.last();
495
- var position = lastChild.position();
496
- // set the left position
497
- setPositionProperty(-(position.left - (slider.viewport.width() - lastChild.outerWidth())), 'reset', 0);
498
- }else if(slider.settings.mode == 'vertical'){
499
- // get the last showing index's position
500
- var lastShowingIndex = slider.children.length - slider.settings.minSlides;
501
- var position = slider.children.eq(lastShowingIndex).position();
502
- // set the top position
503
- setPositionProperty(-position.top, 'reset', 0);
504
- }
505
- // if not last slide
506
- }else{
507
- // get the position of the first showing slide
508
- var position = slider.children.eq(slider.active.index * getMoveBy()).position();
509
- // check for last slide
510
- if (slider.active.index == getPagerQty() - 1) slider.active.last = true;
511
- // set the repective position
512
- if (position != undefined){
513
- if (slider.settings.mode == 'horizontal') setPositionProperty(-position.left, 'reset', 0);
514
- else if (slider.settings.mode == 'vertical') setPositionProperty(-position.top, 'reset', 0);
515
- }
516
- }
517
- }
518
-
519
- /**
520
- * Sets the el's animating property position (which in turn will sometimes animate el).
521
- * If using CSS, sets the transform property. If not using CSS, sets the top / left property.
522
- *
523
- * @param value (int)
524
- * - the animating property's value
525
- *
526
- * @param type (string) 'slider', 'reset', 'ticker'
527
- * - the type of instance for which the function is being
528
- *
529
- * @param duration (int)
530
- * - the amount of time (in ms) the transition should occupy
531
- *
532
- * @param params (array) optional
533
- * - an optional parameter containing any variables that need to be passed in
534
- */
535
- var setPositionProperty = function(value, type, duration, params){
536
- // use CSS transform
537
- if(slider.usingCSS){
538
- // determine the translate3d value
539
- var propValue = slider.settings.mode == 'vertical' ? 'translate3d(0, ' + value + 'px, 0)' : 'translate3d(' + value + 'px, 0, 0)';
540
- // add the CSS transition-duration
541
- el.css('-' + slider.cssPrefix + '-transition-duration', duration / 1000 + 's');
542
- if(type == 'slide'){
543
- // set the property value
544
- el.css(slider.animProp, propValue);
545
- // bind a callback method - executes when CSS transition completes
546
- el.bind('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd', function(){
547
- // unbind the callback
548
- el.unbind('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd');
549
- updateAfterSlideTransition();
550
- });
551
- }else if(type == 'reset'){
552
- el.css(slider.animProp, propValue);
553
- }else if(type == 'ticker'){
554
- // make the transition use 'linear'
555
- el.css('-' + slider.cssPrefix + '-transition-timing-function', 'linear');
556
- el.css(slider.animProp, propValue);
557
- // bind a callback method - executes when CSS transition completes
558
- el.bind('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd', function(){
559
- // unbind the callback
560
- el.unbind('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd');
561
- // reset the position
562
- setPositionProperty(params['resetValue'], 'reset', 0);
563
- // start the loop again
564
- tickerLoop();
565
- });
566
- }
567
- // use JS animate
568
- }else{
569
- var animateObj = {};
570
- animateObj[slider.animProp] = value;
571
- if(type == 'slide'){
572
- el.animate(animateObj, duration, slider.settings.easing, function(){
573
- updateAfterSlideTransition();
574
- });
575
- }else if(type == 'reset'){
576
- el.css(slider.animProp, value)
577
- }else if(type == 'ticker'){
578
- el.animate(animateObj, speed, 'linear', function(){
579
- setPositionProperty(params['resetValue'], 'reset', 0);
580
- // run the recursive loop after animation
581
- tickerLoop();
582
- });
583
- }
584
- }
585
- }
586
-
587
- /**
588
- * Populates the pager with proper amount of pages
589
- */
590
- var populatePager = function(){
591
- var pagerHtml = '';
592
- var pagerQty = getPagerQty();
593
- // loop through each pager item
594
- for(var i=0; i < pagerQty; i++){
595
- var linkContent = '';
596
- // if a buildPager function is supplied, use it to get pager link value, else use index + 1
597
- if(slider.settings.buildPager && $.isFunction(slider.settings.buildPager)){
598
- linkContent = slider.settings.buildPager(i);
599
- slider.pagerEl.addClass('bx-custom-pager');
600
- }else{
601
- linkContent = i + 1;
602
- slider.pagerEl.addClass('bx-default-pager');
603
- }
604
- // var linkContent = slider.settings.buildPager && $.isFunction(slider.settings.buildPager) ? slider.settings.buildPager(i) : i + 1;
605
- // add the markup to the string
606
- pagerHtml += '<div class="bx-pager-item"><a href="" data-slide-index="' + i + '" class="bx-pager-link">' + linkContent + '</a></div>';
607
- };
608
- // populate the pager element with pager links
609
- slider.pagerEl.html(pagerHtml);
610
- }
611
-
612
- /**
613
- * Appends the pager to the controls element
614
- */
615
- var appendPager = function(){
616
- if(!slider.settings.pagerCustom){
617
- // create the pager DOM element
618
- slider.pagerEl = $('<div class="bx-pager" />');
619
- // if a pager selector was supplied, populate it with the pager
620
- if(slider.settings.pagerSelector){
621
- $(slider.settings.pagerSelector).html(slider.pagerEl);
622
- // if no pager selector was supplied, add it after the wrapper
623
- }else{
624
- slider.controls.el.addClass('bx-has-pager').append(slider.pagerEl);
625
- }
626
- // populate the pager
627
- populatePager();
628
- }else{
629
- slider.pagerEl = $(slider.settings.pagerCustom);
630
- }
631
- // assign the pager click binding
632
- slider.pagerEl.on('click', 'a', clickPagerBind);
633
- }
634
-
635
- /**
636
- * Appends prev / next controls to the controls element
637
- */
638
- var appendControls = function(){
639
- slider.controls.next = $('<a class="bx-next" href="">' + slider.settings.nextText + '</a>');
640
- slider.controls.prev = $('<a class="bx-prev" href="">' + slider.settings.prevText + '</a>');
641
- // bind click actions to the controls
642
- slider.controls.next.bind('click', clickNextBind);
643
- slider.controls.prev.bind('click', clickPrevBind);
644
- // if nextSlector was supplied, populate it
645
- if(slider.settings.nextSelector){
646
- $(slider.settings.nextSelector).append(slider.controls.next);
647
- }
648
- // if prevSlector was supplied, populate it
649
- if(slider.settings.prevSelector){
650
- $(slider.settings.prevSelector).append(slider.controls.prev);
651
- }
652
- // if no custom selectors were supplied
653
- if(!slider.settings.nextSelector && !slider.settings.prevSelector){
654
- // add the controls to the DOM
655
- slider.controls.directionEl = $('<div class="bx-controls-direction" />');
656
- // add the control elements to the directionEl
657
- slider.controls.directionEl.append(slider.controls.prev).append(slider.controls.next);
658
- // slider.viewport.append(slider.controls.directionEl);
659
- slider.controls.el.addClass('bx-has-controls-direction').append(slider.controls.directionEl);
660
- }
661
- }
662
-
663
- /**
664
- * Appends start / stop auto controls to the controls element
665
- */
666
- var appendControlsAuto = function(){
667
- slider.controls.start = $('<div class="bx-controls-auto-item"><a class="bx-start" href="">' + slider.settings.startText + '</a></div>');
668
- slider.controls.stop = $('<div class="bx-controls-auto-item"><a class="bx-stop" href="">' + slider.settings.stopText + '</a></div>');
669
- // add the controls to the DOM
670
- slider.controls.autoEl = $('<div class="bx-controls-auto" />');
671
- // bind click actions to the controls
672
- slider.controls.autoEl.on('click', '.bx-start', clickStartBind);
673
- slider.controls.autoEl.on('click', '.bx-stop', clickStopBind);
674
- // if autoControlsCombine, insert only the "start" control
675
- if(slider.settings.autoControlsCombine){
676
- slider.controls.autoEl.append(slider.controls.start);
677
- // if autoControlsCombine is false, insert both controls
678
- }else{
679
- slider.controls.autoEl.append(slider.controls.start).append(slider.controls.stop);
680
- }
681
- // if auto controls selector was supplied, populate it with the controls
682
- if(slider.settings.autoControlsSelector){
683
- $(slider.settings.autoControlsSelector).html(slider.controls.autoEl);
684
- // if auto controls selector was not supplied, add it after the wrapper
685
- }else{
686
- slider.controls.el.addClass('bx-has-controls-auto').append(slider.controls.autoEl);
687
- }
688
- // update the auto controls
689
- updateAutoControls(slider.settings.autoStart ? 'stop' : 'start');
690
- }
691
-
692
- /**
693
- * Appends image captions to the DOM
694
- */
695
- var appendCaptions = function(){
696
- // cycle through each child
697
- slider.children.each(function(index){
698
- // get the image title attribute
699
- var title = $(this).find('img:first').attr('title');
700
- // append the caption
701
- if (title != undefined && ('' + title).length) {
702
- $(this).append('<div class="bx-caption"><span>' + title + '</span></div>');
703
- }
704
- });
705
- }
706
-
707
- /**
708
- * Click next binding
709
- *
710
- * @param e (event)
711
- * - DOM event object
712
- */
713
- var clickNextBind = function(e){
714
- // if auto show is running, stop it
715
- if (slider.settings.auto) el.stopAuto();
716
- el.goToNextSlide();
717
- e.preventDefault();
718
- }
719
-
720
- /**
721
- * Click prev binding
722
- *
723
- * @param e (event)
724
- * - DOM event object
725
- */
726
- var clickPrevBind = function(e){
727
- // if auto show is running, stop it
728
- if (slider.settings.auto) el.stopAuto();
729
- el.goToPrevSlide();
730
- e.preventDefault();
731
- }
732
-
733
- /**
734
- * Click start binding
735
- *
736
- * @param e (event)
737
- * - DOM event object
738
- */
739
- var clickStartBind = function(e){
740
- el.startAuto();
741
- e.preventDefault();
742
- }
743
-
744
- /**
745
- * Click stop binding
746
- *
747
- * @param e (event)
748
- * - DOM event object
749
- */
750
- var clickStopBind = function(e){
751
- el.stopAuto();
752
- e.preventDefault();
753
- }
754
-
755
- /**
756
- * Click pager binding
757
- *
758
- * @param e (event)
759
- * - DOM event object
760
- */
761
- var clickPagerBind = function(e){
762
- // if auto show is running, stop it
763
- if (slider.settings.auto) el.stopAuto();
764
- var pagerLink = $(e.currentTarget);
765
- if(pagerLink.attr('data-slide-index') !== undefined){
766
- var pagerIndex = parseInt(pagerLink.attr('data-slide-index'));
767
- // if clicked pager link is not active, continue with the goToSlide call
768
- if(pagerIndex != slider.active.index) el.goToSlide(pagerIndex);
769
- e.preventDefault();
770
- }
771
- }
772
-
773
- /**
774
- * Updates the pager links with an active class
775
- *
776
- * @param slideIndex (int)
777
- * - index of slide to make active
778
- */
779
- var updatePagerActive = function(slideIndex){
780
- // if "short" pager type
781
- var len = slider.children.length; // nb of children
782
- if(slider.settings.pagerType == 'short'){
783
- if(slider.settings.maxSlides > 1) {
784
- len = Math.ceil(slider.children.length/slider.settings.maxSlides);
785
- }
786
- slider.pagerEl.html( (slideIndex + 1) + slider.settings.pagerShortSeparator + len);
787
- return;
788
- }
789
- // remove all pager active classes
790
- slider.pagerEl.find('a').removeClass('active');
791
- // apply the active class for all pagers
792
- slider.pagerEl.each(function(i, el) { $(el).find('a').eq(slideIndex).addClass('active'); });
793
- }
794
-
795
- /**
796
- * Performs needed actions after a slide transition
797
- */
798
- var updateAfterSlideTransition = function(){
799
- // if infinte loop is true
800
- if(slider.settings.infiniteLoop){
801
- var position = '';
802
- // first slide
803
- if(slider.active.index == 0){
804
- // set the new position
805
- position = slider.children.eq(0).position();
806
- // carousel, last slide
807
- }else if(slider.active.index == getPagerQty() - 1 && slider.carousel){
808
- position = slider.children.eq((getPagerQty() - 1) * getMoveBy()).position();
809
- // last slide
810
- }else if(slider.active.index == slider.children.length - 1){
811
- position = slider.children.eq(slider.children.length - 1).position();
812
- }
813
- if(position){
814
- if (slider.settings.mode == 'horizontal') { setPositionProperty(-position.left, 'reset', 0); }
815
- else if (slider.settings.mode == 'vertical') { setPositionProperty(-position.top, 'reset', 0); }
816
- }
817
- }
818
- // declare that the transition is complete
819
- slider.working = false;
820
- // onSlideAfter callback
821
- slider.settings.onSlideAfter(slider.children.eq(slider.active.index), slider.oldIndex, slider.active.index);
822
- }
823
-
824
- /**
825
- * Updates the auto controls state (either active, or combined switch)
826
- *
827
- * @param state (string) "start", "stop"
828
- * - the new state of the auto show
829
- */
830
- var updateAutoControls = function(state){
831
- // if autoControlsCombine is true, replace the current control with the new state
832
- if(slider.settings.autoControlsCombine){
833
- slider.controls.autoEl.html(slider.controls[state]);
834
- // if autoControlsCombine is false, apply the "active" class to the appropriate control
835
- }else{
836
- slider.controls.autoEl.find('a').removeClass('active');
837
- slider.controls.autoEl.find('a:not(.bx-' + state + ')').addClass('active');
838
- }
839
- }
840
-
841
- /**
842
- * Updates the direction controls (checks if either should be hidden)
843
- */
844
- var updateDirectionControls = function(){
845
- if(getPagerQty() == 1){
846
- slider.controls.prev.addClass('disabled');
847
- slider.controls.next.addClass('disabled');
848
- }else if(!slider.settings.infiniteLoop && slider.settings.hideControlOnEnd){
849
- // if first slide
850
- if (slider.active.index == 0){
851
- slider.controls.prev.addClass('disabled');
852
- slider.controls.next.removeClass('disabled');
853
- // if last slide
854
- }else if(slider.active.index == getPagerQty() - 1){
855
- slider.controls.next.addClass('disabled');
856
- slider.controls.prev.removeClass('disabled');
857
- // if any slide in the middle
858
- }else{
859
- slider.controls.prev.removeClass('disabled');
860
- slider.controls.next.removeClass('disabled');
861
- }
862
- }
863
- }
864
-
865
- /**
866
- * Initialzes the auto process
867
- */
868
- var initAuto = function(){
869
- // if autoDelay was supplied, launch the auto show using a setTimeout() call
870
- if(slider.settings.autoDelay > 0){
871
- var timeout = setTimeout(el.startAuto, slider.settings.autoDelay);
872
- // if autoDelay was not supplied, start the auto show normally
873
- }else{
874
- el.startAuto();
875
- }
876
- // if autoHover is requested
877
- if(slider.settings.autoHover){
878
- // on el hover
879
- el.hover(function(){
880
- // if the auto show is currently playing (has an active interval)
881
- if(slider.interval){
882
- // stop the auto show and pass true agument which will prevent control update
883
- el.stopAuto(true);
884
- // create a new autoPaused value which will be used by the relative "mouseout" event
885
- slider.autoPaused = true;
886
- }
887
- }, function(){
888
- // if the autoPaused value was created be the prior "mouseover" event
889
- if(slider.autoPaused){
890
- // start the auto show and pass true agument which will prevent control update
891
- el.startAuto(true);
892
- // reset the autoPaused value
893
- slider.autoPaused = null;
894
- }
895
- });
896
- }
897
- }
898
-
899
- /**
900
- * Initialzes the ticker process
901
- */
902
- var initTicker = function(){
903
- var startPosition = 0;
904
- // if autoDirection is "next", append a clone of the entire slider
905
- if(slider.settings.autoDirection == 'next'){
906
- el.append(slider.children.clone().addClass('bx-clone'));
907
- // if autoDirection is "prev", prepend a clone of the entire slider, and set the left position
908
- }else{
909
- el.prepend(slider.children.clone().addClass('bx-clone'));
910
- var position = slider.children.first().position();
911
- startPosition = slider.settings.mode == 'horizontal' ? -position.left : -position.top;
912
- }
913
- setPositionProperty(startPosition, 'reset', 0);
914
- // do not allow controls in ticker mode
915
- slider.settings.pager = false;
916
- slider.settings.controls = false;
917
- slider.settings.autoControls = false;
918
- // if autoHover is requested
919
- if(slider.settings.tickerHover && !slider.usingCSS){
920
- // on el hover
921
- slider.viewport.hover(function(){
922
- el.stop();
923
- }, function(){
924
- // calculate the total width of children (used to calculate the speed ratio)
925
- var totalDimens = 0;
926
- slider.children.each(function(index){
927
- totalDimens += slider.settings.mode == 'horizontal' ? $(this).outerWidth(true) : $(this).outerHeight(true);
928
- });
929
- // calculate the speed ratio (used to determine the new speed to finish the paused animation)
930
- var ratio = slider.settings.speed / totalDimens;
931
- // determine which property to use
932
- var property = slider.settings.mode == 'horizontal' ? 'left' : 'top';
933
- // calculate the new speed
934
- var newSpeed = ratio * (totalDimens - (Math.abs(parseInt(el.css(property)))));
935
- tickerLoop(newSpeed);
936
- });
937
- }
938
- // start the ticker loop
939
- tickerLoop();
940
- }
941
-
942
- /**
943
- * Runs a continuous loop, news ticker-style
944
- */
945
- var tickerLoop = function(resumeSpeed){
946
- speed = resumeSpeed ? resumeSpeed : slider.settings.speed;
947
- var position = {left: 0, top: 0};
948
- var reset = {left: 0, top: 0};
949
- // if "next" animate left position to last child, then reset left to 0
950
- if(slider.settings.autoDirection == 'next'){
951
- position = el.find('.bx-clone').first().position();
952
- // if "prev" animate left position to 0, then reset left to first non-clone child
953
- }else{
954
- reset = slider.children.first().position();
955
- }
956
- var animateProperty = slider.settings.mode == 'horizontal' ? -position.left : -position.top;
957
- var resetValue = slider.settings.mode == 'horizontal' ? -reset.left : -reset.top;
958
- var params = {resetValue: resetValue};
959
- setPositionProperty(animateProperty, 'ticker', speed, params);
960
- }
961
-
962
- /**
963
- * Initializes touch events
964
- */
965
- var initTouch = function(){
966
- // initialize object to contain all touch values
967
- slider.touch = {
968
- start: {x: 0, y: 0},
969
- end: {x: 0, y: 0}
970
- }
971
- slider.viewport.bind('touchstart', onTouchStart);
972
- }
973
-
974
- /**
975
- * Event handler for "touchstart"
976
- *
977
- * @param e (event)
978
- * - DOM event object
979
- */
980
- var onTouchStart = function(e){
981
- if(slider.working){
982
- e.preventDefault();
983
- }else{
984
- // record the original position when touch starts
985
- slider.touch.originalPos = el.position();
986
- var orig = e.originalEvent;
987
- // record the starting touch x, y coordinates
988
- slider.touch.start.x = orig.changedTouches[0].pageX;
989
- slider.touch.start.y = orig.changedTouches[0].pageY;
990
- // bind a "touchmove" event to the viewport
991
- slider.viewport.bind('touchmove', onTouchMove);
992
- // bind a "touchend" event to the viewport
993
- slider.viewport.bind('touchend', onTouchEnd);
994
- }
995
- }
996
-
997
- /**
998
- * Event handler for "touchmove"
999
- *
1000
- * @param e (event)
1001
- * - DOM event object
1002
- */
1003
- var onTouchMove = function(e){
1004
- var orig = e.originalEvent;
1005
- // if scrolling on y axis, do not prevent default
1006
- var xMovement = Math.abs(orig.changedTouches[0].pageX - slider.touch.start.x);
1007
- var yMovement = Math.abs(orig.changedTouches[0].pageY - slider.touch.start.y);
1008
- // x axis swipe
1009
- if((xMovement * 3) > yMovement && slider.settings.preventDefaultSwipeX){
1010
- e.preventDefault();
1011
- // y axis swipe
1012
- }else if((yMovement * 3) > xMovement && slider.settings.preventDefaultSwipeY){
1013
- e.preventDefault();
1014
- }
1015
- if(slider.settings.mode != 'fade' && slider.settings.oneToOneTouch){
1016
- var value = 0;
1017
- // if horizontal, drag along x axis
1018
- if(slider.settings.mode == 'horizontal'){
1019
- var change = orig.changedTouches[0].pageX - slider.touch.start.x;
1020
- value = slider.touch.originalPos.left + change;
1021
- // if vertical, drag along y axis
1022
- }else{
1023
- var change = orig.changedTouches[0].pageY - slider.touch.start.y;
1024
- value = slider.touch.originalPos.top + change;
1025
- }
1026
- setPositionProperty(value, 'reset', 0);
1027
- }
1028
- }
1029
-
1030
- /**
1031
- * Event handler for "touchend"
1032
- *
1033
- * @param e (event)
1034
- * - DOM event object
1035
- */
1036
- var onTouchEnd = function(e){
1037
- slider.viewport.unbind('touchmove', onTouchMove);
1038
- var orig = e.originalEvent;
1039
- var value = 0;
1040
- // record end x, y positions
1041
- slider.touch.end.x = orig.changedTouches[0].pageX;
1042
- slider.touch.end.y = orig.changedTouches[0].pageY;
1043
- // if fade mode, check if absolute x distance clears the threshold
1044
- if(slider.settings.mode == 'fade'){
1045
- var distance = Math.abs(slider.touch.start.x - slider.touch.end.x);
1046
- if(distance >= slider.settings.swipeThreshold){
1047
- slider.touch.start.x > slider.touch.end.x ? el.goToNextSlide() : el.goToPrevSlide();
1048
- el.stopAuto();
1049
- }
1050
- // not fade mode
1051
- }else{
1052
- var distance = 0;
1053
- // calculate distance and el's animate property
1054
- if(slider.settings.mode == 'horizontal'){
1055
- distance = slider.touch.end.x - slider.touch.start.x;
1056
- value = slider.touch.originalPos.left;
1057
- }else{
1058
- distance = slider.touch.end.y - slider.touch.start.y;
1059
- value = slider.touch.originalPos.top;
1060
- }
1061
- // if not infinite loop and first / last slide, do not attempt a slide transition
1062
- if(!slider.settings.infiniteLoop && ((slider.active.index == 0 && distance > 0) || (slider.active.last && distance < 0))){
1063
- setPositionProperty(value, 'reset', 200);
1064
- }else{
1065
- // check if distance clears threshold
1066
- if(Math.abs(distance) >= slider.settings.swipeThreshold){
1067
- distance < 0 ? el.goToNextSlide() : el.goToPrevSlide();
1068
- el.stopAuto();
1069
- }else{
1070
- // el.animate(property, 200);
1071
- setPositionProperty(value, 'reset', 200);
1072
- }
1073
- }
1074
- }
1075
- slider.viewport.unbind('touchend', onTouchEnd);
1076
- }
1077
-
1078
- /**
1079
- * Window resize event callback
1080
- */
1081
- var resizeWindow = function(e){
1082
- // don't do anything if slider isn't initialized.
1083
- if(!slider.initialized) return;
1084
- // get the new window dimens (again, thank you IE)
1085
- var windowWidthNew = $(window).width();
1086
- var windowHeightNew = $(window).height();
1087
- // make sure that it is a true window resize
1088
- // *we must check this because our dinosaur friend IE fires a window resize event when certain DOM elements
1089
- // are resized. Can you just die already?*
1090
- if(windowWidth != windowWidthNew || windowHeight != windowHeightNew){
1091
- // set the new window dimens
1092
- windowWidth = windowWidthNew;
1093
- windowHeight = windowHeightNew;
1094
- // update all dynamic elements
1095
- el.redrawSlider();
1096
- // Call user resize handler
1097
- slider.settings.onSliderResize.call(el, slider.active.index);
1098
- }
1099
- }
1100
-
1101
- /**
1102
- * ===================================================================================
1103
- * = PUBLIC FUNCTIONS
1104
- * ===================================================================================
1105
- */
1106
-
1107
- /**
1108
- * Performs slide transition to the specified slide
1109
- *
1110
- * @param slideIndex (int)
1111
- * - the destination slide's index (zero-based)
1112
- *
1113
- * @param direction (string)
1114
- * - INTERNAL USE ONLY - the direction of travel ("prev" / "next")
1115
- */
1116
- el.goToSlide = function(slideIndex, direction){
1117
- // if plugin is currently in motion, ignore request
1118
- if(slider.working || slider.active.index == slideIndex) return;
1119
- // declare that plugin is in motion
1120
- slider.working = true;
1121
- // store the old index
1122
- slider.oldIndex = slider.active.index;
1123
- // if slideIndex is less than zero, set active index to last child (this happens during infinite loop)
1124
- if(slideIndex < 0){
1125
- slider.active.index = getPagerQty() - 1;
1126
- // if slideIndex is greater than children length, set active index to 0 (this happens during infinite loop)
1127
- }else if(slideIndex >= getPagerQty()){
1128
- slider.active.index = 0;
1129
- // set active index to requested slide
1130
- }else{
1131
- slider.active.index = slideIndex;
1132
- }
1133
- // onSlideBefore, onSlideNext, onSlidePrev callbacks
1134
- slider.settings.onSlideBefore(slider.children.eq(slider.active.index), slider.oldIndex, slider.active.index);
1135
- if(direction == 'next'){
1136
- slider.settings.onSlideNext(slider.children.eq(slider.active.index), slider.oldIndex, slider.active.index);
1137
- }else if(direction == 'prev'){
1138
- slider.settings.onSlidePrev(slider.children.eq(slider.active.index), slider.oldIndex, slider.active.index);
1139
- }
1140
- // check if last slide
1141
- slider.active.last = slider.active.index >= getPagerQty() - 1;
1142
- // update the pager with active class
1143
- if(slider.settings.pager) updatePagerActive(slider.active.index);
1144
- // // check for direction control update
1145
- if(slider.settings.controls) updateDirectionControls();
1146
- // if slider is set to mode: "fade"
1147
- if(slider.settings.mode == 'fade'){
1148
- // if adaptiveHeight is true and next height is different from current height, animate to the new height
1149
- if(slider.settings.adaptiveHeight && slider.viewport.height() != getViewportHeight()){
1150
- slider.viewport.animate({height: getViewportHeight()}, slider.settings.adaptiveHeightSpeed);
1151
- }
1152
- // fade out the visible child and reset its z-index value
1153
- slider.children.filter(':visible').fadeOut(slider.settings.speed).css({zIndex: 0});
1154
- // fade in the newly requested slide
1155
- slider.children.eq(slider.active.index).css('zIndex', slider.settings.slideZIndex+1).fadeIn(slider.settings.speed, function(){
1156
- $(this).css('zIndex', slider.settings.slideZIndex);
1157
- updateAfterSlideTransition();
1158
- });
1159
- // slider mode is not "fade"
1160
- }else{
1161
- // if adaptiveHeight is true and next height is different from current height, animate to the new height
1162
- if(slider.settings.adaptiveHeight && slider.viewport.height() != getViewportHeight()){
1163
- slider.viewport.animate({height: getViewportHeight()}, slider.settings.adaptiveHeightSpeed);
1164
- }
1165
- var moveBy = 0;
1166
- var position = {left: 0, top: 0};
1167
- // if carousel and not infinite loop
1168
- if(!slider.settings.infiniteLoop && slider.carousel && slider.active.last){
1169
- if(slider.settings.mode == 'horizontal'){
1170
- // get the last child position
1171
- var lastChild = slider.children.eq(slider.children.length - 1);
1172
- position = lastChild.position();
1173
- // calculate the position of the last slide
1174
- moveBy = slider.viewport.width() - lastChild.outerWidth();
1175
- }else{
1176
- // get last showing index position
1177
- var lastShowingIndex = slider.children.length - slider.settings.minSlides;
1178
- position = slider.children.eq(lastShowingIndex).position();
1179
- }
1180
- // horizontal carousel, going previous while on first slide (infiniteLoop mode)
1181
- }else if(slider.carousel && slider.active.last && direction == 'prev'){
1182
- // get the last child position
1183
- var eq = slider.settings.moveSlides == 1 ? slider.settings.maxSlides - getMoveBy() : ((getPagerQty() - 1) * getMoveBy()) - (slider.children.length - slider.settings.maxSlides);
1184
- var lastChild = el.children('.bx-clone').eq(eq);
1185
- position = lastChild.position();
1186
- // if infinite loop and "Next" is clicked on the last slide
1187
- }else if(direction == 'next' && slider.active.index == 0){
1188
- // get the last clone position
1189
- position = el.find('> .bx-clone').eq(slider.settings.maxSlides).position();
1190
- slider.active.last = false;
1191
- // normal non-zero requests
1192
- }else if(slideIndex >= 0){
1193
- var requestEl = slideIndex * getMoveBy();
1194
- position = slider.children.eq(requestEl).position();
1195
- }
1196
-
1197
- /* If the position doesn't exist
1198
- * (e.g. if you destroy the slider on a next click),
1199
- * it doesn't throw an error.
1200
- */
1201
- if ("undefined" !== typeof(position)) {
1202
- var value = slider.settings.mode == 'horizontal' ? -(position.left - moveBy) : -position.top;
1203
- // plugin values to be animated
1204
- setPositionProperty(value, 'slide', slider.settings.speed);
1205
- }
1206
- }
1207
- }
1208
-
1209
- /**
1210
- * Transitions to the next slide in the show
1211
- */
1212
- el.goToNextSlide = function(){
1213
- // if infiniteLoop is false and last page is showing, disregard call
1214
- if (!slider.settings.infiniteLoop && slider.active.last) return;
1215
- var pagerIndex = parseInt(slider.active.index) + 1;
1216
- el.goToSlide(pagerIndex, 'next');
1217
- }
1218
-
1219
- /**
1220
- * Transitions to the prev slide in the show
1221
- */
1222
- el.goToPrevSlide = function(){
1223
- // if infiniteLoop is false and last page is showing, disregard call
1224
- if (!slider.settings.infiniteLoop && slider.active.index == 0) return;
1225
- var pagerIndex = parseInt(slider.active.index) - 1;
1226
- el.goToSlide(pagerIndex, 'prev');
1227
- }
1228
-
1229
- /**
1230
- * Starts the auto show
1231
- *
1232
- * @param preventControlUpdate (boolean)
1233
- * - if true, auto controls state will not be updated
1234
- */
1235
- el.startAuto = function(preventControlUpdate){
1236
- // if an interval already exists, disregard call
1237
- if(slider.interval) return;
1238
- // create an interval
1239
- slider.interval = setInterval(function(){
1240
- slider.settings.autoDirection == 'next' ? el.goToNextSlide() : el.goToPrevSlide();
1241
- }, slider.settings.pause);
1242
- // if auto controls are displayed and preventControlUpdate is not true
1243
- if (slider.settings.autoControls && preventControlUpdate != true) updateAutoControls('stop');
1244
- }
1245
-
1246
- /**
1247
- * Stops the auto show
1248
- *
1249
- * @param preventControlUpdate (boolean)
1250
- * - if true, auto controls state will not be updated
1251
- */
1252
- el.stopAuto = function(preventControlUpdate){
1253
- // if no interval exists, disregard call
1254
- if(!slider.interval) return;
1255
- // clear the interval
1256
- clearInterval(slider.interval);
1257
- slider.interval = null;
1258
- // if auto controls are displayed and preventControlUpdate is not true
1259
- if (slider.settings.autoControls && preventControlUpdate != true) updateAutoControls('start');
1260
- }
1261
-
1262
- /**
1263
- * Returns current slide index (zero-based)
1264
- */
1265
- el.getCurrentSlide = function(){
1266
- return slider.active.index;
1267
- }
1268
-
1269
- /**
1270
- * Returns current slide element
1271
- */
1272
- el.getCurrentSlideElement = function(){
1273
- return slider.children.eq(slider.active.index);
1274
- }
1275
-
1276
- /**
1277
- * Returns number of slides in show
1278
- */
1279
- el.getSlideCount = function(){
1280
- return slider.children.length;
1281
- }
1282
-
1283
- /**
1284
- * Update all dynamic slider elements
1285
- */
1286
- el.redrawSlider = function(){
1287
- // resize all children in ratio to new screen size
1288
- slider.children.add(el.find('.bx-clone')).width(getSlideWidth());
1289
- // adjust the height
1290
- slider.viewport.css('height', getViewportHeight());
1291
- // update the slide position
1292
- if(!slider.settings.ticker) setSlidePosition();
1293
- // if active.last was true before the screen resize, we want
1294
- // to keep it last no matter what screen size we end on
1295
- if (slider.active.last) slider.active.index = getPagerQty() - 1;
1296
- // if the active index (page) no longer exists due to the resize, simply set the index as last
1297
- if (slider.active.index >= getPagerQty()) slider.active.last = true;
1298
- // if a pager is being displayed and a custom pager is not being used, update it
1299
- if(slider.settings.pager && !slider.settings.pagerCustom){
1300
- populatePager();
1301
- updatePagerActive(slider.active.index);
1302
- }
1303
- }
1304
-
1305
- /**
1306
- * Destroy the current instance of the slider (revert everything back to original state)
1307
- */
1308
- el.destroySlider = function(){
1309
- // don't do anything if slider has already been destroyed
1310
- if(!slider.initialized) return;
1311
- slider.initialized = false;
1312
- $('.bx-clone', this).remove();
1313
- slider.children.each(function() {
1314
- $(this).data("origStyle") != undefined ? $(this).attr("style", $(this).data("origStyle")) : $(this).removeAttr('style');
1315
- });
1316
- $(this).data("origStyle") != undefined ? this.attr("style", $(this).data("origStyle")) : $(this).removeAttr('style');
1317
- $(this).unwrap().unwrap();
1318
- if(slider.controls.el) slider.controls.el.remove();
1319
- if(slider.controls.next) slider.controls.next.remove();
1320
- if(slider.controls.prev) slider.controls.prev.remove();
1321
- if(slider.pagerEl && slider.settings.controls) slider.pagerEl.remove();
1322
- $('.bx-caption', this).remove();
1323
- if(slider.controls.autoEl) slider.controls.autoEl.remove();
1324
- clearInterval(slider.interval);
1325
- if(slider.settings.responsive) $(window).unbind('resize', resizeWindow);
1326
- }
1327
-
1328
- /**
1329
- * Reload the slider (revert all DOM changes, and re-initialize)
1330
- */
1331
- el.reloadSlider = function(settings){
1332
- if (settings != undefined) options = settings;
1333
- el.destroySlider();
1334
- init();
1335
- }
1336
-
1337
- init();
1338
-
1339
- // returns the current jQuery object
1340
- return this;
1341
- }
1342
-
1343
- })(jQuery);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bxslider/jquery.bxslider.min.js DELETED
@@ -1,10 +0,0 @@
1
- /**
2
- * BxSlider v4.1.2 - Fully loaded, responsive content slider
3
- * http://bxslider.com
4
- *
5
- * Copyright 2014, Steven Wanderski - http://stevenwanderski.com - http://bxcreative.com
6
- * Written while drinking Belgian ales and listening to jazz
7
- *
8
- * Released under the MIT license - http://opensource.org/licenses/MIT
9
- */
10
- !function(t){var e={},s={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,slideZIndex:50,touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",autoHover:!1,autoDelay:0,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,onSliderLoad:function(){},onSlideBefore:function(){},onSlideAfter:function(){},onSlideNext:function(){},onSlidePrev:function(){},onSliderResize:function(){}};t.fn.bxSlider=function(n){if(0==this.length)return this;if(this.length>1)return this.each(function(){t(this).bxSlider(n)}),this;var o={},r=this;e.el=this;var a=t(window).width(),l=t(window).height(),d=function(){o.settings=t.extend({},s,n),o.settings.slideWidth=parseInt(o.settings.slideWidth),o.children=r.children(o.settings.slideSelector),o.children.length<o.settings.minSlides&&(o.settings.minSlides=o.children.length),o.children.length<o.settings.maxSlides&&(o.settings.maxSlides=o.children.length),o.settings.randomStart&&(o.settings.startSlide=Math.floor(Math.random()*o.children.length)),o.active={index:o.settings.startSlide},o.carousel=o.settings.minSlides>1||o.settings.maxSlides>1,o.carousel&&(o.settings.preloadImages="all"),o.minThreshold=o.settings.minSlides*o.settings.slideWidth+(o.settings.minSlides-1)*o.settings.slideMargin,o.maxThreshold=o.settings.maxSlides*o.settings.slideWidth+(o.settings.maxSlides-1)*o.settings.slideMargin,o.working=!1,o.controls={},o.interval=null,o.animProp="vertical"==o.settings.mode?"top":"left",o.usingCSS=o.settings.useCSS&&"fade"!=o.settings.mode&&function(){var t=document.createElement("div"),e=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var i in e)if(void 0!==t.style[e[i]])return o.cssPrefix=e[i].replace("Perspective","").toLowerCase(),o.animProp="-"+o.cssPrefix+"-transform",!0;return!1}(),"vertical"==o.settings.mode&&(o.settings.maxSlides=o.settings.minSlides),r.data("origStyle",r.attr("style")),r.children(o.settings.slideSelector).each(function(){t(this).data("origStyle",t(this).attr("style"))}),c()},c=function(){r.wrap('<div class="bx-wrapper"><div class="bx-viewport"></div></div>'),o.viewport=r.parent(),o.loader=t('<div class="bx-loading" />'),o.viewport.prepend(o.loader),r.css({width:"horizontal"==o.settings.mode?100*o.children.length+215+"%":"auto",position:"relative"}),o.usingCSS&&o.settings.easing?r.css("-"+o.cssPrefix+"-transition-timing-function",o.settings.easing):o.settings.easing||(o.settings.easing="swing"),f(),o.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),o.viewport.parent().css({maxWidth:p()}),o.settings.pager||o.viewport.parent().css({margin:"0 auto 0px"}),o.children.css({"float":"horizontal"==o.settings.mode?"left":"none",listStyle:"none",position:"relative"}),o.children.css("width",u()),"horizontal"==o.settings.mode&&o.settings.slideMargin>0&&o.children.css("marginRight",o.settings.slideMargin),"vertical"==o.settings.mode&&o.settings.slideMargin>0&&o.children.css("marginBottom",o.settings.slideMargin),"fade"==o.settings.mode&&(o.children.css({position:"absolute",zIndex:0,display:"none"}),o.children.eq(o.settings.startSlide).css({zIndex:o.settings.slideZIndex,display:"block"})),o.controls.el=t('<div class="bx-controls" />'),o.settings.captions&&P(),o.active.last=o.settings.startSlide==x()-1,o.settings.video&&r.fitVids();var e=o.children.eq(o.settings.startSlide);"all"==o.settings.preloadImages&&(e=o.children),o.settings.ticker?o.settings.pager=!1:(o.settings.pager&&T(),o.settings.controls&&C(),o.settings.auto&&o.settings.autoControls&&E(),(o.settings.controls||o.settings.autoControls||o.settings.pager)&&o.viewport.after(o.controls.el)),g(e,h)},g=function(e,i){var s=e.find("img, iframe").length;if(0==s)return i(),void 0;var n=0;e.find("img, iframe").each(function(){t(this).one("load",function(){++n==s&&i()}).each(function(){this.complete&&t(this).load()})})},h=function(){if(o.settings.infiniteLoop&&"fade"!=o.settings.mode&&!o.settings.ticker){var e="vertical"==o.settings.mode?o.settings.minSlides:o.settings.maxSlides,i=o.children.slice(0,e).clone().addClass("bx-clone"),s=o.children.slice(-e).clone().addClass("bx-clone");r.append(i).prepend(s)}o.loader.remove(),S(),"vertical"==o.settings.mode&&(o.settings.adaptiveHeight=!0),o.viewport.height(v()),r.redrawSlider(),o.settings.onSliderLoad(o.active.index),o.initialized=!0,o.settings.responsive&&t(window).bind("resize",Z),o.settings.auto&&o.settings.autoStart&&H(),o.settings.ticker&&L(),o.settings.pager&&q(o.settings.startSlide),o.settings.controls&&W(),o.settings.touchEnabled&&!o.settings.ticker&&O()},v=function(){var e=0,s=t();if("vertical"==o.settings.mode||o.settings.adaptiveHeight)if(o.carousel){var n=1==o.settings.moveSlides?o.active.index:o.active.index*m();for(s=o.children.eq(n),i=1;i<=o.settings.maxSlides-1;i++)s=n+i>=o.children.length?s.add(o.children.eq(i-1)):s.add(o.children.eq(n+i))}else s=o.children.eq(o.active.index);else s=o.children;return"vertical"==o.settings.mode?(s.each(function(){e+=t(this).outerHeight()}),o.settings.slideMargin>0&&(e+=o.settings.slideMargin*(o.settings.minSlides-1))):e=Math.max.apply(Math,s.map(function(){return t(this).outerHeight(!1)}).get()),e},p=function(){var t="100%";return o.settings.slideWidth>0&&(t="horizontal"==o.settings.mode?o.settings.maxSlides*o.settings.slideWidth+(o.settings.maxSlides-1)*o.settings.slideMargin:o.settings.slideWidth),t},u=function(){var t=o.settings.slideWidth,e=o.viewport.width();return 0==o.settings.slideWidth||o.settings.slideWidth>e&&!o.carousel||"vertical"==o.settings.mode?t=e:o.settings.maxSlides>1&&"horizontal"==o.settings.mode&&(e>o.maxThreshold||e<o.minThreshold&&(t=(e-o.settings.slideMargin*(o.settings.minSlides-1))/o.settings.minSlides)),t},f=function(){var t=1;if("horizontal"==o.settings.mode&&o.settings.slideWidth>0)if(o.viewport.width()<o.minThreshold)t=o.settings.minSlides;else if(o.viewport.width()>o.maxThreshold)t=o.settings.maxSlides;else{var e=o.children.first().width();t=Math.floor(o.viewport.width()/e)}else"vertical"==o.settings.mode&&(t=o.settings.minSlides);return t},x=function(){var t=0;if(o.settings.moveSlides>0)if(o.settings.infiniteLoop)t=o.children.length/m();else for(var e=0,i=0;e<o.children.length;)++t,e=i+f(),i+=o.settings.moveSlides<=f()?o.settings.moveSlides:f();else t=Math.ceil(o.children.length/f());return t},m=function(){return o.settings.moveSlides>0&&o.settings.moveSlides<=f()?o.settings.moveSlides:f()},S=function(){if(o.children.length>o.settings.maxSlides&&o.active.last&&!o.settings.infiniteLoop){if("horizontal"==o.settings.mode){var t=o.children.last(),e=t.position();b(-(e.left-(o.viewport.width()-t.width())),"reset",0)}else if("vertical"==o.settings.mode){var i=o.children.length-o.settings.minSlides,e=o.children.eq(i).position();b(-e.top,"reset",0)}}else{var e=o.children.eq(o.active.index*m()).position();o.active.index==x()-1&&(o.active.last=!0),void 0!=e&&("horizontal"==o.settings.mode?b(-e.left,"reset",0):"vertical"==o.settings.mode&&b(-e.top,"reset",0))}},b=function(t,e,i,s){if(o.usingCSS){var n="vertical"==o.settings.mode?"translate3d(0, "+t+"px, 0)":"translate3d("+t+"px, 0, 0)";r.css("-"+o.cssPrefix+"-transition-duration",i/1e3+"s"),"slide"==e?(r.css(o.animProp,n),r.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){r.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),D()})):"reset"==e?r.css(o.animProp,n):"ticker"==e&&(r.css("-"+o.cssPrefix+"-transition-timing-function","linear"),r.css(o.animProp,n),r.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){r.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),b(s.resetValue,"reset",0),N()}))}else{var a={};a[o.animProp]=t,"slide"==e?r.animate(a,i,o.settings.easing,function(){D()}):"reset"==e?r.css(o.animProp,t):"ticker"==e&&r.animate(a,speed,"linear",function(){b(s.resetValue,"reset",0),N()})}},w=function(){for(var e="",i=x(),s=0;i>s;s++){var n="";o.settings.buildPager&&t.isFunction(o.settings.buildPager)?(n=o.settings.buildPager(s),o.pagerEl.addClass("bx-custom-pager")):(n=s+1,o.pagerEl.addClass("bx-default-pager")),e+='<div class="bx-pager-item"><a href="" data-slide-index="'+s+'" class="bx-pager-link">'+n+"</a></div>"}o.pagerEl.html(e)},T=function(){o.settings.pagerCustom?o.pagerEl=t(o.settings.pagerCustom):(o.pagerEl=t('<div class="bx-pager" />'),o.settings.pagerSelector?t(o.settings.pagerSelector).html(o.pagerEl):o.controls.el.addClass("bx-has-pager").append(o.pagerEl),w()),o.pagerEl.on("click","a",I)},C=function(){o.controls.next=t('<a class="bx-next" href="">'+o.settings.nextText+"</a>"),o.controls.prev=t('<a class="bx-prev" href="">'+o.settings.prevText+"</a>"),o.controls.next.bind("click",y),o.controls.prev.bind("click",z),o.settings.nextSelector&&t(o.settings.nextSelector).append(o.controls.next),o.settings.prevSelector&&t(o.settings.prevSelector).append(o.controls.prev),o.settings.nextSelector||o.settings.prevSelector||(o.controls.directionEl=t('<div class="bx-controls-direction" />'),o.controls.directionEl.append(o.controls.prev).append(o.controls.next),o.controls.el.addClass("bx-has-controls-direction").append(o.controls.directionEl))},E=function(){o.controls.start=t('<div class="bx-controls-auto-item"><a class="bx-start" href="">'+o.settings.startText+"</a></div>"),o.controls.stop=t('<div class="bx-controls-auto-item"><a class="bx-stop" href="">'+o.settings.stopText+"</a></div>"),o.controls.autoEl=t('<div class="bx-controls-auto" />'),o.controls.autoEl.on("click",".bx-start",k),o.controls.autoEl.on("click",".bx-stop",M),o.settings.autoControlsCombine?o.controls.autoEl.append(o.controls.start):o.controls.autoEl.append(o.controls.start).append(o.controls.stop),o.settings.autoControlsSelector?t(o.settings.autoControlsSelector).html(o.controls.autoEl):o.controls.el.addClass("bx-has-controls-auto").append(o.controls.autoEl),A(o.settings.autoStart?"stop":"start")},P=function(){o.children.each(function(){var e=t(this).find("img:first").attr("title");void 0!=e&&(""+e).length&&t(this).append('<div class="bx-caption"><span>'+e+"</span></div>")})},y=function(t){o.settings.auto&&r.stopAuto(),r.goToNextSlide(),t.preventDefault()},z=function(t){o.settings.auto&&r.stopAuto(),r.goToPrevSlide(),t.preventDefault()},k=function(t){r.startAuto(),t.preventDefault()},M=function(t){r.stopAuto(),t.preventDefault()},I=function(e){o.settings.auto&&r.stopAuto();var i=t(e.currentTarget),s=parseInt(i.attr("data-slide-index"));s!=o.active.index&&r.goToSlide(s),e.preventDefault()},q=function(e){var i=o.children.length;return"short"==o.settings.pagerType?(o.settings.maxSlides>1&&(i=Math.ceil(o.children.length/o.settings.maxSlides)),o.pagerEl.html(e+1+o.settings.pagerShortSeparator+i),void 0):(o.pagerEl.find("a").removeClass("active"),o.pagerEl.each(function(i,s){t(s).find("a").eq(e).addClass("active")}),void 0)},D=function(){if(o.settings.infiniteLoop){var t="";0==o.active.index?t=o.children.eq(0).position():o.active.index==x()-1&&o.carousel?t=o.children.eq((x()-1)*m()).position():o.active.index==o.children.length-1&&(t=o.children.eq(o.children.length-1).position()),t&&("horizontal"==o.settings.mode?b(-t.left,"reset",0):"vertical"==o.settings.mode&&b(-t.top,"reset",0))}o.working=!1,o.settings.onSlideAfter(o.children.eq(o.active.index),o.oldIndex,o.active.index)},A=function(t){o.settings.autoControlsCombine?o.controls.autoEl.html(o.controls[t]):(o.controls.autoEl.find("a").removeClass("active"),o.controls.autoEl.find("a:not(.bx-"+t+")").addClass("active"))},W=function(){1==x()?(o.controls.prev.addClass("disabled"),o.controls.next.addClass("disabled")):!o.settings.infiniteLoop&&o.settings.hideControlOnEnd&&(0==o.active.index?(o.controls.prev.addClass("disabled"),o.controls.next.removeClass("disabled")):o.active.index==x()-1?(o.controls.next.addClass("disabled"),o.controls.prev.removeClass("disabled")):(o.controls.prev.removeClass("disabled"),o.controls.next.removeClass("disabled")))},H=function(){o.settings.autoDelay>0?setTimeout(r.startAuto,o.settings.autoDelay):r.startAuto(),o.settings.autoHover&&r.hover(function(){o.interval&&(r.stopAuto(!0),o.autoPaused=!0)},function(){o.autoPaused&&(r.startAuto(!0),o.autoPaused=null)})},L=function(){var e=0;if("next"==o.settings.autoDirection)r.append(o.children.clone().addClass("bx-clone"));else{r.prepend(o.children.clone().addClass("bx-clone"));var i=o.children.first().position();e="horizontal"==o.settings.mode?-i.left:-i.top}b(e,"reset",0),o.settings.pager=!1,o.settings.controls=!1,o.settings.autoControls=!1,o.settings.tickerHover&&!o.usingCSS&&o.viewport.hover(function(){r.stop()},function(){var e=0;o.children.each(function(){e+="horizontal"==o.settings.mode?t(this).outerWidth(!0):t(this).outerHeight(!0)});var i=o.settings.speed/e,s="horizontal"==o.settings.mode?"left":"top",n=i*(e-Math.abs(parseInt(r.css(s))));N(n)}),N()},N=function(t){speed=t?t:o.settings.speed;var e={left:0,top:0},i={left:0,top:0};"next"==o.settings.autoDirection?e=r.find(".bx-clone").first().position():i=o.children.first().position();var s="horizontal"==o.settings.mode?-e.left:-e.top,n="horizontal"==o.settings.mode?-i.left:-i.top,a={resetValue:n};b(s,"ticker",speed,a)},O=function(){o.touch={start:{x:0,y:0},end:{x:0,y:0}},o.viewport.bind("touchstart",X)},X=function(t){if(o.working)t.preventDefault();else{o.touch.originalPos=r.position();var e=t.originalEvent;o.touch.start.x=e.changedTouches[0].pageX,o.touch.start.y=e.changedTouches[0].pageY,o.viewport.bind("touchmove",Y),o.viewport.bind("touchend",V)}},Y=function(t){var e=t.originalEvent,i=Math.abs(e.changedTouches[0].pageX-o.touch.start.x),s=Math.abs(e.changedTouches[0].pageY-o.touch.start.y);if(3*i>s&&o.settings.preventDefaultSwipeX?t.preventDefault():3*s>i&&o.settings.preventDefaultSwipeY&&t.preventDefault(),"fade"!=o.settings.mode&&o.settings.oneToOneTouch){var n=0;if("horizontal"==o.settings.mode){var r=e.changedTouches[0].pageX-o.touch.start.x;n=o.touch.originalPos.left+r}else{var r=e.changedTouches[0].pageY-o.touch.start.y;n=o.touch.originalPos.top+r}b(n,"reset",0)}},V=function(t){o.viewport.unbind("touchmove",Y);var e=t.originalEvent,i=0;if(o.touch.end.x=e.changedTouches[0].pageX,o.touch.end.y=e.changedTouches[0].pageY,"fade"==o.settings.mode){var s=Math.abs(o.touch.start.x-o.touch.end.x);s>=o.settings.swipeThreshold&&(o.touch.start.x>o.touch.end.x?r.goToNextSlide():r.goToPrevSlide(),r.stopAuto())}else{var s=0;"horizontal"==o.settings.mode?(s=o.touch.end.x-o.touch.start.x,i=o.touch.originalPos.left):(s=o.touch.end.y-o.touch.start.y,i=o.touch.originalPos.top),!o.settings.infiniteLoop&&(0==o.active.index&&s>0||o.active.last&&0>s)?b(i,"reset",200):Math.abs(s)>=o.settings.swipeThreshold?(0>s?r.goToNextSlide():r.goToPrevSlide(),r.stopAuto()):b(i,"reset",200)}o.viewport.unbind("touchend",V)},Z=function(){var e=t(window).width(),i=t(window).height();(a!=e||l!=i)&&(a=e,l=i,r.redrawSlider(),o.settings.onSliderResize.call(r,o.active.index))};return r.goToSlide=function(e,i){if(!o.working&&o.active.index!=e)if(o.working=!0,o.oldIndex=o.active.index,o.active.index=0>e?x()-1:e>=x()?0:e,o.settings.onSlideBefore(o.children.eq(o.active.index),o.oldIndex,o.active.index),"next"==i?o.settings.onSlideNext(o.children.eq(o.active.index),o.oldIndex,o.active.index):"prev"==i&&o.settings.onSlidePrev(o.children.eq(o.active.index),o.oldIndex,o.active.index),o.active.last=o.active.index>=x()-1,o.settings.pager&&q(o.active.index),o.settings.controls&&W(),"fade"==o.settings.mode)o.settings.adaptiveHeight&&o.viewport.height()!=v()&&o.viewport.animate({height:v()},o.settings.adaptiveHeightSpeed),o.children.filter(":visible").fadeOut(o.settings.speed).css({zIndex:0}),o.children.eq(o.active.index).css("zIndex",o.settings.slideZIndex+1).fadeIn(o.settings.speed,function(){t(this).css("zIndex",o.settings.slideZIndex),D()});else{o.settings.adaptiveHeight&&o.viewport.height()!=v()&&o.viewport.animate({height:v()},o.settings.adaptiveHeightSpeed);var s=0,n={left:0,top:0};if(!o.settings.infiniteLoop&&o.carousel&&o.active.last)if("horizontal"==o.settings.mode){var a=o.children.eq(o.children.length-1);n=a.position(),s=o.viewport.width()-a.outerWidth()}else{var l=o.children.length-o.settings.minSlides;n=o.children.eq(l).position()}else if(o.carousel&&o.active.last&&"prev"==i){var d=1==o.settings.moveSlides?o.settings.maxSlides-m():(x()-1)*m()-(o.children.length-o.settings.maxSlides),a=r.children(".bx-clone").eq(d);n=a.position()}else if("next"==i&&0==o.active.index)n=r.find("> .bx-clone").eq(o.settings.maxSlides).position(),o.active.last=!1;else if(e>=0){var c=e*m();n=o.children.eq(c).position()}if("undefined"!=typeof n){var g="horizontal"==o.settings.mode?-(n.left-s):-n.top;b(g,"slide",o.settings.speed)}}},r.goToNextSlide=function(){if(o.settings.infiniteLoop||!o.active.last){var t=parseInt(o.active.index)+1;r.goToSlide(t,"next")}},r.goToPrevSlide=function(){if(o.settings.infiniteLoop||0!=o.active.index){var t=parseInt(o.active.index)-1;r.goToSlide(t,"prev")}},r.startAuto=function(t){o.interval||(o.interval=setInterval(function(){"next"==o.settings.autoDirection?r.goToNextSlide():r.goToPrevSlide()},o.settings.pause),o.settings.autoControls&&1!=t&&A("stop"))},r.stopAuto=function(t){o.interval&&(clearInterval(o.interval),o.interval=null,o.settings.autoControls&&1!=t&&A("start"))},r.getCurrentSlide=function(){return o.active.index},r.getCurrentSlideElement=function(){return o.children.eq(o.active.index)},r.getSlideCount=function(){return o.children.length},r.redrawSlider=function(){o.children.add(r.find(".bx-clone")).outerWidth(u()),o.viewport.css("height",v()),o.settings.ticker||S(),o.active.last&&(o.active.index=x()-1),o.active.index>=x()&&(o.active.last=!0),o.settings.pager&&!o.settings.pagerCustom&&(w(),q(o.active.index))},r.destroySlider=function(){o.initialized&&(o.initialized=!1,t(".bx-clone",this).remove(),o.children.each(function(){void 0!=t(this).data("origStyle")?t(this).attr("style",t(this).data("origStyle")):t(this).removeAttr("style")}),void 0!=t(this).data("origStyle")?this.attr("style",t(this).data("origStyle")):t(this).removeAttr("style"),t(this).unwrap().unwrap(),o.controls.el&&o.controls.el.remove(),o.controls.next&&o.controls.next.remove(),o.controls.prev&&o.controls.prev.remove(),o.pagerEl&&o.settings.controls&&o.pagerEl.remove(),t(".bx-caption",this).remove(),o.controls.autoEl&&o.controls.autoEl.remove(),clearInterval(o.interval),o.settings.responsive&&t(window).unbind("resize",Z))},r.reloadSlider=function(t){void 0!=t&&(n=t),r.destroySlider(),d()},d(),this}}(jQuery);
 
 
 
 
 
 
 
 
 
 
bxslider/jquery.min.js DELETED
@@ -1,2 +0,0 @@
1
- /*! jQuery v1.8.2 jquery.com | jquery.org/license */
2
- (function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:+d+""===d?+d:H.test(d)?p.parseJSON(d):d}catch(f){}p.data(a,c,d)}else d=b}return d}function K(a){var b;for(b in a){if(b==="data"&&p.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function ba(){return!1}function bb(){return!0}function bh(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function bi(a,b){do a=a[b];while(a&&a.nodeType!==1);return a}function bj(a,b,c){b=b||0;if(p.isFunction(b))return p.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return p.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=p.grep(a,function(a){return a.nodeType===1});if(be.test(b))return p.filter(b,d,!c);b=p.filter(b,d)}return p.grep(a,function(a,d){return p.inArray(a,b)>=0===c})}function bk(a){var b=bl.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}function bC(a,b){return a.getElementsByTagName(b)[0]||a.appendChild(a.ownerDocument.createElement(b))}function bD(a,b){if(b.nodeType!==1||!p.hasData(a))return;var c,d,e,f=p._data(a),g=p._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;d<e;d++)p.event.add(b,c,h[c][d])}g.data&&(g.data=p.extend({},g.data))}function bE(a,b){var c;if(b.nodeType!==1)return;b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase(),c==="object"?(b.parentNode&&(b.outerHTML=a.outerHTML),p.support.html5Clone&&a.innerHTML&&!p.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):c==="input"&&bv.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):c==="option"?b.selected=a.defaultSelected:c==="input"||c==="textarea"?b.defaultValue=a.defaultValue:c==="script"&&b.text!==a.text&&(b.text=a.text),b.removeAttribute(p.expando)}function bF(a){return typeof a.getElementsByTagName!="undefined"?a.getElementsByTagName("*"):typeof a.querySelectorAll!="undefined"?a.querySelectorAll("*"):[]}function bG(a){bv.test(a.type)&&(a.defaultChecked=a.checked)}function bY(a,b){if(b in a)return b;var c=b.charAt(0).toUpperCase()+b.slice(1),d=b,e=bW.length;while(e--){b=bW[e]+c;if(b in a)return b}return d}function bZ(a,b){return a=b||a,p.css(a,"display")==="none"||!p.contains(a.ownerDocument,a)}function b$(a,b){var c,d,e=[],f=0,g=a.length;for(;f<g;f++){c=a[f];if(!c.style)continue;e[f]=p._data(c,"olddisplay"),b?(!e[f]&&c.style.display==="none"&&(c.style.display=""),c.style.display===""&&bZ(c)&&(e[f]=p._data(c,"olddisplay",cc(c.nodeName)))):(d=bH(c,"display"),!e[f]&&d!=="none"&&p._data(c,"olddisplay",d))}for(f=0;f<g;f++){c=a[f];if(!c.style)continue;if(!b||c.style.display==="none"||c.style.display==="")c.style.display=b?e[f]||"":"none"}return a}function b_(a,b,c){var d=bP.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function ca(a,b,c,d){var e=c===(d?"border":"content")?4:b==="width"?1:0,f=0;for(;e<4;e+=2)c==="margin"&&(f+=p.css(a,c+bV[e],!0)),d?(c==="content"&&(f-=parseFloat(bH(a,"padding"+bV[e]))||0),c!=="margin"&&(f-=parseFloat(bH(a,"border"+bV[e]+"Width"))||0)):(f+=parseFloat(bH(a,"padding"+bV[e]))||0,c!=="padding"&&(f+=parseFloat(bH(a,"border"+bV[e]+"Width"))||0));return f}function cb(a,b,c){var d=b==="width"?a.offsetWidth:a.offsetHeight,e=!0,f=p.support.boxSizing&&p.css(a,"boxSizing")==="border-box";if(d<=0||d==null){d=bH(a,b);if(d<0||d==null)d=a.style[b];if(bQ.test(d))return d;e=f&&(p.support.boxSizingReliable||d===a.style[b]),d=parseFloat(d)||0}return d+ca(a,b,c||(f?"border":"content"),e)+"px"}function cc(a){if(bS[a])return bS[a];var b=p("<"+a+">").appendTo(e.body),c=b.css("display");b.remove();if(c==="none"||c===""){bI=e.body.appendChild(bI||p.extend(e.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!bJ||!bI.createElement)bJ=(bI.contentWindow||bI.contentDocument).document,bJ.write("<!doctype html><html><body>"),bJ.close();b=bJ.body.appendChild(bJ.createElement(a)),c=bH(b,"display"),e.body.removeChild(bI)}return bS[a]=c,c}function ci(a,b,c,d){var e;if(p.isArray(b))p.each(b,function(b,e){c||ce.test(a)?d(a,e):ci(a+"["+(typeof e=="object"?b:"")+"]",e,c,d)});else if(!c&&p.type(b)==="object")for(e in b)ci(a+"["+e+"]",b[e],c,d);else d(a,b)}function cz(a){return function(b,c){typeof b!="string"&&(c=b,b="*");var d,e,f,g=b.toLowerCase().split(s),h=0,i=g.length;if(p.isFunction(c))for(;h<i;h++)d=g[h],f=/^\+/.test(d),f&&(d=d.substr(1)||"*"),e=a[d]=a[d]||[],e[f?"unshift":"push"](c)}}function cA(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h,i=a[f],j=0,k=i?i.length:0,l=a===cv;for(;j<k&&(l||!h);j++)h=i[j](c,d,e),typeof h=="string"&&(!l||g[h]?h=b:(c.dataTypes.unshift(h),h=cA(a,c,d,e,h,g)));return(l||!h)&&!g["*"]&&(h=cA(a,c,d,e,"*",g)),h}function cB(a,c){var d,e,f=p.ajaxSettings.flatOptions||{};for(d in c)c[d]!==b&&((f[d]?a:e||(e={}))[d]=c[d]);e&&p.extend(!0,a,e)}function cC(a,c,d){var e,f,g,h,i=a.contents,j=a.dataTypes,k=a.responseFields;for(f in k)f in d&&(c[k[f]]=d[f]);while(j[0]==="*")j.shift(),e===b&&(e=a.mimeType||c.getResponseHeader("content-type"));if(e)for(f in i)if(i[f]&&i[f].test(e)){j.unshift(f);break}if(j[0]in d)g=j[0];else{for(f in d){if(!j[0]||a.converters[f+" "+j[0]]){g=f;break}h||(h=f)}g=g||h}if(g)return g!==j[0]&&j.unshift(g),d[g]}function cD(a,b){var c,d,e,f,g=a.dataTypes.slice(),h=g[0],i={},j=0;a.dataFilter&&(b=a.dataFilter(b,a.dataType));if(g[1])for(c in a.converters)i[c.toLowerCase()]=a.converters[c];for(;e=g[++j];)if(e!=="*"){if(h!=="*"&&h!==e){c=i[h+" "+e]||i["* "+e];if(!c)for(d in i){f=d.split(" ");if(f[1]===e){c=i[h+" "+f[0]]||i["* "+f[0]];if(c){c===!0?c=i[d]:i[d]!==!0&&(e=f[0],g.splice(j--,0,e));break}}}if(c!==!0)if(c&&a["throws"])b=c(b);else try{b=c(b)}catch(k){return{state:"parsererror",error:c?k:"No conversion from "+h+" to "+e}}}h=e}return{state:"success",data:b}}function cL(){try{return new a.XMLHttpRequest}catch(b){}}function cM(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function cU(){return setTimeout(function(){cN=b},0),cN=p.now()}function cV(a,b){p.each(b,function(b,c){var d=(cT[b]||[]).concat(cT["*"]),e=0,f=d.length;for(;e<f;e++)if(d[e].call(a,b,c))return})}function cW(a,b,c){var d,e=0,f=0,g=cS.length,h=p.Deferred().always(function(){delete i.elem}),i=function(){var b=cN||cU(),c=Math.max(0,j.startTime+j.duration-b),d=1-(c/j.duration||0),e=0,f=j.tweens.length;for(;e<f;e++)j.tweens[e].run(d);return h.notifyWith(a,[j,d,c]),d<1&&f?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:p.extend({},b),opts:p.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:cN||cU(),duration:c.duration,tweens:[],createTween:function(b,c,d){var e=p.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(e),e},stop:function(b){var c=0,d=b?j.tweens.length:0;for(;c<d;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;cX(k,j.opts.specialEasing);for(;e<g;e++){d=cS[e].call(j,a,k,j.opts);if(d)return d}return cV(j,k),p.isFunction(j.opts.start)&&j.opts.start.call(a,j),p.fx.timer(p.extend(i,{anim:j,queue:j.opts.queue,elem:a})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}function cX(a,b){var c,d,e,f,g;for(c in a){d=p.camelCase(c),e=b[d],f=a[c],p.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=p.cssHooks[d];if(g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}}function cY(a,b,c){var d,e,f,g,h,i,j,k,l=this,m=a.style,n={},o=[],q=a.nodeType&&bZ(a);c.queue||(j=p._queueHooks(a,"fx"),j.unqueued==null&&(j.unqueued=0,k=j.empty.fire,j.empty.fire=function(){j.unqueued||k()}),j.unqueued++,l.always(function(){l.always(function(){j.unqueued--,p.queue(a,"fx").length||j.empty.fire()})})),a.nodeType===1&&("height"in b||"width"in b)&&(c.overflow=[m.overflow,m.overflowX,m.overflowY],p.css(a,"display")==="inline"&&p.css(a,"float")==="none"&&(!p.support.inlineBlockNeedsLayout||cc(a.nodeName)==="inline"?m.display="inline-block":m.zoom=1)),c.overflow&&(m.overflow="hidden",p.support.shrinkWrapBlocks||l.done(function(){m.overflow=c.overflow[0],m.overflowX=c.overflow[1],m.overflowY=c.overflow[2]}));for(d in b){f=b[d];if(cP.exec(f)){delete b[d];if(f===(q?"hide":"show"))continue;o.push(d)}}g=o.length;if(g){h=p._data(a,"fxshow")||p._data(a,"fxshow",{}),q?p(a).show():l.done(function(){p(a).hide()}),l.done(function(){var b;p.removeData(a,"fxshow",!0);for(b in n)p.style(a,b,n[b])});for(d=0;d<g;d++)e=o[d],i=l.createTween(e,q?h[e]:0),n[e]=h[e]||p.style(a,e),e in h||(h[e]=i.start,q&&(i.end=i.start,i.start=e==="width"||e==="height"?1:0))}}function cZ(a,b,c,d,e){return new cZ.prototype.init(a,b,c,d,e)}function c$(a,b){var c,d={height:a},e=0;b=b?1:0;for(;e<4;e+=2-b)c=bV[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function da(a){return p.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}var c,d,e=a.document,f=a.location,g=a.navigator,h=a.jQuery,i=a.$,j=Array.prototype.push,k=Array.prototype.slice,l=Array.prototype.indexOf,m=Object.prototype.toString,n=Object.prototype.hasOwnProperty,o=String.prototype.trim,p=function(a,b){return new p.fn.init(a,b,c)},q=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,r=/\S/,s=/\s+/,t=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,u=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^[\],:{}\s]*$/,x=/(?:^|:|,)(?:\s*\[)+/g,y=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,z=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,A=/^-ms-/,B=/-([\da-z])/gi,C=function(a,b){return(b+"").toUpperCase()},D=function(){e.addEventListener?(e.removeEventListener("DOMContentLoaded",D,!1),p.ready()):e.readyState==="complete"&&(e.detachEvent("onreadystatechange",D),p.ready())},E={};p.fn=p.prototype={constructor:p,init:function(a,c,d){var f,g,h,i;if(!a)return this;if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if(typeof a=="string"){a.charAt(0)==="<"&&a.charAt(a.length-1)===">"&&a.length>=3?f=[null,a,null]:f=u.exec(a);if(f&&(f[1]||!c)){if(f[1])return c=c instanceof p?c[0]:c,i=c&&c.nodeType?c.ownerDocument||c:e,a=p.parseHTML(f[1],i,!0),v.test(f[1])&&p.isPlainObject(c)&&this.attr.call(a,c,!0),p.merge(this,a);g=e.getElementById(f[2]);if(g&&g.parentNode){if(g.id!==f[2])return d.find(a);this.length=1,this[0]=g}return this.context=e,this.selector=a,this}return!c||c.jquery?(c||d).find(a):this.constructor(c).find(a)}return p.isFunction(a)?d.ready(a):(a.selector!==b&&(this.selector=a.selector,this.context=a.context),p.makeArray(a,this))},selector:"",jquery:"1.8.2",length:0,size:function(){return this.length},toArray:function(){return k.call(this)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=p.merge(this.constructor(),a);return d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")"),d},each:function(a,b){return p.each(this,a,b)},ready:function(a){return p.ready.promise().done(a),this},eq:function(a){return a=+a,a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(k.apply(this,arguments),"slice",k.call(arguments).join(","))},map:function(a){return this.pushStack(p.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:j,sort:[].sort,splice:[].splice},p.fn.init.prototype=p.fn,p.extend=p.fn.extend=function(){var a,c,d,e,f,g,h=arguments[0]||{},i=1,j=arguments.length,k=!1;typeof h=="boolean"&&(k=h,h=arguments[1]||{},i=2),typeof h!="object"&&!p.isFunction(h)&&(h={}),j===i&&(h=this,--i);for(;i<j;i++)if((a=arguments[i])!=null)for(c in a){d=h[c],e=a[c];if(h===e)continue;k&&e&&(p.isPlainObject(e)||(f=p.isArray(e)))?(f?(f=!1,g=d&&p.isArray(d)?d:[]):g=d&&p.isPlainObject(d)?d:{},h[c]=p.extend(k,g,e)):e!==b&&(h[c]=e)}return h},p.extend({noConflict:function(b){return a.$===p&&(a.$=i),b&&a.jQuery===p&&(a.jQuery=h),p},isReady:!1,readyWait:1,holdReady:function(a){a?p.readyWait++:p.ready(!0)},ready:function(a){if(a===!0?--p.readyWait:p.isReady)return;if(!e.body)return setTimeout(p.ready,1);p.isReady=!0;if(a!==!0&&--p.readyWait>0)return;d.resolveWith(e,[p]),p.fn.trigger&&p(e).trigger("ready").off("ready")},isFunction:function(a){return p.type(a)==="function"},isArray:Array.isArray||function(a){return p.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):E[m.call(a)]||"object"},isPlainObject:function(a){if(!a||p.type(a)!=="object"||a.nodeType||p.isWindow(a))return!1;try{if(a.constructor&&!n.call(a,"constructor")&&!n.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||n.call(a,d)},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},error:function(a){throw new Error(a)},parseHTML:function(a,b,c){var d;return!a||typeof a!="string"?null:(typeof b=="boolean"&&(c=b,b=0),b=b||e,(d=v.exec(a))?[b.createElement(d[1])]:(d=p.buildFragment([a],b,c?null:[]),p.merge([],(d.cacheable?p.clone(d.fragment):d.fragment).childNodes)))},parseJSON:function(b){if(!b||typeof b!="string")return null;b=p.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(w.test(b.replace(y,"@").replace(z,"]").replace(x,"")))return(new Function("return "+b))();p.error("Invalid JSON: "+b)},parseXML:function(c){var d,e;if(!c||typeof c!="string")return null;try{a.DOMParser?(e=new DOMParser,d=e.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(f){d=b}return(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&p.error("Invalid XML: "+c),d},noop:function(){},globalEval:function(b){b&&r.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(A,"ms-").replace(B,C)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,c,d){var e,f=0,g=a.length,h=g===b||p.isFunction(a);if(d){if(h){for(e in a)if(c.apply(a[e],d)===!1)break}else for(;f<g;)if(c.apply(a[f++],d)===!1)break}else if(h){for(e in a)if(c.call(a[e],e,a[e])===!1)break}else for(;f<g;)if(c.call(a[f],f,a[f++])===!1)break;return a},trim:o&&!o.call(" ")?function(a){return a==null?"":o.call(a)}:function(a){return a==null?"":(a+"").replace(t,"")},makeArray:function(a,b){var c,d=b||[];return a!=null&&(c=p.type(a),a.length==null||c==="string"||c==="function"||c==="regexp"||p.isWindow(a)?j.call(d,a):p.merge(d,a)),d},inArray:function(a,b,c){var d;if(b){if(l)return l.call(b,a,c);d=b.length,c=c?c<0?Math.max(0,d+c):c:0;for(;c<d;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,c){var d=c.length,e=a.length,f=0;if(typeof d=="number")for(;f<d;f++)a[e++]=c[f];else while(c[f]!==b)a[e++]=c[f++];return a.length=e,a},grep:function(a,b,c){var d,e=[],f=0,g=a.length;c=!!c;for(;f<g;f++)d=!!b(a[f],f),c!==d&&e.push(a[f]);return e},map:function(a,c,d){var e,f,g=[],h=0,i=a.length,j=a instanceof p||i!==b&&typeof i=="number"&&(i>0&&a[0]&&a[i-1]||i===0||p.isArray(a));if(j)for(;h<i;h++)e=c(a[h],h,d),e!=null&&(g[g.length]=e);else for(f in a)e=c(a[f],f,d),e!=null&&(g[g.length]=e);return g.concat.apply([],g)},guid:1,proxy:function(a,c){var d,e,f;return typeof c=="string"&&(d=a[c],c=a,a=d),p.isFunction(a)?(e=k.call(arguments,2),f=function(){return a.apply(c,e.concat(k.call(arguments)))},f.guid=a.guid=a.guid||p.guid++,f):b},access:function(a,c,d,e,f,g,h){var i,j=d==null,k=0,l=a.length;if(d&&typeof d=="object"){for(k in d)p.access(a,c,k,d[k],1,g,e);f=1}else if(e!==b){i=h===b&&p.isFunction(e),j&&(i?(i=c,c=function(a,b,c){return i.call(p(a),c)}):(c.call(a,e),c=null));if(c)for(;k<l;k++)c(a[k],d,i?e.call(a[k],k,c(a[k],d)):e,h);f=1}return f?a:j?c.call(a):l?c(a[0],d):g},now:function(){return(new Date).getTime()}}),p.ready.promise=function(b){if(!d){d=p.Deferred();if(e.readyState==="complete")setTimeout(p.ready,1);else if(e.addEventListener)e.addEventListener("DOMContentLoaded",D,!1),a.addEventListener("load",p.ready,!1);else{e.attachEvent("onreadystatechange",D),a.attachEvent("onload",p.ready);var c=!1;try{c=a.frameElement==null&&e.documentElement}catch(f){}c&&c.doScroll&&function g(){if(!p.isReady){try{c.doScroll("left")}catch(a){return setTimeout(g,50)}p.ready()}}()}}return d.promise(b)},p.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){E["[object "+b+"]"]=b.toLowerCase()}),c=p(e);var F={};p.Callbacks=function(a){a=typeof a=="string"?F[a]||G(a):p.extend({},a);var c,d,e,f,g,h,i=[],j=!a.once&&[],k=function(b){c=a.memory&&b,d=!0,h=f||0,f=0,g=i.length,e=!0;for(;i&&h<g;h++)if(i[h].apply(b[0],b[1])===!1&&a.stopOnFalse){c=!1;break}e=!1,i&&(j?j.length&&k(j.shift()):c?i=[]:l.disable())},l={add:function(){if(i){var b=i.length;(function d(b){p.each(b,function(b,c){var e=p.type(c);e==="function"&&(!a.unique||!l.has(c))?i.push(c):c&&c.length&&e!=="string"&&d(c)})})(arguments),e?g=i.length:c&&(f=b,k(c))}return this},remove:function(){return i&&p.each(arguments,function(a,b){var c;while((c=p.inArray(b,i,c))>-1)i.splice(c,1),e&&(c<=g&&g--,c<=h&&h--)}),this},has:function(a){return p.inArray(a,i)>-1},empty:function(){return i=[],this},disable:function(){return i=j=c=b,this},disabled:function(){return!i},lock:function(){return j=b,c||l.disable(),this},locked:function(){return!j},fireWith:function(a,b){return b=b||[],b=[a,b.slice?b.slice():b],i&&(!d||j)&&(e?j.push(b):k(b)),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!d}};return l},p.extend({Deferred:function(a){var b=[["resolve","done",p.Callbacks("once memory"),"resolved"],["reject","fail",p.Callbacks("once memory"),"rejected"],["notify","progress",p.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return p.Deferred(function(c){p.each(b,function(b,d){var f=d[0],g=a[b];e[d[1]](p.isFunction(g)?function(){var a=g.apply(this,arguments);a&&p.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f+"With"](this===e?c:this,[a])}:c[f])}),a=null}).promise()},promise:function(a){return a!=null?p.extend(a,d):d}},e={};return d.pipe=d.then,p.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[a^1][2].disable,b[2][2].lock),e[f[0]]=g.fire,e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=k.call(arguments),d=c.length,e=d!==1||a&&p.isFunction(a.promise)?d:0,f=e===1?a:p.Deferred(),g=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?k.call(arguments):d,c===h?f.notifyWith(b,c):--e||f.resolveWith(b,c)}},h,i,j;if(d>1){h=new Array(d),i=new Array(d),j=new Array(d);for(;b<d;b++)c[b]&&p.isFunction(c[b].promise)?c[b].promise().done(g(b,j,c)).fail(f.reject).progress(g(b,i,h)):--e}return e||f.resolveWith(j,c),f.promise()}}),p.support=function(){var b,c,d,f,g,h,i,j,k,l,m,n=e.createElement("div");n.setAttribute("className","t"),n.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",c=n.getElementsByTagName("*"),d=n.getElementsByTagName("a")[0],d.style.cssText="top:1px;float:left;opacity:.5";if(!c||!c.length)return{};f=e.createElement("select"),g=f.appendChild(e.createElement("option")),h=n.getElementsByTagName("input")[0],b={leadingWhitespace:n.firstChild.nodeType===3,tbody:!n.getElementsByTagName("tbody").length,htmlSerialize:!!n.getElementsByTagName("link").length,style:/top/.test(d.getAttribute("style")),hrefNormalized:d.getAttribute("href")==="/a",opacity:/^0.5/.test(d.style.opacity),cssFloat:!!d.style.cssFloat,checkOn:h.value==="on",optSelected:g.selected,getSetAttribute:n.className!=="t",enctype:!!e.createElement("form").enctype,html5Clone:e.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",boxModel:e.compatMode==="CSS1Compat",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},h.checked=!0,b.noCloneChecked=h.cloneNode(!0).checked,f.disabled=!0,b.optDisabled=!g.disabled;try{delete n.test}catch(o){b.deleteExpando=!1}!n.addEventListener&&n.attachEvent&&n.fireEvent&&(n.attachEvent("onclick",m=function(){b.noCloneEvent=!1}),n.cloneNode(!0).fireEvent("onclick"),n.detachEvent("onclick",m)),h=e.createElement("input"),h.value="t",h.setAttribute("type","radio"),b.radioValue=h.value==="t",h.setAttribute("checked","checked"),h.setAttribute("name","t"),n.appendChild(h),i=e.createDocumentFragment(),i.appendChild(n.lastChild),b.checkClone=i.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=h.checked,i.removeChild(h),i.appendChild(n);if(n.attachEvent)for(k in{submit:!0,change:!0,focusin:!0})j="on"+k,l=j in n,l||(n.setAttribute(j,"return;"),l=typeof n[j]=="function"),b[k+"Bubbles"]=l;return p(function(){var c,d,f,g,h="padding:0;margin:0;border:0;display:block;overflow:hidden;",i=e.getElementsByTagName("body")[0];if(!i)return;c=e.createElement("div"),c.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",i.insertBefore(c,i.firstChild),d=e.createElement("div"),c.appendChild(d),d.innerHTML="<table><tr><td></td><td>t</td></tr></table>",f=d.getElementsByTagName("td"),f[0].style.cssText="padding:0;margin:0;border:0;display:none",l=f[0].offsetHeight===0,f[0].style.display="",f[1].style.display="none",b.reliableHiddenOffsets=l&&f[0].offsetHeight===0,d.innerHTML="",d.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",b.boxSizing=d.offsetWidth===4,b.doesNotIncludeMarginInBodyOffset=i.offsetTop!==1,a.getComputedStyle&&(b.pixelPosition=(a.getComputedStyle(d,null)||{}).top!=="1%",b.boxSizingReliable=(a.getComputedStyle(d,null)||{width:"4px"}).width==="4px",g=e.createElement("div"),g.style.cssText=d.style.cssText=h,g.style.marginRight=g.style.width="0",d.style.width="1px",d.appendChild(g),b.reliableMarginRight=!parseFloat((a.getComputedStyle(g,null)||{}).marginRight)),typeof d.style.zoom!="undefined"&&(d.innerHTML="",d.style.cssText=h+"width:1px;padding:1px;display:inline;zoom:1",b.inlineBlockNeedsLayout=d.offsetWidth===3,d.style.display="block",d.style.overflow="visible",d.innerHTML="<div></div>",d.firstChild.style.width="5px",b.shrinkWrapBlocks=d.offsetWidth!==3,c.style.zoom=1),i.removeChild(c),c=d=f=g=null}),i.removeChild(n),c=d=f=g=h=i=n=null,b}();var H=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,I=/([A-Z])/g;p.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(p.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){return a=a.nodeType?p.cache[a[p.expando]]:a[p.expando],!!a&&!K(a)},data:function(a,c,d,e){if(!p.acceptData(a))return;var f,g,h=p.expando,i=typeof c=="string",j=a.nodeType,k=j?p.cache:a,l=j?a[h]:a[h]&&h;if((!l||!k[l]||!e&&!k[l].data)&&i&&d===b)return;l||(j?a[h]=l=p.deletedIds.pop()||p.guid++:l=h),k[l]||(k[l]={},j||(k[l].toJSON=p.noop));if(typeof c=="object"||typeof c=="function")e?k[l]=p.extend(k[l],c):k[l].data=p.extend(k[l].data,c);return f=k[l],e||(f.data||(f.data={}),f=f.data),d!==b&&(f[p.camelCase(c)]=d),i?(g=f[c],g==null&&(g=f[p.camelCase(c)])):g=f,g},removeData:function(a,b,c){if(!p.acceptData(a))return;var d,e,f,g=a.nodeType,h=g?p.cache:a,i=g?a[p.expando]:p.expando;if(!h[i])return;if(b){d=c?h[i]:h[i].data;if(d){p.isArray(b)||(b in d?b=[b]:(b=p.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,f=b.length;e<f;e++)delete d[b[e]];if(!(c?K:p.isEmptyObject)(d))return}}if(!c){delete h[i].data;if(!K(h[i]))return}g?p.cleanData([a],!0):p.support.deleteExpando||h!=h.window?delete h[i]:h[i]=null},_data:function(a,b,c){return p.data(a,b,c,!0)},acceptData:function(a){var b=a.nodeName&&p.noData[a.nodeName.toLowerCase()];return!b||b!==!0&&a.getAttribute("classid")===b}}),p.fn.extend({data:function(a,c){var d,e,f,g,h,i=this[0],j=0,k=null;if(a===b){if(this.length){k=p.data(i);if(i.nodeType===1&&!p._data(i,"parsedAttrs")){f=i.attributes;for(h=f.length;j<h;j++)g=f[j].name,g.indexOf("data-")||(g=p.camelCase(g.substring(5)),J(i,g,k[g]));p._data(i,"parsedAttrs",!0)}}return k}return typeof a=="object"?this.each(function(){p.data(this,a)}):(d=a.split(".",2),d[1]=d[1]?"."+d[1]:"",e=d[1]+"!",p.access(this,function(c){if(c===b)return k=this.triggerHandler("getData"+e,[d[0]]),k===b&&i&&(k=p.data(i,a),k=J(i,a,k)),k===b&&d[1]?this.data(d[0]):k;d[1]=c,this.each(function(){var b=p(this);b.triggerHandler("setData"+e,d),p.data(this,a,c),b.triggerHandler("changeData"+e,d)})},null,c,arguments.length>1,null,!1))},removeData:function(a){return this.each(function(){p.removeData(this,a)})}}),p.extend({queue:function(a,b,c){var d;if(a)return b=(b||"fx")+"queue",d=p._data(a,b),c&&(!d||p.isArray(c)?d=p._data(a,b,p.makeArray(c)):d.push(c)),d||[]},dequeue:function(a,b){b=b||"fx";var c=p.queue(a,b),d=c.length,e=c.shift(),f=p._queueHooks(a,b),g=function(){p.dequeue(a,b)};e==="inprogress"&&(e=c.shift(),d--),e&&(b==="fx"&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return p._data(a,c)||p._data(a,c,{empty:p.Callbacks("once memory").add(function(){p.removeData(a,b+"queue",!0),p.removeData(a,c,!0)})})}}),p.fn.extend({queue:function(a,c){var d=2;return typeof a!="string"&&(c=a,a="fx",d--),arguments.length<d?p.queue(this[0],a):c===b?this:this.each(function(){var b=p.queue(this,a,c);p._queueHooks(this,a),a==="fx"&&b[0]!=="inprogress"&&p.dequeue(this,a)})},dequeue:function(a){return this.each(function(){p.dequeue(this,a)})},delay:function(a,b){return a=p.fx?p.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){var d,e=1,f=p.Deferred(),g=this,h=this.length,i=function(){--e||f.resolveWith(g,[g])};typeof a!="string"&&(c=a,a=b),a=a||"fx";while(h--)d=p._data(g[h],a+"queueHooks"),d&&d.empty&&(e++,d.empty.add(i));return i(),f.promise(c)}});var L,M,N,O=/[\t\r\n]/g,P=/\r/g,Q=/^(?:button|input)$/i,R=/^(?:button|input|object|select|textarea)$/i,S=/^a(?:rea|)$/i,T=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,U=p.support.getSetAttribute;p.fn.extend({attr:function(a,b){return p.access(this,p.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){p.removeAttr(this,a)})},prop:function(a,b){return p.access(this,p.prop,a,b,arguments.length>1)},removeProp:function(a){return a=p.propFix[a]||a,this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,f,g,h;if(p.isFunction(a))return this.each(function(b){p(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(s);for(c=0,d=this.length;c<d;c++){e=this[c];if(e.nodeType===1)if(!e.className&&b.length===1)e.className=a;else{f=" "+e.className+" ";for(g=0,h=b.length;g<h;g++)f.indexOf(" "+b[g]+" ")<0&&(f+=b[g]+" ");e.className=p.trim(f)}}}return this},removeClass:function(a){var c,d,e,f,g,h,i;if(p.isFunction(a))return this.each(function(b){p(this).removeClass(a.call(this,b,this.className))});if(a&&typeof a=="string"||a===b){c=(a||"").split(s);for(h=0,i=this.length;h<i;h++){e=this[h];if(e.nodeType===1&&e.className){d=(" "+e.className+" ").replace(O," ");for(f=0,g=c.length;f<g;f++)while(d.indexOf(" "+c[f]+" ")>=0)d=d.replace(" "+c[f]+" "," ");e.className=a?p.trim(d):""}}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";return p.isFunction(a)?this.each(function(c){p(this).toggleClass(a.call(this,c,this.className,b),b)}):this.each(function(){if(c==="string"){var e,f=0,g=p(this),h=b,i=a.split(s);while(e=i[f++])h=d?h:!g.hasClass(e),g[h?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className&&p._data(this,"__className__",this.className),this.className=this.className||a===!1?"":p._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ",c=0,d=this.length;for(;c<d;c++)if(this[c].nodeType===1&&(" "+this[c].className+" ").replace(O," ").indexOf(b)>=0)return!0;return!1},val:function(a){var c,d,e,f=this[0];if(!arguments.length){if(f)return c=p.valHooks[f.type]||p.valHooks[f.nodeName.toLowerCase()],c&&"get"in c&&(d=c.get(f,"value"))!==b?d:(d=f.value,typeof d=="string"?d.replace(P,""):d==null?"":d);return}return e=p.isFunction(a),this.each(function(d){var f,g=p(this);if(this.nodeType!==1)return;e?f=a.call(this,d,g.val()):f=a,f==null?f="":typeof f=="number"?f+="":p.isArray(f)&&(f=p.map(f,function(a){return a==null?"":a+""})),c=p.valHooks[this.type]||p.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,f,"value")===b)this.value=f})}}),p.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,f=a.selectedIndex,g=[],h=a.options,i=a.type==="select-one";if(f<0)return null;c=i?f:0,d=i?f+1:h.length;for(;c<d;c++){e=h[c];if(e.selected&&(p.support.optDisabled?!e.disabled:e.getAttribute("disabled")===null)&&(!e.parentNode.disabled||!p.nodeName(e.parentNode,"optgroup"))){b=p(e).val();if(i)return b;g.push(b)}}return i&&!g.length&&h.length?p(h[f]).val():g},set:function(a,b){var c=p.makeArray(b);return p(a).find("option").each(function(){this.selected=p.inArray(p(this).val(),c)>=0}),c.length||(a.selectedIndex=-1),c}}},attrFn:{},attr:function(a,c,d,e){var f,g,h,i=a.nodeType;if(!a||i===3||i===8||i===2)return;if(e&&p.isFunction(p.fn[c]))return p(a)[c](d);if(typeof a.getAttribute=="undefined")return p.prop(a,c,d);h=i!==1||!p.isXMLDoc(a),h&&(c=c.toLowerCase(),g=p.attrHooks[c]||(T.test(c)?M:L));if(d!==b){if(d===null){p.removeAttr(a,c);return}return g&&"set"in g&&h&&(f=g.set(a,d,c))!==b?f:(a.setAttribute(c,d+""),d)}return g&&"get"in g&&h&&(f=g.get(a,c))!==null?f:(f=a.getAttribute(c),f===null?b:f)},removeAttr:function(a,b){var c,d,e,f,g=0;if(b&&a.nodeType===1){d=b.split(s);for(;g<d.length;g++)e=d[g],e&&(c=p.propFix[e]||e,f=T.test(e),f||p.attr(a,e,""),a.removeAttribute(U?e:c),f&&c in a&&(a[c]=!1))}},attrHooks:{type:{set:function(a,b){if(Q.test(a.nodeName)&&a.parentNode)p.error("type property can't be changed");else if(!p.support.radioValue&&b==="radio"&&p.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}},value:{get:function(a,b){return L&&p.nodeName(a,"button")?L.get(a,b):b in a?a.value:null},set:function(a,b,c){if(L&&p.nodeName(a,"button"))return L.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e,f,g,h=a.nodeType;if(!a||h===3||h===8||h===2)return;return g=h!==1||!p.isXMLDoc(a),g&&(c=p.propFix[c]||c,f=p.propHooks[c]),d!==b?f&&"set"in f&&(e=f.set(a,d,c))!==b?e:a[c]=d:f&&"get"in f&&(e=f.get(a,c))!==null?e:a[c]},propHooks:{tabIndex:{get:function(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.value,10):R.test(a.nodeName)||S.test(a.nodeName)&&a.href?0:b}}}}),M={get:function(a,c){var d,e=p.prop(a,c);return e===!0||typeof e!="boolean"&&(d=a.getAttributeNode(c))&&d.nodeValue!==!1?c.toLowerCase():b},set:function(a,b,c){var d;return b===!1?p.removeAttr(a,c):(d=p.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase())),c}},U||(N={name:!0,id:!0,coords:!0},L=p.valHooks.button={get:function(a,c){var d;return d=a.getAttributeNode(c),d&&(N[c]?d.value!=="":d.specified)?d.value:b},set:function(a,b,c){var d=a.getAttributeNode(c);return d||(d=e.createAttribute(c),a.setAttributeNode(d)),d.value=b+""}},p.each(["width","height"],function(a,b){p.attrHooks[b]=p.extend(p.attrHooks[b],{set:function(a,c){if(c==="")return a.setAttribute(b,"auto"),c}})}),p.attrHooks.contenteditable={get:L.get,set:function(a,b,c){b===""&&(b="false"),L.set(a,b,c)}}),p.support.hrefNormalized||p.each(["href","src","width","height"],function(a,c){p.attrHooks[c]=p.extend(p.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),p.support.style||(p.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=b+""}}),p.support.optSelected||(p.propHooks.selected=p.extend(p.propHooks.selected,{get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null}})),p.support.enctype||(p.propFix.enctype="encoding"),p.support.checkOn||p.each(["radio","checkbox"],function(){p.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),p.each(["radio","checkbox"],function(){p.valHooks[this]=p.extend(p.valHooks[this],{set:function(a,b){if(p.isArray(b))return a.checked=p.inArray(p(a).val(),b)>=0}})});var V=/^(?:textarea|input|select)$/i,W=/^([^\.]*|)(?:\.(.+)|)$/,X=/(?:^|\s)hover(\.\S+|)\b/,Y=/^key/,Z=/^(?:mouse|contextmenu)|click/,$=/^(?:focusinfocus|focusoutblur)$/,_=function(a){return p.event.special.hover?a:a.replace(X,"mouseenter$1 mouseleave$1")};p.event={add:function(a,c,d,e,f){var g,h,i,j,k,l,m,n,o,q,r;if(a.nodeType===3||a.nodeType===8||!c||!d||!(g=p._data(a)))return;d.handler&&(o=d,d=o.handler,f=o.selector),d.guid||(d.guid=p.guid++),i=g.events,i||(g.events=i={}),h=g.handle,h||(g.handle=h=function(a){return typeof p!="undefined"&&(!a||p.event.triggered!==a.type)?p.event.dispatch.apply(h.elem,arguments):b},h.elem=a),c=p.trim(_(c)).split(" ");for(j=0;j<c.length;j++){k=W.exec(c[j])||[],l=k[1],m=(k[2]||"").split(".").sort(),r=p.event.special[l]||{},l=(f?r.delegateType:r.bindType)||l,r=p.event.special[l]||{},n=p.extend({type:l,origType:k[1],data:e,handler:d,guid:d.guid,selector:f,needsContext:f&&p.expr.match.needsContext.test(f),namespace:m.join(".")},o),q=i[l];if(!q){q=i[l]=[],q.delegateCount=0;if(!r.setup||r.setup.call(a,e,m,h)===!1)a.addEventListener?a.addEventListener(l,h,!1):a.attachEvent&&a.attachEvent("on"+l,h)}r.add&&(r.add.call(a,n),n.handler.guid||(n.handler.guid=d.guid)),f?q.splice(q.delegateCount++,0,n):q.push(n),p.event.global[l]=!0}a=null},global:{},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,q,r=p.hasData(a)&&p._data(a);if(!r||!(m=r.events))return;b=p.trim(_(b||"")).split(" ");for(f=0;f<b.length;f++){g=W.exec(b[f])||[],h=i=g[1],j=g[2];if(!h){for(h in m)p.event.remove(a,h+b[f],c,d,!0);continue}n=p.event.special[h]||{},h=(d?n.delegateType:n.bindType)||h,o=m[h]||[],k=o.length,j=j?new RegExp("(^|\\.)"+j.split(".").sort().join("\\.(?:.*\\.|)")+"(\\.|$)"):null;for(l=0;l<o.length;l++)q=o[l],(e||i===q.origType)&&(!c||c.guid===q.guid)&&(!j||j.test(q.namespace))&&(!d||d===q.selector||d==="**"&&q.selector)&&(o.splice(l--,1),q.selector&&o.delegateCount--,n.remove&&n.remove.call(a,q));o.length===0&&k!==o.length&&((!n.teardown||n.teardown.call(a,j,r.handle)===!1)&&p.removeEvent(a,h,r.handle),delete m[h])}p.isEmptyObject(m)&&(delete r.handle,p.removeData(a,"events",!0))},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,d,f,g){if(!f||f.nodeType!==3&&f.nodeType!==8){var h,i,j,k,l,m,n,o,q,r,s=c.type||c,t=[];if($.test(s+p.event.triggered))return;s.indexOf("!")>=0&&(s=s.slice(0,-1),i=!0),s.indexOf(".")>=0&&(t=s.split("."),s=t.shift(),t.sort());if((!f||p.event.customEvent[s])&&!p.event.global[s])return;c=typeof c=="object"?c[p.expando]?c:new p.Event(s,c):new p.Event(s),c.type=s,c.isTrigger=!0,c.exclusive=i,c.namespace=t.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+t.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,m=s.indexOf(":")<0?"on"+s:"";if(!f){h=p.cache;for(j in h)h[j].events&&h[j].events[s]&&p.event.trigger(c,d,h[j].handle.elem,!0);return}c.result=b,c.target||(c.target=f),d=d!=null?p.makeArray(d):[],d.unshift(c),n=p.event.special[s]||{};if(n.trigger&&n.trigger.apply(f,d)===!1)return;q=[[f,n.bindType||s]];if(!g&&!n.noBubble&&!p.isWindow(f)){r=n.delegateType||s,k=$.test(r+s)?f:f.parentNode;for(l=f;k;k=k.parentNode)q.push([k,r]),l=k;l===(f.ownerDocument||e)&&q.push([l.defaultView||l.parentWindow||a,r])}for(j=0;j<q.length&&!c.isPropagationStopped();j++)k=q[j][0],c.type=q[j][1],o=(p._data(k,"events")||{})[c.type]&&p._data(k,"handle"),o&&o.apply(k,d),o=m&&k[m],o&&p.acceptData(k)&&o.apply&&o.apply(k,d)===!1&&c.preventDefault();return c.type=s,!g&&!c.isDefaultPrevented()&&(!n._default||n._default.apply(f.ownerDocument,d)===!1)&&(s!=="click"||!p.nodeName(f,"a"))&&p.acceptData(f)&&m&&f[s]&&(s!=="focus"&&s!=="blur"||c.target.offsetWidth!==0)&&!p.isWindow(f)&&(l=f[m],l&&(f[m]=null),p.event.triggered=s,f[s](),p.event.triggered=b,l&&(f[m]=l)),c.result}return},dispatch:function(c){c=p.event.fix(c||a.event);var d,e,f,g,h,i,j,l,m,n,o=(p._data(this,"events")||{})[c.type]||[],q=o.delegateCount,r=k.call(arguments),s=!c.exclusive&&!c.namespace,t=p.event.special[c.type]||{},u=[];r[0]=c,c.delegateTarget=this;if(t.preDispatch&&t.preDispatch.call(this,c)===!1)return;if(q&&(!c.button||c.type!=="click"))for(f=c.target;f!=this;f=f.parentNode||this)if(f.disabled!==!0||c.type!=="click"){h={},j=[];for(d=0;d<q;d++)l=o[d],m=l.selector,h[m]===b&&(h[m]=l.needsContext?p(m,this).index(f)>=0:p.find(m,this,null,[f]).length),h[m]&&j.push(l);j.length&&u.push({elem:f,matches:j})}o.length>q&&u.push({elem:this,matches:o.slice(q)});for(d=0;d<u.length&&!c.isPropagationStopped();d++){i=u[d],c.currentTarget=i.elem;for(e=0;e<i.matches.length&&!c.isImmediatePropagationStopped();e++){l=i.matches[e];if(s||!c.namespace&&!l.namespace||c.namespace_re&&c.namespace_re.test(l.namespace))c.data=l.data,c.handleObj=l,g=((p.event.special[l.origType]||{}).handle||l.handler).apply(i.elem,r),g!==b&&(c.result=g,g===!1&&(c.preventDefault(),c.stopPropagation()))}}return t.postDispatch&&t.postDispatch.call(this,c),c.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return a.which==null&&(a.which=b.charCode!=null?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,c){var d,f,g,h=c.button,i=c.fromElement;return a.pageX==null&&c.clientX!=null&&(d=a.target.ownerDocument||e,f=d.documentElement,g=d.body,a.pageX=c.clientX+(f&&f.scrollLeft||g&&g.scrollLeft||0)-(f&&f.clientLeft||g&&g.clientLeft||0),a.pageY=c.clientY+(f&&f.scrollTop||g&&g.scrollTop||0)-(f&&f.clientTop||g&&g.clientTop||0)),!a.relatedTarget&&i&&(a.relatedTarget=i===a.target?c.toElement:i),!a.which&&h!==b&&(a.which=h&1?1:h&2?3:h&4?2:0),a}},fix:function(a){if(a[p.expando])return a;var b,c,d=a,f=p.event.fixHooks[a.type]||{},g=f.props?this.props.concat(f.props):this.props;a=p.Event(d);for(b=g.length;b;)c=g[--b],a[c]=d[c];return a.target||(a.target=d.srcElement||e),a.target.nodeType===3&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,f.filter?f.filter(a,d):a},special:{load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,b,c){p.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}},simulate:function(a,b,c,d){var e=p.extend(new p.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?p.event.trigger(e,null,b):p.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},p.event.handle=p.event.dispatch,p.removeEvent=e.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){var d="on"+b;a.detachEvent&&(typeof a[d]=="undefined"&&(a[d]=null),a.detachEvent(d,c))},p.Event=function(a,b){if(this instanceof p.Event)a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?bb:ba):this.type=a,b&&p.extend(this,b),this.timeStamp=a&&a.timeStamp||p.now(),this[p.expando]=!0;else return new p.Event(a,b)},p.Event.prototype={preventDefault:function(){this.isDefaultPrevented=bb;var a=this.originalEvent;if(!a)return;a.preventDefault?a.preventDefault():a.returnValue=!1},stopPropagation:function(){this.isPropagationStopped=bb;var a=this.originalEvent;if(!a)return;a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=bb,this.stopPropagation()},isDefaultPrevented:ba,isPropagationStopped:ba,isImmediatePropagationStopped:ba},p.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){p.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj,g=f.selector;if(!e||e!==d&&!p.contains(d,e))a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b;return c}}}),p.support.submitBubbles||(p.event.special.submit={setup:function(){if(p.nodeName(this,"form"))return!1;p.event.add(this,"click._submit keypress._submit",function(a){var c=a.target,d=p.nodeName(c,"input")||p.nodeName(c,"button")?c.form:b;d&&!p._data(d,"_submit_attached")&&(p.event.add(d,"submit._submit",function(a){a._submit_bubble=!0}),p._data(d,"_submit_attached",!0))})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&p.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){if(p.nodeName(this,"form"))return!1;p.event.remove(this,"._submit")}}),p.support.changeBubbles||(p.event.special.change={setup:function(){if(V.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio")p.event.add(this,"propertychange._change",function(a){a.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),p.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1),p.event.simulate("change",this,a,!0)});return!1}p.event.add(this,"beforeactivate._change",function(a){var b=a.target;V.test(b.nodeName)&&!p._data(b,"_change_attached")&&(p.event.add(b,"change._change",function(a){this.parentNode&&!a.isSimulated&&!a.isTrigger&&p.event.simulate("change",this.parentNode,a,!0)}),p._data(b,"_change_attached",!0))})},handle:function(a){var b=a.target;if(this!==b||a.isSimulated||a.isTrigger||b.type!=="radio"&&b.type!=="checkbox")return a.handleObj.handler.apply(this,arguments)},teardown:function(){return p.event.remove(this,"._change"),!V.test(this.nodeName)}}),p.support.focusinBubbles||p.each({focus:"focusin",blur:"focusout"},function(a,b){var c=0,d=function(a){p.event.simulate(b,a.target,p.event.fix(a),!0)};p.event.special[b]={setup:function(){c++===0&&e.addEventListener(a,d,!0)},teardown:function(){--c===0&&e.removeEventListener(a,d,!0)}}}),p.fn.extend({on:function(a,c,d,e,f){var g,h;if(typeof a=="object"){typeof c!="string"&&(d=d||c,c=b);for(h in a)this.on(h,c,d,a[h],f);return this}d==null&&e==null?(e=c,d=c=b):e==null&&(typeof c=="string"?(e=d,d=b):(e=d,d=c,c=b));if(e===!1)e=ba;else if(!e)return this;return f===1&&(g=e,e=function(a){return p().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=p.guid++)),this.each(function(){p.event.add(this,a,e,d,c)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,c,d){var e,f;if(a&&a.preventDefault&&a.handleObj)return e=a.handleObj,p(a.delegateTarget).off(e.namespace?e.origType+"."+e.namespace:e.origType,e.selector,e.handler),this;if(typeof a=="object"){for(f in a)this.off(f,c,a[f]);return this}if(c===!1||typeof c=="function")d=c,c=b;return d===!1&&(d=ba),this.each(function(){p.event.remove(this,a,d,c)})},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},live:function(a,b,c){return p(this.context).on(a,this.selector,b,c),this},die:function(a,b){return p(this.context).off(a,this.selector||"**",b),this},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return arguments.length===1?this.off(a,"**"):this.off(b,a||"**",c)},trigger:function(a,b){return this.each(function(){p.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return p.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,c=a.guid||p.guid++,d=0,e=function(c){var e=(p._data(this,"lastToggle"+a.guid)||0)%d;return p._data(this,"lastToggle"+a.guid,e+1),c.preventDefault(),b[e].apply(this,arguments)||!1};e.guid=c;while(d<b.length)b[d++].guid=c;return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),p.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){p.fn[b]=function(a,c){return c==null&&(c=a,a=null),arguments.length>0?this.on(b,null,a,c):this.trigger(b)},Y.test(b)&&(p.event.fixHooks[b]=p.event.keyHooks),Z.test(b)&&(p.event.fixHooks[b]=p.event.mouseHooks)}),function(a,b){function bc(a,b,c,d){c=c||[],b=b||r;var e,f,i,j,k=b.nodeType;if(!a||typeof a!="string")return c;if(k!==1&&k!==9)return[];i=g(b);if(!i&&!d)if(e=P.exec(a))if(j=e[1]){if(k===9){f=b.getElementById(j);if(!f||!f.parentNode)return c;if(f.id===j)return c.push(f),c}else if(b.ownerDocument&&(f=b.ownerDocument.getElementById(j))&&h(b,f)&&f.id===j)return c.push(f),c}else{if(e[2])return w.apply(c,x.call(b.getElementsByTagName(a),0)),c;if((j=e[3])&&_&&b.getElementsByClassName)return w.apply(c,x.call(b.getElementsByClassName(j),0)),c}return bp(a.replace(L,"$1"),b,c,d,i)}function bd(a){return function(b){var c=b.nodeName.toLowerCase();return c==="input"&&b.type===a}}function be(a){return function(b){var c=b.nodeName.toLowerCase();return(c==="input"||c==="button")&&b.type===a}}function bf(a){return z(function(b){return b=+b,z(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function bg(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}function bh(a,b){var c,d,f,g,h,i,j,k=C[o][a];if(k)return b?0:k.slice(0);h=a,i=[],j=e.preFilter;while(h){if(!c||(d=M.exec(h)))d&&(h=h.slice(d[0].length)),i.push(f=[]);c=!1;if(d=N.exec(h))f.push(c=new q(d.shift())),h=h.slice(c.length),c.type=d[0].replace(L," ");for(g in e.filter)(d=W[g].exec(h))&&(!j[g]||(d=j[g](d,r,!0)))&&(f.push(c=new q(d.shift())),h=h.slice(c.length),c.type=g,c.matches=d);if(!c)break}return b?h.length:h?bc.error(a):C(a,i).slice(0)}function bi(a,b,d){var e=b.dir,f=d&&b.dir==="parentNode",g=u++;return b.first?function(b,c,d){while(b=b[e])if(f||b.nodeType===1)return a(b,c,d)}:function(b,d,h){if(!h){var i,j=t+" "+g+" ",k=j+c;while(b=b[e])if(f||b.nodeType===1){if((i=b[o])===k)return b.sizset;if(typeof i=="string"&&i.indexOf(j)===0){if(b.sizset)return b}else{b[o]=k;if(a(b,d,h))return b.sizset=!0,b;b.sizset=!1}}}else while(b=b[e])if(f||b.nodeType===1)if(a(b,d,h))return b}}function bj(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function bk(a,b,c,d,e){var f,g=[],h=0,i=a.length,j=b!=null;for(;h<i;h++)if(f=a[h])if(!c||c(f,d,e))g.push(f),j&&b.push(h);return g}function bl(a,b,c,d,e,f){return d&&!d[o]&&(d=bl(d)),e&&!e[o]&&(e=bl(e,f)),z(function(f,g,h,i){if(f&&e)return;var j,k,l,m=[],n=[],o=g.length,p=f||bo(b||"*",h.nodeType?[h]:h,[],f),q=a&&(f||!b)?bk(p,m,a,h,i):p,r=c?e||(f?a:o||d)?[]:g:q;c&&c(q,r,h,i);if(d){l=bk(r,n),d(l,[],h,i),j=l.length;while(j--)if(k=l[j])r[n[j]]=!(q[n[j]]=k)}if(f){j=a&&r.length;while(j--)if(k=r[j])f[m[j]]=!(g[m[j]]=k)}else r=bk(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):w.apply(g,r)})}function bm(a){var b,c,d,f=a.length,g=e.relative[a[0].type],h=g||e.relative[" "],i=g?1:0,j=bi(function(a){return a===b},h,!0),k=bi(function(a){return y.call(b,a)>-1},h,!0),m=[function(a,c,d){return!g&&(d||c!==l)||((b=c).nodeType?j(a,c,d):k(a,c,d))}];for(;i<f;i++)if(c=e.relative[a[i].type])m=[bi(bj(m),c)];else{c=e.filter[a[i].type].apply(null,a[i].matches);if(c[o]){d=++i;for(;d<f;d++)if(e.relative[a[d].type])break;return bl(i>1&&bj(m),i>1&&a.slice(0,i-1).join("").replace(L,"$1"),c,i<d&&bm(a.slice(i,d)),d<f&&bm(a=a.slice(d)),d<f&&a.join(""))}m.push(c)}return bj(m)}function bn(a,b){var d=b.length>0,f=a.length>0,g=function(h,i,j,k,m){var n,o,p,q=[],s=0,u="0",x=h&&[],y=m!=null,z=l,A=h||f&&e.find.TAG("*",m&&i.parentNode||i),B=t+=z==null?1:Math.E;y&&(l=i!==r&&i,c=g.el);for(;(n=A[u])!=null;u++){if(f&&n){for(o=0;p=a[o];o++)if(p(n,i,j)){k.push(n);break}y&&(t=B,c=++g.el)}d&&((n=!p&&n)&&s--,h&&x.push(n))}s+=u;if(d&&u!==s){for(o=0;p=b[o];o++)p(x,q,i,j);if(h){if(s>0)while(u--)!x[u]&&!q[u]&&(q[u]=v.call(k));q=bk(q)}w.apply(k,q),y&&!h&&q.length>0&&s+b.length>1&&bc.uniqueSort(k)}return y&&(t=B,l=z),x};return g.el=0,d?z(g):g}function bo(a,b,c,d){var e=0,f=b.length;for(;e<f;e++)bc(a,b[e],c,d);return c}function bp(a,b,c,d,f){var g,h,j,k,l,m=bh(a),n=m.length;if(!d&&m.length===1){h=m[0]=m[0].slice(0);if(h.length>2&&(j=h[0]).type==="ID"&&b.nodeType===9&&!f&&e.relative[h[1].type]){b=e.find.ID(j.matches[0].replace(V,""),b,f)[0];if(!b)return c;a=a.slice(h.shift().length)}for(g=W.POS.test(a)?-1:h.length-1;g>=0;g--){j=h[g];if(e.relative[k=j.type])break;if(l=e.find[k])if(d=l(j.matches[0].replace(V,""),R.test(h[0].type)&&b.parentNode||b,f)){h.splice(g,1),a=d.length&&h.join("");if(!a)return w.apply(c,x.call(d,0)),c;break}}}return i(a,m)(d,b,f,c,R.test(a)),c}function bq(){}var c,d,e,f,g,h,i,j,k,l,m=!0,n="undefined",o=("sizcache"+Math.random()).replace(".",""),q=String,r=a.document,s=r.documentElement,t=0,u=0,v=[].pop,w=[].push,x=[].slice,y=[].indexOf||function(a){var b=0,c=this.length;for(;b<c;b++)if(this[b]===a)return b;return-1},z=function(a,b){return a[o]=b==null||b,a},A=function(){var a={},b=[];return z(function(c,d){return b.push(c)>e.cacheLength&&delete a[b.shift()],a[c]=d},a)},B=A(),C=A(),D=A(),E="[\\x20\\t\\r\\n\\f]",F="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",G=F.replace("w","w#"),H="([*^$|!~]?=)",I="\\["+E+"*("+F+")"+E+"*(?:"+H+E+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+G+")|)|)"+E+"*\\]",J=":("+F+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+I+")|[^:]|\\\\.)*|.*))\\)|)",K=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+E+"*((?:-\\d)?\\d*)"+E+"*\\)|)(?=[^-]|$)",L=new RegExp("^"+E+"+|((?:^|[^\\\\])(?:\\\\.)*)"+E+"+$","g"),M=new RegExp("^"+E+"*,"+E+"*"),N=new RegExp("^"+E+"*([\\x20\\t\\r\\n\\f>+~])"+E+"*"),O=new RegExp(J),P=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,Q=/^:not/,R=/[\x20\t\r\n\f]*[+~]/,S=/:not\($/,T=/h\d/i,U=/input|select|textarea|button/i,V=/\\(?!\\)/g,W={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),NAME:new RegExp("^\\[name=['\"]?("+F+")['\"]?\\]"),TAG:new RegExp("^("+F.replace("w","w*")+")"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+J),POS:new RegExp(K,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+E+"*(even|odd|(([+-]|)(\\d*)n|)"+E+"*(?:([+-]|)"+E+"*(\\d+)|))"+E+"*\\)|)","i"),needsContext:new RegExp("^"+E+"*[>+~]|"+K,"i")},X=function(a){var b=r.createElement("div");try{return a(b)}catch(c){return!1}finally{b=null}},Y=X(function(a){return a.appendChild(r.createComment("")),!a.getElementsByTagName("*").length}),Z=X(function(a){return a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!==n&&a.firstChild.getAttribute("href")==="#"}),$=X(function(a){a.innerHTML="<select></select>";var b=typeof a.lastChild.getAttribute("multiple");return b!=="boolean"&&b!=="string"}),_=X(function(a){return a.innerHTML="<div class='hidden e'></div><div class='hidden'></div>",!a.getElementsByClassName||!a.getElementsByClassName("e").length?!1:(a.lastChild.className="e",a.getElementsByClassName("e").length===2)}),ba=X(function(a){a.id=o+0,a.innerHTML="<a name='"+o+"'></a><div name='"+o+"'></div>",s.insertBefore(a,s.firstChild);var b=r.getElementsByName&&r.getElementsByName(o).length===2+r.getElementsByName(o+0).length;return d=!r.getElementById(o),s.removeChild(a),b});try{x.call(s.childNodes,0)[0].nodeType}catch(bb){x=function(a){var b,c=[];for(;b=this[a];a++)c.push(b);return c}}bc.matches=function(a,b){return bc(a,null,null,b)},bc.matchesSelector=function(a,b){return bc(b,null,null,[a]).length>0},f=bc.getText=function(a){var b,c="",d=0,e=a.nodeType;if(e){if(e===1||e===9||e===11){if(typeof a.textContent=="string")return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=f(a)}else if(e===3||e===4)return a.nodeValue}else for(;b=a[d];d++)c+=f(b);return c},g=bc.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?b.nodeName!=="HTML":!1},h=bc.contains=s.contains?function(a,b){var c=a.nodeType===9?a.documentElement:a,d=b&&b.parentNode;return a===d||!!(d&&d.nodeType===1&&c.contains&&c.contains(d))}:s.compareDocumentPosition?function(a,b){return b&&!!(a.compareDocumentPosition(b)&16)}:function(a,b){while(b=b.parentNode)if(b===a)return!0;return!1},bc.attr=function(a,b){var c,d=g(a);return d||(b=b.toLowerCase()),(c=e.attrHandle[b])?c(a):d||$?a.getAttribute(b):(c=a.getAttributeNode(b),c?typeof a[b]=="boolean"?a[b]?b:null:c.specified?c.value:null:null)},e=bc.selectors={cacheLength:50,createPseudo:z,match:W,attrHandle:Z?{}:{href:function(a){return a.getAttribute("href",2)},type:function(a){return a.getAttribute("type")}},find:{ID:d?function(a,b,c){if(typeof b.getElementById!==n&&!c){var d=b.getElementById(a);return d&&d.parentNode?[d]:[]}}:function(a,c,d){if(typeof c.getElementById!==n&&!d){var e=c.getElementById(a);return e?e.id===a||typeof e.getAttributeNode!==n&&e.getAttributeNode("id").value===a?[e]:b:[]}},TAG:Y?function(a,b){if(typeof b.getElementsByTagName!==n)return b.getElementsByTagName(a)}:function(a,b){var c=b.getElementsByTagName(a);if(a==="*"){var d,e=[],f=0;for(;d=c[f];f++)d.nodeType===1&&e.push(d);return e}return c},NAME:ba&&function(a,b){if(typeof b.getElementsByName!==n)return b.getElementsByName(name)},CLASS:_&&function(a,b,c){if(typeof b.getElementsByClassName!==n&&!c)return b.getElementsByClassName(a)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(V,""),a[3]=(a[4]||a[5]||"").replace(V,""),a[2]==="~="&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),a[1]==="nth"?(a[2]||bc.error(a[0]),a[3]=+(a[3]?a[4]+(a[5]||1):2*(a[2]==="even"||a[2]==="odd")),a[4]=+(a[6]+a[7]||a[2]==="odd")):a[2]&&bc.error(a[0]),a},PSEUDO:function(a){var b,c;if(W.CHILD.test(a[0]))return null;if(a[3])a[2]=a[3];else if(b=a[4])O.test(b)&&(c=bh(b,!0))&&(c=b.indexOf(")",b.length-c)-b.length)&&(b=b.slice(0,c),a[0]=a[0].slice(0,c)),a[2]=b;return a.slice(0,3)}},filter:{ID:d?function(a){return a=a.replace(V,""),function(b){return b.getAttribute("id")===a}}:function(a){return a=a.replace(V,""),function(b){var c=typeof b.getAttributeNode!==n&&b.getAttributeNode("id");return c&&c.value===a}},TAG:function(a){return a==="*"?function(){return!0}:(a=a.replace(V,"").toLowerCase(),function(b){return b.nodeName&&b.nodeName.toLowerCase()===a})},CLASS:function(a){var b=B[o][a];return b||(b=B(a,new RegExp("(^|"+E+")"+a+"("+E+"|$)"))),function(a){return b.test(a.className||typeof a.getAttribute!==n&&a.getAttribute("class")||"")}},ATTR:function(a,b,c){return function(d,e){var f=bc.attr(d,a);return f==null?b==="!=":b?(f+="",b==="="?f===c:b==="!="?f!==c:b==="^="?c&&f.indexOf(c)===0:b==="*="?c&&f.indexOf(c)>-1:b==="$="?c&&f.substr(f.length-c.length)===c:b==="~="?(" "+f+" ").indexOf(c)>-1:b==="|="?f===c||f.substr(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d){return a==="nth"?function(a){var b,e,f=a.parentNode;if(c===1&&d===0)return!0;if(f){e=0;for(b=f.firstChild;b;b=b.nextSibling)if(b.nodeType===1){e++;if(a===b)break}}return e-=d,e===c||e%c===0&&e/c>=0}:function(b){var c=b;switch(a){case"only":case"first":while(c=c.previousSibling)if(c.nodeType===1)return!1;if(a==="first")return!0;c=b;case"last":while(c=c.nextSibling)if(c.nodeType===1)return!1;return!0}}},PSEUDO:function(a,b){var c,d=e.pseudos[a]||e.setFilters[a.toLowerCase()]||bc.error("unsupported pseudo: "+a);return d[o]?d(b):d.length>1?(c=[a,a,"",b],e.setFilters.hasOwnProperty(a.toLowerCase())?z(function(a,c){var e,f=d(a,b),g=f.length;while(g--)e=y.call(a,f[g]),a[e]=!(c[e]=f[g])}):function(a){return d(a,0,c)}):d}},pseudos:{not:z(function(a){var b=[],c=[],d=i(a.replace(L,"$1"));return d[o]?z(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)if(f=g[h])a[h]=!(b[h]=f)}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:z(function(a){return function(b){return bc(a,b).length>0}}),contains:z(function(a){return function(b){return(b.textContent||b.innerText||f(b)).indexOf(a)>-1}}),enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&!!a.checked||b==="option"&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},parent:function(a){return!e.pseudos.empty(a)},empty:function(a){var b;a=a.firstChild;while(a){if(a.nodeName>"@"||(b=a.nodeType)===3||b===4)return!1;a=a.nextSibling}return!0},header:function(a){return T.test(a.nodeName)},text:function(a){var b,c;return a.nodeName.toLowerCase()==="input"&&(b=a.type)==="text"&&((c=a.getAttribute("type"))==null||c.toLowerCase()===b)},radio:bd("radio"),checkbox:bd("checkbox"),file:bd("file"),password:bd("password"),image:bd("image"),submit:be("submit"),reset:be("reset"),button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&a.type==="button"||b==="button"},input:function(a){return U.test(a.nodeName)},focus:function(a){var b=a.ownerDocument;return a===b.activeElement&&(!b.hasFocus||b.hasFocus())&&(!!a.type||!!a.href)},active:function(a){return a===a.ownerDocument.activeElement},first:bf(function(a,b,c){return[0]}),last:bf(function(a,b,c){return[b-1]}),eq:bf(function(a,b,c){return[c<0?c+b:c]}),even:bf(function(a,b,c){for(var d=0;d<b;d+=2)a.push(d);return a}),odd:bf(function(a,b,c){for(var d=1;d<b;d+=2)a.push(d);return a}),lt:bf(function(a,b,c){for(var d=c<0?c+b:c;--d>=0;)a.push(d);return a}),gt:bf(function(a,b,c){for(var d=c<0?c+b:c;++d<b;)a.push(d);return a})}},j=s.compareDocumentPosition?function(a,b){return a===b?(k=!0,0):(!a.compareDocumentPosition||!b.compareDocumentPosition?a.compareDocumentPosition:a.compareDocumentPosition(b)&4)?-1:1}:function(a,b){if(a===b)return k=!0,0;if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[],g=a.parentNode,h=b.parentNode,i=g;if(g===h)return bg(a,b);if(!g)return-1;if(!h)return 1;while(i)e.unshift(i),i=i.parentNode;i=h;while(i)f.unshift(i),i=i.parentNode;c=e.length,d=f.length;for(var j=0;j<c&&j<d;j++)if(e[j]!==f[j])return bg(e[j],f[j]);return j===c?bg(a,f[j],-1):bg(e[j],b,1)},[0,0].sort(j),m=!k,bc.uniqueSort=function(a){var b,c=1;k=m,a.sort(j);if(k)for(;b=a[c];c++)b===a[c-1]&&a.splice(c--,1);return a},bc.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},i=bc.compile=function(a,b){var c,d=[],e=[],f=D[o][a];if(!f){b||(b=bh(a)),c=b.length;while(c--)f=bm(b[c]),f[o]?d.push(f):e.push(f);f=D(a,bn(e,d))}return f},r.querySelectorAll&&function(){var a,b=bp,c=/'|\\/g,d=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,e=[":focus"],f=[":active",":focus"],h=s.matchesSelector||s.mozMatchesSelector||s.webkitMatchesSelector||s.oMatchesSelector||s.msMatchesSelector;X(function(a){a.innerHTML="<select><option selected=''></option></select>",a.querySelectorAll("[selected]").length||e.push("\\["+E+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),a.querySelectorAll(":checked").length||e.push(":checked")}),X(function(a){a.innerHTML="<p test=''></p>",a.querySelectorAll("[test^='']").length&&e.push("[*^$]="+E+"*(?:\"\"|'')"),a.innerHTML="<input type='hidden'/>",a.querySelectorAll(":enabled").length||e.push(":enabled",":disabled")}),e=new RegExp(e.join("|")),bp=function(a,d,f,g,h){if(!g&&!h&&(!e||!e.test(a))){var i,j,k=!0,l=o,m=d,n=d.nodeType===9&&a;if(d.nodeType===1&&d.nodeName.toLowerCase()!=="object"){i=bh(a),(k=d.getAttribute("id"))?l=k.replace(c,"\\$&"):d.setAttribute("id",l),l="[id='"+l+"'] ",j=i.length;while(j--)i[j]=l+i[j].join("");m=R.test(a)&&d.parentNode||d,n=i.join(",")}if(n)try{return w.apply(f,x.call(m.querySelectorAll(n),0)),f}catch(p){}finally{k||d.removeAttribute("id")}}return b(a,d,f,g,h)},h&&(X(function(b){a=h.call(b,"div");try{h.call(b,"[test!='']:sizzle"),f.push("!=",J)}catch(c){}}),f=new RegExp(f.join("|")),bc.matchesSelector=function(b,c){c=c.replace(d,"='$1']");if(!g(b)&&!f.test(c)&&(!e||!e.test(c)))try{var i=h.call(b,c);if(i||a||b.document&&b.document.nodeType!==11)return i}catch(j){}return bc(c,null,null,[b]).length>0})}(),e.pseudos.nth=e.pseudos.eq,e.filters=bq.prototype=e.pseudos,e.setFilters=new bq,bc.attr=p.attr,p.find=bc,p.expr=bc.selectors,p.expr[":"]=p.expr.pseudos,p.unique=bc.uniqueSort,p.text=bc.getText,p.isXMLDoc=bc.isXML,p.contains=bc.contains}(a);var bc=/Until$/,bd=/^(?:parents|prev(?:Until|All))/,be=/^.[^:#\[\.,]*$/,bf=p.expr.match.needsContext,bg={children:!0,contents:!0,next:!0,prev:!0};p.fn.extend({find:function(a){var b,c,d,e,f,g,h=this;if(typeof a!="string")return p(a).filter(function(){for(b=0,c=h.length;b<c;b++)if(p.contains(h[b],this))return!0});g=this.pushStack("","find",a);for(b=0,c=this.length;b<c;b++){d=g.length,p.find(a,this[b],g);if(b>0)for(e=d;e<g.length;e++)for(f=0;f<d;f++)if(g[f]===g[e]){g.splice(e--,1);break}}return g},has:function(a){var b,c=p(a,this),d=c.length;return this.filter(function(){for(b=0;b<d;b++)if(p.contains(this,c[b]))return!0})},not:function(a){return this.pushStack(bj(this,a,!1),"not",a)},filter:function(a){return this.pushStack(bj(this,a,!0),"filter",a)},is:function(a){return!!a&&(typeof a=="string"?bf.test(a)?p(a,this.context).index(this[0])>=0:p.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c,d=0,e=this.length,f=[],g=bf.test(a)||typeof a!="string"?p(a,b||this.context):0;for(;d<e;d++){c=this[d];while(c&&c.ownerDocument&&c!==b&&c.nodeType!==11){if(g?g.index(c)>-1:p.find.matchesSelector(c,a)){f.push(c);break}c=c.parentNode}}return f=f.length>1?p.unique(f):f,this.pushStack(f,"closest",a)},index:function(a){return a?typeof a=="string"?p.inArray(this[0],p(a)):p.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(a,b){var c=typeof a=="string"?p(a,b):p.makeArray(a&&a.nodeType?[a]:a),d=p.merge(this.get(),c);return this.pushStack(bh(c[0])||bh(d[0])?d:p.unique(d))},addBack:function(a){return this.add(a==null?this.prevObject:this.prevObject.filter(a))}}),p.fn.andSelf=p.fn.addBack,p.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return p.dir(a,"parentNode")},parentsUntil:function(a,b,c){return p.dir(a,"parentNode",c)},next:function(a){return bi(a,"nextSibling")},prev:function(a){return bi(a,"previousSibling")},nextAll:function(a){return p.dir(a,"nextSibling")},prevAll:function(a){return p.dir(a,"previousSibling")},nextUntil:function(a,b,c){return p.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return p.dir(a,"previousSibling",c)},siblings:function(a){return p.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return p.sibling(a.firstChild)},contents:function(a){return p.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:p.merge([],a.childNodes)}},function(a,b){p.fn[a]=function(c,d){var e=p.map(this,b,c);return bc.test(a)||(d=c),d&&typeof d=="string"&&(e=p.filter(d,e)),e=this.length>1&&!bg[a]?p.unique(e):e,this.length>1&&bd.test(a)&&(e=e.reverse()),this.pushStack(e,a,k.call(arguments).join(","))}}),p.extend({filter:function(a,b,c){return c&&(a=":not("+a+")"),b.length===1?p.find.matchesSelector(b[0],a)?[b[0]]:[]:p.find.matches(a,b)},dir:function(a,c,d){var e=[],f=a[c];while(f&&f.nodeType!==9&&(d===b||f.nodeType!==1||!p(f).is(d)))f.nodeType===1&&e.push(f),f=f[c];return e},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var bl="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",bm=/ jQuery\d+="(?:null|\d+)"/g,bn=/^\s+/,bo=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bp=/<([\w:]+)/,bq=/<tbody/i,br=/<|&#?\w+;/,bs=/<(?:script|style|link)/i,bt=/<(?:script|object|embed|option|style)/i,bu=new RegExp("<(?:"+bl+")[\\s/>]","i"),bv=/^(?:checkbox|radio)$/,bw=/checked\s*(?:[^=]|=\s*.checked.)/i,bx=/\/(java|ecma)script/i,by=/^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,bz={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},bA=bk(e),bB=bA.appendChild(e.createElement("div"));bz.optgroup=bz.option,bz.tbody=bz.tfoot=bz.colgroup=bz.caption=bz.thead,bz.th=bz.td,p.support.htmlSerialize||(bz._default=[1,"X<div>","</div>"]),p.fn.extend({text:function(a){return p.access(this,function(a){return a===b?p.text(this):this.empty().append((this[0]&&this[0].ownerDocument||e).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(p.isFunction(a))return this.each(function(b){p(this).wrapAll(a.call(this,b))});if(this[0]){var b=p(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return p.isFunction(a)?this.each(function(b){p(this).wrapInner(a.call(this,b))}):this.each(function(){var b=p(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=p.isFunction(a);return this.each(function(c){p(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){p.nodeName(this,"body")||p(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){(this.nodeType===1||this.nodeType===11)&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){(this.nodeType===1||this.nodeType===11)&&this.insertBefore(a,this.firstChild)})},before:function(){if(!bh(this[0]))return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=p.clean(arguments);return this.pushStack(p.merge(a,this),"before",this.selector)}},after:function(){if(!bh(this[0]))return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=p.clean(arguments);return this.pushStack(p.merge(this,a),"after",this.selector)}},remove:function(a,b){var c,d=0;for(;(c=this[d])!=null;d++)if(!a||p.filter(a,[c]).length)!b&&c.nodeType===1&&(p.cleanData(c.getElementsByTagName("*")),p.cleanData([c])),c.parentNode&&c.parentNode.removeChild(c);return this},empty:function(){var a,b=0;for(;(a=this[b])!=null;b++){a.nodeType===1&&p.cleanData(a.getElementsByTagName("*"));while(a.firstChild)a.removeChild(a.firstChild)}return this},clone:function(a,b){return a=a==null?!1:a,b=b==null?a:b,this.map(function(){return p.clone(this,a,b)})},html:function(a){return p.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(bm,""):b;if(typeof a=="string"&&!bs.test(a)&&(p.support.htmlSerialize||!bu.test(a))&&(p.support.leadingWhitespace||!bn.test(a))&&!bz[(bp.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(bo,"<$1></$2>");try{for(;d<e;d++)c=this[d]||{},c.nodeType===1&&(p.cleanData(c.getElementsByTagName("*")),c.innerHTML=a);c=0}catch(f){}}c&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(a){return bh(this[0])?this.length?this.pushStack(p(p.isFunction(a)?a():a),"replaceWith",a):this:p.isFunction(a)?this.each(function(b){var c=p(this),d=c.html();c.replaceWith(a.call(this,b,d))}):(typeof a!="string"&&(a=p(a).detach()),this.each(function(){var b=this.nextSibling,c=this.parentNode;p(this).remove(),b?p(b).before(a):p(c).append(a)}))},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,d){a=[].concat.apply([],a);var e,f,g,h,i=0,j=a[0],k=[],l=this.length;if(!p.support.checkClone&&l>1&&typeof j=="string"&&bw.test(j))return this.each(function(){p(this).domManip(a,c,d)});if(p.isFunction(j))return this.each(function(e){var f=p(this);a[0]=j.call(this,e,c?f.html():b),f.domManip(a,c,d)});if(this[0]){e=p.buildFragment(a,this,k),g=e.fragment,f=g.firstChild,g.childNodes.length===1&&(g=f);if(f){c=c&&p.nodeName(f,"tr");for(h=e.cacheable||l-1;i<l;i++)d.call(c&&p.nodeName(this[i],"table")?bC(this[i],"tbody"):this[i],i===h?g:p.clone(g,!0,!0))}g=f=null,k.length&&p.each(k,function(a,b){b.src?p.ajax?p.ajax({url:b.src,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0}):p.error("no ajax"):p.globalEval((b.text||b.textContent||b.innerHTML||"").replace(by,"")),b.parentNode&&b.parentNode.removeChild(b)})}return this}}),p.buildFragment=function(a,c,d){var f,g,h,i=a[0];return c=c||e,c=!c.nodeType&&c[0]||c,c=c.ownerDocument||c,a.length===1&&typeof i=="string"&&i.length<512&&c===e&&i.charAt(0)==="<"&&!bt.test(i)&&(p.support.checkClone||!bw.test(i))&&(p.support.html5Clone||!bu.test(i))&&(g=!0,f=p.fragments[i],h=f!==b),f||(f=c.createDocumentFragment(),p.clean(a,c,f,d),g&&(p.fragments[i]=h&&f)),{fragment:f,cacheable:g}},p.fragments={},p.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){p.fn[a]=function(c){var d,e=0,f=[],g=p(c),h=g.length,i=this.length===1&&this[0].parentNode;if((i==null||i&&i.nodeType===11&&i.childNodes.length===1)&&h===1)return g[b](this[0]),this;for(;e<h;e++)d=(e>0?this.clone(!0):this).get(),p(g[e])[b](d),f=f.concat(d);return this.pushStack(f,a,g.selector)}}),p.extend({clone:function(a,b,c){var d,e,f,g;p.support.html5Clone||p.isXMLDoc(a)||!bu.test("<"+a.nodeName+">")?g=a.cloneNode(!0):(bB.innerHTML=a.outerHTML,bB.removeChild(g=bB.firstChild));if((!p.support.noCloneEvent||!p.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!p.isXMLDoc(a)){bE(a,g),d=bF(a),e=bF(g);for(f=0;d[f];++f)e[f]&&bE(d[f],e[f])}if(b){bD(a,g);if(c){d=bF(a),e=bF(g);for(f=0;d[f];++f)bD(d[f],e[f])}}return d=e=null,g},clean:function(a,b,c,d){var f,g,h,i,j,k,l,m,n,o,q,r,s=b===e&&bA,t=[];if(!b||typeof b.createDocumentFragment=="undefined")b=e;for(f=0;(h=a[f])!=null;f++){typeof h=="number"&&(h+="");if(!h)continue;if(typeof h=="string")if(!br.test(h))h=b.createTextNode(h);else{s=s||bk(b),l=b.createElement("div"),s.appendChild(l),h=h.replace(bo,"<$1></$2>"),i=(bp.exec(h)||["",""])[1].toLowerCase(),j=bz[i]||bz._default,k=j[0],l.innerHTML=j[1]+h+j[2];while(k--)l=l.lastChild;if(!p.support.tbody){m=bq.test(h),n=i==="table"&&!m?l.firstChild&&l.firstChild.childNodes:j[1]==="<table>"&&!m?l.childNodes:[];for(g=n.length-1;g>=0;--g)p.nodeName(n[g],"tbody")&&!n[g].childNodes.length&&n[g].parentNode.removeChild(n[g])}!p.support.leadingWhitespace&&bn.test(h)&&l.insertBefore(b.createTextNode(bn.exec(h)[0]),l.firstChild),h=l.childNodes,l.parentNode.removeChild(l)}h.nodeType?t.push(h):p.merge(t,h)}l&&(h=l=s=null);if(!p.support.appendChecked)for(f=0;(h=t[f])!=null;f++)p.nodeName(h,"input")?bG(h):typeof h.getElementsByTagName!="undefined"&&p.grep(h.getElementsByTagName("input"),bG);if(c){q=function(a){if(!a.type||bx.test(a.type))return d?d.push(a.parentNode?a.parentNode.removeChild(a):a):c.appendChild(a)};for(f=0;(h=t[f])!=null;f++)if(!p.nodeName(h,"script")||!q(h))c.appendChild(h),typeof h.getElementsByTagName!="undefined"&&(r=p.grep(p.merge([],h.getElementsByTagName("script")),q),t.splice.apply(t,[f+1,0].concat(r)),f+=r.length)}return t},cleanData:function(a,b){var c,d,e,f,g=0,h=p.expando,i=p.cache,j=p.support.deleteExpando,k=p.event.special;for(;(e=a[g])!=null;g++)if(b||p.acceptData(e)){d=e[h],c=d&&i[d];if(c){if(c.events)for(f in c.events)k[f]?p.event.remove(e,f):p.removeEvent(e,f,c.handle);i[d]&&(delete i[d],j?delete e[h]:e.removeAttribute?e.removeAttribute(h):e[h]=null,p.deletedIds.push(d))}}}}),function(){var a,b;p.uaMatch=function(a){a=a.toLowerCase();var b=/(chrome)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},a=p.uaMatch(g.userAgent),b={},a.browser&&(b[a.browser]=!0,b.version=a.version),b.chrome?b.webkit=!0:b.webkit&&(b.safari=!0),p.browser=b,p.sub=function(){function a(b,c){return new a.fn.init(b,c)}p.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function c(c,d){return d&&d instanceof p&&!(d instanceof a)&&(d=a(d)),p.fn.init.call(this,c,d,b)},a.fn.init.prototype=a.fn;var b=a(e);return a}}();var bH,bI,bJ,bK=/alpha\([^)]*\)/i,bL=/opacity=([^)]*)/,bM=/^(top|right|bottom|left)$/,bN=/^(none|table(?!-c[ea]).+)/,bO=/^margin/,bP=new RegExp("^("+q+")(.*)$","i"),bQ=new RegExp("^("+q+")(?!px)[a-z%]+$","i"),bR=new RegExp("^([-+])=("+q+")","i"),bS={},bT={position:"absolute",visibility:"hidden",display:"block"},bU={letterSpacing:0,fontWeight:400},bV=["Top","Right","Bottom","Left"],bW=["Webkit","O","Moz","ms"],bX=p.fn.toggle;p.fn.extend({css:function(a,c){return p.access(this,function(a,c,d){return d!==b?p.style(a,c,d):p.css(a,c)},a,c,arguments.length>1)},show:function(){return b$(this,!0)},hide:function(){return b$(this)},toggle:function(a,b){var c=typeof a=="boolean";return p.isFunction(a)&&p.isFunction(b)?bX.apply(this,arguments):this.each(function(){(c?a:bZ(this))?p(this).show():p(this).hide()})}}),p.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bH(a,"opacity");return c===""?"1":c}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":p.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!a||a.nodeType===3||a.nodeType===8||!a.style)return;var f,g,h,i=p.camelCase(c),j=a.style;c=p.cssProps[i]||(p.cssProps[i]=bY(j,i)),h=p.cssHooks[c]||p.cssHooks[i];if(d===b)return h&&"get"in h&&(f=h.get(a,!1,e))!==b?f:j[c];g=typeof d,g==="string"&&(f=bR.exec(d))&&(d=(f[1]+1)*f[2]+parseFloat(p.css(a,c)),g="number");if(d==null||g==="number"&&isNaN(d))return;g==="number"&&!p.cssNumber[i]&&(d+="px");if(!h||!("set"in h)||(d=h.set(a,d,e))!==b)try{j[c]=d}catch(k){}},css:function(a,c,d,e){var f,g,h,i=p.camelCase(c);return c=p.cssProps[i]||(p.cssProps[i]=bY(a.style,i)),h=p.cssHooks[c]||p.cssHooks[i],h&&"get"in h&&(f=h.get(a,!0,e)),f===b&&(f=bH(a,c)),f==="normal"&&c in bU&&(f=bU[c]),d||e!==b?(g=parseFloat(f),d||p.isNumeric(g)?g||0:f):f},swap:function(a,b,c){var d,e,f={};for(e in b)f[e]=a.style[e],a.style[e]=b[e];d=c.call(a);for(e in b)a.style[e]=f[e];return d}}),a.getComputedStyle?bH=function(b,c){var d,e,f,g,h=a.getComputedStyle(b,null),i=b.style;return h&&(d=h[c],d===""&&!p.contains(b.ownerDocument,b)&&(d=p.style(b,c)),bQ.test(d)&&bO.test(c)&&(e=i.width,f=i.minWidth,g=i.maxWidth,i.minWidth=i.maxWidth=i.width=d,d=h.width,i.width=e,i.minWidth=f,i.maxWidth=g)),d}:e.documentElement.currentStyle&&(bH=function(a,b){var c,d,e=a.currentStyle&&a.currentStyle[b],f=a.style;return e==null&&f&&f[b]&&(e=f[b]),bQ.test(e)&&!bM.test(b)&&(c=f.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":e,e=f.pixelLeft+"px",f.left=c,d&&(a.runtimeStyle.left=d)),e===""?"auto":e}),p.each(["height","width"],function(a,b){p.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth===0&&bN.test(bH(a,"display"))?p.swap(a,bT,function(){return cb(a,b,d)}):cb(a,b,d)},set:function(a,c,d){return b_(a,c,d?ca(a,b,d,p.support.boxSizing&&p.css(a,"boxSizing")==="border-box"):0)}}}),p.support.opacity||(p.cssHooks.opacity={get:function(a,b){return bL.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=p.isNumeric(b)?"alpha(opacity="+b*100+")":"",f=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&p.trim(f.replace(bK,""))===""&&c.removeAttribute){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bK.test(f)?f.replace(bK,e):f+" "+e}}),p(function(){p.support.reliableMarginRight||(p.cssHooks.marginRight={get:function(a,b){return p.swap(a,{display:"inline-block"},function(){if(b)return bH(a,"marginRight")})}}),!p.support.pixelPosition&&p.fn.position&&p.each(["top","left"],function(a,b){p.cssHooks[b]={get:function(a,c){if(c){var d=bH(a,b);return bQ.test(d)?p(a).position()[b]+"px":d}}}})}),p.expr&&p.expr.filters&&(p.expr.filters.hidden=function(a){return a.offsetWidth===0&&a.offsetHeight===0||!p.support.reliableHiddenOffsets&&(a.style&&a.style.display||bH(a,"display"))==="none"},p.expr.filters.visible=function(a){return!p.expr.filters.hidden(a)}),p.each({margin:"",padding:"",border:"Width"},function(a,b){p.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bV[d]+b]=e[d]||e[d-2]||e[0];return f}},bO.test(a)||(p.cssHooks[a+b].set=b_)});var cd=/%20/g,ce=/\[\]$/,cf=/\r?\n/g,cg=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,ch=/^(?:select|textarea)/i;p.fn.extend({serialize:function(){return p.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?p.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ch.test(this.nodeName)||cg.test(this.type))}).map(function(a,b){var c=p(this).val();return c==null?null:p.isArray(c)?p.map(c,function(a,c){return{name:b.name,value:a.replace(cf,"\r\n")}}):{name:b.name,value:c.replace(cf,"\r\n")}}).get()}}),p.param=function(a,c){var d,e=[],f=function(a,b){b=p.isFunction(b)?b():b==null?"":b,e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=p.ajaxSettings&&p.ajaxSettings.traditional);if(p.isArray(a)||a.jquery&&!p.isPlainObject(a))p.each(a,function(){f(this.name,this.value)});else for(d in a)ci(d,a[d],c,f);return e.join("&").replace(cd,"+")};var cj,ck,cl=/#.*$/,cm=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,cn=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,co=/^(?:GET|HEAD)$/,cp=/^\/\//,cq=/\?/,cr=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,cs=/([?&])_=[^&]*/,ct=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,cu=p.fn.load,cv={},cw={},cx=["*/"]+["*"];try{ck=f.href}catch(cy){ck=e.createElement("a"),ck.href="",ck=ck.href}cj=ct.exec(ck.toLowerCase())||[],p.fn.load=function(a,c,d){if(typeof a!="string"&&cu)return cu.apply(this,arguments);if(!this.length)return this;var e,f,g,h=this,i=a.indexOf(" ");return i>=0&&(e=a.slice(i,a.length),a=a.slice(0,i)),p.isFunction(c)?(d=c,c=b):c&&typeof c=="object"&&(f="POST"),p.ajax({url:a,type:f,dataType:"html",data:c,complete:function(a,b){d&&h.each(d,g||[a.responseText,b,a])}}).done(function(a){g=arguments,h.html(e?p("<div>").append(a.replace(cr,"")).find(e):a)}),this},p.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){p.fn[b]=function(a){return this.on(b,a)}}),p.each(["get","post"],function(a,c){p[c]=function(a,d,e,f){return p.isFunction(d)&&(f=f||e,e=d,d=b),p.ajax({type:c,url:a,data:d,success:e,dataType:f})}}),p.extend({getScript:function(a,c){return p.get(a,b,c,"script")},getJSON:function(a,b,c){return p.get(a,b,c,"json")},ajaxSetup:function(a,b){return b?cB(a,p.ajaxSettings):(b=a,a=p.ajaxSettings),cB(a,b),a},ajaxSettings:{url:ck,isLocal:cn.test(cj[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":cx},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":p.parseJSON,"text xml":p.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:cz(cv),ajaxTransport:cz(cw),ajax:function(a,c){function y(a,c,f,i){var k,s,t,u,w,y=c;if(v===2)return;v=2,h&&clearTimeout(h),g=b,e=i||"",x.readyState=a>0?4:0,f&&(u=cC(l,x,f));if(a>=200&&a<300||a===304)l.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(p.lastModified[d]=w),w=x.getResponseHeader("Etag"),w&&(p.etag[d]=w)),a===304?(y="notmodified",k=!0):(k=cD(l,u),y=k.state,s=k.data,t=k.error,k=!t);else{t=y;if(!y||a)y="error",a<0&&(a=0)}x.status=a,x.statusText=(c||y)+"",k?o.resolveWith(m,[s,y,x]):o.rejectWith(m,[x,y,t]),x.statusCode(r),r=b,j&&n.trigger("ajax"+(k?"Success":"Error"),[x,l,k?s:t]),q.fireWith(m,[x,y]),j&&(n.trigger("ajaxComplete",[x,l]),--p.active||p.event.trigger("ajaxStop"))}typeof a=="object"&&(c=a,a=b),c=c||{};var d,e,f,g,h,i,j,k,l=p.ajaxSetup({},c),m=l.context||l,n=m!==l&&(m.nodeType||m instanceof p)?p(m):p.event,o=p.Deferred(),q=p.Callbacks("once memory"),r=l.statusCode||{},t={},u={},v=0,w="canceled",x={readyState:0,setRequestHeader:function(a,b){if(!v){var c=a.toLowerCase();a=u[c]=u[c]||a,t[a]=b}return this},getAllResponseHeaders:function(){return v===2?e:null},getResponseHeader:function(a){var c;if(v===2){if(!f){f={};while(c=cm.exec(e))f[c[1].toLowerCase()]=c[2]}c=f[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){return v||(l.mimeType=a),this},abort:function(a){return a=a||w,g&&g.abort(a),y(0,a),this}};o.promise(x),x.success=x.done,x.error=x.fail,x.complete=q.add,x.statusCode=function(a){if(a){var b;if(v<2)for(b in a)r[b]=[r[b],a[b]];else b=a[x.status],x.always(b)}return this},l.url=((a||l.url)+"").replace(cl,"").replace(cp,cj[1]+"//"),l.dataTypes=p.trim(l.dataType||"*").toLowerCase().split(s),l.crossDomain==null&&(i=ct.exec(l.url.toLowerCase())||!1,l.crossDomain=i&&i.join(":")+(i[3]?"":i[1]==="http:"?80:443)!==cj.join(":")+(cj[3]?"":cj[1]==="http:"?80:443)),l.data&&l.processData&&typeof l.data!="string"&&(l.data=p.param(l.data,l.traditional)),cA(cv,l,c,x);if(v===2)return x;j=l.global,l.type=l.type.toUpperCase(),l.hasContent=!co.test(l.type),j&&p.active++===0&&p.event.trigger("ajaxStart");if(!l.hasContent){l.data&&(l.url+=(cq.test(l.url)?"&":"?")+l.data,delete l.data),d=l.url;if(l.cache===!1){var z=p.now(),A=l.url.replace(cs,"$1_="+z);l.url=A+(A===l.url?(cq.test(l.url)?"&":"?")+"_="+z:"")}}(l.data&&l.hasContent&&l.contentType!==!1||c.contentType)&&x.setRequestHeader("Content-Type",l.contentType),l.ifModified&&(d=d||l.url,p.lastModified[d]&&x.setRequestHeader("If-Modified-Since",p.lastModified[d]),p.etag[d]&&x.setRequestHeader("If-None-Match",p.etag[d])),x.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+(l.dataTypes[0]!=="*"?", "+cx+"; q=0.01":""):l.accepts["*"]);for(k in l.headers)x.setRequestHeader(k,l.headers[k]);if(!l.beforeSend||l.beforeSend.call(m,x,l)!==!1&&v!==2){w="abort";for(k in{success:1,error:1,complete:1})x[k](l[k]);g=cA(cw,l,c,x);if(!g)y(-1,"No Transport");else{x.readyState=1,j&&n.trigger("ajaxSend",[x,l]),l.async&&l.timeout>0&&(h=setTimeout(function(){x.abort("timeout")},l.timeout));try{v=1,g.send(t,y)}catch(B){if(v<2)y(-1,B);else throw B}}return x}return x.abort()},active:0,lastModified:{},etag:{}});var cE=[],cF=/\?/,cG=/(=)\?(?=&|$)|\?\?/,cH=p.now();p.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=cE.pop()||p.expando+"_"+cH++;return this[a]=!0,a}}),p.ajaxPrefilter("json jsonp",function(c,d,e){var f,g,h,i=c.data,j=c.url,k=c.jsonp!==!1,l=k&&cG.test(j),m=k&&!l&&typeof i=="string"&&!(c.contentType||"").indexOf("application/x-www-form-urlencoded")&&cG.test(i);if(c.dataTypes[0]==="jsonp"||l||m)return f=c.jsonpCallback=p.isFunction(c.jsonpCallback)?c.jsonpCallback():c.jsonpCallback,g=a[f],l?c.url=j.replace(cG,"$1"+f):m?c.data=i.replace(cG,"$1"+f):k&&(c.url+=(cF.test(j)?"&":"?")+c.jsonp+"="+f),c.converters["script json"]=function(){return h||p.error(f+" was not called"),h[0]},c.dataTypes[0]="json",a[f]=function(){h=arguments},e.always(function(){a[f]=g,c[f]&&(c.jsonpCallback=d.jsonpCallback,cE.push(f)),h&&p.isFunction(g)&&g(h[0]),h=g=b}),"script"}),p.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){return p.globalEval(a),a}}}),p.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),p.ajaxTransport("script",function(a){if(a.crossDomain){var c,d=e.head||e.getElementsByTagName("head")[0]||e.documentElement;return{send:function(f,g){c=e.createElement("script"),c.async="async",a.scriptCharset&&(c.charset=a.scriptCharset),c.src=a.url,c.onload=c.onreadystatechange=function(a,e){if(e||!c.readyState||/loaded|complete/.test(c.readyState))c.onload=c.onreadystatechange=null,d&&c.parentNode&&d.removeChild(c),c=b,e||g(200,"success")},d.insertBefore(c,d.firstChild)},abort:function(){c&&c.onload(0,1)}}}});var cI,cJ=a.ActiveXObject?function(){for(var a in cI)cI[a](0,1)}:!1,cK=0;p.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&cL()||cM()}:cL,function(a){p.extend(p.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(p.ajaxSettings.xhr()),p.support.ajax&&p.ajaxTransport(function(c){if(!c.crossDomain||p.support.cors){var d;return{send:function(e,f){var g,h,i=c.xhr();c.username?i.open(c.type,c.url,c.async,c.username,c.password):i.open(c.type,c.url,c.async);if(c.xhrFields)for(h in c.xhrFields)i[h]=c.xhrFields[h];c.mimeType&&i.overrideMimeType&&i.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(h in e)i.setRequestHeader(h,e[h])}catch(j){}i.send(c.hasContent&&c.data||null),d=function(a,e){var h,j,k,l,m;try{if(d&&(e||i.readyState===4)){d=b,g&&(i.onreadystatechange=p.noop,cJ&&delete cI[g]);if(e)i.readyState!==4&&i.abort();else{h=i.status,k=i.getAllResponseHeaders(),l={},m=i.responseXML,m&&m.documentElement&&(l.xml=m);try{l.text=i.responseText}catch(a){}try{j=i.statusText}catch(n){j=""}!h&&c.isLocal&&!c.crossDomain?h=l.text?200:404:h===1223&&(h=204)}}}catch(o){e||f(-1,o)}l&&f(h,j,l,k)},c.async?i.readyState===4?setTimeout(d,0):(g=++cK,cJ&&(cI||(cI={},p(a).unload(cJ)),cI[g]=d),i.onreadystatechange=d):d()},abort:function(){d&&d(0,1)}}}});var cN,cO,cP=/^(?:toggle|show|hide)$/,cQ=new RegExp("^(?:([-+])=|)("+q+")([a-z%]*)$","i"),cR=/queueHooks$/,cS=[cY],cT={"*":[function(a,b){var c,d,e=this.createTween(a,b),f=cQ.exec(b),g=e.cur(),h=+g||0,i=1,j=20;if(f){c=+f[2],d=f[3]||(p.cssNumber[a]?"":"px");if(d!=="px"&&h){h=p.css(e.elem,a,!0)||c||1;do i=i||".5",h=h/i,p.style(e.elem,a,h+d);while(i!==(i=e.cur()/g)&&i!==1&&--j)}e.unit=d,e.start=h,e.end=f[1]?h+(f[1]+1)*c:c}return e}]};p.Animation=p.extend(cW,{tweener:function(a,b){p.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");var c,d=0,e=a.length;for(;d<e;d++)c=a[d],cT[c]=cT[c]||[],cT[c].unshift(b)},prefilter:function(a,b){b?cS.unshift(a):cS.push(a)}}),p.Tween=cZ,cZ.prototype={constructor:cZ,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(p.cssNumber[c]?"":"px")},cur:function(){var a=cZ.propHooks[this.prop];return a&&a.get?a.get(this):cZ.propHooks._default.get(this)},run:function(a){var b,c=cZ.propHooks[this.prop];return this.options.duration?this.pos=b=p.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):cZ.propHooks._default.set(this),this}},cZ.prototype.init.prototype=cZ.prototype,cZ.propHooks={_default:{get:function(a){var b;return a.elem[a.prop]==null||!!a.elem.style&&a.elem.style[a.prop]!=null?(b=p.css(a.elem,a.prop,!1,""),!b||b==="auto"?0:b):a.elem[a.prop]},set:function(a){p.fx.step[a.prop]?p.fx.step[a.prop](a):a.elem.style&&(a.elem.style[p.cssProps[a.prop]]!=null||p.cssHooks[a.prop])?p.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},cZ.propHooks.scrollTop=cZ.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},p.each(["toggle","show","hide"],function(a,b){var c=p.fn[b];p.fn[b]=function(d,e,f){return d==null||typeof d=="boolean"||!a&&p.isFunction(d)&&p.isFunction(e)?c.apply(this,arguments):this.animate(c$(b,!0),d,e,f)}}),p.fn.extend({fadeTo:function(a,b,c,d){return this.filter(bZ).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=p.isEmptyObject(a),f=p.speed(b,c,d),g=function(){var b=cW(this,p.extend({},a),f);e&&b.stop(!0)};return e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,c,d){var e=function(a){var b=a.stop;delete a.stop,b(d)};return typeof a!="string"&&(d=c,c=a,a=b),c&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,c=a!=null&&a+"queueHooks",f=p.timers,g=p._data(this);if(c)g[c]&&g[c].stop&&e(g[c]);else for(c in g)g[c]&&g[c].stop&&cR.test(c)&&e(g[c]);for(c=f.length;c--;)f[c].elem===this&&(a==null||f[c].queue===a)&&(f[c].anim.stop(d),b=!1,f.splice(c,1));(b||!d)&&p.dequeue(this,a)})}}),p.each({slideDown:c$("show"),slideUp:c$("hide"),slideToggle:c$("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){p.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),p.speed=function(a,b,c){var d=a&&typeof a=="object"?p.extend({},a):{complete:c||!c&&b||p.isFunction(a)&&a,duration:a,easing:c&&b||b&&!p.isFunction(b)&&b};d.duration=p.fx.off?0:typeof d.duration=="number"?d.duration:d.duration in p.fx.speeds?p.fx.speeds[d.duration]:p.fx.speeds._default;if(d.queue==null||d.queue===!0)d.queue="fx";return d.old=d.complete,d.complete=function(){p.isFunction(d.old)&&d.old.call(this),d.queue&&p.dequeue(this,d.queue)},d},p.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},p.timers=[],p.fx=cZ.prototype.init,p.fx.tick=function(){var a,b=p.timers,c=0;for(;c<b.length;c++)a=b[c],!a()&&b[c]===a&&b.splice(c--,1);b.length||p.fx.stop()},p.fx.timer=function(a){a()&&p.timers.push(a)&&!cO&&(cO=setInterval(p.fx.tick,p.fx.interval))},p.fx.interval=13,p.fx.stop=function(){clearInterval(cO),cO=null},p.fx.speeds={slow:600,fast:200,_default:400},p.fx.step={},p.expr&&p.expr.filters&&(p.expr.filters.animated=function(a){return p.grep(p.timers,function(b){return a===b.elem}).length});var c_=/^(?:body|html)$/i;p.fn.offset=function(a){if(arguments.length)return a===b?this:this.each(function(b){p.offset.setOffset(this,a,b)});var c,d,e,f,g,h,i,j={top:0,left:0},k=this[0],l=k&&k.ownerDocument;if(!l)return;return(d=l.body)===k?p.offset.bodyOffset(k):(c=l.documentElement,p.contains(c,k)?(typeof k.getBoundingClientRect!="undefined"&&(j=k.getBoundingClientRect()),e=da(l),f=c.clientTop||d.clientTop||0,g=c.clientLeft||d.clientLeft||0,h=e.pageYOffset||c.scrollTop,i=e.pageXOffset||c.scrollLeft,{top:j.top+h-f,left:j.left+i-g}):j)},p.offset={bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;return p.support.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(p.css(a,"marginTop"))||0,c+=parseFloat(p.css(a,"marginLeft"))||0),{top:b,left:c}},setOffset:function(a,b,c){var d=p.css(a,"position");d==="static"&&(a.style.position="relative");var e=p(a),f=e.offset(),g=p.css(a,"top"),h=p.css(a,"left"),i=(d==="absolute"||d==="fixed")&&p.inArray("auto",[g,h])>-1,j={},k={},l,m;i?(k=e.position(),l=k.top,m=k.left):(l=parseFloat(g)||0,m=parseFloat(h)||0),p.isFunction(b)&&(b=b.call(a,c,f)),b.top!=null&&(j.top=b.top-f.top+l),b.left!=null&&(j.left=b.left-f.left+m),"using"in b?b.using.call(a,j):e.css(j)}},p.fn.extend({position:function(){if(!this[0])return;var a=this[0],b=this.offsetParent(),c=this.offset(),d=c_.test(b[0].nodeName)?{top:0,left:0}:b.offset();return c.top-=parseFloat(p.css(a,"marginTop"))||0,c.left-=parseFloat(p.css(a,"marginLeft"))||0,d.top+=parseFloat(p.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(p.css(b[0],"borderLeftWidth"))||0,{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||e.body;while(a&&!c_.test(a.nodeName)&&p.css(a,"position")==="static")a=a.offsetParent;return a||e.body})}}),p.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);p.fn[a]=function(e){return p.access(this,function(a,e,f){var g=da(a);if(f===b)return g?c in g?g[c]:g.document.documentElement[e]:a[e];g?g.scrollTo(d?p(g).scrollLeft():f,d?f:p(g).scrollTop()):a[e]=f},a,e,arguments.length,null)}}),p.each({Height:"height",Width:"width"},function(a,c){p.each({padding:"inner"+a,content:c,"":"outer"+a},function(d,e){p.fn[e]=function(e,f){var g=arguments.length&&(d||typeof e!="boolean"),h=d||(e===!0||f===!0?"margin":"border");return p.access(this,function(c,d,e){var f;return p.isWindow(c)?c.document.documentElement["client"+a]:c.nodeType===9?(f=c.documentElement,Math.max(c.body["scroll"+a],f["scroll"+a],c.body["offset"+a],f["offset"+a],f["client"+a])):e===b?p.css(c,d,e,h):p.style(c,d,e,h)},c,g?e:b,g,null)}})}),a.jQuery=a.$=p,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return p})})(window);
 
 
bxslider/plugins/jquery.easing.1.3.js DELETED
@@ -1,205 +0,0 @@
1
- /*
2
- * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
3
- *
4
- * Uses the built in easing capabilities added In jQuery 1.1
5
- * to offer multiple easing options
6
- *
7
- * TERMS OF USE - jQuery Easing
8
- *
9
- * Open source under the BSD License.
10
- *
11
- * Copyright © 2008 George McGinley Smith
12
- * All rights reserved.
13
- *
14
- * Redistribution and use in source and binary forms, with or without modification,
15
- * are permitted provided that the following conditions are met:
16
- *
17
- * Redistributions of source code must retain the above copyright notice, this list of
18
- * conditions and the following disclaimer.
19
- * Redistributions in binary form must reproduce the above copyright notice, this list
20
- * of conditions and the following disclaimer in the documentation and/or other materials
21
- * provided with the distribution.
22
- *
23
- * Neither the name of the author nor the names of contributors may be used to endorse
24
- * or promote products derived from this software without specific prior written permission.
25
- *
26
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
27
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
28
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
29
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
30
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
31
- * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
32
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
33
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
34
- * OF THE POSSIBILITY OF SUCH DAMAGE.
35
- *
36
- */
37
-
38
- // t: current time, b: begInnIng value, c: change In value, d: duration
39
- jQuery.easing['jswing'] = jQuery.easing['swing'];
40
-
41
- jQuery.extend( jQuery.easing,
42
- {
43
- def: 'easeOutQuad',
44
- swing: function (x, t, b, c, d) {
45
- //alert(jQuery.easing.default);
46
- return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
47
- },
48
- easeInQuad: function (x, t, b, c, d) {
49
- return c*(t/=d)*t + b;
50
- },
51
- easeOutQuad: function (x, t, b, c, d) {
52
- return -c *(t/=d)*(t-2) + b;
53
- },
54
- easeInOutQuad: function (x, t, b, c, d) {
55
- if ((t/=d/2) < 1) return c/2*t*t + b;
56
- return -c/2 * ((--t)*(t-2) - 1) + b;
57
- },
58
- easeInCubic: function (x, t, b, c, d) {
59
- return c*(t/=d)*t*t + b;
60
- },
61
- easeOutCubic: function (x, t, b, c, d) {
62
- return c*((t=t/d-1)*t*t + 1) + b;
63
- },
64
- easeInOutCubic: function (x, t, b, c, d) {
65
- if ((t/=d/2) < 1) return c/2*t*t*t + b;
66
- return c/2*((t-=2)*t*t + 2) + b;
67
- },
68
- easeInQuart: function (x, t, b, c, d) {
69
- return c*(t/=d)*t*t*t + b;
70
- },
71
- easeOutQuart: function (x, t, b, c, d) {
72
- return -c * ((t=t/d-1)*t*t*t - 1) + b;
73
- },
74
- easeInOutQuart: function (x, t, b, c, d) {
75
- if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
76
- return -c/2 * ((t-=2)*t*t*t - 2) + b;
77
- },
78
- easeInQuint: function (x, t, b, c, d) {
79
- return c*(t/=d)*t*t*t*t + b;
80
- },
81
- easeOutQuint: function (x, t, b, c, d) {
82
- return c*((t=t/d-1)*t*t*t*t + 1) + b;
83
- },
84
- easeInOutQuint: function (x, t, b, c, d) {
85
- if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
86
- return c/2*((t-=2)*t*t*t*t + 2) + b;
87
- },
88
- easeInSine: function (x, t, b, c, d) {
89
- return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
90
- },
91
- easeOutSine: function (x, t, b, c, d) {
92
- return c * Math.sin(t/d * (Math.PI/2)) + b;
93
- },
94
- easeInOutSine: function (x, t, b, c, d) {
95
- return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
96
- },
97
- easeInExpo: function (x, t, b, c, d) {
98
- return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
99
- },
100
- easeOutExpo: function (x, t, b, c, d) {
101
- return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
102
- },
103
- easeInOutExpo: function (x, t, b, c, d) {
104
- if (t==0) return b;
105
- if (t==d) return b+c;
106
- if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
107
- return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
108
- },
109
- easeInCirc: function (x, t, b, c, d) {
110
- return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
111
- },
112
- easeOutCirc: function (x, t, b, c, d) {
113
- return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
114
- },
115
- easeInOutCirc: function (x, t, b, c, d) {
116
- if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
117
- return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
118
- },
119
- easeInElastic: function (x, t, b, c, d) {
120
- var s=1.70158;var p=0;var a=c;
121
- if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
122
- if (a < Math.abs(c)) { a=c; var s=p/4; }
123
- else var s = p/(2*Math.PI) * Math.asin (c/a);
124
- return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
125
- },
126
- easeOutElastic: function (x, t, b, c, d) {
127
- var s=1.70158;var p=0;var a=c;
128
- if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
129
- if (a < Math.abs(c)) { a=c; var s=p/4; }
130
- else var s = p/(2*Math.PI) * Math.asin (c/a);
131
- return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
132
- },
133
- easeInOutElastic: function (x, t, b, c, d) {
134
- var s=1.70158;var p=0;var a=c;
135
- if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5);
136
- if (a < Math.abs(c)) { a=c; var s=p/4; }
137
- else var s = p/(2*Math.PI) * Math.asin (c/a);
138
- if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
139
- return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
140
- },
141
- easeInBack: function (x, t, b, c, d, s) {
142
- if (s == undefined) s = 1.70158;
143
- return c*(t/=d)*t*((s+1)*t - s) + b;
144
- },
145
- easeOutBack: function (x, t, b, c, d, s) {
146
- if (s == undefined) s = 1.70158;
147
- return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
148
- },
149
- easeInOutBack: function (x, t, b, c, d, s) {
150
- if (s == undefined) s = 1.70158;
151
- if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
152
- return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
153
- },
154
- easeInBounce: function (x, t, b, c, d) {
155
- return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
156
- },
157
- easeOutBounce: function (x, t, b, c, d) {
158
- if ((t/=d) < (1/2.75)) {
159
- return c*(7.5625*t*t) + b;
160
- } else if (t < (2/2.75)) {
161
- return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
162
- } else if (t < (2.5/2.75)) {
163
- return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
164
- } else {
165
- return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
166
- }
167
- },
168
- easeInOutBounce: function (x, t, b, c, d) {
169
- if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
170
- return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
171
- }
172
- });
173
-
174
- /*
175
- *
176
- * TERMS OF USE - EASING EQUATIONS
177
- *
178
- * Open source under the BSD License.
179
- *
180
- * Copyright © 2001 Robert Penner
181
- * All rights reserved.
182
- *
183
- * Redistribution and use in source and binary forms, with or without modification,
184
- * are permitted provided that the following conditions are met:
185
- *
186
- * Redistributions of source code must retain the above copyright notice, this list of
187
- * conditions and the following disclaimer.
188
- * Redistributions in binary form must reproduce the above copyright notice, this list
189
- * of conditions and the following disclaimer in the documentation and/or other materials
190
- * provided with the distribution.
191
- *
192
- * Neither the name of the author nor the names of contributors may be used to endorse
193
- * or promote products derived from this software without specific prior written permission.
194
- *
195
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
196
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
197
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
198
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
199
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
200
- * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
201
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
202
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
203
- * OF THE POSSIBILITY OF SUCH DAMAGE.
204
- *
205
- */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bxslider/plugins/jquery.fitvids.js DELETED
@@ -1,80 +0,0 @@
1
- /*global jQuery */
2
- /*jshint multistr:true browser:true */
3
- /*!
4
- * FitVids 1.0
5
- *
6
- * Copyright 2011, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
7
- * Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
8
- * Released under the WTFPL license - http://sam.zoy.org/wtfpl/
9
- *
10
- * Date: Thu Sept 01 18:00:00 2011 -0500
11
- */
12
-
13
- (function( $ ){
14
-
15
- "use strict";
16
-
17
- $.fn.fitVids = function( options ) {
18
- var settings = {
19
- customSelector: null
20
- };
21
-
22
- var div = document.createElement('div'),
23
- ref = document.getElementsByTagName('base')[0] || document.getElementsByTagName('script')[0];
24
-
25
- div.className = 'fit-vids-style';
26
- div.innerHTML = '&shy;<style> \
27
- .fluid-width-video-wrapper { \
28
- width: 100%; \
29
- position: relative; \
30
- padding: 0; \
31
- } \
32
- \
33
- .fluid-width-video-wrapper iframe, \
34
- .fluid-width-video-wrapper object, \
35
- .fluid-width-video-wrapper embed { \
36
- position: absolute; \
37
- top: 0; \
38
- left: 0; \
39
- width: 100%; \
40
- height: 100%; \
41
- } \
42
- </style>';
43
-
44
- ref.parentNode.insertBefore(div,ref);
45
-
46
- if ( options ) {
47
- $.extend( settings, options );
48
- }
49
-
50
- return this.each(function(){
51
- var selectors = [
52
- "iframe[src*='player.vimeo.com']",
53
- "iframe[src*='www.youtube.com']",
54
- "iframe[src*='www.kickstarter.com']",
55
- "object",
56
- "embed"
57
- ];
58
-
59
- if (settings.customSelector) {
60
- selectors.push(settings.customSelector);
61
- }
62
-
63
- var $allVideos = $(this).find(selectors.join(','));
64
-
65
- $allVideos.each(function(){
66
- var $this = $(this);
67
- if (this.tagName.toLowerCase() === 'embed' && $this.parent('object').length || $this.parent('.fluid-width-video-wrapper').length) { return; }
68
- var height = ( this.tagName.toLowerCase() === 'object' || ($this.attr('height') && !isNaN(parseInt($this.attr('height'), 10))) ) ? parseInt($this.attr('height'), 10) : $this.height(),
69
- width = !isNaN(parseInt($this.attr('width'), 10)) ? parseInt($this.attr('width'), 10) : $this.width(),
70
- aspectRatio = height / width;
71
- if(!$this.attr('id')){
72
- var videoID = 'fitvid' + Math.floor(Math.random()*999999);
73
- $this.attr('id', videoID);
74
- }
75
- $this.wrap('<div class="fluid-width-video-wrapper"></div>').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+"%");
76
- $this.removeAttr('height').removeAttr('width');
77
- });
78
- });
79
- };
80
- })( jQuery );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bxslider/readme.md DELETED
@@ -1,578 +0,0 @@
1
- #bxSlider 4.1.2
2
- ##The fully-loaded, responsive jQuery content slider
3
-
4
- ###Why should I use this slider?
5
- * Fully responsive - will adapt to any device
6
- * Horizontal, vertical, and fade modes
7
- * Slides can contain images, video, or HTML content
8
- * Full callback API and public methods
9
- * Small file size, fully themed, simple to implement
10
- * Browser support: Firefox, Chrome, Safari, iOS, Android, IE7+
11
- * Tons of configuration options
12
-
13
- For complete documentation, tons of examples, and a good time, visit:
14
-
15
- [http://bxslider.com](http://bxslider.com)
16
-
17
- Written by: Steven Wanderski - [http://stevenwanderski.com](http://stevenwanderski.com)
18
-
19
- ###License
20
- Released under the MIT license - http://opensource.org/licenses/MIT
21
-
22
- Let's get on with it!
23
-
24
- ##Installation
25
-
26
- ###Step 1: Link required files
27
-
28
- First and most important, the jQuery library needs to be included (no need to download - link directly from Google). Next, download the package from this site and link the bxSlider CSS file (for the theme) and the bxSlider Javascript file.
29
-
30
- ```html
31
- <!-- jQuery library (served from Google) -->
32
- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
33
- <!-- bxSlider Javascript file -->
34
- <script src="/js/jquery.bxslider.min.js"></script>
35
- <!-- bxSlider CSS file -->
36
- <link href="/lib/jquery.bxslider.css" rel="stylesheet" />
37
- ```
38
-
39
- ###Step 2: Create HTML markup
40
-
41
- Create a `<ul class="bxslider">` element, with a `<li>` for each slide. Slides can contain images, video, or any other HTML content!
42
-
43
- ```html
44
- <ul class="bxslider">
45
- <li><img src="/images/pic1.jpg" /></li>
46
- <li><img src="/images/pic2.jpg" /></li>
47
- <li><img src="/images/pic3.jpg" /></li>
48
- <li><img src="/images/pic4.jpg" /></li>
49
- </ul>
50
- ```
51
-
52
- ###Step 3: Call the bxSlider
53
-
54
- Call .bxslider() on `<ul class="bxslider">`. Note that the call must be made inside of a $(document).ready() call, or the plugin will not work!
55
-
56
- ```javascript
57
- $(document).ready(function(){
58
- $('.bxslider').bxSlider();
59
- });
60
- ```
61
-
62
- ##Configuration options
63
-
64
- ###General
65
-
66
- **mode**
67
- Type of transition between slides
68
- ```
69
- default: 'horizontal'
70
- options: 'horizontal', 'vertical', 'fade'
71
- ```
72
-
73
- **speed**
74
- Slide transition duration (in ms)
75
- ```
76
- default: 500
77
- options: integer
78
- ```
79
-
80
- **slideMargin**
81
- Margin between each slide
82
- ```
83
- default: 0
84
- options: integer
85
- ```
86
-
87
- **startSlide**
88
- Starting slide index (zero-based)
89
- ```
90
- default: 0
91
- options: integer
92
- ```
93
-
94
- **randomStart**
95
- Start slider on a random slide
96
- ```
97
- default: false
98
- options: boolean (true / false)
99
- ```
100
-
101
- **slideSelector**
102
- Element to use as slides (ex. <code>'div.slide'</code>).<br />Note: by default, bxSlider will use all immediate children of the slider element
103
- ```
104
- default: ''
105
- options: jQuery selector
106
- ```
107
-
108
- **infiniteLoop**
109
- If <code>true</code>, clicking "Next" while on the last slide will transition to the first slide and vice-versa
110
- ```
111
- default: true
112
- options: boolean (true / false)
113
- ```
114
-
115
- **hideControlOnEnd**
116
- If <code>true</code>, "Prev" and "Next" controls will receive a class <code>disabled</code> when slide is the first or the last<br/>Note: Only used when <code>infiniteLoop: false</code>
117
- ```
118
- default: false
119
- options: boolean (true / false)
120
- ```
121
-
122
- **easing**
123
- The type of "easing" to use during transitions. If using CSS transitions, include a value for the <code>transition-timing-function</code> property. If not using CSS transitions, you may include <code>plugins/jquery.easing.1.3.js</code> for many options.<br />See <a href="http://gsgd.co.uk/sandbox/jquery/easing/" target="_blank">http://gsgd.co.uk/sandbox/jquery/easing/</a> for more info.
124
- ```
125
- default: null
126
- options: if using CSS: 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out', 'cubic-bezier(n,n,n,n)'. If not using CSS: 'swing', 'linear' (see the above file for more options)
127
- ```
128
-
129
- **captions**
130
- Include image captions. Captions are derived from the image's <code>title</code> attribute
131
- ```
132
- default: false
133
- options: boolean (true / false)
134
- ```
135
-
136
- **ticker**
137
- Use slider in ticker mode (similar to a news ticker)
138
- ```
139
- default: false
140
- options: boolean (true / false)
141
- ```
142
-
143
- **tickerHover**
144
- Ticker will pause when mouse hovers over slider. Note: this functionality does NOT work if using CSS transitions!
145
- ```
146
- default: false
147
- options: boolean (true / false)
148
- ```
149
-
150
- **adaptiveHeight**
151
- Dynamically adjust slider height based on each slide's height
152
- ```
153
- default: false
154
- options: boolean (true / false)
155
- ```
156
-
157
- **adaptiveHeightSpeed**
158
- Slide height transition duration (in ms). Note: only used if <code>adaptiveHeight: true</code>
159
- ```
160
- default: 500
161
- options: integer
162
- ```
163
-
164
- **video**
165
- If any slides contain video, set this to <code>true</code>. Also, include <code>plugins/jquery.fitvids.js</code><br />See <a href="http://fitvidsjs.com/" target="_blank">http://fitvidsjs.com/</a> for more info
166
- ```
167
- default: false
168
- options: boolean (true / false)
169
- ```
170
-
171
- **responsive**
172
- Enable or disable auto resize of the slider. Useful if you need to use fixed width sliders.
173
- ```
174
- default: true
175
- options: boolean (true /false)
176
- ```
177
-
178
- **useCSS**
179
- If true, CSS transitions will be used for horizontal and vertical slide animations (this uses native hardware acceleration). If false, jQuery animate() will be used.
180
- ```
181
- default: true
182
- options: boolean (true / false)
183
- ```
184
-
185
- **preloadImages**
186
- If 'all', preloads all images before starting the slider. If 'visible', preloads only images in the initially visible slides before starting the slider (tip: use 'visible' if all slides are identical dimensions)
187
- ```
188
- default: 'visible'
189
- options: 'all', 'visible'
190
- ```
191
-
192
- **touchEnabled**
193
- If <code>true</code>, slider will allow touch swipe transitions
194
- ```
195
- default: true
196
- options: boolean (true / false)
197
- ```
198
-
199
- **swipeThreshold**
200
- Amount of pixels a touch swipe needs to exceed in order to execute a slide transition. Note: only used if <code>touchEnabled: true</code>
201
- ```
202
- default: 50
203
- options: integer
204
- ```
205
-
206
- **oneToOneTouch**
207
- If <code>true</code>, non-fade slides follow the finger as it swipes
208
- ```
209
- default: true
210
- options: boolean (true / false)
211
- ```
212
-
213
- **preventDefaultSwipeX**
214
- If <code>true</code>, touch screen will not move along the x-axis as the finger swipes
215
- ```
216
- default: true
217
- options: boolean (true / false)
218
- ```
219
-
220
- **preventDefaultSwipeY**
221
- If <code>true</code>, touch screen will not move along the y-axis as the finger swipes
222
- ```
223
- default: false
224
- options: boolean (true / false)
225
- ```
226
-
227
- **wrapperClass**
228
- Class to wrap the slider in. Change to prevent from using default bxSlider styles.
229
- ```
230
- default: 'bx-wrapper'
231
- options: string
232
- ```
233
-
234
- ###Pager
235
-
236
- **pager**
237
- If <code>true</code>, a pager will be added
238
- ```
239
- default: true
240
- options: boolean (true / false)
241
- ```
242
-
243
- **pagerType**
244
- If <code>'full'</code>, a pager link will be generated for each slide. If <code>'short'</code>, a x / y pager will be used (ex. 1 / 5)
245
- ```
246
- default: 'full'
247
- options: 'full', 'short'
248
- ```
249
-
250
- **pagerShortSeparator**
251
- If <code>pagerType: 'short'</code>, pager will use this value as the separating character
252
- ```
253
- default: ' / '
254
- options: string
255
- ```
256
-
257
- **pagerSelector**
258
- Element used to populate the populate the pager. By default, the pager is appended to the bx-viewport
259
- ```
260
- default: ''
261
- options: jQuery selector
262
- ```
263
-
264
- **pagerCustom**
265
- Parent element to be used as the pager. Parent element must contain a <code>&lt;a data-slide-index="x"&gt;</code> element for each slide. See example <a href="/examples/thumbnail-method-1">here</a>. Not for use with dynamic carousels.
266
- ```
267
- default: null
268
- options: jQuery selector
269
- ```
270
-
271
- **buildPager**
272
- If supplied, function is called on every slide element, and the returned value is used as the pager item markup.<br />See <a href="http://bxslider.com/examples">examples</a> for detailed implementation
273
- ```
274
- default: null
275
- options: function(slideIndex)
276
- ```
277
-
278
- ###Controls
279
-
280
- **controls**
281
- If <code>true</code>, "Next" / "Prev" controls will be added
282
- ```
283
- default: true
284
- options: boolean (true / false)
285
- ```
286
-
287
- **nextText**
288
- Text to be used for the "Next" control
289
- ```
290
- default: 'Next'
291
- options: string
292
- ```
293
-
294
- **prevText**
295
- Text to be used for the "Prev" control
296
- ```
297
- default: 'Prev'
298
- options: string
299
- ```
300
-
301
- **nextSelector**
302
- Element used to populate the "Next" control
303
- ```
304
- default: null
305
- options: jQuery selector
306
- ```
307
-
308
- **prevSelector**
309
- Element used to populate the "Prev" control
310
- ```
311
- default: null
312
- options: jQuery selector
313
- ```
314
-
315
- **autoControls**
316
- If <code>true</code>, "Start" / "Stop" controls will be added
317
- ```
318
- default: false
319
- options: boolean (true / false)
320
- ```
321
-
322
- **startText**
323
- Text to be used for the "Start" control
324
- ```
325
- default: 'Start'
326
- options: string
327
- ```
328
-
329
- **stopText**
330
- Text to be used for the "Stop" control
331
- ```
332
- default: 'Stop'
333
- options: string
334
- ```
335
-
336
- **autoControlsCombine**
337
- When slideshow is playing only "Stop" control is displayed and vice-versa
338
- ```
339
- default: false
340
- options: boolean (true / false)
341
- ```
342
-
343
- **autoControlsSelector**
344
- Element used to populate the auto controls
345
- ```
346
- default: null
347
- options: jQuery selector
348
- ```
349
-
350
- ###Auto
351
-
352
- **auto**
353
- Slides will automatically transition
354
- ```
355
- default: false
356
- options: boolean (true / false)
357
- ```
358
-
359
- **pause**
360
- The amount of time (in ms) between each auto transition
361
- ```
362
- default: 4000
363
- options: integer
364
- ```
365
-
366
- **autoStart**
367
- Auto show starts playing on load. If <code>false</code>, slideshow will start when the "Start" control is clicked
368
- ```
369
- default: true
370
- options: boolean (true / false)
371
- ```
372
-
373
- **autoDirection**
374
- The direction of auto show slide transitions
375
- ```
376
- default: 'next'
377
- options: 'next', 'prev'
378
- ```
379
-
380
- **autoHover**
381
- Auto show will pause when mouse hovers over slider
382
- ```
383
- default: false
384
- options: boolean (true / false)
385
- ```
386
-
387
- **autoDelay**
388
- Time (in ms) auto show should wait before starting
389
- ```
390
- default: 0
391
- options: integer
392
- ```
393
-
394
- ###Carousel
395
-
396
- **minSlides**
397
- The minimum number of slides to be shown. Slides will be sized down if carousel becomes smaller than the original size.
398
- ```
399
- default: 1
400
- options: integer
401
- ```
402
-
403
- **maxSlides**
404
- The maximum number of slides to be shown. Slides will be sized up if carousel becomes larger than the original size.
405
- ```
406
- default: 1
407
- options: integer
408
- ```
409
-
410
- **moveSlides**
411
- The number of slides to move on transition. This value must be <code>>= minSlides</code>, and <code><= maxSlides</code>. If zero (default), the number of fully-visible slides will be used.
412
- ```
413
- default: 0
414
- options: integer
415
- ```
416
-
417
- **slideWidth**
418
- The width of each slide. This setting is required for all horizontal carousels!
419
- ```
420
- default: 0
421
- options: integer
422
- ```
423
-
424
- ###Callbacks
425
-
426
- **onSliderLoad**
427
- Executes immediately after the slider is fully loaded
428
- ```
429
- default: function(){}
430
- options: function(currentIndex){ // your code here }
431
- arguments:
432
- currentIndex: element index of the current slide
433
- ```
434
-
435
- **onSliderResize**
436
- Executes immediately after the slider is resized
437
- ```
438
- default: function(){}
439
- options: function(currentIndex){ // your code here }
440
- arguments:
441
- currentIndex: element index of the current slide
442
- ```
443
-
444
- **onSlideBefore**
445
- Executes immediately before each slide transition.
446
- ```
447
- default: function(){}
448
- options: function($slideElement, oldIndex, newIndex){ // your code here }
449
- arguments:
450
- $slideElement: jQuery element of the destination element
451
- oldIndex: element index of the previous slide (before the transition)
452
- newIndex: element index of the destination slide (after the transition)
453
- ```
454
-
455
- **onSlideAfter**
456
- Executes immediately after each slide transition. Function argument is the current slide element (when transition completes).
457
- ```
458
- default: function(){}
459
- options: function($slideElement, oldIndex, newIndex){ // your code here }
460
- arguments:
461
- $slideElement: jQuery element of the destination element
462
- oldIndex: element index of the previous slide (before the transition)
463
- newIndex: element index of the destination slide (after the transition)
464
- ```
465
-
466
- **onSlideNext**
467
- Executes immediately before each "Next" slide transition. Function argument is the target (next) slide element.
468
- ```
469
- default: function(){}
470
- options: function($slideElement, oldIndex, newIndex){ // your code here }
471
- arguments:
472
- $slideElement: jQuery element of the destination element
473
- oldIndex: element index of the previous slide (before the transition)
474
- newIndex: element index of the destination slide (after the transition)
475
- ```
476
-
477
- **onSlidePrev**
478
- Executes immediately before each "Prev" slide transition. Function argument is the target (prev) slide element.
479
- ```
480
- default: function(){}
481
- options: function($slideElement, oldIndex, newIndex){ // your code here }
482
- arguments:
483
- $slideElement: jQuery element of the destination element
484
- oldIndex: element index of the previous slide (before the transition)
485
- newIndex: element index of the destination slide (after the transition)
486
- ```
487
-
488
- ###Public methods
489
-
490
- **goToSlide**
491
- Performs a slide transition to the supplied slide index (zero-based)
492
- ```
493
- example:
494
- slider = $('.bxslider').bxSlider();
495
- slider.goToSlide(3);
496
- ```
497
-
498
- **goToNextSlide**
499
- Performs a "Next" slide transition
500
- ```
501
- example:
502
- slider = $('.bxslider').bxSlider();
503
- slider.goToNextSlide();
504
- ```
505
-
506
- **goToPrevSlide**
507
- Performs a "Prev" slide transition
508
- ```
509
- example:
510
- slider = $('.bxslider').bxSlider();
511
- slider.goToPrevSlide();
512
- ```
513
-
514
- **startAuto**
515
- Starts the auto show. Provide an argument <code>false</code> to prevent the auto controls from being updated.
516
- ```
517
- example:
518
- slider = $('.bxslider').bxSlider();
519
- slider.startAuto();
520
- ```
521
-
522
- **stopAuto**
523
- Stops the auto show. Provide an argument <code>false</code> to prevent the auto controls from being updated.
524
- ```
525
- example:
526
- slider = $('.bxslider').bxSlider();
527
- slider.stopAuto();
528
- ```
529
-
530
- **getCurrentSlide**
531
- Returns the current active slide
532
- ```
533
- example:
534
- slider = $('.bxslider').bxSlider();
535
- var current = slider.getCurrentSlide();
536
- ```
537
-
538
- **getSlideCount**
539
- Returns the total number of slides in the slider
540
- ```
541
- example:
542
- slider = $('.bxslider').bxSlider();
543
- var slideQty = slider.getSlideCount();
544
- ```
545
-
546
- **reloadSlider**
547
- Reload the slider. Useful when adding slides on the fly. Accepts an optional settings object. <a href="/examples/reload-slider-settings">See here for an example.</a>
548
- ```
549
- example:
550
- slider = $('.bxslider').bxSlider();
551
- slider.reloadSlider();
552
- ```
553
-
554
- **destroySlider**
555
- Destroy the slider. This reverts all slider elements back to their original state (before calling the slider).
556
- ```
557
- example:
558
- slider = $('.bxslider').bxSlider();
559
- slider.destroySlider();
560
- ```
561
-
562
- ## Changelog
563
-
564
- ### Version 4.1.2
565
- * Added `bower.json` configuration file. Manage bxSlider as a dependency using [bower](http://bower.io/).
566
-
567
- ### Version 4.1.1
568
- * Removed imagesLoaded library and added iframe preloading support
569
- * Added responsive option - setting to false will prevent $(window).resize binding
570
-
571
- ### Version 4.1
572
- * Carousel mode (minSlides / maxSlides) was re-written to be more intuitive.
573
- * SlideWidth now acts as it should (slides respect the width value).
574
- * SlideWidth now properly parsed: accepts string ("600px") or integer (600).
575
- * Slider now only needs to load visible slides (by default) in order to initialize which results in much faster loading. A "preloadImages" setting allows for configuration.
576
-
577
-
578
- Long live Zep.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
captcha/captcha.php CHANGED
@@ -25,21 +25,7 @@ $_SESSION['wc_captcha'][$comm_id] = md5(strtolower(trim($randomString)));
25
  $im = @imagecreatefrompng("captcha_bg_easy.png");
26
 
27
 
28
- $font_path = './consolai.ttf';
29
-
30
-
31
- $x = 5;
32
- for ($i = 0; $i < strlen($randomString); $i++) {
33
- $color = imagecolorallocate($im, rand(0, 255), 0, rand(0, 255));
34
- $letter = substr($randomString, $i, 1);
35
- imagettftext($im, 16, 0, $x, 20, $color, $font_path, $letter);
36
- $x += 13;
37
- }
38
-
39
- for ($i = 0; $i < 5; $i++) {
40
- $color = imagecolorallocate($im, rand(0, 255), rand(0, 200), rand(0, 255));
41
- imageline($im, rand(0, 20), rand(1, 50), rand(150, 180), rand(1, 50), $color);
42
- }
43
 
44
  header('Content-type: image/png');
45
  imagepng($im, NULL, 0);
25
  $im = @imagecreatefrompng("captcha_bg_easy.png");
26
 
27
 
28
+ imagettftext($im, 16, 0, 5, 20, imagecolorallocate($im, 0, 0, 0), 'consolai.ttf', $randomString);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
 
30
  header('Content-type: image/png');
31
  imagepng($im, NULL, 0);
comment-form/form.php CHANGED
@@ -45,13 +45,9 @@ $header_text .= ' "' . get_the_title($post) . '"';
45
  ?>
46
  <div style="clear:both"></div>
47
  <div class="comments-area">
48
- <h3 id="wc-comment-header"><?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_leave_a_reply_text']; ?></h3>
49
- <?php do_action('comment_form_before'); ?>
50
  <div id="wpcomm">
51
- <p class="wc-comment-title">
52
- <?php echo ($post->comment_count) ? $header_text : $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_be_the_first_text']; ?>
53
- </p>
54
- <?php do_action('comment_form_top'); ?>
55
  <div class="wc-form-wrapper">
56
  <?php
57
  if ($wc_core->is_guest_can_comment()) {
@@ -89,15 +85,15 @@ $header_text .= ' "' . get_the_title($post) . '"';
89
  <div class="wc-field-submit"><input type="button" name="submit" value="<?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_submit_text']; ?>" id="wc_comm-<?php echo $unique_id; ?>" class="wc_comm_submit button alt"/></div>
90
  <div style="clear:both"></div>
91
  </div>
92
- </div>
 
 
93
  <input type="hidden" name="wc_comment_post_ID" value="<?php echo $post->ID; ?>" id="wc_comment_post_ID-<?php echo $unique_id; ?>" />
94
  <input type="hidden" name="wc_comment_parent" value="0" id="wc_comment_parent-<?php echo $unique_id; ?>" />
95
  </form>
96
  <?php } else { ?>
97
  <p class="wc-must-login"><?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_you_must_be_text']; ?> <a href="<?php echo wp_login_url(); ?>"><?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_logged_in_text']; ?></a> <?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_to_post_comment_text']; ?></p>
98
  <?php } ?>
99
- <input type="hidden" name="wc_home_url" value="<?php echo plugins_url(); ?>" id="wc_home_url" />
100
- <input type="hidden" name="wc_plugin_dir_url" value="<?php echo WC_Core::$PLUGIN_DIRECTORY; ?>" id="wc_plugin_dir_url" />
101
  </div>
102
  <hr/>
103
 
@@ -115,8 +111,7 @@ $header_text .= ' "' . get_the_title($post) . '"';
115
  <?php } ?>
116
 
117
  <div style="clear:both"></div>
118
- <div class="by-wpdiscuz"><span id="awpdiscuz" onclick='javascript:document.getElementById("bywpdiscuz").style.display = "inline";
119
- document.getElementById("awpdiscuz").style.display = "none";'><img src="<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/img/plugin-icon/icon_info.png'); ?>" align="absmiddle" class="wpdimg"/></span>&nbsp;<a href="http://gvectors.com/wpdiscuz/" id="bywpdiscuz" title="wpDiscuz - Interactive Comment System">wpDiscuz</a></div>
120
 
121
  <div id="wc_openModalFormAction" class="modalDialog">
122
  <div id="wc_response_info" class="wc_modal">
@@ -127,5 +122,4 @@ $header_text .= ' "' . get_the_title($post) . '"';
127
  </div>
128
  </div>
129
  </div>
130
- </div>
131
- <?php do_action('comment_form_after'); ?>
45
  ?>
46
  <div style="clear:both"></div>
47
  <div class="comments-area">
48
+ <h3 class="wc-comment-header"><?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_leave_a_reply_text']; ?></h3>
 
49
  <div id="wpcomm">
50
+ <p class="wc-comment-title"><?php echo ($post->comment_count) ? $header_text : $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_be_the_first_text']; ?></p>
 
 
 
51
  <div class="wc-form-wrapper">
52
  <?php
53
  if ($wc_core->is_guest_can_comment()) {
85
  <div class="wc-field-submit"><input type="button" name="submit" value="<?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_submit_text']; ?>" id="wc_comm-<?php echo $unique_id; ?>" class="wc_comm_submit button alt"/></div>
86
  <div style="clear:both"></div>
87
  </div>
88
+ </div>
89
+ <input type="hidden" name="wc_home_url" value="<?php echo plugins_url(); ?>" id="wc_home_url" />
90
+ <input type="hidden" name="wc_plugin_dir_url" value="<?php echo WC_Core::$PLUGIN_DIRECTORY; ?>" id="wc_plugin_dir_url" />
91
  <input type="hidden" name="wc_comment_post_ID" value="<?php echo $post->ID; ?>" id="wc_comment_post_ID-<?php echo $unique_id; ?>" />
92
  <input type="hidden" name="wc_comment_parent" value="0" id="wc_comment_parent-<?php echo $unique_id; ?>" />
93
  </form>
94
  <?php } else { ?>
95
  <p class="wc-must-login"><?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_you_must_be_text']; ?> <a href="<?php echo wp_login_url(); ?>"><?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_logged_in_text']; ?></a> <?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_to_post_comment_text']; ?></p>
96
  <?php } ?>
 
 
97
  </div>
98
  <hr/>
99
 
111
  <?php } ?>
112
 
113
  <div style="clear:both"></div>
114
+ <div class="by-wpdiscuz"><a href="http://gvectors.com/wpdiscuz/">wpDiscuz</a></div>
 
115
 
116
  <div id="wc_openModalFormAction" class="modalDialog">
117
  <div id="wc_response_info" class="wc_modal">
122
  </div>
123
  </div>
124
  </div>
125
+ </div>
 
comment-form/tpl-comment.php CHANGED
@@ -42,21 +42,10 @@ class WC_Comment_Template_Builder {
42
  $share_text = $this->wc_options->wc_options_serialized->wc_phrases['wc_share_text'];
43
  $comment_wrapper_class = ($comment->comment_parent) ? 'wc-comment wc-reply' : 'wc-comment';
44
  $textarea_placeholder = $this->get_textarea_placeholder($comment);
45
-
46
  $vote_count = ($comment->votes) ? $comment->votes : 0;
47
  $unique_id = $this->get_unique_id($comment);
48
 
49
- $wc_author_name = $comment->comment_author;
50
-
51
- $wc_comm_author_avatar = $this->wc_helper->get_comment_author_avatar($comment);
52
- $wc_profile_url = $this->get_profile_url($user);
53
-
54
-
55
- if ($wc_profile_url) {
56
- $wc_comm_author_avatar = "<a target='_blank' href='$wc_profile_url'>" . $this->wc_helper->get_comment_author_avatar($comment) . "</a>";
57
- $wc_author_name = "<a target='_blank' href='$wc_profile_url'>" . $wc_author_name . "</a>";
58
- }
59
-
60
  $child_comments = get_comments(array(
61
  'parent' => $comment->comment_ID,
62
  'status' => 'approve'
@@ -76,13 +65,13 @@ class WC_Comment_Template_Builder {
76
  $parent_comment = (!$comment->comment_parent && count($child_comments)) ? ' parnet_comment' : '';
77
 
78
  $output = '<div id="wc-comm-' . $unique_id . '" class="' . $comment_wrapper_class . ' ' . $parent_comment . '">';
79
- $output .= '<div class="wc-comment-left">' . $wc_comm_author_avatar;
80
  if (!$this->wc_options->wc_options_serialized->wc_author_titles_show_hide) {
81
  $output .= '<div class="wc-comment-label">' . $author_title . '</div>';
82
  }
83
  $output .= '</div>';
84
  $output .= '<div class="wc-comment-right">';
85
- $output .= '<div class="wc-comment-header"><div class="wc-comment-author">' . $wc_author_name . '</div><div class="wc-comment-date">' . $posted_date . '</div><div style="clear:both"></div></div>';
86
  $output .= '<div class="wc-comment-text">' . $comment_content . '</div>';
87
  $output .= '<div class="wc-comment-footer">';
88
  if (!$this->wc_options->wc_options_serialized->wc_voting_buttons_show_hide) {
@@ -138,9 +127,9 @@ class WC_Comment_Template_Builder {
138
 
139
  if (!$this->wc_options->wc_options_serialized->wc_captcha_show_hide) {
140
  if (!is_user_logged_in()) {
141
- $output .= '<div class="wc-field-captcha item">';
142
- $output .= '<input id="wc_captcha-' . $unique_id . '" name="wc_captcha" required="required" value="" type="text" /><span class="wc-label wc-captcha-label">';
143
- $output .= '<img rel="nofollow" src="' . plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/captcha/captcha.php?comm_id=' . $comment->comment_post_ID . '-' . $comment->comment_ID) . '" id="wc_captcha_img-' . $unique_id . '" />';
144
  $output .= '<img rel="nofollow" src="' . plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/img/refresh-16x16.png') . '" id="wc_captcha_refresh_img-' . $unique_id . '" class="wc_captcha_refresh_img" />';
145
  $output .= '</span><span class="captcha_msg">' . $this->wc_options->wc_options_serialized->wc_phrases['wc_captcha_text'] . '</span></div>';
146
  }
@@ -201,23 +190,6 @@ class WC_Comment_Template_Builder {
201
  return $user_can_comment;
202
  }
203
 
204
- /**
205
- *
206
- * get profile url
207
- */
208
- private function get_profile_url($user) {
209
- $wc_profile_url = '';
210
- if ($user) {
211
- if (class_exists('BuddyPress')) {
212
- $wc_profile_url = bp_core_get_user_domain($user->ID);
213
- } else if (class_exists('XooUserUltra')) {
214
- global $xoouserultra;
215
- $wc_profile_url = $xoouserultra->userpanel->get_user_profile_permalink($user->ID);
216
- }
217
- }
218
- return $wc_profile_url;
219
- }
220
-
221
  /**
222
  * returns placeholder for textarea from options page phrases
223
  */
42
  $share_text = $this->wc_options->wc_options_serialized->wc_phrases['wc_share_text'];
43
  $comment_wrapper_class = ($comment->comment_parent) ? 'wc-comment wc-reply' : 'wc-comment';
44
  $textarea_placeholder = $this->get_textarea_placeholder($comment);
45
+ $comm_author_avatar = $this->wc_helper->get_comment_author_avatar($comment);
46
  $vote_count = ($comment->votes) ? $comment->votes : 0;
47
  $unique_id = $this->get_unique_id($comment);
48
 
 
 
 
 
 
 
 
 
 
 
 
49
  $child_comments = get_comments(array(
50
  'parent' => $comment->comment_ID,
51
  'status' => 'approve'
65
  $parent_comment = (!$comment->comment_parent && count($child_comments)) ? ' parnet_comment' : '';
66
 
67
  $output = '<div id="wc-comm-' . $unique_id . '" class="' . $comment_wrapper_class . ' ' . $parent_comment . '">';
68
+ $output .= '<div class="wc-comment-left">' . $comm_author_avatar;
69
  if (!$this->wc_options->wc_options_serialized->wc_author_titles_show_hide) {
70
  $output .= '<div class="wc-comment-label">' . $author_title . '</div>';
71
  }
72
  $output .= '</div>';
73
  $output .= '<div class="wc-comment-right">';
74
+ $output .= '<div class="wc-comment-header"><div class="wc-comment-author">' . $comment->comment_author . '</div><div class="wc-comment-date">' . $posted_date . '</div><div style="clear:both"></div></div>';
75
  $output .= '<div class="wc-comment-text">' . $comment_content . '</div>';
76
  $output .= '<div class="wc-comment-footer">';
77
  if (!$this->wc_options->wc_options_serialized->wc_voting_buttons_show_hide) {
127
 
128
  if (!$this->wc_options->wc_options_serialized->wc_captcha_show_hide) {
129
  if (!is_user_logged_in()) {
130
+ $output .= '<div class="wc-field-captcha item">';
131
+ $output .= '<input id="wc_captcha-' . $unique_id . '" name="wc_captcha" required="required" value="" type="text" /><span class="wc-label wc-captcha-label">';
132
+ $output .= '<img rel="nofollow" src="' . plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/captcha/captcha.php?comm_id=' . $comment->comment_post_ID . '-' . $comment->comment_ID) . '" id="wc_captcha_img-' . $unique_id . '" />';
133
  $output .= '<img rel="nofollow" src="' . plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/img/refresh-16x16.png') . '" id="wc_captcha_refresh_img-' . $unique_id . '" class="wc_captcha_refresh_img" />';
134
  $output .= '</span><span class="captcha_msg">' . $this->wc_options->wc_options_serialized->wc_phrases['wc_captcha_text'] . '</span></div>';
135
  }
190
  return $user_can_comment;
191
  }
192
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
193
  /**
194
  * returns placeholder for textarea from options page phrases
195
  */
files/css/options-css.css CHANGED
@@ -8,6 +8,3 @@
8
  width: 300px;
9
  }
10
 
11
- .comment_list_order label {
12
- float: left;
13
- }
8
  width: 300px;
9
  }
10
 
 
 
 
files/img/gc/1.png DELETED
Binary file
files/img/gc/2.png DELETED
Binary file
files/img/gc/3.png DELETED
Binary file
files/img/gc/4.png DELETED
Binary file
files/img/plugin-icon/icon_info.png DELETED
Binary file
files/js/wc-scripts.js CHANGED
@@ -38,11 +38,4 @@ jQuery(document).ready(function ($) {
38
  $('#wc_vote_reply_color').val('#' + hex);
39
  }
40
  });
41
-
42
- $('#wc_colorpickerHolder6').ColorPicker({
43
- flat: true,
44
- onChange: function (hsb, hex, rgb) {
45
- $('#wc_form_bg_color').val('#' + hex);
46
- }
47
- });
48
  });
38
  $('#wc_vote_reply_color').val('#' + hex);
39
  }
40
  });
 
 
 
 
 
 
 
41
  });
files/third-party/simple-tabs/css/simple-tabs.css DELETED
@@ -1,52 +0,0 @@
1
- .tabs-menu {
2
- height: 30px;
3
- float: left;
4
- clear: both;
5
- }
6
-
7
- .tabs-menu li {
8
- height: 30px;
9
- line-height: 30px;
10
- float: left;
11
- margin-right: 10px;
12
- background-color: #ccc;
13
- border-top: 1px solid #d4d4d1;
14
- border-right: 1px solid #d4d4d1;
15
- border-left: 1px solid #d4d4d1;
16
- }
17
-
18
- .tabs-menu li.current {
19
- position: relative;
20
- background-color: #fff;
21
- border-bottom: 1px solid #fff;
22
- z-index: 5;
23
- }
24
-
25
- .tabs-menu li a {
26
- padding: 10px;
27
- text-transform: uppercase;
28
- color: #fff;
29
- text-decoration: none;
30
- }
31
-
32
- .tabs-menu .current a {
33
- color: #2e7da3;
34
- }
35
-
36
- .tab {
37
- border: 1px solid #d4d4d1;
38
- background-color: #fff;
39
- float: left;
40
- margin-bottom: 20px;
41
- width: auto;
42
- }
43
-
44
- .tab-content {
45
- width: 660px;
46
- padding: 20px;
47
- display: none;
48
- }
49
-
50
- #tab-1 {
51
- display: block;
52
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
files/third-party/simple-tabs/js/simple-tabs.js DELETED
@@ -1,10 +0,0 @@
1
- jQuery(document).ready(function ($) {
2
- $(".tabs-menu a").click(function (event) {
3
- event.preventDefault();
4
- $(this).parent().addClass("current");
5
- $(this).parent().siblings().removeClass("current");
6
- var tab = $(this).attr("href");
7
- $(".tab-content").not(tab).css("display", "none");
8
- $(tab).fadeIn();
9
- });
10
- });
 
 
 
 
 
 
 
 
 
 
includes/wc-db-helper.php CHANGED
@@ -26,7 +26,7 @@ class WC_DB_Helper {
26
  dbDelta($sql);
27
  }
28
  if ($this->db->get_var("SHOW TABLES LIKE '$this->phrases'") != $this->phrases) {
29
- $sql = "CREATE TABLE `" . $this->phrases . "`(`id` INT(11) NOT NULL AUTO_INCREMENT, `phrase_key` VARCHAR(255) NOT NULL, `phrase_value` VARCHAR(255) NOT NULL, PRIMARY KEY (`id`), KEY `phrase_key` (`phrase_key`)) ENGINE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci AUTO_INCREMENT=1;;";
30
  dbDelta($sql);
31
  }
32
  }
@@ -77,7 +77,7 @@ class WC_DB_Helper {
77
  }
78
 
79
  public function is_phrase_exists($phrase_key) {
80
- $sql = $this->db->prepare("SELECT `phrase_key` FROM `" . $this->phrases . "` WHERE `phrase_key` LIKE %s", $phrase_key);
81
  return $this->db->get_var($sql);
82
  }
83
 
26
  dbDelta($sql);
27
  }
28
  if ($this->db->get_var("SHOW TABLES LIKE '$this->phrases'") != $this->phrases) {
29
+ $sql = "CREATE TABLE `" . $this->phrases . "`(`id` INT(11) NOT NULL AUTO_INCREMENT, `phrase_key` VARCHAR(255) NOT NULL, `phrase_value` VARCHAR(255) NOT NULL, PRIMARY KEY (`id`), KEY `phrase_key` (`phrase_key`) );";
30
  dbDelta($sql);
31
  }
32
  }
77
  }
78
 
79
  public function is_phrase_exists($phrase_key) {
80
+ $sql = $this->db->prepare("SELECT `phrase_value` FROM `" . $this->phrases . "` WHERE `phrase_key` LIKE %s", $phrase_key);
81
  return $this->db->get_var($sql);
82
  }
83
 
options-templates/options-template-main.php CHANGED
@@ -21,23 +21,6 @@
21
  </td>
22
  </tr>
23
 
24
- <tr valign="top">
25
- <th scope="row">
26
- <?php _e('Show the latest comments on', 'wpdiscuz'); ?>
27
- </th>
28
- <td colspan="3">
29
- <fieldset class="comment_list_order">
30
- <label title="<?php _e('the top of the list', 'wpdiscuz') ?>">
31
- <input type="radio" value="desc" <?php checked('desc' == $this->wc_options_serialized->wc_comment_list_order); ?> name="wc_comment_list_order" id="wc_comment_list_order" />
32
- <span><?php _e('top of the threads', 'wpdiscuz') ?></span>
33
- </label> &nbsp;<br/>
34
- <label title="<?php _e('bottom of the threads', 'wpdiscuz') ?>">
35
- <input type="radio" value="asc" <?php checked('asc' == $this->wc_options_serialized->wc_comment_list_order); ?> name="wc_comment_list_order" id="wc_comment_list_order" />
36
- <span><?php _e('the bottom of the list', 'wpdiscuz') ?></span>
37
- </label><br>
38
- </fieldset>
39
- </td>
40
- </tr>
41
 
42
  <tr valign="top">
43
  <th scope="row">
@@ -167,46 +150,6 @@
167
  </td>
168
  </tr>
169
 
170
- <tr valign="top">
171
- <th scope="row">
172
- <label for="wc_comment_text_size"><?php _e('Comment text size in pixels', 'wpdiscuz'); ?></label>
173
- </th>
174
- <td colspan="3">
175
- <select id="wc_comment_text_size" name="wc_comment_text_size">
176
- <?php $wc_comment_text_size = isset($this->wc_options_serialized->wc_comment_text_size) ? $this->wc_options_serialized->wc_comment_text_size : '14px'; ?>
177
- <option value="12px" <?php selected($wc_comment_text_size, '12px'); ?>>12px</option>
178
- <option value="13px" <?php selected($wc_comment_text_size, '13px'); ?>>13px</option>
179
- <option value="14px" <?php selected($wc_comment_text_size, '14px'); ?>>14px</option>
180
- <option value="15px" <?php selected($wc_comment_text_size, '15px'); ?>>15px</option>
181
- <option value="16px" <?php selected($wc_comment_text_size, '16px'); ?>>16px</option>
182
- </select>
183
- </td>
184
- </tr>
185
-
186
- <tr valign="top">
187
- <th scope="row">
188
- <label for="wc_form_bg_color"><?php _e('Comment Form Background Color', 'wpdiscuz'); ?></label>
189
- </th>
190
- <td width="1">
191
- <input type="text" class="regular-text" value="<?php echo isset($this->wc_options_serialized->wc_form_bg_color) ? $this->wc_options_serialized->wc_form_bg_color : '#f9f9f9' ; ?>" id="wc_form_bg_color" name="wc_form_bg_color" placeholder="<?php _e('Example: #00ff00', 'wpdiscuz'); ?>"/>
192
- </td>
193
-
194
- <td class="picker_img_cell">
195
- <a href="#wc_openModal6">
196
- <img class="wc_colorpicker_img6" src="<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/third-party/colorpicker/img/colorpicker_icon_22.png'); ?>" />
197
- </a>
198
- </td>
199
- <td class="color_picker">
200
- <div id="wc_openModal6" class="modalDialog">
201
- <div id="wc_box6">
202
- <a href="#close" title="Close" class="close">X</a>
203
- <h2>Color Picker</h2>
204
- <p id="wc_colorpickerHolder6"></p>
205
- </div>
206
- </div>
207
- </td>
208
- </tr>
209
-
210
  <tr valign="top">
211
  <th scope="row">
212
  <label for="wc_comment_bg_color"><?php _e('Comment Background Color', 'wpdiscuz'); ?></label>
21
  </td>
22
  </tr>
23
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
 
25
  <tr valign="top">
26
  <th scope="row">
150
  </td>
151
  </tr>
152
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
153
  <tr valign="top">
154
  <th scope="row">
155
  <label for="wc_comment_bg_color"><?php _e('Comment Background Color', 'wpdiscuz'); ?></label>
readme.txt CHANGED
@@ -1,23 +1,21 @@
1
  === wpDiscuz - Wordpress Comments ===
2
  Contributors: gVectors Team
3
- Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=UC44WQM5XJFPA
4
- Tags: wordpress comments, ajax comments, ajax, theme, post comments, comments box, community, discussion, discuss, comment form, reply, comments, discussions, comment template, activity, comment author, comment system
5
  Requires at least: 2.7
6
- Tested up to: 4.1
7
- Stable tag: 1.0.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
- New interactive, AJAX comment system. Wordpress post comments and discussion plugin. Allows your visitors discuss, vote for comments and share.
12
 
13
  == Description ==
14
 
15
- New interactive, AJAX comment system. Wordpress post comments and discussion plugin. Allows your visitors discuss, vote for comments and share.
16
 
17
  **wpDiscuz Features:**
18
 
19
- **Front-end**
20
-
21
  * | Adds interactive comment box on posts and other content types
22
  * | Responsive comments form and comment threads design
23
  * | Clean, simple and easy user interface and user experience
@@ -31,12 +29,10 @@ New interactive, AJAX comment system. Wordpress post comments and discussion plu
31
  * | Comment voting with positive and negative result
32
  * | Smart voting system with tracking by logged-in user and cookies
33
  * | Post sharing options: Facebook, Twitter and Google+
34
-
35
-
36
- **Dashboard**
37
-
38
  * | Option to display comment form for certain post types
39
- * | Option to show the latest comments on top or bottom of threads
40
  * | Options to turn On/Off Comment Voting and Sharing features
41
  * | Option to hide/show CAPTCHA field on comment form
42
  * | Option for "User Must be registered to comment"
@@ -50,10 +46,6 @@ New interactive, AJAX comment system. Wordpress post comments and discussion plu
50
  * | Option to manage reply/share/vote link colors
51
  * | Front-end phrase managing options, you'll be able to translate or change all phrases
52
 
53
- This comment system is also available for WooCommerce, Plugin name is WooDiscuz:
54
- https://wordpress.org/plugins/woodiscuz-woocommerce-comments/
55
-
56
-
57
  == Installation ==
58
 
59
  1. Upload plugin folder to the '/wp-content/plugins/' directory,
@@ -61,59 +53,13 @@ https://wordpress.org/plugins/woodiscuz-woocommerce-comments/
61
 
62
  == Frequently Asked Questions ==
63
 
64
- = Q&A =
65
-
66
- * QUESTION: Does it fully replace the current comment system? That in this case what happens to old comments?
67
- * ANSWER: wpDiscuz changes default comment system to a new interactive system and shows all old comments, nothing will be lost.
68
-
69
-
70
- * QUESTION: Where comments are stored?
71
- * ANSWER: wpDiscuz uses the default WordPress comment storage system, all comments are on your database and all comments are manageable in Dashboard > Comments admin page.
72
-
73
-
74
- * QUESTION: Will my comments be lost if I install this plugin, and then remove it?
75
- * ANSWER: wpDiscuz doesn't affect any data. You can install and uninstall whenever you want without any worries.
76
-
77
-
78
  = Please Check the Following wpDiscuz Resources =
79
 
80
  * Support Forum: <http://gvectors.com/questions/>
81
- * Plugin Page: <http://gvectors.com/wpdiscuz/>
82
-
83
- == Screenshots ==
84
-
85
- 1. Ajax Form to add a new discussion thread Screenshot #1
86
- 2. Discussion Threads with Reply Form Screenshot #2
87
- 3. Full Front-End View Screenshot #3
88
- 4. wpDiscuz General Settings #4
89
- 5. Another Full Front-End View Screenshot #5
90
-
91
 
92
  == Changelog ==
93
-
94
- = 1.0.9 =
95
- * Added : Option to set comment text font size
96
- * Added : Option to set form background color
97
- * Added : Better responsively on mobile devices
98
- * Added : better CAPTCHA image with colors and lines
99
- * Fixed Bug: Undefined loader spinner image source.
100
-
101
- = 1.0.8 =
102
- * Fixed Bug: CSS Issues
103
- * Added : wpDiscuz comment system supports all WordPress template hooks. It's compatible with all plugins which uses comment hooks.
104
-
105
- = 1.0.7 =
106
- * Fixed Bug: wpDiscuz comments ordering conflict with wordpress comments ordering
107
-
108
- = 1.0.6 =
109
- * Added : Option to sort comments by comment date with ascending or descending order
110
-
111
- = 1.0.5 =
112
- * Added : Comment author names are links to their profile page (BuddyPress, Users Ultra)
113
- * Fixed Bug : CSS Issues
114
-
115
  = 1.0.4 =
116
- * Fixed Bug: Fatal error - Using $this when not in object context in ...
117
 
118
  = 1.0.3 =
119
  * Fixed Bug : Problem with options page redirection on Wordpress multi-sites
1
  === wpDiscuz - Wordpress Comments ===
2
  Contributors: gVectors Team
3
+ Tags: Wordpress Comments, Post Comments, comments box, comments, discussions, comment template
 
4
  Requires at least: 2.7
5
+ Tested up to: 4.0.1
6
+ Stable tag: 1.0.4
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
+ Better comment system. Wordpress post comments and discussion plugin. Allows your visitors discuss, vote for comments and share.
11
 
12
  == Description ==
13
 
14
+ Better comment system. Wordpress post comments and discussion plugin. Allows your visitors discuss, vote for comments and share.
15
 
16
  **wpDiscuz Features:**
17
 
18
+ * | **Front-end**
 
19
  * | Adds interactive comment box on posts and other content types
20
  * | Responsive comments form and comment threads design
21
  * | Clean, simple and easy user interface and user experience
29
  * | Comment voting with positive and negative result
30
  * | Smart voting system with tracking by logged-in user and cookies
31
  * | Post sharing options: Facebook, Twitter and Google+
32
+ *
33
+ * | **Dashboard**
 
 
34
  * | Option to display comment form for certain post types
35
+ * | Option to set Discussion Tab as the first opened Tab on product page
36
  * | Options to turn On/Off Comment Voting and Sharing features
37
  * | Option to hide/show CAPTCHA field on comment form
38
  * | Option for "User Must be registered to comment"
46
  * | Option to manage reply/share/vote link colors
47
  * | Front-end phrase managing options, you'll be able to translate or change all phrases
48
 
 
 
 
 
49
  == Installation ==
50
 
51
  1. Upload plugin folder to the '/wp-content/plugins/' directory,
53
 
54
  == Frequently Asked Questions ==
55
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  = Please Check the Following wpDiscuz Resources =
57
 
58
  * Support Forum: <http://gvectors.com/questions/>
 
 
 
 
 
 
 
 
 
 
59
 
60
  == Changelog ==
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
  = 1.0.4 =
62
+ Fixed Error: Broken plugin
63
 
64
  = 1.0.3 =
65
  * Fixed Bug : Problem with options page redirection on Wordpress multi-sites
wc-css.php CHANGED
@@ -14,27 +14,27 @@ class WC_CSS {
14
  public function init_styles() {
15
  ?>
16
  <style type="text/css">
17
- #wc-comment-header{ padding:20px 5px 1px 5px; display:block; float:none; clear:both; font-size:18px;} /*#2892BF*/
18
  #wpcomm form .item {display: block;} .item input {}
19
- #wpcomm { margin:15px 5px; padding:1px 0px 10px 0px; border-top:#DDDDDD solid 1px; }
20
  #wpcomm form { margin:0px; padding:0px; background:none; border:none; }
21
  #wpcomm form div{ margin:0px; }
22
  #wpcomm .wc-comment-title{ margin:0px; line-height:18px; font-weight:bold; padding:10px; margin-bottom:10px; font-size:13px; text-align:right; border-bottom:#CCCCCC dotted 1px; padding-bottom:10px; }
23
- #wpcomm .wc-form-wrapper{ padding:10px; background:<?php echo isset($this->wc_options->wc_options_serialized->wc_form_bg_color) ? $this->wc_options->wc_options_serialized->wc_form_bg_color : '#f9f9f9'; ?>; margin-top:20px; border:1px solid #F1F1F1; }
24
  #wpcomm .wc-author-data{ margin-bottom:10px; }
25
  #wpcomm .wc-field-submit{ padding:5px 0px 13px 0px; }
26
  #wpcomm .wc-field-name{ width:49%; float:left; }
27
  #wpcomm .wc-field-email{ width:49%; float:right; text-align:right; }
28
  #wpcomm .wc-field-comment{ margin:5px auto 10px auto; }
29
- #wpcomm .wc-field-captcha{ width:55%; float:left; margin:0px; height:auto!important; }
30
  #wpcomm .wc-field-submit{ width:45%; float:right; text-align:right; margin:0px; }
31
- #wpcomm .wc-field-name input[type="text"]{ width:95%; max-width:100%; padding:5px; font-size:14px; margin:0px; height:29px; }
32
- #wpcomm .wc-field-email input[type="email"]{ width:100%; max-width:100%; padding:5px; font-size:14px; margin:0px; height:29px; }
33
- #wpcomm .wc-field-captcha input[type="text"]{ width:40%; padding:5px; font-size:14px; margin:0px 5px 0px 0px; height:29px; }
34
  #wpcomm .wc-field-submit input[type="submit"]{ margin:1px; }
35
- #wpcomm .wc-field-submit input[type="button"]{ margin:1px; border:#DDDDDD 1px solid; font-size: 13px; line-height: 16px; padding: 6px 15px; }
36
  #wpcomm .captcha_msg{ color: #aaaaaa; font-family: Lato,sans-serif; font-size: 12px; line-height: 18px; display:block; clear:both; }
37
- #wpcomm .wc-field-comment textarea{ width:100%; max-width:100%; height:46px; min-height: 46px !important; padding:5px; box-sizing: border-box; }
38
  #wpcomm .wc-label{ display:block; font-size:14px; padding:5px; }
39
  #wpcomm .wc-field-captcha .wc-label{ font-size:18px; padding:5px; text-align:center; display:inline; }
40
  #wpcomm input[type="text"], #wpcomm input[type="email"], #wpcomm textarea{ font-size:14px; color:#666666; font-family:Lato,sans-serif; box-sizing: border-box; margin:0px; }
@@ -51,26 +51,25 @@ class WC_CSS {
51
  #wpcomm .wc-reply .wc-comment-right{ background:<?php echo $this->wc_options->wc_options_serialized->wc_reply_bg_color; ?>; }
52
  #wpcomm .wc-must-login{ margin:0px; font-size:14px; line-height:16px; padding:10px }
53
  #wpcomm hr{ background-color: rgba(0, 0, 0, 0.1); border: 0 none; height: 1px; margin:10px 0px; }
54
- #wpcomm .avatar{ border: 1px solid rgba(0, 0, 0, 0.1); padding: 2px; margin:0px auto; float:none; display:inline; }
55
- #wpcomm .wc-comment-text{ font-size:<?php echo isset($this->wc_options->wc_options_serialized->wc_comment_text_size) ? $this->wc_options->wc_options_serialized->wc_comment_text_size : '14px'; ?>; text-align:left; color:<?php echo $this->wc_options->wc_options_serialized->wc_comment_text_color; ?>; padding-bottom:5px; line-height: 20px; }
56
  #wpcomm .wc-comment-header{ margin-bottom:7px; font-family:Lato,sans-serif; }
57
- #wpcomm .wc-comment-author{ color:<?php echo $this->wc_options->wc_options_serialized->wc_author_title_color; ?>; font-size:16px; width:40%; float:left; white-space:nowrap; }
58
- #wpcomm .wc-comment-author a{ color:<?php echo $this->wc_options->wc_options_serialized->wc_author_title_color; ?>; font-size:16px; white-space:nowrap; text-decoration:none; }
59
  #wpcomm .wc-comment-label{ background:<?php echo $this->wc_options->wc_options_serialized->wc_author_title_color; ?>; color:#FFFFFF; padding:2px 5px; font-size:12px; margin:4px auto; text-align:center; display:table; line-height:16px; }
60
- #wpcomm .wc-comment-date{ font-size:12px; color:#999999; float:right; text-align:right; white-space:nowrap; line-height:27px; }
61
  #wpcomm .wc-comment-footer { font-size:12px; font-weight:normal; color:#999999; margin-top:12px; min-height: 28px; font-family:Lato,sans-serif; }
62
  #wpcomm .wc-comment-footer a{ text-decoration:none; font-size:13px; font-weight:bold; color:<?php echo $this->wc_options->wc_options_serialized->wc_vote_reply_color; ?>; }
63
  #wpcomm .wc-comment-footer .share_buttons_box img{ vertical-align:middle; }
64
  #wpcomm .wc-comment-footer .wc-voted{ color:#666666; cursor:default; }
65
  #wpcomm .wc-comment-footer .wc-vote-result{ padding:2px 6px 2px 5px; background:<?php echo $this->wc_options->wc_options_serialized->wc_vote_reply_color; ?>; color:#FFFFFF; font-size:12px; font-weight:bold; display:inline; margin-right:5px;}
66
- #wpcomm .wc-toggle{ float:right; text-align:right; padding-right:0px; margin-right:0px; color:#999999; cursor:pointer; font-size:12px; white-space:nowrap; }
67
  #wpcomm .item { background: none; border-radius: 0px; box-shadow: none; }
68
  #wc_response_info img{ margin: 0px auto 0px auto; }
69
  #wpcomm .share_buttons_box img { display:inline!important; width:16px; height:16px; }
70
- #wpcomm .wc-captcha-label img{ display: inline!important; border:none; padding:0px 1px; margin:0px; vertical-align:middle; }
71
  #wpcomm .wc-reply-link, #wpcomm .wc-vote-link, #wpcomm .wc-share-link { cursor: pointer; font-size:13px; font-weight:bold; color: <?php echo $this->wc_options->wc_options_serialized->wc_vote_reply_color; ?>; }
72
  #wpcomm .wc-form-footer, #wpcomm .wc-secondary-forms-wrapper {display: none;}
73
- #wpcomm .wc-field-captcha .wc-captcha-label { padding: 0; display: inline-block; }
74
  #wpcomm .wc_captcha_refresh_img {cursor: pointer; margin-left: 3px;}
75
  #wpcomm .share_buttons_box {display: none;/*position: absolute;left: 40%;*/}
76
  #wpcomm .wc-no-left-margin {margin-left: 0 !important;}
@@ -80,14 +79,13 @@ class WC_CSS {
80
  #wc_openModalFormAction > div#wc_response_info { width: 200px; background: none repeat scroll 0 0 #EDEDED; color:#444444; font-size: 18px; font-weight: normal; padding: 45px 10px 50px 10px!important; text-align: center; line-height:25px;}
81
  #wc_openModalFormAction > div#wc_response_info { /*z-index: 10000;*/ }
82
  #wc_openModalFormAction > div#wc_response_info a.close { background: url("<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/img/x.png'); ?>") no-repeat; background-position-x: right; background-position-y: top; }
83
- #wpcomm #bywpdiscuz{ display:none; }
84
- #wpcomm .by-wpdiscuz{ text-align:right; border-top:#DDDDDD solid 1px; padding:1px 1px 1px 1px; }
85
  #wpcomm .by-wpdiscuz a{ font-size:11px; font-weight:bold; text-align:right; color:#CCCCCC; padding:1px; margin:0px; line-height:12px; border:none; text-decoration:none; }
86
- #wpcomm .wpdimg{ border:none; padding:0px; margin:0px; height:12px; cursor:pointer; display:inline; clear:both; }
87
 
88
  <?php echo $this->wc_options->wc_options_serialized->wc_custom_css; ?>
89
  </style>
90
  <?php
91
  }
 
92
  }
93
  ?>
14
  public function init_styles() {
15
  ?>
16
  <style type="text/css">
17
+ .wc-comment-header{ padding-top:20px; display:block; float:none; clear:both; font-size:18px;} /*#2892BF*/
18
  #wpcomm form .item {display: block;} .item input {}
19
+ #wpcomm { margin:15px auto; padding:1px 0px 10px 0px; border-top:#DDDDDD solid 1px; }
20
  #wpcomm form { margin:0px; padding:0px; background:none; border:none; }
21
  #wpcomm form div{ margin:0px; }
22
  #wpcomm .wc-comment-title{ margin:0px; line-height:18px; font-weight:bold; padding:10px; margin-bottom:10px; font-size:13px; text-align:right; border-bottom:#CCCCCC dotted 1px; padding-bottom:10px; }
23
+ #wpcomm .wc-form-wrapper{ padding:10px; background:#F9F9F9; margin-top:20px; border:1px solid #F1F1F1; }
24
  #wpcomm .wc-author-data{ margin-bottom:10px; }
25
  #wpcomm .wc-field-submit{ padding:5px 0px 13px 0px; }
26
  #wpcomm .wc-field-name{ width:49%; float:left; }
27
  #wpcomm .wc-field-email{ width:49%; float:right; text-align:right; }
28
  #wpcomm .wc-field-comment{ margin:5px auto 10px auto; }
29
+ #wpcomm .wc-field-captcha{ width:55%; float:left; margin:0px; }
30
  #wpcomm .wc-field-submit{ width:45%; float:right; text-align:right; margin:0px; }
31
+ #wpcomm .wc-field-name input[type="text"]{ width:95%; max-width:100%; padding:5px; font-size:14px; margin:0px; }
32
+ #wpcomm .wc-field-email input[type="email"]{ width:100%; max-width:100%; padding:5px; font-size:14px; margin:0px; }
33
+ #wpcomm .wc-field-captcha input[type="text"]{ width:40%; padding:5px; font-size:14px; margin:0px; }
34
  #wpcomm .wc-field-submit input[type="submit"]{ margin:1px; }
35
+ #wpcomm .wc-field-submit input[type="button"]{ margin:1px; }
36
  #wpcomm .captcha_msg{ color: #aaaaaa; font-family: Lato,sans-serif; font-size: 12px; line-height: 18px; display:block; clear:both; }
37
+ #wpcomm .wc-field-comment textarea{ width:100%; max-width:100%; height:43px; min-height: 43px !important; padding:5px; box-sizing: border-box; }
38
  #wpcomm .wc-label{ display:block; font-size:14px; padding:5px; }
39
  #wpcomm .wc-field-captcha .wc-label{ font-size:18px; padding:5px; text-align:center; display:inline; }
40
  #wpcomm input[type="text"], #wpcomm input[type="email"], #wpcomm textarea{ font-size:14px; color:#666666; font-family:Lato,sans-serif; box-sizing: border-box; margin:0px; }
51
  #wpcomm .wc-reply .wc-comment-right{ background:<?php echo $this->wc_options->wc_options_serialized->wc_reply_bg_color; ?>; }
52
  #wpcomm .wc-must-login{ margin:0px; font-size:14px; line-height:16px; padding:10px }
53
  #wpcomm hr{ background-color: rgba(0, 0, 0, 0.1); border: 0 none; height: 1px; margin:10px 0px; }
54
+ #wpcomm .avatar{ border: 1px solid rgba(0, 0, 0, 0.1); padding: 2px; margin:0px; float:none; }
55
+ #wpcomm .wc-comment-text{ font-size:13px; text-align:left; color:<?php echo $this->wc_options->wc_options_serialized->wc_comment_text_color; ?>; padding-bottom:5px; }
56
  #wpcomm .wc-comment-header{ margin-bottom:7px; font-family:Lato,sans-serif; }
57
+ #wpcomm .wc-comment-author{ color:<?php echo $this->wc_options->wc_options_serialized->wc_author_title_color; ?>; font-size:16px; width:40%; float:left; white-space:nowrap; }
 
58
  #wpcomm .wc-comment-label{ background:<?php echo $this->wc_options->wc_options_serialized->wc_author_title_color; ?>; color:#FFFFFF; padding:2px 5px; font-size:12px; margin:4px auto; text-align:center; display:table; line-height:16px; }
59
+ #wpcomm .wc-comment-date{ font-size:12px; color:#999999; width:59%; float:right; text-align:right; white-space:nowrap; line-height:27px; }
60
  #wpcomm .wc-comment-footer { font-size:12px; font-weight:normal; color:#999999; margin-top:12px; min-height: 28px; font-family:Lato,sans-serif; }
61
  #wpcomm .wc-comment-footer a{ text-decoration:none; font-size:13px; font-weight:bold; color:<?php echo $this->wc_options->wc_options_serialized->wc_vote_reply_color; ?>; }
62
  #wpcomm .wc-comment-footer .share_buttons_box img{ vertical-align:middle; }
63
  #wpcomm .wc-comment-footer .wc-voted{ color:#666666; cursor:default; }
64
  #wpcomm .wc-comment-footer .wc-vote-result{ padding:2px 6px 2px 5px; background:<?php echo $this->wc_options->wc_options_serialized->wc_vote_reply_color; ?>; color:#FFFFFF; font-size:12px; font-weight:bold; display:inline; margin-right:5px;}
65
+ #wpcomm .wc-toggle{ float:right; text-align:right; padding-right:0px; margin-right:0px; color:#999999; cursor:pointer; font-size:12px; }
66
  #wpcomm .item { background: none; border-radius: 0px; box-shadow: none; }
67
  #wc_response_info img{ margin: 0px auto 0px auto; }
68
  #wpcomm .share_buttons_box img { display:inline!important; width:16px; height:16px; }
69
+ #wpcomm .wc-captcha-label img{ display: inline!important; border:none; padding:0px 1px; margin:0px; }
70
  #wpcomm .wc-reply-link, #wpcomm .wc-vote-link, #wpcomm .wc-share-link { cursor: pointer; font-size:13px; font-weight:bold; color: <?php echo $this->wc_options->wc_options_serialized->wc_vote_reply_color; ?>; }
71
  #wpcomm .wc-form-footer, #wpcomm .wc-secondary-forms-wrapper {display: none;}
72
+ #wpcomm .wc-field-captcha .wc-captcha-label { margin-left: 5px; padding: 0; display: inline-block; }
73
  #wpcomm .wc_captcha_refresh_img {cursor: pointer; margin-left: 3px;}
74
  #wpcomm .share_buttons_box {display: none;/*position: absolute;left: 40%;*/}
75
  #wpcomm .wc-no-left-margin {margin-left: 0 !important;}
79
  #wc_openModalFormAction > div#wc_response_info { width: 200px; background: none repeat scroll 0 0 #EDEDED; color:#444444; font-size: 18px; font-weight: normal; padding: 45px 10px 50px 10px!important; text-align: center; line-height:25px;}
80
  #wc_openModalFormAction > div#wc_response_info { /*z-index: 10000;*/ }
81
  #wc_openModalFormAction > div#wc_response_info a.close { background: url("<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/img/x.png'); ?>") no-repeat; background-position-x: right; background-position-y: top; }
82
+ #wpcomm .by-wpdiscuz{ text-align:right; border-top:#DDDDDD solid 1px; padding:3px 1px 1px 1px; }
 
83
  #wpcomm .by-wpdiscuz a{ font-size:11px; font-weight:bold; text-align:right; color:#CCCCCC; padding:1px; margin:0px; line-height:12px; border:none; text-decoration:none; }
 
84
 
85
  <?php echo $this->wc_options->wc_options_serialized->wc_custom_css; ?>
86
  </style>
87
  <?php
88
  }
89
+
90
  }
91
  ?>
wc-options-serialize.php CHANGED
@@ -6,31 +6,21 @@ class WC_Options_Serialize {
6
 
7
  public $wc_options_slug = 'wc_options';
8
 
9
- /**
10
- * Type - Checkbox array
11
  * Available Values - Checked/Unchecked
12
  * Description - On which post types display comment form
13
  * Default Value - Post
14
  */
15
  public $wc_post_types = array('post');
16
 
17
- /**
18
- * Type - Dropdown Menu
19
- * Available Values - Selected "..."
20
- * Description - Comment list order
21
- * Default Value - Post
22
- */
23
- public $wc_comment_list_order;
24
-
25
- /**
26
- * Type - Checkbox
27
  * Available Values - Checked/Unchecked
28
  * Description - Show/Hide Voting buttons
29
  * Default Value - Unchecked
30
  */
31
  public $wc_voting_buttons_show_hide;
32
 
33
- /**
34
  * Type - Checkbox
35
  * Available Values - Checked/Unchecked
36
  * Description - Show/Hide Share Buttons
@@ -46,7 +36,7 @@ class WC_Options_Serialize {
46
  */
47
  public $wc_captcha_show_hide;
48
 
49
- /**
50
  * Type - Radiobutton
51
  * Available Values - Yes/No
52
  * Description - User Must be registered to comment
@@ -56,7 +46,7 @@ class WC_Options_Serialize {
56
  */
57
  public $wc_user_must_be_registered;
58
 
59
- /**
60
  * Type - Checkbox
61
  * Available Values - Checked/Unchecked
62
  * Description - If checked held the comment to approve manually
@@ -64,7 +54,7 @@ class WC_Options_Serialize {
64
  */
65
  public $wc_held_comment_to_moderate;
66
 
67
- /**
68
  * Type - Checkbox
69
  * Available Values - Checked/Unchecked
70
  * Description - Show/Hide Reply button for Guests
@@ -72,7 +62,7 @@ class WC_Options_Serialize {
72
  */
73
  public $wc_reply_button_guests_show_hide;
74
 
75
- /**
76
  * Type - Checkbox
77
  * Available Values - Checked/Unchecked
78
  * Description - Show/Hide Reply button for Customers
@@ -80,7 +70,7 @@ class WC_Options_Serialize {
80
  */
81
  public $wc_reply_button_members_show_hide;
82
 
83
- /**
84
  * Type - Checkbox
85
  * Available Values - Checked/Unchecked
86
  * Description - Show/Hide Author Titles
@@ -88,7 +78,7 @@ class WC_Options_Serialize {
88
  */
89
  public $wc_author_titles_show_hide;
90
 
91
- /**
92
  * Type - Input
93
  * Available Values - Integer
94
  * Description - Comment count per click
@@ -96,7 +86,7 @@ class WC_Options_Serialize {
96
  */
97
  public $wc_comment_count;
98
 
99
- /**
100
  * Type - Checkbox
101
  * Available Values - Checked/Unchecked
102
  * Description - Notify moderator on new comment
@@ -104,7 +94,7 @@ class WC_Options_Serialize {
104
  */
105
  public $wc_notify_moderator;
106
 
107
- /**
108
  * Type - Checkbox
109
  * Available Values - Checked/Unchecked
110
  * Description - Notify comment author on new reply
@@ -112,23 +102,7 @@ class WC_Options_Serialize {
112
  */
113
  public $wc_notify_comment_author;
114
 
115
- /**
116
- * Type - Select
117
- * Available Values - 12px-16px
118
- * Description - Comment Text Size
119
- * Default Value - 14px
120
- */
121
- public $wc_comment_text_size;
122
-
123
- /**
124
- * Type - Input
125
- * Available Values - color codes
126
- * Description - Form Background Color
127
- * Default Value - #F9F9F9
128
- */
129
- public $wc_form_bg_color;
130
-
131
- /**
132
  * Type - Input
133
  * Available Values - color codes
134
  * Description - Comment Background Color
@@ -136,7 +110,7 @@ class WC_Options_Serialize {
136
  */
137
  public $wc_comment_bg_color;
138
 
139
- /**
140
  * Type - Input
141
  * Available Values - color codes
142
  * Description - Reply Background Color
@@ -144,7 +118,7 @@ class WC_Options_Serialize {
144
  */
145
  public $wc_reply_bg_color;
146
 
147
- /**
148
  * Type - Input
149
  * Available Values - color codes
150
  * Description - Comment Text Color
@@ -152,7 +126,7 @@ class WC_Options_Serialize {
152
  */
153
  public $wc_comment_text_color;
154
 
155
- /**
156
  * Type - Input
157
  * Available Values - color codes
158
  * Description - Author title Color, Author title label color
@@ -160,7 +134,7 @@ class WC_Options_Serialize {
160
  */
161
  public $wc_author_title_color;
162
 
163
- /**
164
  * Type - Input
165
  * Available Values - color codes
166
  * Description - Vote, Reply, Share, Edit - text colors
@@ -168,7 +142,8 @@ class WC_Options_Serialize {
168
  */
169
  public $wc_vote_reply_color;
170
 
171
- /**
 
172
  * Type - Textarea
173
  * Available Values - custom css code
174
  * Description - Custom css code
@@ -176,17 +151,15 @@ class WC_Options_Serialize {
176
  */
177
  public $wc_custom_css;
178
 
179
- /**
 
 
180
  * Type - HTML elements array
181
  * Available Values - Text
182
  * Description - Phrases for form elements texts
183
  * Default Value -
184
  */
185
  public $wc_phrases;
186
-
187
- /**
188
- * helper class for database operations
189
- */
190
  public $wc_db_helper;
191
 
192
  function __construct($wc_db_helper) {
@@ -200,7 +173,6 @@ class WC_Options_Serialize {
200
  public function init_options($serialize_options) {
201
  $options = unserialize($serialize_options);
202
  $this->wc_post_types = $options['wc_post_types'];
203
- $this->wc_comment_list_order = $options['wc_comment_list_order'];
204
  $this->wc_voting_buttons_show_hide = $options['wc_voting_buttons_show_hide'];
205
  $this->wc_share_buttons_show_hide = $options['wc_share_buttons_show_hide'];
206
  $this->wc_captcha_show_hide = $options['wc_captcha_show_hide'];
@@ -212,8 +184,6 @@ class WC_Options_Serialize {
212
  $this->wc_comment_count = $options['wc_comment_count'];
213
  $this->wc_notify_moderator = $options['wc_notify_moderator'];
214
  $this->wc_notify_comment_author = $options['wc_notify_comment_author'];
215
- $this->wc_comment_text_size = $options['wc_comment_text_size'];
216
- $this->wc_form_bg_color = $options['wc_form_bg_color'];
217
  $this->wc_comment_bg_color = $options['wc_comment_bg_color'];
218
  $this->wc_reply_bg_color = $options['wc_reply_bg_color'];
219
  $this->wc_comment_text_color = $options['wc_comment_text_color'];
@@ -274,14 +244,13 @@ class WC_Options_Serialize {
274
  'wc_self_vote' => 'You cannot vote for your comment',
275
  'wc_invalid_captcha' => 'Invalid Captcha Code',
276
  'wc_invalid_field' => 'Some of field value is invalid',
277
- 'wc_held_for_moderate' => 'Your Comment awaiting moderation'
278
  );
279
  }
280
 
281
  public function to_array() {
282
  $options = array(
283
  'wc_post_types' => $this->wc_post_types,
284
- 'wc_comment_list_order' => $this->wc_comment_list_order,
285
  'wc_voting_buttons_show_hide' => $this->wc_voting_buttons_show_hide,
286
  'wc_share_buttons_show_hide' => $this->wc_share_buttons_show_hide,
287
  'wc_captcha_show_hide' => $this->wc_captcha_show_hide,
@@ -293,8 +262,6 @@ class WC_Options_Serialize {
293
  'wc_comment_count' => $this->wc_comment_count,
294
  'wc_notify_moderator' => $this->wc_notify_moderator,
295
  'wc_notify_comment_author' => $this->wc_notify_comment_author,
296
- 'wc_comment_text_size' => $this->wc_comment_text_size,
297
- 'wc_form_bg_color' => $this->wc_form_bg_color,
298
  'wc_comment_bg_color' => $this->wc_comment_bg_color,
299
  'wc_reply_bg_color' => $this->wc_reply_bg_color,
300
  'wc_comment_text_color' => $this->wc_comment_text_color,
@@ -313,7 +280,6 @@ class WC_Options_Serialize {
313
  public function add_options() {
314
  $options = array(
315
  'wc_post_types' => $this->wc_post_types,
316
- 'wc_comment_list_order' => 'desc',
317
  'wc_voting_buttons_show_hide' => '0',
318
  'wc_share_buttons_show_hide' => '0',
319
  'wc_captcha_show_hide' => '0',
@@ -325,8 +291,6 @@ class WC_Options_Serialize {
325
  'wc_comment_count' => '5',
326
  'wc_notify_moderator' => '1',
327
  'wc_notify_comment_author' => '1',
328
- 'wc_comment_text_size' => '14px',
329
- 'wc_form_bg_color' => '#f9f9f9',
330
  'wc_comment_bg_color' => '#fefefe',
331
  'wc_reply_bg_color' => '#f8f8f8',
332
  'wc_comment_text_color' => '#555',
6
 
7
  public $wc_options_slug = 'wc_options';
8
 
9
+ /* Type - Checkbox array
 
10
  * Available Values - Checked/Unchecked
11
  * Description - On which post types display comment form
12
  * Default Value - Post
13
  */
14
  public $wc_post_types = array('post');
15
 
16
+ /* Type - Checkbox
 
 
 
 
 
 
 
 
 
17
  * Available Values - Checked/Unchecked
18
  * Description - Show/Hide Voting buttons
19
  * Default Value - Unchecked
20
  */
21
  public $wc_voting_buttons_show_hide;
22
 
23
+ /*
24
  * Type - Checkbox
25
  * Available Values - Checked/Unchecked
26
  * Description - Show/Hide Share Buttons
36
  */
37
  public $wc_captcha_show_hide;
38
 
39
+ /*
40
  * Type - Radiobutton
41
  * Available Values - Yes/No
42
  * Description - User Must be registered to comment
46
  */
47
  public $wc_user_must_be_registered;
48
 
49
+ /*
50
  * Type - Checkbox
51
  * Available Values - Checked/Unchecked
52
  * Description - If checked held the comment to approve manually
54
  */
55
  public $wc_held_comment_to_moderate;
56
 
57
+ /*
58
  * Type - Checkbox
59
  * Available Values - Checked/Unchecked
60
  * Description - Show/Hide Reply button for Guests
62
  */
63
  public $wc_reply_button_guests_show_hide;
64
 
65
+ /*
66
  * Type - Checkbox
67
  * Available Values - Checked/Unchecked
68
  * Description - Show/Hide Reply button for Customers
70
  */
71
  public $wc_reply_button_members_show_hide;
72
 
73
+ /*
74
  * Type - Checkbox
75
  * Available Values - Checked/Unchecked
76
  * Description - Show/Hide Author Titles
78
  */
79
  public $wc_author_titles_show_hide;
80
 
81
+ /*
82
  * Type - Input
83
  * Available Values - Integer
84
  * Description - Comment count per click
86
  */
87
  public $wc_comment_count;
88
 
89
+ /*
90
  * Type - Checkbox
91
  * Available Values - Checked/Unchecked
92
  * Description - Notify moderator on new comment
94
  */
95
  public $wc_notify_moderator;
96
 
97
+ /*
98
  * Type - Checkbox
99
  * Available Values - Checked/Unchecked
100
  * Description - Notify comment author on new reply
102
  */
103
  public $wc_notify_comment_author;
104
 
105
+ /*
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
  * Type - Input
107
  * Available Values - color codes
108
  * Description - Comment Background Color
110
  */
111
  public $wc_comment_bg_color;
112
 
113
+ /*
114
  * Type - Input
115
  * Available Values - color codes
116
  * Description - Reply Background Color
118
  */
119
  public $wc_reply_bg_color;
120
 
121
+ /*
122
  * Type - Input
123
  * Available Values - color codes
124
  * Description - Comment Text Color
126
  */
127
  public $wc_comment_text_color;
128
 
129
+ /*
130
  * Type - Input
131
  * Available Values - color codes
132
  * Description - Author title Color, Author title label color
134
  */
135
  public $wc_author_title_color;
136
 
137
+ /*
138
  * Type - Input
139
  * Available Values - color codes
140
  * Description - Vote, Reply, Share, Edit - text colors
142
  */
143
  public $wc_vote_reply_color;
144
 
145
+
146
+ /*
147
  * Type - Textarea
148
  * Available Values - custom css code
149
  * Description - Custom css code
151
  */
152
  public $wc_custom_css;
153
 
154
+
155
+
156
+ /*
157
  * Type - HTML elements array
158
  * Available Values - Text
159
  * Description - Phrases for form elements texts
160
  * Default Value -
161
  */
162
  public $wc_phrases;
 
 
 
 
163
  public $wc_db_helper;
164
 
165
  function __construct($wc_db_helper) {
173
  public function init_options($serialize_options) {
174
  $options = unserialize($serialize_options);
175
  $this->wc_post_types = $options['wc_post_types'];
 
176
  $this->wc_voting_buttons_show_hide = $options['wc_voting_buttons_show_hide'];
177
  $this->wc_share_buttons_show_hide = $options['wc_share_buttons_show_hide'];
178
  $this->wc_captcha_show_hide = $options['wc_captcha_show_hide'];
184
  $this->wc_comment_count = $options['wc_comment_count'];
185
  $this->wc_notify_moderator = $options['wc_notify_moderator'];
186
  $this->wc_notify_comment_author = $options['wc_notify_comment_author'];
 
 
187
  $this->wc_comment_bg_color = $options['wc_comment_bg_color'];
188
  $this->wc_reply_bg_color = $options['wc_reply_bg_color'];
189
  $this->wc_comment_text_color = $options['wc_comment_text_color'];
244
  'wc_self_vote' => 'You cannot vote for your comment',
245
  'wc_invalid_captcha' => 'Invalid Captcha Code',
246
  'wc_invalid_field' => 'Some of field value is invalid',
247
+ 'wc_held_for_moderate' => 'Your Comment awaiting moderation',
248
  );
249
  }
250
 
251
  public function to_array() {
252
  $options = array(
253
  'wc_post_types' => $this->wc_post_types,
 
254
  'wc_voting_buttons_show_hide' => $this->wc_voting_buttons_show_hide,
255
  'wc_share_buttons_show_hide' => $this->wc_share_buttons_show_hide,
256
  'wc_captcha_show_hide' => $this->wc_captcha_show_hide,
262
  'wc_comment_count' => $this->wc_comment_count,
263
  'wc_notify_moderator' => $this->wc_notify_moderator,
264
  'wc_notify_comment_author' => $this->wc_notify_comment_author,
 
 
265
  'wc_comment_bg_color' => $this->wc_comment_bg_color,
266
  'wc_reply_bg_color' => $this->wc_reply_bg_color,
267
  'wc_comment_text_color' => $this->wc_comment_text_color,
280
  public function add_options() {
281
  $options = array(
282
  'wc_post_types' => $this->wc_post_types,
 
283
  'wc_voting_buttons_show_hide' => '0',
284
  'wc_share_buttons_show_hide' => '0',
285
  'wc_captcha_show_hide' => '0',
291
  'wc_comment_count' => '5',
292
  'wc_notify_moderator' => '1',
293
  'wc_notify_comment_author' => '1',
 
 
294
  'wc_comment_bg_color' => '#fefefe',
295
  'wc_reply_bg_color' => '#f8f8f8',
296
  'wc_comment_text_color' => '#555',
wc-options.php CHANGED
@@ -36,7 +36,6 @@ class WC_Options {
36
  }
37
 
38
  $this->wc_options_serialized->wc_post_types = isset($_POST['wc_post_types']) ? $_POST['wc_post_types'] : array();
39
- $this->wc_options_serialized->wc_comment_list_order = isset($_POST['wc_comment_list_order']) ? $_POST['wc_comment_list_order'] : 'desc';
40
  $this->wc_options_serialized->wc_voting_buttons_show_hide = isset($_POST['wc_voting_buttons_show_hide']) ? $_POST['wc_voting_buttons_show_hide'] : 0;
41
  $this->wc_options_serialized->wc_share_buttons_show_hide = isset($_POST['wc_share_buttons_show_hide']) ? $_POST['wc_share_buttons_show_hide'] : 0;
42
  $this->wc_options_serialized->wc_captcha_show_hide = isset($_POST['wc_captcha_show_hide']) ? $_POST['wc_captcha_show_hide'] : 0;
@@ -47,9 +46,7 @@ class WC_Options {
47
  $this->wc_options_serialized->wc_author_titles_show_hide = isset($_POST['wc_author_titles_show_hide']) ? $_POST['wc_author_titles_show_hide'] : 0;
48
  $this->wc_options_serialized->wc_comment_count = isset($_POST['wc_comment_count']) ? $_POST['wc_comment_count'] : 10;
49
  $this->wc_options_serialized->wc_notify_moderator = isset($_POST['wc_notify_moderator']) ? $_POST['wc_notify_moderator'] : 0;
50
- $this->wc_options_serialized->wc_notify_comment_author = isset($_POST['wc_notify_comment_author']) ? $_POST['wc_notify_comment_author'] : 0;
51
- $this->wc_options_serialized->wc_form_bg_color = isset($_POST['wc_form_bg_color']) ? $_POST['wc_form_bg_color'] : '#f9f9f9';
52
- $this->wc_options_serialized->wc_comment_text_size = isset($_POST['wc_comment_text_size']) ? $_POST['wc_comment_text_size'] : '14px';
53
  $this->wc_options_serialized->wc_comment_bg_color = isset($_POST['wc_comment_bg_color']) ? $_POST['wc_comment_bg_color'] : '#fefefe';
54
  $this->wc_options_serialized->wc_reply_bg_color = isset($_POST['wc_reply_bg_color']) ? $_POST['wc_reply_bg_color'] : '#f8f8f8';
55
  $this->wc_options_serialized->wc_comment_text_color = isset($_POST['wc_comment_text_color']) ? $_POST['wc_comment_text_color'] : '#555';
@@ -66,71 +63,8 @@ class WC_Options {
66
  <div style="float:left; width:50px; height:55px; margin:10px 10px 20px 0px;">
67
  <img src="<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/img/plugin-icon/plugin-icon-48.png'); ?>" style="height:43px;"/>
68
  </div>
69
- <h2 style="padding-bottom:20px; padding-top:15px;"><?php _e('wpDiscuz General Settings', 'wpdiscuz'); ?></h2>
70
  <br style="clear:both" />
71
-
72
-
73
- <link rel="stylesheet" href="<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/'); ?>bxslider/jquery.bxslider.css" type="text/css" />
74
- <script src="<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/'); ?>bxslider/jquery.min.js"></script>
75
- <script src="<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/'); ?>bxslider/jquery.bxslider.js"></script>
76
- <table width="100%" border="0" cellspacing="1" class="widefat">
77
- <tr>
78
- <td style="padding:10px; padding-left:0px; vertical-align:top; width:500px;">
79
- <div class="slider">
80
- <ul class="bxslider">
81
- <li><a href="https://wordpress.org/plugins/woodiscuz-woocommerce-comments/screenshots/"><img src="<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/'); ?>files/img/gc/3.png" title="Free Download from Wordpress.org" style="padding:0px 0px 20px 20px;" /></a></li>
82
- <li><a href="https://wordpress.org/plugins/woocommerce-pdf-print/"><img src="<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/'); ?>files/img/gc/4.png" title="Free Download from Wordpress.org" style="padding:0px 0px 20px 20px;" /></a></li>
83
- <li><a href="https://wordpress.org/plugins/advanced-content-pagination/screenshots/"><img src="<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/'); ?>files/img/gc/1.png" title="Free Download from Wordpress.org" style="padding:0px 0px 20px 20px;" /></a></li>
84
- <li><a href="https://wordpress.org/plugins/author-and-post-statistic-widgets/"><img src="<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/'); ?>files/img/gc/2.png" title="Free Download from Wordpress.org" style="padding:0px 0px 20px 20px;" /></a></li>
85
- </ul>
86
- </div>
87
- <div style="clear:both"></div>
88
- </td>
89
- <td valign="top" style="padding:20px;">
90
-
91
- <table width="100%" border="0" cellspacing="1" class="widefat">
92
- <thead>
93
- <tr>
94
- <th style="font-size:18px;">&nbsp;Information</th>
95
- </tr>
96
- </thead>
97
- <tr valign="top">
98
- <td style="background:#FFF; text-align:left; font-size:14px;">
99
- wpDiscuz is alsow available for WooCommerce. The WooCommerce Comments plugin name is <a href="https://wordpress.org/plugins/woodiscuz-woocommerce-comments/" style="color:#993399; text-decoration:underline;"><strong>WooDiscuz</strong></a>. It adds a new "Discussion" Tab on product page and allows your customers ask Pre-Sale Questions and discuss about your products.
100
- </td>
101
- </tr>
102
- </table><br />
103
-
104
- <table width="100%" border="0" cellspacing="1" class="widefat">
105
- <thead>
106
- <tr>
107
- <th>&nbsp;Like wpDiscuz plugin?</th>
108
- </tr>
109
- </thead>
110
- <tr valign="top">
111
- <td style="background:#FFF; text-align:left; font-size:12px;">
112
- <ul>
113
- <li>If you like wpDiscuz and want to encourage us to develop and maintain it,why not do any or all of the following:</li>
114
- <li>- Link to it so other folks can find out about it.</li>
115
- <li>- Give it a good rating on <a href="https://wordpress.org/plugins/wpdiscuz/" target="_blank">WordPress.org.</a></li>
116
- <li>- We spend as much of my spare time as possible working on wpDiscuz and any donation is appreciated. Donations play a crucial role in supporting Free and Open Source Software projects. <div style="width:200px; float:right;">
117
- <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"><input type="hidden" name="cmd" value="_s-xclick"><input type="hidden" name="hosted_button_id" value="UC44WQM5XJFPA"><input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"><img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"></form>
118
- </ul>
119
- </td>
120
- </tr>
121
- </table>
122
-
123
- </td>
124
- </tr>
125
- </table>
126
- <script>
127
- $('.bxslider').bxSlider({
128
- mode: 'fade',
129
- captions: false,
130
- auto: true
131
- });
132
- </script>
133
- <br />
134
  <form action="<?php echo admin_url(); ?>admin.php?page=wpdiscuz_options_page&updated=true" method="post" name="wpdiscuz_options_page" class="wc-main-settings-form wc-form">
135
  <?php
136
  if (function_exists('wp_nonce_field')) {
@@ -179,56 +113,56 @@ class WC_Options {
179
  check_admin_referer('wc_phrases_form');
180
  }
181
 
182
- $this->wc_options_serialized->wc_phrases['wc_leave_a_reply_text'] = $_POST['wc_leave_a_reply_text'];
183
- $this->wc_options_serialized->wc_phrases['wc_be_the_first_text'] = $_POST['wc_be_the_first_text'];
184
- $this->wc_options_serialized->wc_phrases['wc_header_text'] = $_POST['wc_header_text'];
185
- $this->wc_options_serialized->wc_phrases['wc_header_on_text'] = $_POST['wc_header_on_text'];
186
- $this->wc_options_serialized->wc_phrases['wc_comment_start_text'] = $_POST['wc_comment_start_text'];
187
- $this->wc_options_serialized->wc_phrases['wc_comment_join_text'] = $_POST['wc_comment_join_text'];
188
- $this->wc_options_serialized->wc_phrases['wc_email_text'] = $_POST['wc_email_text'];
189
- $this->wc_options_serialized->wc_phrases['wc_name_text'] = $_POST['wc_name_text'];
190
- $this->wc_options_serialized->wc_phrases['wc_captcha_text'] = $_POST['wc_captcha_text'];
191
- $this->wc_options_serialized->wc_phrases['wc_submit_text'] = $_POST['wc_submit_text'];
192
- $this->wc_options_serialized->wc_phrases['wc_load_more_submit_text'] = $_POST['wc_load_more_submit_text'];
193
- $this->wc_options_serialized->wc_phrases['wc_reply_text'] = $_POST['wc_reply_text'];
194
- $this->wc_options_serialized->wc_phrases['wc_share_text'] = $_POST['wc_share_text'];
195
- $this->wc_options_serialized->wc_phrases['wc_share_facebook'] = $_POST['wc_share_facebook'];
196
- $this->wc_options_serialized->wc_phrases['wc_share_twitter'] = $_POST['wc_share_twitter'];
197
- $this->wc_options_serialized->wc_phrases['wc_share_google'] = $_POST['wc_share_google'];
198
- $this->wc_options_serialized->wc_phrases['wc_hide_replies_text'] = $_POST['wc_hide_replies_text'];
199
- $this->wc_options_serialized->wc_phrases['wc_show_replies_text'] = $_POST['wc_show_replies_text'];
200
- $this->wc_options_serialized->wc_phrases['wc_user_title_guest_text'] = $_POST['wc_user_title_guest_text'];
201
- $this->wc_options_serialized->wc_phrases['wc_user_title_member_text'] = $_POST['wc_user_title_member_text'];
202
- $this->wc_options_serialized->wc_phrases['wc_user_title_author_text'] = $_POST['wc_user_title_author_text'];
203
- $this->wc_options_serialized->wc_phrases['wc_user_title_admin_text'] = $_POST['wc_user_title_admin_text'];
204
- $this->wc_options_serialized->wc_phrases['wc_email_subject'] = $_POST['wc_email_subject'];
205
- $this->wc_options_serialized->wc_phrases['wc_email_message'] = $_POST['wc_email_message'];
206
- $this->wc_options_serialized->wc_phrases['wc_error_empty_text'] = $_POST['wc_error_empty_text'];
207
- $this->wc_options_serialized->wc_phrases['wc_error_email_text'] = $_POST['wc_error_email_text'];
208
-
209
- $this->wc_options_serialized->wc_phrases['wc_year_text']['datetime'][0] = $_POST['wc_year_text'];
210
- $this->wc_options_serialized->wc_phrases['wc_month_text']['datetime'][0] = $_POST['wc_month_text'];
211
- $this->wc_options_serialized->wc_phrases['wc_day_text']['datetime'][0] = $_POST['wc_day_text'];
212
- $this->wc_options_serialized->wc_phrases['wc_hour_text']['datetime'][0] = $_POST['wc_hour_text'];
213
- $this->wc_options_serialized->wc_phrases['wc_minute_text']['datetime'][0] = $_POST['wc_minute_text'];
214
- $this->wc_options_serialized->wc_phrases['wc_second_text']['datetime'][0] = $_POST['wc_second_text'];
215
- $this->wc_options_serialized->wc_phrases['wc_plural_text'] = $_POST['wc_plural_text'];
216
- $this->wc_options_serialized->wc_phrases['wc_right_now_text'] = $_POST['wc_right_now_text'];
217
- $this->wc_options_serialized->wc_phrases['wc_ago_text'] = $_POST['wc_ago_text'];
218
-
219
- $this->wc_options_serialized->wc_phrases['wc_you_must_be_text'] = $_POST['wc_you_must_be_text'];
220
- $this->wc_options_serialized->wc_phrases['wc_logged_in_text'] = $_POST['wc_logged_in_text'];
221
- $this->wc_options_serialized->wc_phrases['wc_to_post_comment_text'] = $_POST['wc_to_post_comment_text'];
222
- $this->wc_options_serialized->wc_phrases['wc_vote_counted'] = $_POST['wc_vote_counted'];
223
- $this->wc_options_serialized->wc_phrases['wc_vote_up'] = $_POST['wc_vote_up'];
224
- $this->wc_options_serialized->wc_phrases['wc_vote_down'] = $_POST['wc_vote_down'];
225
- $this->wc_options_serialized->wc_phrases['wc_held_for_moderate'] = $_POST['wc_held_for_moderate'];
226
- $this->wc_options_serialized->wc_phrases['wc_vote_only_one_time'] = $_POST['wc_vote_only_one_time'];
227
- $this->wc_options_serialized->wc_phrases['wc_voting_error'] = $_POST['wc_voting_error'];
228
- $this->wc_options_serialized->wc_phrases['wc_self_vote'] = $_POST['wc_self_vote'];
229
- $this->wc_options_serialized->wc_phrases['wc_login_to_vote'] = $_POST['wc_login_to_vote'];
230
- $this->wc_options_serialized->wc_phrases['wc_invalid_captcha'] = $_POST['wc_invalid_captcha'];
231
- $this->wc_options_serialized->wc_phrases['wc_invalid_field'] = $_POST['wc_invalid_field'];
232
 
233
  $this->wc_db_helper->update_phrases($this->wc_options_serialized->wc_phrases);
234
  }
36
  }
37
 
38
  $this->wc_options_serialized->wc_post_types = isset($_POST['wc_post_types']) ? $_POST['wc_post_types'] : array();
 
39
  $this->wc_options_serialized->wc_voting_buttons_show_hide = isset($_POST['wc_voting_buttons_show_hide']) ? $_POST['wc_voting_buttons_show_hide'] : 0;
40
  $this->wc_options_serialized->wc_share_buttons_show_hide = isset($_POST['wc_share_buttons_show_hide']) ? $_POST['wc_share_buttons_show_hide'] : 0;
41
  $this->wc_options_serialized->wc_captcha_show_hide = isset($_POST['wc_captcha_show_hide']) ? $_POST['wc_captcha_show_hide'] : 0;
46
  $this->wc_options_serialized->wc_author_titles_show_hide = isset($_POST['wc_author_titles_show_hide']) ? $_POST['wc_author_titles_show_hide'] : 0;
47
  $this->wc_options_serialized->wc_comment_count = isset($_POST['wc_comment_count']) ? $_POST['wc_comment_count'] : 10;
48
  $this->wc_options_serialized->wc_notify_moderator = isset($_POST['wc_notify_moderator']) ? $_POST['wc_notify_moderator'] : 0;
49
+ $this->wc_options_serialized->wc_notify_comment_author = isset($_POST['wc_notify_comment_author']) ? $_POST['wc_notify_comment_author'] : 0;
 
 
50
  $this->wc_options_serialized->wc_comment_bg_color = isset($_POST['wc_comment_bg_color']) ? $_POST['wc_comment_bg_color'] : '#fefefe';
51
  $this->wc_options_serialized->wc_reply_bg_color = isset($_POST['wc_reply_bg_color']) ? $_POST['wc_reply_bg_color'] : '#f8f8f8';
52
  $this->wc_options_serialized->wc_comment_text_color = isset($_POST['wc_comment_text_color']) ? $_POST['wc_comment_text_color'] : '#555';
63
  <div style="float:left; width:50px; height:55px; margin:10px 10px 20px 0px;">
64
  <img src="<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/img/plugin-icon/plugin-icon-48.png'); ?>" style="height:43px;"/>
65
  </div>
66
+ <h2 style="padding-bottom:20px; padding-top:15px;"><?php _e('WpDiscuz General Settings', 'wpdiscuz'); ?></h2>
67
  <br style="clear:both" />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  <form action="<?php echo admin_url(); ?>admin.php?page=wpdiscuz_options_page&updated=true" method="post" name="wpdiscuz_options_page" class="wc-main-settings-form wc-form">
69
  <?php
70
  if (function_exists('wp_nonce_field')) {
113
  check_admin_referer('wc_phrases_form');
114
  }
115
 
116
+ $this->wc_options_serialized->wc_phrases['wc_leave_a_reply_text'] = isset($_POST['wc_leave_a_reply_text']) ? $_POST['wc_leave_a_reply_text'] : 'Leave a Reply';
117
+ $this->wc_options_serialized->wc_phrases['wc_be_the_first_text'] = isset($_POST['wc_be_the_first_text']) ? $_POST['wc_be_the_first_text'] : 'Be the First to Comment!';
118
+ $this->wc_options_serialized->wc_phrases['wc_header_text'] = isset($_POST['wc_header_text']) ? $_POST['wc_header_text'] : 'Comment';
119
+ $this->wc_options_serialized->wc_phrases['wc_header_on_text'] = isset($_POST['wc_header_on_text']) ? $_POST['wc_header_on_text'] : 'on';
120
+ $this->wc_options_serialized->wc_phrases['wc_comment_start_text'] = isset($_POST['wc_comment_start_text']) ? $_POST['wc_comment_start_text'] : 'Start the discussion';
121
+ $this->wc_options_serialized->wc_phrases['wc_comment_join_text'] = isset($_POST['wc_comment_join_text']) ? $_POST['wc_comment_join_text'] : 'Join the discussion';
122
+ $this->wc_options_serialized->wc_phrases['wc_email_text'] = isset($_POST['wc_email_text']) ? $_POST['wc_email_text'] : 'Email';
123
+ $this->wc_options_serialized->wc_phrases['wc_name_text'] = isset($_POST['wc_name_text']) ? $_POST['wc_name_text'] : 'Name';
124
+ $this->wc_options_serialized->wc_phrases['wc_captcha_text'] = isset($_POST['wc_captcha_text']) ? $_POST['wc_captcha_text'] : 'Please insert the code above to comment';
125
+ $this->wc_options_serialized->wc_phrases['wc_submit_text'] = isset($_POST['wc_submit_text']) ? $_POST['wc_submit_text'] : 'Post Comment';
126
+ $this->wc_options_serialized->wc_phrases['wc_load_more_submit_text'] = isset($_POST['wc_load_more_submit_text']) ? $_POST['wc_load_more_submit_text'] : 'Load More';
127
+ $this->wc_options_serialized->wc_phrases['wc_reply_text'] = isset($_POST['wc_reply_text']) ? $_POST['wc_reply_text'] : 'Reply';
128
+ $this->wc_options_serialized->wc_phrases['wc_share_text'] = isset($_POST['wc_share_text']) ? $_POST['wc_share_text'] : 'Share';
129
+ $this->wc_options_serialized->wc_phrases['wc_share_facebook'] = isset($_POST['wc_share_facebook']) ? $_POST['wc_share_facebook'] : 'Share On Facebook';
130
+ $this->wc_options_serialized->wc_phrases['wc_share_twitter'] = isset($_POST['wc_share_twitter']) ? $_POST['wc_share_twitter'] : 'Share On Twitter';
131
+ $this->wc_options_serialized->wc_phrases['wc_share_google'] = isset($_POST['wc_share_google']) ? $_POST['wc_share_google'] : 'Share On Google';
132
+ $this->wc_options_serialized->wc_phrases['wc_hide_replies_text'] = isset($_POST['wc_hide_replies_text']) ? $_POST['wc_hide_replies_text'] : 'Hide Replies';
133
+ $this->wc_options_serialized->wc_phrases['wc_show_replies_text'] = isset($_POST['wc_show_replies_text']) ? $_POST['wc_show_replies_text'] : 'Show Replies';
134
+ $this->wc_options_serialized->wc_phrases['wc_user_title_guest_text'] = isset($_POST['wc_user_title_guest_text']) ? $_POST['wc_user_title_guest_text'] : 'Guest';
135
+ $this->wc_options_serialized->wc_phrases['wc_user_title_member_text'] = isset($_POST['wc_user_title_member_text']) ? $_POST['wc_user_title_member_text'] : 'Member';
136
+ $this->wc_options_serialized->wc_phrases['wc_user_title_author_text'] = isset($_POST['wc_user_title_author_text']) ? $_POST['wc_user_title_author_text'] : 'Author';
137
+ $this->wc_options_serialized->wc_phrases['wc_user_title_admin_text'] = isset($_POST['wc_user_title_admin_text']) ? $_POST['wc_user_title_admin_text'] : 'Admin';
138
+ $this->wc_options_serialized->wc_phrases['wc_email_subject'] = isset($_POST['wc_email_subject']) ? $_POST['wc_email_subject'] : 'New Comment';
139
+ $this->wc_options_serialized->wc_phrases['wc_email_message'] = isset($_POST['wc_email_message']) ? $_POST['wc_email_message'] : 'New comment on the product discussion section you\'ve been interested in';
140
+ $this->wc_options_serialized->wc_phrases['wc_error_empty_text'] = isset($_POST['wc_error_empty_text']) ? $_POST['wc_error_empty_text'] : 'please fill out this field to comment';
141
+ $this->wc_options_serialized->wc_phrases['wc_error_email_text'] = isset($_POST['wc_error_email_text']) ? $_POST['wc_error_email_text'] : 'email address is invalid';
142
+
143
+ $this->wc_options_serialized->wc_phrases['wc_year_text']['datetime'][0] = isset($_POST['wc_year_text']) ? $_POST['wc_year_text'] : 'year';
144
+ $this->wc_options_serialized->wc_phrases['wc_month_text']['datetime'][0] = isset($_POST['wc_month_text']) ? $_POST['wc_month_text'] : 'month';
145
+ $this->wc_options_serialized->wc_phrases['wc_day_text']['datetime'][0] = isset($_POST['wc_day_text']) ? $_POST['wc_day_text'] : 'day';
146
+ $this->wc_options_serialized->wc_phrases['wc_hour_text']['datetime'][0] = isset($_POST['wc_hour_text']) ? $_POST['wc_hour_text'] : 'hour';
147
+ $this->wc_options_serialized->wc_phrases['wc_minute_text']['datetime'][0] = isset($_POST['wc_minute_text']) ? $_POST['wc_minute_text'] : 'minute';
148
+ $this->wc_options_serialized->wc_phrases['wc_second_text']['datetime'][0] = isset($_POST['wc_second_text']) ? $_POST['wc_second_text'] : 'second';
149
+ $this->wc_options_serialized->wc_phrases['wc_plural_text'] = isset($_POST['wc_plural_text']) ? $_POST['wc_plural_text'] : 's';
150
+ $this->wc_options_serialized->wc_phrases['wc_right_now_text'] = isset($_POST['wc_right_now_text']) ? $_POST['wc_right_now_text'] : 'right now';
151
+ $this->wc_options_serialized->wc_phrases['wc_ago_text'] = isset($_POST['wc_ago_text']) ? $_POST['wc_ago_text'] : 'ago';
152
+
153
+ $this->wc_options_serialized->wc_phrases['wc_you_must_be_text'] = isset($_POST['wc_you_must_be_text']) ? $_POST['wc_you_must_be_text'] : 'You must be';
154
+ $this->wc_options_serialized->wc_phrases['wc_logged_in_text'] = isset($_POST['wc_logged_in_text']) ? $_POST['wc_logged_in_text'] : 'logged in';
155
+ $this->wc_options_serialized->wc_phrases['wc_to_post_comment_text'] = isset($_POST['wc_to_post_comment_text']) ? $_POST['wc_to_post_comment_text'] : 'to post a comment';
156
+ $this->wc_options_serialized->wc_phrases['wc_vote_counted'] = isset($_POST['wc_vote_counted']) ? $_POST['wc_vote_counted'] : 'Vote Counted';
157
+ $this->wc_options_serialized->wc_phrases['wc_vote_up'] = isset($_POST['wc_vote_up']) ? $_POST['wc_vote_up'] : 'Vote Up';
158
+ $this->wc_options_serialized->wc_phrases['wc_vote_down'] = isset($_POST['wc_vote_down']) ? $_POST['wc_vote_down'] : 'Vote Down';
159
+ $this->wc_options_serialized->wc_phrases['wc_held_for_moderate'] = isset($_POST['wc_held_for_moderate']) ? $_POST['wc_held_for_moderate'] : 'Your Comment waiting moderation';
160
+ $this->wc_options_serialized->wc_phrases['wc_vote_only_one_time'] = isset($_POST['wc_vote_only_one_time']) ? $_POST['wc_vote_only_one_time'] : 'You\'ve already voted for this comment';
161
+ $this->wc_options_serialized->wc_phrases['wc_voting_error'] = isset($_POST['wc_voting_error']) ? $_POST['wc_voting_error'] : 'Voting Error';
162
+ $this->wc_options_serialized->wc_phrases['wc_self_vote'] = isset($_POST['wc_self_vote']) ? $_POST['wc_self_vote'] : 'You cannot vote for your comment';
163
+ $this->wc_options_serialized->wc_phrases['wc_login_to_vote'] = isset($_POST['wc_login_to_vote']) ? $_POST['wc_login_to_vote'] : 'You Must Be Logged In To Vote';
164
+ $this->wc_options_serialized->wc_phrases['wc_invalid_captcha'] = isset($_POST['wc_invalid_captcha']) ? $_POST['wc_invalid_captcha'] : 'Invalid Captcha Code';
165
+ $this->wc_options_serialized->wc_phrases['wc_invalid_field'] = isset($_POST['wc_invalid_field']) ? $_POST['wc_invalid_field'] : 'Some of field value is invalid';
166
 
167
  $this->wc_db_helper->update_phrases($this->wc_options_serialized->wc_phrases);
168
  }
wc.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  Plugin Name: wpDiscuz - Wordpress Comments
5
  Description: Better comment system. Wordpress post comments and discussion plugin. Allows your visitors discuss, vote for comments and share.
6
- Version: 1.0.9
7
  Author: gVectors Team (A. Chakhoyan, G. Zakaryan, H. Martirosyan)
8
  Author URI: http://www.gvectors.com/
9
  Plugin URI: http://www.gvectors.com/wpdiscuz/
@@ -143,7 +143,7 @@ class WC_Core {
143
  wp_register_style('validator-style', plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/css/fv.css'));
144
  wp_enqueue_style('validator-style');
145
 
146
- wp_enqueue_script('wc-ajax-js', plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/js/wc-ajax.js'), array('jquery'), '1.0.9', false);
147
  wp_localize_script('wc-ajax-js', 'wc_ajax_obj', array('url' => admin_url('admin-ajax.php')));
148
 
149
  wp_enqueue_script('wc-cookie-js', plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/js/jquery.cookie.js'), array('jquery'), '1.4.1', false);
@@ -369,23 +369,20 @@ class WC_Core {
369
  $post_id = $post->ID;
370
  }
371
  $wc_comment_count = $this->wc_options->wc_options_serialized->wc_comment_count;
372
- $wc_comment_list_order = $this->wc_options->wc_options_serialized->wc_comment_list_order;
373
 
374
  $comm_list_args = array(
375
  'callback' => array(&$this, 'wc_comment_callback'),
376
  'style' => 'div',
377
  'per_page' => $comments_offset * $wc_comment_count,
378
- 'max_depth' => 2,
379
- 'reverse_top_level' => false
380
  );
381
 
382
-
383
-
384
- $comments = get_comments(array('post_id' => $post_id, 'status' => 'approve', 'order' => $wc_comment_list_order));
385
 
386
  $wc_comments = $this->init_wc_comments($comments);
387
  wp_list_comments($comm_list_args, $wc_comments);
388
-
389
  return $this->wc_parent_comments_count;
390
  }
391
 
@@ -444,7 +441,6 @@ class WC_Core {
444
  global $post;
445
  if (in_array($post->post_type, $this->wc_options->wc_options_serialized->wc_post_types) && comments_open($post->ID)) {
446
  add_filter('comments_template', array(&$this, 'remove_comments_template_on_pages'), 1);
447
- // add_action('comment_form', array(&$this, 'remove_comments_template_on_pages'), 1);
448
  }
449
  }
450
 
@@ -455,7 +451,5 @@ class WC_Core {
455
 
456
  }
457
 
458
-
459
-
460
  $wc_core = new WC_Core();
461
  ?>
3
  /*
4
  Plugin Name: wpDiscuz - Wordpress Comments
5
  Description: Better comment system. Wordpress post comments and discussion plugin. Allows your visitors discuss, vote for comments and share.
6
+ Version: 1.0.3
7
  Author: gVectors Team (A. Chakhoyan, G. Zakaryan, H. Martirosyan)
8
  Author URI: http://www.gvectors.com/
9
  Plugin URI: http://www.gvectors.com/wpdiscuz/
143
  wp_register_style('validator-style', plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/css/fv.css'));
144
  wp_enqueue_style('validator-style');
145
 
146
+ wp_enqueue_script('wc-ajax-js', plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/js/wc-ajax.js'), array('jquery'), '1.0.0', false);
147
  wp_localize_script('wc-ajax-js', 'wc_ajax_obj', array('url' => admin_url('admin-ajax.php')));
148
 
149
  wp_enqueue_script('wc-cookie-js', plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/js/jquery.cookie.js'), array('jquery'), '1.4.1', false);
369
  $post_id = $post->ID;
370
  }
371
  $wc_comment_count = $this->wc_options->wc_options_serialized->wc_comment_count;
 
372
 
373
  $comm_list_args = array(
374
  'callback' => array(&$this, 'wc_comment_callback'),
375
  'style' => 'div',
376
  'per_page' => $comments_offset * $wc_comment_count,
377
+ 'max_depth' => 2
 
378
  );
379
 
380
+ $comments = get_comments(
381
+ array('post_id' => $post_id, 'status' => 'approve')
382
+ );
383
 
384
  $wc_comments = $this->init_wc_comments($comments);
385
  wp_list_comments($comm_list_args, $wc_comments);
 
386
  return $this->wc_parent_comments_count;
387
  }
388
 
441
  global $post;
442
  if (in_array($post->post_type, $this->wc_options->wc_options_serialized->wc_post_types) && comments_open($post->ID)) {
443
  add_filter('comments_template', array(&$this, 'remove_comments_template_on_pages'), 1);
 
444
  }
445
  }
446
 
451
 
452
  }
453
 
 
 
454
  $wc_core = new WC_Core();
455
  ?>