if ((typeof cmsGGI323951 !== 'undefined') && (cmsGGI323951 != null) && (typeof cmsGGI323951.Destroy !== 'undefined')){cmsGGI323951.Destroy();}function comSlider323951() { var self = this; var g_HostRoot = "https://commondatastorage.googleapis.com/comslider/"; var g_TransitionTimeoutRef = null; var g_CycleTimeout = 11; var g_currFrame = 0; var g_currDate = new Date(); var g_currTime = g_currDate.getTime();var g_microID = g_currTime + '-' + Math.floor((Math.random()*1000)+1); var g_InTransition = 0;var g_Navigation = 0;var g_Swiper = null;var isOldIE = navigator.userAgent.indexOf('MSIE 6')>=0 || navigator.userAgent.indexOf('MSIE 7')>=0 || navigator.userAgent.indexOf('MSIE 8')>=0 || navigator.userAgent.indexOf('MSIE 9')>=0;this.getCurrMicroID = function() { return g_microID; } this.comSLoadImgInFrame = function(frameid, src) { jqCS323951("#comSImg323951_"+frameid+" img").attr("src", src).load(function(){ if (!this.complete || typeof this.naturalWidth == "undefined" || this.naturalWidth == 0) { //broken image } }); } this.setNavStyle = function(id, background, color, border, type) { if (background == "") { jqCS323951("#comSNavigation323951_"+id).css("background", "none"); } else if (background == "transparent") { jqCS323951("#comSNavigation323951_"+id).css("background", "transparent"); } else { jqCS323951("#comSNavigation323951_"+id).css("background", "#"+background); } if (color != "") { jqCS323951("#comSNavigation323951_"+id).css("color", "#"+color); } if (background == "transparent") { jqCS323951("#comSNavigation323951_"+id).css("border", border+"px solid transparent"); } else if (background != "") { jqCS323951("#comSNavigation323951_"+id).css("border", border+"px solid #"+background); } else { jqCS323951("#comSNavigation323951_"+id).css("border", border+"px"); } var margin = (-1)*border; jqCS323951("#comSNavigation323951_"+id).css("margin-top", margin+"px"); jqCS323951("#comSNavigation323951_"+id).css("margin-left", margin+"px"); if (type == 0) { jqCS323951("#comImgBullet323951_"+id).show(); jqCS323951("#comImgBulletcurr323951_"+id).hide(); } else { jqCS323951("#comImgBulletcurr323951_"+id).show(); jqCS323951("#comImgBullet323951_"+id).hide(); } } this.targetClearTimeouts = function() { if (g_TransitionTimeoutRef != null) { window.clearTimeout(g_TransitionTimeoutRef); g_TransitionTimeoutRef = null;} } this.getNextFrame = function() { var ret = g_currFrame; ret++; if (ret == 4) {ret = 0;} return ret; } this.getPrevFrame = function() { var ret = g_currFrame; ret--; if (ret < 0) {ret = (4-1);} return ret; } this.stopAll = function() { jqCS323951("#comSFrame323951_0").stop(true, true); jqCS323951("#comSFrameSek323951_0").stop(true, true); jqCS323951("#comSFrame323951_1").stop(true, true); jqCS323951("#comSFrameSek323951_1").stop(true, true); jqCS323951("#comSFrame323951_2").stop(true, true); jqCS323951("#comSFrameSek323951_2").stop(true, true); jqCS323951("#comSFrame323951_3").stop(true, true); jqCS323951("#comSFrameSek323951_3").stop(true, true); } this.switchFrame = function() { g_Navigation = 1; var currFrame=g_currFrame; g_currFrame = self.getNextFrame(); self.switchFromToFrame(currFrame, g_currFrame); } this.switchFramePrev = function() { g_Navigation = 0; var currFrame=g_currFrame; g_currFrame = self.getPrevFrame(); self.switchFromToFrame(currFrame, g_currFrame); } this.switchToFrame = function(toFrame) { if ((g_InTransition == 1) || (g_currFrame == toFrame)) { if (g_currFrame == toFrame) { return false; } self.stopAll(); } var currFrame=g_currFrame; g_currFrame=toFrame; if (currFrame < g_currFrame) g_Navigation = 0; else g_Navigation = 1; self.switchFromToFrame(currFrame, g_currFrame); } this.switchFromToFrame = function(currFrame, toFrame) { if (g_InTransition == 1) { self.stopAll(); } g_InTransition = 1; self.startTransitionTimer(); if (g_Swiper != null) { g_Swiper.swipeTo(toFrame, 3200); } else { jqCS323951("#comSFrameSek323951_"+currFrame+"").parent().parent().hide(); jqCS323951("#comSFrameSek323951_"+toFrame+"").parent().parent().show(); } self.setNavStyle(currFrame, 'transparent','C666E3',0, 0); self.setNavStyle(toFrame, 'E5D4FF','FED9FF',3, 1); } this.startTransitionTimer = function() { self.targetClearTimeouts(); g_TransitionTimeoutRef = window.setTimeout(function() {objcomSlider323951.onTransitionTimeout(g_microID)}, g_CycleTimeout*1000); } this.onTransitionTimeout = function(microID) { if (g_microID != microID) { return false; } self.switchFrame(); } this.initFrame = function() { g_currFrame = 0; self.startTransitionTimer(); g_Swiper = null; if (!isOldIE) { g_Swiper = new Swiper('.swiper-container323951',{ mode: 'vertical', loop:true, grabCursor: false, onSlideChangeEnd: function() { self.setNavStyle(g_currFrame, 'transparent','C666E3',0, 0);g_currFrame = g_Swiper.activeLoopIndex; self.setNavStyle(g_currFrame, 'E5D4FF','FED9FF',3, 1);g_currFrame = g_Swiper.activeLoopIndex; } }); }var activeIdx = 0; if (g_Swiper != null){ activeIdx = g_Swiper.activeLoopIndex; } else { jqCS323951("#comSFrame323951_swiper .swiper-slide").hide(); jqCS323951("#comSFrameSek323951_"+activeIdx+"").parent().parent().show(); }self.setNavStyle(activeIdx, 'E5D4FF','FED9FF',3, 1); return true; } this.scriptLoaded = function(options) { jqCS323951 = jQuery323951.noConflict(false);jqCS323951("#comslider_in_point_323951").html('
'); jqCS323951("#comslider_in_point_323951 a").bind('click', function() { if ((this.name.length > 0) && (isNaN(this.name) == false)) { self.switchToFrame(parseInt(this.name)); return false;} }); self.initFrame(); } }