1/** 2 * @package Site Template 3 * @subpackage Shepard HTML 4 * @since Shepard HTML 1.0.1 5 * 6 * Template Scripts 7 * Created by cmsmasters 8 * 9 */ 10 11 12 13/* 14 * Responsive Content Slider v1.0.1 - jQuery Content Slider 15 * 16 * (c) Copyright Steven "cmsmasters" Masters 17 * http://cmsmastrs.net/ 18 * For sale on ThemeForest.net 19 */ 20 21(function(a){a.fn.cmsmsResponsiveContentSlider=function(b){var c={sliderWidth:1e3,sliderHeight:500,animationSpeed:500,animationEffect:"slide",animationEasing:"easeInOutExpo",pauseTime:5e3,activeSlide:1,touchControls:true,pauseOnHover:true,arrowNavigation:true,arrowNavigationHover:false,slidesNavigation:true,slidesNavigationHover:false,afterSliderLoad:function(){},beforeSlideChange:function(){},afterSlideChange:function(){}},d=this,e=d.wrap('<div class="cmsms_content_slider_parent" />').parent(),f=undefined,g={};g={init:function(){g.options=a.extend({},c,b);g.el=d;g.vars={};g.vars.oldSlide=undefined;g.vars.newSlide=undefined;g.vars.active_sl_numb=g.options.activeSlide==="random"?0:Number(g.options.activeSlide-1);g.vars.ifWNumber=typeof g.options.sliderWidth==="number"?true:false;g.vars.ifHNumber=typeof g.options.sliderHeight==="number"?true:false;g.vars.autoHeight=g.options.sliderHeight==="auto"?true:false;g.vars.inPause=true;g.vars.inAnimation=true;g.vars.mouseClicked=false;if(g.options.pauseTime!==0){g.vars.countdown=Math.round(g.options.pauseTime/50);g.vars.countMax=Math.round(g.options.pauseTime/50)}else{g.vars.countdown=-1;g.vars.countMax=-1}if(!g.vars.autoHeight){e.css({height:g.options.sliderHeight})}g.setSliderVars();g.preloadSlider()},setSliderVars:function(){g.vars.sliderWidth=g.vars.ifWNumber?g.options.sliderWidth+"px":g.options.sliderWidth;g.vars.sliderHeight=g.vars.ifHNumber?g.options.sliderHeight+"px":g.options.sliderHeight;g.vars.slides=g.el.find(">li");g.vars.sl_count=g.vars.slides.length;g.vars.first_sl=g.vars.slides.first();g.vars.last_sl=g.vars.slides.eq(g.vars.sl_count-1)},preloadSlider:function(){var b=g.vars.slides.find("img:eq(0)"),c=b.length;if(b.length>0){b.each(function(){var b=new Image,d=a(this).attr("src");b.src=d;a(this).addClass("cmsms_img");var e=setInterval(function(){if(isImageOk(b)||isImageOk(b)==="stop"){clearInterval(e);c-=1;if(c===0){g.buildSlider();g.buildControls();g.attachEvents();g.afterSliderLoad()}}},50)})}else{g.buildSlider();g.buildControls();g.attachEvents();g.afterSliderLoad()}},buildSlider:function(){g.vars.slides.addClass("cmsmsContentSlide").css({left:g.vars.sliderWidth});if(g.options.activeSlide==="random"){g.vars.active_sl_numb=parseInt(Math.random()*g.vars.sl_count)}g.el.css({background:"none"});e.css({width:g.vars.sliderWidth,padding:0,opacity:0});if(g.vars.autoHeight){g.vars.slides.css({height:"auto"});g.setSlideHeight(g.vars.slides.eq(g.vars.active_sl_numb),false)}g.vars.slides.eq(g.vars.active_sl_numb).css({left:0,zIndex:2}).addClass("active");e.animate({opacity:1},g.options.animationSpeed/2,g.options.animationEasing);g.vars.inPause=false;g.vars.inAnimation=false},buildControls:function(){if(g.options.slidesNavigation){e.append('<ul class="cmsms_slides_nav" />');g.vars.slidesNav=e.find("ul.cmsms_slides_nav");if(g.options.slidesNavigationHover){g.vars.slidesNav.css({opacity:0})}for(var a=0;a<g.vars.sl_count;a+=1){g.vars.slidesNav.append('<li><a href="#">'+(a+1)+"</a></li>")}g.vars.slidesNav.find(">li").eq(g.vars.active_sl_numb).addClass("active");g.vars.slidesNavButton=g.vars.slidesNav.find(">li>a")}if(g.options.arrowNavigation){e.parent().append('<a href="#" class="cmsms_content_prev_slide"><span /></a>'+'<a href="#" class="cmsms_content_next_slide"><span /></a>');g.vars.prevSlideButton=e.parent().find(".cmsms_content_prev_slide");g.vars.nextSlideButton=e.parent().find(".cmsms_content_next_slide");if(g.options.arrowNavigationHover){g.vars.prevSlideButton.css({left:"-100px",opacity:0});g.vars.nextSlideButton.css({right:"-100px",opacity:0})}}},attachEvents:function(){if(g.options.touchControls){g.vars.slides.bind("mousedown",function(a){g.mouseDoun(a);return false});g.vars.slides.bind("mousemove",function(a){g.mouseMove(a);return false});g.vars.slides.bind("mouseup",function(){g.mouseUp();return false});e.bind("mouseleave",function(){if(!g.vars.mouseClicked){return}g.mouseUp();return false})}if(g.options.arrowNavigation){g.vars.nextSlideButton.bind("click",function(){g.nextSlide();return false});g.vars.prevSlideButton.bind("click",function(){g.prevSlide();return false})}if(g.options.slidesNavigation){g.vars.slidesNavButton.bind("click",function(){if(a(this).parent().is(".active")){return false}else{g.slideChoose(a(this).parent().index())}return false})}if(g.options.pauseOnHover){e.bind("mouseenter",function(){g.vars.inPause=true}).bind("mouseleave",function(){g.vars.inPause=false})}if(g.options.slidesNavigation&&g.options.slidesNavigationHover){e.bind("mouseenter",function(){g.vars.slidesNav.css({opacity:1})}).bind("mouseleave",function(){g.vars.slidesNav.css({opacity:0}
21)})}if(g.options.arrowNavigation&&g.options.arrowNavigationHover){e.bind("mouseenter",function(){g.vars.prevSlideButton.stop().animate({left:"10px",opacity:1},g.options.animationSpeed,g.options.animationEasing);g.vars.nextSlideButton.stop().animate({right:"10px",opacity:1},g.options.animationSpeed,g.options.animationEasing)}).bind("mouseleave",function(){g.vars.prevSlideButton.stop().animate({left:"-100px",opacity:0},g.options.animationSpeed,g.options.animationEasing);g.vars.nextSlideButton.stop().animate({right:"-100px",opacity:0},g.options.animationSpeed,g.options.animationEasing)})}if(g.vars.autoHeight){a(window).bind("resize",function(){if(g.vars.active_sl===undefined){g.getSlVars()}g.setSlideHeight(g.vars.active_sl,false)})}f=setInterval(function(){g.timerController()},50)},getSlVars:function(){g.vars.active_sl=g.el.find(">li.active")},setSlideHeight:function(a,b){if(b){e.animate({height:a[0].scrollHeight+"px"},g.options.animationSpeed,g.options.animationEasing)}else{e.css({height:a[0].scrollHeight+"px"})}},navActiveSl:function(a,b){g.vars.slidesNav.find(">li").eq(a.index()).removeClass("active");g.vars.slidesNav.find(">li").eq(b.index()).addClass("active")},setTimer:function(){g.vars.inPause=false;if(g.options.pauseTime!==0){g.vars.countdown=Math.round(g.options.pauseTime/50);g.vars.countMax=Math.round(g.options.pauseTime/50)}else{g.vars.countdown=-1;g.vars.countMax=-1}},nextSlide:function(){if(g.vars.inAnimation||g.vars.sl_count<2){return false}else{g.vars.inAnimation=true}g.getSlVars();g.setTimer();g.beforeSlideChange();g.vars.oldSlide=g.vars.active_sl;g.vars.newSlide=g.vars.active_sl.index()<g.vars.sl_count-1?g.vars.active_sl.next():g.vars.first_sl;if(g.options.slidesNavigation){g.navActiveSl(g.vars.oldSlide,g.vars.newSlide)}if(g.vars.autoHeight){g.setSlideHeight(g.vars.newSlide,true)}if(g.options.animationEffect==="slide"){g.vars.oldSlide.removeClass("active").animate({left:"-"+g.vars.sliderWidth},g.options.animationSpeed,g.options.animationEasing,function(){a(this).css({left:g.vars.sliderWidth,zIndex:1})});g.vars.newSlide.addClass("active").css({zIndex:3}).animate({left:g.vars.ifWNumber?0:"0%"},g.options.animationSpeed,g.options.animationEasing,function(){a(this).css({zIndex:2});g.vars.inAnimation=false;g.afterSlideChange()})}else if(g.options.animationEffect==="fade"){g.fadeSlide(g.vars.oldSlide,g.vars.newSlide,true)}},prevSlide:function(){if(g.vars.inAnimation||g.vars.sl_count<2){return false}else{g.vars.inAnimation=true}g.getSlVars();g.setTimer();g.beforeSlideChange();g.vars.oldSlide=g.vars.active_sl;g.vars.newSlide=g.vars.active_sl.index()>0?g.vars.active_sl.prev():g.vars.last_sl;if(g.options.slidesNavigation){g.navActiveSl(g.vars.oldSlide,g.vars.newSlide)}if(g.vars.autoHeight){g.setSlideHeight(g.vars.newSlide,true)}if(g.options.animationEffect==="slide"){g.vars.oldSlide.removeClass("active").animate({left:g.vars.sliderWidth},g.options.animationSpeed,g.options.animationEasing,function(){a(this).css({zIndex:1})});g.vars.newSlide.addClass("active").css({left:"-"+g.vars.sliderWidth,zIndex:3}).animate({left:g.vars.ifWNumber?0:"0%"},g.options.animationSpeed,g.options.animationEasing,function(){a(this).css({zIndex:2});g.vars.inAnimation=false;g.afterSlideChange()})}else if(g.options.animationEffect==="fade"){g.fadeSlide(g.vars.oldSlide,g.vars.newSlide,false)}},slideChoose:function(b){if(g.vars.inAnimation){return false}else{g.vars.inAnimation=true}g.getSlVars();g.setTimer();g.beforeSlideChange();g.vars.oldSlide=g.vars.active_sl;g.vars.newSlide=g.vars.slides.eq(b);if(g.options.slidesNavigation){g.navActiveSl(g.vars.oldSlide,g.vars.newSlide)}if(g.vars.autoHeight){g.setSlideHeight(g.vars.newSlide,true)}if(g.vars.active_sl.index()<g.vars.newSlide.index()){if(g.options.animationEffect==="slide"){g.vars.oldSlide.removeClass("active").animate({left:"-"+g.vars.sliderWidth},g.options.animationSpeed,g.options.animationEasing,function(){a(this).css({left:g.vars.sliderWidth,zIndex:1})});g.vars.newSlide.addClass("active").css({zIndex:3}).animate({left:g.vars.ifWNumber?0:"0%"},g.options.animationSpeed,g.options.animationEasing,function(){a(this).css({zIndex:2});g.vars.inAnimation=false;g.afterSlideChange()})}else if(g.options.animationEffect==="fade"){g.fadeSlide(g.vars.oldSlide,g.vars.newSlide,true)}}else{if(g.options.animationEffect==="slide"){g.vars.oldSlide.removeClass("active").animate({left:g.vars.sliderWidth},g.options.animationSpeed,g.options.animationEasing,function(){a(this).css({zIndex:1})});g.vars.newSlide.addClass("active").css({left:"-"+g.vars.sliderWidth,zIndex:3}).animate({left:g.vars.ifWNumber?0:"0%"},g.options.animationSpeed,g.options.animationEasing,function(){a(this).css({zIndex:2});g.vars.inAnimation=false;g.afterSlideChange()})}else if(g.options.animationEffect==="fade"){g.fadeSlide(g.vars.oldSlide,g.vars.newSlide,false)}}},fadeSlide:function(b,c,d){c.css({left:0});if(d){b.removeClass("active").animate({left:"-"+g.vars.sliderWidth,op
21acity:0},g.options.animationSpeed,g.options.animationEasing,function(){a(this).css({left:g.vars.sliderWidth,opacity:1,zIndex:1});c.addClass("active").css({zIndex:2});g.vars.inAnimation=false;g.afterSlideChange()})}else{b.removeClass("active").animate({left:g.vars.sliderWidth,opacity:0},g.options.animationSpeed,g.options.animationEasing,function(){a(this).css({opacity:1,zIndex:1});c.addClass("active").css({zIndex:2});g.vars.inAnimation=false;g.afterSlideChange()})}},mouseDoun:function(a){if(g.vars.inAnimation||g.vars.pj_count<2){return false}else{g.vars.inAnimation=true;g.vars.inPause=true;g.vars.mouseClicked=true;g.vars.startPosX=a.clientX;g.vars.xIndex=0;if(!g.vars.ifWNumber){g.vars.sliderPxWidth=e.width()}else{g.vars.sliderPxWidth=g.options.sliderWidth}g.getSlVars();g.vars.next_sl=g.vars.active_sl.index()!==g.vars.sl_count-1?g.vars.active_sl.next():g.vars.first_sl;g.vars.prev_sl=g.vars.active_sl.index()!==0?g.vars.active_sl.prev():g.vars.last_sl}},mouseMove:function(a){if(!g.vars.mouseClicked){return}g.vars.finishPosX=a.clientX;g.vars.xIndex=Math.round(g.vars.finishPosX-g.vars.startPosX);if(g.options.animationEffect==="slide"){g.vars.active_sl.css({left:g.vars.xIndex+"px"})}else if(g.options.animationEffect==="fade"){g.vars.active_sl.css({left:g.vars.xIndex+"px",opacity:1-(Math.abs(g.vars.xIndex)/Math.round(g.vars.sliderPxWidth*.75)).toFixed(2)})}if(g.vars.xIndex<0){if(g.options.animationEffect==="slide"){g.vars.next_sl.css({left:g.vars.sliderPxWidth+g.vars.xIndex+"px",zIndex:3})}else if(g.options.animationEffect==="fade"){if(g.vars.prevTouch){g.vars.prevTouch=false;g.vars.touchTarget.css({left:g.vars.sliderPxWidth+"px"})}if(!g.vars.nextTouch){g.vars.nextTouch=true}if(g.vars.active_sl.index()!==g.vars.sl_count-1){g.vars.touchTarget=g.vars.active_sl.next()}else{g.vars.touchTarget=g.vars.first_sl}g.vars.touchTarget.css({left:0})}}else if(g.vars.xIndex>0){if(g.options.animationEffect==="slide"){g.vars.prev_sl.css({left:-g.vars.sliderPxWidth+g.vars.xIndex+"px",zIndex:3})}else if(g.options.animationEffect==="fade"){if(g.vars.nextTouch){g.vars.nextTouch=false;g.vars.touchTarget.css({left:g.vars.sliderPxWidth+"px"})}if(!g.vars.prevTouch){g.vars.prevTouch=true}if(g.vars.active_sl.index()!==0){g.vars.touchTarget=g.vars.active_sl.prev()}else{g.vars.touchTarget=g.vars.last_sl}g.vars.touchTarget.css({left:0})}}},mouseUp:function(){if(!g.vars.mouseClicked){return}g.vars.mouseClicked=false;if(g.vars.xIndex<0){if(g.vars.xIndex<-75){g.beforeSlideChange();if(g.options.slidesNavigation){g.navActiveSl(g.vars.active_sl,g.vars.next_sl)}if(g.vars.autoHeight){g.setSlideHeight(g.vars.next_sl,true)}if(g.options.animationEffect==="slide"){if(g.vars.sl_count>2){g.vars.prev_sl.css({left:g.vars.sliderPxWidth+"px",zIndex:1})}g.vars.active_sl.removeClass("active").animate({left:"-"+g.vars.sliderPxWidth+"px"},g.options.animationSpeed,g.options.animationEasing,function(){a(this).css({left:g.vars.sliderPxWidth+"px",zIndex:1})});g.vars.next_sl.addClass("active").animate({left:0},g.options.animationSpeed,g.options.animationEasing,function(){a(this).css({zIndex:2});g.vars.inAnimation=false;g.setTimer();g.afterSlideChange()})}else if(g.options.animationEffect==="fade"){if(g.vars.sl_count>2){g.vars.prev_sl.css({left:g.vars.sliderPxWidth+"px",opacity:1,zIndex:1})}g.vars.active_sl.removeClass("active").animate({left:"-"+g.vars.sliderPxWidth+"px"},g.options.animationSpeed,g.options.animationEasing,function(){a(this).css({left:g.vars.sliderPxWidth+"px",opacity:1,zIndex:1});g.vars.next_sl.addClass("active").css({zIndex:2});g.vars.inAnimation=false;g.setTimer();g.afterSlideChange()})}}else{if(g.options.animationEffect==="slide"){if(g.vars.sl_count>2){g.vars.prev_sl.css({left:g.vars.sliderPxWidth+"px",zIndex:1})}g.vars.active_sl.animate({left:0},g.options.animationSpeed,g.options.animationEasing);g.vars.next_sl.animate({left:g.vars.sliderPxWidth+"px"},g.options.animationSpeed,g.options.animationEasing,function(){g.vars.inAnimation=false;g.vars.inPause=false})}else if(g.options.animationEffect==="fade"){if(g.vars.sl_count>2){g.vars.prev_sl.css({left:g.vars.sliderPxWidth+"px",opacity:1,zIndex:1})}g.vars.active_sl.animate({left:0,opacity:1},g.options.animationSpeed,g.options.animationEasing,function(){g.vars.next_sl.css({left:g.vars.sliderPxWidth+"px"});g.vars.inAnimation=false;g.vars.inPause=false})}}}else if(g.vars.xIndex>=0){if(g.vars.xIndex>75){g.beforeSlideChange();if(g.options.slidesNavigation){g.navActiveSl(g.vars.active_sl,g.vars.prev_sl)}if(g.vars.autoHeight){g.setSlideHeight(g.vars.prev_sl,true)}if(g.options.animationEffect==="slide"){if(g.vars.sl_count>2){g.vars.next_sl.css({left:g.vars.sliderPxWidth+"px",zIndex:1})}g.vars.active_sl.removeClass("active").animate({left:g.vars.sliderPxWidth+"px"},g.options.animationSpeed,g.options.animationEasing,function(){a(this).css({zIndex:1})});g.vars.prev_sl.addClass("active").animate({left:0},g.options.animationSpeed,g.options.animationEasing,function(){a(this).css({zIndex:2});g.vars.inAnimation=false;g.setTimer();g.afterSlideChange()})}else if(g.options.animationEffect==="fade"){if(g.vars.sl_count>2){g.vars.next_sl.css({left:g.vars.sliderPxWidth+"px",opacity:1,zIndex:1})}g.vars.active_sl.removeClass("active").animate({left:g.vars.sliderPxWidth+"px"},g.options.animationSpeed,g.options.animationEasing,function(){a(this).css({opacity:1,zIndex:1});g.vars.prev_sl.addClass("active").css({zIndex:2});g.vars.inAnimation=false;g.setTimer();g.afterSlideChange()})}}else{if(g.options.animationEffect==="slide"){if(g.vars.sl_count>2){g.vars.next_sl.css({left:g.vars.sliderPxWidth+"px",zIndex:1})}if(g.vars.xIndex!==0){g.vars.active_sl.animate({left:0},g.options.animationSpeed,g.options.animationEasing);g.vars.prev_sl.animate({left:"-"+g.vars.sliderPxWidth+"px"},g.options.animationSpeed,g.options.animationEasing,function(){g.vars.inAnimation=false;g.vars.inPause=false})}else{g.vars.inAnimation=false;g.vars.inPause=false}}else if(g.options.animationEffect==="fade"){if(g.vars.sl_count>2){g.vars.next_sl.css({left:g.vars.sliderPxWidth+"px",opacity:1,zIndex:1})}if(g.vars.xIndex!==0){g.vars.active_sl.animate({left:0,opacity:1},g.options.animationSpeed,g.options.animationEasing,function(){g.vars.prev_sl.css({left:g.vars.sliderPxWidth+"px"});g.vars.inAnimation=false;g.vars.inPause=false})}else{g.vars.inAnimation=false;g.vars.inPause=false}}}}},timerController:function(){if(g.vars.inPause||g.vars.countdown<0){return}if(g.vars.countdown===0){g.nextSlide()}g.vars.countdown-=1},afterSliderLoad:function(){g.options.afterSliderLoad()},beforeSlideChange:function(){g.options.beforeSlideChange()},afterSlideChange:function(){g.options.afterSlideChange()}};g.init()}})(jQuery); 22 23 24 25/* 26 * jQuery Tools 1.2.5 Tooltip - UI essentials 27 * NO COPYRIGHTS OR LICENSES. 28 * Since: November 2008 29 */ 30(function(a){function d(d,e){var f=this,h=d.add(f),i,j=0,k=0,l=d.attr("title"),m=d.attr("data-tooltip"),n=b[e.effect],o,p=d.is(":input"),q=p&&d.is(":checkbox, :radio, select, :button, :submit"),r=d.attr("type"),s=e.events[r]||e.events[p?q?"widget":"input":"def"];if(!n){throw'Nonexistent effect "'+e.effect+'"'}s=s.split(/,\s*/);if(s.length!=2){throw"Tooltip: bad events configuration for "+r}d.bind(s[0],function(a){clearTimeout(j);if(e.predelay){k=setTimeout(function(){f.show(a)},e.predelay)}else{f.show(a)}}).bind(s[1],function(a){clearTimeout(k);if(e.delay){j=setTimeout(function(){f.hide(a)},e.delay)}else{f.hide(a)}});if(l&&e.cancelDefault){d.removeAttr("title");d.data("title",l)}a.extend(f,{show:function(b){if(!i){if(m){i=a(m)}else if(e.tip){i=a(e.tip).eq(0)}else if(l){i=a(e.layout).addClass(e.tipClass).appendTo(document.body).hide().append(l)}else{i=d.next();if(!i.length){i=d.parent().next()}}if(!i.length){throw"Cannot find tooltip for "+d}}if(f.isShown()){return f}i.stop(true,true);var g=c(d,i,e);if(e.tip){i.html(d.data("title"))}b=b||a.Event();b.type="onBeforeShow";h.trigger(b,[g]);if(a.browser.mozilla){}else{if(b.isDefaultPrevented()){return f}}g=c(d,i,e);
30i.css({position:"absolute",top:g.top,left:g.left});o=true;n[0].call(f,function(){b.type="onShow";o="full";h.trigger(b)});var p=e.events.tooltip.split(/,\s*/);if(!i.data("__set")){i.bind(p[0],function(){clearTimeout(j);clearTimeout(k)});if(p[1]&&!d.is("input:not(:checkbox, :radio), textarea")){i.bind(p[1],function(a){if(a.relatedTarget!=d[0]){d.trigger(s[1].split(" ")[0])}})}i.data("__set",true)}return f},hide:function(c){if(!i||!f.isShown()){return f}c=c||a.Event();c.type="onBeforeHide";h.trigger(c);if(a.browser.mozilla){}else{if(c.isDefaultPrevented()){return}}o=false;b[e.effect][1].call(f,function(){c.type="onHide";h.trigger(c)});return f},isShown:function(a){return a?o=="full":o},getConf:function(){return e},getTip:function(){return i},getTrigger:function(){return d}});a.each("onHide,onBeforeShow,onShow,onBeforeHide".split(","),function(b,c){if(a.isFunction(e[c])){a(f).bind(c,e[c])}f[c]=function(b){if(b){a(f).bind(c,b)}return f}})}function c(b,c,d){var e=d.relative?b.position().top:b.offset().top,f=d.relative?b.position().left:b.offset().left,g=d.position[0];e-=c.outerHeight()-d.offset[0];f+=b.outerWidth()+d.offset[1];if(/iPad/i.test(navigator.userAgent)){e-=a(window).scrollTop()}var h=c.outerHeight()+b.outerHeight();if(g=="center"){e+=h/2}if(g=="bottom"){e+=h}g=d.position[1];var i=c.outerWidth()+b.outerWidth();if(g=="center"){f-=i/2}if(g=="left"){f-=i}return{top:e,left:f}}a.tools=a.tools||{version:"1.2.5"};a.tools.tooltip={conf:{effect:"toggle",fadeOutSpeed:"fast",predelay:0,delay:30,opacity:1,tip:0,position:["top","center"],offset:[0,0],relative:false,cancelDefault:true,events:{def:"mouseenter,mouseleave",input:"focus,blur",widget:"focus mouseenter,blur mouseleave",tooltip:"mouseenter,mouseleave"},layout:"<div/>",tipClass:"tooltip"},addEffect:function(a,c,d){b[a]=[c,d]}};var b={toggle:[function(a){var b=this.getConf(),c=this.getTip(),d=b.opacity;if(d<1){c.css({opacity:d})}c.show();a.call()},function(a){this.getTip().hide();a.call()}],fade:[function(a){var b=this.getConf();this.getTip().fadeTo(b.fadeInSpeed,b.opacity,a)},function(a){this.getTip().fadeOut(this.getConf().fadeOutSpeed,a)}]};a.fn.tooltip=function(b){var c=this.data("tooltip");if(c){return c}b=a.extend(true,{},a.tools.tooltip.conf,b);
30if(typeof b.position=="string"){b.position=b.position.split(/,?\s/)}this.each(function(){c=new d(a(this),b);a(this).data("tooltip",c)});return b.api?c:this}})(jQuery); 31 32(function(a){var b=a.tools.tooltip;a.extend(b.conf,{direction:"up",bounce:false,slideOffset:10,slideInSpeed:200,slideOutSpeed:200,slideFade:!a.browser.msie});var c={up:["-","top"],down:["+","top"],left:["-","left"],right:["+","left"]};b.addEffect("slide",function(a){var b=this.getConf(),d=this.getTip(),f=b.slideFade?{opacity:b.opacity}:{},g=c[b.direction]||c.up;f[g[1]]=g[0]+"="+b.slideOffset;b.slideFade&&d.css({opacity:0});d.show().animate(f,b.slideInSpeed,a)},function(b){var f=this.getConf(),g=f.slideOffset,h=f.slideFade?{opacity:0}:{},i=c[f.direction]||c.up,j=""+i[0];if(f.bounce)j=j=="+"?"-":"+";h[i[1]]=j+"="+g;this.getTip().animate(h,f.slideOutSpeed,function(){a(this).hide();b.call()})})})(jQuery); 33 34(function(a){function c(a){for(var b=a.length;b--;)if(a[b])return false;return true}function b(b){var c=a(window),d=c.width()+c.scrollLeft(),e=c.height()+c.scrollTop();return[b.offset().top<=c.scrollTop(),d<=b.offset().left+b.width(),e<=b.offset().top+b.height(),c.scrollLeft()>=b.offset().left]}var d=a.tools.tooltip;d.dynamic={conf:{classNames:"top right bottom left"}};a.fn.dynamic=function(e){if(typeof e=="number")e={speed:e};e=a.extend({},d.dynamic.conf,e);var f=e.classNames.split(/\s/),h;this.each(function(){var d=a(this).tooltip().onBeforeShow(function(d,i){d=this.getTip();var l=this.getConf();h||(h=[l.position[0],l.position[1],l.offset[0],l.offset[1],a.extend({},l)]);a.extend(l,h[4]);l.position=[h[0],h[1]];l.offset=[h[2],h[3]];d.css({visibility:"hidden",position:"absolute",top:i.top,left:i.left}).show();i=b(d);if(!c(i)){if(i[2]){a.extend(l,e.top);l.position[0]="top";d.addClass(f[0])}if(i[3]){a.extend(l,e.right);l.position[1]="right";d.addClass(f[1])}if(i[0]){a.extend(l,e.bottom);l.position[0]="bottom";d.addClass(f[2])}if(i[1]){a.extend(l,e.left);l.position[1]="left";d.addClass(f[3])}if(i[0]||i[2])l.offset[0]*=-1;if(i[1]||i[3])l.offset[1]*=-1}d.css({visibility:"visible"}).hide()});d.onBeforeShow(function(){var a=this.getConf();this.getTip();setTimeout(function(){a.position=[h[0],h[1]];a.offset=[h[2],h[3]]},0)});d.onHide(function(){var a=this.getTip();a.removeClass(e.classNames)});ret=d});return e.api?ret:this}})(jQuery); 35 36jQuery(document).ready(function () { 37 /* Tooltip Run */ 38 (function ($) { 39 $('.link_tooltip').tooltip( { 40 effect : 'slide', 41 direction : 'up', 42 slideOffset : 15, 43 slideInSpeed : 300, 44 slideOutSpeed : 300, 45 position : 'top center' 46 } ); 47 } )(jQuery); 48} ); 49 50 51 52/* Social Icons Script */ 53(function($){$.fn.socicons=function(c){var d={icons:'digg,stumbleupon,delicious,facebook,yahoo',imagesurl:'images/share_icons/',imageformat:'png',light:true,targetblank:true,shorturl:''};var e=$.extend({},d,c);var f=this;var g=e.targetblank?'target="_blank"':'';var h=e.icons.split(',');for(key in h){var j=h[key];var k=socformat[h[key]];if(k!=undefined){k=k.replace('{TITLE}',urlencode(socicons_title()));k=k.replace('{URL}',urlencode(socicons_url()));k=k.replace('{SHORTURL}',urlencode(socicons_shorturl()));k=k.replace('{KEYWORDS}',urlencode(socicons_metawords()));k=k.replace('{DESCRIPTION}',urlencode(socicons_metadescript()));var l='<a '+g+' href="'+k+'" class="socicons_icon" title="'+j+'">
53<img src="'+e.imagesurl+j+'.'+e.imageformat+'" alt="'+j+'" /></a>';this.append(l)}}if(e.light){this.find('.socicons_icon').bind('mouseover',function(){$(this).siblings().stop().animate({'opacity':0.3},500)});this.find('.socicons_icon').bind('mouseout',function(){$(this).siblings().stop().animate({'opacity':1},500)})}var m;function socicons_metawords(){if(n==undefined){metaCollection=document.getElementsByTagName('meta');for(i=0;i<metaCollection.length;i++){nameAttribute=metaCollection[i].name.search(/keywords/);if(nameAttribute!=-1){m=metaCollection[i].content;return m}}}else{return m}}var n;function socicons_metadescript(){if(n==undefined){metaCollection=document.getElementsByTagName('meta');for(i=0;i<metaCollection.length;i++){nameAttribute=metaCollection[i].name.search(/description/);if(nameAttribute!=-1){n=metaCollection[i].content;return n}}}else{return n}}function socicons_title(){return document.title}function socicons_url(){var a=document.location.href;return a}function socicons_shorturl(){if(e.shorturl==''){return socicons_url()}else{return e.shorturl}}function urlencode(a){if(a==undefined){return''}return a.replace(/\s/g,'%20').replace('+','%2B').replace('/%20/g','+').replace('*','%2A').replace('/','%2F').replace('@','%40')}function light(a,b){if(b){a.style.opacity=1;a.childNodes[0].style.filter='progid:DXImageTransform.Microsoft.Alpha(opacity=100);'}else{a.style.opacity=light_opacity/100;a.style.filter='alpha(opacity=20)';a.childNodes[0].style.filter='progid:DXImageTransform.Microsoft.Alpha(opacity='+light_opacity+');'}}return this}})(jQuery); 54var socformat = Array(); 55socformat['nujij'] = 'http://nujij.nl/jij.lynkx?t={TITLE}&u={URL}&b={DESCRIPTION}' 56socformat['ekudos'] = 'http://www.ekudos.nl/artikel/nieuw?url={URL}&title={TITLE}&desc={DESCRIPTION}'; 57socformat['digg'] = 'http://digg.com/submit?phase=2&url={URL}&title={TITLE}'; 58socformat['linkedin'] = 'http://www.linkedin.com/shareArticle?mini=true&url={URL}&title={TITLE}&summary={DESCRIPTION}&source='; 59socformat['sphere'] = 'http://www.sphere.com/search?q=sphereit:{URL}'; 60socformat['technorati'] = 'http://www.technorati.com/faves?add={URL}'; 61socformat['delicious'] = 'http://del.icio.us/post?url={URL}&title={TITLE}'; 62socformat['furl'] = 'http://furl.net/storeIt.jsp?u={URL}&t={TITLE}'; 63socformat['netscape'] = 'http://www.netscape.com/submit/?U={URL}&T={TITLE}'; 64socformat['yahoo'] = 'http://myweb2.search.yahoo.com/myresults/bookmarklet?u={URL}&t={TITLE}'; 65socformat['google'] = 'http://www.google.com/bookmarks/mark?op=edit&bkmk={URL}&title={TITLE}'; 66socformat['newsvine'] = 'http://www.newsvine.com/_wine/save?u={URL}&h={TITLE}'; 67socformat['reddit'] = 'http://reddit.com/submit?url={URL}&title={TITLE}'; 68socformat['blogmarks'] = 'http://blogmarks.net/my/new.php?mini=1&url={URL}&title={TITLE}'; 69socformat['magnolia'] = 'http://ma.gnolia.com/bookmarklet/add?url={URL}&title={TITLE}'; 70socformat['live'] = 'https://favorites.live.com/quickadd.aspx?marklet=1&mkt=en-us&url={URL}&title={TITLE}&top=1'; 71socformat['tailrank'] = 'http://tailrank.com/share/?link_href={URL}&title={TITLE}'; 72socformat['facebook'] = 'http://www.facebook.com/share.php?u={URL}'; 73socformat['twitter'] = 'http://twitter.com/?status={TITLE}%20-%20{SHORTURL}'; 74socformat['stumbleupon'] = 'http://www.stumbleupon.com/submit?url={URL}&title={TITLE}'; 75socformat['bligg'] = 'http://www.bligg.nl/submit.php?url={URL}'; 76socformat['symbaloo'] = 'http://www.symbaloo.com/en/add/url={URL}&title={TITLE}'; 77socformat['misterwong'] = 'http://www.mister-wong.com/add_url/?bm_url={URL}&bm_title={TITLE}&bm_comment=&bm_tags={KEYWORDS}'; 78socformat['buzz'] = 'http://www.google.com/reader/link?url={URL}&title={TITLE}&snippet={DESCRIPTION}&srcURL={URL}&srcTitle={TITLE}'; 79socformat['myspace'] = 'http://www.myspace.com/Modules/PostTo/Pages/?u={URL}'; 80socformat['mail'] = 'mailto:[email protected]?SUBJECT={TITLE}&BODY={DESCRIPTION}-{URL}'; 81socformat['googleplus'] = 'https://m.google.com/app/plus/x/?v=compose&content={TITLE}-{URL}'; 82jQuery(document).ready(function() { 83 /* Social Icons Run */ 84// (function ($) { 85// $('.cmsms_social').socicons( { 86// icons : 'nujij,linkedin,ekudos,digg,sphere,technorati,delicious,furl,netscape,yahoo,google,newsvine,reddit,blogmarks,magnolia,live,tailrank,facebook,twitter,stumbleupon,bligg,symbaloo,misterwong,mail,googleplus', 87// imagesurl : 'images/socicons/' 88// } ); 89// } )(jQuery); 90 /* Social Icons Toggle */ 91 (function ($) { 92 $('a.cmsms_share').toggle(function () { 93 $(this).parent().find('.cmsms_social').show('slow'); 94 return false; 95 } , function () { 96 $(this).parent().find('.cmsms_social').hide('slow'); 97 return false; 98 } ); 99 } )(jQuery); 100 101 /* Top Social Block Toggle */ 102 (function ($) { 103 $('a.social_toggle').toggle(function () { 104 $(this).addClass('current'); 105 $(this).parent().parent().find('.social_block ul').slideDown('slow'); 106 return false; 107 } , function () { 108 $(this).removeClass('current'); 109 $(this).parent().parent().find('.social_block ul').slideUp('slow'); 110 return false; 111 } ); 112 } )(jQuery); 113 114 115 /* Scroll Top */ 116 (function ($) { 117 $('.top_scroll').click(function(){ 118 $('html, body').animate({ 119 scrollTop:0 120 }, 'slow'); 121 return false; 122 } ); 123 124 $(window).scroll(function () { 125 var sT = $(window).scrollTop(), 126 hH = Number($('#header').height()); 127 128 if (sT > 60) { 129 if ($('#header').addClass('navi_scrolled').is(':animated')) { 130 return false; 131 } else { 132 $('#page > .container').css( { paddingTop : (hH - 60) + 'px' } ); 133 134 $('#header').addClass('navi_scrolled').animate( { 135 margin : 0, 136 opacity : 1 137 }, 500); 138 } 139 } else { 140 if ($('#header').hasClass('navi_scrolled')) { 141 $('#page > .container').css( { paddingTop : 0 } ); 142 143 $('#header').removeClass('navi_scrolled').stop().attr( { style : '' } ); 144 } 145 } 146 } ); 147 } )(jQuery); 148 149 /* PrettyPhoto Lighbox */ 150 (function ($) { 151 $('a[rel^="prettyPhoto"]').prettyPhoto( { 152 animation_speed : 'slow', 153 show_title : false, 154 deeplinking : false, 155 social_tools : '' 156 } ); 157 } )(jQuery); 158 159 160 161 /* Mobile Devices Navigation Select Script */ 162 (function ($) { 163 $('select.resp_navigation').bind('change', function () { 164 if ($(this).val() !== '' && document.location.pathname !== '/' + $(this).val()) { 165 document.location.href = 'http://' + document.location.host + '/' + $(this).val(); 166 } 167 } ); 168 } )(jQuery); 169 170 (function ($) { 171 $('select.resp_navigation').bind('change', function () { 172 if ($(this).val() !== '' && document.location.href.replace($(this).val(), '') === document.location.href) { 173 document.location.href = $(this).val(); 174 } 175 } ); 176 } )(jQuery); 177 178 179 /* Popular, Latest and Related Posts */ 180 (function ($) { 181 $('.related_posts ul li a').click(function (e) { 182 var rposts = $(this).parent().parent().parent(), 183 index = $(this).parent().index(); 184 185 rposts.find('ul').find('a').removeClass('current'); 186 $(this).addClass('current'); 187 188 rposts.find('div.related_posts_content').not('div.related_posts_content:eq(' + index + ')').slide
188Up(); 189 rposts.find('div.related_posts_content:eq(' + index + ')').slideDown(); 190 191 e.preventDefault(); 192 } ); 193 } )(jQuery); 194 195 196 197 /* Toggle */ 198 (function ($) { 199 $('.togg a.tog').click(function (i) { 200 var dropDown = $(this).parent().find('.tab_content'); 201 202 $(this).parent().find('.tab_content').not(dropDown).slideUp(); 203 204 if ($(this).hasClass('current')) { 205 $(this).removeClass('current'); 206 } else { 207 $(this).addClass('current'); 208 } 209 210 dropDown.stop(false, true).slideToggle().css( {display : 'block'} ); 211 212 i.preventDefault(); 213 } ); 214 } )(jQuery); 215 216 217 218 /* Accordion */ 219 (function ($) { 220 $('.accordion a.tog').click(function (j) { 221 var dropDown = $(this).parent().find('.tab_content'); 222 223 $(this).parent().parent().find('.tab_content').not(dropDown).slideUp(); 224 225 if ($(this).hasClass('current')) { 226 $(this).removeClass('current'); 227 } else { 228 $(this).parent().parent().find('.tog').removeClass('current'); 229 $(this).addClass('current'); 230 } 231 232 dropDown.stop(false, true).slideToggle().css( {display : 'block'} ); 233 234 j.preventDefault(); 235 } ); 236 } )(jQuery); 237 238 239 240 /* Tabs */ 241 (function ($) { 242 $('.tab ul.tabs li:first-child a').addClass('current'); 243 $('.tab .tab_content div.tabs_tab:first-child').show(); 244 245 $('.tab ul.tabs li a').click(function (g) { 246 var tab = $(this).parent().parent().parent(), 247 index = $(this).parent().index(); 248 249 tab.find('ul.tabs').find('a').removeClass('current'); 250 $(this).addClass('current'); 251 252 tab.find('.tab_content').find('div.tabs_tab').not('div.tabs_tab:eq(' + index + ')').slideUp(); 253 tab.find('.tab_content').find('div.tabs_tab:eq(' + index + ')').slideDown(); 254 255 g.preventDefault(); 256 } ); 257 } )(jQuery); 258 259 260 261 /* Tour */ 262 (function ($) { 263 $('.tour_content ul.tour li:first-child').addClass('current'); 264 $('.tour_content div.tour_box:first').show(); 265 266 $('.tour_content ul.tour li a').click(function (f) { 267 var tour = $(this).parent().parent().parent().parent(), 268 index = $('ul.tour li').index($(this).parent()); 269 270 tour.find('ul.tour').find('li').removeClass('current'); 271 $(this).parent().addClass('current'); 272 273 tour.find('div.tour_box').not('div.tour_box:eq(' + index + ')').slideUp(); 274 tour.find('div.tour_box:eq(' + index + ')').slideDown(); 275 276 f.preventDefault(); 277 } ); 278 } )(jQuery); 279 280 281 282 /* Image Preloader */ 283 (function ($) { 284 var images = jQuery('.preloader img'), 285 max = images.length, 286 img = new Image(), 287 curr = 1; 288 289 jQuery('.preloader').each(function () { 290 jQuery('<span class="image_container_img" />').prependTo(jQuery(this)); 291 } ); 292 293 images.remove(); 294 295 if (max > 0) { 296 loadImage(0, max); 297 } 298 299 function loadImage(index, max) { 300 if (index < max) { 301 $('<span id="img' + (index + 1) + '" class="p_img_container" />').each(function () { 302 $(this).prependTo($('.preloader .image_container_img').eq(index)); 303 } ); 304 305 var img = new Image(), 306 curr = $('#img' + (index + 1)); 307 308 $(img).load(function () { 309 $(curr).append(this); 310 311 if ($(this).parent().parent().parent().hasClass('inBlog')) { 312 $(this).parent().parent().parent().css( { 313 height : 'auto', 314 padding : 0 315 } ); 316 } 317 318 $(this).parent().parent().parent().css( {backgroundImage : 'none'} ); 319 320 $(this).animate( {opacity : 1}, 500, 'easeInOutExpo'); 321 322 if (index !== (max - 1)) { 323 loadImage(index + 1, max); 324 } 325 } ).error(function () { 326 $(curr).remove(); 327 328 loadImage((index + 1), max); 329 } ).attr( { 330 src : $(images[index]).attr('src'), 331 title : $(images[index]).attr('title'), 332 alt : $(images[index]).attr('alt') 333 } ).addClass($(images[index]).attr('class')); 334 335 if (index === (max - 1) && $('#middle .pj_sort').find('.p_options_block').html() !== null) { 336 loadSorting(); 337 } 338 } 339 } 340 341 function loadSorting() { 342 if ($.browser.msie && $.browser.version < 9) { 343 $('.p_options_loader').css( {display : 'none'} ); 344 $('.p_options_block').css( {display : 'block'} ); 345 } else { 346 $('.p_options_loader').fadeOut(200, function () { 347 $(this).css( {display : 'none'} ); 348 } ); 349 350 $('.p_options_block').fadeIn(200); 351 } 352 } 353 } )(jQuery); 354} ); 355 356 357 358/* Correct OS & Browser Check */ 359var ua = navigator.userAgent, 360 checker = { 361 os : { 362 iphone : ua.match(/iPhone/), 363 ipod : ua.match(/iPod/), 364 ipad : ua.match(/iPad/), 365 blackberry : ua.match(/BlackBerry/), 366 android : ua.match(/(Android|Linux armv6l|Linux armv7l)/), 367 linux : ua.match(/Linux/), 368 win : ua.match(/Windows/), 369 mac : ua.match(/Macintosh/) 370 }, 371 ua : { 372 ie : ua.match(/MSIE/), 373 ie6 : ua.match(/MSIE 6.0/), 374 ie7 : ua.match(/MSIE 7.0/), 375 ie8 : ua.match(/MSIE 8.0/), 376 ie9 : ua.match(/MSIE 9.0/), 377 ie10 : ua.match(/MSIE 10.0/), 378 opera : ua.match(/Opera/), 379 firefox : ua.match(/Firefox/), 380 chrome : ua.match(/Chrome/), 381 safari : ua.match(/(Safari|BlackBerry)/) 382 } 383 }; 384 385 386 387/* Correct Image Load Check */ 388function isImageOk(img) { 389 if (!img.complete) { 390 return false; 391 } 392
393 if (typeof img.naturalWidth !== undefined && img.naturalWidth === 0) { 394 return 'stop'; 395 } 396 397 return true; 398} 399/* Like Button */ 400function cmsmsLike(postId) { 401 if (postId !== '') { 402 var likeButton = jQuery('#cmsmsLike-' + postId); 403 likeButton.find('span').text('...'); 404 jQuery.post( 405 templateURL + '/theme/functions/like.php', 406 {id : postId}, 407 function (data) { 408 likeButton.find('span').text(data); 409 likeButton.addClass('active'); 410 likeButton.attr( {onclick : 'return false;'} ); 411 } 412 ); 413 } 414 return false; 415} 416/* Comment Form Submit */ 417function submitform() { 418 document.forms['commentform'].submit(); 419 return false; 420} 421 422/* Convert Touch Events to Mouse Events Function */ 423function touchHandler(e) { 424 var first = e.changedTouches[0], 425 type = '', 426 simulatedEvent = undefined; 427 428 switch (e.type) { 429 case 'touchstart': 430 type = 'mousedown'; 431 432 break; 433 case 'touchmove': 434 type = 'mousemove'; 435 436 break; 437 case 'touchend': 438 type = 'mouseup'; 439 440 break; 441 case 'touchcancel': 442 type = 'mouseleave'; 443 444 break; 445 default: 446 return; 447 } 448 449 simulatedEvent = document.createEvent('MouseEvent'); 450 simulatedEvent.initMouseEvent( 451 type, 452 true, 453 true, 454 window, 455 1, 456 first.screenX, 457 first.screenY, 458 first.clientX, 459 first.clientY, 460 false, 461 false, 462 false, 463 false, 464 0, 465 null 466 ); 467 468 first.target.dispatchEvent(simulatedEvent); 469 470 e.preventDefault(); 471} 472 473/* Sliders Touch Events Convert Run */ 474(function ($) { 475 if (!checker.ua.ie6 && !checker.ua.ie7 && !checker.ua.ie8) { 476 document.addEventListener('touchstart', function (e) { 477 if ( 478 $(e.changedTouches[0].target).is('img.cmsms_img') || 479 $(e.changedTouches[0].target).is('div.cmsms_img_pattern') || 480 $(e.changedTouches[0].target).is('div.cmsms_img_video') || 481 $(e.changedTouches[0].target).parent().is('li.cmsmsContentSlide.active') || 482 $(e.changedTouches[0].target).parent().parent().is('li.cmsmsContentSlide.active') || 483 $(e.changedTouches[0].target).parent().parent().parent().is('li.cmsmsContentSlide.active') || 484 $(e.changedTouches[0].target).parent().parent().parent().parent().is('li.cmsmsContentSlide.active') || 485 $(e.changedTouches[0].target).parent().parent().parent().parent().parent().is('li.cmsmsContentSlide.active') 486 ) { 487 touchHandler(e); 488 } 489 }, true); 490 491 document.addEventListener('touchmove', function (e) { 492 if ( 493 $(e.changedTouches[0].target).is('img.cmsms_img') || 494 $(e.changedTouches[0].target).is('div.cmsms_img_pattern') || 495 $(e.changedTouches[0].target).is('div.cmsms_img_video') || 496 $(e.changedTouches[0].target).parent().is('li.cmsmsContentSlide.active') || 497 $(e.changedTouches[0].target).parent().parent().is('li.cmsmsContentSlide.active') || 498 $(e.changedTouches[0].target).parent().parent().parent().is('li.cmsmsContentSlide.active') || 499 $(e.changedTouches[0].target).parent().parent().parent().parent().is('li.cmsmsContentSlide.active') || 500 $(e.changedTouches[0].target).parent().parent().parent().parent().parent().is('li.cmsmsContentSlide.active') 501 ) { 502 touchHandler(e); 503 } 504 }, true); 505 506 document.addEventListener('touchend', function (e) { 507 if ( 508 $(e.changedTouches[0].target).is('img.cmsms_img') || 509 $(e.changedTouches[0].target).is('div.cmsms_img_pattern') || 510 $(e.changedTouches[0].target).is('div.cmsms_img_video') || 511 $(e.changedTouches[0].target).parent().is('li.cmsmsContentSlide.active') || 512 $(e.changedTouches[0].target).parent().parent().is('li.cmsmsContentSlide.active') || 513 $(e.changedTouches[0].target).parent().parent().parent().is('li.cmsmsContentSlide.active') || 514 $(e.changedTouches[0].target).parent().parent().parent().parent().is('li.cmsmsContentSlide.active') || 515 $(e.changedTouches[0].target).parent().parent().parent().parent().parent().is('li.cmsmsContentSlide.active') 516 ) { 517 touchHandler(e); 518 } 519 }, true); 520 521 document.addEventListener('touchcancel', function (e) { 522 if ( 523 $(e.changedTouches[0].target).is('img.cmsms_img') || 524 $(e.changedTouches[0].target).is('div.cmsms_img_pattern') || 525 $(e.changedTouches[0].target).is('div.cmsms_img_video') || 526 $(e.changedTouches[0].target).parent().is('li.cmsmsContentSlide.active') || 527 $(e.changedTouches[0].target).parent().parent().is('li.cmsmsContentSlide.active') || 528 $(e.changedTouches[0].target).parent().parent().parent().is('li.cmsmsContentSlide.active') || 529 $(e.changedTouches[0].target).parent().parent().parent().parent().is('li.cmsmsContentSlide.active') || 530 $(e.changedTouches[0].target).parent().parent().parent().parent().parent().is('li.cmsmsContentSlide.active') 531 ) { 532 touchHandler(e); 533 } 534 }, true); 535 } 536} )(jQuery); 537/*Scroll to top functions*/ 538function f_clientWidth() { 539 return f_filterResults ( 540 window.innerWidth ? window.innerWidth : 0, 541 document.documentElement ? document.documentElement.clientWidth : 0, 542 document.body ? document.body.clientWidth : 0 543 ); 544} 545function f_clientHeight() { 546 return f_filterResults ( 547 window.innerHeight ? window.innerHeight : 0, 548 document.documentElement ? document.documentElement.clientHeight : 0, 549 document.body ? document.body.clientHeight : 0 550 ); 551} 552function f_scrollLeft() { 553 return f_filterResults ( 554 window.pageXOffset ? window.pageXOffset : 0, 555 document.documentElement ? document.documentElement.scrollLeft : 0, 556 document.body ? document.body.scrollLeft : 0 557 ); 558} 559function f_scrollTop() { 560 return f_filterResults ( 561 window.pageYOffset ? window.pageYOffset : 0, 562 document.documentElement ? document.documentElement.scrollTop : 0, 563 document.body ? document.body.scrollTop : 0 564 ); 565} 566function f_filterResults(n_win, n_docel, n_body) { 567 var n_result = n_win ? n_win : 0; 568 if (n_docel && (!n_result || (n_result > n_docel))) 569 n_result = n_docel; 570 return n_body && (!n_result || (n_result > n_body)) ? n_body : n_result; 571}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.