Mode

04-mode-2000p

Mode à Nice / Fashion in Nice

var pausehover= »on »;
var huge_video_playing={};
var autoplayMatch={};
var scrolling;
if(pausehover == ‘on’){
scrolling = false;
}else{
scrolling = true;
}

function IsPlay() {
var playonevideo = 0;
if(typeof HUGEIT_YT_IFRAMES != ‘undefined’)
for( var slide in HUGEIT_YT_IFRAMES) {
if(HUGEIT_YT_IFRAMES[slide][‘state’]) {
playonevideo++;
}
};
return playonevideo;
}

jQuery(window).load(function(){
if(!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))
setTimeout(function(){
jQuery(‘.huge_it_slide_container_14’).mouseleave();
}, 10);
});

var YTdeferred = jQuery.Deferred();
window.onYouTubeIframeAPIReady = function() {
//resolve when youtube callback is called passing YT as a parameter
YTdeferred.resolve(window.YT);

};
YTdeferred.done(function(YT) {
jQuery(‘.huge-it-iframe’).each(function(){

var el_id = jQuery(this).attr(‘data-element-id’);
var quality = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘quality’];

window[‘onPlayerStateChange’+el_id] = function(event) {

if (event.data == YT.PlayerState.PLAYING) {
HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘state’]=’played’;
event.target.setPlaybackQuality(quality);
}
else
HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘state’]= »;
}
});
jQuery(‘.huge-it-iframe’).each(function(){

var id = jQuery(this).attr(‘id’);
var el_id = jQuery(this).attr(‘data-element-id’);
var controls = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘controls’];
var showinfo = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘showinfo’];
var url = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘videoId’];
controls||(controls = 0);
showinfo||(showinfo = 0);
window[‘onPlayerReady’+el_id] = function(event) {
window[‘player_’+el_id][‘setVolume’](volume);
}
var volume = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘volume’];
window[‘player_’+el_id] = new YT.Player(id, {
height: ‘532’,
width: ‘800’,
videoId: url,
playerVars: {
‘controls’: controls,// 0,
‘showinfo’: showinfo,//0,
‘rel’:0
},
events: {
//’onError’: window[‘onPlayerError’+el_id],
‘onReady’: window[‘onPlayerReady’+el_id],
‘onStateChange’: window[‘onPlayerStateChange’+el_id],
‘loop’:1
}
});

});

/*jQuery(‘.huge-it-iframe’).each(function(){

var id = jQuery(this).attr(‘id’);
var el_id = jQuery(this).attr(‘data-element-id’);
var controls = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘controls’];
var showinfo = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘showinfo’];
var url = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘videoId’];
controls||(controls = 0);
showinfo||(showinfo = 0);

window[‘player_’+el_id] = new YT.Player(id, {
height: ‘532’,
width: ‘800’,
videoId: url,
playerVars: {
‘controls’: controls,// 0,
‘showinfo’: showinfo,//0,
‘rel’:0
},
events: {
‘onError’: window[‘onPlayerError’+el_id],
‘onReady’: window[‘onPlayerReady’+el_id],
‘onStateChange’: window[‘onPlayerStateChange’+el_id],
‘loop’:1
}
});
})*/
});

jQuery(function(){

});
function stopYoutubeVideo(currentVideo,nextVideo) {

if(currentVideo) {
(HUGEIT_YT_IFRAMES[‘iframe’+currentVideo][‘state’])?currentVideo&&(window[‘player_’+currentVideo][‘pauseVideo’]()):currentVideo&&(window[‘player_’+currentVideo][‘stopVideo’]());
}
nextVideo&&HUGEIT_YT_IFRAMES[‘iframe’+nextVideo][‘autoplay’]&&(window[‘player_’+nextVideo][‘playVideo’]());
}

function stopVimeoVideo(currentVideo,nextVideo){
jQuery(currentVideo).vimeo(‘pause’);
jQuery(nextVideo).vimeo(‘play’);
}
/*** initialize And youtube autopay ***/

jQuery( window ).load(function() {

(function VimeoOptionsReady(){ //calling funtion once
jQuery(‘.huge-it-iframe-vimeo’).each(function(){
var el_id = jQuery(this).attr(‘data-element-id’);
jQuery(this).vimeo(‘setColor’,HUGEIT_VIMEOS[‘iframe’+el_id][‘color’]);
jQuery(this).vimeo(‘setVolume’,HUGEIT_VIMEOS[‘iframe’+el_id][‘volume’]);
})
}());

if(‘off’ == ‘on’) {

if(jQuery(‘.huge-it-iframe-vimeo.autoplay’).length) {

(function AutoplayVimeo() {
var setplayVideo = setInterval(hugeitframe, 100);
function hugeitframe() {
var vimeo1 = jQuery(‘.huge_it_slider_14 li’).first().find(‘.autoplay’)
if(vimeo1.length) {
vimeo1.vimeo(‘play’);
clearInterval(setplayVideo);
}
};
}());
};

if(jQuery(‘.huge-it-iframe.autoplay’).length) {

(function AutoplayYoutube() {
var setplayVideo = setInterval(hugeitframe, 100);
function hugeitframe() {
jQuery(‘.huge-it-iframe.autoplay’).each(function(){

var el_id = jQuery(this).attr(‘data-element-id’);

if(window[‘player_’+el_id]) {
window[‘player_’+el_id][‘playVideo’]();
clearInterval(setplayVideo);
}
});
}
}());
};

}
});

/*** initialize***/

<!– –>

jQuery(document).ready(function($) {

$(‘.thumb_wrapper’).on(‘click’, function(ev) {
var hugeid=$(this).data(‘rowid’);
var myid=hugeid;
myid=parseInt(myid);
eval(‘player_’+myid+’.playVideo()’)
ev.preventDefault();

});
});

if(typeof sliderID_array == »undefined »){
var sliderID_array=[];
}

var data_14 = [];
var event_stack_14 = [];
/*if(‘off’ == ‘on’)
huge_video_playing[‘video_is_playing_’+14]=true;*/
data_14[« 0 »]=[];data_14[« 0 »][« id »]= »0″;data_14[« 0 »][« image_url »]= »http://picturesandlife.com/wp-content/uploads/2016/09/01-Mode-2000p.jpg »;data_14[« 0 »][« description »]= » »;data_14[« 0 »][« alt »]= » »;data_14[« 1 »]=[];data_14[« 1 »][« id »]= »1″;data_14[« 1 »][« image_url »]= »http://picturesandlife.com/wp-content/uploads/2016/10/02-Mode-2000p.jpg »;data_14[« 1 »][« description »]= » »;data_14[« 1 »][« alt »]= » »;data_14[« 2 »]=[];data_14[« 2 »][« id »]= »2″;data_14[« 2 »][« image_url »]= »http://picturesandlife.com/wp-content/uploads/2016/10/06-Mode-2000p.jpg »;data_14[« 2 »][« description »]= » »;data_14[« 2 »][« alt »]= » »;

var huge_it_trans_in_progress_14 = false;
var huge_it_transition_duration_14 = 1000;
var huge_interval ={};
var id_array_index=sliderID_array.length

var ifhasthumb = »nonav »;
sliderID_array[id_array_index] = // Stop autoplay.
window.clearInterval(huge_interval[‘huge_it_playInterval_’+14]);

