').insertAfter('#slider46_container_');
var type = reslider46["params"]["sharing"]["type"];
shareButtons = '
';
jQuery('.socialIcons46').append(shareButtons);
}
if (reslider46["params"]["sharing"]["show"]["facebook"] === 1) {
jQuery('.share-buttons46').append('
');
setTimeout(function(){
jQuery('#share-facebook').attr('href', 'https://www.facebook.com/sharer/sharer.php?u=' + (encodeURIComponent(window.location.href)));
}, 200);
}
if (reslider46["params"]["sharing"]["show"]["twitter"] === 1) {
jQuery('.share-buttons46').append('
');
setTimeout(function(){
jQuery('#share-twitter').attr('href', 'https://twitter.com/intent/tweet?text=&url=' + (encodeURIComponent(window.location.href)));
}, 200);
}
if (reslider46["params"]["sharing"]["show"]["googleplus"] === 1) {
jQuery('.share-buttons46').append('
');
setTimeout(function(){
jQuery('#share-googleplus').attr('href', 'https://plus.google.com/share?url=' + (encodeURIComponent(window.location.href)));
}, 200);
}
if (reslider46["params"]["sharing"]["show"]["pinterest"] === 1) {
jQuery('.share-buttons46').append('
');
setTimeout(function(){
jQuery('#share-pinterest').attr('href', 'http://www.pinterest.com/pin/create/button/?url=' + (encodeURIComponent(window.location.href)));
}, 200);
}
if (reslider46["params"]["sharing"]["show"]["linkedin"] === 1) {
jQuery('.share-buttons46').append('
');
setTimeout(function(){
jQuery('#share-linkedin').attr('href', 'http://www.linkedin.com/shareArticle?mini=true&url=' + (encodeURIComponent(window.location.href)));
}, 200);
}
if (reslider46["params"]["sharing"]["show"]["tumblr"] === 1) {
jQuery('.share-buttons46').append('
');
setTimeout(function(){
jQuery('#share-tumblr').attr('href', 'http://www.tumblr.com/share/link?url=' + (encodeURIComponent(window.location.href)));
}, 200);
}
});
if(reslider46["params"]["rightclickprotection"]) {
jQuery('#slider46_container').bind("contextmenu", function(e) {
e.preventDefault();
});
jQuery(document).keydown(function(e){
if(e.which === 123){
return false;
}
});
}
var $PlayCondition = 1;
var c_slider46;
init_c_slider46 = function (containerId) {
switch(reslider46["params"]["effect"]["type"]) {
case 0:
var reslide_effect = {$Duration:reslider46["params"]["effect"]["duration"],$Opacity:2,$Brother:{$Duration:1000,$Opacity:2}};
break;
case 1:
reslide_effect = {$Duration:reslider46["params"]["effect"]["duration"],x:-0.3,y:0.5,$Zoom:1,$Rotate:0.1,$During:{$Left:[0.6,0.4],$Top:[0.6,0.4],$Rotate:[0.6,0.4],$Zoom:[0.6,0.4]},$Easing:{$Left:$JssorEasing$.$EaseInQuad,$Top:$JssorEasing$.$EaseInQuad,$Opacity:$JssorEasing$.$EaseLinear,$Rotate:$JssorEasing$.$EaseInQuad},$Opacity:2,$Brother:{$Duration:1000,$Zoom:11,$Rotate:-0.5,$Easing:{$Opacity:$JssorEasing$.$EaseLinear,$Rotate:$JssorEasing$.$EaseInQuad},$Opacity:2,$Shift:200}};
break;
case 2:
reslide_effect = {$Duration:reslider46["params"]["effect"]["duration"],x:0.25,$Zoom:1.5,$Easing:{$Left:$JssorEasing$.$EaseInWave,$Zoom:$JssorEasing$.$EaseInSine},$Opacity:2,$ZIndex:-10,$Brother:{$Duration:1400,x:-0.25,$Zoom:1.5,$Easing:{$Left:$JssorEasing$.$EaseInWave,$Zoom:$JssorEasing$.$EaseInSine},$Opacity:2,$ZIndex:-10}}
break;
case 3:
reslide_effect ={$Duration:reslider46["params"]["effect"]["duration"],x:0.5,$Cols:2,$ChessMode:{$Column:3},$Easing:{$Left:$JssorEasing$.$EaseInOutCubic},$Opacity:2,$Brother:{$Duration:1500,$Opacity:2}}
break;
case 4:
reslide_effect ={$Duration:reslider46["params"]["effect"]["duration"],x:-0.1,y:-0.7,$Rotate:0.1,$During:{$Left:[0.6,0.4],$Top:[0.6,0.4],$Rotate:[0.6,0.4]},$Easing:{$Left:$JssorEasing$.$EaseInQuad,$Top:$JssorEasing$.$EaseInQuad,$Opacity:$JssorEasing$.$EaseLinear,$Rotate:$JssorEasing$.$EaseInQuad},$Opacity:2,$Brother:{$Duration:1000,x:0.2,y:0.5,$Rotate:-0.1,$Easing:{$Left:$JssorEasing$.$EaseInQuad,$Top:$JssorEasing$.$EaseInQuad,$Opacity:$JssorEasing$.$EaseLinear,$Rotate:$JssorEasing$.$EaseInQuad},$Opacity:2}}
break;
case 5:
reslide_effect ={$Duration:reslider46["params"]["effect"]["duration"],x:-1,y:-0.5,$Delay:50,$Cols:8,$Rows:4,$Formation:$JssorSlideshowFormations$.$FormationSquare,$Easing:{$Left:$JssorEasing$.$EaseSwing,$Top:$JssorEasing$.$EaseInJump},$Assembly:260,$Round:{$Top:1.5}}
break;
case 6:
reslide_effect ={$Duration:reslider46["params"]["effect"]["duration"],$Delay:30,$Cols:8,$Rows:4,$Clip:15,$SlideOut:true,$Formation:$JssorSlideshowFormations$.$FormationStraightStairs,$Easing:$JssorEasing$.$EaseOutQuad,$Assembly:2049}
break;
case 7:
reslide_effect ={$Duration:reslider46["params"]["effect"]["duration"],x:-1,$Easing:$JssorEasing$.$EaseInQuad};
break;
case 8:
reslide_effect ={$Duration:reslider46["params"]["effect"]["duration"],x:1,$Easing:$JssorEasing$.$EaseInQuad};
break;
case 9:
reslide_effect ={$Duration:reslider46["params"]["effect"]["duration"],y:-1,$Easing:$JssorEasing$.$EaseInQuad};
break;
case 10:
reslide_effect ={$Duration:reslider46["params"]["effect"]["duration"],y:1,$Easing:$JssorEasing$.$EaseInQuad};
break;
case 11:
reslide_effect ={$Duration:reslider46["params"]["effect"]["duration"],x:-1,y:2,$Rows:2,$Zoom:11,$Rotate:1,$ChessMode:{$Row:15},$Easing:{$Left:$JssorEasing$.$EaseInCubic,$Top:$JssorEasing$.$EaseInCubic,$Zoom:$JssorEasing$.$EaseInCubic,$Opacity:$JssorEasing$.$EaseOutQuad,$Rotate:$JssorEasing$.$EaseInCubic},$Assembly:2049,$Opacity:2,$Round:{$Rotate:0.8}};
break;
case 12:
reslide_effect ={$Duration:reslider46["params"]["effect"]["duration"],x:2,y:1,$Cols:2,$Zoom:11,$Rotate:1,$ChessMode:{$Column:15},$Easing:{$Left:$JssorEasing$.$EaseInCubic,$Top:$JssorEasing$.$EaseInCubic,$Zoom:$JssorEasing$.$EaseInCubic,$Opacity:$JssorEasing$.$EaseOutQuad,$Rotate:$JssorEasing$.$EaseInCubic},$Assembly:2049,$Opacity:2,$Round:{$Rotate:0.7}};
break;
case 13:
reslide_effect ={$Duration:reslider46["params"]["effect"]["duration"],$Zoom:11,$Easing:{$Zoom:$JssorEasing$.$EaseInCubic,$Opacity:$JssorEasing$.$EaseOutQuad},$Opacity:2};
break;
case 14:
reslide_effect ={$Duration:reslider46["params"]["effect"]["duration"],x:0.3,y:0.3,$Cols:2,$Rows:2,$During:{$Left:[0.3,0.7],$Top:[0.3,0.7]},$ChessMode:{$Column:3,$Row:12},$Easing:{$Left:$JssorEasing$.$EaseInCubic,$Top:$JssorEasing$.$EaseInCubic,$Opacity:$JssorEasing$.$EaseLinear},$Opacity:2};
break;
case 15:
reslide_effect ={$Duration:reslider46["params"]["effect"]["duration"],$Delay:20,$Clip:3,$SlideOut:true,$Easing:{$Clip:$JssorEasing$.$EaseOutCubic,$Opacity:$JssorEasing$.$EaseLinear},$Assembly:260,$Opacity:2};
break;
case 16:
reslide_effect ={$Duration:reslider46["params"]["effect"]["duration"],$Delay:20,$Clip:12,$SlideOut:true,$Easing:{$Clip:$JssorEasing$.$EaseOutCubic,$Opacity:$JssorEasing$.$EaseLinear},$Assembly:260,$Opacity:2};
break;
case 17:
reslide_effect ={$Duration:reslider46["params"]["effect"]["duration"],x:-1,$Rows:6,$Formation:$JssorSlideshowFormations$.$FormationStraight,$ChessMode:{$Row:3}};
break;
case 18:
reslide_effect ={$Duration:reslider46["params"]["effect"]["duration"],y:-1,$Cols:12,$Formation:$JssorSlideshowFormations$.$FormationStraight,$ChessMode:{$Column:12}};
break;
case 19:
reslide_effect ={$Duration:reslider46["params"]["effect"]["duration"],$Delay:100,$Rows:7,$Formation:$JssorSlideshowFormations$.$FormationStraight,$Opacity:2};
break;
case 20:
reslide_effect ={$Duration:reslider46["params"]["effect"]["duration"],$Delay:100,$Cols:10,$Formation:$JssorSlideshowFormations$.$FormationStraight,$Opacity:2};
break;
};
var _SlideshowTransitions = [
reslide_effect
];
if(!reslider46['params']['thumbnails']['positioning']) {
var thumbnailsCount = Math.ceil(reslider46.count-1);
}
else {
var thumbnailsCount = Math.ceil(reslider46.count);
}
var options = {
$AutoPlay: (reslider46["params"]["autoplay"]==1)?true:false, //[Optional] Whether to auto play, to enable slideshow, this option must be set to true, default value is false
$SlideDuration: 500,
$PauseOnHover: reslider46["params"]["pauseonhover"],
$AutoPlayInterval: reslider46["params"]["effect"]["interval"],
$ArrowKeyNavigation: 1,
//$AutoPlaySteps : -1,
//[Optional] Specifies default duration (swipe) for slide in milliseconds, default value is 500
$BulletNavigatorOptions: { //[Optional] Options to specify and enable navigator or not
$Class: $JssorBulletNavigator$, //[Required] Class to create navigator instance
$ChanceToShow: reslider46["params"]["bullets"]["show"], //[Required] 0 Never, 1 Mouse Over, 2 Always
$AutoCenter: reslider46["params"]["bullets"]["autocenter"], //[Optional] Auto center navigator in parent container, 0 None, 1 Horizontal, 2 Vertical, 3 Both, default value is 0
$Steps: 1, //[Optional] Steps to go for each navigation request, default value is 1
$Rows: reslider46["params"]["bullets"]["rows"], //[Optional] Specify lanes to arrange items, default value is 1
$SpacingX: reslider46["params"]["bullets"]["s_x"], //[Optional] Horizontal space between each item in pixel, default value is 0
$SpacingY: reslider46["params"]["bullets"]["s_y"], //[Optional] Vertical space between each item in pixel, default value is 0
$Orientation: reslider46["params"]["bullets"]["orientation"] //[Optional] The orientation of the navigator, 1 horizontal, 2 vertical, default value is 1
},
$ArrowNavigatorOptions: { //[Optional] Options to specify and enable arrow navigator or not
$Class: $JssorArrowNavigator$, //[Requried] Class to create arrow navigator instance
$ChanceToShow: reslider46["params"]["arrows"]["show"], //[Required] 0 Never, 1 Mouse Over, 2 Always
$AutoCenter: 2, //[Optional] Auto center arrows in parent container, 0 No, 1 Horizontal, 2 Vertical, 3 Both, default value is 0
$Steps: 1 //[Optional] Steps to go for each navigation request, default value is 1
},
$SlideshowOptions: { //[Optional] Options to specify and enable slideshow or not
$Class: $JssorSlideshowRunner$, //[Required] Class to create instance of slideshow
$Transitions: _SlideshowTransitions, //[Required] An array of slideshow transitions to play slideshow
$TransitionsOrder: 1, //[Optional] The way to choose transition to play slide, 1 Sequence, 0 Random
$ShowLink: true //[Optional] Whether to bring slide link on top of the slider when slideshow is running, default value is false
} ,
$ThumbnailNavigatorOptions: {
$Class: $JssorThumbnailNavigator$, //[Required] Class to create thumbnail navigator instance
$ChanceToShow: reslider46["params"]["thumbnails"]["show"], //[Required] 0 Never, 1 Mouse Over, 2 Always
$ActionMode: 1, //[Optional] 0 None, 1 act by click, 2 act by mouse hover, 3 both, default value is 1
$AutoCenter: 0, //[Optional] Auto center thumbnail items in the thumbnail navigator container, 0 None, 1 Horizontal, 2 Vertical, 3 Both, default value is 3
$Rows: 1, //[Optional] Specify lanes to arrange thumbnails, default value is 1
$SpacingX: 3, //[Optional] Horizontal space between each thumbnail in pixel, default value is 0
$SpacingY: 3, //[Optional] Vertical space between each thumbnail in pixel, default value is 0
$Cols: thumbnailsCount, //[Optional] Number of pieces to display, default value is 1
$ParkingPosition: 0, //[Optional] The offset position to park thumbnail
$Orientation: 1, //[Optional] Orientation to arrange thumbnails, 1 horizental, 2 vertical, default value is 1
$NoDrag: false //[Optional] Disable drag or not, default value is false
}
};
c_slider46 = new $JssorSlider$(containerId, options);
}
jQuery(function($){
(function initReslideSlider() {
/*** ####bullets#### ***/
switch(+reslider46["params"]["bullets"]["position"]) {
case 0:
reslider46["params"]["bullets"]["autocenter"] = 0;
var css_bullets_obj = {"left":reslider46["params"]["bullets"]["style"]["position"]["left"],"top":reslider46["params"]["bullets"]["style"]["position"]["top"]};
var css_bullets= "left:"+reslider46["params"]["bullets"]["style"]["position"]["left"]+";top:"+reslider46["params"]["bullets"]["style"]["position"]["top"];
break;
case 1:
reslider46["params"]["bullets"]["autocenter"] = 1;
var css_bullets_obj = {"right":"","top":reslider46["params"]["bullets"]["style"]["position"]["top"],"left":"","bottom":""};
var css_bullets = "top:"+reslider46["params"]["bullets"]["style"]["position"]["top"];
break;
case 2:
reslider46["params"]["bullets"]["autocenter"] = 0;
var css_bullets_obj = {"right":reslider46["params"]["bullets"]["style"]["position"]["right"],"top":reslider46["params"]["bullets"]["style"]["position"]["top"]};
var css_bullets = "right:"+reslider46["params"]["bullets"]["style"]["position"]["right"]+";top:"+reslider46["params"]["bullets"]["style"]["position"]["top"];
break;
case 3:
reslider46["params"]["bullets"]["autocenter"] = 2;
var css_bullets_obj = {"right":"","top":"","left":reslider46["params"]["bullets"]["style"]["position"]["left"],"bottom":""};
var css_bullets = "left:"+reslider46["params"]["bullets"]["style"]["position"]["left"];
break;
case 4:
reslider46["params"]["bullets"]["autocenter"] = 3;
var css_bullets_obj = {"right":"","top":"","left":"","bottom":""};
var css_bullets = "";
break;
case 5:
reslider46["params"]["bullets"]["autocenter"] = 2;
var css_bullets_obj = {"right":reslider46["params"]["bullets"]["style"]["position"]["right"],"top":"","left":"","bottom":""};
var css_bullets = "right:"+reslider46["params"]["bullets"]["style"]["position"]["right"];
break;
case 6:
reslider46["params"]["bullets"]["autocenter"] = 0;
var css_bullets_obj = {"left":reslider46["params"]["bullets"]["style"]["position"]["left"],"bottom":reslider46["params"]["bullets"]["style"]["position"]["bottom"]};
var css_bullets = "left:"+reslider46["params"]["bullets"]["style"]["position"]["left"]+";bottom:"+reslider46["params"]["bullets"]["style"]["position"]["bottom"];
break;
case 7:
reslider46["params"]["bullets"]["autocenter"] = 1;
var css_bullets_obj = {"left":"","bottom":reslider46["params"]["bullets"]["style"]["position"]["bottom"],"right":""};
var css_bullets = "bottom:"+reslider46["params"]["bullets"]["style"]["position"]["bottom"];
break;
case 8:
reslider46["params"]["bullets"]["autocenter"] = 0;
var css_bullets_obj = {"left":"","bottom":reslider46["params"]["bullets"]["style"]["position"]["bottom"],"right":reslider46["params"]["bullets"]["style"]["position"]["right"]};
var css_bullets = "bottom:"+reslider46["params"]["bullets"]["style"]["position"]["bottom"]+";right:"+reslider46["params"]["bullets"]["style"]["position"]["right"];
break;
}
_reslide.find('#slider46_container','.reslide_navigator')[0].addStyle(css_bullets);
if(reslider46.count) {
var thubmnailCWidth = jQuery('.reslide-thumbnail46').width();
var thumbWidth = thubmnailCWidth/reslider46.count;
if(reslider46['params']['thumbnails']['positioning'])
jQuery('.reslide-thumbnail46 .c,.reslide-thumbnail46 .p,.reslide-thumbnail46 .w').width(thumbWidth-4);
else {
jQuery('.reslide-thumbnail46 .c,.reslide-thumbnail46 .p,.reslide-thumbnail46 .w').width(58);
jQuery('.reslide-thumbnail46 .w').width(56);
jQuery('.reslide-thumbnail46 > div').css('max-width',(jQuery('.reslide-thumbnail46').width()-20)+'px');//width(58);
var walk = jQuery('.reslide-thumbnail46').width()-20;
var walkcount = Math.floor(walk/61)-1;
walk = walkcount* 61-3;
jQuery('.reslide-thumbnail46 > div').css('max-width',walk+'px');
}
}
jQuery('#slider46_container .reslide_slides img').css('display','block');
// init_c_slider//("slider//_container");
})();
function ScaleSlider() {
var parentWidth = $('#slider46_container').parent().width();
jQuery('#slider46_container').css('display','block');
if (parentWidth) {
if(parentWidth div').css('overflow','hidden');
} else {
c_slider46.$ScaleWidth(reslider46['style']['width']);
}
}
else
window.setTimeout(ScaleSlider, 10);
}
$(window).bind("load", ScaleSlider);
$(window).bind("resize", ScaleSlider);
$(window).bind("orientationchange", ScaleSlider);
});
if(+reslider46['params']['behavior'] === 0){
jQuery('#slider46_container img[class*=image_]').each(function () {
jQuery(this).css({
height: '100%',
width: '100%'
});
});
} else if(+reslider46['params']['behavior'] === 1){
jQuery('#slider46_container img[class*=image_]').each(function () {
var naturalWidth = jQuery(this).prop('naturalWidth'),
naturalHeight = jQuery(this).prop('naturalHeight'),
contWidth = '1000',
contHeight = '500',
naturalRatio = naturalWidth / naturalHeight,
defaultRatio = contWidth / contHeight;
if(naturalRatio > defaultRatio){
jQuery(this).css({
width: '100%',
top: '50%',
transform: 'translateY(-50%)',
position: 'absolute'
});
} else {
jQuery(this).css({
height: '100%',
left: '50%',
transform: 'translateX(-50%)',
position: 'relative'
});
}
});
} else if(+reslider46['params']['behavior'] === 2){
jQuery('#slider46_container img[class*=image_]').each(function () {
var naturalWidth = jQuery(this).prop('naturalWidth'),
naturalHeight = jQuery(this).prop('naturalHeight'),
contWidth = '1000',
contHeight = '500',
naturalRatio = naturalWidth / naturalHeight,
defaultRatio = contWidth / contHeight;
jQuery(this).css({
position: "absolute",
maxWidth: "none"
});
if (naturalRatio