;(function ($, window, google, undefined){
'use strict';
var html_dropdown,
html_ullist,
Maplace;
html_dropdown={
activateCurrent: function (index){
this.html_element.find('select').val(index);
},
getHtml: function (){
var self=this,
html='',
title,
a;
if(this.ln > 1){
html +='';
html=$(html).bind('change', function (){
self.ViewOnMap(this.value);
});
}
title=this.o.controls_title;
if(this.o.controls_title){
title=$('
').addClass('canvas_map').css({
width: '100%',
height: '100%'
}).appendTo(this.map_div);
this.oMap=new google.maps.Map(this.canvas_map.get(0), this.o.map_options);
} catch (err){
this.debug('create_objMap::' + this.map_div.selector, err.toString());
}}else{
self.oMap.setOptions(this.o.map_options);
}
count=0;
for (i in this.o.styles){
if(this.o.styles.hasOwnProperty(i)){
count++;
this.oMap.mapTypes.set('map_style_' + count, new google.maps.StyledMapType(this.o.styles[i], {
name: i
}));
this.oMap.setMapTypeId('map_style_' + count);
}}
};
Maplace.prototype.add_markers_to_objMap=function (){
var a,
point,
type=this.o.type||'marker';
switch (type){
case 'marker':
for (a=0; a < this.ln; a++){
point=this.create_objPoint(a);
this.create.marker.call(this, a, point);
}
break;
default:
this.create[type].apply(this);
break;
}};
Maplace.prototype.create_objPoint=function (index){
var point=$.extend({}, this.o.locations[index]),
visibility=point.visible===undefined ? undefined:point.visible;
!point.type&&(point.type=this.o.type);
point.map=this.oMap;
point.position=new google.maps.LatLng(point.lat, point.lon);
point.zIndex=point.zIndex===undefined ? 10000:(point.zIndex + 100);
point.visible=visibility===undefined ? this.o.show_markers:visibility;
this.o.maxZIndex=point.zIndex > this.maxZIndex ? point.zIndex:this.maxZIndex;
if(point.image){
point.icon=new google.maps.MarkerImage(point.image,
new google.maps.Size(point.image_w||32, point.image_h||32),
new google.maps.Point(0, 0),
new google.maps.Point((point.image_w||32) / 2, (point.image_h||32) / 2)
);
}
return point;
};
Maplace.prototype.create_objCircle=function (point){
var def_stroke_opz,
def_circle_opz,
circle;
circle=$.extend({}, point);
def_stroke_opz=$.extend({}, this.o.stroke_options);
def_circle_opz=$.extend({}, this.o.circle_options);
$.extend(def_stroke_opz, point.stroke_options||{});
$.extend(circle, def_stroke_opz);
$.extend(def_circle_opz, point.circle_options||{});
$.extend(circle, def_circle_opz);
circle.center=point.position;
circle.draggable=false;
circle.zIndex=point.zIndex > 0 ? point.zIndex - 10:1;
return circle;
};
Maplace.prototype.add_markerEv=function (index, point, marker){
var self=this;
google.maps.event.addListener(marker, 'click', function (ev){
self.o.beforeShow(index, point, marker);
if(self.o.show_infowindows&&(point.show_infowindow===false ? false:true)){
self.open_infowindow(index, marker, ev);
}
if(self.o.pan_on_click&&(point.pan_on_click===false ? false:true)){
self.oMap.panTo(point.position);
point.zoom&&self.oMap.setZoom(point.zoom);
}
if(self.current_control&&self.o.generate_controls&&self.current_control.activateCurrent){
self.current_control.activateCurrent.call(self, index + 1);
}
self.current_index=index;
self.o.afterShow(index, point, marker);
});
if(point.draggable){
this.add_dragEv(index, point, marker);
}};
Maplace.prototype.add_circleEv=function (index, circle, marker){
var self=this;
google.maps.event.addListener(marker, 'click', function (){
self.ViewOnMap(index + 1);
});
google.maps.event.addListener(marker, 'center_changed', function(){
self.o.circleCenterChanged(index, circle, marker);
});
google.maps.event.addListener(marker, 'radius_changed', function(){
self.o.circleRadiusChanged(index, circle, marker);
});
if(circle.draggable){
this.add_dragEv(index, circle, marker);
}};
Maplace.prototype.add_dragEv=function (index, obj, marker){
var self=this;
google.maps.event.addListener(marker, 'drag', function (ev){
var pos,
extraType;
if(marker.getPosition){
pos=marker.getPosition();
}else if(marker.getCenter){
pos=marker.getCenter();
}else{
return;
}
if(self.circles[index]){
self.circles[index].setCenter(pos);
}
if(self.Polyline){
extraType='Polyline';
}else if(self.Polygon){
extraType='Polygon';
}
if(extraType){
var path=self[extraType].getPath(),
pathArray=path.getArray(),
arr=[],
i=0;
for(; i < pathArray.length; ++i){
arr[i]=index===i
? new google.maps.LatLng(pos.lat(), pos.lng())
: new google.maps.LatLng(pathArray[i].lat(), pathArray[i].lng());
}
self[extraType].setPath(new google.maps.MVCArray(arr));
self.add_polyEv(extraType);
}
self.o.drag(index, obj, marker);
});
google.maps.event.addListener(marker, 'dragend', function(){
self.o.dragEnd(index, obj, marker);
});
google.maps.event.addListener(marker, 'dragstart', function(){
self.o.dragStart(index, obj, marker);
});
google.maps.event.addListener(marker, 'center_changed', function(){
if(self.markers[index]&&marker.getCenter){
self.markers[index].setPosition(marker.getCenter());
}
self.o.drag(index, obj, marker);
});
};
Maplace.prototype.add_polyEv=function (typeName){
var self=this;
google.maps.event.addListener(this[typeName].getPath(), 'set_at', function(index, obj){
var item=self[typeName].getPath().getAt(index),
newPos=new google.maps.LatLng(item.lat(), item.lng());
self.markers[index]&&self.markers[index].setPosition(newPos);
self.circles[index]&&self.circles[index].setCenter(newPos);
self.o['on' + typeName + 'Changed'](index, obj, self[typeName].getPath().getArray());
});
};
Maplace.prototype.create={
marker: function (index, point, marker){
var self=this,
circle;
if(point.type=='circle'&&!marker){
circle=this.create_objCircle(point);
if(!point.visible){
circle.draggable=point.draggable;
}
marker=new google.maps.Circle(circle);
this.add_circleEv(index, circle, marker);
this.circles[index]=marker;
}
point.type='marker';
marker=new google.maps.Marker(point);
this.add_markerEv(index, point, marker);
this.oBounds.extend(point.position);
this.markers[index]=marker;
this.o.afterCreateMarker(index, point, marker);
return marker;
},
circle: function (){
var self=this,
a,
point,
circle,
marker;
for (a=0; a < this.ln; a++){
point=this.create_objPoint(a);
if(point.type=='circle'){
circle=this.create_objCircle(point);
if(!point.visible){
circle.draggable=point.draggable;
}
marker=new google.maps.Circle(circle);
this.add_circleEv(a, circle, marker);
this.circles[a]=marker;
}
point.type='marker';
this.create.marker.call(this, a, point, marker);
}},
polyline: function (){
var self=this,
a,
point,
stroke=$.extend({}, this.o.stroke_options);
stroke.path=[];
stroke.draggable=this.o.draggable;
stroke.editable=this.o.editable;
stroke.map=this.oMap;
stroke.zIndex=this.o.maxZIndex + 100;
for (a=0; a < this.ln; a++){
point=this.create_objPoint(a);
this.create.marker.call(this, a, point);
stroke.path.push(point.position);
}
this.Polyline
? this.Polyline.setOptions(stroke)
: this.Polyline=new google.maps.Polyline(stroke);
this.add_polyEv('Polyline');
},
polygon: function (){
var self=this,
a,
point,
stroke=$.extend({}, this.o.stroke_options);
stroke.path=[];
stroke.draggable=this.o.draggable;
stroke.editable=this.o.editable;
stroke.map=this.oMap;
stroke.zIndex=this.o.maxZIndex + 100;
for (a=0; a < this.ln; a++){
point=this.create_objPoint(a);
this.create.marker.call(this, a, point);
stroke.path.push(point.position);
}
this.Polygon
? this.Polygon.setOptions(stroke)
: this.Polygon=new google.maps.Polygon(stroke);
google.maps.event.addListener(this.Polygon, 'click', function (obj){
self.o.onPolygonClick(obj);
});
this.add_polyEv('Polygon');
},
fusion: function (){
this.o.fusion_options.styles=[this.o.stroke_options];
this.o.fusion_options.map=this.oMap;
this.Fusion
? this.Fusion.setOptions(this.o.fusion_options)
: this.Fusion=new google.maps.FusionTablesLayer(this.o.fusion_options);
},
directions: function (){
var self=this,
a,
point,
stopover,
origin,
destination,
waypoints=[],
distance=0;
for (a=0; a < this.ln; a++){
point=this.create_objPoint(a);
if(a===0){
origin=point.position;
}else if(a===(this.ln - 1)){
destination=point.position;
}else{
stopover=this.o.locations[a].stopover===true ? true:false;
waypoints.push({
location: point.position,
stopover: stopover
});
}
this.create.marker.call(this, a, point);
}
this.o.directions_options.origin=origin;
this.o.directions_options.destination=destination;
this.o.directions_options.waypoints=waypoints;
this.directionsService||(this.directionsService=new google.maps.DirectionsService());
this.directionsDisplay
? this.directionsDisplay.setOptions({ draggable: this.o.draggable })
: this.directionsDisplay=new google.maps.DirectionsRenderer({ draggable: this.o.draggable });
this.directionsDisplay.setMap(this.oMap);
if(this.o.directions_panel){
this.o.directions_panel=$(this.o.directions_panel);
this.directionsDisplay.setPanel(this.o.directions_panel.get(0));
}
if(this.o.draggable){
google.maps.event.addListener(this.directionsDisplay, 'directions_changed', function (){
distance=self.compute_distance(self.directionsDisplay.directions);
self.o.afterRoute(distance);
});
}
this.directionsService.route(this.o.directions_options, function (result, status){
if(status===google.maps.DirectionsStatus.OK){
distance=self.compute_distance(result);
self.directionsDisplay.setDirections(result);
}
self.o.afterRoute(distance, status, result);
});
}};
Maplace.prototype.compute_distance=function (result){
var total=0,
i,
myroute=result.routes[0],
rlen=myroute.legs.length;
for (i=0; i < rlen; i++){
total +=myroute.legs[i].distance.value;
}
return total;
};
Maplace.prototype.type_to_open={
bubble: function (location){
this.infowindow=new google.maps.InfoWindow({
content: location.html||''
});
}};
Maplace.prototype.open_infowindow=function (index, marker, ev){
this.CloseInfoWindow();
var point=this.o.locations[index],
type=this.o.infowindow_type;
if(point.html&&this.type_to_open[type]){
this.o.beforeOpenInfowindow(index, point, marker);
this.type_to_open[type].call(this, point);
this.infowindow.open(this.oMap, marker);
this.o.afterOpenInfowindow(index, point, marker);
}};
Maplace.prototype.get_html_controls=function (){
if(this.controls[this.o.controls_type]&&this.controls[this.o.controls_type].getHtml){
this.current_control=this.controls[this.o.controls_type];
return this.current_control.getHtml.apply(this);
}
return '';
};
Maplace.prototype.generate_controls=function (){
if(!this.o.controls_on_map){
this.controls_wrapper.empty();
this.controls_wrapper.append(this.get_html_controls());
return;
}
var cntr=$('
')
.css(this.o.controls_applycss ? { margin: '5px' }:{}),
inner=$(this.get_html_controls()).css(this.o.controls_applycss ? {
background: '#fff',
padding: '5px',
border: '1px solid rgb(113,123,135)',
boxShadow: 'rgba(0, 0, 0, 0.4) 0px 2px 4px',
maxHeight: this.map_div.find('.canvas_map').outerHeight() - 80,
minWidth: 100,
overflowY: 'auto',
overflowX: 'hidden'
}:{});
cntr.append(inner);
this.oMap.controls[this.o.controls_position].push(cntr.get(0));
};
Maplace.prototype.init_map=function (){
var self=this;
this.Polyline&&this.Polyline.setMap(null);
this.Polygon&&this.Polygon.setMap(null);
this.Fusion&&this.Fusion.setMap(null);
this.directionsDisplay&&this.directionsDisplay.setMap(null);
for (var i=this.markers.length - 1; i >=0; i -=1){
try {
this.markers[i]&&this.markers[i].setMap(null);
} catch (err){
self.debug('init_map::markers::setMap', err.stack);
}}
this.markers.length=0;
this.markers=[];
for (var i=this.circles.length - 1; i >=0; i -=1){
try {
this.circles[i]&&this.circles[i].setMap(null);
} catch (err){
self.debug('init_map::circles::setMap', err.stack);
}}
this.circles.length=0;
this.circles=[];
if(this.o.controls_on_map&&this.oMap.controls){
this.oMap.controls[this.o.controls_position].forEach(function (element, index){
try {
self.oMap.controls[this.o.controls_position].removeAt(index);
} catch (err){
self.debug('init_map::removeAt', err.stack);
}});
}
this.oBounds=new google.maps.LatLngBounds();
};
Maplace.prototype.perform_load=function (){
if(this.ln===1){
if(this.o.map_options.set_center){
this.oMap.setCenter(new google.maps.LatLng(this.o.map_options.set_center[0], this.o.map_options.set_center[1]));
}else{
this.oMap.fitBounds(this.oBounds);
this.ViewOnMap(1);
}
this.o.map_options.zoom&&this.oMap.setZoom(this.o.map_options.zoom);
}else if(this.ln===0){
if(this.o.map_options.set_center){
this.oMap.setCenter(new google.maps.LatLng(this.o.map_options.set_center[0], this.o.map_options.set_center[1]));
}else{
this.oMap.fitBounds(this.oBounds);
}
this.oMap.setZoom(this.o.map_options.zoom||1);
}else{
this.oMap.fitBounds(this.oBounds);
if(typeof (this.o.start - 0)==='number'&&this.o.start > 0&&this.o.start <=this.ln){
this.ViewOnMap(this.o.start);
}else if(this.o.map_options.set_center){
this.oMap.setCenter(new google.maps.LatLng(this.o.map_options.set_center[0], this.o.map_options.set_center[1]));
}else{
this.ViewOnMap(this.view_all_key);
}
this.o.map_options.zoom&&this.oMap.setZoom(this.o.map_options.zoom);
}};
Maplace.prototype.debug=function (code, msg){
this.o.debug&&console.log(code, msg);
return this;
};
Maplace.prototype.AddControl=function (name, func){
if(!name||!func){
self.debug('AddControl', 'Missing "name" and "func" callback.');
return false;
}
this.controls[name]=func;
return this;
};
Maplace.prototype.CloseInfoWindow=function (){
if(this.infowindow&&(this.current_index||this.current_index===0)){
this.o.beforeCloseInfowindow(this.current_index, this.o.locations[this.current_index]);
this.infowindow.close();
this.infowindow=null;
this.o.afterCloseInfowindow(this.current_index, this.o.locations[this.current_index]);
}
return this;
};
Maplace.prototype.ShowOnMenu=function (index){
if(index===this.view_all_key&&this.o.view_all&&this.ln > 1){
return true;
}
index=parseInt(index, 10);
if(typeof (index - 0)==='number'&&index >=0&&index < this.ln){
var on_menu=this.o.locations[index].on_menu===false ? false:true;
if(on_menu){
return true;
}}
return false;
};
Maplace.prototype.ViewOnMap=function (index){
if(index===this.view_all_key){
this.o.beforeViewAll();
this.current_index=index;
if(this.o.locations.length > 0&&this.o.generate_controls&&this.current_control&&this.current_control.activateCurrent){
this.current_control.activateCurrent.apply(this, [index]);
}
this.oMap.fitBounds(this.oBounds);
this.CloseInfoWindow();
this.o.afterViewAll();
}else{
index=parseInt(index, 10);
if(typeof (index - 0)==='number'&&index > 0&&index <=this.ln){
try {
google.maps.event.trigger(this.markers[index - 1], 'click');
} catch (err){
this.debug('ViewOnMap::trigger', err.stack);
}}
}
return this;
};
Maplace.prototype.SetLocations=function (locs, reload){
this.o.locations=locs;
reload&&this.Load();
return this;
};
Maplace.prototype.AddLocations=function (locs, reload){
var self=this;
if($.isArray(locs)){
$.each(locs, function (index, value){
self.o.locations.push(value);
});
}
if($.isPlainObject(locs)){
this.o.locations.push(locs);
}
reload&&this.Load();
return this;
};
Maplace.prototype.AddLocation=function (location, index, reload){
var self=this;
if($.isPlainObject(location)){
this.o.locations.splice(index, 0, location);
}
reload&&this.Load();
return this;
};
Maplace.prototype.RemoveLocations=function (locs, reload){
var self=this,
k=0;
if($.isArray(locs)){
$.each(locs, function (index, value){
if((value - k) < self.ln){
self.o.locations.splice(value-k, 1);
}
k++;
});
}else{
if(locs < this.ln){
this.o.locations.splice(locs, 1);
}}
reload&&this.Load();
return this;
};
Maplace.prototype.Loaded=function (){
return this.loaded;
};
Maplace.prototype._init=function (){
this.ln=this.o.locations.length;
for (var i=0; i < this.ln; i++){
var common=$.extend({}, this.o.shared);
this.o.locations[i]=$.extend(common, this.o.locations[i]);
if(this.o.locations[i].html){
this.o.locations[i].html=this.o.locations[i].html.replace('%index', i + 1);
this.o.locations[i].html=this.o.locations[i].html.replace('%title', (this.o.locations[i].title||''));
}}
this.map_div=$(this.o.map_div);
this.controls_wrapper=$(this.o.controls_div);
return this;
};
Maplace.prototype.Load=function (args){
$.extend(true, this.o, args);
args&&args.locations&&(this.o.locations=args.locations);
this._init();
this.o.visualRefresh===false ? (google.maps.visualRefresh=false):(google.maps.visualRefresh=true);
this.init_map();
this.create_objMap();
this.add_markers_to_objMap();
if((this.ln > 1&&this.o.generate_controls)||this.o.force_generate_controls){
this.o.generate_controls=true;
this.generate_controls();
}else{
this.o.generate_controls=false;
}
var self=this;
if(!this.loaded){
google.maps.event.addListenerOnce(this.oMap, 'idle', function (){
self.perform_load();
});
google.maps.event.addListener(this.oMap, 'resize', function (){
self.canvas_map.css({
width: self.map_div.width(),
height: self.map_div.height()
});
});
var i;
for (i in this.o.listeners){
var map=this.oMap,
myListener=this.o.listeners[i];
if(this.o.listeners.hasOwnProperty(i)){
google.maps.event.addListener(this.oMap, i, function (event){
myListener(map, event);
});
}}
}else{
this.perform_load();
}
this.loaded=true;
return this;
};
return Maplace;
})();
if(typeof define=='function'&&define.amd){
define(function(){ return Maplace; });
}else{
window.Maplace=Maplace;
}})(jQuery, this, google);
;(function(factory){
'use strict';
if(typeof define==='function'&&define.amd){
define(['jquery'], factory);
}else if(typeof module!=='undefined'&&module.exports){
module.exports=factory(require('jquery'));
}else{
factory(jQuery);
}})(function($){
var _previousResizeWidth=-1,
_updateTimeout=-1;
var _parse=function(value){
return parseFloat(value)||0;
};
var _rows=function(elements){
var tolerance=1,
$elements=$(elements),
lastTop=null,
rows=[];
$elements.each(function(){
var $that=$(this),
top=$that.offset().top - _parse($that.css('margin-top')),
lastRow=rows.length > 0 ? rows[rows.length - 1]:null;
if(lastRow===null){
rows.push($that);
}else{
if(Math.floor(Math.abs(lastTop - top)) <=tolerance){
rows[rows.length - 1]=lastRow.add($that);
}else{
rows.push($that);
}}
lastTop=top;
});
return rows;
};
var _parseOptions=function(options){
var opts={
byRow: true,
property: 'height',
target: null,
remove: false
};
if(typeof options==='object'){
return $.extend(opts, options);
}
if(typeof options==='boolean'){
opts.byRow=options;
}else if(options==='remove'){
opts.remove=true;
}
return opts;
};
var matchHeight=$.fn.matchHeight=function(options){
var opts=_parseOptions(options);
if(opts.remove){
var that=this;
this.css(opts.property, '');
$.each(matchHeight._groups, function(key, group){
group.elements=group.elements.not(that);
});
return this;
}
if(this.length <=1&&!opts.target){
return this;
}
matchHeight._groups.push({
elements: this,
options: opts
});
matchHeight._apply(this, opts);
return this;
};
matchHeight.version='master';
matchHeight._groups=[];
matchHeight._throttle=80;
matchHeight._maintainScroll=false;
matchHeight._beforeUpdate=null;
matchHeight._afterUpdate=null;
matchHeight._rows=_rows;
matchHeight._parse=_parse;
matchHeight._parseOptions=_parseOptions;
matchHeight._apply=function(elements, options){
var opts=_parseOptions(options),
$elements=$(elements),
rows=[$elements];
var scrollTop=$(window).scrollTop(),
htmlHeight=$('html').outerHeight(true);
var $hiddenParents=$elements.parents().filter(':hidden');
$hiddenParents.each(function(){
var $that=$(this);
$that.data('style-cache', $that.attr('style'));
});
$hiddenParents.css('display', 'block');
if(opts.byRow&&!opts.target){
$elements.each(function(){
var $that=$(this),
display=$that.css('display');
if(display!=='inline-block'&&display!=='flex'&&display!=='inline-flex'){
display='block';
}
$that.data('style-cache', $that.attr('style'));
$that.css({
'display': display,
'padding-top': '0',
'padding-bottom': '0',
'margin-top': '0',
'margin-bottom': '0',
'border-top-width': '0',
'border-bottom-width': '0',
'height': '100px',
'overflow': 'hidden'
});
});
rows=_rows($elements);
$elements.each(function(){
var $that=$(this);
$that.attr('style', $that.data('style-cache')||'');
});
}
$.each(rows, function(key, row){
var $row=$(row),
targetHeight=0;
if(!opts.target){
if(opts.byRow&&$row.length <=1){
$row.css(opts.property, '');
return;
}
$row.each(function(){
var $that=$(this),
style=$that.attr('style'),
display=$that.css('display');
if(display!=='inline-block'&&display!=='flex'&&display!=='inline-flex'){
display='block';
}
var css={ 'display': display };
css[opts.property]='';
$that.css(css);
if($that.outerHeight(false) > targetHeight){
targetHeight=$that.outerHeight(false);
}
if(style){
$that.attr('style', style);
}else{
$that.css('display', '');
}});
}else{
targetHeight=opts.target.outerHeight(false);
}
$row.each(function(){
var $that=$(this),
verticalPadding=0;
if(opts.target&&$that.is(opts.target)){
return;
}
if($that.css('box-sizing')!=='border-box'){
verticalPadding +=_parse($that.css('border-top-width')) + _parse($that.css('border-bottom-width'));
verticalPadding +=_parse($that.css('padding-top')) + _parse($that.css('padding-bottom'));
}
$that.css(opts.property, (targetHeight - verticalPadding) + 'px');
});
});
$hiddenParents.each(function(){
var $that=$(this);
$that.attr('style', $that.data('style-cache')||null);
});
if(matchHeight._maintainScroll){
$(window).scrollTop((scrollTop / htmlHeight) * $('html').outerHeight(true));
}
return this;
};
matchHeight._applyDataApi=function(){
var groups={};
$('[data-match-height], [data-mh]').each(function(){
var $this=$(this),
groupId=$this.attr('data-mh')||$this.attr('data-match-height');
if(groupId in groups){
groups[groupId]=groups[groupId].add($this);
}else{
groups[groupId]=$this;
}});
$.each(groups, function(){
this.matchHeight(true);
});
};
var _update=function(event){
if(matchHeight._beforeUpdate){
matchHeight._beforeUpdate(event, matchHeight._groups);
}
$.each(matchHeight._groups, function(){
matchHeight._apply(this.elements, this.options);
});
if(matchHeight._afterUpdate){
matchHeight._afterUpdate(event, matchHeight._groups);
}};
matchHeight._update=function(throttle, event){
if(event&&event.type==='resize'){
var windowWidth=$(window).width();
if(windowWidth===_previousResizeWidth){
return;
}
_previousResizeWidth=windowWidth;
}
if(!throttle){
_update(event);
}else if(_updateTimeout===-1){
_updateTimeout=setTimeout(function(){
_update(event);
_updateTimeout=-1;
}, matchHeight._throttle);
}};
$(matchHeight._applyDataApi);
$(window).bind('load', function(event){
matchHeight._update(false, event);
});
$(window).bind('resize orientationchange', function(event){
matchHeight._update(true, event);
});
});
;(function($){
"use strict";
$(".blog-post-content").fitVids();
$(".video-post").fitVids();
var $body=$('body');
var dragging=false;
$body.on('touchmove', function(){
dragging=true;
});
$body.on('touchstart', function(){
dragging=false;
});
$('.has-bg-image').each(function (){
var $this=$(this),
image=$this.data('bg-image'),
color=$this.data('bg-color'),
opacity=$this.data('bg-opacity'),
$content=$('
', { 'class': 'content' }),
$background=$('
', { 'class': 'background' });
if(opacity){
$this.children().wrapAll($content);
$this.append($background);
$this.css({
'background-image': 'url(' + image + ')'
});
$background.css({
'background-color': '#' + color,
'opacity': opacity
});
}else{
$this.css({
'background-image': 'url(' + image + ')',
'background-color': '#' + color
});
}});
if($.fn.superfish){
$('.sf-menu').superfish();
}else{
console.warn('not loaded -> superfish.min.js and hoverIntent.js');
}
$('.mobileMenu'+'.mobile-sidebar-toggle').on('click', function (){
$body.toggleClass('mobile-sidebar-active');
return false;
});
$('.mobile-sidebar-open').on('click', function (){
$body.addClass('mobile-sidebar-active');
return false;
});
$('.mobile-sidebar-close').on('click', function (){
$body.removeClass('mobile-sidebar-active');
return false;
});
if($.fn.uouTabs){
$('.uou-tabs').uouTabs();
}else{
console.warn('not loaded -> uou-tabs.js');
}
if($.fn.uouAccordions){
$('.uou-accordions').uouAccordions();
}else{
console.warn('not loaded -> uou-accordions.js');
}
$('.alert').each(function (){
var $this=$(this);
if($this.hasClass('alert-dismissible')){
$this.children('.close').on('click', function (event){
event.preventDefault();
$this.remove();
});
}});
if($.fn.flexslider){
$('.default-slider').flexslider({
slideshowSpeed: 10000,
animationSpeed: 1000,
prevText: '',
nextText: ''
});
}else{
console.warn('not loaded -> jquery.flexslider-min.js');
}
if($.fn.rangeslider){
$('input[type="range"]').rangeslider({
polyfill: false,
onInit: function (){
this.$range.wrap('
').parent().append('
' + this.$element.data('unit-before') + '' + this.$element.data('unit-after') + '
');
},
onSlide: function(value, position){
var $span=this.$range.parent().find('.tooltip span');
$span.html(position);
}});
}else{
console.warn('not loaded -> rangeslider.min.js');
}
function selectPlaceholder(el){
var $el=$(el);
if($el.val()==='placeholder'){
$el.addClass('placeholder');
}else{
$el.removeClass('placeholder');
}}
$('select').each(function (){
selectPlaceholder(this);
}).change(function (){
selectPlaceholder(this);
});
var $block=$(this);
$block.find('.uou-block-1a' + '.search').each(function (){
var $this=$(this);
$this.find('.toggle').on('click', function (event){
event.preventDefault();
$this.addClass('active');
setTimeout(function (){
$this.find('.search-input').focus();
}, 100);
});
$this.find('input[type="text"]').on('blur', function (){
$this.removeClass('active');
});
});
$block.find('.uou-block-1a' + '.language').each(function (){
var $this=$(this);
$this.find('.toggle').on('click', function (event){
event.preventDefault();
if(!$this.hasClass('active')){
$this.addClass('active');
}else{
$this.removeClass('active');
}});
});
var $block=$(this);
$block.find('.language').each(function (){
var $this=$(this);
$this.find('.toggle').on('click', function (event){
event.preventDefault();
if(!$this.hasClass('active')){
$this.addClass('active');
}else{
$this.removeClass('active');
}});
});
var $block=$(this);
$block.find('.uou-block-1e'+'.language').each(function (){
var $this=$(this);
$this.find('.toggle').on('click', function (event){
event.preventDefault();
if(!$this.hasClass('active')){
$this.addClass('active');
}else{
$this.removeClass('active');
}});
});
$('.uou-block-5b').each(function (){
var $block=$(this),
$tabs=$block.find('.tabs > li');
$tabs.on('click', function (){
var $this=$(this),
target=$this.data('target');
if(!$this.hasClass('active')){
$block.find('.' + target).addClass('active').siblings('blockquote').removeClass('active');
$tabs.removeClass('active');
$this.addClass('active');
return false;
}});
});
$('.uou-block-5c').each(function (){
var $block=$(this);
if($.fn.flexslider){
$block.find('.flexslider').flexslider({
slideshowSpeed: 10000,
animationSpeed: 1000,
prevText: '',
nextText: '',
controlNav: false,
smoothHeight: true
});
}else{
console.warn('not loaded -> jquery.flexslider-min.js');
}});
$('.uou-block-7g').each(function (){
var $block=$(this),
$badge=$block.find('.badge'),
badgeColor=$block.data('badge-color');
if(badgeColor){
$badge.css('background-color', '#' + badgeColor);
}});
$('.uou-block-7h').each(function (){
var $block=$(this);
if($.fn.flexslider){
$block.find('.flexslider').flexslider({
slideshowSpeed: 10000,
animationSpeed: 1000,
prevText: '',
nextText: '',
directionNav: false,
smoothHeight: true
});
}else{
console.warn('not loaded -> jquery.flexslider-min.js');
}});
$('.uou-block-11a').each(function (){
var $block=$(this);
$block.find('.main-nav').each(function (){
var $this=$(this).children('ul');
$this.find('li').each(function (){
var $this=$(this);
if($this.children('ul').length > 0){
$this.addClass('has-submenu');
$this.append('
');
}});
var $submenus=$this.find('.has-submenu');
$submenus.children('.arrow').on('click', function (event){
var $this=$(this),
$li=$this.parent('li');
if(!$li.hasClass('active')){
$li.addClass('active');
$li.children('ul').slideDown();
}else{
$li.removeClass('active');
$li.children('ul').slideUp();
}});
});
});
}(jQuery));
;(function($){
"use strict";
var $body=$('body');
var dragging=false;
$body.on('touchmove', function(){
dragging=true;
});
$body.on('touchstart', function(){
dragging=false;
});
$('.has-bg-image').each(function (){
var $this=$(this),
image=$this.data('bg-image'),
color=$this.data('bg-color'),
opacity=$this.data('bg-opacity'),
$content=$('
', { 'class': 'content' }),
$background=$('
', { 'class': 'background' });
if(opacity){
$this.children().wrapAll($content);
$this.append($background);
$this.css({
'background-image': 'url(' + image + ')'
});
$background.css({
'background-color': '#' + color,
'opacity': opacity
});
}else{
$this.css({
'background-image': 'url(' + image + ')',
'background-color': '#' + color
});
}});
if($.fn.superfish){
$('.sf-menu').superfish();
}else{
console.warn('not loaded -> superfish.min.js and hoverIntent.js');
}
$('.mobile-sidebar-toggle').on('click', function (){
$body.toggleClass('mobile-sidebar-active');
return false;
});
$('.mobile-sidebar-open').on('click', function (){
$body.addClass('mobile-sidebar-active');
return false;
});
$('.mobile-sidebar-close').on('click', function (){
$body.removeClass('mobile-sidebar-active');
return false;
});
if($.fn.uouTabs){
$('.uou-tabs').uouTabs();
}else{
console.warn('not loaded -> uou-tabs.js');
}
if($.fn.uouAccordions){
$('.uou-accordions').uouAccordions();
}else{
console.warn('not loaded -> uou-accordions.js');
}
$('.alert').each(function (){
var $this=$(this);
if($this.hasClass('alert-dismissible')){
$this.children('.close').on('click', function (event){
event.preventDefault();
$this.remove();
});
}});
if($.fn.flexslider){
$('.default-slider').flexslider({
slideshowSpeed: 10000,
animationSpeed: 1000,
prevText: '',
nextText: ''
});
}else{
console.warn('not loaded -> jquery.flexslider-min.js');
}
if($.fn.rangeslider){
$('input[type="range"]').rangeslider({
polyfill: false,
onInit: function (){
this.$range.wrap('
').parent().append('
' + this.$element.data('unit-before') + '' + this.$element.data('unit-after') + '
');
},
onSlide: function(value, position){
var $span=this.$range.parent().find('.tooltip span');
$span.html(position);
}});
}else{
console.warn('not loaded -> rangeslider.min.js');
}
function selectPlaceholder(el){
var $el=$(el);
if($el.val()==='placeholder'){
$el.addClass('placeholder');
}else{
$el.removeClass('placeholder');
}}
$('select').each(function (){
selectPlaceholder(this);
}).change(function (){
selectPlaceholder(this);
});
$('.uou-block-1a').each(function (){
var $block=$(this);
$block.find('.search').each(function (){
var $this=$(this);
$this.find('.toggle').on('click', function (event){
event.preventDefault();
$this.addClass('active');
setTimeout(function (){
$this.find('.search-input').focus();
}, 100);
});
$this.find('input[type="text"]').on('blur', function (){
$this.removeClass('active');
});
});
$block.find('.language').each(function (){
var $this=$(this);
$this.find('.toggle').on('click', function (event){
event.preventDefault();
if(!$this.hasClass('active')){
$this.addClass('active');
}else{
$this.removeClass('active');
}});
});
});
$('.uou-block-1b').each(function (){
var $block=$(this);
$block.find('.language').each(function (){
var $this=$(this);
$this.find('.toggle').on('click', function (event){
event.preventDefault();
if(!$this.hasClass('active')){
$this.addClass('active');
}else{
$this.removeClass('active');
}});
});
});
$('.uou-block-1e').each(function (){
var $block=$(this);
$block.find('.language').each(function (){
var $this=$(this);
$this.find('.toggle').on('click', function (event){
event.preventDefault();
if(!$this.hasClass('active')){
$this.addClass('active');
}else{
$this.removeClass('active');
}});
});
});
$('.uou-block-1f').each(function (){
var $block=$(this);
$block.find('.language').each(function (){
var $this=$(this);
$this.find('.toggle').on('click', function (event){
event.preventDefault();
if(!$this.hasClass('active')){
$this.addClass('active');
}else{
$this.removeClass('active');
}});
});
});
$('.uou-block-5b').each(function (){
var $block=$(this),
$tabs=$block.find('.tabs > li');
$tabs.on('click', function (){
var $this=$(this),
target=$this.data('target');
if(!$this.hasClass('active')){
$block.find('.' + target).addClass('active').siblings('blockquote').removeClass('active');
$tabs.removeClass('active');
$this.addClass('active');
return false;
}});
});
$('.uou-block-5c').each(function (){
var $block=$(this);
if($.fn.flexslider){
$block.find('.flexslider').flexslider({
slideshowSpeed: 10000,
animationSpeed: 1000,
prevText: '',
nextText: '',
controlNav: false,
smoothHeight: true
});
}else{
console.warn('not loaded -> jquery.flexslider-min.js');
}});
$(function(){
$('.matchHeight').matchHeight({
byRow: true,
property: 'height',
target: null,
remove: false
});
});
$('.uou-block-7g').each(function (){
var $block=$(this),
$badge=$block.find('.badge'),
badgeColor=$block.data('badge-color');
if(badgeColor){
$badge.css('background-color', '#' + badgeColor);
}});
$('.uou-block-7h').each(function (){
var $block=$(this);
if($.fn.flexslider){
$block.find('.flexslider').flexslider({
slideshowSpeed: 10000,
animationSpeed: 1000,
prevText: '',
nextText: '',
directionNav: false,
smoothHeight: true
});
}else{
console.warn('not loaded -> jquery.flexslider-min.js');
}});
$('.uou-block-11a').each(function (){
var $block=$(this);
$block.find('.main-nav').each(function (){
var $this=$(this).children('ul');
$this.find('li').each(function (){
var $this=$(this);
if($this.children('ul').length > 0){
$this.addClass('has-submenu');
$this.append('
');
}});
var $submenus=$this.find('.has-submenu');
$submenus.children('.arrow').on('click', function (event){
var $this=$(this),
$li=$this.parent('li');
if(!$li.hasClass('active')){
$li.addClass('active');
$li.children('ul').slideDown();
}else{
$li.removeClass('active');
$li.children('ul').slideUp();
}});
});
});
}(jQuery));
(function(h){"function"===typeof define&&define.amd?define(["jquery"],function(E){return h(E,window,document)}):"object"===typeof exports?module.exports=function(E,G){E||(E=window);G||(G="undefined"!==typeof window?require("jquery"):require("jquery")(E));return h(G,E,E.document)}:h(jQuery,window,document)})(function(h,E,G,k){function X(a){var b,c,d={};h.each(a,function(e){if((b=e.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(b[1]+" "))c=e.replace(b[0],b[2].toLowerCase()),
d[c]=e,"o"===b[1]&&X(a[e])});a._hungarianMap=d}function I(a,b,c){a._hungarianMap||X(a);var d;h.each(b,function(e){d=a._hungarianMap[e];if(d!==k&&(c||b[d]===k))"o"===d.charAt(0)?(b[d]||(b[d]={}),h.extend(!0,b[d],b[e]),I(a[d],b[d],c)):b[d]=b[e]})}function Ca(a){var b=m.defaults.oLanguage,c=a.sZeroRecords;!a.sEmptyTable&&(c&&"No data available in table"===b.sEmptyTable)&&F(a,a,"sZeroRecords","sEmptyTable");!a.sLoadingRecords&&(c&&"Loading..."===b.sLoadingRecords)&&F(a,a,"sZeroRecords","sLoadingRecords");
a.sInfoThousands&&(a.sThousands=a.sInfoThousands);(a=a.sDecimal)&&cb(a)}function db(a){A(a,"ordering","bSort");A(a,"orderMulti","bSortMulti");A(a,"orderClasses","bSortClasses");A(a,"orderCellsTop","bSortCellsTop");A(a,"order","aaSorting");A(a,"orderFixed","aaSortingFixed");A(a,"paging","bPaginate");A(a,"pagingType","sPaginationType");A(a,"pageLength","iDisplayLength");A(a,"searching","bFilter");"boolean"===typeof a.sScrollX&&(a.sScrollX=a.sScrollX?"100%":"");"boolean"===typeof a.scrollX&&(a.scrollX=
a.scrollX?"100%":"");if(a=a.aoSearchCols)for(var b=0,c=a.length;b
").css({position:"fixed",top:0,left:-1*h(E).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(h("").css({position:"absolute",
top:1,left:1,width:100,overflow:"scroll"}).append(h("").css({width:"100%",height:10}))).appendTo("body"),d=c.children(),e=d.children();b.barWidth=d[0].offsetWidth-d[0].clientWidth;b.bScrollOversize=100===e[0].offsetWidth&&100!==d[0].clientWidth;b.bScrollbarLeft=1!==Math.round(e.offset().left);b.bBounding=c[0].getBoundingClientRect().width?!0:!1;c.remove()}h.extend(a.oBrowser,m.__browser);a.oScroll.iBarWidth=m.__browser.barWidth}function gb(a,b,c,d,e,f){var g,j=!1;c!==k&&(g=c,j=!0);for(;d!==e;)a.hasOwnProperty(d)&&(g=j?b(g,a[d],d,a):a[d],j=!0,d+=f);return g}function Da(a,b){var c=m.defaults.column,d=a.aoColumns.length,c=h.extend({},m.models.oColumn,c,{nTh:b?b:G.createElement("th"),sTitle:c.sTitle?c.sTitle:b?b.innerHTML:"",aDataSort:c.aDataSort?c.aDataSort:[d],mData:c.mData?c.mData:d,idx:d});a.aoColumns.push(c);c=a.aoPreSearchCols;c[d]=h.extend({},m.models.oSearch,c[d]);ja(a,d,h(b).data())}function ja(a,b,c){var b=a.aoColumns[b],d=a.oClasses,e=h(b.nTh);if(!b.sWidthOrig){b.sWidthOrig=
e.attr("width")||null;var f=(e.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);f&&(b.sWidthOrig=f[1])}c!==k&&null!==c&&(eb(c),I(m.defaults.column,c),c.mDataProp!==k&&!c.mData&&(c.mData=c.mDataProp),c.sType&&(b._sManualType=c.sType),c.className&&!c.sClass&&(c.sClass=c.className),c.sClass&&e.addClass(c.sClass),h.extend(b,c),F(b,c,"sWidth","sWidthOrig"),c.iDataSort!==k&&(b.aDataSort=[c.iDataSort]),F(b,c,"aDataSort"));var g=b.mData,j=Q(g),i=b.mRender?Q(b.mRender):null,c=function(a){return"string"===typeof a&&-1!==a.indexOf("@")};b._bAttrSrc=h.isPlainObject(g)&&(c(g.sort)||c(g.type)||c(g.filter));b._setter=null;b.fnGetData=function(a,b,c){var d=j(a,b,k,c);return i&&b?i(d,b,a,c):d};b.fnSetData=function(a,b,c){return R(g)(a,b,c)};"number"!==typeof g&&(a._rowReadObject=!0);a.oFeatures.bSort||(b.bSortable=!1,e.addClass(d.sSortableNone));a=-1!==h.inArray("asc",b.asSorting);c=-1!==h.inArray("desc",b.asSorting);!b.bSortable||!a&&!c?(b.sSortingClass=d.sSortableNone,b.sSortingClassJUI=""):a&&!c?(b.sSortingClass=
d.sSortableAsc,b.sSortingClassJUI=d.sSortJUIAscAllowed):!a&&c?(b.sSortingClass=d.sSortableDesc,b.sSortingClassJUI=d.sSortJUIDescAllowed):(b.sSortingClass=d.sSortable,b.sSortingClassJUI=d.sSortJUI)}function Y(a){if(!1!==a.oFeatures.bAutoWidth){var b=a.aoColumns;Ea(a);for(var c=0,d=b.length;cq[f])d(l.length+q[f],n);else if("string"===typeof q[f]){j=0;for(i=l.length;j<
i;j++)("_all"==q[f]||h(l[j].nTh).hasClass(q[f]))&&d(j,n)}}if(c){e=0;for(a=c.length;eb&&a[e]--; -1!=d&&c===k&&a.splice(d,1)}function ca(a,b,c,d){var e=a.aoData[b],f,g=function(c,d){for(;c.childNodes.length;)c.removeChild(c.firstChild);
c.innerHTML=B(a,b,d,"display")};if("dom"===c||(!c||"auto"===c)&&"dom"===e.src)e._aData=Ha(a,e,d,d===k?k:e._aData).data;else{var j=e.anCells;if(j)if(d!==k)g(j[d],d);else{c=0;for(f=j.length;c").appendTo(g));b=0;for(c=l.length;btr").attr("role","row");h(g).find(">tr>th, >tr>td").addClass(n.sHeaderTH);h(j).find(">tr>th, >tr>td").addClass(n.sFooterTH);
if(null!==j){a=a.aoFooter[0];b=0;for(c=a.length;b=a.fnRecordsDisplay()?0:g,a.iInitDisplayStart=
-1);var g=a._iDisplayStart,n=a.fnDisplayEnd();if(a.bDeferLoading)a.bDeferLoading=!1,a.iDraw++,C(a,!1);else if(j){if(!a.bDestroying&&!kb(a))return}else a.iDraw++;if(0!==i.length){f=j?a.aoData.length:n;for(j=j?0:g;j",{"class":e?d[0]:""}).append(h(" | ",{valign:"top",colSpan:aa(a),"class":a.oClasses.sRowEmpty}).html(c))[0];r(a,"aoHeaderCallback","header",[h(a.nTHead).children("tr")[0],Ja(a),g,n,i]);r(a,"aoFooterCallback","footer",[h(a.nTFoot).children("tr")[0],Ja(a),g,n,i]);d=h(a.nTBody);d.children().detach();d.append(h(b));r(a,"aoDrawCallback","draw",[a]);a.bSorted=!1;a.bFiltered=!1;a.bDrawing=!1}}function S(a,b){var c=a.oFeatures,d=c.bFilter;
c.bSort&&lb(a);d?fa(a,a.oPreviousSearch):a.aiDisplay=a.aiDisplayMaster.slice();!0!==b&&(a._iDisplayStart=0);a._drawHold=b;N(a);a._drawHold=!1}function mb(a){var b=a.oClasses,c=h(a.nTable),c=h("").insertBefore(c),d=a.oFeatures,e=h("",{id:a.sTableId+"_wrapper","class":b.sWrapper+(a.nTFoot?"":" "+b.sNoFooter)});a.nHolding=c[0];a.nTableWrapper=e[0];a.nTableReinsertBefore=a.nTable.nextSibling;for(var f=a.sDom.split(""),g,j,i,n,l,q,k=0;k")[0];
n=f[k+1];if("'"==n||'"'==n){l="";for(q=2;f[k+q]!=n;)l+=f[k+q],q++;"H"==l?l=b.sJUIHeader:"F"==l&&(l=b.sJUIFooter);-1!=l.indexOf(".")?(n=l.split("."),i.id=n[0].substr(1,n[0].length-1),i.className=n[1]):"#"==l.charAt(0)?i.id=l.substr(1,l.length-1):i.className=l;k+=q}e.append(i);e=h(i)}else if(">"==j)e=e.parent();else if("l"==j&&d.bPaginate&&d.bLengthChange)g=nb(a);else if("f"==j&&d.bFilter)g=ob(a);else if("r"==j&&d.bProcessing)g=pb(a);else if("t"==j)g=qb(a);else if("i"==j&&d.bInfo)g=rb(a);else if("p"==j&&d.bPaginate)g=sb(a);else if(0!==m.ext.feature.length){i=m.ext.feature;q=0;for(n=i.length;q',j=d.sSearch,j=j.match(/_INPUT_/)?j.replace("_INPUT_",g):j+g,b=h("",{id:!f.f?c+"_filter":null,"class":b.sFilter}).append(h("").append(j)),f=function(){var b=!this.value?
"":this.value;b!=e.sSearch&&(fa(a,{sSearch:b,bRegex:e.bRegex,bSmart:e.bSmart,bCaseInsensitive:e.bCaseInsensitive}),a._iDisplayStart=0,N(a))},g=null!==a.searchDelay?a.searchDelay:"ssp"===y(a)?400:0,i=h("input",b).val(e.sSearch).attr("placeholder",d.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",g?Na(f,g):f).on("keypress.DT",function(a){if(13==a.keyCode)return!1}).attr("aria-controls",c);h(a.nTable).on("search.dt.DT",function(b,c){if(a===c)try{i[0]!==G.activeElement&&i.val(e.sSearch)}catch(d){}});
return b[0]}function fa(a,b,c){var d=a.oPreviousSearch,e=a.aoPreSearchCols,f=function(a){d.sSearch=a.sSearch;d.bRegex=a.bRegex;d.bSmart=a.bSmart;d.bCaseInsensitive=a.bCaseInsensitive};Fa(a);if("ssp"!=y(a)){vb(a,b.sSearch,c,b.bEscapeRegex!==k?!b.bEscapeRegex:b.bRegex,b.bSmart,b.bCaseInsensitive);f(b);for(b=0;b=b.length)a.aiDisplay=
g.slice();else{if(j||c||f.length>b.length||0!==b.indexOf(f)||a.bSorted)a.aiDisplay=g.slice();b=a.aiDisplay;for(c=0;c",{"class":a.oClasses.sInfo,id:!c?b+"_info":null});c||(a.aoDrawCallback.push({fn:Bb,sName:"information"}),d.attr("role","status").attr("aria-live","polite"),h(a.nTable).attr("aria-describedby",b+"_info"));return d[0]}function Bb(a){var b=a.aanFeatures.i;if(0!==b.length){var c=a.oLanguage,d=a._iDisplayStart+
1,e=a.fnDisplayEnd(),f=a.fnRecordsTotal(),g=a.fnRecordsDisplay(),j=g?c.sInfo:c.sInfoEmpty;g!==f&&(j+=" "+c.sInfoFiltered);j+=c.sInfoPostFix;j=Cb(a,j);c=c.fnInfoCallback;null!==c&&(j=c.call(a.oInstance,a,d,e,f,g,j));h(b).html(j)}}function Cb(a,b){var c=a.fnFormatNumber,d=a._iDisplayStart+1,e=a._iDisplayLength,f=a.fnRecordsDisplay(),g=-1===e;return b.replace(/_START_/g,c.call(a,d)).replace(/_END_/g,c.call(a,a.fnDisplayEnd())).replace(/_MAX_/g,c.call(a,a.fnRecordsTotal())).replace(/_TOTAL_/g,c.call(a,
f)).replace(/_PAGE_/g,c.call(a,g?1:Math.ceil(d/e))).replace(/_PAGES_/g,c.call(a,g?1:Math.ceil(f/e)))}function ga(a){var b,c,d=a.iInitDisplayStart,e=a.aoColumns,f;c=a.oFeatures;var g=a.bDeferLoading;if(a.bInitialised){mb(a);jb(a);ea(a,a.aoHeader);ea(a,a.aoFooter);C(a,!0);c.bAutoWidth&&Ea(a);b=0;for(c=e.length;b",{name:c+"_length","aria-controls":c,"class":b.sLengthSelect}),g=0,j=f.length;g ").addClass(b.sLength);a.aanFeatures.l||(i[0].id=c+"_length");i.children().append(a.oLanguage.sLengthMenu.replace("_MENU_",e[0].outerHTML));h("select",i).val(a._iDisplayLength).on("change.DT",function(){Qa(a,h(this).val());N(a)});h(a.nTable).on("length.dt.DT",function(b,c,d){a===c&&h("select",i).val(d)});return i[0]}function sb(a){var b=a.sPaginationType,c=m.ext.pager[b],d="function"===typeof c,e=function(a){N(a)},
b=h("