var huge_it_current_key_14 =  »;
function huge_it_move_dots_14() {
var image_left = jQuery(« .huge_it_slideshow_dots_active_14 »).position().left;
var image_right = jQuery(« .huge_it_slideshow_dots_active_14 »).position().left + jQuery(« .huge_it_slideshow_dots_active_14″).outerWidth(true);

}
function huge_it_testBrowser_cssTransitions_14() {
return huge_it_testDom_14(‘Transition’);
}
function huge_it_testBrowser_cssTransforms3d_14() {
return huge_it_testDom_14(‘Perspective’);
}
function huge_it_testDom_14(prop) {
// Browser vendor CSS prefixes.
var browserVendors = [ », ‘-webkit-‘, ‘-moz-‘, ‘-ms-‘, ‘-o-‘, ‘-khtml-‘];
// Browser vendor DOM prefixes.
var domPrefixes = [ », ‘Webkit’, ‘Moz’, ‘ms’, ‘O’, ‘Khtml’];
var i = domPrefixes.length;
while (i–) {
if (typeof document.body.style[domPrefixes[i] + prop] !== ‘undefined’) {
return true;
}
}
return false;
}
function huge_it_cube_14(tz, ntx, nty, nrx, nry, wrx, wry, current_image_class, next_image_class, direction) {

/* If browser does not support 3d transforms/CSS transitions.*/
if (!huge_it_testBrowser_cssTransitions_14()) {
jQuery(« .huge_it_slideshow_dots_14 »).removeClass(« huge_it_slideshow_dots_active_14 »).addClass(« huge_it_slideshow_dots_deactive_14 »);
jQuery(« #huge_it_dots_ » + huge_it_current_key_14 + « _14 »).removeClass(« huge_it_slideshow_dots_deactive_14 »).addClass(« huge_it_slideshow_dots_active_14 »);
return huge_it_fallback_14(current_image_class, next_image_class, direction);
}
if (!huge_it_testBrowser_cssTransforms3d_14()) {
return huge_it_fallback3d_14(current_image_class, next_image_class, direction);
}
//alert(current_image_class+’ ‘+next_image_class);
jQuery(current_image_class).css({‘z-index’: ‘none’});
jQuery(next_image_class).css({‘z-index’ : 2});
huge_it_trans_in_progress_14 = true;
/* Set active thumbnail.*/
jQuery(« .huge_it_slideshow_dots_14 »).removeClass(« huge_it_slideshow_dots_active_14 »).addClass(« huge_it_slideshow_dots_deactive_14 »);
jQuery(« #huge_it_dots_ » + huge_it_current_key_14 + « _14 »).removeClass(« huge_it_slideshow_dots_deactive_14 »).addClass(« huge_it_slideshow_dots_active_14 »);
jQuery(« .huge_it_slide_bg_14 »).css(‘perspective’, 1000);
jQuery(current_image_class).css({
transform : ‘translateZ(‘ + tz + ‘px)’,
backfaceVisibility : ‘hidden’
});

jQuery(« .huge_it_slideshow_image_wrap_14,.huge_it_slide_bg_14,.huge_it_slideshow_image_item_14,.huge_it_slideshow_image_second_item_14 « ).css(‘overflow’, ‘visible’);

jQuery(next_image_class).css({
opacity : 1,
filter: ‘Alpha(opacity=100)’,
backfaceVisibility : ‘hidden’,
transform : ‘translateY(‘ + nty + ‘px) translateX(‘ + ntx + ‘px) rotateY(‘+ nry +’deg) rotateX(‘+ nrx +’deg)’
});
jQuery(« .huge_it_slider_14 »).css({
transform: ‘translateZ(-‘ + tz + ‘px)’,
transformStyle: ‘preserve-3d’
});
/* Execution steps.*/
setTimeout(function () {
jQuery(« .huge_it_slider_14 »).css({
transition: ‘all ‘ + huge_it_transition_duration_14 + ‘ms ease-in-out’,
transform: ‘translateZ(-‘ + tz + ‘px) rotateX(‘+ wrx +’deg) rotateY(‘+ wry +’deg)’
});
}, 20);
/* After transition.*/
jQuery(« .huge_it_slider_14 »).one(‘webkitTransitionEnd transitionend otransitionend oTransitionEnd mstransitionend’, jQuery.proxy(huge_it_after_trans));
function huge_it_after_trans() {
/*if (huge_it_from_focus_14) {
huge_it_from_focus_14 = false;
return;
}*/
jQuery(« .huge_it_slide_bg_14,.huge_it_slideshow_image_item_14,.huge_it_slideshow_image_second_item_14 « ).css(‘overflow’, ‘hidden’);
jQuery(« .huge_it_slide_bg_14 »).removeAttr(‘style’);
jQuery(current_image_class).removeAttr(‘style’);
jQuery(next_image_class).removeAttr(‘style’);
jQuery(« .huge_it_slider_14 »).removeAttr(‘style’);
// alert(current_image_class+’ ‘+next_image_class);
jQuery(current_image_class).css({‘opacity’ : 0, filter: ‘Alpha(opacity=0)’, ‘z-index’: 1});
jQuery(next_image_class).css({‘opacity’ : 1, filter: ‘Alpha(opacity=100)’, ‘z-index’ : 2});
// huge_it_change_watermark_container_14();
huge_it_trans_in_progress_14 = false;
if (typeof event_stack_14 !== ‘undefined’ && event_stack_14.length > 0) {
key = event_stack_14[0].split(« -« );
event_stack_14.shift();
huge_it_change_image_14(key[0], key[1], data_14, true,false);
}
}
}
function huge_it_cubeH_14(current_image_class, next_image_class, direction) {
/* Set to half of image width.*/
var dimension = jQuery(current_image_class).width() / 2;
if (direction == ‘right’) {
huge_it_cube_14(dimension, dimension, 0, 0, 90, 0, -90, current_image_class, next_image_class, direction);
}
else if (direction == ‘left’) {
huge_it_cube_14(dimension, -dimension, 0, 0, -90, 0, 90, current_image_class, next_image_class, direction);
}
}
function huge_it_cubeV_14(current_image_class, next_image_class, direction) {
/* Set to half of image height.*/
var dimension = jQuery(current_image_class).height() / 2;
/* If next slide.*/
if (direction == ‘right’) {
huge_it_cube_14(dimension, 0, -dimension, 90, 0, -90, 0, current_image_class, next_image_class, direction);
}
else if (direction == ‘left’) {
huge_it_cube_14(dimension, 0, dimension, -90, 0, 90, 0, current_image_class, next_image_class, direction);
}
}
/* For browsers that does not support transitions.*/
function huge_it_fallback_14(current_image_class, next_image_class, direction) {
huge_it_fade_14(current_image_class, next_image_class, direction);
}
/* For browsers that support transitions, but not 3d transforms (only used if primary transition makes use of 3d-transforms).*/
function huge_it_fallback3d_14(current_image_class, next_image_class, direction) {
huge_it_sliceV_14(current_image_class, next_image_class, direction);
}
function huge_it_none_14(current_image_class, next_image_class, direction) {
jQuery(current_image_class).css({‘opacity’ : 0, ‘z-index’: 1});
jQuery(next_image_class).css({‘opacity’ : 1, ‘z-index’ : 2});

/* Set active thumbnail.*/
jQuery(« .huge_it_slideshow_dots_14 »).removeClass(« huge_it_slideshow_dots_active_14 »).addClass(« huge_it_slideshow_dots_deactive_14 »);
jQuery(« #huge_it_dots_ » + huge_it_current_key_14 + « _14 »).removeClass(« huge_it_slideshow_dots_deactive_14 »).addClass(« huge_it_slideshow_dots_active_14 »);
}
function huge_it_fade_14(current_image_class, next_image_class, direction) {
if (huge_it_testBrowser_cssTransitions_14()) {

jQuery(next_image_class).css(‘transition’, ‘opacity ‘ + huge_it_transition_duration_14 + ‘ms linear’);
jQuery(current_image_class).css(‘transition’, ‘opacity ‘ + huge_it_transition_duration_14 + ‘ms linear’);
jQuery(current_image_class).css({‘opacity’ : 0, ‘z-index’: 1});
jQuery(next_image_class).css({‘opacity’ : 1, ‘z-index’ : 2});
}
else {

jQuery(current_image_class).animate({‘opacity’ : 0, ‘z-index’ : 1}, huge_it_transition_duration_14);
jQuery(next_image_class).animate({
‘opacity’ : 1,
‘z-index’: 2
}, {
duration: huge_it_transition_duration_14,
complete: function () {return false;}
});
// For IE.
jQuery(current_image_class).fadeTo(huge_it_transition_duration_14, 0);
jQuery(next_image_class).fadeTo(huge_it_transition_duration_14, 1);
}

jQuery(« .huge_it_slideshow_dots_14 »).removeClass(« huge_it_slideshow_dots_active_14 »).addClass(« huge_it_slideshow_dots_deactive_14 »);
jQuery(« #huge_it_dots_ » + huge_it_current_key_14 + « _14 »).removeClass(« huge_it_slideshow_dots_deactive_14 »).addClass(« huge_it_slideshow_dots_active_14 »);
}
function huge_it_grid_14(cols, rows, ro, tx, ty, sc, op, current_image_class, next_image_class, direction) {
/* If browser does not support CSS transitions.*/
if (!huge_it_testBrowser_cssTransitions_14()) {
jQuery(« .huge_it_slideshow_dots_14 »).removeClass(« huge_it_slideshow_dots_active_14 »).addClass(« huge_it_slideshow_dots_deactive_14 »);
jQuery(« #huge_it_dots_ » + huge_it_current_key_14 + « _14 »).removeClass(« huge_it_slideshow_dots_deactive_14 »).addClass(« huge_it_slideshow_dots_active_14 »);
return huge_it_fallback_14(current_image_class, next_image_class, direction);

}
huge_it_trans_in_progress_14 = true;
/* Set active thumbnail.*/
jQuery(« .huge_it_slideshow_dots_14 »).removeClass(« huge_it_slideshow_dots_active_14 »).addClass(« huge_it_slideshow_dots_deactive_14 »);
jQuery(« #huge_it_dots_ » + huge_it_current_key_14 + « _14 »).removeClass(« huge_it_slideshow_dots_deactive_14 »).addClass(« huge_it_slideshow_dots_active_14 »);
/* The time (in ms) added to/subtracted from the delay total for each new gridlet.*/
var count = (huge_it_transition_duration_14) / (cols + rows);
/* Gridlet creator (divisions of the image grid, positioned with background-images to replicate the look of an entire slide image when assembled)*/
function huge_it_gridlet(width, height, top, img_top, left, img_left, src, imgWidth, imgHeight, c, r) {
var delay = (c + r) * count;
/* Return a gridlet elem with styles for specific transition.*/
return jQuery(‘

‘).css({
width : width,
height : height,
top : top,
left : left,
backgroundImage : ‘url(« ‘ + src + ‘ »)’,
backgroundColor: jQuery(« .huge_it_slideshow_image_wrap_14 »).css(« background-color »),
/*backgroundColor: rgba(0, 0, 0, 0),*/
backgroundRepeat: ‘no-repeat’,
backgroundPosition : img_left + ‘px ‘ + img_top + ‘px’,
backgroundSize : imgWidth + ‘px ‘ + imgHeight + ‘px’,
transition : ‘all ‘ + huge_it_transition_duration_14 + ‘ms ease-in-out ‘ + delay + ‘ms’,
transform : ‘none’
});
}
/* Get the current slide’s image.*/
var cur_img = jQuery(current_image_class).find(‘img’);
/* Create a grid to hold the gridlets.*/
var grid = jQuery(‘

‘).addClass(‘huge_it_grid_14’);
/* Prepend the grid to the next slide (i.e. so it’s above the slide image).*/
jQuery(current_image_class).prepend(grid);
/* vars to calculate positioning/size of gridlets*/
var cont = jQuery(« .huge_it_slide_bg_14″);
var imgWidth = cur_img.width();
var imgHeight = cur_img.height();
var contWidth = cont.width(),
contHeight = cont.height(),
imgSrc = cur_img.attr(‘src’),/*.replace(‘/thumb’,  »),*/
colWidth = Math.floor(contWidth / cols),
rowHeight = Math.floor(contHeight / rows),
colRemainder = contWidth – (cols * colWidth),
colAdd = Math.ceil(colRemainder / cols),
rowRemainder = contHeight – (rows * rowHeight),
rowAdd = Math.ceil(rowRemainder / rows),
leftDist = 0,
img_leftDist = (jQuery(« .huge_it_slide_bg_14 »).width() – cur_img.width()) / 2;
/* tx/ty args can be passed as ‘auto’/’min-auto’ (meaning use slide width/height or negative slide width/height).*/
tx = tx === ‘auto’ ? contWidth : tx;
tx = tx === ‘min-auto’ ? – contWidth : tx;
ty = ty === ‘auto’ ? contHeight : ty;
ty = ty === ‘min-auto’ ? – contHeight : ty;
/* Loop through cols*/
for (var i = 0; i 0) {
var add = colRemainder >= colAdd ? colAdd : colRemainder;
newColWidth += add;
colRemainder -= add;
}
/* Nested loop to create row gridlets for each col.*/
for (var j = 0; j 0) {
add = newRowRemainder >= rowAdd ? rowAdd : rowRemainder;
newRowHeight += add;
newRowRemainder -= add;
}
/* Create & append gridlet to grid.*/
grid.append(huge_it_gridlet(newColWidth, newRowHeight, topDist, img_topDst, leftDist, img_leftDist, imgSrc, imgWidth, imgHeight, i, j));
topDist += newRowHeight;
img_topDst -= newRowHeight;
}
img_leftDist -= newColWidth;
leftDist += newColWidth;
}
/* Set event listener on last gridlet to finish transitioning.*/
var last_gridlet = grid.children().last();
/* Show grid & hide the image it replaces.*/
grid.show();
cur_img.css(‘opacity’, 0);
/* Add identifying classes to corner gridlets (useful if applying border radius).*/
grid.children().first().addClass(‘rs-top-left’);
grid.children().last().addClass(‘rs-bottom-right’);
grid.children().eq(rows – 1).addClass(‘rs-bottom-left’);
grid.children().eq(- rows).addClass(‘rs-top-right’);
/* Execution steps.*/
setTimeout(function () {
grid.children().css({
opacity: op,
transform: ‘rotate(‘+ ro +’deg) translateX(‘+ tx +’px) translateY(‘+ ty +’px) scale(‘+ sc +’)’
});
}, 1);
jQuery(next_image_class).css(‘opacity’, 1);
/* After transition.*/
jQuery(last_gridlet).one(‘webkitTransitionEnd transitionend otransitionend oTransitionEnd mstransitionend’, jQuery.proxy(huge_it_after_trans));
function huge_it_after_trans() {
jQuery(current_image_class).css({‘opacity’ : 0, ‘z-index’: 1});
jQuery(next_image_class).css({‘opacity’ : 1, ‘z-index’ : 2});
cur_img.css(‘opacity’, 1);
grid.remove();
huge_it_trans_in_progress_14 = false;
if (typeof event_stack_14 !== ‘undefined’ && event_stack_14.length > 0) {
key = event_stack_14[0].split(« -« );
event_stack_14.shift();
huge_it_change_image_14(key[0], key[1], data_14, true,false);
}
}
}
function huge_it_sliceH_14(current_image_class, next_image_class, direction) {
if (direction == ‘right’) {
var translateX = ‘min-auto’;
}
else if (direction == ‘left’) {
var translateX = ‘auto’;
}
huge_it_grid_14(1, 8, 0, translateX, 0, 1, 0, current_image_class, next_image_class, direction);
}
function huge_it_sliceV_14(current_image_class, next_image_class, direction) {
if (direction == ‘right’) {
var translateY = ‘min-auto’;
}
else if (direction == ‘left’) {
var translateY = ‘auto’;
}
huge_it_grid_14(10, 1, 0, 0, translateY, 1, 0, current_image_class, next_image_class, direction);
}
function huge_it_slideV_14(current_image_class, next_image_class, direction) {
if (direction == ‘right’) {
var translateY = ‘auto’;
}
else if (direction == ‘left’) {
var translateY = ‘min-auto’;
}
huge_it_grid_14(1, 1, 0, 0, translateY, 1, 1, current_image_class, next_image_class, direction);
}
function huge_it_slideH_14(current_image_class, next_image_class, direction) {
if (direction == ‘right’) {
var translateX = ‘min-auto’;
}
else if (direction == ‘left’) {
var translateX = ‘auto’;
}
huge_it_grid_14(1, 1, 0, translateX, 0, 1, 1, current_image_class, next_image_class, direction);
}
function huge_it_scaleOut_14(current_image_class, next_image_class, direction) {
huge_it_grid_14(1, 1, 0, 0, 0, 1.5, 0, current_image_class, next_image_class, direction);
}
function huge_it_scaleIn_14(current_image_class, next_image_class, direction) {
huge_it_grid_14(1, 1, 0, 0, 0, 0.5, 0, current_image_class, next_image_class, direction);
}
function huge_it_blockScale_14(current_image_class, next_image_class, direction) {
huge_it_grid_14(8, 6, 0, 0, 0, .6, 0, current_image_class, next_image_class, direction);
}
function huge_it_kaleidoscope_14(current_image_class, next_image_class, direction) {
huge_it_grid_14(10, 8, 0, 0, 0, 1, 0, current_image_class, next_image_class, direction);
}
function huge_it_fan_14(current_image_class, next_image_class, direction) {
if (direction == ‘right’) {
var rotate = 45;
var translateX = 100;
}
else if (direction == ‘left’) {
var rotate = -45;
var translateX = -100;
}
huge_it_grid_14(1, 10, rotate, translateX, 0, 1, 0, current_image_class, next_image_class, direction);
}
function huge_it_blindV_14(current_image_class, next_image_class, direction) {
huge_it_grid_14(1, 8, 0, 0, 0, .7, 0, current_image_class, next_image_class);
}
function huge_it_blindH_14(current_image_class, next_image_class, direction) {
huge_it_grid_14(10, 1, 0, 0, 0, .7, 0, current_image_class, next_image_class);
}
function huge_it_random_14(current_image_class, next_image_class, direction) {
var anims = [‘sliceH’, ‘sliceV’, ‘slideH’, ‘slideV’, ‘scaleOut’, ‘scaleIn’, ‘blockScale’, ‘kaleidoscope’, ‘fan’, ‘blindH’, ‘blindV’];
/* Pick a random transition from the anims array.*/
this[« huge_it_ » + anims[Math.floor(Math.random() * anims.length)] + « _14 »](current_image_class, next_image_class, direction);
}

function iterator_14() {
var iterator = 1;

return iterator;
}

function huge_it_change_image_14(current_key, key, data_14, from_effect,clicked) {

if (data_14[key]) {

/* if(huge_video_playing[‘video_is_playing_’+14] && !clicked){
return false;
}*/

if (!from_effect) {
// Change image key.
jQuery(« #huge_it_current_image_key_14 »).val(key);
// if (current_key == ‘-2’) { /* Dots.*/
current_key = jQuery(« .huge_it_slideshow_dots_active_14 »).attr(« data-image_key »);
// }
}

if (huge_it_trans_in_progress_14) {
//errorlogjQuery(« .huge_it_slideshow_image_wrap_14″).after( » –IN TRANSACTION–
« );
event_stack_14.push(current_key + ‘-‘ + key);
return;
}

var direction = ‘right’;
if (huge_it_current_key_14 > key) {
var direction = ‘left’;
}
else if (huge_it_current_key_14 == key) {
return false;
}

// Set active thumbnail position.

huge_it_current_key_14 = key;
//Change image id, title, description.
jQuery(« #huge_it_slideshow_image_14 »).attr(‘data-image_id’, data_14[key][« id »]);

jQuery(« .huge_it_slideshow_title_text_14 »).html(data_14[key][« alt »]);
jQuery(« .huge_it_slideshow_description_text_14 »).html(data_14[key][« description »]);

var current_image_class = « #image_id_14_ » + data_14[current_key][« id »];
var next_image_class = « #image_id_14_ » + data_14[key][« id »];

if(jQuery(current_image_class).find(‘.huge_it_video_frame_14′).length>0) {
var streffect=’fade’;
if(streffect== »cubeV » || streffect== »cubeH » || streffect== »none » || streffect== »fade »){
huge_it_fade_14(current_image_class, next_image_class, direction);
}else{
huge_it_fade_14(current_image_class, next_image_class, direction);
}
}else{
huge_it_fade_14(current_image_class, next_image_class, direction);
}

jQuery(‘.huge_it_slideshow_title_text_14’).removeClass(‘none’);
if(jQuery(‘.huge_it_slideshow_title_text_14’).html()== » »){jQuery(‘.huge_it_slideshow_title_text_14’).addClass(‘none’);}

jQuery(‘.huge_it_slideshow_description_text_14’).removeClass(‘none’);
if(jQuery(‘.huge_it_slideshow_description_text_14’).html()== » »){jQuery(‘.huge_it_slideshow_description_text_14’).addClass(‘none’);}

jQuery(current_image_class).find(‘.huge_it_slideshow_title_text_14’).addClass(‘none’);
jQuery(current_image_class).find(‘.huge_it_slideshow_description_text_14’).addClass(‘none’);

//errorlogjQuery(« .huge_it_slideshow_image_wrap_14 »).after(« –cur-key= »+current_key+ » –cur-img-class= »+current_image_class+ » nxt-img-class= »+next_image_class+ »–« );
huge_it_move_dots_14();
/*** for vimeo and youtube stop pause play etc… ***/
var nextVideo = jQuery(‘#video_id_14_’+key).attr(‘data-element-id’);
var currentVideo = jQuery(‘#video_id_14_’+current_key).attr(‘data-element-id’);/*** add ***/
(currentVideo||nextVideo)&&stopYoutubeVideo(currentVideo,nextVideo);
if((jQuery(‘#player_14_’+current_key)).hasClass(‘huge-it-iframe-vimeo’)) {
jQuery(‘#player_14_’+current_key).vimeo(‘pause’);

}
if((jQuery(‘#player_14_’+key)).hasClass(‘huge-it-iframe-vimeo’) && (‘off’ == ‘on’)) {
jQuery(‘#player_14_’+key).vimeo(‘play’);
}
/*** ***/
window.clearInterval(huge_interval[‘huge_it_playInterval_’+14]);
play_14();
}

}
var staticthumbWidth;
jQuery(window).load(function(){
staticthumbWidth=jQuery(‘#huge_it_thumb_slider>li’).width();

})
function huge_it_popup_resize_14() {

var staticsliderwidth=800;
var sliderwidth=800;
var bodyWidth=jQuery(window).width();
var parentWidth = jQuery(« .huge_it_slideshow_image_wrap_14 »).parent().width();

if(sliderwidth>parentWidth){sliderwidth=parentWidth;}
if(sliderwidth>bodyWidth){sliderwidth=bodyWidth;}
var str=532/(staticsliderwidth-2*0); // alert(str);
var str2 = 100/800;
var sliderDynamicImageHeight = sliderwidth*str-2*0;
var sliderDynamicThumbHeight = 0;

jQuery(‘.huge_it_slideshow_image_wrap_14’).css({‘max-height’:sliderDynamicImageHeight+sliderDynamicThumbHeight});
jQuery(‘.huge_it_slideshow_image_wrap1_14’).css({‘max-height’:sliderDynamicImageHeight});
jQuery(‘.huge_it_slideshow_thumbs_14 li’).css({‘max-height’:sliderDynamicThumbHeight-0});

jQuery(« #huge_it_loading_image_14 »).css({display: « none »});
jQuery(« .huge_it_slideshow_image_wrap1_14 »).css({opacity: 1});
jQuery(« .huge_it_slideshow_image_wrap_14 »).removeClass(« nocolor »);

if(« crop »== »crop »){
jQuery(« .huge_it_slider_ul li img »).each(function(){
if(jQuery(this).prop(‘naturalWidth’)>jQuery(this).prop(‘naturalHeight’))
jQuery(this).css({‘width’:’100%’,’height’:’auto’/*,’top’:’50%’,’left’:’50%’,’transform’:’translate( -50%, -50% )’*/});
else{
jQuery(this).css({‘height’:’100%’,’width’:’auto’/*,’top’:’50%’,’left’:’50%’,’transform’:’translate( -50%, -50% )’*/});
}
});
}
jQuery(« .huge_it_slideshow_image_wrap_14″).css({opacity:1});
}

jQuery(window).load(function () {
jQuery(window).resize(function() {
huge_it_popup_resize_14();
});

jQuery(‘#huge_it_slideshow_left_14’).on(‘click’,function(){
huge_it_change_image_14(parseInt(jQuery(‘#huge_it_current_image_key_14’).val()), (parseInt(jQuery(‘#huge_it_current_image_key_14’).val()) – iterator_14()) >= 0 ? (parseInt(jQuery(‘#huge_it_current_image_key_14’).val()) – iterator_14()) % data_14.length : data_14.length – 1, data_14,false,true);
return false;
});

jQuery(‘#huge_it_slideshow_right_14’).on(‘click’,function(){
huge_it_change_image_14(parseInt(jQuery(‘#huge_it_current_image_key_14’).val()), (parseInt(jQuery(‘#huge_it_current_image_key_14’).val()) + iterator_14()) % data_14.length, data_14,false,true);
return false;
});

huge_it_popup_resize_14();
/* Disable right click.*/
jQuery(‘div[id^= »huge_it_container »]’).bind(« contextmenu », function () {
return false;
});

/*HOVER SLIDESHOW*/
jQuery(« #huge_it_slideshow_image_container_14, .huge_it_slideshow_image_container_14, .huge_it_slideshow_dots_container_14,#huge_it_slideshow_right_14,#huge_it_slideshow_left_14 »).hover(function(){
//errorlogjQuery(« .huge_it_slideshow_image_wrap_14″).after( » — hover —
« );
jQuery(« #huge_it_slideshow_right_14 »).css({‘display’:’inline’});
jQuery(« #huge_it_slideshow_left_14 »).css({‘display’:’inline’});
},function(){
jQuery(« #huge_it_slideshow_right_14 »).css({‘display’:’none’});
jQuery(« #huge_it_slideshow_left_14″).css({‘display’:’none’});
});

if(pausehover== »on » && !/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){
jQuery(« #huge_it_slideshow_image_container_14, .huge_it_slideshow_image_container_14 »).hover(function(){
window.clearInterval(huge_interval[‘huge_it_playInterval_’+14]);
scrolling = false;
},function(){
window.clearInterval(huge_interval[‘huge_it_playInterval_’+14]);
scrolling = true;
play_14();
});
}
play_14();
});
//var huge_play={};

function play_14(){ //alert(5000);
if(scrolling ){
huge_interval[‘huge_it_playInterval_’+14] = setInterval(function () {
//errorlogjQuery(« .huge_it_slideshow_image_wrap_14″).after( » — time left —- « );
var iterator = 1;
if(!IsPlay()) { huge_it_change_image_14(parseInt(jQuery(‘#huge_it_current_image_key_14’).val()), (parseInt(jQuery(‘#huge_it_current_image_key_14’).val()) + iterator) % data_14.length, data_14,false,false);}
}, ‘5000’);
}
if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){
huge_interval[‘huge_it_playInterval_’+14] = setInterval(function () {
var iterator = 1;
if(!IsPlay()) { huge_it_change_image_14(parseInt(jQuery(‘#huge_it_current_image_key_14’).val()), (parseInt(jQuery(‘#huge_it_current_image_key_14’).val()) + iterator) % data_14.length, data_14,false,false);}
}, ‘5000’);
}
}
jQuery(window).focus(function() {
/*event_stack_14 = [];*/
var i_14 = 0;
jQuery(« .huge_it_slider_14 »).children(« div »).each(function () {
if (jQuery(this).css(‘opacity’) == 1) {
jQuery(« #huge_it_current_image_key_14 »).val(i_14);
}
i_14++;
});
});
jQuery(window).blur(function() {
//event_stack_14 = [];
window.clearInterval(huge_interval[‘huge_it_playInterval_’+14]);
});
jQuery(window).focus(function() {
//event_stack_14 = [];
play_14()
});

/******/
jQuery(‘.huge-it-iframe-vimeo.autoplay’).each(function(){

})
/******/

jQuery(document).ready(function($) {

setInterval(function() {
jQuery(‘.huge_it_slider_14’).find(« li »).each(function (){

if($(this).css(« opacity ») == « 1 »){

var img_id=$(this).attr(‘id’);
jQuery(‘.huge_it_slideshow_thumbs_14’).each(function (){
//if ($(this).hasClass(‘bx-clone’)){$(this).removeAttr(‘id’)}
var allListElements = $( ‘li[id=’+img_id+’]’ );

$(this).find(allListElements).not(« .bx-clone »).each(function() {

jQuery(‘.huge_it_slideshow_thumbs_14 li’).find(« .trans_back »).css(‘background’,’rgba(255,255,255,0.3)’);
$(this).find(‘.trans_back’).css(‘background’,’none’);

})

})

}

})
},100)

})

var pausehover= »on »;
var huge_video_playing={};
var autoplayMatch={};
var scrolling;
if(pausehover == ‘on’){
scrolling = false;
}else{
scrolling = true;
}

function IsPlay() {
var playonevideo = 0;
if(typeof HUGEIT_YT_IFRAMES != ‘undefined’)
for( var slide in HUGEIT_YT_IFRAMES) {
if(HUGEIT_YT_IFRAMES[slide][‘state’]) {
playonevideo++;
}
};
return playonevideo;
}

jQuery(window).load(function(){
if(!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))
setTimeout(function(){
jQuery(‘.huge_it_slide_container_24’).mouseleave();
}, 10);
});

var YTdeferred = jQuery.Deferred();
window.onYouTubeIframeAPIReady = function() {
//resolve when youtube callback is called passing YT as a parameter
YTdeferred.resolve(window.YT);

};
YTdeferred.done(function(YT) {
jQuery(‘.huge-it-iframe’).each(function(){

var el_id = jQuery(this).attr(‘data-element-id’);
var quality = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘quality’];

window[‘onPlayerStateChange’+el_id] = function(event) {

if (event.data == YT.PlayerState.PLAYING) {
HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘state’]=’played’;
event.target.setPlaybackQuality(quality);
}
else
HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘state’]= »;
}
});
jQuery(‘.huge-it-iframe’).each(function(){

var id = jQuery(this).attr(‘id’);
var el_id = jQuery(this).attr(‘data-element-id’);
var controls = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘controls’];
var showinfo = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘showinfo’];
var url = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘videoId’];
controls||(controls = 0);
showinfo||(showinfo = 0);
window[‘onPlayerReady’+el_id] = function(event) {
window[‘player_’+el_id][‘setVolume’](volume);
}
var volume = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘volume’];
window[‘player_’+el_id] = new YT.Player(id, {
height: ‘532’,
width: ‘800’,
videoId: url,
playerVars: {
‘controls’: controls,// 0,
‘showinfo’: showinfo,//0,
‘rel’:0
},
events: {
//’onError’: window[‘onPlayerError’+el_id],
‘onReady’: window[‘onPlayerReady’+el_id],
‘onStateChange’: window[‘onPlayerStateChange’+el_id],
‘loop’:1
}
});

});

/*jQuery(‘.huge-it-iframe’).each(function(){

var id = jQuery(this).attr(‘id’);
var el_id = jQuery(this).attr(‘data-element-id’);
var controls = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘controls’];
var showinfo = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘showinfo’];
var url = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘videoId’];
controls||(controls = 0);
showinfo||(showinfo = 0);

window[‘player_’+el_id] = new YT.Player(id, {
height: ‘532’,
width: ‘800’,
videoId: url,
playerVars: {
‘controls’: controls,// 0,
‘showinfo’: showinfo,//0,
‘rel’:0
},
events: {
‘onError’: window[‘onPlayerError’+el_id],
‘onReady’: window[‘onPlayerReady’+el_id],
‘onStateChange’: window[‘onPlayerStateChange’+el_id],
‘loop’:1
}
});
})*/
});

jQuery(function(){

});
function stopYoutubeVideo(currentVideo,nextVideo) {

if(currentVideo) {
(HUGEIT_YT_IFRAMES[‘iframe’+currentVideo][‘state’])?currentVideo&&(window[‘player_’+currentVideo][‘pauseVideo’]()):currentVideo&&(window[‘player_’+currentVideo][‘stopVideo’]());
}
nextVideo&&HUGEIT_YT_IFRAMES[‘iframe’+nextVideo][‘autoplay’]&&(window[‘player_’+nextVideo][‘playVideo’]());
}

function stopVimeoVideo(currentVideo,nextVideo){
jQuery(currentVideo).vimeo(‘pause’);
jQuery(nextVideo).vimeo(‘play’);
}
/*** initialize And youtube autopay ***/

jQuery( window ).load(function() {

(function VimeoOptionsReady(){ //calling funtion once
jQuery(‘.huge-it-iframe-vimeo’).each(function(){
var el_id = jQuery(this).attr(‘data-element-id’);
jQuery(this).vimeo(‘setColor’,HUGEIT_VIMEOS[‘iframe’+el_id][‘color’]);
jQuery(this).vimeo(‘setVolume’,HUGEIT_VIMEOS[‘iframe’+el_id][‘volume’]);
})
}());

if(‘off’ == ‘on’) {

if(jQuery(‘.huge-it-iframe-vimeo.autoplay’).length) {

(function AutoplayVimeo() {
var setplayVideo = setInterval(hugeitframe, 100);
function hugeitframe() {
var vimeo1 = jQuery(‘.huge_it_slider_24 li’).first().find(‘.autoplay’)
if(vimeo1.length) {
vimeo1.vimeo(‘play’);
clearInterval(setplayVideo);
}
};
}());
};

if(jQuery(‘.huge-it-iframe.autoplay’).length) {

(function AutoplayYoutube() {
var setplayVideo = setInterval(hugeitframe, 100);
function hugeitframe() {
jQuery(‘.huge-it-iframe.autoplay’).each(function(){

var el_id = jQuery(this).attr(‘data-element-id’);

if(window[‘player_’+el_id]) {
window[‘player_’+el_id][‘playVideo’]();
clearInterval(setplayVideo);
}
});
}
}());
};

}
});

/*** initialize***/

<!– –>

jQuery(document).ready(function($) {

$(‘.thumb_wrapper’).on(‘click’, function(ev) {
var hugeid=$(this).data(‘rowid’);
var myid=hugeid;
myid=parseInt(myid);
eval(‘player_’+myid+’.playVideo()’)
ev.preventDefault();

});
});

if(typeof sliderID_array == »undefined »){
var sliderID_array=[];
}

var data_24 = [];
var event_stack_24 = [];
/*if(‘off’ == ‘on’)
huge_video_playing[‘video_is_playing_’+24]=true;*/
data_24[« 0 »]=[];data_24[« 0 »][« id »]= »0″;data_24[« 0 »][« image_url »]= »http://picturesandlife.com/wp-content/uploads/2016/10/03-Mode-2000p.jpg »;data_24[« 0 »][« description »]= » »;data_24[« 0 »][« alt »]= » »;data_24[« 1 »]=[];data_24[« 1 »][« id »]= »1″;data_24[« 1 »][« image_url »]= »http://picturesandlife.com/wp-content/uploads/2016/10/06Portrait-Mode.jpg »;data_24[« 1 »][« description »]= » »;data_24[« 1 »][« alt »]= » »;

var huge_it_trans_in_progress_24 = false;
var huge_it_transition_duration_24 = 1000;
var huge_interval ={};
var id_array_index=sliderID_array.length

var ifhasthumb = »nonav »;
sliderID_array[id_array_index] = // Stop autoplay.
window.clearInterval(huge_interval[‘huge_it_playInterval_’+24]);

var huge_it_current_key_24 =  »;
function huge_it_move_dots_24() {
var image_left = jQuery(« .huge_it_slideshow_dots_active_24 »).position().left;
var image_right = jQuery(« .huge_it_slideshow_dots_active_24 »).position().left + jQuery(« .huge_it_slideshow_dots_active_24″).outerWidth(true);

}
function huge_it_testBrowser_cssTransitions_24() {
return huge_it_testDom_24(‘Transition’);
}
function huge_it_testBrowser_cssTransforms3d_24() {
return huge_it_testDom_24(‘Perspective’);
}
function huge_it_testDom_24(prop) {
// Browser vendor CSS prefixes.
var browserVendors = [ », ‘-webkit-‘, ‘-moz-‘, ‘-ms-‘, ‘-o-‘, ‘-khtml-‘];
// Browser vendor DOM prefixes.
var domPrefixes = [ », ‘Webkit’, ‘Moz’, ‘ms’, ‘O’, ‘Khtml’];
var i = domPrefixes.length;
while (i–) {
if (typeof document.body.style[domPrefixes[i] + prop] !== ‘undefined’) {
return true;
}
}
return false;
}
function huge_it_cube_24(tz, ntx, nty, nrx, nry, wrx, wry, current_image_class, next_image_class, direction) {

/* If browser does not support 3d transforms/CSS transitions.*/
if (!huge_it_testBrowser_cssTransitions_24()) {
jQuery(« .huge_it_slideshow_dots_24 »).removeClass(« huge_it_slideshow_dots_active_24 »).addClass(« huge_it_slideshow_dots_deactive_24 »);
jQuery(« #huge_it_dots_ » + huge_it_current_key_24 + « _24 »).removeClass(« huge_it_slideshow_dots_deactive_24 »).addClass(« huge_it_slideshow_dots_active_24 »);
return huge_it_fallback_24(current_image_class, next_image_class, direction);
}
if (!huge_it_testBrowser_cssTransforms3d_24()) {
return huge_it_fallback3d_24(current_image_class, next_image_class, direction);
}
//alert(current_image_class+’ ‘+next_image_class);
jQuery(current_image_class).css({‘z-index’: ‘none’});
jQuery(next_image_class).css({‘z-index’ : 2});
huge_it_trans_in_progress_24 = true;
/* Set active thumbnail.*/
jQuery(« .huge_it_slideshow_dots_24 »).removeClass(« huge_it_slideshow_dots_active_24 »).addClass(« huge_it_slideshow_dots_deactive_24 »);
jQuery(« #huge_it_dots_ » + huge_it_current_key_24 + « _24 »).removeClass(« huge_it_slideshow_dots_deactive_24 »).addClass(« huge_it_slideshow_dots_active_24 »);
jQuery(« .huge_it_slide_bg_24 »).css(‘perspective’, 1000);
jQuery(current_image_class).css({
transform : ‘translateZ(‘ + tz + ‘px)’,
backfaceVisibility : ‘hidden’
});

jQuery(« .huge_it_slideshow_image_wrap_24,.huge_it_slide_bg_24,.huge_it_slideshow_image_item_24,.huge_it_slideshow_image_second_item_24 « ).css(‘overflow’, ‘visible’);

jQuery(next_image_class).css({
opacity : 1,
filter: ‘Alpha(opacity=100)’,
backfaceVisibility : ‘hidden’,
transform : ‘translateY(‘ + nty + ‘px) translateX(‘ + ntx + ‘px) rotateY(‘+ nry +’deg) rotateX(‘+ nrx +’deg)’
});
jQuery(« .huge_it_slider_24 »).css({
transform: ‘translateZ(-‘ + tz + ‘px)’,
transformStyle: ‘preserve-3d’
});
/* Execution steps.*/
setTimeout(function () {
jQuery(« .huge_it_slider_24 »).css({
transition: ‘all ‘ + huge_it_transition_duration_24 + ‘ms ease-in-out’,
transform: ‘translateZ(-‘ + tz + ‘px) rotateX(‘+ wrx +’deg) rotateY(‘+ wry +’deg)’
});
}, 20);
/* After transition.*/
jQuery(« .huge_it_slider_24 »).one(‘webkitTransitionEnd transitionend otransitionend oTransitionEnd mstransitionend’, jQuery.proxy(huge_it_after_trans));
function huge_it_after_trans() {
/*if (huge_it_from_focus_24) {
huge_it_from_focus_24 = false;
return;
}*/
jQuery(« .huge_it_slide_bg_24,.huge_it_slideshow_image_item_24,.huge_it_slideshow_image_second_item_24 « ).css(‘overflow’, ‘hidden’);
jQuery(« .huge_it_slide_bg_24 »).removeAttr(‘style’);
jQuery(current_image_class).removeAttr(‘style’);
jQuery(next_image_class).removeAttr(‘style’);
jQuery(« .huge_it_slider_24 »).removeAttr(‘style’);
// alert(current_image_class+’ ‘+next_image_class);
jQuery(current_image_class).css({‘opacity’ : 0, filter: ‘Alpha(opacity=0)’, ‘z-index’: 1});
jQuery(next_image_class).css({‘opacity’ : 1, filter: ‘Alpha(opacity=100)’, ‘z-index’ : 2});
// huge_it_change_watermark_container_24();
huge_it_trans_in_progress_24 = false;
if (typeof event_stack_24 !== ‘undefined’ && event_stack_24.length > 0) {
key = event_stack_24[0].split(« -« );
event_stack_24.shift();
huge_it_change_image_24(key[0], key[1], data_24, true,false);
}
}
}
function huge_it_cubeH_24(current_image_class, next_image_class, direction) {
/* Set to half of image width.*/
var dimension = jQuery(current_image_class).width() / 2;
if (direction == ‘right’) {
huge_it_cube_24(dimension, dimension, 0, 0, 90, 0, -90, current_image_class, next_image_class, direction);
}
else if (direction == ‘left’) {
huge_it_cube_24(dimension, -dimension, 0, 0, -90, 0, 90, current_image_class, next_image_class, direction);
}
}
function huge_it_cubeV_24(current_image_class, next_image_class, direction) {
/* Set to half of image height.*/
var dimension = jQuery(current_image_class).height() / 2;
/* If next slide.*/
if (direction == ‘right’) {
huge_it_cube_24(dimension, 0, -dimension, 90, 0, -90, 0, current_image_class, next_image_class, direction);
}
else if (direction == ‘left’) {
huge_it_cube_24(dimension, 0, dimension, -90, 0, 90, 0, current_image_class, next_image_class, direction);
}
}
/* For browsers that does not support transitions.*/
function huge_it_fallback_24(current_image_class, next_image_class, direction) {
huge_it_fade_24(current_image_class, next_image_class, direction);
}
/* For browsers that support transitions, but not 3d transforms (only used if primary transition makes use of 3d-transforms).*/
function huge_it_fallback3d_24(current_image_class, next_image_class, direction) {
huge_it_sliceV_24(current_image_class, next_image_class, direction);
}
function huge_it_none_24(current_image_class, next_image_class, direction) {
jQuery(current_image_class).css({‘opacity’ : 0, ‘z-index’: 1});
jQuery(next_image_class).css({‘opacity’ : 1, ‘z-index’ : 2});

/* Set active thumbnail.*/
jQuery(« .huge_it_slideshow_dots_24 »).removeClass(« huge_it_slideshow_dots_active_24 »).addClass(« huge_it_slideshow_dots_deactive_24 »);
jQuery(« #huge_it_dots_ » + huge_it_current_key_24 + « _24 »).removeClass(« huge_it_slideshow_dots_deactive_24 »).addClass(« huge_it_slideshow_dots_active_24 »);
}
function huge_it_fade_24(current_image_class, next_image_class, direction) {
if (huge_it_testBrowser_cssTransitions_24()) {

jQuery(next_image_class).css(‘transition’, ‘opacity ‘ + huge_it_transition_duration_24 + ‘ms linear’);
jQuery(current_image_class).css(‘transition’, ‘opacity ‘ + huge_it_transition_duration_24 + ‘ms linear’);
jQuery(current_image_class).css({‘opacity’ : 0, ‘z-index’: 1});
jQuery(next_image_class).css({‘opacity’ : 1, ‘z-index’ : 2});
}
else {

jQuery(current_image_class).animate({‘opacity’ : 0, ‘z-index’ : 1}, huge_it_transition_duration_24);
jQuery(next_image_class).animate({
‘opacity’ : 1,
‘z-index’: 2
}, {
duration: huge_it_transition_duration_24,
complete: function () {return false;}
});
// For IE.
jQuery(current_image_class).fadeTo(huge_it_transition_duration_24, 0);
jQuery(next_image_class).fadeTo(huge_it_transition_duration_24, 1);
}

jQuery(« .huge_it_slideshow_dots_24 »).removeClass(« huge_it_slideshow_dots_active_24 »).addClass(« huge_it_slideshow_dots_deactive_24 »);
jQuery(« #huge_it_dots_ » + huge_it_current_key_24 + « _24 »).removeClass(« huge_it_slideshow_dots_deactive_24 »).addClass(« huge_it_slideshow_dots_active_24 »);
}
function huge_it_grid_24(cols, rows, ro, tx, ty, sc, op, current_image_class, next_image_class, direction) {
/* If browser does not support CSS transitions.*/
if (!huge_it_testBrowser_cssTransitions_24()) {
jQuery(« .huge_it_slideshow_dots_24 »).removeClass(« huge_it_slideshow_dots_active_24 »).addClass(« huge_it_slideshow_dots_deactive_24 »);
jQuery(« #huge_it_dots_ » + huge_it_current_key_24 + « _24 »).removeClass(« huge_it_slideshow_dots_deactive_24 »).addClass(« huge_it_slideshow_dots_active_24 »);
return huge_it_fallback_24(current_image_class, next_image_class, direction);

}
huge_it_trans_in_progress_24 = true;
/* Set active thumbnail.*/
jQuery(« .huge_it_slideshow_dots_24 »).removeClass(« huge_it_slideshow_dots_active_24 »).addClass(« huge_it_slideshow_dots_deactive_24 »);
jQuery(« #huge_it_dots_ » + huge_it_current_key_24 + « _24 »).removeClass(« huge_it_slideshow_dots_deactive_24 »).addClass(« huge_it_slideshow_dots_active_24 »);
/* The time (in ms) added to/subtracted from the delay total for each new gridlet.*/
var count = (huge_it_transition_duration_24) / (cols + rows);
/* Gridlet creator (divisions of the image grid, positioned with background-images to replicate the look of an entire slide image when assembled)*/
function huge_it_gridlet(width, height, top, img_top, left, img_left, src, imgWidth, imgHeight, c, r) {
var delay = (c + r) * count;
/* Return a gridlet elem with styles for specific transition.*/
return jQuery(‘

‘).css({
width : width,
height : height,
top : top,
left : left,
backgroundImage : ‘url(« ‘ + src + ‘ »)’,
backgroundColor: jQuery(« .huge_it_slideshow_image_wrap_24 »).css(« background-color »),
/*backgroundColor: rgba(0, 0, 0, 0),*/
backgroundRepeat: ‘no-repeat’,
backgroundPosition : img_left + ‘px ‘ + img_top + ‘px’,
backgroundSize : imgWidth + ‘px ‘ + imgHeight + ‘px’,
transition : ‘all ‘ + huge_it_transition_duration_24 + ‘ms ease-in-out ‘ + delay + ‘ms’,
transform : ‘none’
});
}
/* Get the current slide’s image.*/
var cur_img = jQuery(current_image_class).find(‘img’);
/* Create a grid to hold the gridlets.*/
var grid = jQuery(‘

‘).addClass(‘huge_it_grid_24’);
/* Prepend the grid to the next slide (i.e. so it’s above the slide image).*/
jQuery(current_image_class).prepend(grid);
/* vars to calculate positioning/size of gridlets*/
var cont = jQuery(« .huge_it_slide_bg_24″);
var imgWidth = cur_img.width();
var imgHeight = cur_img.height();
var contWidth = cont.width(),
contHeight = cont.height(),
imgSrc = cur_img.attr(‘src’),/*.replace(‘/thumb’,  »),*/
colWidth = Math.floor(contWidth / cols),
rowHeight = Math.floor(contHeight / rows),
colRemainder = contWidth – (cols * colWidth),
colAdd = Math.ceil(colRemainder / cols),
rowRemainder = contHeight – (rows * rowHeight),
rowAdd = Math.ceil(rowRemainder / rows),
leftDist = 0,
img_leftDist = (jQuery(« .huge_it_slide_bg_24 »).width() – cur_img.width()) / 2;
/* tx/ty args can be passed as ‘auto’/’min-auto’ (meaning use slide width/height or negative slide width/height).*/
tx = tx === ‘auto’ ? contWidth : tx;
tx = tx === ‘min-auto’ ? – contWidth : tx;
ty = ty === ‘auto’ ? contHeight : ty;
ty = ty === ‘min-auto’ ? – contHeight : ty;
/* Loop through cols*/
for (var i = 0; i 0) {
var add = colRemainder >= colAdd ? colAdd : colRemainder;
newColWidth += add;
colRemainder -= add;
}
/* Nested loop to create row gridlets for each col.*/
for (var j = 0; j 0) {
add = newRowRemainder >= rowAdd ? rowAdd : rowRemainder;
newRowHeight += add;
newRowRemainder -= add;
}
/* Create & append gridlet to grid.*/
grid.append(huge_it_gridlet(newColWidth, newRowHeight, topDist, img_topDst, leftDist, img_leftDist, imgSrc, imgWidth, imgHeight, i, j));
topDist += newRowHeight;
img_topDst -= newRowHeight;
}
img_leftDist -= newColWidth;
leftDist += newColWidth;
}
/* Set event listener on last gridlet to finish transitioning.*/
var last_gridlet = grid.children().last();
/* Show grid & hide the image it replaces.*/
grid.show();
cur_img.css(‘opacity’, 0);
/* Add identifying classes to corner gridlets (useful if applying border radius).*/
grid.children().first().addClass(‘rs-top-left’);
grid.children().last().addClass(‘rs-bottom-right’);
grid.children().eq(rows – 1).addClass(‘rs-bottom-left’);
grid.children().eq(- rows).addClass(‘rs-top-right’);
/* Execution steps.*/
setTimeout(function () {
grid.children().css({
opacity: op,
transform: ‘rotate(‘+ ro +’deg) translateX(‘+ tx +’px) translateY(‘+ ty +’px) scale(‘+ sc +’)’
});
}, 1);
jQuery(next_image_class).css(‘opacity’, 1);
/* After transition.*/
jQuery(last_gridlet).one(‘webkitTransitionEnd transitionend otransitionend oTransitionEnd mstransitionend’, jQuery.proxy(huge_it_after_trans));
function huge_it_after_trans() {
jQuery(current_image_class).css({‘opacity’ : 0, ‘z-index’: 1});
jQuery(next_image_class).css({‘opacity’ : 1, ‘z-index’ : 2});
cur_img.css(‘opacity’, 1);
grid.remove();
huge_it_trans_in_progress_24 = false;
if (typeof event_stack_24 !== ‘undefined’ && event_stack_24.length > 0) {
key = event_stack_24[0].split(« -« );
event_stack_24.shift();
huge_it_change_image_24(key[0], key[1], data_24, true,false);
}
}
}
function huge_it_sliceH_24(current_image_class, next_image_class, direction) {
if (direction == ‘right’) {
var translateX = ‘min-auto’;
}
else if (direction == ‘left’) {
var translateX = ‘auto’;
}
huge_it_grid_24(1, 8, 0, translateX, 0, 1, 0, current_image_class, next_image_class, direction);
}
function huge_it_sliceV_24(current_image_class, next_image_class, direction) {
if (direction == ‘right’) {
var translateY = ‘min-auto’;
}
else if (direction == ‘left’) {
var translateY = ‘auto’;
}
huge_it_grid_24(10, 1, 0, 0, translateY, 1, 0, current_image_class, next_image_class, direction);
}
function huge_it_slideV_24(current_image_class, next_image_class, direction) {
if (direction == ‘right’) {
var translateY = ‘auto’;
}
else if (direction == ‘left’) {
var translateY = ‘min-auto’;
}
huge_it_grid_24(1, 1, 0, 0, translateY, 1, 1, current_image_class, next_image_class, direction);
}
function huge_it_slideH_24(current_image_class, next_image_class, direction) {
if (direction == ‘right’) {
var translateX = ‘min-auto’;
}
else if (direction == ‘left’) {
var translateX = ‘auto’;
}
huge_it_grid_24(1, 1, 0, translateX, 0, 1, 1, current_image_class, next_image_class, direction);
}
function huge_it_scaleOut_24(current_image_class, next_image_class, direction) {
huge_it_grid_24(1, 1, 0, 0, 0, 1.5, 0, current_image_class, next_image_class, direction);
}
function huge_it_scaleIn_24(current_image_class, next_image_class, direction) {
huge_it_grid_24(1, 1, 0, 0, 0, 0.5, 0, current_image_class, next_image_class, direction);
}
function huge_it_blockScale_24(current_image_class, next_image_class, direction) {
huge_it_grid_24(8, 6, 0, 0, 0, .6, 0, current_image_class, next_image_class, direction);
}
function huge_it_kaleidoscope_24(current_image_class, next_image_class, direction) {
huge_it_grid_24(10, 8, 0, 0, 0, 1, 0, current_image_class, next_image_class, direction);
}
function huge_it_fan_24(current_image_class, next_image_class, direction) {
if (direction == ‘right’) {
var rotate = 45;
var translateX = 100;
}
else if (direction == ‘left’) {
var rotate = -45;
var translateX = -100;
}
huge_it_grid_24(1, 10, rotate, translateX, 0, 1, 0, current_image_class, next_image_class, direction);
}
function huge_it_blindV_24(current_image_class, next_image_class, direction) {
huge_it_grid_24(1, 8, 0, 0, 0, .7, 0, current_image_class, next_image_class);
}
function huge_it_blindH_24(current_image_class, next_image_class, direction) {
huge_it_grid_24(10, 1, 0, 0, 0, .7, 0, current_image_class, next_image_class);
}
function huge_it_random_24(current_image_class, next_image_class, direction) {
var anims = [‘sliceH’, ‘sliceV’, ‘slideH’, ‘slideV’, ‘scaleOut’, ‘scaleIn’, ‘blockScale’, ‘kaleidoscope’, ‘fan’, ‘blindH’, ‘blindV’];
/* Pick a random transition from the anims array.*/
this[« huge_it_ » + anims[Math.floor(Math.random() * anims.length)] + « _24 »](current_image_class, next_image_class, direction);
}

function iterator_24() {
var iterator = 1;

return iterator;
}

function huge_it_change_image_24(current_key, key, data_24, from_effect,clicked) {

if (data_24[key]) {

/* if(huge_video_playing[‘video_is_playing_’+24] && !clicked){
return false;
}*/

if (!from_effect) {
// Change image key.
jQuery(« #huge_it_current_image_key_24 »).val(key);
// if (current_key == ‘-2’) { /* Dots.*/
current_key = jQuery(« .huge_it_slideshow_dots_active_24 »).attr(« data-image_key »);
// }
}

if (huge_it_trans_in_progress_24) {
//errorlogjQuery(« .huge_it_slideshow_image_wrap_24″).after( » –IN TRANSACTION–
« );
event_stack_24.push(current_key + ‘-‘ + key);
return;
}

var direction = ‘right’;
if (huge_it_current_key_24 > key) {
var direction = ‘left’;
}
else if (huge_it_current_key_24 == key) {
return false;
}

// Set active thumbnail position.

huge_it_current_key_24 = key;
//Change image id, title, description.
jQuery(« #huge_it_slideshow_image_24 »).attr(‘data-image_id’, data_24[key][« id »]);

jQuery(« .huge_it_slideshow_title_text_24 »).html(data_24[key][« alt »]);
jQuery(« .huge_it_slideshow_description_text_24 »).html(data_24[key][« description »]);

var current_image_class = « #image_id_24_ » + data_24[current_key][« id »];
var next_image_class = « #image_id_24_ » + data_24[key][« id »];

if(jQuery(current_image_class).find(‘.huge_it_video_frame_24′).length>0) {
var streffect=’fade’;
if(streffect== »cubeV » || streffect== »cubeH » || streffect== »none » || streffect== »fade »){
huge_it_fade_24(current_image_class, next_image_class, direction);
}else{
huge_it_fade_24(current_image_class, next_image_class, direction);
}
}else{
huge_it_fade_24(current_image_class, next_image_class, direction);
}

jQuery(‘.huge_it_slideshow_title_text_24’).removeClass(‘none’);
if(jQuery(‘.huge_it_slideshow_title_text_24’).html()== » »){jQuery(‘.huge_it_slideshow_title_text_24’).addClass(‘none’);}

jQuery(‘.huge_it_slideshow_description_text_24’).removeClass(‘none’);
if(jQuery(‘.huge_it_slideshow_description_text_24’).html()== » »){jQuery(‘.huge_it_slideshow_description_text_24’).addClass(‘none’);}

jQuery(current_image_class).find(‘.huge_it_slideshow_title_text_24’).addClass(‘none’);
jQuery(current_image_class).find(‘.huge_it_slideshow_description_text_24’).addClass(‘none’);

//errorlogjQuery(« .huge_it_slideshow_image_wrap_24 »).after(« –cur-key= »+current_key+ » –cur-img-class= »+current_image_class+ » nxt-img-class= »+next_image_class+ »–« );
huge_it_move_dots_24();
/*** for vimeo and youtube stop pause play etc… ***/
var nextVideo = jQuery(‘#video_id_24_’+key).attr(‘data-element-id’);
var currentVideo = jQuery(‘#video_id_24_’+current_key).attr(‘data-element-id’);/*** add ***/
(currentVideo||nextVideo)&&stopYoutubeVideo(currentVideo,nextVideo);
if((jQuery(‘#player_24_’+current_key)).hasClass(‘huge-it-iframe-vimeo’)) {
jQuery(‘#player_24_’+current_key).vimeo(‘pause’);

}
if((jQuery(‘#player_24_’+key)).hasClass(‘huge-it-iframe-vimeo’) && (‘off’ == ‘on’)) {
jQuery(‘#player_24_’+key).vimeo(‘play’);
}
/*** ***/
window.clearInterval(huge_interval[‘huge_it_playInterval_’+24]);
play_24();
}

}
var staticthumbWidth;
jQuery(window).load(function(){
staticthumbWidth=jQuery(‘#huge_it_thumb_slider>li’).width();

})
function huge_it_popup_resize_24() {

var staticsliderwidth=800;
var sliderwidth=800;
var bodyWidth=jQuery(window).width();
var parentWidth = jQuery(« .huge_it_slideshow_image_wrap_24 »).parent().width();

if(sliderwidth>parentWidth){sliderwidth=parentWidth;}
if(sliderwidth>bodyWidth){sliderwidth=bodyWidth;}
var str=532/(staticsliderwidth-2*0); // alert(str);
var str2 = 100/800;
var sliderDynamicImageHeight = sliderwidth*str-2*0;
var sliderDynamicThumbHeight = 0;

jQuery(‘.huge_it_slideshow_image_wrap_24’).css({‘max-height’:sliderDynamicImageHeight+sliderDynamicThumbHeight});
jQuery(‘.huge_it_slideshow_image_wrap1_24’).css({‘max-height’:sliderDynamicImageHeight});
jQuery(‘.huge_it_slideshow_thumbs_24 li’).css({‘max-height’:sliderDynamicThumbHeight-0});

jQuery(« #huge_it_loading_image_24 »).css({display: « none »});
jQuery(« .huge_it_slideshow_image_wrap1_24 »).css({opacity: 1});
jQuery(« .huge_it_slideshow_image_wrap_24 »).removeClass(« nocolor »);

if(« crop »== »crop »){
jQuery(« .huge_it_slider_ul li img »).each(function(){
if(jQuery(this).prop(‘naturalWidth’)>jQuery(this).prop(‘naturalHeight’))
jQuery(this).css({‘width’:’100%’,’height’:’auto’/*,’top’:’50%’,’left’:’50%’,’transform’:’translate( -50%, -50% )’*/});
else{
jQuery(this).css({‘height’:’100%’,’width’:’auto’/*,’top’:’50%’,’left’:’50%’,’transform’:’translate( -50%, -50% )’*/});
}
});
}
jQuery(« .huge_it_slideshow_image_wrap_24″).css({opacity:1});
}

jQuery(window).load(function () {
jQuery(window).resize(function() {
huge_it_popup_resize_24();
});

jQuery(‘#huge_it_slideshow_left_24’).on(‘click’,function(){
huge_it_change_image_24(parseInt(jQuery(‘#huge_it_current_image_key_24’).val()), (parseInt(jQuery(‘#huge_it_current_image_key_24’).val()) – iterator_24()) >= 0 ? (parseInt(jQuery(‘#huge_it_current_image_key_24’).val()) – iterator_24()) % data_24.length : data_24.length – 1, data_24,false,true);
return false;
});

jQuery(‘#huge_it_slideshow_right_24’).on(‘click’,function(){
huge_it_change_image_24(parseInt(jQuery(‘#huge_it_current_image_key_24’).val()), (parseInt(jQuery(‘#huge_it_current_image_key_24’).val()) + iterator_24()) % data_24.length, data_24,false,true);
return false;
});

huge_it_popup_resize_24();
/* Disable right click.*/
jQuery(‘div[id^= »huge_it_container »]’).bind(« contextmenu », function () {
return false;
});

/*HOVER SLIDESHOW*/
jQuery(« #huge_it_slideshow_image_container_24, .huge_it_slideshow_image_container_24, .huge_it_slideshow_dots_container_24,#huge_it_slideshow_right_24,#huge_it_slideshow_left_24 »).hover(function(){
//errorlogjQuery(« .huge_it_slideshow_image_wrap_24″).after( » — hover —
« );
jQuery(« #huge_it_slideshow_right_24 »).css({‘display’:’inline’});
jQuery(« #huge_it_slideshow_left_24 »).css({‘display’:’inline’});
},function(){
jQuery(« #huge_it_slideshow_right_24 »).css({‘display’:’none’});
jQuery(« #huge_it_slideshow_left_24″).css({‘display’:’none’});
});

if(pausehover== »on » && !/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){
jQuery(« #huge_it_slideshow_image_container_24, .huge_it_slideshow_image_container_24 »).hover(function(){
window.clearInterval(huge_interval[‘huge_it_playInterval_’+24]);
scrolling = false;
},function(){
window.clearInterval(huge_interval[‘huge_it_playInterval_’+24]);
scrolling = true;
play_24();
});
}
play_24();
});
//var huge_play={};

function play_24(){ //alert(5000);
if(scrolling ){
huge_interval[‘huge_it_playInterval_’+24] = setInterval(function () {
//errorlogjQuery(« .huge_it_slideshow_image_wrap_24″).after( » — time left —- « );
var iterator = 1;
if(!IsPlay()) { huge_it_change_image_24(parseInt(jQuery(‘#huge_it_current_image_key_24’).val()), (parseInt(jQuery(‘#huge_it_current_image_key_24’).val()) + iterator) % data_24.length, data_24,false,false);}
}, ‘5000’);
}
if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){
huge_interval[‘huge_it_playInterval_’+24] = setInterval(function () {
var iterator = 1;
if(!IsPlay()) { huge_it_change_image_24(parseInt(jQuery(‘#huge_it_current_image_key_24’).val()), (parseInt(jQuery(‘#huge_it_current_image_key_24’).val()) + iterator) % data_24.length, data_24,false,false);}
}, ‘5000’);
}
}
jQuery(window).focus(function() {
/*event_stack_24 = [];*/
var i_24 = 0;
jQuery(« .huge_it_slider_24 »).children(« div »).each(function () {
if (jQuery(this).css(‘opacity’) == 1) {
jQuery(« #huge_it_current_image_key_24 »).val(i_24);
}
i_24++;
});
});
jQuery(window).blur(function() {
//event_stack_24 = [];
window.clearInterval(huge_interval[‘huge_it_playInterval_’+24]);
});
jQuery(window).focus(function() {
//event_stack_24 = [];
play_24()
});

/******/
jQuery(‘.huge-it-iframe-vimeo.autoplay’).each(function(){

})
/******/

jQuery(document).ready(function($) {

setInterval(function() {
jQuery(‘.huge_it_slider_24’).find(« li »).each(function (){

if($(this).css(« opacity ») == « 1 »){

var img_id=$(this).attr(‘id’);
jQuery(‘.huge_it_slideshow_thumbs_24’).each(function (){
//if ($(this).hasClass(‘bx-clone’)){$(this).removeAttr(‘id’)}
var allListElements = $( ‘li[id=’+img_id+’]’ );

$(this).find(allListElements).not(« .bx-clone »).each(function() {

jQuery(‘.huge_it_slideshow_thumbs_24 li’).find(« .trans_back »).css(‘background’,’rgba(255,255,255,0.3)’);
$(this).find(‘.trans_back’).css(‘background’,’none’);

})

})

}

})
},100)

})

Défilé de mode Ethique à Paris / Ethical Fashion show in Paris

var pausehover= »on »;
var huge_video_playing={};
var autoplayMatch={};
var scrolling;
if(pausehover == ‘on’){
scrolling = false;
}else{
scrolling = true;
}

function IsPlay() {
var playonevideo = 0;
if(typeof HUGEIT_YT_IFRAMES != ‘undefined’)
for( var slide in HUGEIT_YT_IFRAMES) {
if(HUGEIT_YT_IFRAMES[slide][‘state’]) {
playonevideo++;
}
};
return playonevideo;
}

jQuery(window).load(function(){
if(!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))
setTimeout(function(){
jQuery(‘.huge_it_slide_container_15’).mouseleave();
}, 10);
});

var YTdeferred = jQuery.Deferred();
window.onYouTubeIframeAPIReady = function() {
//resolve when youtube callback is called passing YT as a parameter
YTdeferred.resolve(window.YT);

};
YTdeferred.done(function(YT) {
jQuery(‘.huge-it-iframe’).each(function(){

var el_id = jQuery(this).attr(‘data-element-id’);
var quality = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘quality’];

window[‘onPlayerStateChange’+el_id] = function(event) {

if (event.data == YT.PlayerState.PLAYING) {
HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘state’]=’played’;
event.target.setPlaybackQuality(quality);
}
else
HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘state’]= »;
}
});
jQuery(‘.huge-it-iframe’).each(function(){

var id = jQuery(this).attr(‘id’);
var el_id = jQuery(this).attr(‘data-element-id’);
var controls = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘controls’];
var showinfo = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘showinfo’];
var url = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘videoId’];
controls||(controls = 0);
showinfo||(showinfo = 0);
window[‘onPlayerReady’+el_id] = function(event) {
window[‘player_’+el_id][‘setVolume’](volume);
}
var volume = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘volume’];
window[‘player_’+el_id] = new YT.Player(id, {
height: ‘630’,
width: ‘418’,
videoId: url,
playerVars: {
‘controls’: controls,// 0,
‘showinfo’: showinfo,//0,
‘rel’:0
},
events: {
//’onError’: window[‘onPlayerError’+el_id],
‘onReady’: window[‘onPlayerReady’+el_id],
‘onStateChange’: window[‘onPlayerStateChange’+el_id],
‘loop’:1
}
});

});

/*jQuery(‘.huge-it-iframe’).each(function(){

var id = jQuery(this).attr(‘id’);
var el_id = jQuery(this).attr(‘data-element-id’);
var controls = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘controls’];
var showinfo = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘showinfo’];
var url = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘videoId’];
controls||(controls = 0);
showinfo||(showinfo = 0);

window[‘player_’+el_id] = new YT.Player(id, {
height: ‘630’,
width: ‘418’,
videoId: url,
playerVars: {
‘controls’: controls,// 0,
‘showinfo’: showinfo,//0,
‘rel’:0
},
events: {
‘onError’: window[‘onPlayerError’+el_id],
‘onReady’: window[‘onPlayerReady’+el_id],
‘onStateChange’: window[‘onPlayerStateChange’+el_id],
‘loop’:1
}
});
})*/
});

jQuery(function(){

});
function stopYoutubeVideo(currentVideo,nextVideo) {

if(currentVideo) {
(HUGEIT_YT_IFRAMES[‘iframe’+currentVideo][‘state’])?currentVideo&&(window[‘player_’+currentVideo][‘pauseVideo’]()):currentVideo&&(window[‘player_’+currentVideo][‘stopVideo’]());
}
nextVideo&&HUGEIT_YT_IFRAMES[‘iframe’+nextVideo][‘autoplay’]&&(window[‘player_’+nextVideo][‘playVideo’]());
}

function stopVimeoVideo(currentVideo,nextVideo){
jQuery(currentVideo).vimeo(‘pause’);
jQuery(nextVideo).vimeo(‘play’);
}
/*** initialize And youtube autopay ***/

jQuery( window ).load(function() {

(function VimeoOptionsReady(){ //calling funtion once
jQuery(‘.huge-it-iframe-vimeo’).each(function(){
var el_id = jQuery(this).attr(‘data-element-id’);
jQuery(this).vimeo(‘setColor’,HUGEIT_VIMEOS[‘iframe’+el_id][‘color’]);
jQuery(this).vimeo(‘setVolume’,HUGEIT_VIMEOS[‘iframe’+el_id][‘volume’]);
})
}());

if(‘off’ == ‘on’) {

if(jQuery(‘.huge-it-iframe-vimeo.autoplay’).length) {

(function AutoplayVimeo() {
var setplayVideo = setInterval(hugeitframe, 100);
function hugeitframe() {
var vimeo1 = jQuery(‘.huge_it_slider_15 li’).first().find(‘.autoplay’)
if(vimeo1.length) {
vimeo1.vimeo(‘play’);
clearInterval(setplayVideo);
}
};
}());
};

if(jQuery(‘.huge-it-iframe.autoplay’).length) {

(function AutoplayYoutube() {
var setplayVideo = setInterval(hugeitframe, 100);
function hugeitframe() {
jQuery(‘.huge-it-iframe.autoplay’).each(function(){

var el_id = jQuery(this).attr(‘data-element-id’);

if(window[‘player_’+el_id]) {
window[‘player_’+el_id][‘playVideo’]();
clearInterval(setplayVideo);
}
});
}
}());
};

}
});

/*** initialize***/

<!– –>

jQuery(document).ready(function($) {

$(‘.thumb_wrapper’).on(‘click’, function(ev) {
var hugeid=$(this).data(‘rowid’);
var myid=hugeid;
myid=parseInt(myid);
eval(‘player_’+myid+’.playVideo()’)
ev.preventDefault();

});
});

if(typeof sliderID_array == »undefined »){
var sliderID_array=[];
}

var data_15 = [];
var event_stack_15 = [];
/*if(‘off’ == ‘on’)
huge_video_playing[‘video_is_playing_’+15]=true;*/
data_15[« 0 »]=[];data_15[« 0 »][« id »]= »0″;data_15[« 0 »][« image_url »]= »http://picturesandlife.com/wp-content/uploads/2016/09/08-Mode-2000p.jpg »;data_15[« 0 »][« description »]= » »;data_15[« 0 »][« alt »]= » »;data_15[« 1 »]=[];data_15[« 1 »][« id »]= »1″;data_15[« 1 »][« image_url »]= »http://picturesandlife.com/wp-content/uploads/2016/09/09-Mode-2000p.jpg »;data_15[« 1 »][« description »]= » »;data_15[« 1 »][« alt »]= » »;data_15[« 2 »]=[];data_15[« 2 »][« id »]= »2″;data_15[« 2 »][« image_url »]= »http://picturesandlife.com/wp-content/uploads/2016/09/13-Mode-2000p.jpg »;data_15[« 2 »][« description »]= » »;data_15[« 2 »][« alt »]= » »;data_15[« 3 »]=[];data_15[« 3 »][« id »]= »3″;data_15[« 3 »][« image_url »]= »http://picturesandlife.com/wp-content/uploads/2016/10/15-Mode-2000p.jpg »;data_15[« 3 »][« description »]= » »;data_15[« 3 »][« alt »]= » »;data_15[« 4 »]=[];data_15[« 4 »][« id »]= »4″;data_15[« 4 »][« image_url »]= »http://picturesandlife.com/wp-content/uploads/2016/09/11-Mode-2000p.jpg »;data_15[« 4 »][« description »]= » »;data_15[« 4 »][« alt »]= » »;data_15[« 5 »]=[];data_15[« 5 »][« id »]= »5″;data_15[« 5 »][« image_url »]= »http://picturesandlife.com/wp-content/uploads/2016/09/12-Mode-2000p.jpg »;data_15[« 5 »][« description »]= » »;data_15[« 5 »][« alt »]= » »;data_15[« 6 »]=[];data_15[« 6 »][« id »]= »6″;data_15[« 6 »][« image_url »]= »http://picturesandlife.com/wp-content/uploads/2016/09/14-Mode-2000p.jpg »;data_15[« 6 »][« description »]= » »;data_15[« 6 »][« alt »]= » »;

var huge_it_trans_in_progress_15 = false;
var huge_it_transition_duration_15 = 1000;
var huge_interval ={};
var id_array_index=sliderID_array.length

var ifhasthumb = »nonav »;
sliderID_array[id_array_index] = // Stop autoplay.
window.clearInterval(huge_interval[‘huge_it_playInterval_’+15]);

var huge_it_current_key_15 =  »;
function huge_it_move_dots_15() {
var image_left = jQuery(« .huge_it_slideshow_dots_active_15 »).position().left;
var image_right = jQuery(« .huge_it_slideshow_dots_active_15 »).position().left + jQuery(« .huge_it_slideshow_dots_active_15″).outerWidth(true);

}
function huge_it_testBrowser_cssTransitions_15() {
return huge_it_testDom_15(‘Transition’);
}
function huge_it_testBrowser_cssTransforms3d_15() {
return huge_it_testDom_15(‘Perspective’);
}
function huge_it_testDom_15(prop) {
// Browser vendor CSS prefixes.
var browserVendors = [ », ‘-webkit-‘, ‘-moz-‘, ‘-ms-‘, ‘-o-‘, ‘-khtml-‘];
// Browser vendor DOM prefixes.
var domPrefixes = [ », ‘Webkit’, ‘Moz’, ‘ms’, ‘O’, ‘Khtml’];
var i = domPrefixes.length;
while (i–) {
if (typeof document.body.style[domPrefixes[i] + prop] !== ‘undefined’) {
return true;
}
}
return false;
}
function huge_it_cube_15(tz, ntx, nty, nrx, nry, wrx, wry, current_image_class, next_image_class, direction) {

/* If browser does not support 3d transforms/CSS transitions.*/
if (!huge_it_testBrowser_cssTransitions_15()) {
jQuery(« .huge_it_slideshow_dots_15 »).removeClass(« huge_it_slideshow_dots_active_15 »).addClass(« huge_it_slideshow_dots_deactive_15 »);
jQuery(« #huge_it_dots_ » + huge_it_current_key_15 + « _15 »).removeClass(« huge_it_slideshow_dots_deactive_15 »).addClass(« huge_it_slideshow_dots_active_15 »);
return huge_it_fallback_15(current_image_class, next_image_class, direction);
}
if (!huge_it_testBrowser_cssTransforms3d_15()) {
return huge_it_fallback3d_15(current_image_class, next_image_class, direction);
}
//alert(current_image_class+’ ‘+next_image_class);
jQuery(current_image_class).css({‘z-index’: ‘none’});
jQuery(next_image_class).css({‘z-index’ : 2});
huge_it_trans_in_progress_15 = true;
/* Set active thumbnail.*/
jQuery(« .huge_it_slideshow_dots_15 »).removeClass(« huge_it_slideshow_dots_active_15 »).addClass(« huge_it_slideshow_dots_deactive_15 »);
jQuery(« #huge_it_dots_ » + huge_it_current_key_15 + « _15 »).removeClass(« huge_it_slideshow_dots_deactive_15 »).addClass(« huge_it_slideshow_dots_active_15 »);
jQuery(« .huge_it_slide_bg_15 »).css(‘perspective’, 1000);
jQuery(current_image_class).css({
transform : ‘translateZ(‘ + tz + ‘px)’,
backfaceVisibility : ‘hidden’
});

jQuery(« .huge_it_slideshow_image_wrap_15,.huge_it_slide_bg_15,.huge_it_slideshow_image_item_15,.huge_it_slideshow_image_second_item_15 « ).css(‘overflow’, ‘visible’);

jQuery(next_image_class).css({
opacity : 1,
filter: ‘Alpha(opacity=100)’,
backfaceVisibility : ‘hidden’,
transform : ‘translateY(‘ + nty + ‘px) translateX(‘ + ntx + ‘px) rotateY(‘+ nry +’deg) rotateX(‘+ nrx +’deg)’
});
jQuery(« .huge_it_slider_15 »).css({
transform: ‘translateZ(-‘ + tz + ‘px)’,
transformStyle: ‘preserve-3d’
});
/* Execution steps.*/
setTimeout(function () {
jQuery(« .huge_it_slider_15 »).css({
transition: ‘all ‘ + huge_it_transition_duration_15 + ‘ms ease-in-out’,
transform: ‘translateZ(-‘ + tz + ‘px) rotateX(‘+ wrx +’deg) rotateY(‘+ wry +’deg)’
});
}, 20);
/* After transition.*/
jQuery(« .huge_it_slider_15 »).one(‘webkitTransitionEnd transitionend otransitionend oTransitionEnd mstransitionend’, jQuery.proxy(huge_it_after_trans));
function huge_it_after_trans() {
/*if (huge_it_from_focus_15) {
huge_it_from_focus_15 = false;
return;
}*/
jQuery(« .huge_it_slide_bg_15,.huge_it_slideshow_image_item_15,.huge_it_slideshow_image_second_item_15 « ).css(‘overflow’, ‘hidden’);
jQuery(« .huge_it_slide_bg_15 »).removeAttr(‘style’);
jQuery(current_image_class).removeAttr(‘style’);
jQuery(next_image_class).removeAttr(‘style’);
jQuery(« .huge_it_slider_15 »).removeAttr(‘style’);
// alert(current_image_class+’ ‘+next_image_class);
jQuery(current_image_class).css({‘opacity’ : 0, filter: ‘Alpha(opacity=0)’, ‘z-index’: 1});
jQuery(next_image_class).css({‘opacity’ : 1, filter: ‘Alpha(opacity=100)’, ‘z-index’ : 2});
// huge_it_change_watermark_container_15();
huge_it_trans_in_progress_15 = false;
if (typeof event_stack_15 !== ‘undefined’ && event_stack_15.length > 0) {
key = event_stack_15[0].split(« -« );
event_stack_15.shift();
huge_it_change_image_15(key[0], key[1], data_15, true,false);
}
}
}
function huge_it_cubeH_15(current_image_class, next_image_class, direction) {
/* Set to half of image width.*/
var dimension = jQuery(current_image_class).width() / 2;
if (direction == ‘right’) {
huge_it_cube_15(dimension, dimension, 0, 0, 90, 0, -90, current_image_class, next_image_class, direction);
}
else if (direction == ‘left’) {
huge_it_cube_15(dimension, -dimension, 0, 0, -90, 0, 90, current_image_class, next_image_class, direction);
}
}
function huge_it_cubeV_15(current_image_class, next_image_class, direction) {
/* Set to half of image height.*/
var dimension = jQuery(current_image_class).height() / 2;
/* If next slide.*/
if (direction == ‘right’) {
huge_it_cube_15(dimension, 0, -dimension, 90, 0, -90, 0, current_image_class, next_image_class, direction);
}
else if (direction == ‘left’) {
huge_it_cube_15(dimension, 0, dimension, -90, 0, 90, 0, current_image_class, next_image_class, direction);
}
}
/* For browsers that does not support transitions.*/
function huge_it_fallback_15(current_image_class, next_image_class, direction) {
huge_it_fade_15(current_image_class, next_image_class, direction);
}
/* For browsers that support transitions, but not 3d transforms (only used if primary transition makes use of 3d-transforms).*/
function huge_it_fallback3d_15(current_image_class, next_image_class, direction) {
huge_it_sliceV_15(current_image_class, next_image_class, direction);
}
function huge_it_none_15(current_image_class, next_image_class, direction) {
jQuery(current_image_class).css({‘opacity’ : 0, ‘z-index’: 1});
jQuery(next_image_class).css({‘opacity’ : 1, ‘z-index’ : 2});

/* Set active thumbnail.*/
jQuery(« .huge_it_slideshow_dots_15 »).removeClass(« huge_it_slideshow_dots_active_15 »).addClass(« huge_it_slideshow_dots_deactive_15 »);
jQuery(« #huge_it_dots_ » + huge_it_current_key_15 + « _15 »).removeClass(« huge_it_slideshow_dots_deactive_15 »).addClass(« huge_it_slideshow_dots_active_15 »);
}
function huge_it_fade_15(current_image_class, next_image_class, direction) {
if (huge_it_testBrowser_cssTransitions_15()) {

jQuery(next_image_class).css(‘transition’, ‘opacity ‘ + huge_it_transition_duration_15 + ‘ms linear’);
jQuery(current_image_class).css(‘transition’, ‘opacity ‘ + huge_it_transition_duration_15 + ‘ms linear’);
jQuery(current_image_class).css({‘opacity’ : 0, ‘z-index’: 1});
jQuery(next_image_class).css({‘opacity’ : 1, ‘z-index’ : 2});
}
else {

jQuery(current_image_class).animate({‘opacity’ : 0, ‘z-index’ : 1}, huge_it_transition_duration_15);
jQuery(next_image_class).animate({
‘opacity’ : 1,
‘z-index’: 2
}, {
duration: huge_it_transition_duration_15,
complete: function () {return false;}
});
// For IE.
jQuery(current_image_class).fadeTo(huge_it_transition_duration_15, 0);
jQuery(next_image_class).fadeTo(huge_it_transition_duration_15, 1);
}

jQuery(« .huge_it_slideshow_dots_15 »).removeClass(« huge_it_slideshow_dots_active_15 »).addClass(« huge_it_slideshow_dots_deactive_15 »);
jQuery(« #huge_it_dots_ » + huge_it_current_key_15 + « _15 »).removeClass(« huge_it_slideshow_dots_deactive_15 »).addClass(« huge_it_slideshow_dots_active_15 »);
}
function huge_it_grid_15(cols, rows, ro, tx, ty, sc, op, current_image_class, next_image_class, direction) {
/* If browser does not support CSS transitions.*/
if (!huge_it_testBrowser_cssTransitions_15()) {
jQuery(« .huge_it_slideshow_dots_15 »).removeClass(« huge_it_slideshow_dots_active_15 »).addClass(« huge_it_slideshow_dots_deactive_15 »);
jQuery(« #huge_it_dots_ » + huge_it_current_key_15 + « _15 »).removeClass(« huge_it_slideshow_dots_deactive_15 »).addClass(« huge_it_slideshow_dots_active_15 »);
return huge_it_fallback_15(current_image_class, next_image_class, direction);

}
huge_it_trans_in_progress_15 = true;
/* Set active thumbnail.*/
jQuery(« .huge_it_slideshow_dots_15 »).removeClass(« huge_it_slideshow_dots_active_15 »).addClass(« huge_it_slideshow_dots_deactive_15 »);
jQuery(« #huge_it_dots_ » + huge_it_current_key_15 + « _15 »).removeClass(« huge_it_slideshow_dots_deactive_15 »).addClass(« huge_it_slideshow_dots_active_15 »);
/* The time (in ms) added to/subtracted from the delay total for each new gridlet.*/
var count = (huge_it_transition_duration_15) / (cols + rows);
/* Gridlet creator (divisions of the image grid, positioned with background-images to replicate the look of an entire slide image when assembled)*/
function huge_it_gridlet(width, height, top, img_top, left, img_left, src, imgWidth, imgHeight, c, r) {
var delay = (c + r) * count;
/* Return a gridlet elem with styles for specific transition.*/
return jQuery(‘

‘).css({
width : width,
height : height,
top : top,
left : left,
backgroundImage : ‘url(« ‘ + src + ‘ »)’,
backgroundColor: jQuery(« .huge_it_slideshow_image_wrap_15 »).css(« background-color »),
/*backgroundColor: rgba(0, 0, 0, 0),*/
backgroundRepeat: ‘no-repeat’,
backgroundPosition : img_left + ‘px ‘ + img_top + ‘px’,
backgroundSize : imgWidth + ‘px ‘ + imgHeight + ‘px’,
transition : ‘all ‘ + huge_it_transition_duration_15 + ‘ms ease-in-out ‘ + delay + ‘ms’,
transform : ‘none’
});
}
/* Get the current slide’s image.*/
var cur_img = jQuery(current_image_class).find(‘img’);
/* Create a grid to hold the gridlets.*/
var grid = jQuery(‘

‘).addClass(‘huge_it_grid_15’);
/* Prepend the grid to the next slide (i.e. so it’s above the slide image).*/
jQuery(current_image_class).prepend(grid);
/* vars to calculate positioning/size of gridlets*/
var cont = jQuery(« .huge_it_slide_bg_15″);
var imgWidth = cur_img.width();
var imgHeight = cur_img.height();
var contWidth = cont.width(),
contHeight = cont.height(),
imgSrc = cur_img.attr(‘src’),/*.replace(‘/thumb’,  »),*/
colWidth = Math.floor(contWidth / cols),
rowHeight = Math.floor(contHeight / rows),
colRemainder = contWidth – (cols * colWidth),
colAdd = Math.ceil(colRemainder / cols),
rowRemainder = contHeight – (rows * rowHeight),
rowAdd = Math.ceil(rowRemainder / rows),
leftDist = 0,
img_leftDist = (jQuery(« .huge_it_slide_bg_15 »).width() – cur_img.width()) / 2;
/* tx/ty args can be passed as ‘auto’/’min-auto’ (meaning use slide width/height or negative slide width/height).*/
tx = tx === ‘auto’ ? contWidth : tx;
tx = tx === ‘min-auto’ ? – contWidth : tx;
ty = ty === ‘auto’ ? contHeight : ty;
ty = ty === ‘min-auto’ ? – contHeight : ty;
/* Loop through cols*/
for (var i = 0; i 0) {
var add = colRemainder >= colAdd ? colAdd : colRemainder;
newColWidth += add;
colRemainder -= add;
}
/* Nested loop to create row gridlets for each col.*/
for (var j = 0; j 0) {
add = newRowRemainder >= rowAdd ? rowAdd : rowRemainder;
newRowHeight += add;
newRowRemainder -= add;
}
/* Create & append gridlet to grid.*/
grid.append(huge_it_gridlet(newColWidth, newRowHeight, topDist, img_topDst, leftDist, img_leftDist, imgSrc, imgWidth, imgHeight, i, j));
topDist += newRowHeight;
img_topDst -= newRowHeight;
}
img_leftDist -= newColWidth;
leftDist += newColWidth;
}
/* Set event listener on last gridlet to finish transitioning.*/
var last_gridlet = grid.children().last();
/* Show grid & hide the image it replaces.*/
grid.show();
cur_img.css(‘opacity’, 0);
/* Add identifying classes to corner gridlets (useful if applying border radius).*/
grid.children().first().addClass(‘rs-top-left’);
grid.children().last().addClass(‘rs-bottom-right’);
grid.children().eq(rows – 1).addClass(‘rs-bottom-left’);
grid.children().eq(- rows).addClass(‘rs-top-right’);
/* Execution steps.*/
setTimeout(function () {
grid.children().css({
opacity: op,
transform: ‘rotate(‘+ ro +’deg) translateX(‘+ tx +’px) translateY(‘+ ty +’px) scale(‘+ sc +’)’
});
}, 1);
jQuery(next_image_class).css(‘opacity’, 1);
/* After transition.*/
jQuery(last_gridlet).one(‘webkitTransitionEnd transitionend otransitionend oTransitionEnd mstransitionend’, jQuery.proxy(huge_it_after_trans));
function huge_it_after_trans() {
jQuery(current_image_class).css({‘opacity’ : 0, ‘z-index’: 1});
jQuery(next_image_class).css({‘opacity’ : 1, ‘z-index’ : 2});
cur_img.css(‘opacity’, 1);
grid.remove();
huge_it_trans_in_progress_15 = false;
if (typeof event_stack_15 !== ‘undefined’ && event_stack_15.length > 0) {
key = event_stack_15[0].split(« -« );
event_stack_15.shift();
huge_it_change_image_15(key[0], key[1], data_15, true,false);
}
}
}
function huge_it_sliceH_15(current_image_class, next_image_class, direction) {
if (direction == ‘right’) {
var translateX = ‘min-auto’;
}
else if (direction == ‘left’) {
var translateX = ‘auto’;
}
huge_it_grid_15(1, 8, 0, translateX, 0, 1, 0, current_image_class, next_image_class, direction);
}
function huge_it_sliceV_15(current_image_class, next_image_class, direction) {
if (direction == ‘right’) {
var translateY = ‘min-auto’;
}
else if (direction == ‘left’) {
var translateY = ‘auto’;
}
huge_it_grid_15(10, 1, 0, 0, translateY, 1, 0, current_image_class, next_image_class, direction);
}
function huge_it_slideV_15(current_image_class, next_image_class, direction) {
if (direction == ‘right’) {
var translateY = ‘auto’;
}
else if (direction == ‘left’) {
var translateY = ‘min-auto’;
}
huge_it_grid_15(1, 1, 0, 0, translateY, 1, 1, current_image_class, next_image_class, direction);
}
function huge_it_slideH_15(current_image_class, next_image_class, direction) {
if (direction == ‘right’) {
var translateX = ‘min-auto’;
}
else if (direction == ‘left’) {
var translateX = ‘auto’;
}
huge_it_grid_15(1, 1, 0, translateX, 0, 1, 1, current_image_class, next_image_class, direction);
}
function huge_it_scaleOut_15(current_image_class, next_image_class, direction) {
huge_it_grid_15(1, 1, 0, 0, 0, 1.5, 0, current_image_class, next_image_class, direction);
}
function huge_it_scaleIn_15(current_image_class, next_image_class, direction) {
huge_it_grid_15(1, 1, 0, 0, 0, 0.5, 0, current_image_class, next_image_class, direction);
}
function huge_it_blockScale_15(current_image_class, next_image_class, direction) {
huge_it_grid_15(8, 6, 0, 0, 0, .6, 0, current_image_class, next_image_class, direction);
}
function huge_it_kaleidoscope_15(current_image_class, next_image_class, direction) {
huge_it_grid_15(10, 8, 0, 0, 0, 1, 0, current_image_class, next_image_class, direction);
}
function huge_it_fan_15(current_image_class, next_image_class, direction) {
if (direction == ‘right’) {
var rotate = 45;
var translateX = 100;
}
else if (direction == ‘left’) {
var rotate = -45;
var translateX = -100;
}
huge_it_grid_15(1, 10, rotate, translateX, 0, 1, 0, current_image_class, next_image_class, direction);
}
function huge_it_blindV_15(current_image_class, next_image_class, direction) {
huge_it_grid_15(1, 8, 0, 0, 0, .7, 0, current_image_class, next_image_class);
}
function huge_it_blindH_15(current_image_class, next_image_class, direction) {
huge_it_grid_15(10, 1, 0, 0, 0, .7, 0, current_image_class, next_image_class);
}
function huge_it_random_15(current_image_class, next_image_class, direction) {
var anims = [‘sliceH’, ‘sliceV’, ‘slideH’, ‘slideV’, ‘scaleOut’, ‘scaleIn’, ‘blockScale’, ‘kaleidoscope’, ‘fan’, ‘blindH’, ‘blindV’];
/* Pick a random transition from the anims array.*/
this[« huge_it_ » + anims[Math.floor(Math.random() * anims.length)] + « _15 »](current_image_class, next_image_class, direction);
}

function iterator_15() {
var iterator = 1;

return iterator;
}

function huge_it_change_image_15(current_key, key, data_15, from_effect,clicked) {

if (data_15[key]) {

/* if(huge_video_playing[‘video_is_playing_’+15] && !clicked){
return false;
}*/

if (!from_effect) {
// Change image key.
jQuery(« #huge_it_current_image_key_15 »).val(key);
// if (current_key == ‘-2’) { /* Dots.*/
current_key = jQuery(« .huge_it_slideshow_dots_active_15 »).attr(« data-image_key »);
// }
}

if (huge_it_trans_in_progress_15) {
//errorlogjQuery(« .huge_it_slideshow_image_wrap_15″).after( » –IN TRANSACTION–
« );
event_stack_15.push(current_key + ‘-‘ + key);
return;
}

var direction = ‘right’;
if (huge_it_current_key_15 > key) {
var direction = ‘left’;
}
else if (huge_it_current_key_15 == key) {
return false;
}

// Set active thumbnail position.

huge_it_current_key_15 = key;
//Change image id, title, description.
jQuery(« #huge_it_slideshow_image_15 »).attr(‘data-image_id’, data_15[key][« id »]);

jQuery(« .huge_it_slideshow_title_text_15 »).html(data_15[key][« alt »]);
jQuery(« .huge_it_slideshow_description_text_15 »).html(data_15[key][« description »]);

var current_image_class = « #image_id_15_ » + data_15[current_key][« id »];
var next_image_class = « #image_id_15_ » + data_15[key][« id »];

if(jQuery(current_image_class).find(‘.huge_it_video_frame_15′).length>0) {
var streffect=’fade’;
if(streffect== »cubeV » || streffect== »cubeH » || streffect== »none » || streffect== »fade »){
huge_it_fade_15(current_image_class, next_image_class, direction);
}else{
huge_it_fade_15(current_image_class, next_image_class, direction);
}
}else{
huge_it_fade_15(current_image_class, next_image_class, direction);
}

jQuery(‘.huge_it_slideshow_title_text_15’).removeClass(‘none’);
if(jQuery(‘.huge_it_slideshow_title_text_15’).html()== » »){jQuery(‘.huge_it_slideshow_title_text_15’).addClass(‘none’);}

jQuery(‘.huge_it_slideshow_description_text_15’).removeClass(‘none’);
if(jQuery(‘.huge_it_slideshow_description_text_15’).html()== » »){jQuery(‘.huge_it_slideshow_description_text_15’).addClass(‘none’);}

jQuery(current_image_class).find(‘.huge_it_slideshow_title_text_15’).addClass(‘none’);
jQuery(current_image_class).find(‘.huge_it_slideshow_description_text_15’).addClass(‘none’);

//errorlogjQuery(« .huge_it_slideshow_image_wrap_15 »).after(« –cur-key= »+current_key+ » –cur-img-class= »+current_image_class+ » nxt-img-class= »+next_image_class+ »–« );
huge_it_move_dots_15();
/*** for vimeo and youtube stop pause play etc… ***/
var nextVideo = jQuery(‘#video_id_15_’+key).attr(‘data-element-id’);
var currentVideo = jQuery(‘#video_id_15_’+current_key).attr(‘data-element-id’);/*** add ***/
(currentVideo||nextVideo)&&stopYoutubeVideo(currentVideo,nextVideo);
if((jQuery(‘#player_15_’+current_key)).hasClass(‘huge-it-iframe-vimeo’)) {
jQuery(‘#player_15_’+current_key).vimeo(‘pause’);

}
if((jQuery(‘#player_15_’+key)).hasClass(‘huge-it-iframe-vimeo’) && (‘off’ == ‘on’)) {
jQuery(‘#player_15_’+key).vimeo(‘play’);
}
/*** ***/
window.clearInterval(huge_interval[‘huge_it_playInterval_’+15]);
play_15();
}

}
var staticthumbWidth;
jQuery(window).load(function(){
staticthumbWidth=jQuery(‘#huge_it_thumb_slider>li’).width();

})
function huge_it_popup_resize_15() {

var staticsliderwidth=418;
var sliderwidth=418;
var bodyWidth=jQuery(window).width();
var parentWidth = jQuery(« .huge_it_slideshow_image_wrap_15 »).parent().width();

if(sliderwidth>parentWidth){sliderwidth=parentWidth;}
if(sliderwidth>bodyWidth){sliderwidth=bodyWidth;}
var str=630/(staticsliderwidth-2*0); // alert(str);
var str2 = 100/418;
var sliderDynamicImageHeight = sliderwidth*str-2*0;
var sliderDynamicThumbHeight = 0;

jQuery(‘.huge_it_slideshow_image_wrap_15’).css({‘max-height’:sliderDynamicImageHeight+sliderDynamicThumbHeight});
jQuery(‘.huge_it_slideshow_image_wrap1_15’).css({‘max-height’:sliderDynamicImageHeight});
jQuery(‘.huge_it_slideshow_thumbs_15 li’).css({‘max-height’:sliderDynamicThumbHeight-0});

jQuery(« #huge_it_loading_image_15 »).css({display: « none »});
jQuery(« .huge_it_slideshow_image_wrap1_15 »).css({opacity: 1});
jQuery(« .huge_it_slideshow_image_wrap_15 »).removeClass(« nocolor »);

if(« crop »== »crop »){
jQuery(« .huge_it_slider_ul li img »).each(function(){
if(jQuery(this).prop(‘naturalWidth’)>jQuery(this).prop(‘naturalHeight’))
jQuery(this).css({‘width’:’100%’,’height’:’auto’/*,’top’:’50%’,’left’:’50%’,’transform’:’translate( -50%, -50% )’*/});
else{
jQuery(this).css({‘height’:’100%’,’width’:’auto’/*,’top’:’50%’,’left’:’50%’,’transform’:’translate( -50%, -50% )’*/});
}
});
}
jQuery(« .huge_it_slideshow_image_wrap_15″).css({opacity:1});
}

jQuery(window).load(function () {
jQuery(window).resize(function() {
huge_it_popup_resize_15();
});

jQuery(‘#huge_it_slideshow_left_15’).on(‘click’,function(){
huge_it_change_image_15(parseInt(jQuery(‘#huge_it_current_image_key_15’).val()), (parseInt(jQuery(‘#huge_it_current_image_key_15’).val()) – iterator_15()) >= 0 ? (parseInt(jQuery(‘#huge_it_current_image_key_15’).val()) – iterator_15()) % data_15.length : data_15.length – 1, data_15,false,true);
return false;
});

jQuery(‘#huge_it_slideshow_right_15’).on(‘click’,function(){
huge_it_change_image_15(parseInt(jQuery(‘#huge_it_current_image_key_15’).val()), (parseInt(jQuery(‘#huge_it_current_image_key_15’).val()) + iterator_15()) % data_15.length, data_15,false,true);
return false;
});

huge_it_popup_resize_15();
/* Disable right click.*/
jQuery(‘div[id^= »huge_it_container »]’).bind(« contextmenu », function () {
return false;
});

/*HOVER SLIDESHOW*/
jQuery(« #huge_it_slideshow_image_container_15, .huge_it_slideshow_image_container_15, .huge_it_slideshow_dots_container_15,#huge_it_slideshow_right_15,#huge_it_slideshow_left_15 »).hover(function(){
//errorlogjQuery(« .huge_it_slideshow_image_wrap_15″).after( » — hover —
« );
jQuery(« #huge_it_slideshow_right_15 »).css({‘display’:’inline’});
jQuery(« #huge_it_slideshow_left_15 »).css({‘display’:’inline’});
},function(){
jQuery(« #huge_it_slideshow_right_15 »).css({‘display’:’none’});
jQuery(« #huge_it_slideshow_left_15″).css({‘display’:’none’});
});

if(pausehover== »on » && !/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){
jQuery(« #huge_it_slideshow_image_container_15, .huge_it_slideshow_image_container_15 »).hover(function(){
window.clearInterval(huge_interval[‘huge_it_playInterval_’+15]);
scrolling = false;
},function(){
window.clearInterval(huge_interval[‘huge_it_playInterval_’+15]);
scrolling = true;
play_15();
});
}
play_15();
});
//var huge_play={};

function play_15(){ //alert(5000);
if(scrolling ){
huge_interval[‘huge_it_playInterval_’+15] = setInterval(function () {
//errorlogjQuery(« .huge_it_slideshow_image_wrap_15″).after( » — time left —- « );
var iterator = 1;
if(!IsPlay()) { huge_it_change_image_15(parseInt(jQuery(‘#huge_it_current_image_key_15’).val()), (parseInt(jQuery(‘#huge_it_current_image_key_15’).val()) + iterator) % data_15.length, data_15,false,false);}
}, ‘5000’);
}
if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){
huge_interval[‘huge_it_playInterval_’+15] = setInterval(function () {
var iterator = 1;
if(!IsPlay()) { huge_it_change_image_15(parseInt(jQuery(‘#huge_it_current_image_key_15’).val()), (parseInt(jQuery(‘#huge_it_current_image_key_15’).val()) + iterator) % data_15.length, data_15,false,false);}
}, ‘5000’);
}
}
jQuery(window).focus(function() {
/*event_stack_15 = [];*/
var i_15 = 0;
jQuery(« .huge_it_slider_15 »).children(« div »).each(function () {
if (jQuery(this).css(‘opacity’) == 1) {
jQuery(« #huge_it_current_image_key_15 »).val(i_15);
}
i_15++;
});
});
jQuery(window).blur(function() {
//event_stack_15 = [];
window.clearInterval(huge_interval[‘huge_it_playInterval_’+15]);
});
jQuery(window).focus(function() {
//event_stack_15 = [];
play_15()
});

/******/
jQuery(‘.huge-it-iframe-vimeo.autoplay’).each(function(){

})
/******/

jQuery(document).ready(function($) {

setInterval(function() {
jQuery(‘.huge_it_slider_15’).find(« li »).each(function (){

if($(this).css(« opacity ») == « 1 »){

var img_id=$(this).attr(‘id’);
jQuery(‘.huge_it_slideshow_thumbs_15’).each(function (){
//if ($(this).hasClass(‘bx-clone’)){$(this).removeAttr(‘id’)}
var allListElements = $( ‘li[id=’+img_id+’]’ );

$(this).find(allListElements).not(« .bx-clone »).each(function() {

jQuery(‘.huge_it_slideshow_thumbs_15 li’).find(« .trans_back »).css(‘background’,’rgba(255,255,255,0.3)’);
$(this).find(‘.trans_back’).css(‘background’,’none’);

})

})

}

})
},100)

})

Travail argentique/ Film work

var pausehover= »on »;
var huge_video_playing={};
var autoplayMatch={};
var scrolling;
if(pausehover == ‘on’){
scrolling = false;
}else{
scrolling = true;
}

function IsPlay() {
var playonevideo = 0;
if(typeof HUGEIT_YT_IFRAMES != ‘undefined’)
for( var slide in HUGEIT_YT_IFRAMES) {
if(HUGEIT_YT_IFRAMES[slide][‘state’]) {
playonevideo++;
}
};
return playonevideo;
}

jQuery(window).load(function(){
if(!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))
setTimeout(function(){
jQuery(‘.huge_it_slide_container_44’).mouseleave();
}, 10);
});

var YTdeferred = jQuery.Deferred();
window.onYouTubeIframeAPIReady = function() {
//resolve when youtube callback is called passing YT as a parameter
YTdeferred.resolve(window.YT);

};
YTdeferred.done(function(YT) {
jQuery(‘.huge-it-iframe’).each(function(){

var el_id = jQuery(this).attr(‘data-element-id’);
var quality = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘quality’];

window[‘onPlayerStateChange’+el_id] = function(event) {

if (event.data == YT.PlayerState.PLAYING) {
HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘state’]=’played’;
event.target.setPlaybackQuality(quality);
}
else
HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘state’]= »;
}
});
jQuery(‘.huge-it-iframe’).each(function(){

var id = jQuery(this).attr(‘id’);
var el_id = jQuery(this).attr(‘data-element-id’);
var controls = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘controls’];
var showinfo = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘showinfo’];
var url = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘videoId’];
controls||(controls = 0);
showinfo||(showinfo = 0);
window[‘onPlayerReady’+el_id] = function(event) {
window[‘player_’+el_id][‘setVolume’](volume);
}
var volume = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘volume’];
window[‘player_’+el_id] = new YT.Player(id, {
height: ‘532’,
width: ‘800’,
videoId: url,
playerVars: {
‘controls’: controls,// 0,
‘showinfo’: showinfo,//0,
‘rel’:0
},
events: {
//’onError’: window[‘onPlayerError’+el_id],
‘onReady’: window[‘onPlayerReady’+el_id],
‘onStateChange’: window[‘onPlayerStateChange’+el_id],
‘loop’:1
}
});

});

/*jQuery(‘.huge-it-iframe’).each(function(){

var id = jQuery(this).attr(‘id’);
var el_id = jQuery(this).attr(‘data-element-id’);
var controls = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘controls’];
var showinfo = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘showinfo’];
var url = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘videoId’];
controls||(controls = 0);
showinfo||(showinfo = 0);

window[‘player_’+el_id] = new YT.Player(id, {
height: ‘532’,
width: ‘800’,
videoId: url,
playerVars: {
‘controls’: controls,// 0,
‘showinfo’: showinfo,//0,
‘rel’:0
},
events: {
‘onError’: window[‘onPlayerError’+el_id],
‘onReady’: window[‘onPlayerReady’+el_id],
‘onStateChange’: window[‘onPlayerStateChange’+el_id],
‘loop’:1
}
});
})*/
});

jQuery(function(){

});
function stopYoutubeVideo(currentVideo,nextVideo) {

if(currentVideo) {
(HUGEIT_YT_IFRAMES[‘iframe’+currentVideo][‘state’])?currentVideo&&(window[‘player_’+currentVideo][‘pauseVideo’]()):currentVideo&&(window[‘player_’+currentVideo][‘stopVideo’]());
}
nextVideo&&HUGEIT_YT_IFRAMES[‘iframe’+nextVideo][‘autoplay’]&&(window[‘player_’+nextVideo][‘playVideo’]());
}

function stopVimeoVideo(currentVideo,nextVideo){
jQuery(currentVideo).vimeo(‘pause’);
jQuery(nextVideo).vimeo(‘play’);
}
/*** initialize And youtube autopay ***/

jQuery( window ).load(function() {

(function VimeoOptionsReady(){ //calling funtion once
jQuery(‘.huge-it-iframe-vimeo’).each(function(){
var el_id = jQuery(this).attr(‘data-element-id’);
jQuery(this).vimeo(‘setColor’,HUGEIT_VIMEOS[‘iframe’+el_id][‘color’]);
jQuery(this).vimeo(‘setVolume’,HUGEIT_VIMEOS[‘iframe’+el_id][‘volume’]);
})
}());

if(‘off’ == ‘on’) {

if(jQuery(‘.huge-it-iframe-vimeo.autoplay’).length) {

(function AutoplayVimeo() {
var setplayVideo = setInterval(hugeitframe, 100);
function hugeitframe() {
var vimeo1 = jQuery(‘.huge_it_slider_44 li’).first().find(‘.autoplay’)
if(vimeo1.length) {
vimeo1.vimeo(‘play’);
clearInterval(setplayVideo);
}
};
}());
};

if(jQuery(‘.huge-it-iframe.autoplay’).length) {

(function AutoplayYoutube() {
var setplayVideo = setInterval(hugeitframe, 100);
function hugeitframe() {
jQuery(‘.huge-it-iframe.autoplay’).each(function(){

var el_id = jQuery(this).attr(‘data-element-id’);

if(window[‘player_’+el_id]) {
window[‘player_’+el_id][‘playVideo’]();
clearInterval(setplayVideo);
}
});
}
}());
};

}
});

/*** initialize***/

<!– –>

jQuery(document).ready(function($) {

$(‘.thumb_wrapper’).on(‘click’, function(ev) {
var hugeid=$(this).data(‘rowid’);
var myid=hugeid;
myid=parseInt(myid);
eval(‘player_’+myid+’.playVideo()’)
ev.preventDefault();

});
});

if(typeof sliderID_array == »undefined »){
var sliderID_array=[];
}

var data_44 = [];
var event_stack_44 = [];
/*if(‘off’ == ‘on’)
huge_video_playing[‘video_is_playing_’+44]=true;*/
data_44[« 0 »]=[];data_44[« 0 »][« id »]= »0″;data_44[« 0 »][« image_url »]= »http://picturesandlife.com/wp-content/uploads/2016/10/22-Mode-2000p.jpg »;data_44[« 0 »][« description »]= » »;data_44[« 0 »][« alt »]= » »;data_44[« 1 »]=[];data_44[« 1 »][« id »]= »1″;data_44[« 1 »][« image_url »]= »http://picturesandlife.com/wp-content/uploads/2016/10/25-Mode-2000p.jpg »;data_44[« 1 »][« description »]= » »;data_44[« 1 »][« alt »]= » »;data_44[« 2 »]=[];data_44[« 2 »][« id »]= »2″;data_44[« 2 »][« image_url »]= »http://picturesandlife.com/wp-content/uploads/2016/10/24-Mode-2000p.jpg »;data_44[« 2 »][« description »]= » »;data_44[« 2 »][« alt »]= » »;

var huge_it_trans_in_progress_44 = false;
var huge_it_transition_duration_44 = 1000;
var huge_interval ={};
var id_array_index=sliderID_array.length

var ifhasthumb = »nonav »;
sliderID_array[id_array_index] = // Stop autoplay.
window.clearInterval(huge_interval[‘huge_it_playInterval_’+44]);

var huge_it_current_key_44 =  »;
function huge_it_move_dots_44() {
var image_left = jQuery(« .huge_it_slideshow_dots_active_44 »).position().left;
var image_right = jQuery(« .huge_it_slideshow_dots_active_44 »).position().left + jQuery(« .huge_it_slideshow_dots_active_44″).outerWidth(true);

}
function huge_it_testBrowser_cssTransitions_44() {
return huge_it_testDom_44(‘Transition’);
}
function huge_it_testBrowser_cssTransforms3d_44() {
return huge_it_testDom_44(‘Perspective’);
}
function huge_it_testDom_44(prop) {
// Browser vendor CSS prefixes.
var browserVendors = [ », ‘-webkit-‘, ‘-moz-‘, ‘-ms-‘, ‘-o-‘, ‘-khtml-‘];
// Browser vendor DOM prefixes.
var domPrefixes = [ », ‘Webkit’, ‘Moz’, ‘ms’, ‘O’, ‘Khtml’];
var i = domPrefixes.length;
while (i–) {
if (typeof document.body.style[domPrefixes[i] + prop] !== ‘undefined’) {
return true;
}
}
return false;
}
function huge_it_cube_44(tz, ntx, nty, nrx, nry, wrx, wry, current_image_class, next_image_class, direction) {

/* If browser does not support 3d transforms/CSS transitions.*/
if (!huge_it_testBrowser_cssTransitions_44()) {
jQuery(« .huge_it_slideshow_dots_44 »).removeClass(« huge_it_slideshow_dots_active_44 »).addClass(« huge_it_slideshow_dots_deactive_44 »);
jQuery(« #huge_it_dots_ » + huge_it_current_key_44 + « _44 »).removeClass(« huge_it_slideshow_dots_deactive_44 »).addClass(« huge_it_slideshow_dots_active_44 »);
return huge_it_fallback_44(current_image_class, next_image_class, direction);
}
if (!huge_it_testBrowser_cssTransforms3d_44()) {
return huge_it_fallback3d_44(current_image_class, next_image_class, direction);
}
//alert(current_image_class+’ ‘+next_image_class);
jQuery(current_image_class).css({‘z-index’: ‘none’});
jQuery(next_image_class).css({‘z-index’ : 2});
huge_it_trans_in_progress_44 = true;
/* Set active thumbnail.*/
jQuery(« .huge_it_slideshow_dots_44 »).removeClass(« huge_it_slideshow_dots_active_44 »).addClass(« huge_it_slideshow_dots_deactive_44 »);
jQuery(« #huge_it_dots_ » + huge_it_current_key_44 + « _44 »).removeClass(« huge_it_slideshow_dots_deactive_44 »).addClass(« huge_it_slideshow_dots_active_44 »);
jQuery(« .huge_it_slide_bg_44 »).css(‘perspective’, 1000);
jQuery(current_image_class).css({
transform : ‘translateZ(‘ + tz + ‘px)’,
backfaceVisibility : ‘hidden’
});

jQuery(« .huge_it_slideshow_image_wrap_44,.huge_it_slide_bg_44,.huge_it_slideshow_image_item_44,.huge_it_slideshow_image_second_item_44 « ).css(‘overflow’, ‘visible’);

jQuery(next_image_class).css({
opacity : 1,
filter: ‘Alpha(opacity=100)’,
backfaceVisibility : ‘hidden’,
transform : ‘translateY(‘ + nty + ‘px) translateX(‘ + ntx + ‘px) rotateY(‘+ nry +’deg) rotateX(‘+ nrx +’deg)’
});
jQuery(« .huge_it_slider_44 »).css({
transform: ‘translateZ(-‘ + tz + ‘px)’,
transformStyle: ‘preserve-3d’
});
/* Execution steps.*/
setTimeout(function () {
jQuery(« .huge_it_slider_44 »).css({
transition: ‘all ‘ + huge_it_transition_duration_44 + ‘ms ease-in-out’,
transform: ‘translateZ(-‘ + tz + ‘px) rotateX(‘+ wrx +’deg) rotateY(‘+ wry +’deg)’
});
}, 20);
/* After transition.*/
jQuery(« .huge_it_slider_44 »).one(‘webkitTransitionEnd transitionend otransitionend oTransitionEnd mstransitionend’, jQuery.proxy(huge_it_after_trans));
function huge_it_after_trans() {
/*if (huge_it_from_focus_44) {
huge_it_from_focus_44 = false;
return;
}*/
jQuery(« .huge_it_slide_bg_44,.huge_it_slideshow_image_item_44,.huge_it_slideshow_image_second_item_44 « ).css(‘overflow’, ‘hidden’);
jQuery(« .huge_it_slide_bg_44 »).removeAttr(‘style’);
jQuery(current_image_class).removeAttr(‘style’);
jQuery(next_image_class).removeAttr(‘style’);
jQuery(« .huge_it_slider_44 »).removeAttr(‘style’);
// alert(current_image_class+’ ‘+next_image_class);
jQuery(current_image_class).css({‘opacity’ : 0, filter: ‘Alpha(opacity=0)’, ‘z-index’: 1});
jQuery(next_image_class).css({‘opacity’ : 1, filter: ‘Alpha(opacity=100)’, ‘z-index’ : 2});
// huge_it_change_watermark_container_44();
huge_it_trans_in_progress_44 = false;
if (typeof event_stack_44 !== ‘undefined’ && event_stack_44.length > 0) {
key = event_stack_44[0].split(« -« );
event_stack_44.shift();
huge_it_change_image_44(key[0], key[1], data_44, true,false);
}
}
}
function huge_it_cubeH_44(current_image_class, next_image_class, direction) {
/* Set to half of image width.*/
var dimension = jQuery(current_image_class).width() / 2;
if (direction == ‘right’) {
huge_it_cube_44(dimension, dimension, 0, 0, 90, 0, -90, current_image_class, next_image_class, direction);
}
else if (direction == ‘left’) {
huge_it_cube_44(dimension, -dimension, 0, 0, -90, 0, 90, current_image_class, next_image_class, direction);
}
}
function huge_it_cubeV_44(current_image_class, next_image_class, direction) {
/* Set to half of image height.*/
var dimension = jQuery(current_image_class).height() / 2;
/* If next slide.*/
if (direction == ‘right’) {
huge_it_cube_44(dimension, 0, -dimension, 90, 0, -90, 0, current_image_class, next_image_class, direction);
}
else if (direction == ‘left’) {
huge_it_cube_44(dimension, 0, dimension, -90, 0, 90, 0, current_image_class, next_image_class, direction);
}
}
/* For browsers that does not support transitions.*/
function huge_it_fallback_44(current_image_class, next_image_class, direction) {
huge_it_fade_44(current_image_class, next_image_class, direction);
}
/* For browsers that support transitions, but not 3d transforms (only used if primary transition makes use of 3d-transforms).*/
function huge_it_fallback3d_44(current_image_class, next_image_class, direction) {
huge_it_sliceV_44(current_image_class, next_image_class, direction);
}
function huge_it_none_44(current_image_class, next_image_class, direction) {
jQuery(current_image_class).css({‘opacity’ : 0, ‘z-index’: 1});
jQuery(next_image_class).css({‘opacity’ : 1, ‘z-index’ : 2});

/* Set active thumbnail.*/
jQuery(« .huge_it_slideshow_dots_44 »).removeClass(« huge_it_slideshow_dots_active_44 »).addClass(« huge_it_slideshow_dots_deactive_44 »);
jQuery(« #huge_it_dots_ » + huge_it_current_key_44 + « _44 »).removeClass(« huge_it_slideshow_dots_deactive_44 »).addClass(« huge_it_slideshow_dots_active_44 »);
}
function huge_it_fade_44(current_image_class, next_image_class, direction) {
if (huge_it_testBrowser_cssTransitions_44()) {

jQuery(next_image_class).css(‘transition’, ‘opacity ‘ + huge_it_transition_duration_44 + ‘ms linear’);
jQuery(current_image_class).css(‘transition’, ‘opacity ‘ + huge_it_transition_duration_44 + ‘ms linear’);
jQuery(current_image_class).css({‘opacity’ : 0, ‘z-index’: 1});
jQuery(next_image_class).css({‘opacity’ : 1, ‘z-index’ : 2});
}
else {

jQuery(current_image_class).animate({‘opacity’ : 0, ‘z-index’ : 1}, huge_it_transition_duration_44);
jQuery(next_image_class).animate({
‘opacity’ : 1,
‘z-index’: 2
}, {
duration: huge_it_transition_duration_44,
complete: function () {return false;}
});
// For IE.
jQuery(current_image_class).fadeTo(huge_it_transition_duration_44, 0);
jQuery(next_image_class).fadeTo(huge_it_transition_duration_44, 1);
}

jQuery(« .huge_it_slideshow_dots_44 »).removeClass(« huge_it_slideshow_dots_active_44 »).addClass(« huge_it_slideshow_dots_deactive_44 »);
jQuery(« #huge_it_dots_ » + huge_it_current_key_44 + « _44 »).removeClass(« huge_it_slideshow_dots_deactive_44 »).addClass(« huge_it_slideshow_dots_active_44 »);
}
function huge_it_grid_44(cols, rows, ro, tx, ty, sc, op, current_image_class, next_image_class, direction) {
/* If browser does not support CSS transitions.*/
if (!huge_it_testBrowser_cssTransitions_44()) {
jQuery(« .huge_it_slideshow_dots_44 »).removeClass(« huge_it_slideshow_dots_active_44 »).addClass(« huge_it_slideshow_dots_deactive_44 »);
jQuery(« #huge_it_dots_ » + huge_it_current_key_44 + « _44 »).removeClass(« huge_it_slideshow_dots_deactive_44 »).addClass(« huge_it_slideshow_dots_active_44 »);
return huge_it_fallback_44(current_image_class, next_image_class, direction);

}
huge_it_trans_in_progress_44 = true;
/* Set active thumbnail.*/
jQuery(« .huge_it_slideshow_dots_44 »).removeClass(« huge_it_slideshow_dots_active_44 »).addClass(« huge_it_slideshow_dots_deactive_44 »);
jQuery(« #huge_it_dots_ » + huge_it_current_key_44 + « _44 »).removeClass(« huge_it_slideshow_dots_deactive_44 »).addClass(« huge_it_slideshow_dots_active_44 »);
/* The time (in ms) added to/subtracted from the delay total for each new gridlet.*/
var count = (huge_it_transition_duration_44) / (cols + rows);
/* Gridlet creator (divisions of the image grid, positioned with background-images to replicate the look of an entire slide image when assembled)*/
function huge_it_gridlet(width, height, top, img_top, left, img_left, src, imgWidth, imgHeight, c, r) {
var delay = (c + r) * count;
/* Return a gridlet elem with styles for specific transition.*/
return jQuery(‘

‘).css({
width : width,
height : height,
top : top,
left : left,
backgroundImage : ‘url(« ‘ + src + ‘ »)’,
backgroundColor: jQuery(« .huge_it_slideshow_image_wrap_44 »).css(« background-color »),
/*backgroundColor: rgba(0, 0, 0, 0),*/
backgroundRepeat: ‘no-repeat’,
backgroundPosition : img_left + ‘px ‘ + img_top + ‘px’,
backgroundSize : imgWidth + ‘px ‘ + imgHeight + ‘px’,
transition : ‘all ‘ + huge_it_transition_duration_44 + ‘ms ease-in-out ‘ + delay + ‘ms’,
transform : ‘none’
});
}
/* Get the current slide’s image.*/
var cur_img = jQuery(current_image_class).find(‘img’);
/* Create a grid to hold the gridlets.*/
var grid = jQuery(‘

‘).addClass(‘huge_it_grid_44’);
/* Prepend the grid to the next slide (i.e. so it’s above the slide image).*/
jQuery(current_image_class).prepend(grid);
/* vars to calculate positioning/size of gridlets*/
var cont = jQuery(« .huge_it_slide_bg_44″);
var imgWidth = cur_img.width();
var imgHeight = cur_img.height();
var contWidth = cont.width(),
contHeight = cont.height(),
imgSrc = cur_img.attr(‘src’),/*.replace(‘/thumb’,  »),*/
colWidth = Math.floor(contWidth / cols),
rowHeight = Math.floor(contHeight / rows),
colRemainder = contWidth – (cols * colWidth),
colAdd = Math.ceil(colRemainder / cols),
rowRemainder = contHeight – (rows * rowHeight),
rowAdd = Math.ceil(rowRemainder / rows),
leftDist = 0,
img_leftDist = (jQuery(« .huge_it_slide_bg_44 »).width() – cur_img.width()) / 2;
/* tx/ty args can be passed as ‘auto’/’min-auto’ (meaning use slide width/height or negative slide width/height).*/
tx = tx === ‘auto’ ? contWidth : tx;
tx = tx === ‘min-auto’ ? – contWidth : tx;
ty = ty === ‘auto’ ? contHeight : ty;
ty = ty === ‘min-auto’ ? – contHeight : ty;
/* Loop through cols*/
for (var i = 0; i 0) {
var add = colRemainder >= colAdd ? colAdd : colRemainder;
newColWidth += add;
colRemainder -= add;
}
/* Nested loop to create row gridlets for each col.*/
for (var j = 0; j 0) {
add = newRowRemainder >= rowAdd ? rowAdd : rowRemainder;
newRowHeight += add;
newRowRemainder -= add;
}
/* Create & append gridlet to grid.*/
grid.append(huge_it_gridlet(newColWidth, newRowHeight, topDist, img_topDst, leftDist, img_leftDist, imgSrc, imgWidth, imgHeight, i, j));
topDist += newRowHeight;
img_topDst -= newRowHeight;
}
img_leftDist -= newColWidth;
leftDist += newColWidth;
}
/* Set event listener on last gridlet to finish transitioning.*/
var last_gridlet = grid.children().last();
/* Show grid & hide the image it replaces.*/
grid.show();
cur_img.css(‘opacity’, 0);
/* Add identifying classes to corner gridlets (useful if applying border radius).*/
grid.children().first().addClass(‘rs-top-left’);
grid.children().last().addClass(‘rs-bottom-right’);
grid.children().eq(rows – 1).addClass(‘rs-bottom-left’);
grid.children().eq(- rows).addClass(‘rs-top-right’);
/* Execution steps.*/
setTimeout(function () {
grid.children().css({
opacity: op,
transform: ‘rotate(‘+ ro +’deg) translateX(‘+ tx +’px) translateY(‘+ ty +’px) scale(‘+ sc +’)’
});
}, 1);
jQuery(next_image_class).css(‘opacity’, 1);
/* After transition.*/
jQuery(last_gridlet).one(‘webkitTransitionEnd transitionend otransitionend oTransitionEnd mstransitionend’, jQuery.proxy(huge_it_after_trans));
function huge_it_after_trans() {
jQuery(current_image_class).css({‘opacity’ : 0, ‘z-index’: 1});
jQuery(next_image_class).css({‘opacity’ : 1, ‘z-index’ : 2});
cur_img.css(‘opacity’, 1);
grid.remove();
huge_it_trans_in_progress_44 = false;
if (typeof event_stack_44 !== ‘undefined’ && event_stack_44.length > 0) {
key = event_stack_44[0].split(« -« );
event_stack_44.shift();
huge_it_change_image_44(key[0], key[1], data_44, true,false);
}
}
}
function huge_it_sliceH_44(current_image_class, next_image_class, direction) {
if (direction == ‘right’) {
var translateX = ‘min-auto’;
}
else if (direction == ‘left’) {
var translateX = ‘auto’;
}
huge_it_grid_44(1, 8, 0, translateX, 0, 1, 0, current_image_class, next_image_class, direction);
}
function huge_it_sliceV_44(current_image_class, next_image_class, direction) {
if (direction == ‘right’) {
var translateY = ‘min-auto’;
}
else if (direction == ‘left’) {
var translateY = ‘auto’;
}
huge_it_grid_44(10, 1, 0, 0, translateY, 1, 0, current_image_class, next_image_class, direction);
}
function huge_it_slideV_44(current_image_class, next_image_class, direction) {
if (direction == ‘right’) {
var translateY = ‘auto’;
}
else if (direction == ‘left’) {
var translateY = ‘min-auto’;
}
huge_it_grid_44(1, 1, 0, 0, translateY, 1, 1, current_image_class, next_image_class, direction);
}
function huge_it_slideH_44(current_image_class, next_image_class, direction) {
if (direction == ‘right’) {
var translateX = ‘min-auto’;
}
else if (direction == ‘left’) {
var translateX = ‘auto’;
}
huge_it_grid_44(1, 1, 0, translateX, 0, 1, 1, current_image_class, next_image_class, direction);
}
function huge_it_scaleOut_44(current_image_class, next_image_class, direction) {
huge_it_grid_44(1, 1, 0, 0, 0, 1.5, 0, current_image_class, next_image_class, direction);
}
function huge_it_scaleIn_44(current_image_class, next_image_class, direction) {
huge_it_grid_44(1, 1, 0, 0, 0, 0.5, 0, current_image_class, next_image_class, direction);
}
function huge_it_blockScale_44(current_image_class, next_image_class, direction) {
huge_it_grid_44(8, 6, 0, 0, 0, .6, 0, current_image_class, next_image_class, direction);
}
function huge_it_kaleidoscope_44(current_image_class, next_image_class, direction) {
huge_it_grid_44(10, 8, 0, 0, 0, 1, 0, current_image_class, next_image_class, direction);
}
function huge_it_fan_44(current_image_class, next_image_class, direction) {
if (direction == ‘right’) {
var rotate = 45;
var translateX = 100;
}
else if (direction == ‘left’) {
var rotate = -45;
var translateX = -100;
}
huge_it_grid_44(1, 10, rotate, translateX, 0, 1, 0, current_image_class, next_image_class, direction);
}
function huge_it_blindV_44(current_image_class, next_image_class, direction) {
huge_it_grid_44(1, 8, 0, 0, 0, .7, 0, current_image_class, next_image_class);
}
function huge_it_blindH_44(current_image_class, next_image_class, direction) {
huge_it_grid_44(10, 1, 0, 0, 0, .7, 0, current_image_class, next_image_class);
}
function huge_it_random_44(current_image_class, next_image_class, direction) {
var anims = [‘sliceH’, ‘sliceV’, ‘slideH’, ‘slideV’, ‘scaleOut’, ‘scaleIn’, ‘blockScale’, ‘kaleidoscope’, ‘fan’, ‘blindH’, ‘blindV’];
/* Pick a random transition from the anims array.*/
this[« huge_it_ » + anims[Math.floor(Math.random() * anims.length)] + « _44 »](current_image_class, next_image_class, direction);
}

function iterator_44() {
var iterator = 1;

return iterator;
}

function huge_it_change_image_44(current_key, key, data_44, from_effect,clicked) {

if (data_44[key]) {

/* if(huge_video_playing[‘video_is_playing_’+44] && !clicked){
return false;
}*/

if (!from_effect) {
// Change image key.
jQuery(« #huge_it_current_image_key_44 »).val(key);
// if (current_key == ‘-2’) { /* Dots.*/
current_key = jQuery(« .huge_it_slideshow_dots_active_44 »).attr(« data-image_key »);
// }
}

if (huge_it_trans_in_progress_44) {
//errorlogjQuery(« .huge_it_slideshow_image_wrap_44″).after( » –IN TRANSACTION–
« );
event_stack_44.push(current_key + ‘-‘ + key);
return;
cheap jerseys }

var direction = ‘right’;
if (huge_it_current_key_44 > key) {
var direction = ‘left’;
}
else if (huge_it_current_key_44 == key) {
return false;
}

// Set active thumbnail position.

huge_it_current_key_44 = key;
//Change image id, title, description.
jQuery(« #huge_it_slideshow_image_44 »).attr(‘data-image_id’, data_44[key][« id »]);

jQuery(« .huge_it_slideshow_title_text_44 »).html(data_44[key][« alt »]);
jQuery(« .huge_it_slideshow_description_text_44 »).html(data_44[key][« description »]);

var current_image_class = « #image_id_44_ » + data_44[current_key][« id »];
var next_image_class = « #image_id_44_ » + data_44[key][« id »];

if(jQuery(current_image_class).find(‘.huge_it_video_frame_44′).length>0) {
var streffect=’fade’;
if(streffect== »cubeV » || streffect== »cubeH » || streffect== »none » || streffect== »fade »){
huge_it_fade_44(current_image_class, next_image_class, direction);
}else{
huge_it_fade_44(current_image_class, next_image_class, direction);
}
}else{
huge_it_fade_44(current_image_class, next_image_class, direction);
}

jQuery(‘.huge_it_slideshow_title_text_44’).removeClass(‘none’);
if(jQuery(‘.huge_it_slideshow_title_text_44’).html()== » »){jQuery(‘.huge_it_slideshow_title_text_44’).addClass(‘none’);}

jQuery(‘.huge_it_slideshow_description_text_44’).removeClass(‘none’);
if(jQuery(‘.huge_it_slideshow_description_text_44’).html()== » »){jQuery(‘.huge_it_slideshow_description_text_44’).addClass(‘none’);}

jQuery(current_image_class).find(‘.huge_it_slideshow_title_text_44’).addClass(‘none’);
jQuery(current_image_class).find(‘.huge_it_slideshow_description_text_44’).addClass(‘none’);

//errorlogjQuery(« .huge_it_slideshow_image_wrap_44 »).after(« –cur-key= »+current_key+ » –cur-img-class= »+current_image_class+ » nxt-img-class= »+next_image_class+ »–« );
huge_it_move_dots_44();
/*** for vimeo and youtube stop pause play etc… ***/
var nextVideo = jQuery(‘#video_id_44_’+key).attr(‘data-element-id’);
var currentVideo = jQuery(‘#video_id_44_’+current_key).attr(‘data-element-id’);/*** add ***/
(currentVideo||nextVideo)&&stopYoutubeVideo(currentVideo,nextVideo);
if((jQuery(‘#player_44_’+current_key)).hasClass(‘huge-it-iframe-vimeo’)) {
jQuery(‘#player_44_’+current_key).vimeo(‘pause’);

}
if((jQuery(‘#player_44_’+key)).hasClass(‘huge-it-iframe-vimeo’) && (‘off’ == ‘on’)) {
jQuery(‘#player_44_’+key).vimeo(‘play’);
}
/*** ***/
window.clearInterval(huge_interval[‘huge_it_playInterval_’+44]);
play_44();
}

}
var staticthumbWidth;
jQuery(window).load(function(){
staticthumbWidth=jQuery(‘#huge_it_thumb_slider>li’).width();

})
function huge_it_popup_resize_44() {

var staticsliderwidth=800;
var sliderwidth=800;
var bodyWidth=jQuery(window).width();
var parentWidth = jQuery(« .huge_it_slideshow_image_wrap_44 »).parent().width();

if(sliderwidth>parentWidth){sliderwidth=parentWidth;}
if(sliderwidth>bodyWidth){sliderwidth=bodyWidth;}
var str=532/(staticsliderwidth-2*0); // alert(str);
var str2 = 100/800;
var sliderDynamicImageHeight = sliderwidth*str-2*0;
var sliderDynamicThumbHeight = 0;

jQuery(‘.huge_it_slideshow_image_wrap_44’).css({‘max-height’:sliderDynamicImageHeight+sliderDynamicThumbHeight});
jQuery(‘.huge_it_slideshow_image_wrap1_44’).css({‘max-height’:sliderDynamicImageHeight});
jQuery(‘.huge_it_slideshow_thumbs_44 li’).css({‘max-height’:sliderDynamicThumbHeight-0});

jQuery(« #huge_it_loading_image_44 »).css({display: « none »});
jQuery(« .huge_it_slideshow_image_wrap1_44 »).css({opacity: 1});
jQuery(« .huge_it_slideshow_image_wrap_44 »).removeClass(« nocolor »);

if(« crop »== »crop »){
jQuery(« .huge_it_slider_ul li img »).each(function(){
if(jQuery(this).prop(‘naturalWidth’)>jQuery(this).prop(‘naturalHeight’))
jQuery(this).css({‘width’:’100%’,’height’:’auto’/*,’top’:’50%’,’left’:’50%’,’transform’:’translate( -50%, -50% )’*/});
else{
jQuery(this).css({‘height’:’100%’,’width’:’auto’/*,’top’:’50%’,’left’:’50%’,’transform’:’translate( -50%, -50% )’*/});
}
});
}
jQuery(« .huge_it_slideshow_image_wrap_44″).css({opacity:1});
}

jQuery(window).load(function () {
jQuery(window).resize(function() {
huge_it_popup_resize_44();
});

jQuery(‘#huge_it_slideshow_left_44’).on(‘click’,function(){
huge_it_change_image_44(parseInt(jQuery(‘#huge_it_current_image_key_44’).val()), (parseInt(jQuery(‘#huge_it_current_image_key_44’).val()) – iterator_44()) >= 0 ? (parseInt(jQuery(‘#huge_it_current_image_key_44’).val()) – iterator_44()) % data_44.length : data_44.length – 1, data_44,false,true);
return false;
});

jQuery(‘#huge_it_slideshow_right_44’).on(‘click’,function(){
huge_it_change_image_44(parseInt(jQuery(‘#huge_it_current_image_key_44’).val()), (parseInt(jQuery(‘#huge_it_current_image_key_44’).val()) + iterator_44()) % data_44.length, data_44,false,true);
return false;
});

huge_it_popup_resize_44();
/* Disable right click.*/
jQuery(‘div[id^= »huge_it_container »]’).bind(« contextmenu », function () {
return false;
});

/*HOVER SLIDESHOW*/
jQuery(« #huge_it_slideshow_image_container_44, .huge_it_slideshow_image_container_44, .huge_it_slideshow_dots_container_44,#huge_it_slideshow_right_44,#huge_it_slideshow_left_44 »).hover(function(){
//errorlogjQuery(« .huge_it_slideshow_image_wrap_44″).after( » — hover —
« );
jQuery(« #huge_it_slideshow_right_44 »).css({‘display’:’inline’});
jQuery(« #huge_it_slideshow_left_44 »).css({‘display’:’inline’});
},function(){
jQuery(« #huge_it_slideshow_right_44 »).css({‘display’:’none’});
jQuery(« #huge_it_slideshow_left_44″).css({‘display’:’none’});
});

if(pausehover== »on » && !/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){
jQuery(« #huge_it_slideshow_image_container_44, .huge_it_slideshow_image_container_44 »).hover(function(){
window.clearInterval(huge_interval[‘huge_it_playInterval_’+44]);
scrolling = false;
},function(){
window.clearInterval(huge_interval[‘huge_it_playInterval_’+44]);
scrolling = true;
play_44();
});
}
play_44();
});
//var huge_play={};

function play_44(){ //alert(5000);
if(scrolling ){
huge_interval[‘huge_it_playInterval_’+44] = setInterval(function () {
//errorlogjQuery(« .huge_it_slideshow_image_wrap_44″).after( » — time left —- « );
var iterator = 1;
if(!IsPlay()) { huge_it_change_image_44(parseInt(jQuery(‘#huge_it_current_image_key_44’).val()), (parseInt(jQuery(‘#huge_it_current_image_key_44’).val()) + iterator) % data_44.length, data_44,false,false);}
}, ‘5000’);
}
if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){
huge_interval[‘huge_it_playInterval_’+44] = setInterval(function () {
var iterator = 1;
if(!IsPlay()) { huge_it_change_image_44(parseInt(jQuery(‘#huge_it_current_image_key_44’).val()), (parseInt(jQuery(‘#huge_it_current_image_key_44’).val()) + iterator) % data_44.length, data_44,false,false);}
}, ‘5000’);
}
}
jQuery(window).focus(function() {
/*event_stack_44 = [];*/
var i_44 = 0;
jQuery(« .huge_it_slider_44 »).children(« div »).each(function () {
if (jQuery(this).css(‘opacity’) == 1) {
jQuery(« #huge_it_current_image_key_44 »).val(i_44);
}
i_44++;
});
});
jQuery(window).blur(function() {
//event_stack_44 = [];
window.clearInterval(huge_interval[‘huge_it_playInterval_’+44]);
});
jQuery(window).focus(function() {
//event_stack_44 = [];
play_44()
});

/******/
jQuery(‘.huge-it-iframe-vimeo.autoplay’).each(function(){

})
/******/

jQuery(document).ready(function($) {

setInterval(function() {
jQuery(‘.huge_it_slider_44’).find(« li »).each(function (){

if($(this).css(« opacity ») == « 1 »){

var img_id=$(this).attr(‘id’);
jQuery(‘.huge_it_slideshow_thumbs_44’).each(function (){
//if ($(this).hasClass(‘bx-clone’)){$(this).removeAttr(‘id’)}
var allListElements = $( ‘li[id=’+img_id+’]’ );

$(this).find(allListElements).not(« .bx-clone »).each(function() {

jQuery(‘.huge_it_slideshow_thumbs_44 li’).find(« .trans_back »).css(‘background’,’rgba(255,255,255,0.3)’);
$(this).find(‘.trans_back’).css(‘background’,’none’);

})

})

}

})
},100)

})

Sur le un toit de la vieille ville de Nice / On a old Nice town roof

var pausehover= »on »;
var huge_video_playing={};
var autoplayMatch={};
var scrolling;
if(pausehover == ‘on’){
scrolling = false;
}else{
scrolling = true;
}

function IsPlay() {
var playonevideo = 0;
if(typeof HUGEIT_YT_IFRAMES != ‘undefined’)
for( var slide in HUGEIT_YT_IFRAMES) {
if(HUGEIT_YT_IFRAMES[slide][‘state’]) {
playonevideo++;
}
};
return playonevideo;
}

jQuery(window).load(function(){
if(!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))
setTimeout(function(){
jQuery(‘.huge_it_slide_container_23’).mouseleave();
}, 10);
});

var YTdeferred = jQuery.Deferred();
window.onYouTubeIframeAPIReady = function() {
//resolve when youtube callback is called passing YT as a parameter
YTdeferred.resolve(window.YT);

};
YTdeferred.done(function(YT) {
jQuery(‘.huge-it-iframe’).each(function(){

var el_id = jQuery(this).attr(‘data-element-id’);
var quality = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘quality’];

window[‘onPlayerStateChange’+el_id] = function(event) {

if (event.data == YT.PlayerState.PLAYING) {
HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘state’]=’played’;
event.target.setPlaybackQuality(quality);
}
else
HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘state’]= »;
}
});
jQuery(‘.huge-it-iframe’).each(function(){

var id = jQuery(this).attr(‘id’);
var el_id = jQuery(this).attr(‘data-element-id’);
var controls = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘controls’];
var showinfo = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘showinfo’];
var url = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘videoId’];
controls||(controls = 0);
showinfo||(showinfo = 0);
window[‘onPlayerReady’+el_id] = function(event) {
window[‘player_’+el_id][‘setVolume’](volume);
}
var volume = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘volume’];
window[‘player_’+el_id] = new YT.Player(id, {
height: ‘532’,
width: ‘800’,
videoId: url,
playerVars: {
‘controls’: controls,// 0,
‘showinfo’: showinfo,//0,
‘rel’:0
},
events: {
//’onError’: window[‘onPlayerError’+el_id],
‘onReady’: window[‘onPlayerReady’+el_id],
‘onStateChange’: window[‘onPlayerStateChange’+el_id],
‘loop’:1
}
});

});

/*jQuery(‘.huge-it-iframe’).each(function(){

var id = jQuery(this).attr(‘id’);
var el_id = jQuery(this).attr(‘data-element-id’);
var controls = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘controls’];
var showinfo = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘showinfo’];
var url = HUGEIT_YT_IFRAMES[‘iframe’+el_id][‘videoId’];
controls||(controls = 0);
showinfo||(showinfo = 0);

window[‘player_’+el_id] = new YT.Player(id, {
height: ‘532’,
width: ‘800’,
videoId: url,
playerVars: {
‘controls’: controls,// 0,
‘showinfo’: showinfo,//0,
‘rel’:0
},
events: {
‘onError’: window[‘onPlayerError’+el_id],
‘onReady’: window[‘onPlayerReady’+el_id],
‘onStateChange’: window[‘onPlayerStateChange’+el_id],
‘loop’:1
}
});
})*/
});

jQuery(function(){

});
function stopYoutubeVideo(currentVideo,nextVideo) {

if(currentVideo) {
(HUGEIT_YT_IFRAMES[‘iframe’+currentVideo][‘state’])?currentVideo&&(window[‘player_’+currentVideo][‘pauseVideo’]()):currentVideo&&(window[‘player_’+currentVideo][‘stopVideo’]());
}
nextVideo&&HUGEIT_YT_IFRAMES[‘iframe’+nextVideo][‘autoplay’]&&(window[‘player_’+nextVideo][‘playVideo’]());
}

function stopVimeoVideo(currentVideo,nextVideo){
jQuery(currentVideo).vimeo(‘pause’);
jQuery(nextVideo).vimeo(‘play’);
}
/*** initialize And youtube autopay ***/

jQuery( window ).load(function() {

(function VimeoOptionsReady(){ //calling funtion once
jQuery(‘.huge-it-iframe-vimeo’).each(function(){
var el_id = jQuery(this).attr(‘data-element-id’);
jQuery(this).vimeo(‘setColor’,HUGEIT_VIMEOS[‘iframe’+el_id][‘color’]);
jQuery(this).vimeo(‘setVolume’,HUGEIT_VIMEOS[‘iframe’+el_id][‘volume’]);
})
}());

if(‘off’ == ‘on’) {

if(jQuery(‘.huge-it-iframe-vimeo.autoplay’).length) {

(function AutoplayVimeo() {
var setplayVideo = setInterval(hugeitframe, 100);
function hugeitframe() {
var vimeo1 = jQuery(‘.huge_it_slider_23 li’).first().find(‘.autoplay’)
if(vimeo1.length) {
vimeo1.vimeo(‘play’);
clearInterval(setplayVideo);
}
};
}());
};

if(jQuery(‘.huge-it-iframe.autoplay’).length) {

(function AutoplayYoutube() {
var setplayVideo = setInterval(hugeitframe, 100);
function hugeitframe() {
jQuery(‘.huge-it-iframe.autoplay’).each(function(){

var el_id = jQuery(this).attr(‘data-element-id’);

if(window[‘player_’+el_id]) {
window[‘player_’+el_id][‘playVideo’]();
clearInterval(setplayVideo);
}
});
}
}());
};

}
});

/*** initialize***/

<!– –>

jQuery(document).ready(function($) {

$(‘.thumb_wrapper’).on(‘click’, function(ev) {
var hugeid=$(this).data(‘rowid’);
var myid=hugeid;
myid=parseInt(myid);
eval(‘player_’+myid+’.playVideo()’)
ev.preventDefault();

});
});

if(typeof sliderID_array == »undefined »){
var sliderID_array=[];
}

var data_23 = [];
var event_stack_23 = [];
/*if(‘off’ == ‘on’)
huge_video_playing[‘video_is_playing_’+23]=true;*/
data_23[« 0 »]=[];data_23[« 0 »][« id »]= »0″;data_23[« 0 »][« image_url »]= »http://picturesandlife.com/wp-content/uploads/2016/10/09Portrait-Mode.jpg »;data_23[« 0 »][« description »]= » »;data_23[« 0 »][« alt »]= » »;data_23[« 1 »]=[];data_23[« 1 »][« id »]= »1″;data_23[« 1 »][« image_url »]= »http://picturesandlife.com/wp-content/uploads/2016/10/16-Mode-2000p.jpg »;data_23[« 1 »][« description »]= » »;data_23[« 1 »][« alt »]= » »;data_23[« 2 »]=[];data_23[« 2 »][« id »]= »2″;data_23[« 2 »][« image_url »]= »http://picturesandlife.com/wp-content/uploads/2016/10/07-Mode-2000p.jpg »;data_23[« 2 »][« description »]= » »;data_23[« 2 »][« alt »]= » »;data_23[« 3 »]=[];data_23[« 3 »][« id »]= »3″;data_23[« 3 »][« image_url »]= »http://picturesandlife.com/wp-content/uploads/2016/10/16-Mode-2000p.jpg »;data_23[« 3 »][« description »]= » »;data_23[« 3 »][« alt »]= » »;

var huge_it_trans_in_progress_23 = false;
var huge_it_transition_duration_23 = 1000;
var huge_interval ={};
var id_array_index=sliderID_array.length

var ifhasthumb = »nonav »;
sliderID_array[id_array_index] = // Stop autoplay.
window.clearInterval(huge_interval[‘huge_it_playInterval_’+23]);

var huge_it_current_key_23 =  »;
function huge_it_move_dots_23() {
var image_left = jQuery(« .huge_it_slideshow_dots_active_23 »).position().left;
var image_right = jQuery(« .huge_it_slideshow_dots_active_23 »).position().left + jQuery(« .huge_it_slideshow_dots_active_23″).outerWidth(true);

}
function huge_it_testBrowser_cssTransitions_23() {
return huge_it_testDom_23(‘Transition’);
}
function huge_it_testBrowser_cssTransforms3d_23() {
return huge_it_testDom_23(‘Perspective’);
}
function huge_it_testDom_23(prop) {
// Browser vendor CSS prefixes.
var browserVendors = [ », ‘-webkit-‘, ‘-moz-‘, ‘-ms-‘, ‘-o-‘, ‘-khtml-‘];
// Browser vendor DOM prefixes.
var domPrefixes = [ », ‘Webkit’, ‘Moz’, ‘ms’, ‘O’, ‘Khtml’];
var i = domPrefixes.length;
while (i–) {
if (typeof document.body.style[domPrefixes[i] + prop] !== ‘undefined’) {
return true;
}
}
return false;
}
function huge_it_cube_23(tz, ntx, nty, nrx, nry, wrx, wry, current_image_class, next_image_class, direction) {

/* If browser does not support 3d transforms/CSS transitions.*/
if (!huge_it_testBrowser_cssTransitions_23()) {
jQuery(« .huge_it_slideshow_dots_23 »).removeClass(« huge_it_slideshow_dots_active_23 »).addClass(« huge_it_slideshow_dots_deactive_23 »);
jQuery(« #huge_it_dots_ » + huge_it_current_key_23 + « _23 »).removeClass(« huge_it_slideshow_dots_deactive_23 »).addClass(« huge_it_slideshow_dots_active_23 »);
return huge_it_fallback_23(current_image_class, next_image_class, direction);
}
if (!huge_it_testBrowser_cssTransforms3d_23()) {
return huge_it_fallback3d_23(current_image_class, next_image_class, direction);
}
//alert(current_image_class+’ ‘+next_image_class);
jQuery(current_image_class).css({‘z-index’: ‘none’});
jQuery(next_image_class).css({‘z-index’ : 2});
huge_it_trans_in_progress_23 = true;
/* Set active thumbnail.*/
jQuery(« .huge_it_slideshow_dots_23 »).removeClass(« huge_it_slideshow_dots_active_23 »).addClass(« huge_it_slideshow_dots_deactive_23 »);
jQuery(« #huge_it_dots_ » + huge_it_current_key_23 + « _23 »).removeClass(« huge_it_slideshow_dots_deactive_23 »).addClass(« huge_it_slideshow_dots_active_23 »);
jQuery(« .huge_it_slide_bg_23 »).css(‘perspective’, 1000);
jQuery(current_image_class).css({
transform : ‘translateZ(‘ + tz + ‘px)’,
backfaceVisibility : ‘hidden’
});

jQuery(« .huge_it_slideshow_image_wrap_23,.huge_it_slide_bg_23,.huge_it_slideshow_image_item_23,.huge_it_slideshow_image_second_item_23 « ).css(‘overflow’, ‘visible’);

jQuery(next_image_class).css({
opacity : 1,
filter: ‘Alpha(opacity=100)’,
backfaceVisibility : ‘hidden’,
transform : ‘translateY(‘ + nty + ‘px) translateX(‘ + ntx + ‘px) rotateY(‘+ nry +’deg) rotateX(‘+ nrx +’deg)’
});
jQuery(« .huge_it_slider_23 »).css({
transform: ‘translateZ(-‘ + tz + ‘px)’,
transformStyle: ‘preserve-3d’
});
/* Execution steps.*/
setTimeout(function () {
jQuery(« .huge_it_slider_23 »).css({
transition: ‘all ‘ + huge_it_transition_duration_23 + ‘ms ease-in-out’,
transform: ‘translateZ(-‘ + tz + ‘px) rotateX(‘+ wrx +’deg) rotateY(‘+ wry +’deg)’
});
}, 20);
/* After transition.*/
jQuery(« .huge_it_slider_23 »).one(‘webkitTransitionEnd transitionend otransitionend oTransitionEnd mstransitionend’, jQuery.proxy(huge_it_after_trans));
function huge_it_after_trans() {
/*if (huge_it_from_focus_23) {
huge_it_from_focus_23 = false;
return;
}*/
jQuery(« .huge_it_slide_bg_23,.huge_it_slideshow_image_item_23,.huge_it_slideshow_image_second_item_23 « ).css(‘overflow’, ‘hidden’);
jQuery(« .huge_it_slide_bg_23 »).removeAttr(‘style’);
jQuery(current_image_class).removeAttr(‘style’);
jQuery(next_image_class).removeAttr(‘style’);
jQuery(« .huge_it_slider_23 »).removeAttr(‘style’);
// alert(current_image_class+’ ‘+next_image_class);
jQuery(current_image_class).css({‘opacity’ : 0, filter: ‘Alpha(opacity=0)’, ‘z-index’: 1});
jQuery(next_image_class).css({‘opacity’ : 1, filter: ‘Alpha(opacity=100)’, ‘z-index’ : 2});
// huge_it_change_watermark_container_23();
huge_it_trans_in_progress_23 = false;
if (typeof event_stack_23 !== ‘undefined’ && event_stack_23.length > 0) {
key = event_stack_23[0].split(« -« );
event_stack_23.shift();
huge_it_change_image_23(key[0], key[1], data_23, true,false);
}
}
}
function huge_it_cubeH_23(current_image_class, next_image_class, direction) {
/* Set to half of image width.*/
var dimension = jQuery(current_image_class).width() / 2;
if (direction == ‘right’) {
huge_it_cube_23(dimension, dimension, 0, 0, 90, 0, -90, current_image_class, next_image_class, direction);
}
else if (direction == ‘left’) {
huge_it_cube_23(dimension, -dimension, 0, 0, -90, 0, 90, current_image_class, next_image_class, direction);
}
}
function huge_it_cubeV_23(current_image_class, next_image_class, direction) {
/* Set to half of image height.*/
var dimension = jQuery(current_image_class).height() / 2;
/* If next slide.*/
if (direction == ‘right’) {
huge_it_cube_23(dimension, 0, -dimension, 90, 0, -90, 0, current_image_class, next_image_class, direction);
}
else if (direction == ‘left’) {
huge_it_cube_23(dimension, 0, dimension, -90, 0, 90, 0, current_image_class, next_image_class, direction);
}
}
/* For browsers that does not support transitions.*/
function huge_it_fallback_23(current_image_class, next_image_class, direction) {
huge_it_fade_23(current_image_class, next_image_class, direction);
}
/* For browsers that support transitions, but not 3d transforms (only used if primary transition makes use of 3d-transforms).*/
function huge_it_fallback3d_23(current_image_class, next_image_class, direction) {
huge_it_sliceV_23(current_image_class, next_image_class, direction);
}
function huge_it_none_23(current_image_class, next_image_class, direction) {
jQuery(current_image_class).css({‘opacity’ : 0, ‘z-index’: 1});
jQuery(next_image_class).css({‘opacity’ : 1, ‘z-index’ : 2});

/* Set active thumbnail.*/
jQuery(« .huge_it_slideshow_dots_23 »).removeClass(« huge_it_slideshow_dots_active_23 »).addClass(« huge_it_slideshow_dots_deactive_23 »);
jQuery(« #huge_it_dots_ » + huge_it_current_key_23 + « _23 »).removeClass(« huge_it_slideshow_dots_deactive_23 »).addClass(« huge_it_slideshow_dots_active_23 »);
}
function huge_it_fade_23(current_image_class, next_image_class, direction) {
if (huge_it_testBrowser_cssTransitions_23()) {

jQuery(next_image_class).css(‘transition’, ‘opacity ‘ + huge_it_transition_duration_23 + ‘ms linear’);
jQuery(current_image_class).css(‘transition’, ‘opacity ‘ + huge_it_transition_duration_23 + ‘ms linear’);
jQuery(current_image_class).css({‘opacity’ : 0, ‘z-index’: 1});
jQuery(next_image_class).css({‘opacity’ : 1, ‘z-index’ : 2});
}
else {

jQuery(current_image_class).animate({‘opacity’ : 0, ‘z-index’ : 1}, huge_it_transition_duration_23);
jQuery(next_image_class).animate({
‘opacity’ : 1,
‘z-index’: 2
}, {
duration: huge_it_transition_duration_23,
complete: function () {return false;}
});
// For IE.
jQuery(current_image_class).fadeTo(huge_it_transition_duration_23, 0);
jQuery(next_image_class).fadeTo(huge_it_transition_duration_23, 1);
}

jQuery(« .huge_it_slideshow_dots_23 »).removeClass(« huge_it_slideshow_dots_active_23 »).addClass(« huge_it_slideshow_dots_deactive_23 »);
jQuery(« #huge_it_dots_ » + huge_it_current_key_23 + « _23 »).removeClass(« huge_it_slideshow_dots_deactive_23 »).addClass(« huge_it_slideshow_dots_active_23 »);
}
function huge_it_grid_23(cols, rows, ro, tx, ty, sc, op, current_image_class, next_image_class, direction) {
/* If browser does not support CSS transitions.*/
if (!huge_it_testBrowser_cssTransitions_23()) {
jQuery(« .huge_it_slideshow_dots_23 »).removeClass(« huge_it_slideshow_dots_active_23 »).addClass(« huge_it_slideshow_dots_deactive_23 »);
jQuery(« #huge_it_dots_ » + huge_it_current_key_23 + « _23 »).removeClass(« huge_it_slideshow_dots_deactive_23 »).addClass(« huge_it_slideshow_dots_active_23 »);
return huge_it_fallback_23(current_image_class, next_image_class, direction);

}
huge_it_trans_in_progress_23 = true;
/* Set active thumbnail.*/
jQuery(« .huge_it_slideshow_dots_23 »).removeClass(« huge_it_slideshow_dots_active_23 »).addClass(« huge_it_slideshow_dots_deactive_23 »);
jQuery(« #huge_it_dots_ » + huge_it_current_key_23 + « _23 »).removeClass(« huge_it_slideshow_dots_deactive_23 »).addClass(« huge_it_slideshow_dots_active_23 »);
/* The time (in ms) added to/subtracted from the delay total for each new gridlet.*/
var count = (huge_it_transition_duration_23) / (cols + rows);
/* Gridlet creator (divisions of the image grid, positioned with background-images to replicate the look of an entire slide image when assembled)*/
function huge_it_gridlet(width, height, top, img_top, left, img_left, src, imgWidth, imgHeight, c, r) {
var delay = (c + r) * count;
/* Return a gridlet elem with styles for specific transition.*/
return jQuery(‘

‘).css({
width : width,
height : height,
top : top,
left : left,
backgroundImage : ‘url(« ‘ + src + ‘ »)’,
backgroundColor: jQuery(« .huge_it_slideshow_image_wrap_23 »).css(« background-color »),
/*backgroundColor: rgba(0, 0, 0, 0),*/
backgroundRepeat: ‘no-repeat’,
backgroundPosition : img_left + ‘px ‘ + img_top + ‘px’,
backgroundSize : imgWidth + ‘px ‘ + imgHeight + ‘px’,
transition : ‘all ‘ + huge_it_transition_duration_23 + ‘ms ease-in-out ‘ + delay + ‘ms’,
transform : ‘none’
});
}
/* Get the current slide’s image.*/
var cur_img = jQuery(current_image_class).find(‘img’);
/* Create a grid to hold the gridlets.*/
var grid = jQuery(‘

‘).addClass(‘huge_it_grid_23’);
/* Prepend the grid to the next slide (i.e. so it’s above the slide image).*/
jQuery(current_image_class).prepend(grid);
/* vars to calculate positioning/size of gridlets*/
var cont = jQuery(« .huge_it_slide_bg_23″);
var imgWidth = cur_img.width();
var imgHeight = cur_img.height();
var contWidth = cont.width(),
contHeight = cont.height(),
imgSrc = cur_img.attr(‘src’),/*.replace(‘/thumb’,  »),*/
colWidth = Math.floor(contWidth / cols),
rowHeight = Math.floor(contHeight / rows),
colRemainder = contWidth – (cols * colWidth),
colAdd = Math.ceil(colRemainder / cols),
rowRemainder = contHeight – (rows * rowHeight),
rowAdd = Math.ceil(rowRemainder / rows),
leftDist = 0,
img_leftDist = (jQuery(« .huge_it_slide_bg_23 »).width() – cur_img.width()) / 2;
/* tx/ty args can be passed as ‘auto’/’min-auto’ (meaning use slide width/height or negative slide width/height).*/
tx = tx === ‘auto’ ? contWidth : tx;
tx = tx === ‘min-auto’ ? – contWidth : tx;
ty = ty === ‘auto’ ? contHeight : ty;
ty = ty === ‘min-auto’ ? – contHeight : ty;
/* Loop through cols*/
for (var i = 0; i 0) {
var add = colRemainder >= colAdd ? colAdd : colRemainder;
newColWidth += add;
colRemainder -= add;
}
/* Nested loop to create row gridlets for each col.*/
for (var j = 0; j 0) {
add = newRowRemainder >= rowAdd ? rowAdd : rowRemainder;
newRowHeight += add;
newRowRemainder -= add;
}
/* Create & append gridlet to grid.*/
grid.append(huge_it_gridlet(newColWidth, newRowHeight, topDist, img_topDst, leftDist, img_leftDist, imgSrc, imgWidth, imgHeight, i, j));
topDist += newRowHeight;
img_topDst -= newRowHeight;
}
img_leftDist -= newColWidth;
leftDist += newColWidth;
}
/* Set event listener on last gridlet to finish transitioning.*/
var last_gridlet = grid.children().last();
/* Show grid & hide the image it replaces.*/
grid.show();
cur_img.css(‘opacity’, 0);
/* Add identifying classes to corner gridlets (useful if applying border radius).*/
grid.children().first().addClass(‘rs-top-left’);
grid.children().last().addClass(‘rs-bottom-right’);
grid.children().eq(rows – 1).addClass(‘rs-bottom-left’);
grid.children().eq(- rows).addClass(‘rs-top-right’);
/* Execution steps.*/
setTimeout(function () {
grid.children().css({
opacity: op,
transform: ‘rotate(‘+ ro +’deg) translateX(‘+ tx +’px) translateY(‘+ ty +’px) scale(‘+ sc +’)’
});
}, 1);
jQuery(next_image_class).css(‘opacity’, 1);
/* After transition.*/
jQuery(last_gridlet).one(‘webkitTransitionEnd transitionend otransitionend oTransitionEnd mstransitionend’, jQuery.proxy(huge_it_after_trans));
function huge_it_after_trans() {
jQuery(current_image_class).css({‘opacity’ : 0, ‘z-index’: 1});
jQuery(next_image_class).css({‘opacity’ : 1, ‘z-index’ : 2});
cur_img.css(‘opacity’, 1);
grid.remove();
huge_it_trans_in_progress_23 = false;
if (typeof event_stack_23 !== ‘undefined’ && event_stack_23.length > 0) {
key = event_stack_23[0].split(« -« );
event_stack_23.shift();
huge_it_change_image_23(key[0], key[1], data_23, true,false);
}
}
}
function huge_it_sliceH_23(current_image_class, next_image_class, direction) {
if (direction == ‘right’) {
var translateX = ‘min-auto’;
}
else if (direction == ‘left’) {
var translateX = ‘auto’;
}
huge_it_grid_23(1, 8, 0, translateX, 0, 1, 0, current_image_class, next_image_class, direction);
}
function huge_it_sliceV_23(current_image_class, next_image_class, direction) {
if (direction == ‘right’) {
var translateY = ‘min-auto’;
}
else if (direction == ‘left’) {
var translateY = ‘auto’;
}
huge_it_grid_23(10, 1, 0, 0, translateY, 1, 0, current_image_class, next_image_class, direction);
}
function huge_it_slideV_23(current_image_class, next_image_class, direction) {
if (direction == ‘right’) {
var translateY = ‘auto’;
}
else if (direction == ‘left’) {
var translateY = ‘min-auto’;
}
huge_it_grid_23(1, 1, 0, 0, translateY, 1, 1, current_image_class, next_image_class, direction);
}
function huge_it_slideH_23(current_image_class, next_image_class, direction) {
if (direction == ‘right’) {
var translateX = ‘min-auto’;
}
else if (direction == ‘left’) {
var translateX = ‘auto’;
}
huge_it_grid_23(1, 1, 0, translateX, 0, 1, 1, current_image_class, next_image_class, direction);
}
function huge_it_scaleOut_23(current_image_class, next_image_class, direction) {
huge_it_grid_23(1, 1, 0, 0, 0, 1.5, 0, current_image_class, next_image_class, direction);
}
function huge_it_scaleIn_23(current_image_class, next_image_class, direction) {
huge_it_grid_23(1, 1, 0, 0, 0, 0.5, 0, current_image_class, next_image_class, direction);
}
function huge_it_blockScale_23(current_image_class, next_image_class, direction) {
huge_it_grid_23(8, 6, 0, 0, 0, .6, 0, current_image_class, next_image_class, direction);
}
function huge_it_kaleidoscope_23(current_image_class, next_image_class, direction) {
huge_it_grid_23(10, 8, 0, 0, 0, 1, 0, current_image_class, next_image_class, direction);
}
function huge_it_fan_23(current_image_class, next_image_class, direction) {
if (direction == ‘right’) {
var rotate = 45;
var translateX = 100;
}
else if (direction == ‘left’) {
var rotate = -45;
var translateX = -100;
}
huge_it_grid_23(1, 10, rotate, translateX, 0, 1, 0, current_image_class, next_image_class, direction);
}
function huge_it_blindV_23(current_image_class, next_image_class, direction) {
huge_it_grid_23(1, 8, 0, 0, 0, .7, 0, current_image_class, next_image_class);
}
function huge_it_blindH_23(current_image_class, next_image_class, direction) {
huge_it_grid_23(10, 1, 0, 0, 0, .7, 0, current_image_class, next_image_class);
}
function huge_it_random_23(current_image_class, next_image_class, direction) {
var anims = [‘sliceH’, ‘sliceV’, ‘slideH’, ‘slideV’, ‘scaleOut’, ‘scaleIn’, ‘blockScale’, ‘kaleidoscope’, ‘fan’, ‘blindH’, ‘blindV’];
/* Pick a random transition from the anims array.*/
this[« huge_it_ » + anims[Math.floor(Math.random() * anims.length)] + « _23 »](current_image_class, next_image_class, direction);
}

function iterator_23() {
var iterator = 1;

return iterator;
}

function huge_it_change_image_23(current_key, key, data_23, from_effect,clicked) {

if (data_23[key]) {

/* if(huge_video_playing[‘video_is_playing_’+23] && !clicked){
return false;
}*/

if (!from_effect) {
// Change image key.
jQuery(« #huge_it_current_image_key_23 »).val(key);
// if (current_key == ‘-2’) { /* Dots.*/
current_key = jQuery(« .huge_it_slideshow_dots_active_23 »).attr(« data-image_key »);
// }
}

if (huge_it_trans_in_progress_23) {
//errorlogjQuery(« .huge_it_slideshow_image_wrap_23″).after( » –IN TRANSACTION–
« );
event_stack_23.push(current_key + ‘-‘ + key);
return;
}

var direction = ‘right’;
if (huge_it_current_key_23 > key) {
var direction = ‘left’;
}
else if (huge_it_current_key_23 == key) {
return false;
}

// Set active thumbnail position.

huge_it_current_key_23 = key;
//Change image id, title, description.
jQuery(« #huge_it_slideshow_image_23 »).attr(‘data-image_id’, data_23[key][« id »]);

jQuery(« .huge_it_slideshow_title_text_23 »).html(data_23[key][« alt »]);
jQuery(« .huge_it_slideshow_description_text_23 »).html(data_23[key][« description »]);

var current_image_class = « #image_id_23_ » + data_23[current_key][« id »];
var next_image_class = « #image_id_23_ » + data_23[key][« id »];

if(jQuery(current_image_class).find(‘.huge_it_video_frame_23′).length>0) {
var streffect=’fade’;
if(streffect== »cubeV » || streffect== »cubeH » || streffect== »none » || streffect== »fade »){
huge_it_fade_23(current_image_class, next_image_class, direction);
}else{
huge_it_fade_23(current_image_class, next_image_class, direction);
}
}else{
huge_it_fade_23(current_image_class, next_image_class, direction);
}

jQuery(‘.huge_it_slideshow_title_text_23’).removeClass(‘none’);
if(jQuery(‘.huge_it_slideshow_title_text_23’).html()== » »){jQuery(‘.huge_it_slideshow_title_text_23’).addClass(‘none’);}

jQuery(‘.huge_it_slideshow_description_text_23’).removeClass(‘none’);
if(jQuery(‘.huge_it_slideshow_description_text_23’).html()== » »){jQuery(‘.huge_it_slideshow_description_text_23’).addClass(‘none’);}

jQuery(current_image_class).find(‘.huge_it_slideshow_title_text_23’).addClass(‘none’);
jQuery(current_image_class).find(‘.huge_it_slideshow_description_text_23’).addClass(‘none’);

//errorlogjQuery(« .huge_it_slideshow_image_wrap_23 »).after(« –cur-key= »+current_key+ » –cur-img-class= »+current_image_class+ » nxt-img-class= »+next_image_class+ »–« );
huge_it_move_dots_23();
/*** for vimeo and youtube stop pause play etc… ***/
var nextVideo = jQuery(‘#video_id_23_’+key).attr(‘data-element-id’);
var currentVideo = jQuery(‘#video_id_23_’+current_key).attr(‘data-element-id’);/*** add ***/
(currentVideo||nextVideo)&&stopYoutubeVideo(currentVideo,nextVideo);
if((jQuery(‘#player_23_’+current_key)).hasClass(‘huge-it-iframe-vimeo’)) {
jQuery(‘#player_23_’+current_key).vimeo(‘pause’);

}
if((jQuery(‘#player_23_’+key)).hasClass(‘huge-it-iframe-vimeo’) && (‘off’ == ‘on’)) {
jQuery(‘#player_23_’+key).vimeo(‘play’);
}
/*** ***/
window.clearInterval(huge_interval[‘huge_it_playInterval_’+23]);
play_23();
}

}
var staticthumbWidth;
jQuery(window).load(function(){
staticthumbWidth=jQuery(‘#huge_it_thumb_slider>li’).width();

})
function huge_it_popup_resize_23() {

var staticsliderwidth=800;
var sliderwidth=800;
var bodyWidth=jQuery(window).width();
var parentWidth = jQuery(« .huge_it_slideshow_image_wrap_23 »).parent().width();

if(sliderwidth>parentWidth){sliderwidth=parentWidth;}
if(sliderwidth>bodyWidth){sliderwidth=bodyWidth;}
var str=532/(staticsliderwidth-2*0); // alert(str);
var str2 = 100/800;
var sliderDynamicImageHeight = sliderwidth*str-2*0;
var sliderDynamicThumbHeight = 0;

jQuery(‘.huge_it_slideshow_image_wrap_23’).css({‘max-height’:sliderDynamicImageHeight+sliderDynamicThumbHeight});
jQuery(‘.huge_it_slideshow_image_wrap1_23’).css({‘max-height’:sliderDynamicImageHeight});
jQuery(‘.huge_it_slideshow_thumbs_23 li’).css({‘max-height’:sliderDynamicThumbHeight-0});

jQuery(« #huge_it_loading_image_23 »).css({display: « none »});
jQuery(« .huge_it_slideshow_image_wrap1_23 »).css({opacity: 1});
jQuery(« .huge_it_slideshow_image_wrap_23 »).removeClass(« nocolor »);

if(« crop »== »crop »){
jQuery(« .huge_it_slider_ul li img »).each(function(){
if(jQuery(this).prop(‘naturalWidth’)>jQuery(this).prop(‘naturalHeight’))
jQuery(this).css({‘width’:’100%’,’height’:’auto’/*,’top’:’50%’,’left’:’50%’,’transform’:’translate( -50%, -50% )’*/});
else{
jQuery(this).css({‘height’:’100%’,’width’:’auto’/*,’top’:’50%’,’left’:’50%’,’transform’:’translate( -50%, -50% )’*/});
}
});
}
jQuery(« .huge_it_slideshow_image_wrap_23″).css({opacity:1});
}

jQuery(window).load(function () {
jQuery(window).resize(function() {
huge_it_popup_resize_23();
});

jQuery(‘#huge_it_slideshow_left_23’).on(‘click’,function(){
huge_it_change_image_23(parseInt(jQuery(‘#huge_it_current_image_key_23’).val()), (parseInt(jQuery(‘#huge_it_current_image_key_23’).val()) – iterator_23()) >= 0 ? (parseInt(jQuery(‘#huge_it_current_image_key_23’).val()) – iterator_23()) % data_23.length : data_23.length – 1, data_23,false,true);
return false;
});

jQuery(‘#huge_it_slideshow_right_23’).on(‘click’,function(){
huge_it_change_image_23(parseInt(jQuery(‘#huge_it_current_image_key_23’).val()), (parseInt(jQuery(‘#huge_it_current_image_key_23’).val()) + iterator_23()) % data_23.length, data_23,false,true);
return false;
});

huge_it_popup_resize_23();
/* Disable right click.*/
jQuery(‘div[id^= »huge_it_container »]’).bind(« contextmenu », function () {
return false;
});

/*HOVER SLIDESHOW*/
jQuery(« #huge_it_slideshow_image_container_23, .huge_it_slideshow_image_container_23, .huge_it_slideshow_dots_container_23,#huge_it_slideshow_right_23,#huge_it_slideshow_left_23 »).hover(function(){
//errorlogjQuery(« .huge_it_slideshow_image_wrap_23″).after( » — hover —
« );
jQuery(« #huge_it_slideshow_right_23 »).css({‘display’:’inline’});
jQuery(« #huge_it_slideshow_left_23 »).css({‘display’:’inline’});
},function(){
jQuery(« #huge_it_slideshow_right_23 »).css({‘display’:’none’});
jQuery(« #huge_it_slideshow_left_23″).css({‘display’:’none’});
});

if(pausehover== »on » && !/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){
jQuery(« #huge_it_slideshow_image_container_23, .huge_it_slideshow_image_container_23 »).hover(function(){
window.clearInterval(huge_interval[‘huge_it_playInterval_’+23]);
scrolling = false;
},function(){
window.clearInterval(huge_interval[‘huge_it_playInterval_’+23]);
scrolling = true;
play_23();
});
}
play_23();
});
//var huge_play={};

function play_23(){ //alert(5000);
if(scrolling ){
huge_interval[‘huge_it_playInterval_’+23] = setInterval(function () {
//errorlogjQuery(« .huge_it_slideshow_image_wrap_23″).after( » — time left —- « );
var iterator = 1;
if(!IsPlay()) { huge_it_change_image_23(parseInt(jQuery(‘#huge_it_current_image_key_23’).val()), (parseInt(jQuery(‘#huge_it_current_image_key_23’).val()) + iterator) % data_23.length, data_23,false,false);}
}, ‘5000’);
}
if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){
huge_interval[‘huge_it_playInterval_’+23] = setInterval(function () {
var iterator = 1;
if(!IsPlay()) { huge_it_change_image_23(parseInt(jQuery(‘#huge_it_current_image_key_23’).val()), (parseInt(jQuery(‘#huge_it_current_image_key_23’).val()) + iterator) % data_23.length, data_23,false,false);}
}, ‘5000’);
}
}
jQuery(window).focus(function() {
/*event_stack_23 = [];*/
var i_23 = 0;
jQuery(« .huge_it_slider_23 »).children(« div »).each(function () {
if (jQuery(this).css(‘opacity’) == 1) {
jQuery(« #huge_it_current_image_key_23 »).val(i_23);
}
i_23++;
});
});
jQuery(window).blur(function() {
//event_stack_23 = [];
window.clearInterval(huge_interval[‘huge_it_playInterval_’+23]);
});
jQuery(window).focus(function() {
//event_stack_23 = [];
play_23()
});

/******/
jQuery(‘.huge-it-iframe-vimeo.autoplay’).each(function(){

})
/******/

jQuery(document).ready(function($) {

setInterval(function() {
jQuery(‘.huge_it_slider_23’).find(« li »).each(function (){

if($(this).css(« opacity ») == « 1 »){

var img_id=$(this).attr(‘id’);
jQuery(‘.huge_it_slideshow_thumbs_23’).each(function (){
//if ($(this).hasClass(‘bx-clone’)){$(this).removeAttr(‘id’)}
var allListElements = $( ‘li[id=’+img_id+’]’ );

$(this).find(allListElements).not(« .bx-clone »).each(function() {

jQuery(‘.huge_it_slideshow_thumbs_23 li’).find(« .trans_back »).css(‘background’,’rgba(255,255,255,0.3)’);
$(this).find(‘.trans_back’).css(‘background’,’none’);

})

})

}

})
},100)

})

Mon travail artistique / My art work is on : www.anthonygillant.com

17-mode-2000p