wordpress-theme-cbsonline/js/biz-vektor-fix-min.js

126 lines
22 KiB
JavaScript
Raw Permalink Normal View History

2020-10-29 23:50:19 +09:00
jQuery("#wp-admin-bar-editGuide .ab-item").click(function(){if(!jQuery(this).hasClass("close")){var a=jQuery(this).html();jQuery(this).html(a.replace(/OPEN/,"CLOSE")).addClass("close");
jQuery(".adminEdit").each(function(c){jQuery(this).hide();});jQuery(".edit-link").each(function(c){jQuery(this).hide();});}else{var b=jQuery(this).html();
jQuery(this).html(b.replace(/CLOSE/,"OPEN")).removeClass("close");jQuery(".adminEdit").each(function(c){jQuery(this).show();});jQuery(".edit-link").each(function(c){jQuery(this).show();
});}});jQuery("iframe").each(function(e){var d=jQuery(this).attr("src");if(!d){return;}idx=d.indexOf("youtube");if(idx!=-1){console.log(d);jQuery(this).addClass("iframeYoutube").css({"max-width":"100%"});
var b=jQuery(this).attr("width");var f=jQuery(this).attr("height");var a=f/b;var g=jQuery(this).width();var c=g*a;jQuery(this).css({"max-width":"100%",height:c});
}});likeBoxReSize();jQuery(window).resize(function(){likeBoxReSize();});function likeBoxReSize(){jQuery(".fb-like-box").each(function(){var a=jQuery(this).parent().width();
jQuery(this).attr("data-width",a);jQuery(this).children("span:first").css({width:a});jQuery(this).children("span iframe.fb_ltr").css({width:a});});}fbCommentReSize();
jQuery(window).resize(function(){fbCommentReSize();});function fbCommentReSize(){jQuery(".fb-comments").each(function(){var a=jQuery(this).parent().width();
jQuery(this).attr("data-width",a);jQuery(this).children("span:first").css({width:a});jQuery(this).children("span iframe.fb_ltr").css({width:a});});}var initRollovers=window.onload;
window.onload=function(){if(!document.getElementById){return;}var c=new Array();var b;var a=function(k){for(var g=0;g<k.length;g++){if(k[g].className=="imgover"){var j=k[g].getAttribute("src");
var f=j.substring(j.lastIndexOf("."),j.length);var h=j.replace(f,"_on"+f);k[g].setAttribute("hsrc",h);c[g]=new Image();c[g].src=h;k[g].onmouseover=function(){b=this.getAttribute("src");
this.setAttribute("src",this.getAttribute("hsrc"));};k[g].onmouseout=function(){if(!b){b=this.getAttribute("src").replace("_on"+f,f);}this.setAttribute("src",b);
};}}};var d=document.getElementsByTagName("img");a(d);var e=document.getElementsByTagName("input");a(e);if(initRollovers){initRollovers();}};jQuery(document).ready(function(){jQuery("a[href*='#']").click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var a=jQuery(this.hash);
a=a.length&&a||jQuery("[name="+this.hash.slice(1)+"]");if(a.length){var b=a.offset().top;jQuery("html,body").animate({scrollTop:b},1200,"quart");return false;
}}});});jQuery.easing.quart=function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a;};new function(){var d="footerSection";function a(){var g=document.getElementsByTagName("body")[0].clientHeight;
document.getElementById(d).style.top="0px";var h=document.getElementById(d).offsetTop;var e=document.getElementById(d).offsetHeight;if(window.innerHeight){var f=window.innerHeight;
}else{if(document.documentElement&&document.documentElement.clientHeight!=0){var f=document.documentElement.clientHeight;}}if(h+e<f){document.getElementById(d).style.position="relative";
document.getElementById(d).style.top=(f-e-h-1)+"px";}}function b(h){var i=document.createElement("div");var g=document.createTextNode("S");i.appendChild(g);
i.style.visibility="hidden";i.style.position="absolute";i.style.top="0";document.body.appendChild(i);var f=i.offsetHeight;function j(){if(f!=i.offsetHeight){h();
f=i.offsetHeight;}}setInterval(j,1000);}function c(i,g,f){try{i.addEventListener(g,f,false);}catch(h){i.attachEvent("on"+g,f);}}c(window,"load",a);c(window,"load",function(){b(a);
});c(window,"resize",a);};jQuery("#btn").on("click",function(){jQuery(this).next().next().slideToggle();jQuery(this).toggleClass("active");});(function(a){a.flexslider=function(c,b){var d=a(c);
a.data(c,"flexslider",d);d.init=function(){d.vars=a.extend({},a.flexslider.defaults,b);a.data(c,"flexsliderInit",true);d.container=a(".slides",d).first();
d.slides=a(".slides:first > li",d);d.count=d.slides.length;d.animating=false;d.currentSlide=d.vars.slideToStart;d.animatingTo=d.currentSlide;d.atEnd=(d.currentSlide==0)?true:false;
d.eventType=("ontouchstart" in document.documentElement)?"touchstart":"click";d.cloneCount=0;d.cloneOffset=0;d.manualPause=false;d.vertical=(d.vars.slideDirection=="vertical");
d.prop=(d.vertical)?"top":"marginLeft";d.args={};d.transitions="webkitTransition" in document.body.style;if(d.transitions){d.prop="-webkit-transform";}if(d.vars.controlsContainer!=""){d.controlsContainer=a(d.vars.controlsContainer).eq(a(".slides").index(d.container));
d.containerExists=d.controlsContainer.length>0;}if(d.vars.manualControls!=""){d.manualControls=a(d.vars.manualControls,((d.containerExists)?d.controlsContainer:d));
d.manualExists=d.manualControls.length>0;}if(d.vars.randomize){d.slides.sort(function(){return(Math.round(Math.random())-0.5);});d.container.empty().append(d.slides);
}if(d.vars.animation.toLowerCase()=="slide"){if(d.transitions){d.setTransition(0);}d.css({overflow:"hidden"});if(d.vars.animationLoop){d.cloneCount=2;d.cloneOffset=1;
d.container.append(d.slides.filter(":first").clone().addClass("clone")).prepend(d.slides.filter(":last").clone().addClass("clone"));}d.newSlides=a(".slides:first > li",d);
var m=(-1*(d.currentSlide+d.cloneOffset));if(d.vertical){d.newSlides.css({display:"block",width:"100%","float":"left"});d.container.height((d.count+d.cloneCount)*200+"%").css("position","absolute").width("100%");
setTimeout(function(){d.css({position:"relative"}).height(d.slides.filter(":first").height());d.args[d.prop]=(d.transitions)?"translate3d(0,"+m*d.height()+"px,0)":m*d.height()+"px";
d.container.css(d.args);},100);}else{d.args[d.prop]=(d.transitions)?"translate3d("+m*d.width()+"px,0,0)":m*d.width()+"px";d.container.width((d.count+d.cloneCount)*200+"%").css(d.args);
setTimeout(function(){d.newSlides.width(d.width()).css({"float":"left",display:"block"});},100);}}else{d.transitions=false;d.slides.css({width:"100%","float":"left",marginRight:"-100%"}).eq(d.currentSlide).fadeIn(d.vars.animationDuration);
}if(d.vars.controlNav){if(d.manualExists){d.controlNav=d.manualControls;}else{var e=a('<ol class="flex-control-nav"></ol>');var s=1;for(var t=0;t<d.count;
t++){e.append("<li><a>"+s+"</a></li>");s++;}if(d.containerExists){a(d.controlsContainer).append(e);d.controlNav=a(".flex-control-nav li a",d.controlsContainer);
}else{d.append(e);d.controlNav=a(".flex-control-nav li a",d);}}d.controlNav.eq(d.currentSlide).addClass("active");d.controlNav.bind(d.eventType,function(i){i.preventDefault();
if(!a(this).hasClass("active")){(d.controlNav.index(a(this))>d.currentSlide)?d.direction="next":d.direction="prev";d.flexAnimate(d.controlNav.index(a(this)),d.vars.pauseOnAction);
}});}if(d.vars.directionNav){var v=a('<ul class="flex-direction-nav"><li><a class="prev" href="#">'+d.vars.prevText+'</a></li><li><a class="next" href="#">'+d.vars.nextText+"</a></li></ul>");
if(d.containerExists){a(d.controlsContainer).append(v);d.directionNav=a(".flex-direction-nav li a",d.controlsContainer);}else{d.append(v);d.directionNav=a(".flex-direction-nav li a",d);
}if(!d.vars.animationLoop){if(d.currentSlide==0){d.directionNav.filter(".prev").addClass("disabled");}else{if(d.currentSlide==d.count-1){d.directionNav.filter(".next").addClass("disabled");
}}}d.directionNav.bind(d.eventType,function(i){i.preventDefault();var j=(a(this).hasClass("next"))?d.getTarget("next"):d.getTarget("prev");if(d.canAdvance(j)){d.flexAnimate(j,d.vars.pauseOnAction);
}});}if(d.vars.keyboardNav&&a("ul.slides").length==1){function h(i){if(d.animating){return;}else{if(i.keyCode!=39&&i.keyCode!=37){return;}else{if(i.keyCode==39){var j=d.getTarget("next");
}else{if(i.keyCode==37){var j=d.getTarget("prev");}}if(d.canAdvance(j)){d.flexAnimate(j,d.vars.pauseOnAction);}}}}a(document).bind("keyup",h);}if(d.vars.mousewheel){d.mousewheelEvent=(/Firefox/i.test(navigator.userAgent))?"DOMMouseScroll":"mousewheel";
d.bind(d.mousewheelEvent,function(y){y.preventDefault();y=y?y:window.event;var i=y.detail?y.detail*-1:y.originalEvent.wheelDelta/40,j=(i<0)?d.getTarget("next"):d.getTarget("prev");
if(d.canAdvance(j)){d.flexAnimate(j,d.vars.pauseOnAction);}});}if(d.vars.slideshow){if(d.vars.pauseOnHover&&d.vars.slideshow){d.hover(function(){d.pause();
},function(){if(!d.manualPause){d.resume();}});}d.animatedSlides=setInterval(d.animateSlides,d.vars.slideshowSpeed);}if(d.vars.pausePlay){var q=a('<div class="flex-pauseplay"><span></span></div>');
if(d.containerExists){d.controlsContainer.append(q);d.pausePlay=a(".flex-pauseplay span",d.controlsContainer);}else{d.append(q);d.pausePlay=a(".flex-pauseplay span",d);
}var n=(d.vars.slideshow)?"pause":"play";d.pausePlay.addClass(n).text((n=="pause")?d.vars.pauseText:d.vars.playText);d.pausePlay.bind(d.eventType,function(i){i.preventDefault();
if(a(this).hasClass("pause")){d.pause();d.manualPause=true;}else{d.resume();d.manualPause=false;}});}if("ontouchstart" in document.documentElement){var w,u,l,r,o,x,p=false;
d.each(function(){if("ontouchstart" in document.documentElement){this.addEventListener("touchstart",g,false);}});function g(i){if(d.animating){i.preventDefault();
}else{if(i.touches.length==1){d.pause();r=(d.vertical)?d.height():d.width();x=Number(new Date());l=(d.vertical)?(d.currentSlide+d.cloneOffset)*d.height():(d.currentSlide+d.cloneOffset)*d.width();
w=(d.vertical)?i.touches[0].pageY:i.touches[0].pageX;u=(d.vertical)?i.touches[0].pageX:i.touches[0].pageY;d.setTransition(0);this.addEventListener("touchmove",k,false);
this.addEventListener("touchend",f,false);}}}function k(i){o=(d.vertical)?w-i.touches[0].pageY:w-i.touches[0].pageX;p=(d.vertical)?(Math.abs(o)<Math.abs(i.touches[0].pageX-u)):(Math.abs(o)<Math.abs(i.touches[0].pageY-u));
if(!p){i.preventDefault();if(d.vars.animation=="slide"&&d.transitions){if(!d.vars.animationLoop){o=o/((d.currentSlide==0&&o<0||d.currentSlide==d.count-1&&o>0)?(Math.abs(o)/r+2):1);
}d.args[d.prop]=(d.vertical)?"translate3d(0,"+(-l-o)+"px,0)":"translate3d("+(-l-o)+"px,0,0)";d.container.css(d.args);}}}function f(j){d.animating=false;
if(d.animatingTo==d.currentSlide&&!p&&!(o==null)){var i=(o>0)?d.getTarget("next"):d.getTarget("prev");if(d.canAdvance(i)&&Number(new Date())-x<550&&Math.abs(o)>20||Math.abs(o)>r/2){d.flexAnimate(i,d.vars.pauseOnAction);
}else{d.flexAnimate(d.currentSlide,d.vars.pauseOnAction);}}this.removeEventListener("touchmove",k,false);this.removeEventListener("touchend",f,false);w=null;
u=null;o=null;l=null;}}if(d.vars.animation.toLowerCase()=="slide"){a(window).resize(function(){if(!d.animating&&d.is(":visible")){if(d.vertical){d.height(d.slides.filter(":first").height());
d.args[d.prop]=(-1*(d.currentSlide+d.cloneOffset))*d.slides.filter(":first").height()+"px";if(d.transitions){d.setTransition(0);d.args[d.prop]=(d.vertical)?"translate3d(0,"+d.args[d.prop]+",0)":"translate3d("+d.args[d.prop]+",0,0)";
}d.container.css(d.args);}else{d.newSlides.width(d.width());d.args[d.prop]=(-1*(d.currentSlide+d.cloneOffset))*d.width()+"px";if(d.transitions){d.setTransition(0);
d.args[d.prop]=(d.vertical)?"translate3d(0,"+d.args[d.prop]+",0)":"translate3d("+d.args[d.prop]+",0,0)";}d.container.css(d.args);}}});}d.vars.start(d);
};d.flexAnimate=function(g,f){if(!d.animating&&d.is(":visible")){d.animating=true;d.animatingTo=g;d.vars.before(d);if(f){d.pause();}if(d.vars.controlNav){d.controlNav.removeClass("active").eq(g).addClass("active");
}d.atEnd=(g==0||g==d.count-1)?true:false;if(!d.vars.animationLoop&&d.vars.directionNav){if(g==0){d.directionNav.removeClass("disabled").filter(".prev").addClass("disabled");
}else{if(g==d.count-1){d.directionNav.removeClass("disabled").filter(".next").addClass("disabled");}else{d.directionNav.removeClass("disabled");}}}if(!d.vars.animationLoop&&g==d.count-1){d.pause();
d.vars.end(d);}if(d.vars.animation.toLowerCase()=="slide"){var e=(d.vertical)?d.slides.filter(":first").height():d.slides.filter(":first").width();if(d.currentSlide==0&&g==d.count-1&&d.vars.animationLoop&&d.direction!="next"){d.slideString="0px";
}else{if(d.currentSlide==d.count-1&&g==0&&d.vars.animationLoop&&d.direction!="prev"){d.slideString=(-1*(d.count+1))*e+"px";}else{d.slideString=(-1*(g+d.cloneOffset))*e+"px";
}}d.args[d.prop]=d.slideString;if(d.transitions){d.setTransition(d.vars.animationDuration);d.args[d.prop]=(d.vertical)?"translate3d(0,"+d.slideString+",0)":"translate3d("+d.slideString+",0,0)";
d.container.css(d.args).one("webkitTransitionEnd transitionend",function(){d.wrapup(e);});}else{d.container.animate(d.args,d.vars.animationDuration,function(){d.wrapup(e);
});}}else{d.slides.eq(d.currentSlide).fadeOut(d.vars.animationDuration);d.slides.eq(g).fadeIn(d.vars.animationDuration,function(){d.wrapup();});}}};d.wrapup=function(e){if(d.vars.animation=="slide"){if(d.currentSlide==0&&d.animatingTo==d.count-1&&d.vars.animationLoop){d.args[d.prop]=(-1*d.count)*e+"px";
if(d.transitions){d.setTransition(0);d.args[d.prop]=(d.vertical)?"translate3d(0,"+d.args[d.prop]+",0)":"translate3d("+d.args[d.prop]+",0,0)";}d.container.css(d.args);
}else{if(d.currentSlide==d.count-1&&d.animatingTo==0&&d.vars.animationLoop){d.args[d.prop]=-1*e+"px";if(d.transitions){d.setTransition(0);d.args[d.prop]=(d.vertical)?"translate3d(0,"+d.args[d.prop]+",0)":"translate3d("+d.args[d.prop]+",0,0)";
}d.container.css(d.args);}}}d.animating=false;d.currentSlide=d.animatingTo;d.vars.after(d);};d.animateSlides=function(){if(!d.animating){d.flexAnimate(d.getTarget("next"));
}};d.pause=function(){clearInterval(d.animatedSlides);if(d.vars.pausePlay){d.pausePlay.removeClass("pause").addClass("play").text(d.vars.playText);}};d.resume=function(){d.animatedSlides=setInterval(d.animateSlides,d.vars.slideshowSpeed);
if(d.vars.pausePlay){d.pausePlay.removeClass("play").addClass("pause").text(d.vars.pauseText);}};d.canAdvance=function(e){if(!d.vars.animationLoop&&d.atEnd){if(d.currentSlide==0&&e==d.count-1&&d.direction!="next"){return false;
}else{if(d.currentSlide==d.count-1&&e==0&&d.direction=="next"){return false;}else{return true;}}}else{return true;}};d.getTarget=function(e){d.direction=e;
if(e=="next"){return(d.currentSlide==d.count-1)?0:d.currentSlide+1;}else{return(d.currentSlide==0)?d.count-1:d.currentSlide-1;}};d.setTransition=function(e){d.container.css({"-webkit-transition-duration":(e/1000)+"s"});
};d.init();};a.flexslider.defaults={animation:"fade",slideDirection:"horizontal",slideshow:true,slideshowSpeed:5000,animationDuration:600,directionNav:true,controlNav:true,keyboardNav:true,mousewheel:false,prevText:"Previous",nextText:"Next",pausePlay:false,pauseText:"Pause",playText:"Play",randomize:false,slideToStart:0,animationLoop:true,pauseOnAction:true,pauseOnHover:false,controlsContainer:"",manualControls:"",start:function(){},before:function(){},after:function(){},end:function(){}};
a.fn.flexslider=function(b){return this.each(function(){if(a(this).find(".slides > li").length==1){a(this).find(".slides > li").fadeIn(400);}else{if(a(this).data("flexsliderInit")!=true){new a.flexslider(this,b);
}}});};})(jQuery);jQuery(".flexslider").flexslider();var breakPoint1=950;var breakPoint2=655;jQuery(function(){resVektorRun();});jQuery(document).ready(function(){resVektorRun();
});jQuery(window).resize(function(){resVektorRun();});var mode;function resVektorRun(){resThumbTxtFix();var a=jQuery(window).width();if(a<=breakPoint2){if(mode!="mode_mobile"){showHide_mode_mobile();
changeImageFile_mode_mobile();resImgTxtChange_mode_mobile();dropNavReset();dropNavFunctions();dropNavSubControlLinkDelete();mode="mode_mobile";}}if((breakPoint2<a)&&(a<breakPoint1)){if(mode!="mode_tab"){showHide_mode_tab();
changeImageFile_mode_tab();resImgTxtChange_mode_tab();dropNavReset();dropNavFunctions();dropNavSubControlLinkDelete();mode="mode_tab";}}if(breakPoint1<=a){if(mode!="mode_full"){showHide_mode_full();
changeImageFile_mode_full();resImgTxtChange_mode_full();dropNavReset();dropNavSubControlLinkRedo();mode="mode_full";}}}function showHide_mode_full(){jQuery(".show-tab-full,.show-full-only").each(function(){jQuery(this).show();
});jQuery(".show-mobile-only,.show-mobile-tab,.show-tab-only").each(function(){jQuery(this).hide();});}function showHide_mode_tab(){jQuery(".show-mobile-tab,.show-tab-only,.show-tab-full").each(function(){jQuery(this).show();
});jQuery(".show-mobile-only,.show-full-only").each(function(){jQuery(this).hide();});}function showHide_mode_mobile(){jQuery(".show-mobile-only,.show-mobile-tab").each(function(){jQuery(this).show();
});jQuery(".show-tab-only,.show-tab-full,.show-full-only").each(function(){jQuery(this).hide();});}function changeImageFile_mode_mobile(){mobileImageChange();
}function changeImageFile_mode_tab(){mobileImageBack();}function changeImageFile_mode_full(){mobileImageBack();}function mobileImageChange(){jQuery("img.resImage-mobile").each(function(){if(jQuery(this).hasClass("resImgMobile")!=true){var a=jQuery(this).attr("src").replace(/(\.[a-zA-Z]+)$/,"_mobile$1");
jQuery(this).attr("src",a).addClass("resImgMobile");}});}function mobileImageBack(){jQuery("img.resImage-mobile").each(function(){if(jQuery(this).hasClass("resImgMobile")){var a=jQuery(this).attr("src").replace(/_mobile(\.[a-zA-Z]+)$/,"$1");
jQuery(this).attr("src",a).removeClass("resImgMobile");}});}function dropNavFunctions(){jQuery(".dropNavControl").each(function(){var a=jQuery(this).next();
jQuery(this).click(function(){if(jQuery(this).hasClass("dropNavOpen")){jQuery(this).removeClass("dropNavOpen");a.animate({height:"0"});}else{jQuery(this).removeClass("dropNavOpen");
a.css({position:"absolute",opacity:"0",height:"auto"});var b=a.height();a.css({position:"relative",opacity:"1",height:"0",display:"block"});a.animate({height:b},function(){jQuery(this).css({height:"auto"});
});jQuery(this).addClass("dropNavOpen");}});});}function dropNavReset(){jQuery("a.dropNavControl.dropNavSubControl").each(function(){jQuery(this).next().hide();
});}function dropNavSubControlLinkDelete(){jQuery("a.dropNavControl.dropNavSubControl").each(function(){if(jQuery(this).hasClass("subControlMode")!==true){jQuery(this).addClass("subControlMode");
var a=jQuery(this).attr("href");jQuery(this).attr("href","#").before('<span class="subControlLinkUrl">'+a+"</span>");jQuery(this).prev().hide();}});}function dropNavSubControlLinkRedo(){jQuery("span.subControlLinkUrl").each(function(){var a=jQuery(this).html();
jQuery(this).next().attr("href",a).removeClass("subControlMode");jQuery(this).remove();});}function resImgTxtChange_mode_mobile(){resImgTxtChange_mobile_only();
resImgTxtChange_mobile_tab();}function resImgTxtChange_mode_tab(){resImgTxtChange_mobile_tab();resImgTxtBack_mobile_only();}function resImgTxtChange_mode_full(){resImgTxtBack_mobile_tab();
}function resImgTxtChange_mobile_only(){jQuery("img.resImgTxtChange-mobile-only").each(function(){var b=jQuery(this).prev().hasClass("resTxtChange-mobile-only");
if(b===false){var a='<span class="resTxtChange-mobile-only">'+jQuery(this).attr("alt")+"</span>";jQuery(this).before(a);jQuery(this).hide();}});}function resImgTxtChange_mobile_tab(){jQuery("img.resImgTxtChange-mobile-tab").each(function(){var b=jQuery(this).prev().hasClass("resTxtChange-mobile-tab");
if(b===false){var a='<span class="resTxtChange-mobile-tab">'+jQuery(this).attr("alt")+"</span>";jQuery(this).before(a);jQuery(this).hide();}});}function resImgTxtBack_mobile_tab(){jQuery("span.resTxtChange-mobile-tab").each(function(){jQuery(this).next().show();
jQuery(this).remove();});}function resImgTxtBack_mobile_only(){jQuery("span.resTxtChange-mobile-only").each(function(){jQuery(this).next().show();jQuery(this).remove();
});}function resThumbTxtFix(){jQuery(".ttBox").each(function(){var b=jQuery(this).width();var a=jQuery(this).children(".ttBoxThumb").width();txtWidth=b-a-15;
jQuery(this).children(".ttBoxTxt").css({width:txtWidth});});}function showHide(a){if(document.getElementById(a)){var b="#"+a;if(jQuery(b).hasClass("itemOpen")){document.getElementById(a).className="itemClose";
}else{document.getElementById(a).className="itemOpen";}}}jQuery(document).ready(function(){jQuery("#back-top").hide();jQuery(function(){jQuery(window).scroll(function(){if(jQuery(this).scrollTop()>100){jQuery("#back-top").fadeIn();
}else{jQuery("#back-top").stop().fadeOut();}});jQuery("#back-top a").click(function(){jQuery("body,html").animate({scrollTop:0},800);return false;});});
});
/*!
* jQuery Cookie Plugin v1.3.1
* https://github.com/carhartl/jquery-cookie
*
* Copyright 2013 Klaus Hartl
* Released under the MIT license
*/
(function(a){if(typeof define==="function"&&define.amd&&define.amd.jQuery){define(["jquery"],a);
}else{a(jQuery);}}(function(e){var a=/\+/g;function d(g){return g;}function b(g){return decodeURIComponent(g.replace(a," "));}function f(g){if(g.indexOf('"')===0){g=g.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\");
}try{return c.json?JSON.parse(g):g;}catch(h){}}var c=e.cookie=function(p,o,u){if(o!==undefined){u=e.extend({},c.defaults,u);if(typeof u.expires==="number"){var q=u.expires,s=u.expires=new Date();
s.setDate(s.getDate()+q);}o=c.json?JSON.stringify(o):String(o);return(document.cookie=[encodeURIComponent(p),"=",c.raw?o:encodeURIComponent(o),u.expires?"; expires="+u.expires.toUTCString():"",u.path?"; path="+u.path:"",u.domain?"; domain="+u.domain:"",u.secure?"; secure":""].join(""));
}var g=c.raw?d:b;var r=document.cookie.split("; ");var v=p?undefined:{};for(var n=0,k=r.length;n<k;n++){var m=r[n].split("=");var h=g(m.shift());var j=g(m.join("="));
if(p&&p===h){v=f(j);break;}if(!p){v[h]=f(j);}}return v;};c.defaults={};e.removeCookie=function(h,g){if(e.cookie(h)!==undefined){e.cookie(h,"",e.extend(g,{expires:-1}));
return true;}return false;};}));jQuery.changeLetterSize={handlers:[],interval:1000,currentSize:0};(function(e){var c=e.changeLetterSize;var d=e("<ins>M</ins>").css({display:"block",visibility:"hidden",position:"absolute",padding:"0",top:"0"});
var b=function(){d.appendTo("body");var f=d[0].offsetHeight;d.remove();if(c.currentSize==f){return false;}c.currentSize=f;return true;};e(b);var a=function(){if(!b()){return;
}e.each(c.handlers,function(f,g){g();});};c.addHandler=function(f){c.handlers.push(f);if(c.handlers.length==1){setInterval(a,c.interval);}};})(jQuery);
(function(c){var b=[];var a=function(f){var e=0;f.each(function(){var g=this.offsetHeight;if(g>e){e=g;}});f.css("height",e+"px");};jQuery.fn.flatHeights=function(){if(this.length>1){a(this);
b.push(this);}return this;};var d=function(){c.each(b,function(){this.height("auto");a(this);});};c.changeLetterSize.addHandler(d);c(window).resize(d);
})(jQuery);jQuery(document).ready(function(a){jQuery(".topPrTit a").flatHeights();jQuery(".topPrDescription").flatHeights();jQuery(".child_page_block").flatHeights();
jQuery(".child_page_block p").flatHeights();jQuery("#content .child_page_block h4 a").flatHeights();});