From 48f6315d2d6dac69c4612d07240436f0c9e179a2 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Tue, 26 May 2020 18:48:11 +0200 Subject: [PATCH] Remove old (tracking) scripts, css, and includes (#10892) These scripts and files were added a long time ago, and are now either replaced with something else, or managed through GTM. Signed-off-by: Sebastiaan van Stijn --- _includes/why_d4a.md | 103 ------- css/hopscotch.css | 430 -------------------------- css/temp.css | 28 -- js/2793990448.js | 359 ---------------------- js/XDFrame.html | 50 --- js/alljs.js | 109 ------- js/app.js | 717 ------------------------------------------- js/echo.515e8809.js | 1 - js/fbevents.js | 9 - js/forms2.min.js | 7 - js/hopscotch.js | 598 ------------------------------------ js/munchkin.js | 20 -- js/my_first_tour.js | 189 ------------ js/nr-943.min.js | 1 - js/prum.min.js | 1 - js/rtp.js | 2 - js/track.js | 40 --- 17 files changed, 2664 deletions(-) delete mode 100644 _includes/why_d4a.md delete mode 100644 css/hopscotch.css delete mode 100644 css/temp.css delete mode 100644 js/2793990448.js delete mode 100644 js/XDFrame.html delete mode 100644 js/alljs.js delete mode 100644 js/app.js delete mode 100644 js/echo.515e8809.js delete mode 100644 js/fbevents.js delete mode 100644 js/forms2.min.js delete mode 100644 js/hopscotch.js delete mode 100644 js/munchkin.js delete mode 100644 js/my_first_tour.js delete mode 100644 js/nr-943.min.js delete mode 100644 js/prum.min.js delete mode 100644 js/rtp.js delete mode 100644 js/track.js diff --git a/_includes/why_d4a.md b/_includes/why_d4a.md deleted file mode 100644 index fcc04d7804..0000000000 --- a/_includes/why_d4a.md +++ /dev/null @@ -1,103 +0,0 @@ -The [Docker for {{cloudprovider}}](/docker-for-{{cloudprovider | downcase}}/) -project was created and is being actively developed to ensure that Docker users -can enjoy a fantastic out-of-the-box experience on {{cloudprovider}}. It is now -generally available and can now be used by everyone. - -As an informed user, you might be curious to know what this project offers -you for running your development, staging, or production workloads. - -## Native to Docker - -Docker for {{cloudprovider}} provides a Docker-native solution that avoids -operational complexity and adding unneeded additional APIs to the Docker stack. - -Docker for {{cloudprovider}} allows you to interact with Docker directly -(including native Docker orchestration), instead of distracting you with the -need to navigate extra layers on top of Docker. You can focus instead on the -thing that matters most: running your workloads. This helps you and your -team to deliver more value to the business faster, to speak one common -"language", and to have fewer details to keep in your head at once. - -The skills that you and your team have already learned, and continue to -learn, using Docker on the desktop or elsewhere automatically carry over to -using Docker on {{cloudprovider}}. The added consistency across clouds also -helps to ensure that a migration or multi-cloud strategy is easier to accomplish -in the future if desired. - -## Skip the boilerplate and maintenance work - -Docker for {{cloudprovider}} bootstraps all of the recommended infrastructure to -start using Docker on {{cloudprovider}} automatically. You don't need to worry -about rolling your own instances, security groups, or load balancers when using -Docker for {{cloudprovider}}. - -Likewise, setting up and using Docker swarm mode functionality for container -orchestration is managed across the cluster's lifecycle when you use Docker for -{{cloudprovider}}. Docker has already coordinated the various bits of automation -you would otherwise be gluing together on your own to bootstrap Docker swarm -mode on these platforms. When the cluster is finished booting, you can jump -right in and start running `docker service` commands. - -We also provide a prescriptive upgrade path that helps users upgrade between -various versions of Docker in a smooth and automatic way. Instead of -experiencing "maintenance dread" as you ponder your future responsibilities -upgrading the software you are using, you can easily upgrade to new versions -when they are released. - -## Minimal, Docker-focused base - -The custom Linux distribution used by Docker for {{cloudprovider}} is carefully -developed and configured to run Docker well. Everything from the kernel -configuration to the networking stack is customized to make it a favorable place -to run Docker. For instance, we make sure that the kernel versions are -compatible with the latest and greatest in Docker functionality, such as the -`overlay2` storage driver. - -Instead of facing the trade-offs of a general purpose operating system, Docker's -custom Linux distribution focuses on only one thing: providing the best _Docker_ -experience for you and your team. - -## Self-cleaning and self-healing - -Even the most conscientious admin can be caught off guard by issues such as -unexpectedly aggressive logging or the Linux kernel killing memory-hungry -processes. In Docker for {{cloudprovider}}, your cluster is resilient to a -variety of such issues by default. - -Log rotation native to the host is configured for you automatically, so chatty -logs don't use up all of your disk space. Likewise, the "system prune" option -allows you to ensure unused Docker resources such as old images are cleaned up -automatically. The lifecycle of nodes is managed using auto-scaling groups or -similar constructs, so that if a node enters an unhealthy state for unforeseen -reasons, the node is taken out of load balancer rotation and/or replaced -automatically and all of its container tasks are rescheduled. - -These self-cleaning and self-healing properties are enabled by default and don't -need configuration, so you can breathe easier as the risk of downtime is -reduced. - -## Logging native to the platforms - -Centralized logging is a critical component of many modern infrastructure -stacks. To have these logs indexed and searchable proves invaluable for -debugging application and system issues as they come up. Out of the box, Docker -for {{cloudprovider}} forwards logs from containers to a native cloud provider -abstraction ({{cloudprovider_log_dest}}). - -## Next-generation Docker bug reporting tools - -One common pain point in open source issue reporting is effectively -communicating the current state of your infrastructure and the issues you are -seeing to the upstream. In Docker for {{cloudprovider}}, you receive new tools -to communicate any issues you experience quickly and securely to Docker -employees. The Docker for {{cloudprovider}} shell includes a `docker-diagnose` -script which, at your request, transmits detailed diagnostic information to -Docker support staff to reduce the traditional -"please-post-the-output-of-this-command" back and forth frequently encountered -in bug reports. - -# Try it today - -Ready to get started? [Try Docker for {{cloudprovider}} today](/docker-for-{{cloudprovider | downcase}}/). -Search for existing issues, or create a new one, within the -[for {{cloudprovider}}](https://github.com/docker/for-{{cloudprovider | downcase}}) repository. diff --git a/css/hopscotch.css b/css/hopscotch.css deleted file mode 100644 index e840eb5d10..0000000000 --- a/css/hopscotch.css +++ /dev/null @@ -1,430 +0,0 @@ -/**! hopscotch - v0.2.6 -* -* Copyright 2016 LinkedIn Corp. All rights reserved. -* -* Licensed under the Apache License, Version 2.0 (the "License"); - -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http: //www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ -.animated { - -webkit-animation-fill-mode: both; - -moz-animation-fill-mode: both; - -ms-animation-fill-mode: both; - -o-animation-fill-mode: both; - animation-fill-mode: both; - -webkit-animation-duration: 1s; - -moz-animation-duration: 1s; - -ms-animation-duration: 1s; - -o-animation-duration: 1s; - animation-duration: 1s; -} -@-webkit-keyframes fadeInUp { - 0% { - opacity: 0; - -webkit-transform: translateY(20px); -} -100% { - opacity: 1; - -webkit-transform: translateY(0); -} -}@-moz-keyframes fadeInUp { - 0% { - opacity: 0; - -moz-transform: translateY(20px); -} -100% { - opacity: 1; - -moz-transform: translateY(0); -} -}@-o-keyframes fadeInUp { - 0% { - opacity: 0; - -o-transform: translateY(20px); -} -100% { - opacity: 1; - -o-transform: translateY(0); -} -}@keyframes fadeInUp { - 0% { - opacity: 0; - transform: translateY(20px); -} -100% { - opacity: 1; - transform: translateY(0); -} -}.fade-in-up { - -webkit-animation-name: fadeInUp; - -moz-animation-name: fadeInUp; - -o-animation-name: fadeInUp; - animation-name: fadeInUp; -} -@-webkit-keyframes fadeInDown { - 0% { - opacity: 0; - -webkit-transform: translateY(-20px); -} -100% { - opacity: 1; - -webkit-transform: translateY(0); -} -}@-moz-keyframes fadeInDown { - 0% { - opacity: 0; - -moz-transform: translateY(-20px); -} -100% { - opacity: 1; - -moz-transform: translateY(0); -} -}@-o-keyframes fadeInDown { - 0% { - opacity: 0; - -ms-transform: translateY(-20px); -} -100% { - opacity: 1; - -ms-transform: translateY(0); -} -}@keyframes fadeInDown { - 0% { - opacity: 0; - transform: translateY(-20px); -} -100% { - opacity: 1; - transform: translateY(0); -} -}.fade-in-down { - -webkit-animation-name: fadeInDown; - -moz-animation-name: fadeInDown; - -o-animation-name: fadeInDown; - animation-name: fadeInDown; -} -@-webkit-keyframes fadeInRight { - 0% { - opacity: 0; - -webkit-transform: translateX(-20px); -} -100% { - opacity: 1; - -webkit-transform: translateX(0); -} -}@-moz-keyframes fadeInRight { - 0% { - opacity: 0; - -moz-transform: translateX(-20px); -} -100% { - opacity: 1; - -moz-transform: translateX(0); -} -}@-o-keyframes fadeInRight { - 0% { - opacity: 0; - -o-transform: translateX(-20px); -} -100% { - opacity: 1; - -o-transform: translateX(0); -} -}@keyframes fadeInRight { - 0% { - opacity: 0; - transform: translateX(-20px); -} -100% { - opacity: 1; - transform: translateX(0); -} -}.fade-in-right { - -webkit-animation-name: fadeInRight; - -moz-animation-name: fadeInRight; - -o-animation-name: fadeInRight; - animation-name: fadeInRight; -} -@-webkit-keyframes fadeInLeft { - 0% { - opacity: 0; - -webkit-transform: translateX(20px); -} -100% { - opacity: 1; - -webkit-transform: translateX(0); -} -}@-moz-keyframes fadeInLeft { - 0% { - opacity: 0; - -moz-transform: translateX(20px); -} -100% { - opacity: 1; - -moz-transform: translateX(0); -} -}@-o-keyframes fadeInLeft { - 0% { - opacity: 0; - -o-transform: translateX(20px); -} -100% { - opacity: 1; - -o-transform: translateX(0); -} -}@keyframes fadeInLeft { - 0% { - opacity: 0; - transform: translateX(20px); -} -100% { - opacity: 1; - transform: translateX(0); -} -}.fade-in-left { - -webkit-animation-name: fadeInLeft; - -moz-animation-name: fadeInLeft; - -o-animation-name: fadeInLeft; - animation-name: fadeInLeft; -} -div.hopscotch-bubble .hopscotch-nav-button { - font-weight: 900; - cursor: pointer; - margin: 0; - overflow: visible; - text-decoration: none!important; - width: auto; - padding: 0 10px; - height: 26px; - line-height: 24px; - font-size: 12px; - display: -moz-inline-stack; - display: inline-block; - *vertical-align: auto; - vertical-align: middle; -} - -div.hopscotch-bubble .hopscotch-nav-button.next, -div.hopscotch-bubble .hopscotch-nav-button.prev { - background-color: #fff; - margin: 0 0 0 10px; -} - -div.hopscotch-bubble .hopscotch-nav-button.next:hover, -div.hopscotch-bubble .hopscotch-nav-button.prev:hover { - opacity: .8; -} - -div.hopscotch-bubble .hopscotch-nav-button.next { - color: #0087c9; - border: 2px solid #0087c9; -} - -div.hopscotch-bubble .hopscotch-nav-button.prev { - color: #999; - border: 2px solid #999; -} - - -div.hopscotch-bubble { - background-color: #fff; - border: 5px solid #000; - border: 5px solid rgba(0, 0, 0, .5); - color: #333; - font-family: Helvetica, Arial; - font-size: 13px; - position: absolute; - z-index: 999999; - -webkit-box-sizing: content-box; - -moz-box-sizing: content-box; - box-sizing: content-box; - -moz-background-clip: padding; - -webkit-background-clip: padding; - background-clip: padding-box; -} -div.hopscotch-bubble * { - -webkit-box-sizing: content-box; - -moz-box-sizing: content-box; - box-sizing: content-box; -} -div.hopscotch-bubble.animate { - -moz-transition-property: top, left; - -moz-transition-duration: 1s; - -moz-transition-timing-function: ease-in-out; - -ms-transition-property: top, left; - -ms-transition-duration: 1s; - -ms-transition-timing-function: ease-in-out; - -o-transition-property: top, left; - -o-transition-duration: 1s; - -o-transition-timing-function: ease-in-out; - -webkit-transition-property: top, left; - -webkit-transition-duration: 1s; - -webkit-transition-timing-function: ease-in-out; - transition-property: top, left; - transition-duration: 1s; - transition-timing-function: ease-in-out; -} -div.hopscotch-bubble.invisible { - opacity: 0; -} -div.hopscotch-bubble.hide, div.hopscotch-bubble .hide, div.hopscotch-bubble .hide-all { - display: none; -} -div.hopscotch-bubble h3 { - color: #000; - font-family: Helvetica, Arial; - font-size: 16px; - font-weight: 700; - line-height: 19px; - margin: -1px 15px 0 0; - padding: 0; -} -div.hopscotch-bubble .hopscotch-bubble-container { - padding: 15px; - position: relative; - text-align: left; - -webkit-font-smoothing: antialiased; -} -div.hopscotch-bubble .hopscotch-content { - font-family: Helvetica, Arial; - font-size: 16px; - font-weight: 400; - line-height: 17px; - margin: -5px 0 11px; - padding-top: 8px; -} -div.hopscotch-bubble .hopscotch-bubble-content { - margin: 0 0 0 40px; - padding: 5px; -} - -div.hopscotch-bubble.no-number .hopscotch-bubble-content { - margin: 0; -} -div.hopscotch-bubble .hopscotch-bubble-close { - border: 0; - background-color: #fff; - display: block; - padding: 8px; - padding-top: 0; - position: absolute; - text-decoration: none; - width: 8px; - height: 8px; - top: 0; - right: 0; - color: #333; - font-weight: bold; -} - -div.hopscotch-bubble .hopscotch-bubble-close:hover { - opacity: .8; -} - -div.hopscotch-bubble .hopscotch-bubble-close.hide, div.hopscotch-bubble .hopscotch-bubble-close.hide-all { - display: none; -} -div.hopscotch-bubble .hopscotch-bubble-number { - border-radius: 50%; - behavior: url(PIE.htc); - width: 30px; - height: 30px; - padding: 2px; - border: 2px solid #0087c9; - color: #0a486b; - text-align: center; - float: left; - font-size: 1.3rem; - margin-right: 7px; -} -div.hopscotch-bubble .hopscotch-bubble-arrow-container { - position: absolute; - width: 34px; - height: 34px; -} -div.hopscotch-bubble .hopscotch-bubble-arrow-container .hopscotch-bubble-arrow, div.hopscotch-bubble .hopscotch-bubble-arrow-container .hopscotch-bubble-arrow-border { - width: 0; - height: 0; -} -div.hopscotch-bubble .hopscotch-bubble-arrow-container.up { - top: -22px; - left: 10px; -} -div.hopscotch-bubble .hopscotch-bubble-arrow-container.up .hopscotch-bubble-arrow { - border-bottom: 17px solid #fff; - border-left: 17px solid transparent; - border-right: 17px solid transparent; - position: relative; - top: -10px; -} -div.hopscotch-bubble .hopscotch-bubble-arrow-container.up .hopscotch-bubble-arrow-border { - border-bottom: 17px solid #000; - border-bottom: 17px solid rgba(0, 0, 0, .5); - border-left: 17px solid transparent; - border-right: 17px solid transparent; -} -div.hopscotch-bubble .hopscotch-bubble-arrow-container.down { - bottom: -39px; - left: 10px; -} -div.hopscotch-bubble .hopscotch-bubble-arrow-container.down .hopscotch-bubble-arrow { - border-top: 17px solid #fff; - border-left: 17px solid transparent; - border-right: 17px solid transparent; - position: relative; - top: -24px; -} -div.hopscotch-bubble .hopscotch-bubble-arrow-container.down .hopscotch-bubble-arrow-border { - border-top: 17px solid #000; - border-top: 17px solid rgba(0, 0, 0, .5); - border-left: 17px solid transparent; - border-right: 17px solid transparent; -} -div.hopscotch-bubble .hopscotch-bubble-arrow-container.left { - top: 10px; - left: -22px; -} -div.hopscotch-bubble .hopscotch-bubble-arrow-container.left .hopscotch-bubble-arrow { - border-bottom: 17px solid transparent; - border-right: 17px solid #fff; - border-top: 17px solid transparent; - position: relative; - left: 7px; - top: -34px; -} -div.hopscotch-bubble .hopscotch-bubble-arrow-container.left .hopscotch-bubble-arrow-border { - border-right: 17px solid #000; - border-right: 17px solid rgba(0, 0, 0, .5); - border-bottom: 17px solid transparent; - border-top: 17px solid transparent; -} -div.hopscotch-bubble .hopscotch-bubble-arrow-container.right { - top: 10px; - right: -39px; -} -div.hopscotch-bubble .hopscotch-bubble-arrow-container.right .hopscotch-bubble-arrow { - border-bottom: 17px solid transparent; - border-left: 17px solid #fff; - border-top: 17px solid transparent; - position: relative; - left: -7px; - top: -34px; -} -div.hopscotch-bubble .hopscotch-bubble-arrow-container.right .hopscotch-bubble-arrow-border { - border-left: 17px solid #000; - border-left: 17px solid rgba(0, 0, 0, .5); - border-bottom: 17px solid transparent; - border-top: 17px solid transparent; -} -div.hopscotch-bubble .hopscotch-actions { - margin: 10px 0 0; - text-align: right; -} diff --git a/css/temp.css b/css/temp.css deleted file mode 100644 index dd1f9ac03a..0000000000 --- a/css/temp.css +++ /dev/null @@ -1,28 +0,0 @@ -/* -* -* this css will be integrated into master. for now testing....... -* -*/ - -/* Archive butterbar */ -#archive-butterbar { - padding-top: 10px; - padding-bottom: 10px; - min-height: 34px; - border: 1px solid #254356; - background-color: #FFE1C0; - color: #254356; - width: 100%; - z-index: 9999; -} - -#archive-butterbar.top { - position: relative; - margin-top: 0; -} - -/* Archive butterbar when the top nav is fixed */ -#archive-butterbar.fixed { - position: fixed; - top: 55px; -} diff --git a/js/2793990448.js b/js/2793990448.js deleted file mode 100644 index 1abde1401a..0000000000 --- a/js/2793990448.js +++ /dev/null @@ -1,359 +0,0 @@ - - - - - - - - -(function(){ - - - - -geolocation = {}; -geolocation.requestGeo=function(c){geolocation.cdn3Requested=+new Date;var b=document.head||document.getElementsByTagName("head")[0]||document.documentElement,a=document.createElement("script");a.type="text/javascript";a.async=!0;a.src=c;b.insertBefore(a,b.firstChild)}; - - -var optimizelyCode = function(){ -var DATA={"log_host":"log.optimizely.com","goal_expressions":{"2942070080":["^user\\_clicks\\_on\\_\\\u201ctry\\_it\\!\\\u201d\\_tutorial\\_link$"],"2907681636":["^user\\_click\\_on\\_\\\u201cwhat\\_is\\_docker\\\u201d\\_link$"],"2998360785":["^click\\_sidebar\\_ad$"],"2985680235":["^hub\\_landing\\_page\\_\\-\\_user\\_clicks\\_on\\_signup\\_with\\_github$"],"2795900556":["^engagement$"],"2946690065":["^user\\_click\\_on\\_\\\u201cinstall\\_\\&\\_docs\"$"],"2756791246":["^engagement$"],"2999140215":["^(https?://)?(www\\.)?hub\\.docker\\.com/?(\\?.*)?(#.*)?$"],"2894340540":["^user\\_click\\_on\\_\\\u201csign\\_up\\_for\\_free\\\u201d\\_button$"],"2916540317":["^(https?://)?(www\\.)?hub\\.docker\\.com\\/account\\/welcome/?(\\?.*)?(#.*)?$"],"2983441183":["^hub\\_landing\\_page\\_\\-\\_user\\_clicks\\_on\\_sign\\_up\\_button$"]},"experiments":{"2971380924":{"name":"2015-06: Docker Blog Sidebar Ads","urls":[{"match":"simple","value":"http://blog.docker.com/"}],"enabled_variation_ids":["2976122274","2993231047"],"variation_ids":["2976122274","2993231047"]},"2885650300":{"name":"2015-05: Docker Homepage content experiment validation","urls":[{"match":"simple","value":"http://www.docker.com"}],"enabled_variation_ids":["2899610112","2910470380"],"variation_ids":["2899610112","2910470380"]}},"www_host":"app.optimizely.com","public_suffixes":{"docker.com":["blog.docker.com","www.docker.com"]},"version":"master-2069.386346709248328707","admin_account_id":2793990448,"project_id":2793990448,"revision":39,"summary_revenue_goal_id":2796941294,"installation_verified":true,"preview_host":"//optimizely.s3.amazonaws.com","api_host":"api.optimizely.com","variations":{"2899610112":{"name":"Original"},"2976122274":{"name":"Original"},"2910470380":{"code":"$(\"h3\").html(\"Get started with Docker Hub\");","name":"Variation #1 - Scope reduction to Hub"},"2993231047":{"code":"$(\".text-5 img\").attr({\"src\":\"//cdn.optimizely.com/img/2793990448/11ccda264ba847f7b2d12efe646b48a8.jpg\"});\n$(\".text-5 a\").attr({\"href\":\"https://hub.docker.com/?utm_source=docker_blog&utm_medium=blog_sidebar&utm_campaign=claim_free_private_repo_orange\"});","name":"Variation #1"}},"click_goals":[{"event_name":"user_click_on_\u201csign_up_for_free\u201d_button","experiments":{"2885650300":true},"selector":".signup-button"},{"event_name":"user_click_on_\u201cwhat_is_docker\u201d_link","experiments":{"2885650300":true},"selector":".nav > li:eq(0) > a:eq(0)"},{"event_name":"user_clicks_on_\u201ctry_it!\u201d_tutorial_link","experiments":{"2885650300":true},"selector":".nav > li:eq(2) > a:eq(0)"},{"event_name":"user_click_on_\u201cinstall_&_docs\"","experiments":{"2885650300":true},"selector":".nav > li:eq(3) > a:eq(0)"},{"event_name":"hub_landing_page_-_user_clicks_on_sign_up_button","experiments":{"2971380924":true},"selector":".btn-success"},{"event_name":"hub_landing_page_-_user_clicks_on_signup_with_github","experiments":{"2971380924":true},"selector":".git"},{"event_name":"click_sidebar_ad","experiments":{"2971380924":true},"selector":".text-5 img"}]}; - -var optly={nativity:{}};optly.nativity.getNativeGetElementsByClassName=function(){var a=document.getElementsByClassName;if(!optly.nativity.isNativeFunction(a))var a=(window.optimizely||{}).getElementsByClassName,b=(window.optly||{}).getElementsByClassName,a=optly.nativity.isNativeFunction(a)?a:optly.nativity.isNativeFunction(b)?b:null;return a};optly.nativity.isNativeFunction=function(a){return a&&-1!==String(a).indexOf("[native code]")};optly.Cleanse={};optly.Cleanse.each=function(a,b,d){var h=!!Object.prototype.__lookupGetter__,e=!!Object.prototype.__lookupSetter__,c;for(c in a)if(a.hasOwnProperty(c)){var f=h?a.__lookupGetter__(c):null,g=e?a.__lookupSetter__(c):null;try{b.call(d,c,!f?a[c]:null,f,g)}catch(i){}}}; -optly.Cleanse.finish=function(){if(optly.Cleanse.running){optly.Cleanse.running=!1;optly.Cleanse.each(optly.Cleanse.types,function(a,d){Object.prototype.__defineGetter__&&optly.Cleanse.each(optly.Cleanse.getters[a],function(c,b){d.prototype.__defineGetter__(c,b);optly.Cleanse.log("restored getter",a,c)});Object.prototype.__defineSetter__&&optly.Cleanse.each(optly.Cleanse.setters[a],function(c,b){d.prototype.__defineSetter__(c,b);optly.Cleanse.log("restored setter",a,c)});optly.Cleanse.each(optly.Cleanse.properties[a], -function(b,f){d.prototype[b]=f;optly.Cleanse.log("restored property",a,b)})});optly.Cleanse.unfixGetElementsByClassName();optly.Cleanse.log("finish");var a=window.console;if((-1!==window.location.hash.indexOf("optimizely_log=true")||-1!==window.location.search.indexOf("optimizely_log=true"))&&a&&a.log)for(var b=optly.Cleanse.logs,d=0;dc)break;a.currentTarget=e.elem;a.data=e.handleObj.data;a.handleObj=e.handleObj;l=e.handleObj.origHandler.apply(e.elem,arguments);if(!1===l||a.isPropagationStopped())if(c=e.level,!1===l&&(b=!1),a.isImmediatePropagationStopped())break}return b}}function P(a,b){return(a&&"*"!==a?a+".":"")+b.replace(nb,"`").replace(ob,"&")}function Ba(a,b,c){b=b||0;if(d.isFunction(b))return d.grep(a, -function(a,g){return!!b.call(a,g,a)===c});if(b.nodeType)return d.grep(a,function(a){return a===b===c});if("string"===typeof b){var g=d.grep(a,function(a){return 1===a.nodeType});if(pb.test(b))return d.filter(b,g,!c);b=d.filter(b,g)}return d.grep(a,function(a){return 0<=d.inArray(a,b)===c})}function Ca(a,b){if(1===b.nodeType&&d.hasData(a)){var c=d.expando,g=d.data(a),e=d.data(b,g);if(g=g[c]){var f=g.events,e=e[c]=d.extend({},g);if(f){delete e.handle;e.events={};for(var h in f){c=0;for(g=f[h].length;c< -g;c++)d.event.add(b,h+(f[h][c].namespace?".":"")+f[h][c].namespace,f[h][c],f[h][c].data)}}}}}function Da(a,b){var c;if(1===b.nodeType){b.clearAttributes&&b.clearAttributes();b.mergeAttributes&&b.mergeAttributes(a);c=b.nodeName.toLowerCase();if("object"===c)b.outerHTML=a.outerHTML;else if("input"===c&&("checkbox"===a.type||"radio"===a.type)){if(a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value)b.value=a.value}else if("option"===c)b.selected=a.defaultSelected;else if("input"===c|| -"textarea"===c)b.defaultValue=a.defaultValue;b.removeAttribute(d.expando)}}function Q(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function Ea(a){if("checkbox"===a.type||"radio"===a.type)a.defaultChecked=a.checked}function Fa(a){d.nodeName(a,"input")?Ea(a):"getElementsByTagName"in a&&d.grep(a.getElementsByTagName("input"),Ea)}function qb(a,b){b.src?d.ajax({url:b.src,async:!1,dataType:"script"}):d.globalEval((b.text||b.textContent|| -b.innerHTML||"").replace(rb,"/*$0*/"));b.parentNode&&b.parentNode.removeChild(b)}function Ga(a,b,c){var g="width"===b?a.offsetWidth:a.offsetHeight,e="width"===b?sb:tb;if(0g||null==g)g=a.style[b]||0;g=parseFloat(g)||0;c&&d.each(e,function(){g+=parseFloat(d.css(a,"padding"+this))||0;"padding"!== -c&&(g+=parseFloat(d.css(a,"border"+this+"Width"))||0);"margin"===c&&(g+=parseFloat(d.css(a,c+this))||0)});return g+"px"}var l=r.document,d,Ha=function(){if(!k.isReady){try{l.documentElement.doScroll("left")}catch(a){setTimeout(Ha,1);return}k.ready()}},k=function(a,b){return new k.fn.init(a,b,Ia)},ub=r.jQuery,vb=r.$,Ia,wb=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,Ja=/\S/,Ka=/^\s+/,La=/\s+$/,xb=/\d/,yb=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,zb=/^[\],:{}\s]*$/,Ab=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,Bb=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, -Cb=/(?:^|:|,)(?:\s*\[)+/g,Db=/(webkit)[ \/]([\w.]+)/,Eb=/(opera)(?:.*version)?[ \/]([\w.]+)/,Fb=/(msie) ([\w.]+)/,Gb=/(mozilla)(?:.*? rv:([\w.]+))?/,Hb=/-([a-z]|[0-9])/ig,Ib=/^-ms-/,Jb=function(a,b){return(b+"").toUpperCase()},Kb=r.navigator.userAgent,R,S,B,Lb=Object.prototype.toString,ja=Object.prototype.hasOwnProperty,ka=Array.prototype.push,I=Array.prototype.slice,Ma=String.prototype.trim,Na=Array.prototype.indexOf,Oa={};k.fn=k.prototype={constructor:k,init:function(a,b,c){var g;if(!a)return this; -if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if("body"===a&&!b&&l.body)return this.context=l,this[0]=l.body,this.selector=a,this.length=1,this;if("string"===typeof a){if((g="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&3<=a.length?[null,a,null]:wb.exec(a))&&(g[1]||!b)){if(g[1])return c=(b=b instanceof k?b[0]:b)?b.ownerDocument||b:l,(a=yb.exec(a))?k.isPlainObject(b)?(a=[l.createElement(a[1])],k.fn.attr.call(a,b,!0)):a=[c.createElement(a[1])]:(a=k.buildFragment([g[1]],[c]),a=(a.cacheable? -k.clone(a.fragment):a.fragment).childNodes),k.merge(this,a);if((b=l.getElementById(g[2]))&&b.parentNode){if(b.id!==g[2])return c.find(a);this.length=1;this[0]=b}this.context=l;this.selector=a;return this}return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a)}if(k.isFunction(a))return c.ready(a);a.selector!==m&&(this.selector=a.selector,this.context=a.context);return k.makeArray(a,this)},selector:"",jquery:"1.6.4",length:0,size:function(){return this.length},toArray:function(){return I.call(this, -0)},get:function(a){return null==a?this.toArray():0>a?this[this.length+a]:this[a]},pushStack:function(a,b,c){var g=this.constructor();k.isArray(a)?ka.apply(g,a):k.merge(g,a);g.prevObject=this;g.context=this.context;"find"===b?g.selector=this.selector+(this.selector?" ":"")+c:b&&(g.selector=this.selector+"."+b+"("+c+")");return g},each:function(a,b){return k.each(this,a,b)},ready:function(a){k.bindReady();S.done(a);return this},eq:function(a){return-1===a?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)}, -last:function(){return this.eq(-1)},slice:function(){return this.pushStack(I.apply(this,arguments),"slice",I.call(arguments).join(","))},map:function(a){return this.pushStack(k.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:ka,sort:[].sort,splice:[].splice};k.fn.init.prototype=k.fn;k.extend=k.fn.extend=function(){var a,b,c,g,d,f=arguments[0]||{},h=1,i=arguments.length,j=!1;"boolean"===typeof f&&(j=f,f=arguments[1]||{},h=2);"object"!== -typeof f&&!k.isFunction(f)&&(f={});i===h&&(f=this,--h);for(;ha.indexOf("compatible")&&Gb.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},sub:function(){function a(b,d){return new a.fn.init(b,d)}k.extend(!0,a,this);a.superclass=this;a.fn=a.prototype=this();a.fn.constructor=a;a.sub=this.sub;a.fn.init=function(c,d){d&&(d instanceof k&&!(d instanceof a))&&(d=a(d));return k.fn.init.call(this, -c,d,b)};a.fn.init.prototype=a.fn;var b=a(l);return a},browser:{}});k.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){Oa["[object "+b+"]"]=b.toLowerCase()});R=k.uaMatch(Kb);R.browser&&(k.browser[R.browser]=!0,k.browser.version=R.version);k.browser.webkit&&(k.browser.safari=!0);Ja.test("\u00a0")&&(Ka=/^[\s\xA0]+/,La=/[\s\xA0]+$/);Ia=k(l);l.addEventListener?B=function(){l.removeEventListener("DOMContentLoaded",B,false);k.ready()}:l.attachEvent&&(B=function(){if(l.readyState=== -"complete"){l.detachEvent("onreadystatechange",B);k.ready()}});d=k;var la="done fail isResolved isRejected promise then always pipe".split(" "),Pa=[].slice;d.extend({_Deferred:function(){var a=[],b,c,g,e={done:function(){if(!g){var c=arguments,h,i,j,k,m;if(b){m=b;b=0}h=0;for(i=c.length;h -1?Pa.call(arguments,0):b;--f||h.resolveWith(h,Pa.call(c,0))}}var c=arguments,g=0,e=c.length,f=e,h=e<=1&&a&&d.isFunction(a.promise)?a:d.Deferred();if(e>1){for(;g
a"; -na=o.getElementsByTagName("*");C=o.getElementsByTagName("a")[0];if(!na||!na.length||!C)ma={};else{T=l.createElement("select");U=T.appendChild(l.createElement("option"));u=o.getElementsByTagName("input")[0];s={leadingWhitespace:3===o.firstChild.nodeType,tbody:!o.getElementsByTagName("tbody").length,htmlSerialize:!!o.getElementsByTagName("link").length,style:/top/.test(C.getAttribute("style")),hrefNormalized:"/a"===C.getAttribute("href"),opacity:/^0.55$/.test(C.style.opacity),cssFloat:!!C.style.cssFloat, -checkOn:"on"===u.value,optSelected:U.selected,getSetAttribute:"t"!==o.className,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0};u.checked=!0;s.noCloneChecked=u.cloneNode(!0).checked;T.disabled=!0;s.optDisabled=!U.disabled;try{delete o.test}catch(jc){s.deleteExpando=!1}!o.addEventListener&&(o.attachEvent&&o.fireEvent)&&(o.attachEvent("onclick",function(){s.noCloneEvent=false}),o.cloneNode(!0).fireEvent("onclick")); -u=l.createElement("input");u.value="t";u.setAttribute("type","radio");s.radioValue="t"===u.value;u.setAttribute("checked","checked");o.appendChild(u);V=l.createDocumentFragment();V.appendChild(o.firstChild);s.checkClone=V.cloneNode(!0).cloneNode(!0).lastChild.checked;o.innerHTML="";o.style.width=o.style.paddingLeft="1px";J=l.getElementsByTagName("body")[0];x=l.createElement(J?"div":"body");X={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};J&&d.extend(X,{position:"absolute", -left:"-1000px",top:"-1000px"});for(E in X)x.style[E]=X[E];x.appendChild(o);W=J||Nb;W.insertBefore(x,W.firstChild);s.appendChecked=u.checked;s.boxModel=2===o.offsetWidth;"zoom"in o.style&&(o.style.display="inline",o.style.zoom=1,s.inlineBlockNeedsLayout=2===o.offsetWidth,o.style.display="",o.innerHTML="
",s.shrinkWrapBlocks=2!==o.offsetWidth);o.innerHTML="
t
";K=o.getElementsByTagName("td"); -F=0===K[0].offsetHeight;K[0].style.display="";K[1].style.display="none";s.reliableHiddenOffsets=F&&0===K[0].offsetHeight;o.innerHTML="";l.defaultView&&l.defaultView.getComputedStyle&&(D=l.createElement("div"),D.style.width="0",D.style.marginRight="0",o.appendChild(D),s.reliableMarginRight=0===(parseInt((l.defaultView.getComputedStyle(D,null)||{marginRight:0}).marginRight,10)||0));x.innerHTML="";W.removeChild(x);if(o.attachEvent)for(E in{submit:1,change:1,focusin:1})Y="on"+E,F=Y in o,F||(o.setAttribute(Y, -"return;"),F="function"===typeof o[Y]),s[E+"Bubbles"]=F;x=V=T=U=J=D=o=u=null;ma=s}Mb.support=ma;d.boxModel=d.support.boxModel;var lb=/^(?:\{.*\}|\[.*\])$/,kb=/([A-Z])/g;d.extend({cache:{},uuid:0,expando:"jQuery"+(d.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?d.cache[a[d.expando]]:a[d.expando];return!!a&&!ha(a)},data:function(a,b,c,g){if(d.acceptData(a)){var e=d.expando,f=typeof b==="string", -h=a.nodeType,i=h?d.cache:a,j=h?a[d.expando]:a[d.expando]&&d.expando;if(j&&(!g||!j||!i[j]||i[j][e])||!(f&&c===m)){if(!j)h?a[d.expando]=j=++d.uuid:j=d.expando;if(!i[j]){i[j]={};if(!h)i[j].toJSON=d.noop}if(typeof b==="object"||typeof b==="function")g?i[j][e]=d.extend(i[j][e],b):i[j]=d.extend(i[j],b);a=i[j];if(g){a[e]||(a[e]={});a=a[e]}c!==m&&(a[d.camelCase(b)]=c);if(b==="events"&&!a[b])return a[e]&&a[e].events;if(f){c=a[b];c==null&&(c=a[d.camelCase(b)])}else c=a;return c}}},removeData:function(a,b,c){if(d.acceptData(a)){var g, -e=d.expando,f=a.nodeType,h=f?d.cache:a,i=f?a[d.expando]:d.expando;if(h[i]){if(b)if(g=c?h[i][e]:h[i]){g[b]||(b=d.camelCase(b));delete g[b];if(!ha(g))return}if(c){delete h[i][e];if(!ha(h[i]))return}b=h[i][e];d.support.deleteExpando||!h.setInterval?delete h[i]:h[i]=null;if(b){h[i]={};if(!f)h[i].toJSON=d.noop;h[i][e]=b}else f&&(d.support.deleteExpando?delete a[d.expando]:a.removeAttribute?a.removeAttribute(d.expando):a[d.expando]=null)}}},_data:function(a,b,c){return d.data(a,b,c,true)},acceptData:function(a){if(a.nodeName){var b= -d.noData[a.nodeName.toLowerCase()];if(b)return!(b===true||a.getAttribute("classid")!==b)}return true}});d.fn.extend({data:function(a,b){var c=null;if(typeof a==="undefined"){if(this.length){c=d.data(this[0]);if(this[0].nodeType===1)for(var g=this[0].attributes,e,f=0,h=g.length;f-1)return true;return false},val:function(a){var b,c,g=this[0];if(!arguments.length){if(g){if((b=d.valHooks[g.nodeName.toLowerCase()]||d.valHooks[g.type])&&"get"in b&&(c=b.get(g,"value"))!==m)return c;c=g.value;return typeof c=== -"string"?c.replace(Ob,""):c==null?"":c}return m}var e=d.isFunction(a);return this.each(function(c){var g=d(this);if(this.nodeType===1){c=e?a.call(this,c,g.val()):a;c==null?c="":typeof c==="number"?c=c+"":d.isArray(c)&&(c=d.map(c,function(a){return a==null?"":a+""}));b=d.valHooks[this.nodeName.toLowerCase()]||d.valHooks[this.type];if(!b||!("set"in b)||b.set(this,c,"value")===m)this.value=c}})}});d.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}}, -select:{get:function(a){var b,c=a.selectedIndex,g=[],e=a.options,a=a.type==="select-one";if(c<0)return null;for(var f=a?c:0,h=a?c+1:e.length;f=0});if(!c.length)a.selectedIndex=-1;return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(a,b,c,g){var e=a.nodeType;if(!a||e===3||e===8||e===2)return m;if(g&&b in d.attrFn)return d(a)[b](c);if(!("getAttribute"in a))return d.prop(a,b,c);var f,h;if(g=e!==1||!d.isXMLDoc(a)){b=d.attrFix[b]||b;(h=d.attrHooks[b])||(Ra.test(b)?h=Sa:y&&(h=y))}if(c!==m){if(c===null){d.removeAttr(a,b);return m}if(h&&"set"in h&&g&&(f=h.set(a,c, -b))!==m)return f;a.setAttribute(b,""+c);return c}if(h&&"get"in h&&g&&(f=h.get(a,b))!==null)return f;f=a.getAttribute(b);return f===null?m:f},removeAttr:function(a,b){var c;if(a.nodeType===1){b=d.attrFix[b]||b;d.attr(a,b,"");a.removeAttribute(b);if(Ra.test(b)&&(c=d.propFix[b]||b)in a)a[c]=false}},attrHooks:{type:{set:function(a,b){if(Pb.test(a.nodeName)&&a.parentNode)d.error("type property can't be changed");else if(!d.support.radioValue&&b==="radio"&&d.nodeName(a,"input")){var c=a.value;a.setAttribute("type", -b);if(c)a.value=c;return b}}},value:{get:function(a,b){return y&&d.nodeName(a,"button")?y.get(a,b):b in a?a.value:null},set:function(a,b,c){if(y&&d.nodeName(a,"button"))return y.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,b,c){var g= -a.nodeType;if(!a||g===3||g===8||g===2)return m;var e,f;if(g!==1||!d.isXMLDoc(a)){b=d.propFix[b]||b;f=d.propHooks[b]}return c!==m?f&&"set"in f&&(e=f.set(a,c,b))!==m?e:a[b]=c:f&&"get"in f&&(e=f.get(a,b))!==null?e:a[b]},propHooks:{tabIndex:{get:function(a){var b=a.getAttributeNode("tabindex");return b&&b.specified?parseInt(b.value,10):Qb.test(a.nodeName)||Rb.test(a.nodeName)&&a.href?0:m}}}});d.attrHooks.tabIndex=d.propHooks.tabIndex;Sa={get:function(a,b){var c;return d.prop(a,b)===true||(c=a.getAttributeNode(b))&& -c.nodeValue!==false?b.toLowerCase():m},set:function(a,b,c){if(b===false)d.removeAttr(a,c);else{b=d.propFix[c]||c;b in a&&(a[b]=true);a.setAttribute(c,c.toLowerCase())}return c}};d.support.getSetAttribute||(y=d.valHooks.button={get:function(a,b){var c;return(c=a.getAttributeNode(b))&&c.nodeValue!==""?c.nodeValue:m},set:function(a,b,c){var d=a.getAttributeNode(c);if(!d){d=l.createAttribute(c);a.setAttributeNode(d)}return d.nodeValue=b+""}},d.each(["width","height"],function(a,b){d.attrHooks[b]=d.extend(d.attrHooks[b], -{set:function(a,d){if(d===""){a.setAttribute(b,"auto");return d}}})}));d.support.hrefNormalized||d.each(["href","src","width","height"],function(a,b){d.attrHooks[b]=d.extend(d.attrHooks[b],{get:function(a){a=a.getAttribute(b,2);return a===null?m:a}})});d.support.style||(d.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||m},set:function(a,b){return a.style.cssText=""+b}});d.support.optSelected||(d.propHooks.selected=d.extend(d.propHooks.selected,{get:function(a){if(a=a.parentNode){a.selectedIndex; -a.parentNode&&a.parentNode.selectedIndex}return null}}));d.support.checkOn||d.each(["radio","checkbox"],function(){d.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}});d.each(["radio","checkbox"],function(){d.valHooks[this]=d.extend(d.valHooks[this],{set:function(a,b){if(d.isArray(b))return a.checked=d.inArray(d(a).val(),b)>=0}})});var ia=/\.(.*)$/,pa=/^(?:textarea|input|select)$/i,nb=/\./g,ob=/ /g,Sb=/[^\w\s.|`]/g,Tb=function(a){return a.replace(Sb,"\\$&")};d.event= -{add:function(a,b,c,g){if(!(a.nodeType===3||a.nodeType===8)){if(c===false)c=w;else if(!c)return;var e,f;if(c.handler){e=c;c=e.handler}if(!c.guid)c.guid=d.guid++;if(f=d._data(a)){var h=f.events,i=f.handle;if(!h)f.events=h={};if(!i)f.handle=i=function(a){return typeof d!=="undefined"&&(!a||d.event.triggered!==a.type)?d.event.handle.apply(i.elem,arguments):m};i.elem=a;for(var b=b.split(" "),j,k=0,l;j=b[k++];){f=e?d.extend({},e):{handler:c,data:g};if(j.indexOf(".")>-1){l=j.split(".");j=l.shift();f.namespace= -l.slice(0).sort().join(".")}else{l=[];f.namespace=""}f.type=j;if(!f.guid)f.guid=c.guid;var n=h[j],q=d.event.special[j]||{};if(!n){n=h[j]=[];if(!q.setup||q.setup.call(a,g,l,i)===false)a.addEventListener?a.addEventListener(j,i,false):a.attachEvent&&a.attachEvent("on"+j,i)}if(q.add){q.add.call(a,f);if(!f.handler.guid)f.handler.guid=c.guid}n.push(f);d.event.global[j]=true}a=null}}},global:{},remove:function(a,b,c,g){if(!(a.nodeType===3||a.nodeType===8)){c===false&&(c=w);var e,f,h=0,i,j,k,l,n,q,p=d.hasData(a)&& -d._data(a),o=p&&p.events;if(p&&o){if(b&&b.type){c=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(e in o)d.event.remove(a,e+b)}else{for(b=b.split(" ");e=b[h++];){l=e;i=e.indexOf(".")<0;j=[];if(!i){j=e.split(".");e=j.shift();k=RegExp("(^|\\.)"+d.map(j.slice(0).sort(),Tb).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(n=o[e])if(c){l=d.event.special[e]||{};for(f=g||0;f= -0){e=e.slice(0,-1);h=true}if(e.indexOf(".")>=0){f=e.split(".");e=f.shift();f.sort()}if(c&&!d.event.customEvent[e]||d.event.global[e]){a=typeof a==="object"?a[d.expando]?a:new d.Event(e,a):new d.Event(e);a.type=e;a.exclusive=h;a.namespace=f.join(".");a.namespace_re=RegExp("(^|\\.)"+f.join("\\.(?:.*\\.)?")+"(\\.|$)");if(g||!c){a.preventDefault();a.stopPropagation()}if(c){if(!(c.nodeType===3||c.nodeType===8)){a.result=m;a.target=c;b=b!=null?d.makeArray(b):[];b.unshift(a);f=c;g=e.indexOf(":")<0?"on"+ -e:"";do{h=d._data(f,"handle");a.currentTarget=f;h&&h.apply(f,b);if(g&&d.acceptData(f)&&f[g]&&f[g].apply(f,b)===false){a.result=false;a.preventDefault()}f=f.parentNode||f.ownerDocument||f===a.target.ownerDocument&&r}while(f&&!a.isPropagationStopped());if(!a.isDefaultPrevented()){var i,f=d.event.special[e]||{};if((!f._default||f._default.call(c.ownerDocument,a)===false)&&!(e==="click"&&d.nodeName(c,"a"))&&d.acceptData(c)){try{if(g&&c[e]){(i=c[g])&&(c[g]=null);d.event.triggered=e;c[e]()}}catch(j){}i&& -(c[g]=i);d.event.triggered=m}}return a.result}}else d.each(d.cache,function(){var c=this[d.expando];c&&(c.events&&c.events[e])&&d.event.trigger(a,b,c.handle.elem)})}},handle:function(a){var a=d.event.fix(a||r.event),b=((d._data(this,"events")||{})[a.type]||[]).slice(0),c=!a.exclusive&&!a.namespace,g=Array.prototype.slice.call(arguments,0);g[0]=a;a.currentTarget=this;for(var e=0,f=b.length;e-1?d.map(a.options,function(a){return a.selected}).join("-"):"";else if(d.nodeName(a,"select"))c=a.selectedIndex;return c},Z=function(a,b){var c=a.target,g,e;if(pa.test(c.nodeName)&& -!c.readOnly){g=d._data(c,"_change_data");e=Va(c);(a.type!=="focusout"||c.type!=="radio")&&d._data(c,"_change_data",e);if(!(g===m||e===g))if(g!=null||e){a.type="change";a.liveFired=m;d.event.trigger(a,b,c)}}};d.event.special.change={filters:{focusout:Z,beforedeactivate:Z,click:function(a){var b=a.target,c=d.nodeName(b,"input")?b.type:"";(c==="radio"||c==="checkbox"||d.nodeName(b,"select"))&&Z.call(this,a)},keydown:function(a){var b=a.target,c=d.nodeName(b,"input")?b.type:"";(a.keyCode===13&&!d.nodeName(b, -"textarea")||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&Z.call(this,a)},beforeactivate:function(a){a=a.target;d._data(a,"_change_data",Va(a))}},setup:function(){if(this.type==="file")return false;for(var a in L)d.event.add(this,a+".specialChange",L[a]);return pa.test(this.nodeName)},teardown:function(){d.event.remove(this,".specialChange");return pa.test(this.nodeName)}};L=d.event.special.change.filters;L.focus=L.beforeactivate}d.support.focusinBubbles||d.each({focus:"focusin", -blur:"focusout"},function(a,b){function c(a){var c=d.event.fix(a);c.type=b;c.originalEvent={};d.event.trigger(c,null,c.target);c.isDefaultPrevented()&&a.preventDefault()}var g=0;d.event.special[b]={setup:function(){g++===0&&l.addEventListener(a,c,true)},teardown:function(){--g===0&&l.removeEventListener(a,c,true)}}});d.each(["bind","one"],function(a,b){d.fn[b]=function(a,g,e){var f;if(typeof a==="object"){for(var h in a)this[b](h,g,a[h],e);return this}if(arguments.length===2||g===false){e=g;g=m}if(b=== -"one"){f=function(a){d(this).unbind(a,f);return e.apply(this,arguments)};f.guid=e.guid||d.guid++}else f=e;if(a==="unload"&&b!=="one")this.one(a,g,e);else{h=0;for(var i=this.length;h0?this.bind(b,a,d):this.trigger(b)};d.attrFn&&(d.attrFn[b]=true)});var Wa=function(a,b,c,d,e,f){for(var e=0,h=d.length;e0){j=i;break}}i=i[a]}d[e]=j}}},ra=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,sa=0,Ya=Object.prototype.toString,aa=!1,Za=!0,G=/\\/g,ba=/\W/;[0,0].sort(function(){Za=false;return 0});var n=function(a,b,c,d){var c=c||[],e=b=b||l;if(b.nodeType!==1&&b.nodeType!==9)return[]; -if(!a||typeof a!=="string")return c;var f,h,i,j,k,m=true,o=n.isXML(b),q=[],r=a;do{ra.exec("");if(f=ra.exec(r)){r=f[3];q.push(f[1]);if(f[2]){j=f[3];break}}}while(f);if(q.length>1&&Ub.exec(a))if(q.length===2&&p.relative[q[0]])h=$a(q[0]+q[1],b);else for(h=p.relative[q[0]]?[b]:n(q.shift(),b);q.length;){a=q.shift();p.relative[a]&&(a=a+q.shift());h=$a(a,h)}else{if(!d&&q.length>1&&b.nodeType===9&&!o&&p.match.ID.test(q[0])&&!p.match.ID.test(q[q.length-1])){f=n.find(q.shift(),b,o);b=f.expr?n.filter(f.expr, -f.set)[0]:f.set[0]}if(b){f=d?{expr:q.pop(),set:v(d)}:n.find(q.pop(),q.length===1&&(q[0]==="~"||q[0]==="+")&&b.parentNode?b.parentNode:b,o);h=f.expr?n.filter(f.expr,f.set):f.set;for(q.length>0?i=v(h):m=false;q.length;){f=k=q.pop();p.relative[k]?f=q.pop():k="";f==null&&(f=b);p.relative[k](i,f,o)}}else i=[]}i||(i=h);i||n.error(k||a);if(Ya.call(i)==="[object Array]")if(m)if(b&&b.nodeType===1)for(a=0;i[a]!=null;a++)i[a]&&(i[a]===true||i[a].nodeType===1&&n.contains(b,i[a]))&&c.push(h[a]);else for(a=0;i[a]!= -null;a++)i[a]&&i[a].nodeType===1&&c.push(h[a]);else c.push.apply(c,i);else v(i,c);if(j){n(j,e,c,d);n.uniqueSort(c)}return c};n.uniqueSort=function(a){if(ca){aa=Za;a.sort(ca);if(aa)for(var b=1;b0};n.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=p.order.length;e":function(a,b){var c,d=typeof b==="string",e=0,f=a.length;if(d&& -!ba.test(b))for(b=b.toLowerCase();e=0)?c||d.push(h):c&&(b[f]=false));return false},ID:function(a){return a[1].replace(G,"")},TAG:function(a){return a[1].replace(G,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||n.error(a[0]);a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0;a[3]=b[3]-0}else a[2]&&n.error(a[0]);a[0]=sa++;return a},ATTR:function(a, -b,c,d,e,f){b=a[1]=a[1].replace(G,"");!f&&p.attrMap[b]&&(a[1]=p.attrMap[b]);a[4]=(a[4]||a[5]||"").replace(G,"");a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(a,b,c,d,e){if(a[1]==="not")if((ra.exec(a[3])||"").length>1||/^\w/.test(a[3]))a[3]=n(a[3],null,null,b);else{a=n.filter(a[3],b,c,1^e);c||d.push.apply(d,a);return false}else if(p.match.POS.test(a[0])||p.match.CHILD.test(a[0]))return true;return a},POS:function(a){a.unshift(true);return a}},filters:{enabled:function(a){return a.disabled=== -false&&a.type!=="hidden"},disabled:function(a){return a.disabled===true},checked:function(a){return a.checked===true},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===true},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!n(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){return"text"===a.getAttribute("type")},radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"=== -a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type},reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||a.nodeName.toLowerCase()==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2=== -0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=p.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){b=b[3];c=0;for(d=b.length;c=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a, -b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],c=p.attrHandle[c]?p.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),d=c+"",e=b[2],f=b[4];return c==null?e==="!=":e==="="?d===f:e==="*="?d.indexOf(f)>=0:e==="~="?(" "+d+" ").indexOf(f)>=0:!f?d&&c!==false:e==="!="?d!==f:e==="^="?d.indexOf(f)===0:e==="$="?d.substr(d.length-f.length)===f:e==="|="?d===f||d.substr(0,f.length+ -1)===f+"-":false},POS:function(a,b,c,d){var e=p.setFilters[b[2]];if(e)return e(a,c,b,d)}}},Ub=p.match.POS,Vb=function(a,b){return"\\"+(b-0+1)},M;for(M in p.match)p.match[M]=RegExp(p.match[M].source+/(?![^\[]*\])(?![^\(]*\))/.source),p.leftMatch[M]=RegExp(/(^(?:.|\r|\n)*?)/.source+p.match[M].source.replace(/\\(\d+)/g,Vb));var v=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(l.documentElement.childNodes,0)[0].nodeType}catch(kc){v= -function(a,b){var c=0,d=b||[];if(Ya.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length==="number")for(var e=a.length;c";ea.insertBefore(da,ea.firstChild);l.getElementById(ab)&&(p.find.ID=function(a,b,c){if(typeof b.getElementById!=="undefined"&&!c)return(b=b.getElementById(a[1]))?b.id===a[1]||typeof b.getAttributeNode!=="undefined"&&b.getAttributeNode("id").nodeValue===a[1]?[b]:m:[]},p.filter.ID=function(a,b){var c=typeof a.getAttributeNode!=="undefined"&& -a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b});ea.removeChild(da);var ea=da=null,z=l.createElement("div");z.appendChild(l.createComment(""));0

";if(!(fa.querySelectorAll&&0===fa.querySelectorAll(".TEST").length)){var n=function(a,b,c,d){b=b||l;if(!d&&!n.isXML(b)){var e=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(a);if(e&&(b.nodeType===1||b.nodeType===9)){if(e[1])return v(b.getElementsByTagName(a),c);if(e[2]&&p.find.CLASS&&b.getElementsByClassName)return v(b.getElementsByClassName(e[2]),c)}if(b.nodeType=== -9){if(a==="body"&&b.body)return v([b.body],c);if(e&&e[3]){var f=b.getElementById(e[3]);if(f&&f.parentNode){if(f.id===e[3])return v([f],c)}else return v([],c)}try{return v(b.querySelectorAll(a),c)}catch(h){}}else if(b.nodeType===1&&b.nodeName.toLowerCase()!=="object"){var e=b,i=(f=b.getAttribute("id"))||"__sizzle__",j=b.parentNode,k=/^\s*[+~]/.test(a);f?i=i.replace(/'/g,"\\$&"):b.setAttribute("id",i);if(k&&j)b=b.parentNode;try{if(!k||j)return v(b.querySelectorAll("[id='"+i+"'] "+a),c)}catch(m){}finally{f|| -e.removeAttribute("id")}}}return ta(a,b,c,d)},ua;for(ua in ta)n[ua]=ta[ua];fa=null}}var ga=l.documentElement,va=ga.matchesSelector||ga.mozMatchesSelector||ga.webkitMatchesSelector||ga.msMatchesSelector,bb=!1;try{va.call(l.documentElement,"[test!='']:sizzle")}catch(lc){bb=!0}va&&(n.matchesSelector=function(a,b){b=b.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!n.isXML(a))try{if(bb||!p.match.PSEUDO.test(b)&&!/!=/.test(b))return va.call(a,b)}catch(c){}return n(b,null,null,[a]).length>0});var H=l.createElement("div"); -H.innerHTML="
";H.getElementsByClassName&&0!==H.getElementsByClassName("e").length&&(H.lastChild.className="e",1!==H.getElementsByClassName("e").length&&(p.order.splice(1,0,"CLASS"),p.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!=="undefined"&&!c)return b.getElementsByClassName(a[1])},H=null));n.contains=l.documentElement.contains?function(a,b){return a!==b&&(a.contains?a.contains(b):true)}:l.documentElement.compareDocumentPosition? -function(a,b){return!!(a.compareDocumentPosition(b)&16)}:function(){return false};n.isXML=function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?a.nodeName!=="HTML":false};var $a=function(a,b){for(var c,d=[],e="",f=b.nodeType?[b]:b;c=p.match.PSEUDO.exec(a);){e=e+c[0];a=a.replace(p.match.PSEUDO,"")}a=p.relative[a]?a+"*":a;c=0;for(var h=f.length;c0)for(h=f;h0:this.filter(a).length>0)},closest:function(a,b){var c=[],g,e,f=this[0];if(d.isArray(a)){var h,i={},j=1;if(f&& -a.length){g=0;for(e=a.length;g-1:d(f).is(g))&&c.push({selector:h,elem:f,level:j})}f=f.parentNode;j++}}return c}h=cb.test(a)||typeof a!=="string"?d(a,b||this.context):0;g=0;for(e=this.length;g-1:d.find.matchesSelector(f,a)){c.push(f);break}else{f=f.parentNode;if(!f||!f.ownerDocument||f===b||f.nodeType===11)break}c=c.length>1? -d.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){return!a?this[0]&&this[0].parentNode?this.prevAll().length:-1:typeof a==="string"?d.inArray(this[0],d(a)):d.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a==="string"?d(a,b):d.makeArray(a&&a.nodeType?[a]:a),g=d.merge(this.get(),c);return this.pushStack(!c[0]||!c[0].parentNode||c[0].parentNode.nodeType===11||!g[0]||!g[0].parentNode||g[0].parentNode.nodeType===11?g:d.unique(g))},andSelf:function(){return this.add(this.prevObject)}}); -d.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,b,c){return d.dir(a,"parentNode",c)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,b,c){return d.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return d.dir(a,"previousSibling", -c)},siblings:function(a){return d.sibling(a.parentNode.firstChild,a)},children:function(a){return d.sibling(a.firstChild)},contents:function(a){return d.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:d.makeArray(a.childNodes)}},function(a,b){d.fn[a]=function(c,g){var e=d.map(this,b,c),f=Zb.call(arguments);Wb.test(a)||(g=c);g&&typeof g==="string"&&(e=d.filter(g,e));e=this.length>1&&!$b[a]?d.unique(e):e;if((this.length>1||Yb.test(g))&&Xb.test(a))e=e.reverse();return this.pushStack(e, -a,f.join(","))}});d.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?d.find.matchesSelector(b[0],a)?[b[0]]:[]:d.find.matches(a,b)},dir:function(a,b,c){for(var g=[],a=a[b];a&&a.nodeType!==9&&(c===m||a.nodeType!==1||!d(a).is(c));){a.nodeType===1&&g.push(a);a=a[b]}return g},nth:function(a,b,c){for(var b=b||1,d=0;a;a=a[c])if(a.nodeType===1&&++d===b)break;return a},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var ac=/ jQuery\d+="(?:\d+|null)"/g, -wa=/^\s+/,db=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,eb=/<([\w:]+)/,bc=/",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"", -"
"],area:[1,"",""],_default:[0,"",""]};t.optgroup=t.option;t.tbody=t.tfoot=t.colgroup=t.caption=t.thead;t.th=t.td;d.support.htmlSerialize||(t._default=[1,"div
","
"]);d.fn.extend({text:function(a){return d.isFunction(a)?this.each(function(b){var c=d(this);c.text(a.call(this,b,c.text()))}):typeof a!=="object"&&a!==m?this.empty().append((this[0]&&this[0].ownerDocument||l).createTextNode(a)):d.text(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapAll(a.call(this, -b))});if(this[0]){var b=d(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var a=this;a.firstChild&&a.firstChild.nodeType===1;)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return d.isFunction(a)?this.each(function(b){d(this).wrapInner(a.call(this,b))}):this.each(function(){var b=d(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){d(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this, -"body")||d(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=d(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a, -"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,d(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,g;(g=this[c])!=null;c++)if(!a||d.filter(a,[g]).length){if(!b&&g.nodeType===1){d.cleanData(g.getElementsByTagName("*"));d.cleanData([g])}g.parentNode&&g.parentNode.removeChild(g)}return this}, -empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&d.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);return this},clone:function(a,b){a=a==null?false:a;b=b==null?a:b;return this.map(function(){return d.clone(this,a,b)})},html:function(a){if(a===m)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(ac,""):null;if(typeof a==="string"&&!fb.test(a)&&(d.support.leadingWhitespace||!wa.test(a))&&!t[(eb.exec(a)||["",""])[1].toLowerCase()]){a= -a.replace(db,"<$1>");try{for(var b=0,c=this.length;b1&&e0?this.clone(true):this).get();d(c[e])[b](h);g=g.concat(h)}return this.pushStack(g,a,c.selector)}});d.extend({clone:function(a,b,c){var g=a.cloneNode(true),e,f,h;if((!d.support.noCloneEvent|| -!d.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!d.isXMLDoc(a)){Da(a,g);e=Q(a);f=Q(g);for(h=0;e[h];++h)f[h]&&Da(e[h],f[h])}if(b){Ca(a,g);if(c){e=Q(a);f=Q(g);for(h=0;e[h];++h)Ca(e[h],f[h])}}return g},clean:function(a,b,c,g){b=b||l;typeof b.createElement==="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||l);for(var e=[],f,h=0,i;(i=a[h])!=null;h++){typeof i==="number"&&(i=i+"");if(i){if(typeof i==="string")if(cc.test(i)){i=i.replace(db,"<$1>");f=(eb.exec(i)||["",""])[1].toLowerCase(); -var j=t[f]||t._default,k=j[0],m=b.createElement("div");for(m.innerHTML=j[1]+i+j[2];k--;)m=m.lastChild;if(!d.support.tbody){k=bc.test(i);j=f==="table"&&!k?m.firstChild&&m.firstChild.childNodes:j[1]===""&&!k?m.childNodes:[];for(f=j.length-1;f>=0;--f)d.nodeName(j[f],"tbody")&&!j[f].childNodes.length&&j[f].parentNode.removeChild(j[f])}!d.support.leadingWhitespace&&wa.test(i)&&m.insertBefore(b.createTextNode(wa.exec(i)[0]),m.firstChild);i=m.childNodes}else i=b.createTextNode(i);var n;if(!d.support.appendChecked)if(i[0]&& -typeof(n=i.length)==="number")for(f=0;f=0)return b+"px"}else return b}}});d.support.opacity||(d.cssHooks.opacity={get:function(a,b){return ec.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,g=a.currentStyle,e=d.isNaN(b)?"":"alpha(opacity="+b*100+")",f=g&&g.filter||c.filter||"";c.zoom=1;if(b>=1&&d.trim(f.replace(xa,""))===""){c.removeAttribute("filter");if(g&&!g.filter)return}c.filter=xa.test(f)?f.replace(xa,e):f+" "+e}});d(function(){if(!d.support.reliableMarginRight)d.cssHooks.marginRight= -{get:function(a,b){var c;d.swap(a,{display:"inline-block"},function(){c=b?A(a,"margin-right","marginRight"):a.style.marginRight});return c}}});l.defaultView&&l.defaultView.getComputedStyle&&(ib=function(a,b){var c,g,b=b.replace(fc,"-$1").toLowerCase();if(!(g=a.ownerDocument.defaultView))return m;if(g=g.getComputedStyle(a,null)){c=g.getPropertyValue(b);c===""&&!d.contains(a.ownerDocument.documentElement,a)&&(c=d.style(a,b))}return c});l.documentElement.currentStyle&&(jb=function(a,b){var c,d=a.currentStyle&& -a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;if(!hb.test(d)&&gc.test(d)){c=f.left;if(e)a.runtimeStyle.left=a.currentStyle.left;f.left=b==="fontSize"?"1em":d||0;d=f.pixelLeft+"px";f.left=c;if(e)a.runtimeStyle.left=e}return d===""?"auto":d});A=ib||jb;d.expr&&d.expr.filters&&(d.expr.filters.hidden=function(a){var b=a.offsetHeight;return a.offsetWidth===0&&b===0||!d.support.reliableHiddenOffsets&&(a.style.display||d.css(a,"display"))==="none"},d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)}); -return d}(window); - -function i(a){throw a;}var j=void 0,k=!0,m=null,o=!1;function aa(){return function(a){return a}}function ba(a){var b=typeof a;return"object"==b&&a!=m||"function"==b}function ca(a,b,c){return a.call.apply(a.bind,arguments)}function da(a,b,c){a||i(Error());if(2<\/script>'),1!==$("#"+d).length&&i(Error("Document.write failed to append script")))}else i(Error("Not safe to attempt document.write"))}catch(e){try{var f= -new XMLHttpRequest;f.open("GET",a,o);f.onload=function(){eval(f.responseText)};f.onerror=function(){i(Error())};f.send()}catch(h){x("Common","Failed to load %s synchronously",a),c()}}else c()}function x(a,b,c){var d=window.console;if(Ia&&d&&d.log){var e=Ra(arguments,1);e[0]="Optimizely / "+a+" / "+b;Function.prototype.apply.call(d.log,d,e)}}function ja(a){try{return decodeURIComponent(a)}catch(b){return a}}function Ra(a,b){return Array.prototype.slice.call(a,b||0,a.length)} -function Ya(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};function Za(a){this.A=a;this.b={totalGets:0,totalGetLength:0,totalGetTime:0,totalSets:0,totalSetLength:0,totalSetTime:0}}Za.prototype.get=function(a){try{var b=+new Date,c=this.A.getItem([$a,a].join("$$")),d=ea(c);this.b.totalGetTime+=+new Date-b;this.b.totalGets++;this.b.totalGetLength+=(c||"").length;return d}catch(e){return m}}; -Za.prototype.set=function(a,b){try{var c=+new Date,d=t(b);K(b)?this.A.setItem([$a,a].join("$$"),d):this.A.removeItem([$a,a].join("$$"));this.b.totalSetTime+=+new Date-c;this.b.totalSets++;this.b.totalSetLength+=d.length}catch(e){}};Za.prototype.pa=function(){return this.b};var ab={get:function(){},set:function(){},pa:function(){return{}}},$a="optimizely_data",O=ab,bb=ab; -try{var O=new Za(window.localStorage),bb=new Za(window.sessionStorage),cb=O,db=cb.A.getItem($a),eb={};try{eb=ea(db)||{}}catch(fb){}if(0!==M(eb).length){var gb=Oa()||v("optimizelyEndUserId"),hb=eb[gb]||{},ib;for(ib in hb)if(hb.hasOwnProperty(ib)){var jb=[gb,ib].join("$$");cb.get(jb)===m&&cb.set(jb,hb[ib])}delete eb[gb];for(ib in eb)eb.hasOwnProperty(ib)&&(cb.get(ib)===m&&cb.set(ib,eb[ib]),delete eb[ib]);try{db=t(eb)}catch(kb){db={}}cb.A.setItem($a,db)}}catch(lb){};var P={};function mb(a,b){P[a]=b}function nb(){var a=(P.odds||m)&&(P.odds||m).ip||(P.cdn3||m)&&(P.cdn3||m).ip;return a?ob(a):m}function pb(){return!P.odds?m:(P.odds||m).lists||{}}function qb(){if(!P.cdn3)return m;var a=(P.cdn3||m).location||{};return{continent:ob(a.continent),country:ob(a.country),region:ob(a.region),city:ob(a.city)}}function rb(){return!P.dcps?m:(P.dcps||m).matchingRules||[]}function ob(a){return"string"!==typeof a||"N/A"===a.toUpperCase()?m:a.toUpperCase()};function sb(a){a=a||{};if(F){a&&a.sVariable&&(tb=a.sVariable);var b=tb||("undefined"!==typeof window.s?window.s:m);if(b)if(ub){a=vb;if(a!==m&&b)try{x("Integrator","Fixing SiteCatalyst referrer to %s",a),b.referrer=String(a)}catch(c){x("Integrator","Error setting SiteCatalyst referrer: %s",c)}x("Integrator","Tracking with SiteCatalyst");w(wb(),function(a){var c=Q(a),a=R(c,a,100,100,25,k),f=a.key+": "+a.value,a=[],h=S(c,"site_catalyst_evar")||m,c=S(c,"site_catalyst_prop")||m;h!==m&&a.push("eVar"+h); -c!==m&&a.push("prop"+c);w(a,function(a){x("Integrator","Setting SiteCatalyst %s='%s'",a,f);b[a]=f})})}else xb=k;else N("Integrator","Error with SiteCatalyst integration: 's' variable not defined")}}function yb(a){a=Wa(a)?Number(a):-1;if(-1!==[1,2,3].indexOf(a))zb=a;else return zb} -function Ab(){if(F){var a=vb;if(a!==m)try{x("Integrator","Fixing _gaq._setReferrerOverride with %s",a),_gaq.push(["_setReferrerOverride",a])}catch(b){x("Integrator","Error setting Google Analytics referrer: %s",b)}var c=[];w(wb(),function(a){var b=Q(a);if(S(b,"chartbeat")){var d=Bb;Bb="";var e=R(b,a,10,10,5,o);Bb=d;d=Db(a);Eb=e.key+": "+String(d);try{x("Integrator","Calling _cbq.push"),_cbq.push(["_optlyx",Eb])}catch(r){N("Integrator","Error sending Chartbeat data for "+T(b))}}if(Fb(b)){var e=Fb(b), -d=R(b,a,100,100,25,k),l=e+(-1!==e.indexOf("?")?"&":"?")+"optimizely_experiment_id="+b+"&optimizely_experiment_name="+encodeURIComponent(d.key)+"&optimizely_variation_id="+a+"&optimizely_variation_name="+encodeURIComponent(d.value)+"&ns_m_exp=("+b+") "+encodeURIComponent(d.key)+"&ns_m_chs=("+a+") "+encodeURIComponent(d.value)+"&type=hidden";try{$(window).load(function(){N("Integrator","Sending comScore log call");Gb(l,m)})}catch(u){N("Integrator","Error sending comScore data for "+T(b))}}if(S(b,"crazyegg")){e= -R(b,a,100,100,15,o);try{x("Integrator","Defining CE_SNAPSHOT_NAME"),window.CE_SNAPSHOT_NAME=e.key+": "+e.value}catch(A){N("Integrator","Error sending CrazyEgg data for "+T(b))}}if(Hb(b)){e=Hb(b);d=0;K(e)&&(d=e.slot||d);var e=d,d=Hb(b),y="";K(d)&&(y=d.tracker||y);d=y;y=R(b,a,28,24,5,k);try{var C="";""!==d&&(C=d+".");x("Integrator","Calling _gaq._setCustomVar for slot %d and scope %d",e,zb);_gaq.push([C+"_setCustomVar",e,y.key,y.value,zb])}catch(D){N("Integrator","Error sending Google Analytics data for "+ -T(b))}}if(S(b,"inspectlet")){e=Bb;Bb="";d=R(b,a,100,100,25,o);Bb=e;try{N("Integrator","Calling __insp.push for sending data to Inspectlet"),window.__insp=window.__insp||[],window.__insp.push(["tagSession",{"Optimizely Experiment Name":d.key,"Optimizely Variation Name":d.value,"Optimizely Experiment ID":b,"Optimizely Variation ID":a}])}catch(B){N("Integrator","Error sending Inspectlet data for "+T(b))}}if(E("kissmetrics")){e=R(b,a,100,100,15,k);d={};d[e.key]=e.value;try{x("Integrator","Calling _kmq.set"), -_kmq.push(["set",d])}catch(Nd){N("Integrator","Error sending KISSmetrics data for "+T(b))}}if(S(b,"mixpanel")){e=R(b,a,100,100,15,o);d={};d[e.key]=e.value;try{x("Integrator","Calling mixpanel.push"),mixpanel.push(["register",d])}catch(Ug){N("Integrator","Error sending Mixpanel data for "+T(b))}}if(S(b,"moat")){e=R(b,a,100,100,15,o);e=e.key+": "+e.value;try{x("Integrator","Calling optimizelyMoat.push"),optimizelyMoat.push(e)}catch(Cb){N("Integrator","Error sending Moat data for "+T(b))}}S(b,"sessioncam")&& -(c=c.concat(Ib(b,a)));if(Jb(b,"acct_no")){e=Jb(b,"acct_no");d=Jb(b,"url");y=R(b,a,28,24,5,k);a=d+"/hit.xiti?s="+e+"&abmvc="+(b+"["+encodeURIComponent(y.key)+"]-0-"+a+"["+encodeURIComponent(y.value)+"]")+"&type=mvt";try{x("Integrator","Sending AT Internet log call for account %s",e),Gb(a,m)}catch(Vg){N("Integrator","Error sending AT Internet data for "+T(b))}}});if(0>>17,h=c(h,461845907),e^=h,e=(e&524287)<<13|e>>>19,e=5*e+3864292196|0;h=0;switch(d%4){case 3:h=(a.charCodeAt(f+2)&255)<<16;case 2:h|=(a.charCodeAt(f+1)&255)<<8;case 1:h|=a.charCodeAt(f)&255,h=c(h,3432918353),e^=c((h&131071)<<15|h>>>17,461845907)}e^= -d;e=c(e^e>>>16,2246822507);e=c(e^e>>>13,3266489909);return e^e>>>16};var $c=Math.pow(2,32);/* - - - UAParser.js v0.7.3 - Lightweight JavaScript-based User-Agent string parser - https://github.com/faisalman/ua-parser-js - - Copyright ? 2012-2014 Faisal Salman - Dual licensed under GPLv2 & MIT -*/ -function ad(){}var bd={extend:function(a,b){for(var c in b)-1!=="browser cpu device engine os".indexOf(c)&&0===b[c].length%2&&(a[c]=b[c].concat(a[c]));return a},has:function(a,b){if("string"===typeof a)return-1!==b.toLowerCase().indexOf(a.toLowerCase())},L:function(a){return a.toLowerCase()}}; -function cd(){for(var a,b=0,c,d,e,f,h,g,n=arguments;b=Number(a)?d.push(zc(f[b])[a]):d.push(a)}),d=d.join("_");else if(!b&&1==e.length&&256>=Number(e[0])){var c=String,e=e[0],h=wc(a),g=m;try{g=h[e]}catch(n){}d=c(g)}else 1==e.length?d= -e[0]:N("API","Error: could not bucket user. Unknown arguments.");d&&(b&&yc(a,d)?(b=d,c=yc(a,b),sd[a]=sd[a]||{},sd[a][c]=b,N("Distributor","Preferring variation partial "+b+" of section "+c+" of experiment "+a),a=td(a),1===a.length&&ud(a[0],"api.bucketUser",k)):ud(d,"api.bucketUser",k));Vc()}function vd(a){a&&"tracking"===a||(N("API","Optimizely disabled"),G=o);F=o}function wd(){N("API","Finalizing API.");Pc();kd=k} -function xd(a,b,c){var d=[],e=b,c=K(c)?c:o;J(b)&&(e=b[0],d=Ra(b,1));(a=a[e])?(N("API",'Called function "'+e+'"'),a.apply(m,d)):c||N("API",'Error for unknown function "'+e+'"');Gc()&&SLAVE_CLIENT.optimizely.push(b);yd()}function zd(a,b){kd?N("API","Error: can't add custom tags after Optimizely loads"):(ld=ld||{},2==arguments.length?ld[a]=b:1==arguments.length&&$.extend(k,ld,a))} -function Ad(a,b){var c=qc(a)||a,b=K(b)?b:k,d=rc()[c];d?d.audience_id?W.W(d.audience_id):d.dimension_id?W.O(d.dimension_id,m):Bd(c,b):N("API","Unable find segment for: "+c)}function Cd(){var a=M(rc());w(a,function(a){Ad(a,o)});Dd()} -function Pc(){Ed={};Fd={};Gd={};w(Tb(),function(a){var b=Q(a);Ed[b]=a.split("_");Fd[b]=Db(a);Gd[b]=Vb(a)});Y={};var a=E("audiences");a&&(Y.audiences=a);Y.experiments={};Y.sections={};Y.segments={};Y.state={};Y.variations={};Y.visitor={};Y.customTags=ld;Y.thirdParty=O.get(cc)||{};for(var b=oc(),a=0;aa&&(b="less then minimum.",a=7776E3);N("API",(b&&"Days argument "+b)+" Cookie expiration set to "+a+" seconds.");Ma=a;wa()}function Td(){La=k} -function Ud(){v("optimizelyReportableFix")?N("API","skipping because cookie is set"):(w(E("audiences"),function(a){fc(a)&&(N("API","Removing from reportable audience: "+a),W.W(a))}),z("optimizelyReportableFix","1",7776E3))}function Vd(a){var b=Oa();a?z("optimizelyPPID",a,Ma):ma("optimizelyPPID",na());a!==b&&(N("Plan","Resetting visitor buckets"),Wd={},pd={},qd={},X=[],Vc());N("API","Set PPID to "+a)}var Y={},Xd={},Ed={},Fd={},Gd={},W=m;function Yd(a,b,c,d){this.n=a;this.y=b;c&&0>>8&255)+b);65535>>16)+b);return b});a=Zc(a,2716770798);return this.u=(a>>>16).toString(16)+(a&65535).toString(16)}; -function Zd(a,b){if(a.hash()!==b.hash()||a.n!==b.n||a.y!==b.y||a.r!==b.r)return o;if(!a.o&&!b.o)return k;var c=a.o||{},d=b.o||{},e=Ua(M(c),function(a){return c.hasOwnProperty(a)}),f=Ua(M(d),function(a){return d.hasOwnProperty(a)});if(e.length!==f.length)return o;for(f=0;fMath.abs(a.a(["t"],0)-b.a(["t"],0))?a.a(["s"]):b.a(["t"]))};function be(){var a;if(!(a=ce)){var b=new ad.va(window.navigator.userAgent);a=b.p();var c=b.ja(),b=b.J(),d=b.model in jd?jd[b.model]:"unknown",e=(c.name||"unknown").toLowerCase(),f;a:if(I(["mobile","tablet"],b.type))f=k;else{if(d&&"unknown"!==d)for(f in jd)if(d===jd[f]){f=k;break a}f=I(["android","blackberry","ios","windows phone"],e)?k:o}a={wa:hd(a.name),xa:a.version,platform:{id:e,version:c.version},F:{id:d,type:b.type||(f?"mobile":"desktop"),v:f}}}return ce=a}function Hd(){return be().wa} -function Id(){return be().xa}function Jd(){return be().F}function de(a){if(!a)return"";try{return a.match(/:\/\/(?:www[0-9]?\.)?(.[^/:]+)/)[1]}catch(b){return""}}function Kd(){return be().platform}function ee(){return O.get([Oa()||Na(),"events"].join("$$"))}function fe(a){O.set([Oa()||Na(),"events"].join("$$"),a)}function Md(){var a="android;blackberry;ipad;iphone;ipod;windows phone".split(";");return I(a,Jd().id)?Jd().id:I(a,Kd().id)?Kd().id:Ld()?"mobile":"unknown"}function Ld(){return Jd().v} -function ge(){return he?"returning":"new"}Kd=function(){return be().platform};function ie(a){x("User","Setting current URL to %s",a);je=a}var je=j,ce=j,he=j;var ke={},le=[],me=[],ne=m,oe=o; -function pe(){if(!Fc())return qe(),[];if(0===le.length)if(Fc()){var a;var b=ee()||[];if(0===b.length)le=[],a=o;else{a=o;if("eb"in b[0])for(var c=[],d=0;dMath.floor(1E4*((Zc(f+a,0)>>>0)/$c)))return N("Distributor", -"Permanently ignoring experiment "+a+"("+e/100+"% likelihood)"),Ve(a),o;e=c;sd[a]!==j&&(N("Distributor","Taking into account bucketUser variations for experiment "+a),e=td(a));var f=e,h=[],g=S(a,"variation_weights")||{};w(f,function(a){h.push(g[a])});f=Xe(a,h);e=e[f];N("Distributor","Picked variation "+e+" [index "+f+" of "+c.length+"]");ud(e,"distributor");return k} -function Ye(a,b){b=b||{};N("Distributor","Configuring conditionally-activated experiment: "+a);Xd[a]?N("Distributor","Not configuring conditionally-activated experiment (already done): "+a):!Ub(a)&&b.force!==k?N("Distributor","Not configuring conditionally-activated experiment (not enabled): "+a):(Ze(a,b),kd&&Pc())} -function Ze(a,b){function c(){Hc(W,a,b);n.isActive=I(Sb.concat(U),a);N("Distributor","Activating conditionally activated experiment "+a)}var d=S(a,"conditional_code"),e=k,f;try{var h=eval("(function() {return "+("("+d+")")+";})()");"function"===typeof h&&(e=o,f=h)}catch(g){}var n={isActive:o,experimentId:a};if(e){if(e={objectType:"experiment",enabledStatus:b.enabledStatus},b.force||!Qc(a)||Rc(a,e)){var r=function(){Qc(a)&&($e(0,{value:d})||h)?c():setTimeout(r,50)};r();N("Distributor","Set up conditional polling for "+ -a);Xd[a]=k}}else try{f(c,n),N("Distributor","Set up conditional callback for "+a),Xd[a]=k}catch(l){N("Distributor","Error running conditional callback function for "+a)}}function We(){return Oa()||Na()}function Xe(a,b){var c=b.length;if(0===c)return m;if(1===c)return 0;for(var d=0,e=0;e>>0)/$c;for(e=0;e>>0)/$c*c)} -function td(a){var b=[];w(S(a,"enabled_variation_ids")||[],function(c){var d=k,e;for(e in sd[a])-1===c.indexOf(sd[a][e])&&(d=o);d&&b.push(c)});return b}var sd={};var af=We;function bf(a){if(0===$("body").length)setTimeout(function(){bf(a)},20);else{var b;b='

'+a+"

";$("#optimizely-loading").remove();$("body").append(b)}}var cf=E("preview_host");function Od(){var a=window.location.search||"";0===a.indexOf("?")&&(a=a.substring(1));for(var a=a.split("&"),b=[],c=0;ca[1]},lt:function(a){return a[0]=a[1]},lte:function(a){return a[0]<=a[1]},"in":function(a){return I(a[1],a[0])},between:function(a){return a[1]<=a[0]&&a[0]<=a[2]},and:function(a){return Pa(a,aa())},or:function(a){return H(a,aa())},not:function(a){return!a[0]}},Bf={"+":function(a){return(a[0]|| -0)+(a[1]||0)},"-":function(a){return(a[0]||0)-(a[1]||0)},"/":function(a){return(a[0]||0)/(a[1]||1)},"%":function(a){return(a[0]||0)%(a[1]||1)}},Cf={sum:function(a,b){for(var c=a[0]||zf,d=0,e=0;e=Number(d)||Number(d)!=Math.floor(Number(d)))&&c.push("LIMIT must be a positive integer"));0f)return e}return 0}):x("Rules","groupBy rule must be an array")}a.hasOwnProperty("limit")&&(c=c.slice(0,Number(a.limit)));if(a.hasOwnProperty("select"))var B=a.select,c=Sa(c,function(a){return Sa(B,function(b){return Ef(a,b)})});return c};function N(a,b,c){If.push({Aa:new Date,ya:a,message:b,oa:c||o});Jf&&yd()}function Kf(){Ia=k}function Lf(){Ja=Ia=k}function yd(){Ia&&(w(If,function(a){if(!a.Xa&&(!a.oa||a.oa===Ja)){var b=+a.Aa;x(a.ya,a.message+(" [time "+(Mf?b-Mf:0)+" +"+(Nf?b-Nf:0)+"]"));Nf=b;Mf||(Mf=b);a.Xa=k}}),Jf=k)}var Nf=m,Mf=m,If=[],Jf=o;function Of(){this.j={};this.k={};this.w={};this.sa={}}Of.prototype.Wa=function(a){var b=this.w.hasOwnProperty(a)||this.sa.hasOwnProperty(a);if(!this.j.hasOwnProperty(a)||!b)try{var c=this.j,d=ec(a);d||i(Error("Unable to find audience for id: "+a));var e=Pf(this,d.conditions);N("Visitor","Checking if in audience "+a+": "+e);c[a]=e}catch(f){N("Visitor","Error: "+f.message)}return this.j[a]}; -function Qf(a,b,c,d){d=L({M:k,ra:k,B:k},d);if(ec(b)){a.j[b]=c;var e=fc(b);e?a.sa[b]=c:d.M?a.w[b]=c:delete a.w[b];e&&d.B&&a.B(e,c);if(!e&&d.M&&d.ra){var f=[];w(a.w,p(function(a){this.j[a]&&f.push(a)},a));f.sort();z("optimizelyAudiences",f.join(","),31536E4)}}else N("Visitor","Unable to find audience "+b)}Of.prototype.D=function(a){Qf(this,a,k)};Of.prototype.W=function(a){Qf(this,a,o)};Of.prototype.Za=function(){w(this.j,p(function(a){Qf(this,a,o,{M:!!this.w.hasOwnProperty(a)})},this))}; -function Rf(a,b,c,d){d=!K(d)||d;K(c)&&c!==m&&String(c)?(d&&(c=sf(String(c),o)),a.k[b]=c):delete a.k[b];return a.k[b]}Of.prototype.O=function(a,b,c){var d;a:{for(d in E("dimensions")||{}){var e=a,f=jc(d,"api_name");if(e===(!f?m:f))break a}d=m}d=d||a;E("dimensions",d)?"custom_dimension"===kc(d)?(b=Rf(this,d,b,c),a=jc(d,"segment_id"),(a=!a?m:a)&&this.B(a,b),N("Visitor",'Set dimension "'+d+'" to "'+b+'"')):N("Visitor",'Unknown dimension "'+d+'"'):N("Visitor","Unable to find dimension "+a)}; -Of.prototype.B=function(a,b){b?od(a,b):Bd(a)};var of=new Of;function Sf(a){var b=a.split(":");2!==b.length&&i(Error("optly.timeAndDayInterval.timeStringToMinutes: Invalid time string "+a));return 60*parseInt(b[0],10)+parseInt(b[1],10)};function Rc(a,b){var c=!!b.manualActivation,d=b.objectType?b.objectType:"experiment",e="experiment"===d,f=b.enabledStatus,h=b.visitor||of;N("Condition","Testing "+d+" "+a);var f=e&&(K(f)?!!f:Ub(a)),g=e&&tc(a),n;a:switch(d){case "experiment":n=S(a,"conditions");break a;case "segment":n=Dc(a,"add_condition");break a;default:n=[]}if(e&&!f)return N("Condition","Failed for "+d+" "+a+" (paused)"),o;if(e&&!c&&g)return N("Condition"," Failed for "+d+" "+a+" (manual activation mode)"),o;if(n){var r="experiment"=== -(d||"experiment"),l=k;w(n,function(b){var c=b.type;if(r&&b.only_first_time&&Tf(a))N("Condition",c+" condition passed because it only gets checked when bucketing",k);else{var d=!b.not,b=(0,Uf[c])(b),e=b!==d;N("Condition","Found that "+("the visitor "+(b?"passed":"failed")+" a "+c+" targeting condition when it needed to "+(d?"pass":"fail")),!e);if(e)return l=o}});if(!l)return N("Condition","Failed for "+d+" "+a+" (condition failed)"),o}else{a:{c=[];e=[];if("experiment"===d)c=S(a,"audiences")||[],e= -S(a,"urls")||[];else if("segment"===d)(f=Dc(a,"audience_id"))&&(c=[f]);else{N("Condition","Not a valid objectType: "+d);d=o;break a}if(0Number(c[e]))return 1}else return-1;return 0}function Xf(a,b){var c=b.value,d=a.id,e=a.version,f=a.mobileId;return f&&"unknown"!==f?(N("Condition",f,k),"mobile"===c||c===f):0===c.indexOf(d)?0===Wf(e,c.substr(d.length)):o} -function $e(a,b){var c=b.value;if(c===j)return k;try{return Boolean(eval(c))}catch(d){return o}}function Yf(a,b){return Zf(b.value,b.match,a)}function $f(a,b){return Zf(b.value,b.match,a)} -function ag(a,b){if(a===m)return o;var c=b.value;switch(b.match){case "exact":if(a==c&&""!=a)return k;break;case "prefix":if(0==a.indexOf(c))return k;break;case "regex":try{var d=RegExp(c)}catch(e){break}if(d.test(a))return k;break;case "cidr":try{var f;a:{var h=new bg(c),g=cg(a);g===m&&i(Error("Invalid ip: "+a));for(c=0;4>c;c++)if((g[c]&h.U[c])!==h.V[c]){f=o;break a}f=k}return f}catch(n){}}return o}function dg(a,b){var c=b.value;return"any"===c||0===a.indexOf(c)} -function eg(a,b){if(a===m)return o;var c=b.value.split("|"),d=$.trim(c[0]),e=$.trim(c[1]),f=$.trim(c[2]),h=$.trim(c[3]);switch(c.length){case 1:if(a.country===d)return k;break;case 2:if(a.region===e&&a.country===d)return k;break;case 3:if(a.city===f&&(a.region===e||""===e)&&a.country===d)return k;break;case 4:if(a.continent===h)return k}return o}function fg(a,b){return Zf(b.value,b.match,a)} -function gg(a,b){var c=b.value,d=b.match;N("Condition","Testing referrer "+a+" against "+c+" ("+d+")",k);return hg(a,c,d)}function ig(a){return!!a}function jg(a){var b=Z.I();return H(a.values,q(Vf,b))}function Vf(a,b){var c=b.value,d=b.match;N("Condition","Testing URL "+a+" against "+c+" ("+d+")",k);return hg(a,c,d)}function kg(a,b){switch(b.value){case "new":if("returning"===a)return o;break;case "returning":return"returning"===a}return k} -function Pf(a,b){var c={and:function(b){return Pa(b,q(Pf,a))},or:function(b){return H(b,q(Pf,a))},not:function(b){1!==b.length&&i(Error('"not" argument too long: '+t(b)));return!Pf(a,b[0])}};if(J(b)){if(b[0]in c)return c[b[0]](b.slice(1));i(Error("Not an operator"))}var c=b.dimension_id,d=kc(c),e=b.value;d||i(Error("No dimension type for dimension: "+c));var f=mg[d];f||i(Error("Unknown dimension type: "+d));d=j;if(a.k.hasOwnProperty(c))d=a.k[c];else try{var h=kc(c)||"",g,n;E("dimensions",c)||i(Error("Unable to find dimension for id: "+ -c));"custom_dimension"===h&&i(Error("calculateDimensionValue called on custom dimension "+c));(g={browser:p(Z.p,Z),browser_version:p(Z.p,Z),behavior:p(Z.Ea,Z),campaign:q(vf,"campaign"),cookies:p(Z.H,Z),custom_tag:p(Z.fa,Z),device:p(Z.J,Z),event:p(Z.ua,Z),first_session:p(Z.La,Z),has_ppid:p(Z.Sa,Z),ip:p(Z.S,Z),language:p(Z.R,Z),list:p(Z.ga,Z),location:p(Z.K,Z),query:p(Z.f,Z),platform:p(Z.ka,Z),referrer:p(Z.T,Z),segment:p(Z.Ta,Z),source_type:q(vf,"source_type"),third_party_dimension:p(Z.Qa,Z),time_and_day:p(Z.getDate, -Z),url:p(Z.I,Z),visitor:p(Z.ia,Z),dynamic_customer_profile:p(Z.ha,Z)}[h])&&(n=g(lc(c)));N("Visitor","Got dimension ("+h+") value "+c+": "+t(n));d=n}catch(r){N("Visitor","Error: "+r.message)}return f(d,{value:e,match:b.match||"exact"})} -function Qc(a){var b=k;!S(a,"conditions")&&!Dc(a,"add_condition")?(b=[Dc(a,"audience_id")],b[0]||(b=S(a,"audiences")||[]),b=Pa(b,function(a){a=ec(a);return!a.conditions?k:ng(a.conditions)})):(S(a,"uses_geotargeting")||Dc(a,"uses_geotargeting"))&&(b=og.ip(m)||og.location(m));b||N("Condition","Not ready to test (geotargeting): "+a);return b}function ng(a){if(J(a))return Pa(a.slice(1),ng);var b=kc(a.dimension_id)||"";return(b=og[b])?b(a):k} -var Uf={browser:function(a){var b=Z.p();return H(a.values,function(a){return Xf(b,{value:a})})},code:function(a){return $e(0,a)},cookies:function(a){for(var b=a.names||[],a=a.values||[],c,d=0;d=Wf(a.version, -c[1]):0===Wf(a.version,c[0]):o},referrer:gg,segment:ig,source_type:function(a,b){return b.value===a},time_and_day:function(a,b){var c,d,e;c=b.value;e=c.split("_");3!==e.length&&i(Error("Invalid time and day string "+c));c=e[0];d=e[1];e=e[2].split(",");c=Sf(c);d=Sf(d);var f=60*a.getHours()+a.getMinutes(),h="sunday monday tuesday wednesday thursday friday saturday".split(" ")[a.getDay()];return f>=c&&f<=d&&-1!==$.inArray(h,e)},third_party_dimension:function(a,b){return J(a)?H(a,q(Zf,b.value,b.match)): -Zf(b.value,b.match,a)},url:Vf,visitor:kg,dynamic_customer_profile:function(a,b){return a===m?o:I(a,b.value)},has_ppid:aa()},og={ip:function(){V("checkGeo");return Z.S()!==m},location:function(){V("checkGeo");return Z.K()!==m},list:function(a){return Z.ga(lc(a.dimension_id)||"")!==m},dynamic_customer_profile:function(){return Z.ha()!==m}}; -function Zf(a,b,c){var d=K(c)&&c!==m,e=K(a)&&a!==m;switch(b||(e?"exact":"exists")){case "exists":return d;case "exact":return d&&String(c)===a;case "substring":return d&&-1!==String(c).indexOf(a);case "regex":try{return e&&d?Boolean(String(c).match(RegExp(a))):o}catch(f){return o}case "range":return a=a.split(":"),b=parseFloat(a[1]),c=parseFloat(c),c>=parseFloat(a[0])&&c<=b;default:return o}};function pg(a,b){var c;c=$.trim(b);var d="";if(window.optimizely&&window.optimizely.data)if(d=c.match(qg))d=window.optimizely.data.visitor.params[d[1]],d===j&&(d="");else{for(var d=c.split("."),e=window.optimizely,f=0,h=d.length;f]*)\}\}/g,qg=/^data\.visitor\.params\.(.*)$/;function ud(a,b,c){var d;d=o===k;var c=c===k,e=o,f=Q(a);if(f&&(c||!Tf(f))){e=k;if(c&&Tf(f))for(c=0;c'+c.replace(/([\f\n\r\t\\'"])/g,"\\$1")+ -'");',g:"body",type:"global css (experiment "+a+")",C:k});d&&tg(d,f,g)});w(d,function(a){for(var b=Yb(a),b=b.split("\n"),c=[],d=k,e=0,h=b.length;e0){d=xg(r,lg,u);d=jg(d)}if(d&&l.length>0){d=xg(l,n,u);d=!jg(d)}}else d&& -c.push(l)}}b=c.join("\n");tg(b,f,g,a)});c=[];c.push.apply(c,f);c.push.apply(c,h);c.push.apply(c,g);c.push.apply(c,e);Cg.push.apply(Cg,c);Eg()}} -function Eg(){var a=o;Fg=m;for(N("Evaluator",Gg+" times waited");!a&&0body{display:none;visibility:hidden;}");N("Evaluator","Hiding body before redirect");var d= -lf.test(a)||kf.test(a)||mf.test(a),e=/_keep_body_hidden=(\S+)/.test(a);d||e?N("Evaluator","Standard redirect detected - Will not unhide body."):setTimeout(function(){document.body&&(document.body.style.visibility="visible",document.body.style.display="block",N("Evaluator","Unhiding body -- did not redirect"),V("bodyUnhidden"))},1700)}eval(a)}catch(f){c=Ia,Ia=k,N("Evaluator","Error: "+f.message),N("Evaluator","Code: "+a),Ia=c,N("Evaluator","Failed to run code: "+f.message)}} -function Bg(a,b,c){c=c||{};if(!Jg[a]||!Jg[a][b]){var d=function(){Wc(b,"custom",c)},e=$(a);if(0b||32b||32d;d++)c[d]=0;for(var e=Math.floor(b/8),d=0;de&&(c[e]=Ng[b%8]);b=c}for(c=0;4>c;c++)a[c]&=b[c];return{V:a,U:b}} -function cg(a){a=a.split(".");if(4!=a.length)return m;for(var b=[],c=0;4>c;c++){var d;d=a[c];if(3e||255loading')}}else if(Ha&& -!Fa)bf("This preview link has expired. Please return to Optimizely and preview again to get a new link.");else{if(E("uses_list_targeting")){g="https://odds.optimizely.com/js/geo2.js";var r={};w(E("list_targeting_cookie_names"),function(a){var b=Z.H(a);typeof b==="string"&&b.length<=100&&(r["c_"+a]=b)});r.project=xc().toString();var f=[],l;for(l in r)r.hasOwnProperty(l)&&f.push(encodeURIComponent(l)+"="+encodeURIComponent(r[l]));f.length&&(g+="?"+f.join("&"));Xa(g)}if(Cc()){b:{l=ic();for(g=0;gNumber(g))&&(G=o);if(G){l=v("optimizelyEndUserId");he=l!==j&&l!==m;a:{l="googlebot;yahoo! slurp;bingbot;bingpreview;msnbot;keynote;ktxn;khte;gomezagent;alertsite;yottaamonitor;pingdom.com_bot;aihitbot;baiduspider;adsbot-google;mediapartners-google".split(";");g=navigator.userAgent;g=g.toLowerCase();for(f=0;f1&&b.indexOf("_")===-1){C[c]=C[c]||{};C[c][a]=b}else b!=="0"?ud(b,"cookie")||(Wd[a]=b):Ve(a)});w(C,function(a,b){var c;a:{c=[];for(var d=vc(a),e=0;e0?ud(c,"cookie"):Ve(a)})}nf();Wb=(v("optimizelyRedirect")||"|").split("|")[0];l=v("optimizelyReferrer");l!==m&&(vb=0==l.length?"":l,z("optimizelyReferrer",""));l=of;N("Visitor","Initializing"); -(g=v("optimizelyAudiences"))&&0 - - - Marketo Forms 2 Cross Domain request proxy frame - - - - -

This page is used by Marketo Forms 2 to proxy cross domain AJAX requests.

- - \ No newline at end of file diff --git a/js/alljs.js b/js/alljs.js deleted file mode 100644 index 5d740016db..0000000000 --- a/js/alljs.js +++ /dev/null @@ -1,109 +0,0 @@ - !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l=a.document,m="2.1.3",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return n.each(this,a,b)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(n.isPlainObject(d)||(e=n.isArray(d)))?(e?(e=!1,f=c&&n.isArray(c)?c:[]):f=c&&n.isPlainObject(c)?c:{},g[b]=n.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){return!n.isArray(a)&&a-parseFloat(a)+1>=0},isPlainObject:function(a){return"object"!==n.type(a)||a.nodeType||n.isWindow(a)?!1:a.constructor&&!j.call(a.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=n.trim(a),a&&(1===a.indexOf("use strict")?(b=l.createElement("script"),b.text=a,l.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=s(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:g.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=s(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(c=a[b],b=a,a=c),n.isFunction(a)?(e=d.call(arguments,2),f=function(){return a.apply(b||this,e.concat(d.call(arguments)))},f.guid=a.guid=a.guid||n.guid++,f):void 0},now:Date.now,support:k}),n.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=hb(),z=hb(),A=hb(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N=M.replace("w","w#"),O="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+N+"))|)"+L+"*\\]",P=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+O+")*)|.*)\\)|)",Q=new RegExp(L+"+","g"),R=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),S=new RegExp("^"+L+"*,"+L+"*"),T=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),U=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),V=new RegExp(P),W=new RegExp("^"+N+"$"),X={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ab=/[+~]/,bb=/'|\\/g,cb=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),db=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},eb=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(fb){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function gb(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[],k=b.nodeType,"string"!=typeof a||!a||1!==k&&9!==k&&11!==k)return d;if(!e&&p){if(11!==k&&(f=_.exec(a)))if(j=f[1]){if(9===k){if(h=b.getElementById(j),!h||!h.parentNode)return d;if(h.id===j)return d.push(h),d}else if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j)return d.push(h),d}else{if(f[2])return H.apply(d,b.getElementsByTagName(a)),d;if((j=f[3])&&c.getElementsByClassName)return H.apply(d,b.getElementsByClassName(j)),d}if(c.qsa&&(!q||!q.test(a))){if(s=r=u,w=b,x=1!==k&&a,1===k&&"object"!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute("id"))?s=r.replace(bb,"\\$&"):b.setAttribute("id",s),s="[id='"+s+"'] ",l=o.length;while(l--)o[l]=s+rb(o[l]);w=ab.test(a)&&pb(b.parentNode)||b,x=o.join(",")}if(x)try{return H.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute("id")}}}return i(a.replace(R,"$1"),b,d,e)}function hb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ib(a){return a[u]=!0,a}function jb(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function kb(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function lb(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function mb(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function nb(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function ob(a){return ib(function(b){return b=+b,ib(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function pb(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=gb.support={},f=gb.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=gb.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=g.documentElement,e=g.defaultView,e&&e!==e.top&&(e.addEventListener?e.addEventListener("unload",eb,!1):e.attachEvent&&e.attachEvent("onunload",eb)),p=!f(g),c.attributes=jb(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=jb(function(a){return a.appendChild(g.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=$.test(g.getElementsByClassName),c.getById=jb(function(a){return o.appendChild(a).id=u,!g.getElementsByName||!g.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(g.querySelectorAll))&&(jb(function(a){o.appendChild(a).innerHTML="",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),jb(function(a){var b=g.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&jb(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",P)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===g||a.ownerDocument===v&&t(v,a)?-1:b===g||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,h=[a],i=[b];if(!e||!f)return a===g?-1:b===g?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return lb(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?lb(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},g):n},gb.matches=function(a,b){return gb(a,null,null,b)},gb.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(U,"='$1']"),!(!c.matchesSelector||!p||r&&r.test(b)||q&&q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return gb(b,n,null,[a]).length>0},gb.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},gb.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},gb.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},gb.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=gb.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=gb.selectors={cacheLength:50,createPseudo:ib,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(cb,db),a[3]=(a[3]||a[4]||a[5]||"").replace(cb,db),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||gb.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&gb.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(cb,db).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=gb.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(Q," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||gb.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ib(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ib(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?ib(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ib(function(a){return function(b){return gb(a,b).length>0}}),contains:ib(function(a){return a=a.replace(cb,db),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ib(function(a){return W.test(a||"")||gb.error("unsupported lang: "+a),a=a.replace(cb,db).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:ob(function(){return[0]}),last:ob(function(a,b){return[b-1]}),eq:ob(function(a,b,c){return[0>c?c+b:c]}),even:ob(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:ob(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:ob(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:ob(function(a,b,c){for(var d=0>c?c+b:c;++db;b++)d+=a[b].value;return d}function sb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function tb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ub(a,b,c){for(var d=0,e=b.length;e>d;d++)gb(a,b[d],c);return c}function vb(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function wb(a,b,c,d,e,f){return d&&!d[u]&&(d=wb(d)),e&&!e[u]&&(e=wb(e,f)),ib(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ub(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:vb(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=vb(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=vb(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function xb(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=sb(function(a){return a===b},h,!0),l=sb(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[sb(tb(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return wb(i>1&&tb(m),i>1&&rb(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(R,"$1"),c,e>i&&xb(a.slice(i,e)),f>e&&xb(a=a.slice(e)),f>e&&rb(a))}m.push(c)}return tb(m)}function yb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=null==t?1:Math.random()||.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=F.call(i));s=vb(s)}H.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&gb.uniqueSort(i)}return k&&(w=v,j=t),r};return c?ib(f):f}return h=gb.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=xb(b[c]),f[u]?d.push(f):e.push(f);f=A(a,yb(e,d)),f.selector=a}return f},i=gb.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(cb,db),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(cb,db),ab.test(j[0].type)&&pb(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&rb(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,ab.test(a)&&pb(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=jb(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),jb(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||kb("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&jb(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||kb("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),jb(function(a){return null==a.getAttribute("disabled")})||kb(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),gb}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=n.expr.match.needsContext,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function x(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(w.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return g.call(b,a)>=0!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;c>b;b++)if(n.contains(e[b],this))return!0}));for(b=0;c>b;b++)n.find(a,e[b],d);return d=this.pushStack(c>1?n.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(x(this,a||[],!1))},not:function(a){return this.pushStack(x(this,a||[],!0))},is:function(a){return!!x(this,"string"==typeof a&&u.test(a)?n(a):a||[],!1).length}});var y,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=n.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||y).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:l,!0)),v.test(c[1])&&n.isPlainObject(b))for(c in b)n.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}return d=l.getElementById(c[2]),d&&d.parentNode&&(this.length=1,this[0]=d),this.context=l,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?"undefined"!=typeof y.ready?y.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};A.prototype=n.fn,y=n(l);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};n.extend({dir:function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),n.fn.extend({has:function(a){var b=n(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(n.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=u.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.unique(f):f)},index:function(a){return a?"string"==typeof a?g.call(n(a),this[0]):g.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.unique(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){while((a=a[b])&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return n.dir(a,"parentNode")},parentsUntil:function(a,b,c){return n.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return n.dir(a,"nextSibling")},prevAll:function(a){return n.dir(a,"previousSibling")},nextUntil:function(a,b,c){return n.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return n.dir(a,"previousSibling",c)},siblings:function(a){return n.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return n.sibling(a.firstChild)},contents:function(a){return a.contentDocument||n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(C[a]||n.unique(e),B.test(a)&&e.reverse()),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return n.each(a.match(E)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):n.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(b=a.memory&&l,c=!0,g=e||0,e=0,f=h.length,d=!0;h&&f>g;g++)if(h[g].apply(l[0],l[1])===!1&&a.stopOnFalse){b=!1;break}d=!1,h&&(i?i.length&&j(i.shift()):b?h=[]:k.disable())},k={add:function(){if(h){var c=h.length;!function g(b){n.each(b,function(b,c){var d=n.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&g(c)})}(arguments),d?f=h.length:b&&(e=c,j(b))}return this},remove:function(){return h&&n.each(arguments,function(a,b){var c;while((c=n.inArray(b,h,c))>-1)h.splice(c,1),d&&(f>=c&&f--,g>=c&&g--)}),this},has:function(a){return a?n.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],f=0,this},disable:function(){return h=i=b=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,b||k.disable(),this},locked:function(){return!i},fireWith:function(a,b){return!h||c&&!i||(b=b||[],b=[a,b.slice?b.slice():b],d?i.push(b):j(b)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!c}};return k},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&n.isFunction(a.promise)?e:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(H.resolveWith(l,[n]),n.fn.triggerHandler&&(n(l).triggerHandler("ready"),n(l).off("ready"))))}});function I(){l.removeEventListener("DOMContentLoaded",I,!1),a.removeEventListener("load",I,!1),n.ready()}n.ready.promise=function(b){return H||(H=n.Deferred(),"complete"===l.readyState?setTimeout(n.ready):(l.addEventListener("DOMContentLoaded",I,!1),a.addEventListener("load",I,!1))),H.promise(b)},n.ready.promise();var J=n.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)n.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f};n.acceptData=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function K(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=n.expando+K.uid++}K.uid=1,K.accepts=n.acceptData,K.prototype={key:function(a){if(!K.accepts(a))return 0;var b={},c=a[this.expando];if(!c){c=K.uid++;try{b[this.expando]={value:c},Object.defineProperties(a,b)}catch(d){b[this.expando]=c,n.extend(a,b)}}return this.cache[c]||(this.cache[c]={}),c},set:function(a,b,c){var d,e=this.key(a),f=this.cache[e];if("string"==typeof b)f[b]=c;else if(n.isEmptyObject(f))n.extend(this.cache[e],b);else for(d in b)f[d]=b[d];return f},get:function(a,b){var c=this.cache[this.key(a)];return void 0===b?c:c[b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,n.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=this.key(a),g=this.cache[f];if(void 0===b)this.cache[f]={};else{n.isArray(b)?d=b.concat(b.map(n.camelCase)):(e=n.camelCase(b),b in g?d=[b,e]:(d=e,d=d in g?[d]:d.match(E)||[])),c=d.length;while(c--)delete g[d[c]]}},hasData:function(a){return!n.isEmptyObject(this.cache[a[this.expando]]||{})},discard:function(a){a[this.expando]&&delete this.cache[a[this.expando]]}};var L=new K,M=new K,N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(O,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}M.set(a,b,c)}else c=void 0;return c}n.extend({hasData:function(a){return M.hasData(a)||L.hasData(a)},data:function(a,b,c){return M.access(a,b,c)},removeData:function(a,b){M.remove(a,b)},_data:function(a,b,c){return L.access(a,b,c)},_removeData:function(a,b){L.remove(a,b)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=M.get(f),1===f.nodeType&&!L.get(f,"hasDataAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d])));L.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){M.set(this,a)}):J(this,function(b){var c,d=n.camelCase(a);if(f&&void 0===b){if(c=M.get(f,a),void 0!==c)return c;if(c=M.get(f,d),void 0!==c)return c;if(c=P(f,d,void 0),void 0!==c)return c}else this.each(function(){var c=M.get(this,d);M.set(this,d,b),-1!==a.indexOf("-")&&void 0!==c&&M.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){M.remove(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=L.get(a,b),c&&(!d||n.isArray(c)?d=L.access(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return L.get(a,c)||L.access(a,c,{empty:n.Callbacks("once memory").add(function(){L.remove(a,[b+"queue",c])})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.lengthx",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var U="undefined";k.focusinBubbles="onfocusin"in a;var V=/^key/,W=/^(?:mouse|pointer|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,Y=/^([^.]*)(?:\.(.+)|)$/;function Z(){return!0}function $(){return!1}function _(){try{return l.activeElement}catch(a){}}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=L.get(a);if(r){c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=n.guid++),(i=r.events)||(i=r.events={}),(g=r.handle)||(g=r.handle=function(b){return typeof n!==U&&n.event.triggered!==b.type?n.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(E)||[""],j=b.length;while(j--)h=Y.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o&&(l=n.event.special[o]||{},o=(e?l.delegateType:l.bindType)||o,l=n.event.special[o]||{},k=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},f),(m=i[o])||(m=i[o]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,p,g)!==!1||a.addEventListener&&a.addEventListener(o,g,!1)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),n.event.global[o]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=L.hasData(a)&&L.get(a);if(r&&(i=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=Y.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=i[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&q!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete i[o])}else for(o in i)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(i)&&(delete r.handle,L.remove(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,m,o,p=[d||l],q=j.call(b,"type")?b.type:b,r=j.call(b,"namespace")?b.namespace.split("."):[];if(g=h=d=d||l,3!==d.nodeType&&8!==d.nodeType&&!X.test(q+n.event.triggered)&&(q.indexOf(".")>=0&&(r=q.split("."),q=r.shift(),r.sort()),k=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=r.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:n.makeArray(c,[b]),o=n.event.special[q]||{},e||!o.trigger||o.trigger.apply(d,c)!==!1)){if(!e&&!o.noBubble&&!n.isWindow(d)){for(i=o.delegateType||q,X.test(i+q)||(g=g.parentNode);g;g=g.parentNode)p.push(g),h=g;h===(d.ownerDocument||l)&&p.push(h.defaultView||h.parentWindow||a)}f=0;while((g=p[f++])&&!b.isPropagationStopped())b.type=f>1?i:o.bindType||q,m=(L.get(g,"events")||{})[b.type]&&L.get(g,"handle"),m&&m.apply(g,c),m=k&&g[k],m&&m.apply&&n.acceptData(g)&&(b.result=m.apply(g,c),b.result===!1&&b.preventDefault());return b.type=q,e||b.isDefaultPrevented()||o._default&&o._default.apply(p.pop(),c)!==!1||!n.acceptData(d)||k&&n.isFunction(d[q])&&!n.isWindow(d)&&(h=d[k],h&&(d[k]=null),n.event.triggered=q,d[q](),n.event.triggered=void 0,h&&(d[k]=h)),b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(L.get(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(g.namespace))&&(a.handleObj=g,a.data=g.data,e=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==e&&(a.result=e)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!==this;i=i.parentNode||this)if(i.disabled!==!0||"click"!==a.type){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>=0:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h]*)\/>/gi,bb=/<([\w:]+)/,cb=/<|&#?\w+;/,db=/<(?:script|style|link)/i,eb=/checked\s*(?:[^=]|=\s*.checked.)/i,fb=/^$|\/(?:java|ecma)script/i,gb=/^true\/(.*)/,hb=/^\s*\s*$/g,ib={option:[1,""],thead:[1,"
","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};ib.optgroup=ib.option,ib.tbody=ib.tfoot=ib.colgroup=ib.caption=ib.thead,ib.th=ib.td;function jb(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function kb(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function lb(a){var b=gb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function mb(a,b){for(var c=0,d=a.length;d>c;c++)L.set(a[c],"globalEval",!b||L.get(b[c],"globalEval"))}function nb(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(L.hasData(a)&&(f=L.access(a),g=L.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)n.event.add(b,e,j[e][c])}M.hasData(a)&&(h=M.access(a),i=n.extend({},h),M.set(b,i))}}function ob(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&n.nodeName(a,b)?n.merge([a],c):c}function pb(a,b){var c=b.nodeName.toLowerCase();"input"===c&&T.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}n.extend({clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=n.contains(a.ownerDocument,a);if(!(k.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(g=ob(h),f=ob(a),d=0,e=f.length;e>d;d++)pb(f[d],g[d]);if(b)if(c)for(f=f||ob(a),g=g||ob(h),d=0,e=f.length;e>d;d++)nb(f[d],g[d]);else nb(a,h);return g=ob(h,"script"),g.length>0&&mb(g,!i&&ob(a,"script")),h},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k=b.createDocumentFragment(),l=[],m=0,o=a.length;o>m;m++)if(e=a[m],e||0===e)if("object"===n.type(e))n.merge(l,e.nodeType?[e]:e);else if(cb.test(e)){f=f||k.appendChild(b.createElement("div")),g=(bb.exec(e)||["",""])[1].toLowerCase(),h=ib[g]||ib._default,f.innerHTML=h[1]+e.replace(ab,"<$1><$2>")+h[2],j=h[0];while(j--)f=f.lastChild;n.merge(l,f.childNodes),f=k.firstChild,f.textContent=""}else l.push(b.createTextNode(e));k.textContent="",m=0;while(e=l[m++])if((!d||-1===n.inArray(e,d))&&(i=n.contains(e.ownerDocument,e),f=ob(k.appendChild(e),"script"),i&&mb(f),c)){j=0;while(e=f[j++])fb.test(e.type||"")&&c.push(e)}return k},cleanData:function(a){for(var b,c,d,e,f=n.event.special,g=0;void 0!==(c=a[g]);g++){if(n.acceptData(c)&&(e=c[L.expando],e&&(b=L.cache[e]))){if(b.events)for(d in b.events)f[d]?n.event.remove(c,d):n.removeEvent(c,d,b.handle);L.cache[e]&&delete L.cache[e]}delete M.cache[c[M.expando]]}}}),n.fn.extend({text:function(a){return J(this,function(a){return void 0===a?n.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=a)})},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=jb(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=jb(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?n.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||n.cleanData(ob(c)),c.parentNode&&(b&&n.contains(c.ownerDocument,c)&&mb(ob(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(n.cleanData(ob(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return J(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!db.test(a)&&!ib[(bb.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(ab,"<$1><$2>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(ob(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,n.cleanData(ob(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,m=this,o=l-1,p=a[0],q=n.isFunction(p);if(q||l>1&&"string"==typeof p&&!k.checkClone&&eb.test(p))return this.each(function(c){var d=m.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(l&&(c=n.buildFragment(a,this[0].ownerDocument,!1,this),d=c.firstChild,1===c.childNodes.length&&(c=d),d)){for(f=n.map(ob(c,"script"),kb),g=f.length;l>j;j++)h=c,j!==o&&(h=n.clone(h,!0,!0),g&&n.merge(f,ob(h,"script"))),b.call(this[j],h,j);if(g)for(i=f[f.length-1].ownerDocument,n.map(f,lb),j=0;g>j;j++)h=f[j],fb.test(h.type||"")&&!L.access(h,"globalEval")&&n.contains(i,h)&&(h.src?n._evalUrl&&n._evalUrl(h.src):n.globalEval(h.textContent.replace(hb,"")))}return this}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=[],e=n(a),g=e.length-1,h=0;g>=h;h++)c=h===g?this:this.clone(!0),n(e[h])[b](c),f.apply(d,c.get());return this.pushStack(d)}});var qb,rb={};function sb(b,c){var d,e=n(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:n.css(e[0],"display");return e.detach(),f}function tb(a){var b=l,c=rb[a];return c||(c=sb(a,b),"none"!==c&&c||(qb=(qb||n("',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery",g=Boolean(a.fn.mfpFastClick);return b.direction=!0,c&&c.enabled?(f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s),h=g?"mfpFastClick":"click";e[h](function(){b.prev()}),f[h](function(){b.next()}),b.isIE7&&(x("b",e[0],!1,!0),x("a",e[0],!1,!0),x("b",f[0],!1,!0),x("a",f[0],!1,!0)),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowLeft&&g&&b.arrowLeft.add(b.arrowRight).destroyMfpFastClick(),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),function(){var b=1e3,c="ontouchstart"in window,d=function(){v.off("touchmove"+f+" touchend"+f)},e="mfpFastClick",f="."+e;a.fn.mfpFastClick=function(e){return a(this).each(function(){var g,h=a(this);if(c){var i,j,k,l,m,n;h.on("touchstart"+f,function(a){l=!1,n=1,m=a.originalEvent?a.originalEvent.touches[0]:a.touches[0],j=m.clientX,k=m.clientY,v.on("touchmove"+f,function(a){m=a.originalEvent?a.originalEvent.touches:a.touches,n=m.length,m=m[0],(Math.abs(m.clientX-j)>10||Math.abs(m.clientY-k)>10)&&(l=!0,d())}).on("touchend"+f,function(a){d(),l||n>1||(g=!0,a.preventDefault(),clearTimeout(i),i=setTimeout(function(){g=!1},b),e())})})}h.on("click"+f,function(){g||e()})})},a.fn.destroyMfpFastClick=function(){a(this).off("touchstart"+f+" click"+f),c&&v.off("touchmove"+f+" touchend"+f)}}(),A()}); - -(function(d){var g=-1,e=-1,n=function(a){var b=null,c=[];d(a).each(function(){var a=d(this),k=a.offset().top-h(a.css("margin-top")),l=0=Math.floor(Math.abs(b-k))?c[c.length-1]=l.add(a):c.push(a);b=k});return c},h=function(a){return parseFloat(a)||0},b=d.fn.matchHeight=function(a){if("remove"===a){var f=this;this.css("height","");d.each(b._groups,function(a,b){b.elements=b.elements.not(f)});return this}if(1>=this.length)return this;a="undefined"!== -typeof a?a:!0;b._groups.push({elements:this,byRow:a});b._apply(this,a);return this};b._groups=[];b._throttle=80;b._maintainScroll=!1;b._beforeUpdate=null;b._afterUpdate=null;b._apply=function(a,f){var c=d(a),e=[c],k=d(window).scrollTop(),l=d("html").outerHeight(!0),g=c.parents().filter(":hidden");g.css("display","block");f&&(c.each(function(){var a=d(this),b="inline-block"===a.css("display")?"inline-block":"block";a.data("style-cache",a.attr("style"));a.css({display:b,"padding-top":"0","padding-bottom":"0", -"margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px"})}),e=n(c),c.each(function(){var a=d(this);a.attr("style",a.data("style-cache")||"").css("height","")}));d.each(e,function(a,b){var c=d(b),e=0;f&&1>=c.length||(c.each(function(){var a=d(this),b="inline-block"===a.css("display")?"inline-block":"block";a.css({display:b,height:""});a.outerHeight(!1)>e&&(e=a.outerHeight(!1));a.css("display","")}),c.each(function(){var a=d(this),b=0;"border-box"!==a.css("box-sizing")&& -(b+=h(a.css("border-top-width"))+h(a.css("border-bottom-width")),b+=h(a.css("padding-top"))+h(a.css("padding-bottom")));a.css("height",e-b)}))});g.css("display","");b._maintainScroll&&d(window).scrollTop(k/l*d("html").outerHeight(!0));return this};b._applyDataApi=function(){var a={};d("[data-match-height], [data-mh]").each(function(){var b=d(this),c=b.attr("data-match-height")||b.attr("data-mh");a[c]=c in a?a[c].add(b):b});d.each(a,function(){this.matchHeight(!0)})};var m=function(a){b._beforeUpdate&& -b._beforeUpdate(a,b._groups);d.each(b._groups,function(){b._apply(this.elements,this.byRow)});b._afterUpdate&&b._afterUpdate(a,b._groups)};b._update=function(a,f){if(f&&"resize"===f.type){var c=d(window).width();if(c===g)return;g=c}a?-1===e&&(e=setTimeout(function(){m(f);e=-1},b._throttle)):m(f)};d(b._applyDataApi);d(window).bind("load",function(a){b._update(!1,a)});d(window).bind("resize orientationchange",function(a){b._update(!0,a)})})(jQuery); - -!function(a){function b(){}function c(a){function c(b){b.prototype.option||(b.prototype.option=function(b){a.isPlainObject(b)&&(this.options=a.extend(!0,this.options,b))})}function e(b,c){a.fn[b]=function(e){if("string"==typeof e){for(var g=d.call(arguments,1),h=0,i=this.length;i>h;h++){var j=this[h],k=a.data(j,b);if(k)if(a.isFunction(k[e])&&"_"!==e.charAt(0)){var l=k[e].apply(k,g);if(void 0!==l)return l}else f("no such method '"+e+"' for "+b+" instance");else f("cannot call methods on "+b+" prior to initialization; attempted to call '"+e+"'")}return this}return this.each(function(){var d=a.data(this,b);d?(d.option(e),d._init()):(d=new c(this,e),a.data(this,b,d))})}}if(a){var f="undefined"==typeof console?b:function(a){console.error(a)};return a.bridget=function(a,b){c(b),e(a,b)},a.bridget}}var d=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],c):c("object"==typeof exports?require("jquery"):a.jQuery)}(window),function(a){function b(b){var c=a.event;return c.target=c.target||c.srcElement||b,c}var c=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){var c=b(a);d.handleEvent.call(d,c)}:function(){var c=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});var e=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{delete a[b+c]}catch(d){a[b+c]=void 0}});var f={bind:d,unbind:e};"function"==typeof define&&define.amd?define("eventie/eventie",f):"object"==typeof exports?module.exports=f:a.eventie=f}(window),function(){"use strict";function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){var b,c,d=this._getEvents();if(a instanceof RegExp){b={};for(c in d)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}else b=d[a]||(d[a]=[]);return b},d.flattenListeners=function(a){var b,c=[];for(b=0;be;e++)if(b=c[e]+a,"string"==typeof d[b])return b}}var c="Webkit Moz ms Ms O".split(" "),d=document.documentElement.style;"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return b}):"object"==typeof exports?module.exports=b:a.getStyleProperty=b}(window),function(a,b){function c(a){var b=parseFloat(a),c=-1===a.indexOf("%")&&!isNaN(b);return c&&b}function d(){}function e(){for(var a={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},b=0,c=h.length;c>b;b++){var d=h[b];a[d]=0}return a}function f(b){function d(){if(!m){m=!0;var d=a.getComputedStyle;if(j=function(){var a=d?function(a){return d(a,null)}:function(a){return a.currentStyle};return function(b){var c=a(b);return c||g("Style returned "+c+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),c}}(),k=b("boxSizing")){var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style[k]="border-box";var f=document.body||document.documentElement;f.appendChild(e);var h=j(e);l=200===c(h.width),f.removeChild(e)}}}function f(a){if(d(),"string"==typeof a&&(a=document.querySelector(a)),a&&"object"==typeof a&&a.nodeType){var b=j(a);if("none"===b.display)return e();var f={};f.width=a.offsetWidth,f.height=a.offsetHeight;for(var g=f.isBorderBox=!(!k||!b[k]||"border-box"!==b[k]),m=0,n=h.length;n>m;m++){var o=h[m],p=b[o];p=i(a,p);var q=parseFloat(p);f[o]=isNaN(q)?0:q}var r=f.paddingLeft+f.paddingRight,s=f.paddingTop+f.paddingBottom,t=f.marginLeft+f.marginRight,u=f.marginTop+f.marginBottom,v=f.borderLeftWidth+f.borderRightWidth,w=f.borderTopWidth+f.borderBottomWidth,x=g&&l,y=c(b.width);y!==!1&&(f.width=y+(x?0:r+v));var z=c(b.height);return z!==!1&&(f.height=z+(x?0:s+w)),f.innerWidth=f.width-(r+v),f.innerHeight=f.height-(s+w),f.outerWidth=f.width+t,f.outerHeight=f.height+u,f}}function i(b,c){if(a.getComputedStyle||-1===c.indexOf("%"))return c;var d=b.style,e=d.left,f=b.runtimeStyle,g=f&&f.left;return g&&(f.left=b.currentStyle.left),d.left=c,c=d.pixelLeft,d.left=e,g&&(f.left=g),c}var j,k,l,m=!1;return f}var g="undefined"==typeof console?d:function(a){console.error(a)},h=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],f):"object"==typeof exports?module.exports=f(require("desandro-get-style-property")):a.getSize=f(a.getStyleProperty)}(window),function(a){function b(a){"function"==typeof a&&(b.isReady?a():g.push(a))}function c(a){var c="readystatechange"===a.type&&"complete"!==f.readyState;b.isReady||c||d()}function d(){b.isReady=!0;for(var a=0,c=g.length;c>a;a++){var d=g[a];d()}}function e(e){return"complete"===f.readyState?d():(e.bind(f,"DOMContentLoaded",c),e.bind(f,"readystatechange",c),e.bind(a,"load",c)),b}var f=a.document,g=[];b.isReady=!1,"function"==typeof define&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],e):"object"==typeof exports?module.exports=e(require("eventie")):a.docReady=e(a.eventie)}(window),function(a){"use strict";function b(a,b){return a[g](b)}function c(a){if(!a.parentNode){var b=document.createDocumentFragment();b.appendChild(a)}}function d(a,b){c(a);for(var d=a.parentNode.querySelectorAll(b),e=0,f=d.length;f>e;e++)if(d[e]===a)return!0;return!1}function e(a,d){return c(a),b(a,d)}var f,g=function(){if(a.matches)return"matches";if(a.matchesSelector)return"matchesSelector";for(var b=["webkit","moz","ms","o"],c=0,d=b.length;d>c;c++){var e=b[c],f=e+"MatchesSelector";if(a[f])return f}}();if(g){var h=document.createElement("div"),i=b(h,"div");f=i?b:e}else f=d;"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return f}):"object"==typeof exports?module.exports=f:window.matchesSelector=f}(Element.prototype),function(a,b){"use strict";"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["doc-ready/doc-ready","matches-selector/matches-selector"],function(c,d){return b(a,c,d)}):"object"==typeof exports?module.exports=b(a,require("doc-ready"),require("desandro-matches-selector")):a.fizzyUIUtils=b(a,a.docReady,a.matchesSelector)}(window,function(a,b,c){var d={};d.extend=function(a,b){for(var c in b)a[c]=b[c];return a},d.modulo=function(a,b){return(a%b+b)%b};var e=Object.prototype.toString;d.isArray=function(a){return"[object Array]"==e.call(a)},d.makeArray=function(a){var b=[];if(d.isArray(a))b=a;else if(a&&"number"==typeof a.length)for(var c=0,e=a.length;e>c;c++)b.push(a[c]);else b.push(a);return b},d.indexOf=Array.prototype.indexOf?function(a,b){return a.indexOf(b)}:function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},d.removeFrom=function(a,b){var c=d.indexOf(a,b);-1!=c&&a.splice(c,1)},d.isElement="function"==typeof HTMLElement||"object"==typeof HTMLElement?function(a){return a instanceof HTMLElement}:function(a){return a&&"object"==typeof a&&1==a.nodeType&&"string"==typeof a.nodeName},d.setText=function(){function a(a,c){b=b||(void 0!==document.documentElement.textContent?"textContent":"innerText"),a[b]=c}var b;return a}(),d.getParent=function(a,b){for(;a!=document.body;)if(a=a.parentNode,c(a,b))return a},d.getQueryElement=function(a){return"string"==typeof a?document.querySelector(a):a},d.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},d.filterFindElements=function(a,b){a=d.makeArray(a);for(var e=[],f=0,g=a.length;g>f;f++){var h=a[f];if(d.isElement(h))if(b){c(h,b)&&e.push(h);for(var i=h.querySelectorAll(b),j=0,k=i.length;k>j;j++)e.push(i[j])}else e.push(h)}return e},d.debounceMethod=function(a,b,c){var d=a.prototype[b],e=b+"Timeout";a.prototype[b]=function(){var a=this[e];a&&clearTimeout(a);var b=arguments,f=this;this[e]=setTimeout(function(){d.apply(f,b),delete f[e]},c||100)}},d.toDashed=function(a){return a.replace(/(.)([A-Z])/g,function(a,b,c){return b+"-"+c}).toLowerCase()};var f=a.console;return d.htmlInit=function(c,e){b(function(){for(var b=d.toDashed(e),g=document.querySelectorAll(".js-"+b),h="data-"+b+"-options",i=0,j=g.length;j>i;i++){var k,l=g[i],m=l.getAttribute(h);try{k=m&&JSON.parse(m)}catch(n){f&&f.error("Error parsing "+h+" on "+l.nodeName.toLowerCase()+(l.id?"#"+l.id:"")+": "+n);continue}var o=new c(l,k),p=a.jQuery;p&&p.data(l,e,o)}})},d}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property","fizzy-ui-utils/utils"],function(c,d,e,f){return b(a,c,d,e,f)}):"object"==typeof exports?module.exports=b(a,require("wolfy87-eventemitter"),require("get-size"),require("desandro-get-style-property"),require("fizzy-ui-utils")):(a.Outlayer={},a.Outlayer.Item=b(a,a.EventEmitter,a.getSize,a.getStyleProperty,a.fizzyUIUtils))}(window,function(a,b,c,d,e){"use strict";function f(a){for(var b in a)return!1;return b=null,!0}function g(a,b){a&&(this.element=a,this.layout=b,this.position={x:0,y:0},this._create())}function h(a){return a.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()})}var i=a.getComputedStyle,j=i?function(a){return i(a,null)}:function(a){return a.currentStyle},k=d("transition"),l=d("transform"),m=k&&l,n=!!d("perspective"),o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[k],p=["transform","transition","transitionDuration","transitionProperty"],q=function(){for(var a={},b=0,c=p.length;c>b;b++){var e=p[b],f=d(e);f&&f!==e&&(a[e]=f)}return a}();e.extend(g.prototype,b.prototype),g.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},g.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},g.prototype.getSize=function(){this.size=c(this.element)},g.prototype.css=function(a){var b=this.element.style;for(var c in a){var d=q[c]||c;b[d]=a[c]}},g.prototype.getPosition=function(){var a=j(this.element),b=this.layout.options,c=b.isOriginLeft,d=b.isOriginTop,e=a[c?"left":"right"],f=a[d?"top":"bottom"],g=this.layout.size,h=-1!=e.indexOf("%")?parseFloat(e)/100*g.width:parseInt(e,10),i=-1!=f.indexOf("%")?parseFloat(f)/100*g.height:parseInt(f,10);h=isNaN(h)?0:h,i=isNaN(i)?0:i,h-=c?g.paddingLeft:g.paddingRight,i-=d?g.paddingTop:g.paddingBottom,this.position.x=h,this.position.y=i},g.prototype.layoutPosition=function(){var a=this.layout.size,b=this.layout.options,c={},d=b.isOriginLeft?"paddingLeft":"paddingRight",e=b.isOriginLeft?"left":"right",f=b.isOriginLeft?"right":"left",g=this.position.x+a[d];c[e]=this.getXValue(g),c[f]="";var h=b.isOriginTop?"paddingTop":"paddingBottom",i=b.isOriginTop?"top":"bottom",j=b.isOriginTop?"bottom":"top",k=this.position.y+a[h];c[i]=this.getYValue(k),c[j]="",this.css(c),this.emitEvent("layout",[this])},g.prototype.getXValue=function(a){var b=this.layout.options;return b.percentPosition&&!b.isHorizontal?a/this.layout.size.width*100+"%":a+"px"},g.prototype.getYValue=function(a){var b=this.layout.options;return b.percentPosition&&b.isHorizontal?a/this.layout.size.height*100+"%":a+"px"},g.prototype._transitionTo=function(a,b){this.getPosition();var c=this.position.x,d=this.position.y,e=parseInt(a,10),f=parseInt(b,10),g=e===this.position.x&&f===this.position.y;if(this.setPosition(a,b),g&&!this.isTransitioning)return void this.layoutPosition();var h=a-c,i=b-d,j={};j.transform=this.getTranslate(h,i),this.transition({to:j,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},g.prototype.getTranslate=function(a,b){var c=this.layout.options;return a=c.isOriginLeft?a:-a,b=c.isOriginTop?b:-b,n?"translate3d("+a+"px, "+b+"px, 0)":"translate("+a+"px, "+b+"px)"},g.prototype.goTo=function(a,b){this.setPosition(a,b),this.layoutPosition()},g.prototype.moveTo=m?g.prototype._transitionTo:g.prototype.goTo,g.prototype.setPosition=function(a,b){this.position.x=parseInt(a,10),this.position.y=parseInt(b,10)},g.prototype._nonTransition=function(a){this.css(a.to),a.isCleaning&&this._removeStyles(a.to);for(var b in a.onTransitionEnd)a.onTransitionEnd[b].call(this)},g.prototype._transition=function(a){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(a);var b=this._transn;for(var c in a.onTransitionEnd)b.onEnd[c]=a.onTransitionEnd[c];for(c in a.to)b.ingProperties[c]=!0,a.isCleaning&&(b.clean[c]=!0);if(a.from){this.css(a.from);var d=this.element.offsetHeight;d=null}this.enableTransition(a.to),this.css(a.to),this.isTransitioning=!0};var r="opacity,"+h(q.transform||"transform");g.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:r,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(o,this,!1))},g.prototype.transition=g.prototype[k?"_transition":"_nonTransition"],g.prototype.onwebkitTransitionEnd=function(a){this.ontransitionend(a)},g.prototype.onotransitionend=function(a){this.ontransitionend(a)};var s={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"};g.prototype.ontransitionend=function(a){if(a.target===this.element){var b=this._transn,c=s[a.propertyName]||a.propertyName;if(delete b.ingProperties[c],f(b.ingProperties)&&this.disableTransition(),c in b.clean&&(this.element.style[a.propertyName]="",delete b.clean[c]),c in b.onEnd){var d=b.onEnd[c];d.call(this),delete b.onEnd[c]}this.emitEvent("transitionEnd",[this])}},g.prototype.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(o,this,!1),this.isTransitioning=!1},g.prototype._removeStyles=function(a){var b={};for(var c in a)b[c]="";this.css(b)};var t={transitionProperty:"",transitionDuration:""};return g.prototype.removeTransitionStyles=function(){this.css(t)},g.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},g.prototype.remove=function(){if(!k||!parseFloat(this.layout.options.transitionDuration))return void this.removeElem();var a=this;this.once("transitionEnd",function(){a.removeElem()}),this.hide()},g.prototype.reveal=function(){delete this.isHidden,this.css({display:""});var a=this.layout.options,b={},c=this.getHideRevealTransitionEndProperty("visibleStyle");b[c]=this.onRevealTransitionEnd,this.transition({from:a.hiddenStyle,to:a.visibleStyle,isCleaning:!0,onTransitionEnd:b})},g.prototype.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},g.prototype.getHideRevealTransitionEndProperty=function(a){var b=this.layout.options[a];if(b.opacity)return"opacity";for(var c in b)return c},g.prototype.hide=function(){this.isHidden=!0,this.css({display:""});var a=this.layout.options,b={},c=this.getHideRevealTransitionEndProperty("hiddenStyle");b[c]=this.onHideTransitionEnd,this.transition({from:a.visibleStyle,to:a.hiddenStyle,isCleaning:!0,onTransitionEnd:b})},g.prototype.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},g.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},g}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","eventEmitter/EventEmitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(c,d,e,f,g){return b(a,c,d,e,f,g)}):"object"==typeof exports?module.exports=b(a,require("eventie"),require("wolfy87-eventemitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):a.Outlayer=b(a,a.eventie,a.EventEmitter,a.getSize,a.fizzyUIUtils,a.Outlayer.Item)}(window,function(a,b,c,d,e,f){"use strict";function g(a,b){var c=e.getQueryElement(a);if(!c)return void(h&&h.error("Bad element for "+this.constructor.namespace+": "+(c||a)));this.element=c,i&&(this.$element=i(this.element)),this.options=e.extend({},this.constructor.defaults),this.option(b);var d=++k;this.element.outlayerGUID=d,l[d]=this,this._create(),this.options.isInitLayout&&this.layout()}var h=a.console,i=a.jQuery,j=function(){},k=0,l={};return g.namespace="outlayer",g.Item=f,g.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},e.extend(g.prototype,c.prototype),g.prototype.option=function(a){e.extend(this.options,a)},g.prototype._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),e.extend(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},g.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},g.prototype._itemize=function(a){for(var b=this._filterFindItemElements(a),c=this.constructor.Item,d=[],e=0,f=b.length;f>e;e++){var g=b[e],h=new c(g,this);d.push(h)}return d},g.prototype._filterFindItemElements=function(a){return e.filterFindElements(a,this.options.itemSelector)},g.prototype.getItemElements=function(){for(var a=[],b=0,c=this.items.length;c>b;b++)a.push(this.items[b].element);return a},g.prototype.layout=function(){this._resetLayout(),this._manageStamps();var a=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,a),this._isLayoutInited=!0},g.prototype._init=g.prototype.layout,g.prototype._resetLayout=function(){this.getSize()},g.prototype.getSize=function(){this.size=d(this.element)},g.prototype._getMeasurement=function(a,b){var c,f=this.options[a];f?("string"==typeof f?c=this.element.querySelector(f):e.isElement(f)&&(c=f),this[a]=c?d(c)[b]:f):this[a]=0},g.prototype.layoutItems=function(a,b){a=this._getItemsForLayout(a),this._layoutItems(a,b),this._postLayout()},g.prototype._getItemsForLayout=function(a){for(var b=[],c=0,d=a.length;d>c;c++){var e=a[c];e.isIgnored||b.push(e)}return b},g.prototype._layoutItems=function(a,b){if(this._emitCompleteOnItems("layout",a),a&&a.length){for(var c=[],d=0,e=a.length;e>d;d++){var f=a[d],g=this._getItemLayoutPosition(f);g.item=f,g.isInstant=b||f.isLayoutInstant,c.push(g)}this._processLayoutQueue(c)}},g.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},g.prototype._processLayoutQueue=function(a){for(var b=0,c=a.length;c>b;b++){var d=a[b];this._positionItem(d.item,d.x,d.y,d.isInstant)}},g.prototype._positionItem=function(a,b,c,d){d?a.goTo(b,c):a.moveTo(b,c)},g.prototype._postLayout=function(){this.resizeContainer()},g.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var a=this._getContainerSize();a&&(this._setContainerMeasure(a.width,!0),this._setContainerMeasure(a.height,!1))}},g.prototype._getContainerSize=j,g.prototype._setContainerMeasure=function(a,b){if(void 0!==a){var c=this.size;c.isBorderBox&&(a+=b?c.paddingLeft+c.paddingRight+c.borderLeftWidth+c.borderRightWidth:c.paddingBottom+c.paddingTop+c.borderTopWidth+c.borderBottomWidth),a=Math.max(a,0),this.element.style[b?"width":"height"]=a+"px"}},g.prototype._emitCompleteOnItems=function(a,b){function c(){e.dispatchEvent(a+"Complete",null,[b])}function d(){g++,g===f&&c()}var e=this,f=b.length;if(!b||!f)return void c();for(var g=0,h=0,i=b.length;i>h;h++){var j=b[h];j.once(a,d)}},g.prototype.dispatchEvent=function(a,b,c){var d=b?[b].concat(c):c;if(this.emitEvent(a,d),i)if(this.$element=this.$element||i(this.element),b){var e=i.Event(b);e.type=a,this.$element.trigger(e,c)}else this.$element.trigger(a,c)},g.prototype.ignore=function(a){var b=this.getItem(a);b&&(b.isIgnored=!0)},g.prototype.unignore=function(a){var b=this.getItem(a);b&&delete b.isIgnored},g.prototype.stamp=function(a){if(a=this._find(a)){this.stamps=this.stamps.concat(a);for(var b=0,c=a.length;c>b;b++){var d=a[b];this.ignore(d)}}},g.prototype.unstamp=function(a){if(a=this._find(a))for(var b=0,c=a.length;c>b;b++){var d=a[b];e.removeFrom(this.stamps,d),this.unignore(d)}},g.prototype._find=function(a){return a?("string"==typeof a&&(a=this.element.querySelectorAll(a)),a=e.makeArray(a)):void 0},g.prototype._manageStamps=function(){if(this.stamps&&this.stamps.length){this._getBoundingRect();for(var a=0,b=this.stamps.length;b>a;a++){var c=this.stamps[a];this._manageStamp(c)}}},g.prototype._getBoundingRect=function(){var a=this.element.getBoundingClientRect(),b=this.size;this._boundingRect={left:a.left+b.paddingLeft+b.borderLeftWidth,top:a.top+b.paddingTop+b.borderTopWidth,right:a.right-(b.paddingRight+b.borderRightWidth),bottom:a.bottom-(b.paddingBottom+b.borderBottomWidth)}},g.prototype._manageStamp=j,g.prototype._getElementOffset=function(a){var b=a.getBoundingClientRect(),c=this._boundingRect,e=d(a),f={left:b.left-c.left-e.marginLeft,top:b.top-c.top-e.marginTop,right:c.right-b.right-e.marginRight,bottom:c.bottom-b.bottom-e.marginBottom};return f},g.prototype.handleEvent=function(a){var b="on"+a.type;this[b]&&this[b](a)},g.prototype.bindResize=function(){this.isResizeBound||(b.bind(a,"resize",this),this.isResizeBound=!0)},g.prototype.unbindResize=function(){this.isResizeBound&&b.unbind(a,"resize",this),this.isResizeBound=!1},g.prototype.onresize=function(){function a(){b.resize(),delete b.resizeTimeout}this.resizeTimeout&&clearTimeout(this.resizeTimeout);var b=this;this.resizeTimeout=setTimeout(a,100)},g.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},g.prototype.needsResizeLayout=function(){var a=d(this.element),b=this.size&&a;return b&&a.innerWidth!==this.size.innerWidth},g.prototype.addItems=function(a){var b=this._itemize(a);return b.length&&(this.items=this.items.concat(b)),b},g.prototype.appended=function(a){var b=this.addItems(a);b.length&&(this.layoutItems(b,!0),this.reveal(b))},g.prototype.prepended=function(a){var b=this._itemize(a);if(b.length){var c=this.items.slice(0);this.items=b.concat(c),this._resetLayout(),this._manageStamps(),this.layoutItems(b,!0),this.reveal(b),this.layoutItems(c)}},g.prototype.reveal=function(a){this._emitCompleteOnItems("reveal",a);for(var b=a&&a.length,c=0;b&&b>c;c++){var d=a[c];d.reveal()}},g.prototype.hide=function(a){this._emitCompleteOnItems("hide",a);for(var b=a&&a.length,c=0;b&&b>c;c++){var d=a[c];d.hide()}},g.prototype.revealItemElements=function(a){var b=this.getItems(a);this.reveal(b)},g.prototype.hideItemElements=function(a){var b=this.getItems(a);this.hide(b)},g.prototype.getItem=function(a){for(var b=0,c=this.items.length;c>b;b++){var d=this.items[b];if(d.element===a)return d}},g.prototype.getItems=function(a){a=e.makeArray(a);for(var b=[],c=0,d=a.length;d>c;c++){var f=a[c],g=this.getItem(f);g&&b.push(g)}return b},g.prototype.remove=function(a){var b=this.getItems(a);if(this._emitCompleteOnItems("remove",b),b&&b.length)for(var c=0,d=b.length;d>c;c++){var f=b[c];f.remove(),e.removeFrom(this.items,f)}},g.prototype.destroy=function(){var a=this.element.style;a.height="",a.position="",a.width="";for(var b=0,c=this.items.length;c>b;b++){var d=this.items[b];d.destroy()}this.unbindResize();var e=this.element.outlayerGUID;delete l[e],delete this.element.outlayerGUID,i&&i.removeData(this.element,this.constructor.namespace)},g.data=function(a){a=e.getQueryElement(a);var b=a&&a.outlayerGUID;return b&&l[b]},g.create=function(a,b){function c(){g.apply(this,arguments)}return Object.create?c.prototype=Object.create(g.prototype):e.extend(c.prototype,g.prototype),c.prototype.constructor=c,c.defaults=e.extend({},g.defaults),e.extend(c.defaults,b),c.prototype.settings={},c.namespace=a,c.data=g.data,c.Item=function(){f.apply(this,arguments)},c.Item.prototype=new f,e.htmlInit(c,a),i&&i.bridget&&i.bridget(a,c),c},g.Item=f,g}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("isotope/js/item",["outlayer/outlayer"],b):"object"==typeof exports?module.exports=b(require("outlayer")):(a.Isotope=a.Isotope||{},a.Isotope.Item=b(a.Outlayer))}(window,function(a){"use strict";function b(){a.Item.apply(this,arguments)}b.prototype=new a.Item,b.prototype._create=function(){this.id=this.layout.itemGUID++,a.Item.prototype._create.call(this),this.sortData={}},b.prototype.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var a=this.layout.options.getSortData,b=this.layout._sorters;for(var c in a){var d=b[c];this.sortData[c]=d(this.element,this)}}};var c=b.prototype.destroy;return b.prototype.destroy=function(){c.apply(this,arguments),this.css({display:""})},b}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("isotope/js/layout-mode",["get-size/get-size","outlayer/outlayer"],b):"object"==typeof exports?module.exports=b(require("get-size"),require("outlayer")):(a.Isotope=a.Isotope||{},a.Isotope.LayoutMode=b(a.getSize,a.Outlayer))}(window,function(a,b){"use strict";function c(a){this.isotope=a,a&&(this.options=a.options[this.namespace],this.element=a.element,this.items=a.filteredItems,this.size=a.size)}return function(){function a(a){return function(){return b.prototype[a].apply(this.isotope,arguments)}}for(var d=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout"],e=0,f=d.length;f>e;e++){var g=d[e];c.prototype[g]=a(g)}}(),c.prototype.needsVerticalResizeLayout=function(){var b=a(this.isotope.element),c=this.isotope.size&&b;return c&&b.innerHeight!=this.isotope.size.innerHeight},c.prototype._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},c.prototype.getColumnWidth=function(){this.getSegmentSize("column","Width")},c.prototype.getRowHeight=function(){this.getSegmentSize("row","Height")},c.prototype.getSegmentSize=function(a,b){var c=a+b,d="outer"+b;if(this._getMeasurement(c,d),!this[c]){var e=this.getFirstItemSize();this[c]=e&&e[d]||this.isotope.size["inner"+b]}},c.prototype.getFirstItemSize=function(){var b=this.isotope.filteredItems[0];return b&&b.element&&a(b.element)},c.prototype.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},c.prototype.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},c.modes={},c.create=function(a,b){function d(){c.apply(this,arguments)}return d.prototype=new c,b&&(d.options=b),d.prototype.namespace=a,c.modes[a]=d,d},c}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("masonry/masonry",["outlayer/outlayer","get-size/get-size","fizzy-ui-utils/utils"],b):"object"==typeof exports?module.exports=b(require("outlayer"),require("get-size"),require("fizzy-ui-utils")):a.Masonry=b(a.Outlayer,a.getSize,a.fizzyUIUtils)}(window,function(a,b,c){var d=a.create("masonry");return d.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns();var a=this.cols;for(this.colYs=[];a--;)this.colYs.push(0);this.maxY=0},d.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var a=this.items[0],c=a&&a.element;this.columnWidth=c&&b(c).outerWidth||this.containerWidth}var d=this.columnWidth+=this.gutter,e=this.containerWidth+this.gutter,f=e/d,g=d-e%d,h=g&&1>g?"round":"floor";f=Math[h](f),this.cols=Math.max(f,1)},d.prototype.getContainerWidth=function(){var a=this.options.isFitWidth?this.element.parentNode:this.element,c=b(a);this.containerWidth=c&&c.innerWidth},d.prototype._getItemLayoutPosition=function(a){a.getSize();var b=a.size.outerWidth%this.columnWidth,d=b&&1>b?"round":"ceil",e=Math[d](a.size.outerWidth/this.columnWidth);e=Math.min(e,this.cols);for(var f=this._getColGroup(e),g=Math.min.apply(Math,f),h=c.indexOf(f,g),i={x:this.columnWidth*h,y:g},j=g+a.size.outerHeight,k=this.cols+1-f.length,l=0;k>l;l++)this.colYs[h+l]=j;return i},d.prototype._getColGroup=function(a){if(2>a)return this.colYs;for(var b=[],c=this.cols+1-a,d=0;c>d;d++){var e=this.colYs.slice(d,d+a);b[d]=Math.max.apply(Math,e)}return b},d.prototype._manageStamp=function(a){var c=b(a),d=this._getElementOffset(a),e=this.options.isOriginLeft?d.left:d.right,f=e+c.outerWidth,g=Math.floor(e/this.columnWidth);g=Math.max(0,g);var h=Math.floor(f/this.columnWidth);h-=f%this.columnWidth?0:1,h=Math.min(this.cols-1,h);for(var i=(this.options.isOriginTop?d.top:d.bottom)+c.outerHeight,j=g;h>=j;j++)this.colYs[j]=Math.max(i,this.colYs[j])},d.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var a={height:this.maxY};return this.options.isFitWidth&&(a.width=this._getContainerFitWidth()),a},d.prototype._getContainerFitWidth=function(){for(var a=0,b=this.cols;--b&&0===this.colYs[b];)a++;return(this.cols-a)*this.columnWidth-this.gutter},d.prototype.needsResizeLayout=function(){var a=this.containerWidth;return this.getContainerWidth(),a!==this.containerWidth},d}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("isotope/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],b):"object"==typeof exports?module.exports=b(require("../layout-mode"),require("masonry-layout")):b(a.Isotope.LayoutMode,a.Masonry)}(window,function(a,b){"use strict";function c(a,b){for(var c in b)a[c]=b[c];return a}var d=a.create("masonry"),e=d.prototype._getElementOffset,f=d.prototype.layout,g=d.prototype._getMeasurement; -c(d.prototype,b.prototype),d.prototype._getElementOffset=e,d.prototype.layout=f,d.prototype._getMeasurement=g;var h=d.prototype.measureColumns;d.prototype.measureColumns=function(){this.items=this.isotope.filteredItems,h.call(this)};var i=d.prototype._manageStamp;return d.prototype._manageStamp=function(){this.options.isOriginLeft=this.isotope.options.isOriginLeft,this.options.isOriginTop=this.isotope.options.isOriginTop,i.apply(this,arguments)},d}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("isotope/js/layout-modes/fit-rows",["../layout-mode"],b):"object"==typeof exports?module.exports=b(require("../layout-mode")):b(a.Isotope.LayoutMode)}(window,function(a){"use strict";var b=a.create("fitRows");return b.prototype._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},b.prototype._getItemLayoutPosition=function(a){a.getSize();var b=a.size.outerWidth+this.gutter,c=this.isotope.size.innerWidth+this.gutter;0!==this.x&&b+this.x>c&&(this.x=0,this.y=this.maxY);var d={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+a.size.outerHeight),this.x+=b,d},b.prototype._getContainerSize=function(){return{height:this.maxY}},b}),function(a,b){"use strict";"function"==typeof define&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],b):"object"==typeof exports?module.exports=b(require("../layout-mode")):b(a.Isotope.LayoutMode)}(window,function(a){"use strict";var b=a.create("vertical",{horizontalAlignment:0});return b.prototype._resetLayout=function(){this.y=0},b.prototype._getItemLayoutPosition=function(a){a.getSize();var b=(this.isotope.size.innerWidth-a.size.outerWidth)*this.options.horizontalAlignment,c=this.y;return this.y+=a.size.outerHeight,{x:b,y:c}},b.prototype._getContainerSize=function(){return{height:this.y}},b}),function(a,b){"use strict";"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","matches-selector/matches-selector","fizzy-ui-utils/utils","isotope/js/item","isotope/js/layout-mode","isotope/js/layout-modes/masonry","isotope/js/layout-modes/fit-rows","isotope/js/layout-modes/vertical"],function(c,d,e,f,g,h){return b(a,c,d,e,f,g,h)}):"object"==typeof exports?module.exports=b(a,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("./item"),require("./layout-mode"),require("./layout-modes/masonry"),require("./layout-modes/fit-rows"),require("./layout-modes/vertical")):a.Isotope=b(a,a.Outlayer,a.getSize,a.matchesSelector,a.fizzyUIUtils,a.Isotope.Item,a.Isotope.LayoutMode)}(window,function(a,b,c,d,e,f,g){function h(a,b){return function(c,d){for(var e=0,f=a.length;f>e;e++){var g=a[e],h=c.sortData[g],i=d.sortData[g];if(h>i||i>h){var j=void 0!==b[g]?b[g]:b,k=j?1:-1;return(h>i?1:-1)*k}}return 0}}var i=a.jQuery,j=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s+|\s+$/g,"")},k=document.documentElement,l=k.textContent?function(a){return a.textContent}:function(a){return a.innerText},m=b.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});m.Item=f,m.LayoutMode=g,m.prototype._create=function(){this.itemGUID=0,this._sorters={},this._getSorters(),b.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"];for(var a in g.modes)this._initLayoutMode(a)},m.prototype.reloadItems=function(){this.itemGUID=0,b.prototype.reloadItems.call(this)},m.prototype._itemize=function(){for(var a=b.prototype._itemize.apply(this,arguments),c=0,d=a.length;d>c;c++){var e=a[c];e.id=this.itemGUID++}return this._updateItemsSortData(a),a},m.prototype._initLayoutMode=function(a){var b=g.modes[a],c=this.options[a]||{};this.options[a]=b.options?e.extend(b.options,c):c,this.modes[a]=new b(this)},m.prototype.layout=function(){return!this._isLayoutInited&&this.options.isInitLayout?void this.arrange():void this._layout()},m.prototype._layout=function(){var a=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,a),this._isLayoutInited=!0},m.prototype.arrange=function(a){function b(){d.reveal(c.needReveal),d.hide(c.needHide)}this.option(a),this._getIsInstant();var c=this._filter(this.items);this.filteredItems=c.matches;var d=this;this._bindArrangeComplete(),this._isInstant?this._noTransition(b):b(),this._sort(),this._layout()},m.prototype._init=m.prototype.arrange,m.prototype._getIsInstant=function(){var a=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;return this._isInstant=a,a},m.prototype._bindArrangeComplete=function(){function a(){b&&c&&d&&e.dispatchEvent("arrangeComplete",null,[e.filteredItems])}var b,c,d,e=this;this.once("layoutComplete",function(){b=!0,a()}),this.once("hideComplete",function(){c=!0,a()}),this.once("revealComplete",function(){d=!0,a()})},m.prototype._filter=function(a){var b=this.options.filter;b=b||"*";for(var c=[],d=[],e=[],f=this._getFilterTest(b),g=0,h=a.length;h>g;g++){var i=a[g];if(!i.isIgnored){var j=f(i);j&&c.push(i),j&&i.isHidden?d.push(i):j||i.isHidden||e.push(i)}}return{matches:c,needReveal:d,needHide:e}},m.prototype._getFilterTest=function(a){return i&&this.options.isJQueryFiltering?function(b){return i(b.element).is(a)}:"function"==typeof a?function(b){return a(b.element)}:function(b){return d(b.element,a)}},m.prototype.updateSortData=function(a){var b;a?(a=e.makeArray(a),b=this.getItems(a)):b=this.items,this._getSorters(),this._updateItemsSortData(b)},m.prototype._getSorters=function(){var a=this.options.getSortData;for(var b in a){var c=a[b];this._sorters[b]=n(c)}},m.prototype._updateItemsSortData=function(a){for(var b=a&&a.length,c=0;b&&b>c;c++){var d=a[c];d.updateSortData()}};var n=function(){function a(a){if("string"!=typeof a)return a;var c=j(a).split(" "),d=c[0],e=d.match(/^\[(.+)\]$/),f=e&&e[1],g=b(f,d),h=m.sortDataParsers[c[1]];return a=h?function(a){return a&&h(g(a))}:function(a){return a&&g(a)}}function b(a,b){var c;return c=a?function(b){return b.getAttribute(a)}:function(a){var c=a.querySelector(b);return c&&l(c)}}return a}();m.sortDataParsers={parseInt:function(a){return parseInt(a,10)},parseFloat:function(a){return parseFloat(a)}},m.prototype._sort=function(){var a=this.options.sortBy;if(a){var b=[].concat.apply(a,this.sortHistory),c=h(b,this.options.sortAscending);this.filteredItems.sort(c),a!=this.sortHistory[0]&&this.sortHistory.unshift(a)}},m.prototype._mode=function(){var a=this.options.layoutMode,b=this.modes[a];if(!b)throw new Error("No layout mode: "+a);return b.options=this.options[a],b},m.prototype._resetLayout=function(){b.prototype._resetLayout.call(this),this._mode()._resetLayout()},m.prototype._getItemLayoutPosition=function(a){return this._mode()._getItemLayoutPosition(a)},m.prototype._manageStamp=function(a){this._mode()._manageStamp(a)},m.prototype._getContainerSize=function(){return this._mode()._getContainerSize()},m.prototype.needsResizeLayout=function(){return this._mode().needsResizeLayout()},m.prototype.appended=function(a){var b=this.addItems(a);if(b.length){var c=this._filterRevealAdded(b);this.filteredItems=this.filteredItems.concat(c)}},m.prototype.prepended=function(a){var b=this._itemize(a);if(b.length){this._resetLayout(),this._manageStamps();var c=this._filterRevealAdded(b);this.layoutItems(this.filteredItems),this.filteredItems=c.concat(this.filteredItems),this.items=b.concat(this.items)}},m.prototype._filterRevealAdded=function(a){var b=this._filter(a);return this.hide(b.needHide),this.reveal(b.matches),this.layoutItems(b.matches,!0),b.matches},m.prototype.insert=function(a){var b=this.addItems(a);if(b.length){var c,d,e=b.length;for(c=0;e>c;c++)d=b[c],this.element.appendChild(d.element);var f=this._filter(b).matches;for(c=0;e>c;c++)b[c].isLayoutInstant=!0;for(this.arrange(),c=0;e>c;c++)delete b[c].isLayoutInstant;this.reveal(f)}};var o=m.prototype.remove;return m.prototype.remove=function(a){a=e.makeArray(a);var b=this.getItems(a);o.call(this,a);var c=b&&b.length;if(c)for(var d=0;c>d;d++){var f=b[d];e.removeFrom(this.filteredItems,f)}},m.prototype.shuffle=function(){for(var a=0,b=this.items.length;b>a;a++){var c=this.items[a];c.sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},m.prototype._noTransition=function(a){var b=this.options.transitionDuration;this.options.transitionDuration=0;var c=a.call(this);return this.options.transitionDuration=b,c},m.prototype.getFilteredItemElements=function(){for(var a=[],b=0,c=this.filteredItems.length;c>b;b++)a.push(this.filteredItems[b].element);return a},m}); - -(function(e,t,n,r){"use strict";var i="cbp",s="."+i;if(typeof Object.create!=="function"){Object.create=function(e){function t(){}t.prototype=e;return new t}}e.expr[":"].uncached=function(t){if(!e(t).is('img[src!=""]')){return false}var n=new Image;n.src=t.src;return!n.complete};var o={init:function(e,t){var n=this,r;n.cubeportfolio=e;n.type=t;n.isOpen=false;n.options=n.cubeportfolio.options;if(t==="singlePageInline"){n.matrice=[-1,-1];n.height=0;n._createMarkupSinglePageInline();return}n._createMarkup();if(n.options.singlePageDeeplinking&&t==="singlePage"){n.url=location.href;if(n.url.slice(-1)=="#"){n.url=n.url.slice(0,-1)}r=n.cubeportfolio.blocksAvailable.find(n.options.singlePageDelegate).filter(function(e){return n.url.split("#cbp=")[1]===this.getAttribute("href")})[0];if(r){n.url=n.url.replace(/#cbp=(.+)/ig,"");n.openSinglePage(n.cubeportfolio.blocksAvailable,r)}}},_createMarkup:function(){var t=this;t.wrap=e("
",{"class":"cbp-popup-wrap cbp-popup-"+t.type,"data-action":t.type==="lightbox"?"close":""}).on("click"+s,function(n){if(t.stopEvents){return}var r=e(n.target).attr("data-action");if(r){t[r]();n.preventDefault()}});t.content=e("
",{"class":"cbp-popup-content"}).appendTo(t.wrap);e("
",{"class":"cbp-popup-loadingBox"}).appendTo(t.wrap);if(t.cubeportfolio.browser==="ie8"){t.bg=e("
",{"class":"cbp-popup-ie8bg","data-action":t.type==="lightbox"?"close":""}).appendTo(t.wrap)}t.navigationWrap=e("
",{"class":"cbp-popup-navigation-wrap"}).appendTo(t.wrap);t.navigation=e("
",{"class":"cbp-popup-navigation"}).appendTo(t.navigationWrap);t.closeButton=e("
')}},_boxShadowFilter:function(e,t,n){var r=this;if(n!=="*"){t=t.filter(n);e=r.blocks.not(".cbp-item-hidden").not(n).addClass("cbp-item-hidden")}t.removeClass("cbp-item-hidden");var i=r.blocks.find(".cbp-animation-boxShadowMask");i.addClass("cbp-animation-boxShadowShow");i.removeClass("cbp-animation-boxShadowActive cbp-animation-boxShadowInactive");r.blocksAvailable=r.blocks.filter(n);var s={};if(e.length){e.find(".cbp-animation-boxShadowMask").addClass("cbp-animation-boxShadowActive");r.styleQueue.push({$el:e,style:{opacity:0}});s=e.last()}if(t.length){t.find(".cbp-animation-boxShadowMask").addClass("cbp-animation-boxShadowInactive");r.styleQueue.push({$el:t,style:{opacity:1}});s=t.last()}r._layout();if(s.length){s.one(r.transitionEnd,function(){i.removeClass("cbp-animation-boxShadowShow");r._filterFinish()})}else{i.removeClass("cbp-animation-boxShadowShow");r._filterFinish()}r._processStyle(r.transitionByFilter);r._resizeMainContainer(r.transition)},_bounceLeftInit:function(){var e=this;e._duplicateContent({left:"-100%",opacity:0});e.transitionByFilter="css";e.$ul.addClass("cbp-wrapper-front")},_bounceLeftFilter:function(e,t,n){var r=this,i,s,o;r.$obj.addClass("cbp-no-transition");if(r.ulHidden==="clone"){r.ulHidden="first";i=r.$ulClone;o=r.$ul;s=r.blocksClone}else{r.ulHidden="clone";i=r.$ul;o=r.$ulClone;s=r.blocks}t=s.filter(".cbp-item-hidden");if(n!=="*"){t=t.filter(n);s.not(".cbp-item-hidden").not(n).addClass("cbp-item-hidden")}t.removeClass("cbp-item-hidden");r.blocksAvailable=s.filter(n);r._layout();o[r.transition]({left:"-100%",opacity:0}).removeClass("cbp-wrapper-front").addClass("cbp-wrapper-back");i[r.transition]({left:0,opacity:1}).addClass("cbp-wrapper-front").removeClass("cbp-wrapper-back");r._processStyle(r.transitionByFilter);r._resizeMainContainer(r.transition);setTimeout(function(){r._filterFinish()},400)},_bounceTopInit:function(){var e=this;e._duplicateContent({top:"-100%",opacity:0});e.transitionByFilter="css";e.$ul.addClass("cbp-wrapper-front")},_bounceTopFilter:function(e,t,n){var r=this,i,s,o;r.$obj.addClass("cbp-no-transition");if(r.ulHidden==="clone"){r.ulHidden="first";i=r.$ulClone;o=r.$ul;s=r.blocksClone}else{r.ulHidden="clone";i=r.$ul;o=r.$ulClone;s=r.blocks}t=s.filter(".cbp-item-hidden");if(n!=="*"){t=t.filter(n);s.not(".cbp-item-hidden").not(n).addClass("cbp-item-hidden")}t.removeClass("cbp-item-hidden");r.blocksAvailable=s.filter(n);r._layout();o[r.transition]({top:"-100%",opacity:0}).removeClass("cbp-wrapper-front").addClass("cbp-wrapper-back");i[r.transition]({top:0,opacity:1}).addClass("cbp-wrapper-front").removeClass("cbp-wrapper-back");r._processStyle(r.transitionByFilter);r._resizeMainContainer(r.transition);setTimeout(function(){r._filterFinish()},400)},_bounceBottomInit:function(){var e=this;e._duplicateContent({top:"100%",opacity:0});e.transitionByFilter="css"},_bounceBottomFilter:function(e,t,n){var r=this,i,s,o;r.$obj.addClass("cbp-no-transition");if(r.ulHidden==="clone"){r.ulHidden="first";i=r.$ulClone;o=r.$ul;s=r.blocksClone}else{r.ulHidden="clone";i=r.$ul;o=r.$ulClone;s=r.blocks}t=s.filter(".cbp-item-hidden");if(n!=="*"){t=t.filter(n);s.not(".cbp-item-hidden").not(n).addClass("cbp-item-hidden")}t.removeClass("cbp-item-hidden");r.blocksAvailable=s.filter(n);r._layout();o[r.transition]({top:"100%",opacity:0}).removeClass("cbp-wrapper-front").addClass("cbp-wrapper-back");i[r.transition]({top:0,opacity:1}).addClass("cbp-wrapper-front").removeClass("cbp-wrapper-back");r._processStyle(r.transitionByFilter);r._resizeMainContainer(r.transition);setTimeout(function(){r._filterFinish()},400)},_moveLeftInit:function(){var e=this;e._duplicateContent({left:"100%",opacity:0});e.$ulClone.addClass("no-trans");e.transitionByFilter="css"},_moveLeftFilter:function(e,t,n){var r=this,i,s,o;if(n!=="*"){t=t.filter(n);e=r.blocks.not(".cbp-item-hidden").not(n).addClass("cbp-item-hidden")}t.removeClass("cbp-item-hidden");r.$obj.addClass("cbp-no-transition");if(r.ulHidden==="clone"){r.ulHidden="first";i=r.$ulClone;o=r.$ul;s=r.blocksClone}else{r.ulHidden="clone";i=r.$ul;o=r.$ulClone;s=r.blocks}s.css("opacity",0);s.addClass("cbp-item-hidden");r.blocksAvailable=s.filter(n);r.blocksAvailable.css("opacity",1);r.blocksAvailable.removeClass("cbp-item-hidden");r._layout();o[r.transition]({left:"-100%",opacity:0});i.removeClass("no-trans");if(r.transition==="css"){i[r.transition]({left:0,opacity:1});o.one(r.transitionEnd,function(){o.addClass("no-trans").css({left:"100%",opacity:0});r._filterFinish()})}else{i[r.transition]({left:0,opacity:1},function(){o.addClass("no-trans").css({left:"100%",opacity:0});r._filterFinish()})}r._processStyle(r.transitionByFilter);r._resizeMainContainer(r.transition)},_slideLeftInit:function(){var e=this;e._duplicateContent({});e.$ul.addClass("cbp-wrapper-front");e.$ulClone.css("opacity",0);e.transitionByFilter="css"},_slideLeftFilter:function(e,t,n){var r=this,i,s,o,u,a,f;r.blocks.show();r.blocksClone.show();if(n!=="*"){t=t.filter(n);e=r.blocks.not(".cbp-item-hidden").not(n).addClass("cbp-item-hidden")}t.removeClass("cbp-item-hidden");r.$obj.addClass("cbp-no-transition");r.blocks.find(".cbp-item-wrapper").removeClass("cbp-animation-slideLeft-out cbp-animation-slideLeft-in");r.blocksClone.find(".cbp-item-wrapper").removeClass("cbp-animation-slideLeft-out cbp-animation-slideLeft-in");r.$ul.css({opacity:1});r.$ulClone.css({opacity:1});if(r.ulHidden==="clone"){r.ulHidden="first";u=r.blocks;a=r.blocksClone;s=r.blocksClone;r.$ul.removeClass("cbp-wrapper-front");r.$ulClone.addClass("cbp-wrapper-front")}else{r.ulHidden="clone";u=r.blocksClone;a=r.blocks;s=r.blocks;r.$ul.addClass("cbp-wrapper-front");r.$ulClone.removeClass("cbp-wrapper-front")}s.css("opacity",0);s.addClass("cbp-item-hidden");r.blocksAvailable=s.filter(n);r.blocksAvailable.css({opacity:1});r.blocksAvailable.removeClass("cbp-item-hidden");r._layout();if(r.transition==="css"){u.find(".cbp-item-wrapper").addClass("cbp-animation-slideLeft-out");a.find(".cbp-item-wrapper").addClass("cbp-animation-slideLeft-in");f=u.find(".cbp-item-wrapper").last();if(f.length){f.one(r.animationEnd,function(){r._filterFinish()})}else{r._filterFinish()}}else{u.find(".cbp-item-wrapper").animate({left:"-100%"},400,function(){r._filterFinish()});a.find(".cbp-item-wrapper").css("left","100%");a.find(".cbp-item-wrapper").animate({left:0},400)}r._processStyle(r.transitionByFilter);r._resizeMainContainer("animate")},_slideDelayInit:function(){this._wrapperFilterInit()},_slideDelayFilter:function(e,t,n){this._wrapperFilter(e,t,n,"slideDelay",true)},_3dflipInit:function(){this._wrapperFilterInit()},_3dflipFilter:function(e,t,n){this._wrapperFilter(e,t,n,"3dflip",true)},_rotateSidesInit:function(){this._wrapperFilterInit()},_rotateSidesFilter:function(e,t,n){this._wrapperFilter(e,t,n,"rotateSides",true)},_flipOutDelayInit:function(){this._wrapperFilterInit()},_flipOutDelayFilter:function(e,t,n){this._wrapperFilter(e,t,n,"flipOutDelay",false)},_foldLeftInit:function(){this._wrapperFilterInit()},_foldLeftFilter:function(e,t,n){this._wrapperFilter(e,t,n,"foldLeft",true)},_unfoldInit:function(){this._wrapperFilterInit()},_unfoldFilter:function(e,t,n){this._wrapperFilter(e,t,n,"unfold",true)},_scaleDownInit:function(){this._wrapperFilterInit()},_scaleDownFilter:function(e,t,n){this._wrapperFilter(e,t,n,"scaleDown",true)},_frontRowInit:function(){this._wrapperFilterInit()},_frontRowFilter:function(e,t,n){this._wrapperFilter(e,t,n,"frontRow",true)},_rotateRoomInit:function(){this._wrapperFilterInit()},_rotateRoomFilter:function(e,t,n){this._wrapperFilter(e,t,n,"rotateRoom",true)},_wrapperFilterInit:function(){var e=this;e._duplicateContent({});e.$ul.addClass("cbp-wrapper-front");e.$ulClone.css("opacity",0);e.transitionByFilter="css"},_wrapperFilter:function(t,n,r,i,s){var o=this,u,a,f,l,c,h;o.blocks.show();o.blocksClone.show();if(r!=="*"){n=n.filter(r);t=o.blocks.not(".cbp-item-hidden").not(r).addClass("cbp-item-hidden")}n.removeClass("cbp-item-hidden");o.$obj.addClass("cbp-no-transition");o.blocks.find(".cbp-item-wrapper").removeClass("cbp-animation-"+i+"-out cbp-animation-"+i+"-in cbp-animation-"+i+"-fadeOut").css("style","");o.blocksClone.find(".cbp-item-wrapper").removeClass("cbp-animation-"+i+"-out cbp-animation-"+i+"-in cbp-animation-"+i+"-fadeOut").css("style","");o.$ul.css({opacity:1});o.$ulClone.css({opacity:1});if(o.ulHidden==="clone"){o.ulHidden="first";l=o.blocks;c=o.blocksClone;a=o.blocksClone;o.$ul.removeClass("cbp-wrapper-front");o.$ulClone.addClass("cbp-wrapper-front")}else{o.ulHidden="clone";l=o.blocksClone;c=o.blocks;a=o.blocks;o.$ul.addClass("cbp-wrapper-front");o.$ulClone.removeClass("cbp-wrapper-front")}l=o.blocksAvailable;a.css("opacity",0);a.addClass("cbp-item-hidden");o.blocksAvailable=a.filter(r);o.blocksAvailable.css({opacity:1});o.blocksAvailable.removeClass("cbp-item-hidden");c=o.blocksAvailable;o._layout();if(o.transition==="css"){var p=0,d=0;c.each(function(t,n){e(n).find(".cbp-item-wrapper").addClass("cbp-animation-"+i+"-in").css("animation-delay",d/20+"s");d++});l.each(function(t,n){if(d<=p&&s){e(n).find(".cbp-item-wrapper").addClass("cbp-animation-"+i+"-fadeOut")}else{e(n).find(".cbp-item-wrapper").addClass("cbp-animation-"+i+"-out").css("animation-delay",p/20+"s")}p++});h=l.find(".cbp-item-wrapper").first();if(h.length){h.one(o.animationEnd,function(){o._filterFinish()})}else{o._filterFinish()}}else{l.find(".cbp-item-wrapper").animate({left:"-100%"},400,function(){o._filterFinish()});c.find(".cbp-item-wrapper").css("left","100%");c.find(".cbp-item-wrapper").animate({left:0},400)}o._processStyle(o.transitionByFilter);o._resizeMainContainer("animate")},_filterFinish:function(){var e=this;e.isAnimating=false;e._triggerEvent("filterFinish");e.$obj.trigger("filterComplete")},_registerEvent:function(e,t,n){var r=this;if(!r.registeredEvents[e]){r.registeredEvents[e]=[];r.registeredEvents.push(e)}r.registeredEvents[e].push({func:t,oneTime:n||false})},_triggerEvent:function(e){var t=this;if(t.registeredEvents[e]){for(var n=t.registeredEvents[e].length-1;n>=0;n--){t.registeredEvents[e][n].func.call(t);if(t.registeredEvents[e][n].oneTime){t.registeredEvents[e].splice(n,1)}}}},init:function(t,n){var r=e.data(this,"cubeportfolio");if(r){throw new Error("cubeportfolio is already initialized. Please destroy it before initialize again!")}r=e.data(this,"cubeportfolio",Object.create(u));r._main(this,t,n)},destroy:function(n){var r=e.data(this,"cubeportfolio");if(!r){throw new Error("cubeportfolio is not initialized. Please initialize before calling destroy method!")}if(e.isFunction(n)){r._registerEvent("destroyFinish",n,true)}e.removeData(this,"cubeportfolio");e.each(r.blocks,function(t,n){e.removeData(this,"transformFn");e.removeData(this,"cbp-wxh")});r.$obj.removeClass("cbp cbp-loading cbp-ready cbp-no-transition");r.$ul.removeClass("cbp-wrapper-front cbp-wrapper-back cbp-wrapper no-trans").removeAttr("style");r.$obj.removeAttr("style");if(r.$ulClone){r.$ulClone.remove()}if(r.browser){r.$obj.removeClass("cbp-"+r.browser)}e(t).off("resize"+s);if(r.lightbox){r.lightbox.destroy()}if(r.singlePage){r.singlePage.destroy()}if(r.singlePageInline){r.singlePageInline.destroy()}r.blocks.removeClass("cbp-item-hidden").removeAttr("style");r.blocks.find(".cbp-item-wrapper").children().unwrap();if(r.options.caption){r._captionDestroy()}if(r.options.animationType){if(r.options.animationType==="boxShadow"){e(".cbp-animation-boxShadowMask").remove()}r.$obj.removeClass("cbp-animation-"+r.options.animationType)}r._triggerEvent("destroyFinish")},filter:function(t,n){var r=e.data(this,"cubeportfolio"),i,s;if(!r){throw new Error("cubeportfolio is not initialized. Please initialize before calling filter method!")}t=t==="*"||t===""?"*":t;if(r.isAnimating||r.defaultFilter==t){return}if(r.browser==="ie8"||r.browser==="ie9"){r.$obj.removeClass("cbp-no-transition cbp-appendItems-loading")}else{r.obj.classList.remove("cbp-no-transition");r.obj.classList.remove("cbp-appendItems-loading")}r.defaultFilter=t;r.isAnimating=true;if(e.isFunction(n)){r._registerEvent("filterFinish",n,true)}i=r.blocks.filter(".cbp-item-hidden");s=[];if(r.singlePageInline&&r.singlePageInline.isOpen){r.singlePageInline.close("promise",{callback:function(){r["_"+r.options.animationType+"Filter"](s,i,t)}})}else{r["_"+r.options.animationType+"Filter"](s,i,t)}},showCounter:function(t){var n=e.data(this,"cubeportfolio");if(!n){throw new Error("cubeportfolio is not initialized. Please initialize before calling showCounter method!")}n.elems=t;e.each(t,function(t,r){var i=e(this),s=i.data("filter"),o=0;s=s==="*"||s===""?"*":s;o=n.blocks.filter(s).length;i.find(".cbp-filter-counter").text(o)})},appendItems:function(t,n){var r=this,i=e.data(r,"cubeportfolio"),s,o,a,f;if(!i){throw new Error("cubeportfolio is not initialized. Please initialize before calling appendItems method!")}if(i.singlePageInline&&i.singlePageInline.isOpen){i.singlePageInline.close("promise",{callback:function(){u._addItems.call(r,t,n)}})}else{u._addItems.call(r,t,n)}},_addItems:function(t,n){var r=e.data(this,"cubeportfolio"),i,s,o,a;if(e.isFunction(n)){r._registerEvent("appendItemsFinish",n,true)}r.$obj.addClass("cbp-no-transition cbp-appendItems-loading");t=e(t).css("opacity",0);t.filter(".cbp-item").wrapInner('
');a=t.filter(r.defaultFilter);if(r.ulHidden){if(r.ulHidden==="first"){t.appendTo(r.$ulClone);r.blocksClone=r.$ulClone.children();s=r.blocksClone;o=t.clone();o.appendTo(r.$ul);r.blocks=r.$ul.children()}else{t.appendTo(r.$ul);r.blocks=r.$ul.children();s=r.blocks;o=t.clone();o.appendTo(r.$ulClone);r.blocksClone=r.$ulClone.children()}}else{t.appendTo(r.$ul);r.blocks=r.$ul.children();s=r.blocks}if(r.options.caption){r._captionDestroy();r._captionInit()}i=r.defaultFilter;r.blocksAvailable=s.filter(i);s.not(".cbp-item-hidden").not(i).addClass("cbp-item-hidden");if(r.options.gridAdjustment==="responsive"){r._responsiveLayout()}r._layout();r._processStyle(r.transitionByFilter);r._resizeMainContainer("animate");a.animate({opacity:1},800,function(){switch(r.options.animationType){case"bounceLeft":case"bounceTop":case"bounceBottom":r.blocks.css("opacity",1);r.blocksClone.css("opacity",1);break}});if(r.elems){u.showCounter.call(this,r.elems)}setTimeout(function(){r._triggerEvent("appendItemsFinish")},900)}};e.fn.cubeportfolio=function(e){var t=arguments;return this.each(function(){if(u[e]){return u[e].apply(this,Array.prototype.slice.call(t,1))}else if(typeof e==="object"||!e){return u.init.apply(this,t)}else{throw new Error("Method "+e+" does not exist on jQuery.cubeportfolio.js")}})};e.fn.cubeportfolio.options={animationType:"fadeOut",gridAdjustment:"default",gapHorizontal:10,gapVertical:10,caption:"pushTop",displayType:"default",displayTypeSpeed:400,lightboxDelegate:".cbp-lightbox",lightboxGallery:true,lightboxTitleSrc:"data-title",lightboxShowCounter:true,singlePageDelegate:".cbp-singlePage",singlePageDeeplinking:true,singlePageStickyNavigation:true,singlePageShowCounter:true,singlePageCallback:function(e,t){},singlePageInlineDelegate:".cbp-singlePageInline",singlePageInlinePosition:"top",singlePageInlineCallback:function(e,t){}}})(jQuery,window,document); -(function(){var a,b,c,d,e,f=function(a,b){return function(){return a.apply(b,arguments)}},g=[].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1};b=function(){function a(){}return a.prototype.extend=function(a,b){var c,d;for(c in b)d=b[c],null==a[c]&&(a[c]=d);return a},a.prototype.isMobile=function(a){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)},a.prototype.createEvent=function(a,b,c,d){var e;return null==b&&(b=!1),null==c&&(c=!1),null==d&&(d=null),null!=document.createEvent?(e=document.createEvent("CustomEvent"),e.initCustomEvent(a,b,c,d)):null!=document.createEventObject?(e=document.createEventObject(),e.eventType=a):e.eventName=a,e},a.prototype.emitEvent=function(a,b){return null!=a.dispatchEvent?a.dispatchEvent(b):b in(null!=a)?a[b]():"on"+b in(null!=a)?a["on"+b]():void 0},a.prototype.addEvent=function(a,b,c){return null!=a.addEventListener?a.addEventListener(b,c,!1):null!=a.attachEvent?a.attachEvent("on"+b,c):a[b]=c},a.prototype.removeEvent=function(a,b,c){return null!=a.removeEventListener?a.removeEventListener(b,c,!1):null!=a.detachEvent?a.detachEvent("on"+b,c):delete a[b]},a.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},a}(),c=this.WeakMap||this.MozWeakMap||(c=function(){function a(){this.keys=[],this.values=[]}return a.prototype.get=function(a){var b,c,d,e,f;for(f=this.keys,b=d=0,e=f.length;e>d;b=++d)if(c=f[b],c===a)return this.values[b]},a.prototype.set=function(a,b){var c,d,e,f,g;for(g=this.keys,c=e=0,f=g.length;f>e;c=++e)if(d=g[c],d===a)return void(this.values[c]=b);return this.keys.push(a),this.values.push(b)},a}()),a=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(a=function(){function a(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return a.notSupported=!0,a.prototype.observe=function(){},a}()),d=this.getComputedStyle||function(a){return this.getPropertyValue=function(b){var c;return"float"===b&&(b="styleFloat"),e.test(b)&&b.replace(e,function(a,b){return b.toUpperCase()}),(null!=(c=a.currentStyle)?c[b]:void 0)||null},this},e=/(\-([a-z]){1})/g,this.WOW=function(){function e(a){null==a&&(a={}),this.scrollCallback=f(this.scrollCallback,this),this.scrollHandler=f(this.scrollHandler,this),this.resetAnimation=f(this.resetAnimation,this),this.start=f(this.start,this),this.scrolled=!0,this.config=this.util().extend(a,this.defaults),this.animationNameCache=new c,this.wowEvent=this.util().createEvent(this.config.boxClass)}return e.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null},e.prototype.init=function(){var a;return this.element=window.document.documentElement,"interactive"===(a=document.readyState)||"complete"===a?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},e.prototype.start=function(){var b,c,d,e;if(this.stopped=!1,this.boxes=function(){var a,c,d,e;for(d=this.element.querySelectorAll("."+this.config.boxClass),e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.all=function(){var a,c,d,e;for(d=this.boxes,e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else for(e=this.boxes,c=0,d=e.length;d>c;c++)b=e[c],this.applyStyle(b,!0);return this.disabled()||(this.util().addEvent(window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live?new a(function(a){return function(b){var c,d,e,f,g;for(g=[],c=0,d=b.length;d>c;c++)f=b[c],g.push(function(){var a,b,c,d;for(c=f.addedNodes||[],d=[],a=0,b=c.length;b>a;a++)e=c[a],d.push(this.doSync(e));return d}.call(a));return g}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},e.prototype.stop=function(){return this.stopped=!0,this.util().removeEvent(window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval?clearInterval(this.interval):void 0},e.prototype.sync=function(){return a.notSupported?this.doSync(this.element):void 0},e.prototype.doSync=function(a){var b,c,d,e,f;if(null==a&&(a=this.element),1===a.nodeType){for(a=a.parentNode||a,e=a.querySelectorAll("."+this.config.boxClass),f=[],c=0,d=e.length;d>c;c++)b=e[c],g.call(this.all,b)<0?(this.boxes.push(b),this.all.push(b),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(b,!0),f.push(this.scrolled=!0)):f.push(void 0);return f}},e.prototype.show=function(a){return this.applyStyle(a),a.className=a.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(a),this.util().emitEvent(a,this.wowEvent),this.util().addEvent(a,"animationend",this.resetAnimation),this.util().addEvent(a,"oanimationend",this.resetAnimation),this.util().addEvent(a,"webkitAnimationEnd",this.resetAnimation),this.util().addEvent(a,"MSAnimationEnd",this.resetAnimation),a},e.prototype.applyStyle=function(a,b){var c,d,e;return d=a.getAttribute("data-wow-duration"),c=a.getAttribute("data-wow-delay"),e=a.getAttribute("data-wow-iteration"),this.animate(function(f){return function(){return f.customStyle(a,b,d,c,e)}}(this))},e.prototype.animate=function(){return"requestAnimationFrame"in window?function(a){return window.requestAnimationFrame(a)}:function(a){return a()}}(),e.prototype.resetStyle=function(){var a,b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],e.push(a.style.visibility="visible");return e},e.prototype.resetAnimation=function(a){var b;return a.type.toLowerCase().indexOf("animationend")>=0?(b=a.target||a.srcElement,b.className=b.className.replace(this.config.animateClass,"").trim()):void 0},e.prototype.customStyle=function(a,b,c,d,e){return b&&this.cacheAnimationName(a),a.style.visibility=b?"hidden":"visible",c&&this.vendorSet(a.style,{animationDuration:c}),d&&this.vendorSet(a.style,{animationDelay:d}),e&&this.vendorSet(a.style,{animationIterationCount:e}),this.vendorSet(a.style,{animationName:b?"none":this.cachedAnimationName(a)}),a},e.prototype.vendors=["moz","webkit"],e.prototype.vendorSet=function(a,b){var c,d,e,f;d=[];for(c in b)e=b[c],a[""+c]=e,d.push(function(){var b,d,g,h;for(g=this.vendors,h=[],b=0,d=g.length;d>b;b++)f=g[b],h.push(a[""+f+c.charAt(0).toUpperCase()+c.substr(1)]=e);return h}.call(this));return d},e.prototype.vendorCSS=function(a,b){var c,e,f,g,h,i;for(h=d(a),g=h.getPropertyCSSValue(b),f=this.vendors,c=0,e=f.length;e>c;c++)i=f[c],g=g||h.getPropertyCSSValue("-"+i+"-"+b);return g},e.prototype.animationName=function(a){var b;try{b=this.vendorCSS(a,"animation-name").cssText}catch(c){b=d(a).getPropertyValue("animation-name")}return"none"===b?"":b},e.prototype.cacheAnimationName=function(a){return this.animationNameCache.set(a,this.animationName(a))},e.prototype.cachedAnimationName=function(a){return this.animationNameCache.get(a)},e.prototype.scrollHandler=function(){return this.scrolled=!0},e.prototype.scrollCallback=function(){var a;return!this.scrolled||(this.scrolled=!1,this.boxes=function(){var b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],a&&(this.isVisible(a)?this.show(a):e.push(a));return e}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},e.prototype.offsetTop=function(a){for(var b;void 0===a.offsetTop;)a=a.parentNode;for(b=a.offsetTop;a=a.offsetParent;)b+=a.offsetTop;return b},e.prototype.isVisible=function(a){var b,c,d,e,f;return c=a.getAttribute("data-wow-offset")||this.config.offset,f=window.pageYOffset,e=f+Math.min(this.element.clientHeight,this.util().innerHeight())-c,d=this.offsetTop(a),b=d+a.clientHeight,e>=d&&b>=f},e.prototype.util=function(){return null!=this._util?this._util:this._util=new b},e.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},e}()}).call(this); - -(function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)})(function(t){function e(t){return t.replace(/(:|\.|\/)/g,"\\$1")}var l="1.5.4",o={},n={exclude:[],excludeWithin:[],offset:0,direction:"top",scrollElement:null,scrollTarget:null,beforeScroll:function(){},afterScroll:function(){},easing:"swing",speed:400,autoCoefficient:2,preventDefault:!0},s=function(e){var l=[],o=!1,n=e.dir&&"left"===e.dir?"scrollLeft":"scrollTop";return this.each(function(){if(this!==document&&this!==window){var e=t(this);e[n]()>0?l.push(this):(e[n](1),o=e[n]()>0,o&&l.push(this),e[n](0))}}),l.length||this.each(function(){"BODY"===this.nodeName&&(l=[this])}),"first"===e.el&&l.length>1&&(l=[l[0]]),l};t.fn.extend({scrollable:function(t){var e=s.call(this,{dir:t});return this.pushStack(e)},firstScrollable:function(t){var e=s.call(this,{el:"first",dir:t});return this.pushStack(e)},smoothScroll:function(l,o){if(l=l||{},"options"===l)return o?this.each(function(){var e=t(this),l=t.extend(e.data("ssOpts")||{},o);t(this).data("ssOpts",l)}):this.first().data("ssOpts");var n=t.extend({},t.fn.smoothScroll.defaults,l),s=t.smoothScroll.filterPath(location.pathname);return this.unbind("click.smoothscroll").bind("click.smoothscroll",function(l){var o=this,r=t(this),i=t.extend({},n,r.data("ssOpts")||{}),c=n.exclude,a=i.excludeWithin,f=0,h=0,u=!0,d={},p=location.hostname===o.hostname||!o.hostname,m=i.scrollTarget||t.smoothScroll.filterPath(o.pathname)===s,S=e(o.hash);if(i.scrollTarget||p&&m&&S){for(;u&&c.length>f;)r.is(e(c[f++]))&&(u=!1);for(;u&&a.length>h;)r.closest(a[h++]).length&&(u=!1)}else u=!1;u&&(i.preventDefault&&l.preventDefault(),t.extend(d,i,{scrollTarget:i.scrollTarget||S,link:o}),t.smoothScroll(d))}),this}}),t.smoothScroll=function(e,l){if("options"===e&&"object"==typeof l)return t.extend(o,l);var n,s,r,i,c,a=0,f="offset",h="scrollTop",u={},d={};"number"==typeof e?(n=t.extend({link:null},t.fn.smoothScroll.defaults,o),r=e):(n=t.extend({link:null},t.fn.smoothScroll.defaults,e||{},o),n.scrollElement&&(f="position","static"===n.scrollElement.css("position")&&n.scrollElement.css("position","relative"))),h="left"===n.direction?"scrollLeft":h,n.scrollElement?(s=n.scrollElement,/^(?:HTML|BODY)$/.test(s[0].nodeName)||(a=s[h]())):s=t("html, body").firstScrollable(n.direction),n.beforeScroll.call(s,n),r="number"==typeof e?e:l||t(n.scrollTarget)[f]()&&t(n.scrollTarget)[f]()[n.direction]||0,u[h]=r+a+n.offset,i=n.speed,"auto"===i&&(c=u[h]-s.scrollTop(),0>c&&(c*=-1),i=c/n.autoCoefficient),d={duration:i,easing:n.easing,complete:function(){n.afterScroll.call(n.link,n)}},n.step&&(d.step=n.step),s.length?s.stop().animate(u,d):n.afterScroll.call(n.link,n)},t.smoothScroll.version=l,t.smoothScroll.filterPath=function(t){return t=t||"",t.replace(/^\//,"").replace(/(?:index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")},t.fn.smoothScroll.defaults=n}); - -!function(a){function f(a,b){if(!(a.originalEvent.touches.length>1)){a.preventDefault();var c=a.originalEvent.changedTouches[0],d=document.createEvent("MouseEvents");d.initMouseEvent(b,!0,!0,window,1,c.screenX,c.screenY,c.clientX,c.clientY,!1,!1,!1,!1,0,null),a.target.dispatchEvent(d)}}if(a.support.touch="ontouchend"in document,a.support.touch){var e,b=a.ui.mouse.prototype,c=b._mouseInit,d=b._mouseDestroy;b._touchStart=function(a){var b=this;!e&&b._mouseCapture(a.originalEvent.changedTouches[0])&&(e=!0,b._touchMoved=!1,f(a,"mouseover"),f(a,"mousemove"),f(a,"mousedown"))},b._touchMove=function(a){e&&(this._touchMoved=!0,f(a,"mousemove"))},b._touchEnd=function(a){e&&(f(a,"mouseup"),f(a,"mouseout"),this._touchMoved||f(a,"click"),e=!1)},b._mouseInit=function(){var b=this;b.element.bind({touchstart:a.proxy(b,"_touchStart"),touchmove:a.proxy(b,"_touchMove"),touchend:a.proxy(b,"_touchEnd")}),c.call(b)},b._mouseDestroy=function(){var b=this;b.element.unbind({touchstart:a.proxy(b,"_touchStart"),touchmove:a.proxy(b,"_touchMove"),touchend:a.proxy(b,"_touchEnd")}),d.call(b)}}}(jQuery); -(function($,window){'$:nomunge';var undefined,aps=Array.prototype.slice,decode=decodeURIComponent,jq_param=$.param,jq_param_fragment,jq_deparam,jq_deparam_fragment,jq_bbq=$.bbq=$.bbq||{},jq_bbq_pushState,jq_bbq_getState,jq_elemUrlAttr,jq_event_special=$.event.special,str_hashchange='hashchange',str_querystring='querystring',str_fragment='fragment',str_elemUrlAttr='elemUrlAttr',str_location='location',str_href='href',str_src='src',re_trim_querystring=/^.*\?|#.*$/g,re_trim_fragment=/^.*\#/,re_no_escape,elemUrlAttr_cache={};function is_string(arg){return typeof arg==='string';};function curry(func){var args=aps.call(arguments,1);return function(){return func.apply(this,args.concat(aps.call(arguments)));};};function get_fragment(url){return url.replace(/^[^#]*#?(.*)$/,'$1');};function get_querystring(url){return url.replace(/(?:^[^?#]*\?([^#]*).*$)?.*/,'$1');};function jq_param_sub(is_fragment,get_func,url,params,merge_mode){var result,qs,matches,url_params,hash;if(params!==undefined){matches=url.match(is_fragment?/^([^#]*)\#?(.*)$/:/^([^#?]*)\??([^#]*)(#?.*)/);hash=matches[3]||'';if(merge_mode===2&&is_string(params)){qs=params.replace(is_fragment?re_trim_fragment:re_trim_querystring,'');}else{url_params=jq_deparam(matches[2]);params=is_string(params)?jq_deparam[is_fragment?str_fragment:str_querystring](params):params;qs=merge_mode===2?params:merge_mode===1?$.extend({},params,url_params):$.extend({},url_params,params);qs=jq_param(qs);if(is_fragment){qs=qs.replace(re_no_escape,decode);}}result=matches[1]+(is_fragment?'#':qs||!matches[1]?'?':'')+qs+hash;}else{result=get_func(url!==undefined?url:window[str_location][str_href]);}return result;};jq_param[str_querystring]=curry(jq_param_sub,0,get_querystring);jq_param[str_fragment]=jq_param_fragment=curry(jq_param_sub,1,get_fragment);jq_param_fragment.noEscape=function(chars){chars=chars||'';var arr=$.map(chars.split(''),encodeURIComponent);re_no_escape=new RegExp(arr.join('|'),'g');};jq_param_fragment.noEscape(',/');$.deparam=jq_deparam=function(params,coerce){var obj={},coerce_types={'true':!0,'false':!1,'null':null};$.each(params.replace(/\+/g,' ').split('&'),function(j,v){var param=v.split('='),key=decode(param[0]),val,cur=obj,i=0,keys=key.split(']['),keys_last=keys.length-1;if(/\[/.test(keys[0])&&/\]$/.test(keys[keys_last])){keys[keys_last]=keys[keys_last].replace(/\]$/,'');keys=keys.shift().split('[').concat(keys);keys_last=keys.length-1;}else{keys_last=0;}if(param.length===2){val=decode(param[1]);if(coerce){val=val&&!isNaN(val)?+val:val==='undefined'?undefined:coerce_types[val]!==undefined?coerce_types[val]:val;}if(keys_last){for(;i<=keys_last;i++){key=keys[i]===''?cur.length:keys[i];cur=cur[key]=i').hide().insertAfter('body')[0].contentWindow;get_history=function(){return get_fragment(iframe.document[str_location][str_href]);};set_history=function(hash,history_hash){if(hash!==history_hash){var doc=iframe.document;doc.open().close();doc[str_location].hash='#'+hash;}};set_history(get_fragment());}};self.start=function(){if(timeout_id){return;}var last_hash=get_fragment();set_history||init();(function loopy(){var hash=get_fragment(),history_hash=get_history(last_hash);if(hash!==last_hash){set_history(last_hash=hash,history_hash);$(window).trigger(str_hashchange);}else if(history_hash!==last_hash){window[str_location][str_href]=window[str_location][str_href].replace(/#.*/,'')+'#'+history_hash;}timeout_id=setTimeout(loopy,$[str_hashchange+'Delay']);})();};self.stop=function(){if(!iframe){timeout_id&&clearTimeout(timeout_id);timeout_id=0;}};return self;})();})(jQuery,this); -window.$body=$('body');window.$window=$(window);window.WAITING=0;window.READY=1;window.BEGUN=2;window.BREAK_SMALL=640;window.BREAK_MEDIUM=1024;window.THEME_URL='';window.BASE_URL='/cache.php?request=';window.NO_CACHE_BASE_URL='';var init_root;init_root=function($scope,$rootScope){var _all_finished_triggered,_all_images_loaded,_all_requests_finished,all_finished,all_requests_finished,execute_lazy_load,outstanding_requests,scheduled_to_load,watch_all_finished,watch_request_finished,watch_requests_finished,watch_window_load,watch_window_resize,watch_window_scroll;$rootScope.lazy_load_state=WAITING;$rootScope.theme_url=THEME_URL;scheduled_to_load=[];outstanding_requests=0;watch_request_finished={};watch_requests_finished=[];watch_all_finished=[];_all_requests_finished=true;_all_images_loaded=true;_all_finished_triggered=false;watch_window_resize=[];watch_window_load=[];watch_window_scroll=[];$rootScope.window_properties={};$rootScope.schedule_lazy_load=function(callback){_all_images_loaded=false;scheduled_to_load.push(callback);if($rootScope.lazy_load_state===READY){return execute_lazy_load();}};execute_lazy_load=function(){var callback;callback=scheduled_to_load.shift();if(callback){$rootScope.lazy_load_state=BEGUN;return callback(function(){return execute_lazy_load();});}else{$rootScope.lazy_load_state=READY;_all_images_loaded=true;return all_finished();}};$rootScope.clear_lazy_load=function(){scheduled_to_load=[];return $rootScope.lazy_load_state=READY;};$rootScope.on_window_load=function(callback){if($rootScope.loaded){return callback();}else{return watch_window_load.push(callback);}};$rootScope.on_window_scroll=function(callback,trigger_immediately){watch_window_scroll.push(callback);if(trigger_immediately){return callback();}};$rootScope.on_window_resize=function(callback,trigger_immediately){watch_window_resize.push(callback);if(trigger_immediately){return callback();}};$rootScope.on_request_finished=function(request_path,callback){return watch_request_finished[request_path]=callback;};$rootScope.on_requests_finished=function(callback){_all_requests_finished=false;return watch_requests_finished.push(callback);};$rootScope.on_all_finished=function(callback){return watch_all_finished.push(callback);};all_requests_finished=function(){angular.forEach(watch_requests_finished,function(callback){return callback();});_all_requests_finished=true;return all_finished();};all_finished=function(){if(_all_finished_triggered){return;}if(_all_requests_finished&&_all_images_loaded){_all_finished_triggered=true;return angular.forEach(watch_all_finished,function(callback){return callback();});}};$rootScope.on_window_resize(function(){var mobile;mobile=$rootScope.window_properties.width');timeout=null;loaded=function(){clearTimeout(timeout);element.css('background-image','url("'+url+'")');setTimeout(function(){element.addClass('loaded');return element.trigger('loaded');},parseInt(attrs.lazyDelay)||0);image.unbind('load');image.remove();return done();};timeout=setTimeout(loaded,1000);image.load(loaded);return image.attr('src',url);});}};});SimpleHelpers.directive("lazyImage",function($rootScope){return{restrict:"A",link:function(scope,element,attrs){return $rootScope.schedule_lazy_load(function(done){var loaded,timeout,url;url=attrs.lazyImage;timeout=null;loaded=function(e){clearTimeout(timeout);element.attr('src',url);element.addClass('loaded');element.unbind('load');element.trigger('loaded');return done();};element.load(loaded);return element.attr('src',url);});}};});SimpleHelpers.directive("matchWindowHeight",function($rootScope){return{restrict:"A",link:function(scope,element,attrs){var match_height,mobile_offset,normal_offset,offsets,only_once,ref;only_once=(ref=attrs.matchOnlyOnce!==void 0)!=null?ref:{"true":false};if(attrs.matchWindowHeight.match(/^-?[0-9|-]+$/)){offsets=attrs.matchWindowHeight.split('|');normal_offset=parseInt(offsets[0]);if(offsets[1]){mobile_offset=parseInt(offsets[1]);}}else{normal_offset=-$(attrs.matchWindowHeight).height();}match_height=function(window_properties){var offset;if($rootScope.mobile&&mobile_offset){offset=mobile_offset;}else{offset=normal_offset;}return element.css('height',window_properties.height+offset);};if(only_once){return match_height($rootScope.window_properties);}else{return $rootScope.$watch('window_properties',function(new_value,old_value){return match_height(new_value);},true);}}};});SimpleHelpers.directive("centerHorizontally",function($rootScope,$timeout){return{restrict:"A",link:function(scope,element,attrs){var set_margin;set_margin=function(){if(!$rootScope.window_properties.width){return;}if(element.width()>$rootScope.window_properties.width){return element.css('margin-left',-(element.width()-$rootScope.window_properties.width)/2);}else{return element.css('margin-left',-element.width()/2);}};$rootScope.on_window_resize(set_margin);return $timeout(set_margin);}};});SimpleHelpers.directive("centerVertically",function($rootScope,$timeout){return{restrict:"A",link:function(scope,element,attrs){var set_margin;set_margin=function(){return element.css('marginTop',-element.height()/2);};element.addClass('center-vertically');$rootScope.on_window_resize(set_margin);return $timeout(set_margin);}};});SimpleHelpers.directive("parallax",function($rootScope){return{restrict:"A",link:function(scope,element,attrs){var base,scroll_element,travel,wh;if(!$rootScope.mobile){travel=parseInt(attrs.parallax);base=parseInt(attrs.parallaxBase);scroll_element=element;if(attrs.parallaxContainer){scroll_element=$(attrs.parallaxContainer);}wh=$rootScope.window_properties.height;return $rootScope.on_window_scroll(function(){var current_travel,option,parallax_end,parallax_percent,parallax_start;parallax_start=Math.max(scroll_element.offset().top-wh,0);parallax_end=parallax_start+wh+scroll_element.height();parallax_percent=Math.max($window.scrollTop()-parallax_start,0)/parallax_end;current_travel=base+(travel*parallax_percent-travel/2);option=current_travel+'px';return element.css('top',option);});}}};});SimpleHelpers.directive("onLoaded",function($rootScope){return{restrict:"A",link:function(scope,element,attrs){return element.on('loaded',function(){return json_action(eval('('+attrs.onLoaded+')'),element);});}};});SimpleHelpers.directive("onOtherLoaded",function($rootScope){return{restrict:"A",link:function(scope,element,attrs){return $(attrs.onOtherLoadedSelector).on('loaded',function(){return json_action(eval('('+attrs.onOtherLoaded+')'),element);});}};});SimpleHelpers.directive("onWindowLoad",function($rootScope){return{restrict:"A",link:function(scope,element,attrs){return $rootScope.on_window_load(function(){return json_action(eval('('+attrs.onWindowLoad+')'),element);});}};});SimpleHelpers.directive("onRequestFinished",function($rootScope){return{restrict:"A",link:function(scope,element,attrs){return $rootScope.on_request_finished(attrs.onRequestFinished,function(){return json_action(eval('('+attrs.onRequestFinishedAction+')'),element);});}};});SimpleHelpers.directive("onRequestsFinished",function($rootScope){return{restrict:"A",link:function(scope,element,attrs){return $rootScope.on_requests_finished(function(){return json_action(eval('('+attrs.onRequestsFinished+')'),element);});}};});SimpleHelpers.directive("onAllFinished",function($rootScope){return{restrict:"A",link:function(scope,element,attrs){return $rootScope.on_all_finished(function(){return json_action(eval('('+attrs.onAllFinished+')'),element);});}};});SimpleHelpers.directive("onVisible",function($rootScope){return{restrict:"A",link:function(scope,element,attrs){return setTimeout(function(){var becomes_visible,offset,on_scroll,wh;if(attrs.onVisibleOffset){if(attrs.onVisibleOffset.indexOf('%')>-1){offset=$window.height()*(parseInt(attrs.onVisibleOffset)/100);}else{offset=parseInt(attrs.onVisibleOffset);}}offset=offset||0;wh=$rootScope.window_properties.height;becomes_visible=element.offset().top-wh+offset;on_scroll=function(){if($window.scrollTop()>becomes_visible){json_action(eval('('+attrs.onVisible+')'),element);return $window.unbind('scroll',on_scroll);}};$window.scroll(on_scroll);return $window.trigger('scroll');},100);}};});SimpleHelpers.directive("loadBlock",function($rootScope,$location){return{restrict:"AE",link:function(scope,element,attrs){var menu_path;menu_path=attrs.menuPath||'';if(!menu_path&&attrs.includePath){menu_path=$location.path();}return $rootScope.request(BASE_URL,'/load/blocks/'+attrs.loadBlock,menu_path,function(response){element.html(response);return element.trigger('loaded');});}};});SimpleHelpers.directive("loadJson",function($rootScope){return{restrict:"AE",link:function(scope,element,attrs){return $rootScope.request(BASE_URL,attrs.loadJson,'',function(response){scope.data=JSON.parse(response);scope.$apply();return element.trigger('loaded');});},template:function(tElement,tAttrs){return tElement.html();}};});SimpleHelpers.directive("loadBlockRegion",function($rootScope,$compile,$location){return{restrict:"AE",link:function(scope,element,attrs){var menu_path;menu_path=attrs.menuPath||'';if(!menu_path&&attrs.includePath){menu_path=$location.path();}return $rootScope.request(BASE_URL,'/load/block_region/'+attrs.loadBlockRegion,menu_path,function(response){var template;template=$(response);element.append(template);$compile(template)(scope);element.trigger('loaded');if(attrs.jsScrollbar!==void 0){if(!$rootScope.mobile){return element.parent().nanoScroller({preventPageScrolling:true});}}});}};});SimpleHelpers.directive("loadHtml",function($rootScope,$compile){return{restrict:"AE",link:function(scope,element,attrs){return $rootScope.request(BASE_URL,attrs.loadHtml,false,function(response){var template;template=$(response);element.append(template);$compile(template)(scope);return element.trigger('loaded');});}};});SimpleHelpers.directive("prependTo",function(){return{restrict:"A",link:function(scope,element,attrs){return element.prependTo(attrs.prependTo);}};});SimpleHelpers.filter('classify',function(){return function(input){if(input){return input.toLowerCase().replace(/[^a-z]+/g,'_');}return'';};});SimpleHelpers.directive("portraitOrLandscape",function($rootScope){return{restrict:"A",link:function(scope,element,attrs){var detect,only_once,ref;only_once=(ref=attrs.setOnlyOnce!==void 0)!=null?ref:{"true":false};detect=function(){if($window.height()>$window.width()){element.addClass('portrait');return element.removeClass('landscape');}else{element.addClass('landscape');return element.removeClass('portrait');}};if(only_once){detect($rootScope.window_properties);}else{$rootScope.on_window_resize=function(){return detect();};}return detect();}};});SimpleHelpers.directive("activeTrail",function($location){return{restrict:"A",link:function(scope,element,attrs){var links,set_active_trail;links=element.find('a');set_active_trail=function(){return angular.forEach(links,function(link){var uri;link=$(link);uri=URI();if(link.attr('href')===uri.path()){return link.addClass('active');}else{return link.removeClass('active');}});};set_active_trail();return scope.$on('$routeChangeSuccess',function(current){return set_active_trail();});}};});SimpleHelpers.directive("cycleChildren",function(){return{restrict:"A",link:function(scope,element,attrs){var autoPlay,children,cycleNav,i,navButtons,showSlide,timeout;autoPlay=parseInt(attrs.autoPlay);children=element.find('> *');timeout=null;i=0;if(children.length>1){cycleNav=$('
    ');angular.forEach(children,function(){return cycleNav.append('
  • ');});cycleNav.appendTo(element);cycleNav.on('click','li',function(){return showSlide($(this).index());});navButtons=cycleNav.find('li');}showSlide=function(i){if(i>children.length-1){i=0;}clearTimeout(timeout);if(navButtons){navButtons.removeClass('active').eq(i).addClass('active');}children.removeClass('active').eq(i).addClass('active');if(autoPlay&&children.length>1){return timeout=setTimeout(function(){return showSlide(i+1);},autoPlay);}};return children.eq(0).on('loaded',function(){showSlide(i);return element.addClass('active');});}};});SimpleHelpers.directive("tabbedContent",function(){return{restrict:"A",link:function(scope,element,attrs){var links,panels;links=element.find('a');panels=$(attrs.tabbedContent+' [panel]');links.click(function(){links.removeClass('active');$(this).addClass('active');panels.removeClass('active').filter('[panel='+$(this).attr('panel')+']').addClass('active');$window.trigger('resize');return false;});return links.eq(0).trigger('click');}};});SimpleHelpers.directive("osSpecificLink",function(){return{restrict:"A",link:function(scope,element,attrs){return $window.load(function(){var href,os,re;os=platform.os.family.toLowerCase();re=new RegExp("windows|mac|linux","g");href=element.attr('href');if(os.indexOf('windows')>-1){element.attr('href',href.replace(re,'windows'));}if(os.indexOf('mac')>-1){return element.attr('href',href.replace(re,'mac'));}else if(os.indexOf('linux centos debian fedora gentoo gnewsense kubuntu mandriva mageia mandriva red hat slackware suse turbolinux ubuntu limo')>-1){return element.attr('href',href.replace(re,'linux'));}});}};});json_action=function(actions,element){var delay,speed,transition;transition=actions.animate;delay=actions.delay||0;if(transition){speed=transition.speed||700;delete transition.speed;setTimeout(function(){return element.velocity(transition,speed);},delay);}if(actions["class"]){element.addClass(actions["class"]);}if(actions.play_video){return element.get(0).play();}};var Docker;window.Docker=Docker=angular.module('Docker',['SimpleHelpers','ngSanitize','ngAnimate','ngTouch']);Docker.controller('DockerController',function($rootScope,$scope){var getCookie,userName;init_root($scope,$rootScope);$rootScope.on_window_resize(function(){if($('#content').height()+$('footer').height()+20<$window.height()){return $body.addClass('short');}else{return $body.removeClass('short');}},true);getCookie=function(cname){var c,ca,cookie,i,len,name;name=cname+"=";ca=document.cookie.split(';');for(i=0,len=ca.length;ii&&connections<=3){loadIframe();}return iframe.load(function(){connections-=1;if(repos.length>i&&connections<=3){return loadIframe();}});};loadIframe();fuzzyMatch=function(str,pattern){pattern=pattern.split("").reduce(function(a,b){return a+".* "+b;});return(new RegExp(pattern)).test(str);};return $scope.filterRepos=function(){repos.each(function(){if($(this).attr('name').score($scope.searchString)>.2||!$scope.searchString){return $(this).show();}else{return $(this).hide();}});};});Docker.controller('SelectContentController',function($scope,$rootScope,$element,$timeout){$scope.$watch('selectData',function(newValue,oldValue){if(newValue){$scope.selectOptions=newValue.split(',');$scope.displayedContent=$scope.selectOptions[0];return $scope.ChangeContent();}});return $scope.ChangeContent=function(){var i;i=$('option[label="'+this.displayedContent+'"]').index();if($('option[label="'+this.displayedContent+'"]').index()==-1){i=0;}$element.find('.select-content').hide().eq(i).show();};});Docker.controller('TeamController',function($scope,$rootScope,$element,$timeout){var links,select;links=$element.find('a[href^="#"]');select=null;$('#grnhse_iframe').load(function(){return select=$('#grnhse_iframe').contents().find('#departments-select');});return links.click(function(){var evt,team,val;$('html, body').animate({scrollTop:$("#grnhse_iframe").offset().top-100},750);if(select){team=$(this).attr('href').replace('#','');val=select.find('option:contains("'+team+'")').attr('value');select.val(val);if(document.createEvent!=null){evt=document.createEvent("HTMLEvents");evt.initEvent("change",false,true);select.get(0).dispatchEvent(evt);}else{select.get(0).fireEvent("onchange");}}return false;});});Docker.controller('ManagementController',function($scope,$rootScope,$element,$timeout){$(window).on('load resize',function(){if(Modernizr.mq('only screen and (min-width: 58.8125em)')){return $scope.columns=4;}else if(Modernizr.mq('only screen and (min-width: 40.0625em)')){return $scope.columns=3;}else{return $scope.columns=2;}});return $('a.more').click(function(){var columns,details,n,parent_li,parent_ul,row;$('.current').remove();$('.selected').removeClass('selected');parent_ul=$(this).parents('ul');parent_li=$(this).parents('li');details=parent_li.find('.bio-details').clone();n=parent_li.index();columns=$scope.columns;row=Math.floor(n/$scope.columns)+1;$(this).parents('li').addClass('selected');if((parent_ul.find('li').eq(row*columns-1)[0])){return details.insertAfter(parent_ul.find('li').eq(row*columns-1)).addClass('current');}else{return details.insertAfter(parent_ul.find('li:last-child')).addClass('current');}});});Docker.controller('PartnersController',function($scope,$rootScope,$element,$timeout){var content;content=$('.page-content > .row').offset().top-30;return $(window).scroll(function(){if(content<$(window).scrollTop()&&Modernizr.mq('only screen and (min-width: 58.8125em)')){return $('.page-content .large-3 ul').addClass('fixed-bar');}else{return $('.page-content .large-3 ul').removeClass('fixed-bar');}});});Docker.controller('NewsController',function($scope,$rootScope,$timeout){var newsPage;$scope.moreNews=true;newsPage=1;$scope.news=[];return $scope.loadMore=function(type){return $.get('/api/news-and-press?type='+type+'&page='+newsPage,function(response){if(response){newsPage+=1;response=$.parseJSON(response);$scope.moreNews=response.more;$scope.news=$scope.news.concat(response.news);return $scope.$apply();}});};});Docker.controller('SocialCountController',function($scope,$rootScope,$timeout){return $(window).load(function(){return $('.social a').click(function(e){window.social=$(this).attr('class');window.project=$(this).parents('.hack_idea').attr('id');return $.ajax({type:"POST",url:'/count/'+window.project+'/'+window.social,async:true,cache:false,success:function(response){return window.project=window.social='';}});});});}); \ No newline at end of file diff --git a/js/app.js b/js/app.js deleted file mode 100644 index 43bfcb6f7a..0000000000 --- a/js/app.js +++ /dev/null @@ -1,717 +0,0 @@ -jQuery(document).foundation({ - equalizer : { - equalize_on_stack: true - } -}); -wow = new WOW( - { - boxClass: 'wow', // default - animateClass: 'animated', // default - offset: 200, // default - mobile: false, // default - live: true // default - } -) -$(document).ready(loadRetina); -$(window).resize(loadRetina); -function loadRetina() { - if(window.devicePixelRatio > 1) { - $('html,body').addClass('retina-display'); - } else { - $('html,body').removeClass('retina-display'); - } -} -function isRetina(){ - return ((window.matchMedia && (window.matchMedia('only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx), only screen and (min-resolution: 75.6dpcm)').matches || window.matchMedia('only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (min--moz-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2)').matches)) || (window.devicePixelRatio && window.devicePixelRatio >= 2)) && /(iPad|iPhone|iPod)/g.test(navigator.userAgent); -} -if(isRetina()){ - $('html').addClass('is_retina'); -} -else { - $('html').addClass('is_not_retina'); -} - -wow.init(); -$('section.section h2').each(function() { - if ($(this).siblings('p').size() > 0){ } else { $(this).addClass('marginBottom40'); } -}); -$("div.dockercon16").children().last().append(" "); -if (!$('.dockercon16 section').hasClass('title_section')){ - $('.main-header').addClass('backgroundimage'); -} - if ($('.heronav_section').length > 0) { - $('.heronav_section').affix({ - offset: { - top:$(".heronav_section").offset().top, - bottom: $('footer').outerHeight(true) - } - }); - } - if ($('.sidebarnav_section').length > 0) { - $('.sidebarnav_section').affix({ - offset: { - top:$(".sidebarnav_section").offset().top -25, - bottom: $('footer').outerHeight(true) + $('.sidebarnav_section').outerHeight(true) - } - }); - } -jQuery.each( jQuery.browser, function( i, val ) { - $('html').addClass(i, val); -}); -$('#job-content a.apply_button').on('click', function() { - $.smoothScroll({scrollTarget: '#application'}); - }); -$(document).on('click', 'a[href*="#"]:not(.noanchor , .find_a_partner_section .cbp-caption-defaultWrap, .strategic_alliances_tabs li a, .docker_captian_section .cbp-caption-defaultWrap, .government_partners_tabs li a, #job-content a)', function() { - if ( this.hash && this.pathname === location.pathname ) { - $.bbq.pushState( '#/' + this.hash.slice(1) ); - return false; - } - }).ready(function() { - $(window).bind('hashchange', function(event) { - var tgt = location.hash.replace(/^#\/?/,''); - if ( document.getElementById(tgt) ) { - if ($('body').hasClass('node-type-products') || $('body').hasClass('node-type-product') || $('body').hasClass('node-type-use-cases') || $('body').hasClass('node-type-use-case') || $('body').hasClass('node-type-enterprise') || $('body').hasClass('node-type-government') || $('body').hasClass('node-type-partners') || $('body').hasClass('node-type-partner-programs') || $('body').hasClass('node-type-support-services') || $('body').hasClass('node-type-careers') || $('body').hasClass('node-type-careers-department') || $('body').hasClass('node-type-what-is-docker') || $('body').hasClass('node-type-product-editions') || $('body').hasClass('node-type-projects')) { - if ($(window).width() > 991 ) { - $('html,body').animate({ scrollTop: $('#' + tgt).offset().top - 51}, 'slow'); - } else if($(window).width() > 768 && $(window).width() < 991 ) { - $('html,body').animate({ scrollTop: $('#' + tgt).offset().top - 51}, 'slow'); - } else { - $('html,body').animate({ scrollTop: $('#' + tgt).offset().top - 51}, 'slow'); - } - } else { - $.smoothScroll({scrollTarget: '#' + tgt}); - } - } - }); - $(window).trigger('hashchange'); - }); -(function($) { - $('.bsr-item-detail').hide(); - $('.bsr-item').on('click', function(e) { - e.preventDefault(); - // find the target of the clicked anchor tag - var targetBSR = $(this).find('a')[0].hash; - var parentBSR = $(this); - // hide detail containers, not the current target - $('.bsr-item-detail').not(targetBSR).hide(); - // toggle current target detail container - $(targetBSR).slideToggle(); - - // toggle parent active class - if (parentBSR.hasClass('is-active')) { - parentBSR.removeClass('is-active'); - } - else { - // wipe out all other active classes - $('.bsr-item').each(function() { - $(this).removeClass('is-active'); - }); - // add active class to the current parent - parentBSR.addClass('is-active'); - } - }); - $('.quotes_slider').flexslider({ - animation: "slide", - directionNav: false - }); - $('.CTA_section').each(function() { - $(this).children('.mheight').matchHeight(); - }); - $('.CTA_section .row').each(function() { - $(this).children('.CTA_item').matchHeight(); - }); - $('.resources_items.row').each(function() { - $(this).children('.resources_link').matchHeight(); - }); - $('.mhp').each(function() { - $(this).children('.mhc').matchHeight(); - }); - $('a[target="_video"]').magnificPopup({ - midClick: true, - type: 'iframe', - mainClass: 'mfp-fade', - removalDelay: 160, - preloader: false, - disableOn: 280, - fixedContentPos: false - }); - $('a[rel="video"]').magnificPopup({ - midClick: true, - type: 'iframe', - mainClass: 'mfp-fade', - removalDelay: 160, - preloader: false, - disableOn: 280, - fixedContentPos: false - }); -$(window).load(function() { - $(window).trigger("resize"); -}); -$(window).resize(function() { - $('body>.off-canvas-wrap').css('min-height', $(window).height() - ($('.main-footer').outerHeight(true) + $('section.title_section').outerHeight(true) + 200)); - var maxHeight_title = -1; - maxHeight_title = maxHeight_title > $(".ibm_solutions .title").height() ? maxHeight_title : $(".ibm_solutions .title").height(); - $(".ibm_solutions .title").height(maxHeight_title); - var maxHeight_body = -1; - - maxHeight_body = maxHeight_body > $(".ibm_solutions .body").height() ? maxHeight_body : $(".ibm_solutions .body").height(); - $(".ibm_solutions .body").height(maxHeight_body); - - var maxHeight_productbox = -1; - $('.docker_solutions_section .media').each(function() { - maxHeight_productbox = maxHeight_productbox > $(this).height() ? maxHeight_productbox : $(this).height(); - }); - $('.docker_solutions_section .media').each(function() { - $(this).height(maxHeight_productbox); - }); - - var maxHeight_productboxul = -1; - $('.docker_solutions_section .body_box ul').each(function() { - maxHeight_productboxul = maxHeight_productboxul > $(this).height() ? maxHeight_productboxul : $(this).height(); - }); - $('.docker_solutions_section .body_box ul').each(function() { - $(this).height(maxHeight_productboxul); - }); - - var maxHeight_productpricing = -1; - $('section.pricing_product_section .plan_box .header').each(function() { - maxHeight_productpricing = maxHeight_productpricing > $(this).height() ? maxHeight_productpricing : $(this).height(); - }); - $('section.pricing_product_section .plan_box .header').each(function() { - $(this).height(maxHeight_productpricing); - }); - - var maxHeight_productdemo = -1; - $('section.demo_product_section .items li .mheight').each(function() { - maxHeight_productdemo = maxHeight_productdemo > $(this).height() ? maxHeight_productdemo : $(this).height(); - }); - $('section.demo_product_section .items li .mheight').each(function() { - $(this).height(maxHeight_productdemo); - }); - - var maxHeight_productuse = -1; - $('section.use_product_section .items li .mheight').each(function() { - maxHeight_productuse = maxHeight_productuse > $(this).height() ? maxHeight_productuse : $(this).height(); - }); - $('section.use_product_section .items li .mheight').each(function() { - $(this).height(maxHeight_productuse); - }); -}).trigger("resize"); - -$(window).load(function() { - var maxHeight_use_cases_overview_h3 = -1; - $('section.use_cases_section .items li .item-link').each(function() { - maxHeight_use_cases_overview_h3 = maxHeight_use_cases_overview_h3 > $(this).height() ? maxHeight_use_cases_overview_h3 : $(this).height(); - }); - $('section.use_cases_section .items li .item-link').each(function() { - $(this).height(maxHeight_use_cases_overview_h3 + 15); - }); - - var maxHeight_use_cases_overview_p = -1; - $('section.use_cases_section .items li p').each(function() { - maxHeight_use_cases_overview_p = maxHeight_use_cases_overview_p > $(this).height() ? maxHeight_use_cases_overview_p : $(this).height(); - }); - $('section.use_cases_section .items li p').each(function() { - $(this).height(maxHeight_use_cases_overview_p); - }); -}); -$(".plans_tabs ul a").click(function(event) { - event.preventDefault(); - var tab = $(this).attr("href"); - $(this).parent().addClass("current").siblings().removeClass("current"); - $(tab).addClass("current").fadeIn().siblings('.plans').removeClass("current").hide(); -}); -$('.faq-body').each(function() { - $(this).parent('.faq').addClass('collapsible'); -}); -$(".faqs-group").on( "click", ".faq-title", function(e) { - e.preventDefault(); - var $FAQ = $(this).parent(".faq"), $FAQz = $(".faq").not($FAQ); - $FAQ.toggleClass("active"); - $(".faq-body",$FAQ).slideToggle(300) - $FAQz.removeClass("active"); - $(".faq-body",$FAQz).slideUp(300); -}); -if ($(window).width() > 1199) { - $(".faqs_section .faqs-group").height($(".faqs-group .col-xs-12").outerHeight(true) + 120); - } else if ($(window).width() < 1200 && $(window).width() > 991) { - $(".faqs_section .faqs-group").height($(".faqs-group .col-xs-12").outerHeight(true) + 180); - } else if ($(window).width() < 992 && $(window).width() > 767) { - $(".faqs_section .faqs-group").height($(".faqs-group .col-xs-12").outerHeight(true) + 190); - } else { - $(".faqs_section .faqs-group").height($(".faqs-group .col-xs-12").outerHeight(true) + $(".faqs-group .col-xs-12").outerHeight(true) + 70); - } - - -var sliderRepoMap = [1, 5, 10, 20, 50, 100, 250] -, RepoSlider = $( "#RepoSlider" ) -, CmSupport = $("#RepoCommercialSupport") -, CrSupport = $("#RepoCriticalSupport") -, BuyButtontxt -, BuyButtonURL -, Repos -, RepoPrice -, RepoPricing -, PricingInfo -, RepoSliderVal; - - RepoSlider.slider({ - value: 3, - min: 0, - max: sliderRepoMap.length-1, - slide: function( event, ui ) { - RepoPlans(ui.value) - CmSupport.prop('checked', false).prop('disabled', false); - CrSupport.prop('checked', false); - $.bbq.pushState( '#/repo-' + sliderRepoMap[ui.value] ); - }, - change :function( event, ui ) { - RepoPlans(RepoSlider.slider('value')) - $.bbq.pushState( '#/repo-' + sliderRepoMap[RepoSlider.slider('value')] ); - } - }).slider("pips", { - rest: "label", - labels: sliderRepoMap - }); -$("#RepoSlider.ui-slider-pips .ui-slider-label").on( "click", function(e) { - CmSupport.prop('checked', false).prop('disabled', false); - CrSupport.prop('checked', false); -}); -/* SVEN SAYS NO -$(window).on('load', RepoPlans(RepoSlider.slider('value'))); -function RepoPlans(RepoSliderValue) { - RepoSliderVal = RepoSliderValue; - if(RepoSliderVal == 0){ - RepoPrice = 0; - RepoPricing = RepoPricing_free; - BuyButtontxt = buybuttontxt_signup; - } else if(RepoSliderVal < 4) { - RepoPrice = parseFloat(sliderRepoMap[RepoSliderVal]) + 2; - RepoPricing = '$ ' + RepoPrice + ' / month'; - BuyButtontxt = BuyButtontxt_buy; - } else { - RepoPrice = parseFloat(sliderRepoMap[RepoSliderVal]); - RepoPricing = '$ ' + RepoPrice + ' / month'; - BuyButtontxt = BuyButtontxt_buy; - } - if(RepoSliderVal == 0) { - BuyButtonURL = BuyButtonURL_0; - } else if(RepoSliderVal == 1) { - BuyButtonURL = BuyButtonURL_1; - } else if(RepoSliderVal == 2) { - BuyButtonURL = BuyButtonURL_2; - } else if(RepoSliderVal == 3) { - BuyButtonURL = BuyButtonURL_3; - } else if(RepoSliderVal == 4) { - BuyButtonURL = BuyButtonURL_4; - } else if(RepoSliderVal == 5) { - BuyButtonURL = BuyButtonURL_5; - } else if(RepoSliderVal == 6) { - BuyButtonURL = BuyButtonURL_6; - } else { - BuyButtonURL = BuyButtonURL_0; - } - Repos = sliderRepoMap[RepoSliderVal]; - if(RepoSliderVal == 0) { - PricingInfo = '
  • '+Repos+PricingInfo_freeText+'
  • '; - } else { - PricingInfo = '
  • '+Repos+PricingInfo_Text+'
  • '; - } - $('#PricingInfo').html(PricingInfo); - $('#RepoBuyButton').text(BuyButtontxt); - $('#RepoBuyButton').attr('href', BuyButtonURL); - $('#RepoPricing').html(RepoPricing); -} - -$(CmSupport).on('change', RepoCommercialSupport); -function RepoCommercialSupport() { - RepoSliderVal = RepoSlider.slider('value'); - RepoSlider.slider('value', 3); - if((CmSupport).is(':checked')) { - Repos = sliderRepoMap[RepoSliderVal]; - RepoPrice = 150; - RepoPricing = '$ ' + RepoPrice + ' / month'; - BuyButtontxt = BuyButtontxt_buy; - BuyButtonURL = BuyButtonURL_cloud_starter; - PricingInfo = '
  • '+Repos+PricingInfo_CommercialSupportText+'
  • '; - $('#PricingInfo').html(PricingInfo); - $('#RepoBuyButton').text(BuyButtontxt); - $('#RepoBuyButton').attr('href', BuyButtonURL); - $('#RepoPricing').html(RepoPricing); - $.bbq.pushState( '#/repo-commercial-support' ); - } else { - RepoPlans(RepoSlider.slider('value')); - RepoSlider.slider('enable'); - $.bbq.pushState( '#/repo-' + sliderRepoMap[RepoSlider.slider('value')] ); - } -} - -$(CrSupport).on('change', RepoCriticalSupport); -function RepoCriticalSupport() { - RepoSliderVal = RepoSlider.slider('value'); - RepoSlider.slider('value', 3); - if((CrSupport).is(':checked')) { - CmSupport.prop('checked', true).prop('disabled', true); - Repos = sliderRepoMap[RepoSliderVal]; - RepoPricing = RepoPricing_CriticalSupport; - BuyButtontxt = buybuttontxt_quote; - BuyButtonURL = BuyButtonURL_inquiry; - PricingInfo = '
  • '+Repos+PricingInfo_CriticalSupportText+'
  • '; - $('#PricingInfo').html(PricingInfo); - $('#RepoBuyButton').text(BuyButtontxt); - $('#RepoBuyButton').attr('href', BuyButtonURL); - $('#RepoPricing').html(RepoPricing); - $.bbq.pushState( '#/repo-critical-support' ); - } else { - CmSupport.prop('disabled', false); - RepoCommercialSupport(); - } -} -if(window.location.hash.match('repo-') != null) { - var repopkg = location.hash.replace(/^#\/repo-?/,''); -// alert(repopkg); - if(repopkg == 'commercial-support') { - $('a[href*="#tab-cloud"]').parent().addClass("current").siblings().removeClass("current"); - $('#tab-cloud').addClass("current").fadeIn().siblings('.plans').removeClass("current").hide(); - CmSupport.prop('checked', true); - RepoCommercialSupport(); - } else if (repopkg == 'critical-support') { - $('a[href*="#tab-cloud"]').parent().addClass("current").siblings().removeClass("current"); - $('#tab-cloud').addClass("current").fadeIn().siblings('.plans').removeClass("current").hide(); - CrSupport.prop('checked', true); - RepoCriticalSupport(); - } else { - repopkg = jQuery.inArray( parseFloat(repopkg), sliderRepoMap ); - $('a[href*="#tab-cloud"]').parent().addClass("current").siblings().removeClass("current"); - $('#tab-cloud').addClass("current").fadeIn().siblings('.plans').removeClass("current").hide(); - RepoSlider.slider('value', repopkg); - } -} - -if(window.location.hash === "#/forcloud" || window.location.hash === "#forcloud" || window.location.hash === "#/forserver" || window.location.hash === "#forserver") { - var tab = location.hash.replace(/^#\/for?/,'#tab-'); - $('a[href*="'+tab+'"]').parent().addClass("current").siblings().removeClass("current"); - $(tab).addClass("current").fadeIn().siblings('.plans').removeClass("current").hide(); -} - -$('.products-items').each(function() { - $(this).children('li').matchHeight(); - }); -$(".nolinkhere").on('click', function(e) { - e.preventDefault(); -}); -$('.ibm_solutions').each(function() { - $(this).children('.ibm_solution').matchHeight(); - }); - -$(window).load(function() { - var isoOptions = { - itemSelector : '.events_region', - masonry: { - columnWidth: '.col-md-6' - } - }; - var $grid = $('.events_section .events_regions').isotope( isoOptions ); - $('.event-search input.ng-valid').on('keyup', function() { - if ($(".events_regions .events_region").siblings().size() > 1) { - $('.events_regions .events_region').removeClass('row'); - $('.events_regions .events_region').addClass('col-xs-12 col-sm-6 col-md-6'); - $('.events_regions .events_region .media.events_item').removeClass('col-xs-12 col-sm-6 col-md-6'); - $('.events_regions .events_region .events_region_name').removeClass('col-xs-12 col-md-12'); - $('.events_regions').removeClass('margintop55'); - $grid.isotope('destroy'); - // $grid.isotope('reloadItems') - $grid.isotope({ - itemSelector : '.events_region', - masonry: { - columnWidth: '.col-md-6' - } - }); - } else { - $('.events_regions .events_region').addClass('row'); - $('.events_regions .events_region').removeClass('col-xs-12 col-sm-6 col-md-6'); - $('.events_regions .events_region .media.events_item').addClass('col-xs-12 col-sm-6 col-md-6'); - $('.events_regions .events_region .events_region_name').addClass('col-xs-12 col-md-12'); - $('.events_regions').addClass('margintop55'); - $grid.isotope('destroy'); - $grid.isotope({ - itemSelector : '.events_region .events_item', - masonry: { - columnWidth: '.col-md-6' - } - }); - } - - setTimeout(function(){ $grid.isotope('layout'); }, 2000); - }); - $('.event-search select.ng-valid').on('change', function() { - if ($(".events_regions .events_region").siblings().size() > 1) { - $('.events_regions .events_region').removeClass('row'); - $('.events_regions .events_region').addClass('col-xs-12 col-sm-6 col-md-6'); - $('.events_regions .events_region .media.events_item').removeClass('col-xs-12 col-sm-6 col-md-6'); - $('.events_regions .events_region .events_region_name').removeClass('col-xs-12 col-md-12'); - $('.events_regions').removeClass('margintop55'); - $grid.isotope('destroy'); - $grid.isotope({ - itemSelector : '.events_region', - masonry: { - columnWidth: '.col-md-6' - } - }); - - } else { - $('.events_regions .events_region').addClass('row'); - $('.events_regions .events_region').removeClass('col-xs-12 col-sm-6 col-md-6'); - $('.events_regions .events_region .media.events_item').addClass('col-xs-12 col-sm-6 col-md-6'); - $('.events_regions .events_region .events_region_name').addClass('col-xs-12 col-md-12'); - $('.events_regions').addClass('margintop55'); - $grid.isotope('destroy'); - $grid.isotope({ - itemSelector : '.events_region .events_item', - masonry: { - columnWidth: '.col-md-6' - } - }); - - } - - setTimeout(function(){ $grid.isotope('layout'); }, 2000); - }); -}); -$('a[href="#toptop"]').click(function () { - $('body,html').animate({ - scrollTop: 0 - }, 800); - return false; - }); - -$(window).load(function() { - $('.resources_video_slider , .demo_product_section, .rest_apis_product_section, .customer_spotlight_section ').flexslider({ - selector: ".slides > .slide", - animation: "fade", - controlNav: true, - directionNav: false - }); - $('.technology_partners_section, .program_benefits_section').each(function() { - $(this).children('li').matchHeight(); - }); -}); -$('.products_items').each(function() { - $(this).children('li').matchHeight(); - }); -$('.product_features_product_section ul.items ').each(function() { - $(this).children('li').matchHeight(); - }); -$('.pricing_product_section .plan_boxes').each(function() { - $(this).children('.plan_box').matchHeight(); - }); -$('.GenericDev .items').each(function() { - $(this).children('li').matchHeight(); - }); -$('.quotes_use_cases_slider').flexslider({ - animation: "slide", - directionNav: true, - controlNav: false - }); -$('.quotes_2_slider').flexslider({ - animation: "slide", - directionNav: true, - controlNav: false - }); -$('.off-canvas-list li.has-submenu').prepend(''); - -$(".strategic_alliances_tabs ul a").click(function(event) { - event.preventDefault(); - var tab = $(this).attr("href"); - $(this).parent().addClass("current").siblings().removeClass("current"); - $(tab).addClass("current").fadeIn().siblings('.strategic_alliances').removeClass("current").hide(); - }); -$(".government_partners_tabs ul a").click(function(event) { - event.preventDefault(); - var tab = $(this).attr("href"); - $(this).parent().addClass("current").siblings().removeClass("current"); - $(tab).addClass("current").fadeIn().siblings('.government_partners').removeClass("current").hide(); - }); -*/ - /* ===================== 1 Mar =====================*/ -$(".find_a_partner_section ul.partners_list li.no_info a.cbp-singlePageInline.cbp-nocontent").click(function() { - var asdasd= $(this); - $(asdasd).parents('#grid-container').addClass('nomore').removeClass('nomore2'); - }); - $(".find_a_partner_section ul.partners_list li a.cbp-singlePageInline.cbp-hascontent").click(function() { - var qweqwe= $(this); - $(qweqwe).parents('#grid-container').addClass('nomore2').removeClass('nomore'); - }); - -$(window).load(function() { - - $('.scoopit-fulltheme-col1').masonry({ - columnWidth: '.scoopit-fulltheme-scoop-wrapper', - itemSelector: '.scoopit-fulltheme-scoop-wrapper' - }); - -}); -function getUrlVars() -{ - var vars = [], hash; - var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); - for(var i = 0; i < hashes.length; i++) - { - hash = hashes[i].split('='); - vars.push(hash[0]); - vars[hash[0]] = hash[1]; - } - return vars; -} -var captains_page = getUrlVars()["page"]; -var captains_id = getUrlVars()["id"]; -if(captains_id){ - var captains_item = captains_id.replace("info", "item"); -} -$(window).load(function() { - if (captains_page == 'captains'){ - $('#' + captains_id).click(); - $('html,body').animate({ scrollTop: $('#' + captains_item).offset().top - 20}, 'slow'); - } -}); - -})(jQuery); -(function ($, window, document, undefined) { - - var gridContainer = $('#grid-container,#grid-container2'); - var captiansContainer = $('#captians-container'); - - // init cubeportfolio - gridContainer.cubeportfolio({ - - animationType: 'rotateSides', - - gapHorizontal: 30, - - gapVertical: 30, - - gridAdjustment: 'responsive', - - caption: '', - - displayType: 'sequentially', - - displayTypeSpeed: 100, - - // lightbox - lightboxDelegate: '.cbp-lightbox', - lightboxGallery: true, - lightboxTitleSrc: 'data-title', - lightboxShowCounter: true, - - // singlePage popup - singlePageDelegate: '.cbp-singlePage', - singlePageDeeplinking: true, - singlePageStickyNavigation: true, - singlePageShowCounter: true, - singlePageCallback: function (url, element) { - // to update singlePage content use the following method: this.updateSinglePage(yourContent) - }, - - // singlePageInline - singlePageInlineDelegate: '.cbp-singlePageInline', - singlePageInlinePosition: 'below', - singlePageInlineShowCounter: true, - singlePageInlineCallback: function(url, element) { - - // to update singlePageInline content use the following method: this.updateSinglePageInline(yourContent) - var t = this; - if($(url).length == 0) { - return false; - } else { - var cont = $(url).html(); - t.updateSinglePageInline(cont); - } - - } - }); - - captiansContainer.cubeportfolio({ - - animationType: 'rotateSides', - - gapHorizontal: 30, - - gapVertical: 12, - - gridAdjustment: 'responsive', - - caption: '', - - displayType: 'sequentially', - - displayTypeSpeed: 100, - - // lightbox - lightboxDelegate: '.cbp-lightbox', - lightboxGallery: true, - lightboxTitleSrc: 'data-title', - lightboxShowCounter: true, - - // singlePage popup - singlePageDelegate: '.cbp-singlePage', - singlePageDeeplinking: true, - singlePageStickyNavigation: true, - singlePageShowCounter: true, - singlePageCallback: function (url, element) { - // to update singlePage content use the following method: this.updateSinglePage(yourContent) - }, - - // singlePageInline - singlePageInlineDelegate: '.cbp-singlePageInline', - singlePageInlinePosition: 'below', - singlePageInlineShowCounter: true, - singlePageInlineCallback: function(url, element) { - - // to update singlePageInline content use the following method: this.updateSinglePageInline(yourContent) - var t = this; - if($(url).length == 0) { - return false; - } else { - var cont = $(url).html(); - t.updateSinglePageInline(cont); - } - - } - - }); - - $('#media_viewmore').on('click', function(e) { - e.preventDefault(); - var offset = $('#data_offset').text() - , list_length = $('#data_list_length').text() - , nxtoffset = parseFloat(offset) + 10 - , url = '/api/docker_captains/'+offset; - $.get(url).done(function( result ) { - var items, itemsNext; - // find current container - items = $(result).filter( function () { - return $(this).is('ul.cbp-loadMore-loop'); - }); - bios = $(result).filter( function () { - return $(this).is('div.cbp-loadMore-bio'); - }); - captiansContainer.cubeportfolio('appendItems', items.html(), - function () { - // check if we have more works - /* - itemsNext = $(result).filter( function () { - return $(this).is('ul' + '.cbp-loadMore'); - }); - */ - }); - $('#cbp-loadMore-bio').append(bios.html()); - // $('#media-library-loop').append(result); - $('#data_offset').text(nxtoffset); - if(nxtoffset >= list_length) { - $('#media_viewmore').hide(); - } - }); - }); - -})(jQuery, window, document); diff --git a/js/echo.515e8809.js b/js/echo.515e8809.js deleted file mode 100644 index 2517d35260..0000000000 --- a/js/echo.515e8809.js +++ /dev/null @@ -1 +0,0 @@ -!function(t){function r(o){if(c[o])return c[o].exports;var e=c[o]={exports:{},id:o,loaded:!1};return t[o].call(e.exports,e,e.exports,r),e.loaded=!0,e.exports}var c={};return r.m=t,r.c=c,r.p="https://js.intercomcdn.com/",r(0)}([function(t,r){"use strict";function c(t){o&&o[t]&&o[t]()}var o=window.parent;try{c("intercomEchoSuccess")}catch(e){c("intercomEchoFailure")}}]); \ No newline at end of file diff --git a/js/fbevents.js b/js/fbevents.js deleted file mode 100644 index 7bdd76aafd..0000000000 --- a/js/fbevents.js +++ /dev/null @@ -1,9 +0,0 @@ -/*1465437918,,JIT Construction: v2382617,en_US*/ - -/** - * Copyright Facebook Inc. - * - * Licensed under the Apache License, Version 2.0 - * http://www.apache.org/licenses/LICENSE-2.0 - */ -try {(function(a,b,c,d){'use strict';var e="2.5.0",f='https://www.facebook.com/tr/',g='/fbevents.',h={IDENTITY:'plugins.identity.js'},i={},j=[],k=null,l=null,m=/^\d+$/,n={allowDuplicatePageViews:false},o=function(ra){var sa={exports:ra};'use strict';var ta='deep',ua='shallow';function va(){this.list=[];}va.prototype={append:function(xa,ya){this._append(encodeURIComponent(xa),ya,ta);},_append:function(xa,ya,za){if(Object(ya)!==ya){this._appendPrimitive(xa,ya);}else if(za===ta){this._appendObject(xa,ya);}else this._appendPrimitive(xa,wa(ya));},_appendPrimitive:function(xa,ya){if(ya!=null)this.list.push([xa,ya]);},_appendObject:function(xa,ya){for(var za in ya)if(ya.hasOwnProperty(za)){var ab=xa+'['+encodeURIComponent(za)+']';this._append(ab,ya[za],ua);}},each:function(xa){var ya=this.list;for(var za=0,ab=ya.length;za(f+'?'+wa).length){la(f,wa);}else ma(f,ua);}function la(ra,sa){var ta=new Image();ta.src=ra+'?'+sa;}function ma(ra,sa){var ta='fb'+Math.random().toString().replace('.',''),ua=b.createElement('form');ua.method='post';ua.action=ra;ua.target=ta;ua.acceptCharset='utf-8';ua.style.display='none';var va=!!(a.attachEvent&&!a.addEventListener),wa=va?'