Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

first commit

  • Loading branch information...
commit 83d8431da1f0a4a41db8588bd6bfed8e050630f2 0 parents
@johnpolacek authored
77 README.md
@@ -0,0 +1,77 @@
+#SuperScrollorama
+
+The jQuery plugin for doing supercool scroll animation.
+
+Check out the [Project Page](http://johnpolacek.github.com/superscrollorama) for more information.
+
+## License
+
+SuperScrollorama is dual licensed under the MIT license (below) and [GPL license](http://www.gnu.org/licenses/gpl-3.0.html).
+The Greensock Animation Platform (GSAP) is used with permission per its license agreement (see below). For more information, go to http://www.greensock.com/licensing/
+
+<small>
+MIT License
+
+Copyright (c) 2012 John Polacek
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+GSAP LICENSE
+
+"NO CHARGE" NON-EXCLUSIVE SOFTWARE LICENSE AGREEMENT
+-----------------------------------------------------------------------------
+PLAIN ENGLISH SUMMARY:
+
+You may use the code at no charge in commercial or non-commercial apps, web sites, games, components, and other software as long as end users are not charged a fee of any kind to use your product or gain access to any part of it. If your client pays you a one-time fee to create the site/product, that's perfectly fine and qualifies under the "no charge" license. If end users are charged a usage/access/license fee, please sign up for a corporate Club GreenSock membership which comes with a special commercial license granting you permission to do so. See http://www.greensock.com/club/ for details.
+Use at your own risk. No warranties are offered.
+Please respect the copyright.
+-----------------------------------------------------------------------------
+
+LEGALESE:
+
+This is a legal agreement between you (either an individual or a single entity) and GreenSock, Inc. ("GREENSOCK") for the proprietary GreenSock code known as TweenLite, TweenMax, TweenNano, TimelineLite, TimelineMax, and other copyrighted code that is available for download at http://www.greensock.com (this code and documentation, as well as any updates which may at GREENSOCK's sole discretion be provided to you from time to time, are referred to in this Agreement as "PROGRAM"). By downloading, copying, or otherwise using the PROGRAM, you agree to the terms and conditions of this Agreement. If you do not agree to the terms and conditions of this Agreement, please do not download or use the PROGRAM.
+
+I. LICENSE
+A. Subject to the terms and conditions of this Agreement, GREENSOCK hereby grants you a non-exclusive, worldwide, non-transferable right to use the PROGRAM in apps, web sites, games, components and other software applications ("Developed Works") for which the end user is NOT charged any fees. If you would like to use the code in a commercially licensed Developed Work for which end users are charged a fee (either for usage or access), simply sign up for the appropriate corporate Club GreenSock membership at http://www.greensock.com/club/.
+
+II. LIMITATION OF LICENSE AND RESTRICTIONS
+A. You agree that you will not sell, rent, or license the PROGRAM's source code or any derivative works thereof to any third party without the prior written consent of GREENSOCK. Distribution of the PROGRAM as part of your Developed Work is acceptable so long as it is used exclusively as a part of your Developed Work. You agree not to modify or delete GREENSOCK'S existing copyright notices located in the source code.
+
+B. You may use, duplicate, and distribute the compiled object code as embedded in Developed Works created by you, either for your own use or for distribution to a third party so long as end users of the Developed Work are not charged a fee for usage of or access to any portion of the Developed Work. Please see http://www.greensock.com/licensing/ for descriptions of Developed Works that qualify for the "No Charge" license.
+
+C. You may make modifications to the source code exclusively for your own use in order to perform bug fixes or other minor edits required to operate the PROGRAM as originally intended.
+
+III. CONSIDERATION
+A. The license rights granted to you under this Agreement are at no charge, but only in the following circumstances: If on your own behalf or on behalf of a third party you incorporate the PROGRAM into a web site, app, game, program or any component thereof (collectively, "Developed Work"), which in the case of a web site, must be accessible to internet users without payment of a fee of any kind, and in the case of a software application, game, program or component, neither you nor anyone to whom you distribute the Developed Work charges a user a fee of any kind to use such Developed Work or application, game, program or component into which such Developed Work is embedded. The foregoing shall apply regardless of whether you are paid to create such Developed Work.
+
+B. In the event your intended use of the PROGRAM does not meet the criteria for the "no charge" license rights set forth in the immediately preceding paragraph, then you are not licensed to use the PROGRAM under this Agreement and must license the PROGRAM under GREENSOCK'S separate fee-based Software License Agreement which is granted to corporate Club GreenSock members (see http://www.greensock.com/club/ for details).
+
+C. You may make modifications to the source code exclusively for your own use in order to perform bug fixes or other minor edits required to operate the PROGRAM as originally intended.
+
+IV. TITLE AND OWNERSHIP
+A. The PROGRAM is licensed, not sold, and is protected by copyright laws and international treaty provisions. You acknowledge that no title to the intellectual property in the PROGRAM is transferred to you. You further acknowledge that title and full ownership rights to the PROGRAM, including all intellectual property rights therein, will remain the exclusive property of GREENSOCK and you will not acquire any rights to the PROGRAM except as expressly set forth in this Agreement. You agree that any copies of the PROGRAM you make will contain the same proprietary notices which appear on and in the PROGRAM. You agree that GREENSOCK may identify you as a licensee unless you make a written request otherwise. GREENSOCK hereby grants to you the right to disclose that your product, game, software application, component, or other Developed Work makes use of GREENSOCK code (for example, "Powered by TweenLite").
+
+V. DISCLAIMER OF WARRANTY AND LIMITATION OF LIABILITY
+A. THE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. GREENSOCK DOES NOT WARRANT THAT THE FUNCTIONS CONTAINED IN THE PROGRAM WILL MEET YOUR REQUIREMENTS OR THAT OPERATION WILL BE UNINTERRUPTED OR ERROR FREE. GREENSOCK shall not be liable for special, indirect, incidental, or consequential damages with respect to any claim on account of or arising from this Agreement or use of the PROGRAM, even if GREENSOCK has been or is hereafter advised of the possibility of such damages. Because some states do not allow certain exclusions or limitations on implied warranties or of liability for consequential or incidental damages, the above exclusions may not apply to you. In no event, however, will GREENSOCK be liable to you, under any theory of recovery, in an amount in excess of $250. Notwithstanding anything else in this agreement, you agree to indemnify GREENSOCK, its assignees, and licensees, and hold each of them harmless from and against any and all claims, losses, damages, and expenses, including legal fees arising out of or resulting from any negligent act or omission by you.
+
+B. GREENSOCK may, at its sole discretion, provide support services related to the PROGRAM, but has no obligation to do so.
+
+VI. TERMINATION
+If you at any time fail to abide by the terms of this Agreement, GREENSOCK shall have the right to immediately terminate the license granted herein and pursue any other legal or equitable remedies available.
+
+VII. MISCELLANEOUS
+A. This Agreement shall be construed in accordance with the laws of the State of Illinois. In the event of any dispute between you and GREENSOCK with respect to this Agreement, we both agree that if we cannot resolve the dispute in good faith discussion, either of us may submit the dispute for resolution to arbitration with the American Arbitration Association before a single arbitrator using the AAA Rules for Commercial Arbitration. The arbitrator's decision is final and can be enforced in any court with jurisdiction over such matters.
+
+B. This agreement represents the complete and exclusive statement of the agreement between GREENSOCK and you and supersedes all prior agreements, proposals, representations and other communications, verbal or written, between them with respect to use of the program. This agreement may be modified only with the mutual written approval of authorized representatives of the parties.
+
+C. The terms and conditions of this Agreement shall prevail notwithstanding any different, conflicting, or additional terms or conditions which may appear in any purchase order or other document submitted by you. You agree that such additional or inconsistent terms are deemed rejected by GREENSOCK.
+
+D. GREENSOCK and you agree that any xerographically or electronically reproduced copy of this Agreement shall have the same legal force and effect as any copy bearing original signatures of the parties.
+
+Copyright 2006-2012, GreenSock, Inc. Updated 2012-05-15
+</small>
439 css/normalize.css
@@ -0,0 +1,439 @@
+/*! normalize.css 2011-08-31T22:02 UTC · http://github.com/necolas/normalize.css */
+
+/* =============================================================================
+ HTML5 display definitions
+ ========================================================================== */
+
+/*
+ * Corrects block display not defined in IE6/7/8/9 & FF3
+ */
+
+article,
+aside,
+details,
+figcaption,
+figure,
+footer,
+header,
+hgroup,
+nav,
+section {
+ display: block;
+}
+
+/*
+ * Corrects inline-block display not defined in IE6/7/8/9 & FF3
+ */
+
+audio,
+canvas,
+video {
+ display: inline-block;
+ *display: inline;
+ *zoom: 1;
+}
+
+/*
+ * Prevents modern browsers from displaying 'audio' without controls
+ */
+
+audio:not([controls]) {
+ display: none;
+}
+
+/*
+ * Addresses styling for 'hidden' attribute not present in IE7/8/9, FF3, S4
+ * Known issue: no IE6 support
+ */
+
+[hidden] {
+ display: none;
+}
+
+
+/* =============================================================================
+ Base
+ ========================================================================== */
+
+/*
+ * 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units
+ * http://clagnut.com/blog/348/#c790
+ * 2. Keeps page centred in all browsers regardless of content height
+ * 3. Prevents iOS text size adjust after orientation change, without disabling user zoom
+ * www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
+ */
+
+html {
+ font-size: 100%; /* 1 */
+ overflow-y: scroll; /* 2 */
+ -webkit-text-size-adjust: 100%; /* 3 */
+ -ms-text-size-adjust: 100%; /* 3 */
+}
+
+/*
+ * Addresses margins handled incorrectly in IE6/7
+ */
+
+body {
+ margin: 0;
+}
+
+/*
+ * Addresses font-family inconsistency between 'textarea' and other form elements.
+ */
+
+body,
+button,
+input,
+select,
+textarea {
+ font-family: sans-serif;
+}
+
+
+/* =============================================================================
+ Links
+ ========================================================================== */
+
+a {
+ color: #00e;
+}
+
+a:visited {
+ color: #551a8b;
+}
+
+/*
+ * Addresses outline displayed oddly in Chrome
+ */
+
+a:focus {
+ outline: 0;
+}
+
+/*
+ * Improves readability when focused and also mouse hovered in all browsers
+ * people.opera.com/patrickl/experiments/keyboard/test
+ */
+
+a:hover,
+a:active {
+ outline: 0;
+}
+
+
+/* =============================================================================
+ Typography
+ ========================================================================== */
+
+/*
+ * Addresses styling not present in IE7/8/9, S5, Chrome
+ */
+
+abbr[title] {
+ border-bottom: 1px dotted;
+}
+
+/*
+ * Addresses style set to 'bolder' in FF3/4, S4/5, Chrome
+*/
+
+b,
+strong {
+ font-weight: bold;
+}
+
+blockquote {
+ margin: 1em 40px;
+}
+
+/*
+ * Addresses styling not present in S5, Chrome
+ */
+
+dfn {
+ font-style: italic;
+}
+
+/*
+ * Addresses styling not present in IE6/7/8/9
+ */
+
+mark {
+ background: #ff0;
+ color: #000;
+}
+
+/*
+ * Corrects font family set oddly in IE6, S4/5, Chrome
+ * en.wikipedia.org/wiki/User:Davidgothberg/Test59
+ */
+
+pre,
+code,
+kbd,
+samp {
+ font-family: monospace, serif;
+ _font-family: 'courier new', monospace;
+ font-size: 1em;
+}
+
+/*
+ * Improves readability of pre-formatted text in all browsers
+ */
+
+pre {
+ white-space: pre;
+ white-space: pre-wrap;
+ word-wrap: break-word;
+}
+
+/*
+ * 1. Addresses CSS quotes not supported in IE6/7
+ * 2. Addresses quote property not supported in S4
+ */
+
+/* 1 */
+
+q {
+ quotes: none;
+}
+
+/* 2 */
+
+q:before,
+q:after {
+ content: '';
+ content: none;
+}
+
+small {
+ font-size: 75%;
+}
+
+/*
+ * Prevents sub and sup affecting line-height in all browsers
+ * gist.github.com/413930
+ */
+
+sub,
+sup {
+ font-size: 75%;
+ line-height: 0;
+ position: relative;
+ vertical-align: baseline;
+}
+
+sup {
+ top: -0.5em;
+}
+
+sub {
+ bottom: -0.25em;
+}
+
+
+/* =============================================================================
+ Lists
+ ========================================================================== */
+
+ul,
+ol {
+ margin: 1em 0;
+ padding: 0 0 0 40px;
+}
+
+dd {
+ margin: 0 0 0 40px;
+}
+
+nav ul,
+nav ol {
+ list-style: none;
+ list-style-image: none;
+}
+
+
+/* =============================================================================
+ Embedded content
+ ========================================================================== */
+
+/*
+ * 1. Removes border when inside 'a' element in IE6/7/8/9, F3
+ * 2. Improves image quality when scaled in IE7
+ * code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
+ */
+
+img {
+ border: 0; /* 1 */
+ -ms-interpolation-mode: bicubic; /* 2 */
+}
+
+/*
+ * Corrects overflow displayed oddly in IE9
+ */
+
+svg:not(:root) {
+ overflow: hidden;
+}
+
+
+/* =============================================================================
+ Figures
+ ========================================================================== */
+
+/*
+ * Addresses margin not present in IE6/7/8/9, S5, O11
+ */
+
+figure {
+ margin: 0;
+}
+
+
+/* =============================================================================
+ Forms
+ ========================================================================== */
+
+/*
+ * Corrects margin displayed oddly in IE6/7
+ */
+
+form {
+ margin: 0;
+}
+
+/*
+ * Define consistent margin and padding
+ */
+
+fieldset {
+ margin: 0 2px;
+ padding: 0.35em 0.625em 0.75em;
+}
+
+/*
+ * 1. Corrects color not being inherited in IE6/7/8/9
+ * 2. Corrects alignment displayed oddly in IE6/7
+ */
+
+legend {
+ border: 0; /* 1 */
+ *margin-left: -7px; /* 2 */
+}
+
+/*
+ * 1. Corrects font size not being inherited in all browsers
+ * 2. Addresses margins set differently in IE6/7, F3/4, S5, Chrome
+ * 3. Improves appearance and consistency in all browsers
+ */
+
+button,
+input,
+select,
+textarea {
+ font-size: 100%; /* 1 */
+ margin: 0; /* 2 */
+ vertical-align: baseline; /* 3 */
+ *vertical-align: middle; /* 3 */
+}
+
+/*
+ * 1. Addresses FF3/4 setting line-height using !important in the UA stylesheet
+ * 2. Corrects inner spacing displayed oddly in IE6/7
+ */
+
+button,
+input {
+ line-height: normal; /* 1 */
+ *overflow: visible; /* 2 */
+}
+
+/*
+ * Corrects overlap and whitespace issue for buttons and inputs in IE6/7
+ * Known issue: reintroduces inner spacing
+ */
+
+table button,
+table input {
+ *overflow: auto;
+}
+
+/*
+ * 1. Improves usability and consistency of cursor style between image-type 'input' and others
+ * 2. Corrects inability to style clickable 'input' types in iOS
+ */
+
+button,
+html input[type="button"],
+input[type="reset"],
+input[type="submit"] {
+ cursor: pointer; /* 1 */
+ -webkit-appearance: button; /* 2 */
+}
+
+/*
+ * 1. Addresses box sizing set to content-box in IE8/9
+ * 2. Addresses excess padding in IE8/9
+ */
+
+input[type="checkbox"],
+input[type="radio"] {
+ box-sizing: border-box; /* 1 */
+ padding: 0; /* 2 */
+}
+
+/*
+ * 1. Addresses appearance set to searchfield in S5, Chrome
+ * 2. Addresses box sizing set to border-box in S5, Chrome (include -moz to future-proof)
+ */
+
+input[type="search"] {
+ -webkit-appearance: textfield; /* 1 */
+ -moz-box-sizing: content-box;
+ -webkit-box-sizing: content-box; /* 2 */
+ box-sizing: content-box;
+}
+
+/*
+ * Corrects inner padding displayed oddly in S5, Chrome on OSX
+ */
+
+input[type="search"]::-webkit-search-decoration {
+ -webkit-appearance: none;
+}
+
+/*
+ * Corrects inner padding and border displayed oddly in FF3/4
+ * www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
+ */
+
+button::-moz-focus-inner,
+input::-moz-focus-inner {
+ border: 0;
+ padding: 0;
+}
+
+/*
+ * 1. Removes default vertical scrollbar in IE6/7/8/9
+ * 2. Improves readability and alignment in all browsers
+ */
+
+textarea {
+ overflow: auto; /* 1 */
+ vertical-align: top; /* 2 */
+}
+
+
+/* =============================================================================
+ Tables
+ ========================================================================== */
+
+/*
+ * Remove most spacing between table cells
+ */
+
+table {
+ border-collapse: collapse;
+ border-spacing: 0;
+}
208 css/style.css
@@ -0,0 +1,208 @@
+/*
+ COLORS
+
+ Dark Blue #222438
+ Medium Blue #69697A
+ Light Blue #C5C3DE
+ Yellow #FFB000
+ Red #D92B00
+
+*/
+
+body {
+ background: #222438;
+ font-family: Georgia, Times New Roman, Times, serif;
+ font-weight: bold;
+ font-size: 20px;
+ text-align: center;
+}
+
+h1 {
+ font-size: 120px;
+ font-weight: normal;
+ margin: 0;
+ font-family: 'Luckiest Guy',Impact,Haettenschweiler,"Franklin Gothic Bold",Charcoal,Gadget,sans-serif;
+ text-transform: uppercase;
+ color: #FFB000;
+ text-shadow: 0 2px 1px #000;
+ line-height: .8;
+}
+
+h2 {
+ font-size: 150px;
+ font-weight: normal;
+ margin: 0;
+ color: #FFB000;
+ padding: 60px;
+ text-shadow: 0 2px 1px #000;
+ font-family: 'Luckiest Guy',Impact,Haettenschweiler,"Franklin Gothic Bold",Charcoal,Gadget,sans-serif;
+ text-transform: uppercase;
+}
+
+p { width: 80%; margin: 20px auto; text-shadow: 0 2px 1px #000; color: #C5C3DE; }
+a, a:visited { color: #D92B00; font-weight: bold; font-style: italic; }
+ul { list-style: none; }
+
+.download { padding: 10px; }
+
+pre { font-size: 15px; }
+code { font-style: normal; }
+blockquote {
+ text-align: left;
+ width: 720px;
+ margin: 10px auto;
+ background: #C5C3DE;
+ border: solid 2px #69697A;
+ padding: 0 40px;
+}
+
+#console {
+ display: none;
+ position: fixed;
+ top: 0;
+ left: 15px;
+ width: 500px;
+ margin: 0;
+ font-size: 14px;
+ font-style: italic;
+ background-color: #69697A;
+ text-shadow: none;
+ text-align: left;
+ padding: 3px 10px;
+ border-radius: 0 0 10px 10px;
+ z-index: 99;
+ opacity: .8;
+}
+
+#title {
+ overflow: hidden;
+ font-size: 180px;
+ margin: 0 auto -580px;
+ width: 100%;
+ height: 1000px;
+ position: relative;
+ padding-top: 30px;
+ z-index: 99;
+}
+
+.title-line { position: relative; display: block; margin: auto; width: 300%; left: -100%; }
+#title-line2 { top: -60px; }
+#title-line3 { top: -120px; }
+.title-line span { display: inline-block; line-height: 1.1; position: relative; }
+
+.credit {
+ font-size: 20px;
+ margin: 10px auto;
+ text-align: center;
+ font-style: italic;
+ color: #D92B00;
+ z-index:100;
+}
+
+.twitter-follow-button {
+ position: relative;
+ top: 8px;
+ left: 4px;
+}
+
+#download {
+ margin: 50px auto;
+ font-size: 18px;
+ width: 100%;
+ line-height: 1.8;
+}
+
+#download a { color: #69697A; }
+
+#examples-1 { overflow: hidden; }
+#fly-it { position: relative; }
+#scale-it { width: 500%; margin: 0px -200%; padding: 0; }
+
+#examples-pin { position: relative; width: 100%; height: 600px; overflow: hidden; margin-bottom: -200px; }
+.pin-frame { position: absolute; width: 100%; height: 100%; overflow: hidden; }
+.pin-frame h2 { margin-top: 120px; }
+#pin-frame-slide { background: #D92B00; margin-left:-100%; }
+#pin-frame-wipe { background: #FFB000; top:100%; }
+#pin-frame-wipe h2 { color: #D92B00; }
+#pin-frame-bounce { background: #222438; }
+#pin-frame-color { background: #222438; }
+#pin-frame-unpin { top:100%; }
+
+#examples-2 { z-index: 9999; width: 100%; height: 100%; overflow: hidden; }
+#fling-it, #move-it { position: relative; }
+#examples-parallax {
+ padding-top: 200px;
+ height: 800px;
+ margin-bottom: -600px;
+ overflow: hidden;
+}
+#parallax-it {
+ padding: 0;
+ font-size: 80px;
+ position: relative;
+}
+
+#parallax-it-left {
+ position: relative;
+ font-size: 120px;
+ left: -160px;
+ color: #C5C3DE;
+ opacity: 0.5;
+ -moz-opacity: 0.5;
+ filter:alpha(opacity=5);
+ overflow: hidden;
+}
+
+#parallax-it-right {
+ position: relative;
+ font-size: 160px;
+ left: 80px;
+ color: #C5C3DE;
+ opacity: 0.25;
+ -moz-opacity: 0.25;
+ filter:alpha(opacity=2.5);
+ overflow: hidden;
+ width: 900px;
+}
+
+#howtouse { padding-top: 200px; }
+
+.divider { font-size: 14px; padding-top: 20px; }
+
+.disclaimer {
+ font-size: 18px;
+ font-style: italic;
+ font-weight: normal;
+ margin: 0 auto;
+}
+
+#instructions { padding-top: 40px; }
+
+#instructions p { margin: 0px auto 20px; }
+
+#instructions-animation { padding-top: 40px; }
+
+.param-list {
+ color: #C5C3DE;
+ font-size: 18px;
+ line-height: 1.4;
+ padding: 0 18px;
+}
+
+.param-list li {
+ padding-bottom: 20px;
+ text-shadow: 0 2px 1px #000;
+}
+
+.param {
+ display: block;
+ color: #69697A;
+}
+
+.param-def small {
+ display: block;
+ font-weight: normal;
+ font-style: italic;
+}
+
+#credits { padding: 80px 0; }
329 index.html
@@ -0,0 +1,329 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+ <title>SUPERSCROLLORAMA</title>
+
+ <link href='http://fonts.googleapis.com/css?family=Luckiest+Guy' rel='stylesheet' type='text/css'>
+ <link rel="stylesheet" href="css/normalize.css" type="text/css">
+ <link rel="stylesheet" href="css/style.css" type="text/css">
+</head>
+<body>
+ <a href="https://github.com/johnpolacek/superscrollorama">
+ <img style="position: fixed; top: 0; right: 0; border: 0; z-index: 11;" src="https://a248.e.akamai.net/assets.github.com/img/71eeaab9d563c2b3c590319b398dd35683265e85/687474703a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677261795f3664366436642e706e67" alt="Fork me on GitHub" alt="Fork me on GitHub" />
+ </a>
+
+ <div id="intro">
+ <h1 id="title">
+ <span id="title-line1" class="title-line">Super</span>
+ <span id="title-line2" class="title-line">scroll</span>
+ <span id="title-line3" class="title-line">orama</span>
+ </h1>
+ <div id="title-info">
+ <p id="desc">The jQuery plugin for supercool scroll animation</p>
+ <p class="credit">powered by <a href="http://www.greensock.com">Greensock</a></p>
+ <p class="credit">
+ created by <a href="http://twitter.com/johnpolacek">John Polacek</a>
+ </p>
+ <p class="credit">
+ <a href="https://twitter.com/johnpolacek" class="twitter-follow-button" data-show-count="false" data-size="large">Follow @johnpolacek</a>
+ <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+ </p>
+ </div>
+ <p id="download">
+ <span class="accent">&#9733;</span> DOWNLOAD <span class="accent">&#9733;</span><br />
+ <a class="download" href="https://github.com/johnpolacek/scrollorama/zipball/master">zip</a>
+ <a class="download" href="https://github.com/johnpolacek/scrollorama/tarball/master">tar</a>
+ </p>
+ </div>
+
+ <div id="content-wrapper">
+
+ <div id="examples-1">
+ <h2 id="fade-it">Fade It</h2>
+ <h2 id="fly-it">Fly It</h2>
+ <h2 id="spin-it">Spin It</h2>
+ <h2 id="scale-it">Scale It</h2>
+ <h2 id="smush-it">Smush It</h2>
+ </div>
+
+ <div id="examples-pin">
+ <div id="pin-frame-pin" class="pin-frame"><h2>Pin It</h2></div>
+ <div id="pin-frame-slide" class="pin-frame"><h2>Slide It</h2></div>
+ <div id="pin-frame-wipe" class="pin-frame"><h2>Wipe It</h2></div>
+ <div id="pin-frame-bounce" class="pin-frame"><h2>Bounce It</h2></div>
+ <div id="pin-frame-color" class="pin-frame"><h2>Color It</h2></div>
+ <div id="pin-frame-unpin" class="pin-frame"><h2>Unpin It</h2></div>
+ </div>
+
+ <div id="examples-2">
+ <h2 id="fling-it">Fling It</h2>
+ <h2 id="move-it">Move It</h2>
+ </div>
+
+ <div id="examples-parallax">
+ <h2 id="parallax-it">Parallax It</h2>
+ <h2 id="parallax-it-left">Parallax It</h2>
+ <h2 id="parallax-it-right">Parallax It</h2>
+ </div>
+
+ <h2 id="bring-it">Bring It</h2>
+
+ <div id="howtouse">
+ <h1>How To Use</h1>
+ <div id="caution">
+ <p class="disclaimer">Please note, this is a powerful tool, and with great power comes great responsibility. <br />Use wisely. A little subtlety can go a long way.</p>
+ </div>
+ <p class="divider">&#9733; &#9733; &#9733;</p>
+ <div id="instructions">
+ <p>Superscrollorama is powered by TweenMax and the Greensock Tweening Engine. Go to <a href="http://www.greensock.com/get-started-js/" target="_blank">greensock.com</a> for documentation on how to use it. Why Greensock/TweenMax? Great performance, ease-of-use, expandibility and basically because it is awesome.</p>
+ <p>First, link to the <a href="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" target="_blank">jQuery CDN</a> and then embed TweenMax.js and Superscrollorama. Next, start up Superscrollorama. Think of it as a controller for animation. You add tweens and timelines to it, targeting when an element appears in the viewport or at a specific scroll point.</p>
+ <p>In the example below, the animation fades in when scrolled into view.</p>
+ <p><blockquote><pre>
+ $(document).ready(function() {
+ var controller = $.superscrollorama();
+ controller.addTween('#fade',
+ TweenLite.from($('#fade'), .5, {css:{opacity:0}}));
+ });</pre></blockquote></p>
+
+ <p class="divider">&#9733; &#9733; &#9733;</p>
+ <p>The default duration is 0, which means the tween plays through completely when its scroll point is reached. You can add a duration which will instead sync the tween progress to the scrollbar position. Instead of one tween, you can create a timeline of multiple tweens.</p>
+ <p><blockquote><pre>
+ // parallax example
+ controller.addTween(
+ '#examples-parallax',
+ (new TimelineLite())
+ .append([
+ TweenLite.fromTo($('#parallax-it-left'), 1,
+ {css:{top: 200}, immediateRender:true},
+ {css:{top: -600}}),
+ TweenLite.fromTo($('#parallax-it-right'), 1,
+ {css:{top: 500}, immediateRender:true},
+ {css:{top: -1250}})
+ ]),
+ 1000 // scroll duration of tween
+ );</pre></blockquote></p>
+
+ <p class="divider">&#9733; &#9733; &#9733;</p>
+ <p>Pass in a function for when the animation is complete.</p>
+ <p><blockquote><pre>
+controller.addTween('#fade',
+ TweenLite.from($('#fade'),.5,{
+ css:{opacity:0},
+ onComplete: function(){alert('test')}
+ }));</pre></blockquote></p>
+
+ <p class="divider">&#9733; &#9733; &#9733;</p>
+ <p>You can pin an element, do a series of animations and then unpin it.</p>
+ <p><blockquote><pre>
+ controller.pin($('#examples-2'), 3000, {
+ anim: (new TimelineLite())
+ .append(
+ TweenLite.fromTo($('#move-it'), .5,
+ {css:{left: -200, top: 500}, immediateRender:true},
+ {css:{top: -400}})
+ )
+ .append(
+ TweenLite.to($('#move-it'), .5,
+ {css:{left: 200}})
+ )
+ .append(
+ TweenLite.to($('#move-it'), .5,
+ {css:{top: -200}})
+ )
+ .append(
+ TweenLite.to($('#move-it'), .5,
+ {css:{left: 0}})
+ )
+ })</pre></blockquote></p>
+
+ </div>
+
+ <div id="credits">
+ <h1>Credits</h1>
+ <p>Superscrollorama by <a href="http://twitter.com/johnpolacek">John Polacek</a></p>
+ <p><a href="http://greensock.com">Greensock Tweening Engine &amp; TweenLite</a> by <a href="http://greensock.com">Greensock</a></p>
+ <p><a href="http://letteringjs.com">Lettering.js</a> by <a href="http://daverupert.com">Dave Rupert</a></p>
+ <p><a href="http://code.google.com/webfonts/specimen/Luckiest+Guy">Luckiest Guy Font</a> by <a href="https://profiles.google.com/astigmaticfonts/about">Astigmatic Fonts</a></p>
+ </div>
+
+ </div>
+ </div>
+ <script type="text/javascript" src="js/greensock/TweenMax.min.js"></script>
+ <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
+ <script>window.jQuery || document.write('<script src="_/js/jquery-1.7.2.min.js"><\/script>')</script>
+ <script src="js/jquery.lettering-0.6.1.min.js"></script>
+ <script src="js/jquery.superscrollorama.js"></script>
+ <script>
+ $(document).ready(function() {
+
+ // hide content until after title animation
+ $('#content-wrapper').css('display','none');
+
+ // lettering.js to split up letters for animation
+ $('#title-line1').lettering();
+ $('#title-line2').lettering();
+ $('#title-line3').lettering();
+
+ // TimelineLite for title animation, then start up superscrollorama when complete
+ (new TimelineLite())
+ .from( $('#title-line1 span'), .5, {delay: 1, css:{right:'1000px'}, ease:Back.easeOut})
+ .from( $('#title-line2'), .5, {css:{top:'1000px',opacity:'0'}, ease:Expo.easeOut})
+ .append([
+ TweenLite.from( $('#title-line3 .char1'), .5+Math.random(), {css:{top: '-200px', right:'1000px'}, ease:Elastic.easeOut}),
+ TweenLite.from( $('#title-line3 .char2'), .5+Math.random(), {css:{top: '300px', right:'1000px'}, ease:Elastic.easeOut}),
+ TweenLite.from( $('#title-line3 .char3'), .5+Math.random(), {css:{top: '-400px', right:'1000px'}, ease:Elastic.easeOut}),
+ TweenLite.from( $('#title-line3 .char4'), .5+Math.random(), {css:{top: '-200px', left:'1000px'}, ease:Elastic.easeOut}),
+ TweenLite.from( $('#title-line3 .char5'), .5+Math.random(), {css:{top: '200px', left:'1000px'}, ease:Elastic.easeOut})
+ ])
+ .from( $('#title-info'), 1, {css:{opacity:0, 'margin-top':40}, delay:-1, ease:Quad.easeOut, onComplete:initScrollAnimations});
+
+ function initScrollAnimations() {
+ $('#content-wrapper').css('display','block');
+ var controller = $.superscrollorama();
+
+ // title tweens
+ $('.title-line span').each(function() {
+ controller.addTween(10, TweenLite.to(this, .75, {css:{top: Math.random()*-200-600, left: (Math.random()*1000)-500, rotation:Math.random()*720-360, 'font-size': Math.random()*300+150}, ease:Quad.easeOut}));
+ });
+ controller.addTween(10, TweenLite.to($('#title-line1'), .75, {css:{top: 600}, ease:Quad.easeOut}));
+ controller.addTween(10, TweenLite.to($('#title-line2'), .75, {css:{top: 200}, ease:Quad.easeOut}));
+ controller.addTween(10, TweenLite.to($('#title-line3'), .75, {css:{top: -200}, ease:Quad.easeOut}));
+
+ // individual element tween examples
+ controller.addTween('#fade-it', TweenLite.from( $('#fade-it'), .5, {css:{opacity: 0}}));
+ controller.addTween('#fly-it', TweenLite.from( $('#fly-it'), .25, {css:{right:'1000px'}, ease:Quad.easeInOut}));
+ controller.addTween('#spin-it', TweenLite.from( $('#spin-it'), .25, {css:{opacity:0, rotation: 720}, ease:Quad.easeOut}));
+ controller.addTween('#scale-it', TweenLite.fromTo( $('#scale-it'), .25, {css:{opacity:0, fontSize:'20px'}, immediateRender:true, ease:Quad.easeInOut}, {css:{opacity:1, fontSize:'240px'}, ease:Quad.easeInOut}));
+ controller.addTween('#smush-it', TweenLite.fromTo( $('#smush-it'), .25, {css:{opacity:0, 'letter-spacing':'30px'}, immediateRender:true, ease:Quad.easeInOut}, {css:{opacity:1, 'letter-spacing':'-10px'}, ease:Quad.easeInOut}), 0, 100); // 100 px offset for better timing
+
+ // set duration, in pixels scrolled, for pinned element
+ var pinDur = 4000;
+ // create animation timeline for pinned element
+ var pinAnimations = new TimelineLite();
+ pinAnimations
+ .append(TweenLite.from($('#pin-frame-pin h2'), .5, {css:{marginTop:0}, ease: Quad.easeInOut}))
+ .append([
+ TweenLite.to($('#pin-frame-slide'), .5, {css:{marginLeft:0}}),
+ TweenLite.to($('#pin-frame-pin'), .5, {css:{marginLeft:'100%'}})
+ ], .5)
+ .append([
+ TweenLite.to($('#pin-frame-wipe'), .5, {css:{top:0}}),
+ TweenLite.from($('#pin-frame-wipe h2'), .5, {css:{marginTop:'-600px'}})
+ ], .5)
+ .append(TweenLite.from($('#pin-frame-bounce'), 5, {css:{marginTop:'-100%'}, ease:Bounce.easeOut}), .5)
+ .append(TweenLite.from($('#pin-frame-color'), .25, {css:{opacity:0}}), .5)
+ .append([
+ TweenLite.to($('#pin-frame-color'), .25, {css:{backgroundColor:'blue'}}),
+ TweenLite.to($('#pin-frame-color h2'), .25, {css:{color:'orange'}})
+ ])
+ .append([
+ TweenLite.to($('#pin-frame-color'), .25, {css:{backgroundColor:'green'}}),
+ TweenLite.to($('#pin-frame-color h2'), .25, {css:{color:'red'}})
+ ])
+ .append([
+ TweenLite.to($('#pin-frame-color'), .25, {css:{backgroundColor:'yellow'}}),
+ TweenLite.to($('#pin-frame-color h2'), .25, {css:{color:'purple'}})
+ ])
+ .append([
+ TweenLite.to($('#pin-frame-color'), .25, {css:{backgroundColor:'orange'}}),
+ TweenLite.to($('#pin-frame-color h2'), .25, {css:{color:'blue'}})
+ ])
+ .append([
+ TweenLite.to($('#pin-frame-color'), .25, {css:{backgroundColor:'red'}}),
+ TweenLite.to($('#pin-frame-color h2'), .25, {css:{color:'green'}})
+ ])
+ .append([
+ TweenLite.to($('#pin-frame-color'), .25, {css:{backgroundColor:'#222438'}}),
+ TweenLite.to($('#pin-frame-color h2'), .25, {css:{color:'#FFB000'}})
+ ])
+ .append(TweenLite.to($('#pin-frame-unpin'), .5, {css:{top:'100px'}}));
+
+ // pin element, use onPin and onUnpin to adjust the height of the element
+ controller.pin($('#examples-pin'), pinDur, {
+ anim:pinAnimations,
+ onPin: function() {
+ $('#examples-pin').css('height','100%');
+ },
+ onUnpin: function() {
+ $('#examples-pin').css('height','600px');
+ }
+ });
+
+ // another pinning example
+ controller.pin($('#examples-2'), 3000, {
+ anim: (new TimelineLite())
+ .append(
+ TweenLite.fromTo($('#fling-it'), 2,
+ {css:{left:-1000, top: 500, rotation: -360}, immediateRender:true},
+ {css:{left:2000, top: -600, rotation: 360}})
+ )
+ .append(
+ TweenLite.fromTo($('#move-it'), .75,
+ {css:{left: -200, top: 800}, immediateRender:true},
+ {css:{top: -200}}),
+ -1.5 // offset for better timing
+ )
+ .append(
+ TweenLite.to($('#move-it'), .5,
+ {css:{left: 200}})
+ )
+ .append(
+ TweenLite.to($('#move-it'), .5,
+ {css:{top: 0}})
+ )
+ .append(
+ TweenLite.to($('#move-it'), .5,
+ {css:{left: 0}})
+ )
+ })
+
+ // parallax example, setting duration ties animation to scroll position
+ // you can target a scroll position instead of an element (whose position can change)
+ controller.addTween(
+ '#examples-parallax',
+ (new TimelineLite())
+ .append([
+ TweenLite.fromTo($('#parallax-it-left'), 1,
+ {css:{top: 200}, immediateRender:true},
+ {css:{top: -600}}),
+ TweenLite.fromTo($('#parallax-it-right'), 1,
+ {css:{top: 500}, immediateRender:true},
+ {css:{top: -1250}})
+ ]),
+ 1000 // scroll duration of tween
+ );
+
+ $('#bring-it').lettering();
+ controller.addTween(
+ '#bring-it',
+ (new TimelineLite())
+ .append([
+ TweenLite.from($('#bring-it .char1'), 1,
+ {css:{fontSize: 0}, immediateRender:true, ease:Elastic.easeOut}),
+ TweenLite.from($('#bring-it .char2'), .6,
+ {css:{fontSize: 0}, immediateRender:true, ease:Elastic.easeOut}),
+ TweenLite.from($('#bring-it .char3'), 1.1,
+ {css:{fontSize: 0}, immediateRender:true, ease:Elastic.easeOut}),
+ TweenLite.from($('#bring-it .char4'), .7,
+ {css:{fontSize: 0}, immediateRender:true, ease:Elastic.easeOut}),
+ TweenLite.from($('#bring-it .char5'), .9,
+ {css:{fontSize: 0}, immediateRender:true, ease:Elastic.easeOut}),
+ TweenLite.from($('#bring-it .char6'), 1.2,
+ {css:{fontSize: 0}, immediateRender:true, ease:Elastic.easeOut}),
+ TweenLite.from($('#bring-it .char7'), .6,
+ {css:{fontSize: 0}, immediateRender:true, ease:Elastic.easeOut}),
+ TweenLite.from($('#bring-it .char8'), .8,
+ {css:{fontSize: 0}, immediateRender:true, ease:Elastic.easeOut})
+ ])
+ ,
+ 1200,
+ -100 // offset for better timing
+ );
+
+ }
+ });
+ </script>
+
+</body></html>
BIN  js/greensock/.DS_Store.bin
Binary file not shown
14 js/greensock/TimelineLite.min.js
@@ -0,0 +1,14 @@
+/**
+ * VERSION: beta 1.04
+ * DATE: 2012-05-15
+ * JavaScript (ActionScript 3 and 2 also available)
+ * UPDATES AND DOCS AT: http://www.greensock.com
+ *
+ * Copyright (c) 2008-2012, GreenSock. All rights reserved.
+ * This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for
+ * corporate Club GreenSock members, the software agreement that was issued with the corporate
+ * membership.
+ *
+ * @author: Jack Doyle, jack@greensock.com
+ **/
+(window._gsQueue||(window._gsQueue=[])).push(function(){_gsRequire("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(m,j,g){var h=function(a){j.call(this,a);this._labels={};this.autoRemoveChildren=!0==this.vars.autoRemoveChildren;this.smoothChildTiming=!0==this.vars.smoothChildTiming;this._sortChildren=!0;this._onUpdate=this.vars.onUpdate;for(var a=n.length,c,b;-1<--a;)if(b=this.vars[n[a]])for(c=b.length;-1<--c;)"{self}"===b[c]&&(b=this.vars[n[a]]=b.concat(),b[c]=this); this.vars.tweens instanceof Array&&this.insertMultiple(this.vars.tweens,0,this.vars.align||"normal",this.vars.stagger||0)},n=["onStartParams","onUpdateParams","onCompleteParams","onReverseCompleteParams","onRepeatParams"],o=[],d=h.prototype=new j;d.constructor=h;d.kill()._gc=!1;d.to=function(a,c,b,f,e){return this.insert(new g(a,c,b),this._parseTimeOrLabel(e)+(f||0))};d.from=function(a,c,b,f,e){return this.insert(g.from(a,c,b),this._parseTimeOrLabel(e)+(f||0))};d.fromTo=function(a,c,b,f,e,d){return this.insert(g.fromTo(a, c,b,f),this._parseTimeOrLabel(d)+(e||0))};d.staggerTo=function(a,c,b,f,e,d,i,k,p){i=new h({onComplete:i,onCompleteParams:k,onCompleteScope:p});f=f||0;for(k=0;k<a.length;k++)i.insert(new g(a[k],c,b),k*f);return this.insert(i,this._parseTimeOrLabel(d)+(e||0))};d.staggerFrom=function(a,c,b,f,e,d,i,k,g){null==b.immediateRender&&(b.immediateRender=!0);b.runBackwards=!0;return this.staggerTo(a,c,b,f,e,d,i,k,g)};d.staggerFromTo=function(a,c,b,f,e,d,i,k,g,h){f.startAt=b;b.immediateRender&&(f.immediateRender= !0);return this.staggerTo(a,c,f,e,d,i,k,g,h)};d.call=function(a,c,b,f,e){return this.insert(g.delayedCall(0,a,c,b),this._parseTimeOrLabel(e)+(f||0))};d.set=function(a,c,b,f){c.immediateRender=!1;return this.insert(new g(a,0,c),this._parseTimeOrLabel(f)+(b||0))};h.exportRoot=function(a,c){a=a||{};null==a.smoothChildTiming&&(a.smoothChildTiming=!0);var b=new h(a),f=b._timeline;null==c&&(c=!0);f._remove(b,!0);b._startTime=0;b._rawPrevTime=b._time=b._totalTime=f._time;for(var e=f._first,d;e;)d=e._next, (!c||!(e instanceof g&&e.target==e.vars.onComplete))&&b.insert(e,e._startTime-e._delay),e=d;f.insert(b,0);return b};d.insert=function(a,c){if(!(a instanceof m)){if(a instanceof Array)return this.insertMultiple(a,c);if("string"===typeof a)return this.addLabel(a,this._parseTimeOrLabel(c||0,!0));if("function"===typeof a)a=g.delayedCall(0,a);else throw"ERROR: Cannot insert() "+a+" into the TimelineLite/Max because it is neither a tween, timeline, function, nor a String.";}j.prototype.insert.call(this, a,this._parseTimeOrLabel(c||0,!0));if(this._gc&&!this._paused&&this._startTime+(a._startTime+a._totalDuration/a._timeScale)/this._timeScale>this.timeline._time)for(var b=this;b._gc&&b._timeline;)b.totalTime(b._totalTime,!0),b=b._timeline;return this};d.remove=function(a){if(a instanceof m)return this._remove(a,!1);if(a instanceof Array){for(var c=a.length;-1<--c;)this.remove(a[c]);return this}return"string"===typeof a?this.removeLabel(a):this.kill(null,a)};d.append=function(a,c){return this.insert(a, this.duration()+(c||0))};d.insertMultiple=function(a,c,b,f){for(var b=b||"normal",f=f||0,e,d=this._parseTimeOrLabel(c||0,!0),i=a.length,c=0;c<i;c++){if((e=a[c])instanceof Array)e=new h({tweens:e});this.insert(e,d);"string"===typeof e||"function"===typeof e||("sequence"===b?d=e._startTime+e.totalDuration()/e._timeScale:"start"===b&&(e._startTime-=e.delay()));d+=f}return this._uncache(!0)};d.appendMultiple=function(a,c,b,f){return this.insertMultiple(a,this.duration()+(c||0),b,f)};d.addLabel=function(a, c){this._labels[a]=c;return this};d.removeLabel=function(a){delete this._labels[a];return this};d.getLabelTime=function(a){return null!=this._labels[a]?this._labels[a]:-1};d._parseTimeOrLabel=function(a,c){return null==a?this.duration():"string"===typeof a&&isNaN(a)?null==this._labels[a]?c?this._labels[a]=this.duration():0:this._labels[a]:Number(a)};d.seek=function(a,c){return this.totalTime(this._parseTimeOrLabel(a,!1),!1!=c)};d.stop=function(){return this.paused(!0)};d.gotoAndPlay=function(a,c){return j.prototype.play.call(this, a,c)};d.gotoAndStop=function(a,c){return this.pause(a,c)};d.render=function(a,c,b){this._gc&&this._enabled(!0,!1);this._active=!this._paused;var f=!this._dirty?this._totalDuration:this.totalDuration(),e=this._time,d=this._startTime,i=this._timeScale,g=this._paused,h,j,l;if(a>=f){this._totalTime=this._time=f;if(!this._reversed&&!this._hasPausedChild()&&(h=!0,l="onComplete",0===this._duration&&(0===a||0>this._rawPrevTime)))this._rawPrevTime!==a&&(b=!0);this._rawPrevTime=a;a=f+1.0E-6}else if(0>=a){this._totalTime= this._time=0;if(0!==e||0===this._duration&&0<this._rawPrevTime)l="onReverseComplete",h=this._reversed;0>a?(this._active=!1,0===this._duration&&0<=this._rawPrevTime&&(b=!0)):this._initted||(b=!0);this._rawPrevTime=a;a=-1.0E-6}else this._totalTime=this._time=this._rawPrevTime=a;if(this._time!==e||b){this._initted||(this._initted=!0);0===e&&this.vars.onStart&&0!==this._time&&(c||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||o));if(this._time>e)for(b=this._first;b;){j= b._next;if(this._paused&&!g)break;else if(b._active||b._startTime<=this._time&&!b._paused&&!b._gc)b._reversed?b.render((!b._dirty?b._totalDuration:b.totalDuration())-(a-b._startTime)*b._timeScale,c,!1):b.render((a-b._startTime)*b._timeScale,c,!1);b=j}else for(b=this._last;b;){j=b._prev;if(this._paused&&!g)break;else if(b._active||b._startTime<=e&&!b._paused&&!b._gc)b._reversed?b.render((!b._dirty?b._totalDuration:b.totalDuration())-(a-b._startTime)*b._timeScale,c,!1):b.render((a-b._startTime)*b._timeScale, c,!1);b=j}this._onUpdate&&(c||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||o));if(l&&!this._gc&&(d===this._startTime||i!=this._timeScale))if(0===this._time||f>=this.totalDuration())h&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),c||this.vars[l]&&this.vars[l].apply(this.vars[l+"Scope"]||this,this.vars[l+"Params"]||o)}};d._hasPausedChild=function(){for(var a=this._first;a;){if(a._paused||a instanceof h&&a._hasPausedChild())return!0;a=a._next}return!1}; d.getChildren=function(a,c,b,f){for(var f=f||-9999999999,e=[],d=this._first,i=0;d;)d._startTime<f||(d instanceof g?!1!=c&&(e[i++]=d):(!1!=b&&(e[i++]=d),!1!=a&&(e=e.concat(d.getChildren(!0,c,b)),i=e.length))),d=d._next;return e};d.getTweensOf=function(a,c){for(var b=g.getTweensOf(a),d=b.length,e=[],h=0;-1<--d;)if(b[d].timeline===this||c&&this._contains(b[d]))e[h++]=b[d];return e};d._contains=function(a){for(a=a.timeline;a;){if(a===this)return!0;a=a.timeline}return!1};d.shiftChildren=function(a,c,b){for(var b= b||0,d=this._first;d;)d._startTime>=b&&(d._startTime+=a),d=d._next;if(c)for(var e in this._labels)this._labels[e]>=b&&(this._labels[e]+=a);return this._uncache(!0)};d._kill=function(a,c){if(null==a&&null==c)return this._enabled(!1,!1);for(var b=null==c?this.getChildren(!0,!0,!1):this.getTweensOf(c),d=b.length,e=!1;-1<--d;)b[d]._kill(a,c)&&(e=!0);return e};d.clear=function(a){var c=this.getChildren(!1,!0,!0),b=c.length;for(this._time=this._totalTime=0;-1<--b;)c[b]._enabled(!1,!1);!1!=a&&(this._labels= {});return this._uncache(!0)};d.invalidate=function(){for(var a=this._first;a;)a.invalidate(),a=a._next;return this};d._enabled=function(a,c){if(a==this._gc)for(var b=this._first;b;)b._enabled(a,!0),b=b._next;return j.prototype._enabled.call(this,a,c)};d.progress=function(a){return!arguments.length?this._time/this.duration():this.totalTime(this.duration()*a,!1)};d.duration=function(a){if(!arguments.length)return this._dirty&&this.totalDuration(),this._duration;0!==this.duration()&&0!==a&&this.timeScale(this._duration/ a);return this};d.totalDuration=function(a){if(!arguments.length){if(this._dirty){for(var c=0,b=this._first,d=-999999999999,e;b;)e=b._next,b._startTime<d&&this._sortChildren?this.insert(b,b._startTime-b._delay):d=b._startTime,0>b._startTime&&(c-=b._startTime,this.shiftChildren(-b._startTime,!1,-9999999999)),b=b._startTime+(!b._dirty?b._totalDuration:b.totalDuration())/b._timeScale,b>c&&(c=b),b=e;this._duration=this._totalDuration=c;this._dirty=!1}return this._totalDuration}0!==this.totalDuration()&& 0!==a&&this.timeScale(this._totalDuration/a);return this};d.usesFrames=function(){for(var a=this._timeline;a._timeline;)a=a._timeline;return a===m._rootFramesTimeline};d.rawTime=function(){return this._paused||0!==this._totalTime&&this._totalTime!==this._totalDuration?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale};return h},!0)});window._gsRequire&&_gsQueue.pop()();
14 js/greensock/TimelineMax.min.js
@@ -0,0 +1,14 @@
+/*!
+ * VERSION: beta 1.2
+ * DATE: 2012-05-15
+ * JavaScript (ActionScript 3 and 2 also available)
+ * UPDATES AND DOCS AT: http://www.greensock.com
+ *
+ * Copyright (c) 2008-2012, GreenSock. All rights reserved.
+ * This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for
+ * corporate Club GreenSock members, the software agreement that was issued with the corporate
+ * membership.
+ *
+ * @author: Jack Doyle, jack@greensock.com
+ */
+(window._gsQueue||(window._gsQueue=[])).push(function(){_gsRequire("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(g,j,f){var k=function(b){g.call(this,b);this._repeat=this.vars.repeat||0;this._repeatDelay=this.vars.repeatDelay||0;this._cycle=0;this._yoyo=!0==this.vars.yoyo;this._dirty=!0},n=[],p=new f(null,null,1,0),f=k.prototype=new g;f.constructor=k;f.kill()._gc=!1;k.version=12;f.invalidate=function(){this._yoyo=!0==this.vars.yoyo;this._repeat=this.vars.repeat||0;this._repeatDelay= this.vars.repeatDelay||0;this._uncache(!0);return g.prototype.invalidate.call(this)};f.addCallback=function(b,a,d,c){return this.insert(j.delayedCall(0,b,d,c),a)};f.removeCallback=function(b,a){if(null==a)this._kill(null,b);else for(var d=this.getTweensOf(b,!1),c=d.length,h=this._parseTimeOrLabel(a,!1);-1<--c;)d[c]._startTime===h&&d[c]._enabled(!1,!1);return this};f.tweenTo=function(b,a){var a=a||{},d={ease:p,overwrite:2,useFrames:this.usesFrames(),immediateRender:!1},c,h;for(c in a)d[c]=a[c];d.time= this._parseTimeOrLabel(b,!1);h=new j(this,Math.abs(Number(d.time)-this._time)/this._timeScale||0.001,d);d.onStart=function(){h.target.paused(!0);h.vars.time!=h.target.time()&&h.duration(Math.abs(h.vars.time-h.target.time())/h.target._timeScale);a.onStart&&a.onStart.apply(a.onStartScope||h,a.onStartParams||n)};return h};f.tweenFromTo=function(b,a,d){d=d||{};d.startAt={time:this._parseTimeOrLabel(b,!1)};b=this.tweenTo(a,d);return b.duration(Math.abs(b.vars.time-b.vars.startAt.time)/this._timeScale|| 0.001)};f.render=function(b,a,d){this._gc&&this._enabled(!0,!1);this._active=!this._paused;var c=!this._dirty?this._totalDuration:this.totalDuration(),h=this._time,e=this._totalTime,i=this._startTime,f=this._timeScale,o=this._rawPrevTime,k=this._paused,m=this._cycle,l,g;if(b>=c){this._locked||(this._totalTime=c,this._cycle=this._repeat);if(!this._reversed&&!this._hasPausedChild()&&(l=!0,g="onComplete",0===this._duration&&(0===b||0>this._rawPrevTime)))this._rawPrevTime!==b&&(d=!0);this._rawPrevTime= b;this._yoyo&&0!==(this._cycle&1)?(this._time=0,b=-1.0E-6):(this._time=this._duration,b=this._duration+1.0E-6)}else if(0>=b){this._locked||(this._totalTime=this._cycle=0);this._time=0;if(0!==h||0===this._duration&&0<this._rawPrevTime)g="onReverseComplete",l=this._reversed;0>b?(this._active=!1,0===this._duration&&0<=this._rawPrevTime&&(d=!0)):this._initted||(d=!0);this._rawPrevTime=b;b=-1.0E-6}else if(this._time=this._rawPrevTime=b,!this._locked&&(this._totalTime=b,0!==this._repeat))(b=this._duration+ this._repeatDelay,this._cycle=this._totalTime/b>>0,0!==this._cycle&&this._cycle===this._totalTime/b&&this._cycle--,this._time=this._totalTime-this._cycle*b,this._yoyo&&0!=(this._cycle&1)&&(this._time=this._duration-this._time),this._time>this._duration)?(this._time=this._duration,b=this._duration+1.0E-6):0>this._time?(this._time=0,b=-1.0E-6):b=this._time;if(this._cycle!==m&&!this._locked){var j=this._yoyo&&0!==(m&1),p=j===(this._yoyo&&0!==(this._cycle&1)),q=this._totalTime,r=this._cycle,s=this._rawPrevTime, t=this._time;this._totalTime=m*this._duration;this._cycle<m?j=!j:this._totalTime+=this._duration;this._time=h;this._rawPrevTime=o;this._cycle=m;this._locked=!0;h=j?0:this._duration;this.render(h,a,!1);a||this._gc||this.vars.onRepeat&&this.vars.onRepeat.apply(this.vars.onRepeatScope||this,vars.onRepeatParams||n);p&&(h=j?this._duration+1.0E-6:-1.0E-6,this.render(h,!0,!1));this._time=t;this._totalTime=q;this._cycle=r;this._rawPrevTime=s;this._locked=!1}if(this._time!==h||d){this._initted||(this._initted= !0);0===e&&this.vars.onStart&&0!==this._totalTime&&(a||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||n));if(this._time>h)for(d=this._first;d;){e=d._next;if(this._paused&&!k)break;else if(d._active||d._startTime<=this._time&&!d._paused&&!d._gc)d._reversed?d.render((!d._dirty?d._totalDuration:d.totalDuration())-(b-d._startTime)*d._timeScale,a,!1):d.render((b-d._startTime)*d._timeScale,a,!1);d=e}else for(d=this._last;d;){e=d._prev;if(this._paused&&!k)break;else if(d._active|| d._startTime<=h&&!d._paused&&!d._gc)d._reversed?d.render((!d._dirty?d._totalDuration:d.totalDuration())-(b-d._startTime)*d._timeScale,a,!1):d.render((b-d._startTime)*d._timeScale,a,!1);d=e}this._onUpdate&&(a||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||n));if(g&&!this._locked&&!this._gc&&(i===this._startTime||f!=this._timeScale))if(0===this._time||c>=this.totalDuration())l&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),a||this.vars[g]&& this.vars[g].apply(this.vars[g+"Scope"]||this,this.vars[g+"Params"]||n)}};f.getActive=function(b,a,d){null==b&&(b=!0);null==a&&(a=!0);null==d&&(d=!1);var c=[],b=this.getChildren(b,a,d),a=0,d=b.length,h,e;for(h=0;h<d;h++)if(e=b[h],!e._paused&&e._timeline._time>=e._startTime&&e._timeline._time<e._startTime+e._totalDuration/e._timeScale){var i;a:{for(i=e._timeline;i;){if(i._paused){i=!0;break a}i=i._timeline}i=!1}i||(c[a++]=e)}return c};f.getLabelAfter=function(b){!b&&0!==b&&(b=this._time);var a=this.getLabelsArray(), d=a.length,c;for(c=0;c<d;c++)if(a[c].time>b)return a[c].name;return null};f.getLabelBefore=function(b){null==b&&(b=this._time);for(var a=this.getLabelsArray(),d=a.length;-1<--d;)if(a[d].time<b)return a[d].name;return null};f.getLabelsArray=function(){var b=[],a=0,d;for(d in this._labels)b[a++]={time:this._labels[d],name:d};b.sort(function(a,d){return a.time-d.time});return b};f.progress=function(b){return!arguments.length?this._time/this.duration():this.totalTime(this.duration()*b+this._cycle*this._duration, !1)};f.totalProgress=function(b){return!arguments.length?this._totalTime/this.totalDuration():this.totalTime(this.totalDuration()*b,!1)};f.totalDuration=function(b){return!arguments.length?(this._dirty&&(g.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration):-1==this._repeat?this:this.duration((b-this._repeat*this._repeatDelay)/(this._repeat+1))};f.time=function(b,a){if(!arguments.length)return this._time; this._dirty&&this.totalDuration();b>this._duration&&(b=this._duration);this._yoyo&&0!==(this._cycle&1)?b=this._duration-b+this._cycle*(this._duration+this._repeatDelay):0!=this._repeat&&(b+=this._cycle*(this._duration+this._repeatDelay));return this.totalTime(b,a)};f.repeat=function(b){if(!arguments.length)return this._repeat;this._repeat=b;return this._uncache(!0)};f.repeatDelay=function(b){if(!arguments.length)return this._repeatDelay;this._repeatDelay=b;return this._uncache(!0)};f.yoyo=function(b){if(!arguments.length)return this._yoyo; this._yoyo=b;return this};f.currentLabel=function(b){return!arguments.length?this.getLabelBefore(this._time+1.0E-8):this.seek(b,!0)};return k},!0);_gsRequire("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(g,j,f){var k=function(a){j.call(this,a);this._labels={};this.autoRemoveChildren=!0==this.vars.autoRemoveChildren;this.smoothChildTiming=!0==this.vars.smoothChildTiming;this._sortChildren=!0;this._onUpdate=this.vars.onUpdate;for(var a=n.length,d,c;-1<--a;)if(c=this.vars[n[a]])for(d= c.length;-1<--d;)"{self}"===c[d]&&(c=this.vars[n[a]]=c.concat(),c[d]=this);this.vars.tweens instanceof Array&&this.insertMultiple(this.vars.tweens,0,this.vars.align||"normal",this.vars.stagger||0)},n=["onStartParams","onUpdateParams","onCompleteParams","onReverseCompleteParams","onRepeatParams"],p=[],b=k.prototype=new j;b.constructor=k;b.kill()._gc=!1;b.to=function(a,d,c,b,e){return this.insert(new f(a,d,c),this._parseTimeOrLabel(e)+(b||0))};b.from=function(a,d,c,b,e){return this.insert(f.from(a, d,c),this._parseTimeOrLabel(e)+(b||0))};b.fromTo=function(a,d,c,b,e,i){return this.insert(f.fromTo(a,d,c,b),this._parseTimeOrLabel(i)+(e||0))};b.staggerTo=function(a,d,c,b,e,i,g,o,j){g=new k({onComplete:g,onCompleteParams:o,onCompleteScope:j});b=b||0;for(o=0;o<a.length;o++)g.insert(new f(a[o],d,c),o*b);return this.insert(g,this._parseTimeOrLabel(i)+(e||0))};b.staggerFrom=function(a,d,c,b,e,i,f,g,j){null==c.immediateRender&&(c.immediateRender=!0);c.runBackwards=!0;return this.staggerTo(a,d,c,b,e,i, f,g,j)};b.staggerFromTo=function(a,d,c,b,e,i,f,g,j,k){b.startAt=c;c.immediateRender&&(b.immediateRender=!0);return this.staggerTo(a,d,b,e,i,f,g,j,k)};b.call=function(a,d,c,b,e){return this.insert(f.delayedCall(0,a,d,c),this._parseTimeOrLabel(e)+(b||0))};b.set=function(a,d,c,b){return this.insert(new f(a,0,d),this._parseTimeOrLabel(b)+(c||0))};k.exportRoot=function(a,d){a=a||{};null==a.smoothChildTiming&&(a.smoothChildTiming=!0);var c=new k(a),b=c._timeline;null==d&&(d=!0);b._remove(c,!0);c._startTime= 0;c._rawPrevTime=c._time=c._totalTime=b._time;for(var e=b._first,i;e;)i=e._next,(!d||!(e instanceof f&&e.target==e.vars.onComplete))&&c.insert(e,e._startTime-e._delay),e=i;b.insert(c,0);return c};b.insert=function(a,d){if(!(a instanceof g)){if(a instanceof Array)return this.insertMultiple(a,d);if("string"===typeof a)return this.addLabel(a,this._parseTimeOrLabel(d||0,!0));if("function"===typeof a)a=f.delayedCall(0,a);else throw"ERROR: Cannot insert() "+a+" into the TimelineLite/Max because it is neither a tween, timeline, function, nor a String."; }j.prototype.insert.call(this,a,this._parseTimeOrLabel(d||0,!0));if(this._gc&&!this._paused&&this._startTime+(a._startTime+a._totalDuration/a._timeScale)/this._timeScale>this.timeline._time)for(var c=this;c._gc&&c._timeline;)c.totalTime(c._totalTime,!0),c=c._timeline;return this};b.remove=function(a){if(a instanceof g)return this._remove(a,!1);if(a instanceof Array){for(var d=a.length;-1<--d;)this.remove(a[d]);return this}return"string"===typeof a?this.removeLabel(a):this.kill(null,a)};b.append=function(a, d){return this.insert(a,this.duration()+(d||0))};b.insertMultiple=function(a,d,c,b){for(var c=c||"normal",b=b||0,e,f=this._parseTimeOrLabel(d||0,!0),g=a.length,d=0;d<g;d++){if((e=a[d])instanceof Array)e=new k({tweens:e});this.insert(e,f);"string"===typeof e||"function"===typeof e||("sequence"===c?f=e._startTime+e.totalDuration()/e._timeScale:"start"===c&&(e._startTime-=e.delay()));f+=b}return this._uncache(!0)};b.appendMultiple=function(a,d,c,b){return this.insertMultiple(a,this.duration()+(d||0), c,b)};b.addLabel=function(a,d){this._labels[a]=d;return this};b.removeLabel=function(a){delete this._labels[a];return this};b.getLabelTime=function(a){return null!=this._labels[a]?this._labels[a]:-1};b._parseTimeOrLabel=function(a,d){return null==a?this.duration():"string"===typeof a?null==this._labels[a]?d?this._labels[a]=this.duration():0:this._labels[a]:Number(a)};b.seek=function(a,d){return this.totalTime(this._parseTimeOrLabel(a,!1),!1!=d)};b.stop=function(){return this.paused(!0)};b.gotoAndPlay= function(a,d){return j.prototype.play.call(this,a,d)};b.gotoAndStop=function(a,d){return this.pause(a,d)};b.render=function(a,d,c){this._gc&&this._enabled(!0,!1);this._active=!this._paused;var b=!this._dirty?this._totalDuration:this.totalDuration(),e=this._time,f=this._startTime,g=this._timeScale,j=this._paused,k,m,l;if(a>=b){this._totalTime=this._time=b;if(!this._reversed&&!this._hasPausedChild()&&(k=!0,l="onComplete",0===this._duration&&(0===a||0>this._rawPrevTime)))this._rawPrevTime!==a&&(c=!0); this._rawPrevTime=a;a=b+1.0E-6}else if(0>=a){this._totalTime=this._time=0;if(0!==e||0===this._duration&&0<this._rawPrevTime)l="onReverseComplete",k=this._reversed;0>a?(this._active=!1,0===this._duration&&0<=this._rawPrevTime&&(c=!0)):this._initted||(c=!0);this._rawPrevTime=a;a=-1.0E-6}else this._totalTime=this._time=this._rawPrevTime=a;if(this._time!==e||c){this._initted||(this._initted=!0);0===e&&this.vars.onStart&&0!==this._time&&(d||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams|| p));if(this._time>e)for(c=this._first;c;){m=c._next;if(this._paused&&!j)break;else if(c._active||c._startTime<=this._time&&!c._paused&&!c._gc)c._reversed?c.render((!c._dirty?c._totalDuration:c.totalDuration())-(a-c._startTime)*c._timeScale,d,!1):c.render((a-c._startTime)*c._timeScale,d,!1);c=m}else for(c=this._last;c;){m=c._prev;if(this._paused&&!j)break;else if(c._active||c._startTime<=e&&!c._paused&&!c._gc)c._reversed?c.render((!c._dirty?c._totalDuration:c.totalDuration())-(a-c._startTime)*c._timeScale, d,!1):c.render((a-c._startTime)*c._timeScale,d,!1);c=m}this._onUpdate&&(d||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||p));if(l&&!this._gc&&(f===this._startTime||g!=this._timeScale))if(0===this._time||b>=this.totalDuration())k&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),d||this.vars[l]&&this.vars[l].apply(this.vars[l+"Scope"]||this,this.vars[l+"Params"]||p)}};b._hasPausedChild=function(){for(var a=this._first;a;){if(a._paused||a instanceof k&&a._hasPausedChild())return!0;a=a._next}return!1};b.getChildren=function(a,d,c,b){for(var b=b||-9999999999,e=[],i=this._first,g=0;i;)i._startTime<b||(i instanceof f?!1!=d&&(e[g++]=i):(!1!=c&&(e[g++]=i),!1!=a&&(e=e.concat(i.getChildren(!0,d,c)),g=e.length))),i=i._next;return e};b.getTweensOf=function(a,b){for(var c=f.getTweensOf(a),h=c.length,e=[],g=0;-1<--h;)if(c[h].timeline===this||b&&this._contains(c[h]))e[g++]=c[h];return e};b._contains=function(a){for(a=a.timeline;a;){if(a===this)return!0;a= a.timeline}return!1};b.shiftChildren=function(a,b,c){for(var c=c||0,f=this._first;f;)f._startTime>=c&&(f._startTime+=a),f=f._next;if(b)for(var e in this._labels)this._labels[e]>=c&&(this._labels[e]+=a);return this._uncache(!0)};b._kill=function(a,b){if(null==a&&null==b)return this._enabled(!1,!1);for(var c=null==b?this.getChildren(!0,!0,!1):this.getTweensOf(b),f=c.length,e=!1;-1<--f;)c[f]._kill(a,b)&&(e=!0);return e};b.clear=function(a){var b=this.getChildren(!1,!0,!0),c=b.length;for(this._time=this._totalTime= 0;-1<--c;)b[c]._enabled(!1,!1);!1!=a&&(this._labels={});return this._uncache(!0)};b.invalidate=function(){for(var a=this._first;a;)a.invalidate(),a=a._next;return this};b._enabled=function(a,b){if(a==this._gc)for(var c=this._first;c;)c._enabled(a,!0),c=c._next;return j.prototype._enabled.call(this,a,b)};b.progress=function(a){return!arguments.length?this._time/this.duration():this.totalTime(this.duration()*a,!1)};b.duration=function(a){if(!arguments.length)return this._dirty&&this.totalDuration(), this._duration;0!==this.duration()&&0!==a&&this.timeScale(this._duration/a);return this};b.totalDuration=function(a){if(!arguments.length){if(this._dirty){for(var b=0,c=this._first,f=-999999999999,e;c;)e=c._next,c._startTime<f&&this._sortChildren?this.insert(c,c._startTime-c._delay):f=c._startTime,0>c._startTime&&(b-=c._startTime,this.shiftChildren(-c._startTime,!1,-9999999999)),c=c._startTime+(!c._dirty?c._totalDuration:c.totalDuration())/c._timeScale,c>b&&(b=c),c=e;this._duration=this._totalDuration= b;this._dirty=!1}return this._totalDuration}0!==this.totalDuration()&&0!==a&&this.timeScale(this._totalDuration/a);return this};b.usesFrames=function(){for(var a=this._timeline;a._timeline;)a=a._timeline;return a===g._rootFramesTimeline};b.rawTime=function(){return this._paused||0!==this._totalTime&&this._totalTime!==this._totalDuration?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale};return k},!0)});window._gsRequire&&_gsQueue.pop()();
14 js/greensock/TweenLite.min.js
@@ -0,0 +1,14 @@
+/*!
+ * VERSION: beta 1.23
+ * DATE: 2012-05-17
+ * JavaScript
+ * UPDATES AND DOCS AT: http://www.greensock.com
+ *
+ * Copyright (c) 2008-2012, GreenSock. All rights reserved.
+ * This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for
+ * corporate Club GreenSock members, the software agreement that was issued with the corporate
+ * membership.
+ *
+ * @author: Jack Doyle, jack@greensock.com
+ */
+(function(m){var E=function(a){var a=a.split("."),c=m,b;for(b=0;b<a.length;b++)c[a[b]]=c=c[a[b]]||{};return c},l=E("com.greensock"),n,j,d,y,u={},B=function(a,c,b,i){this.sc=u[a]?u[a].sc:[];u[a]=this;this.gsClass=null;this.def=b;var e=c||[],d=[];this.check=function(c){for(var g=e.length,f=0,j;-1<--g;)(j=u[e[g]]||new B(e[g])).gsClass?d[g]=j.gsClass:(f++,c&&j.sc.push(this));if(0===f&&b){var c=("com.greensock."+a).split("."),g=c.pop(),l=E(c.join("."))[g]=this.gsClass=b.apply(b,d);i&&("function"===typeof define&& define.amd?define(g,[],function(){return l}):"undefined"!==typeof module&&module.exports&&(module.exports=l),(m._gsGlobals||m)[g]=l);for(g=0;g<this.sc.length;g++)this.sc[g].check(!1)}};this.check(!0)},p=l._class=function(a,c,b){new B(a,[],function(){return c},b);return c};m._gsRequire=function(a,c,b,i){return new B(a,c,b,i)};var F=[0,0,1,1],C=[],q=p("easing.Ease",function(a,c,b,i){this._func=a;this._type=b||0;this._power=i||0;this._params=c?F.concat(c):F},!0);d=q.prototype;d._calcEnd=!1;d.getRatio= function(a){if(this._func)return this._params[0]=a,this._func.apply(null,this._params);var c=this._type,b=this._power,i=1===c?1-a:2===c?a:0.5>a?2*a:2*(1-a);1===b?i*=i:2===b?i*=i*i:3===b?i*=i*i*i:4===b&&(i*=i*i*i*i);return 1===c?1-i:2===c?i:0.5>a?i/2:1-i/2};n=["Linear","Quad","Cubic","Quart","Quint"];for(j=n.length;-1<--j;)d=p("easing."+n[j],function(){},!0),y=p("easing.Power"+j,function(){},!0),d.easeOut=y.easeOut=new q(null,null,1,j),d.easeIn=y.easeIn=new q(null,null,2,j),d.easeInOut=y.easeInOut= new q(null,null,3,j);p("easing.Strong",l.easing.Power4,!0);l.easing.Linear.easeNone=l.easing.Linear.easeIn;d=p("events.EventDispatcher",function(a){this._listeners={};this._eventTarget=a||this}).prototype;d.addEventListener=function(a,c,b,i,e){var e=e||0,d=this._listeners[a],h=0,g;null==d&&(this._listeners[a]=d=[]);for(g=d.length;-1<--g;)a=d[g],a.c===c?d.splice(g,1):0===h&&a.pr<e&&(h=g+1);d.splice(h,0,{c:c,s:b,up:i,pr:e})};d.removeEventListener=function(a,c){var b=this._listeners[a];if(b)for(var i= b.length;-1<--i;)if(b[i].c===c){b.splice(i,1);break}};d.dispatchEvent=function(a){var c=this._listeners[a];if(c)for(var b=c.length,i,d=this._eventTarget;-1<--b;)i=c[b],i.up?i.c.call(i.s||d,{type:a,target:d}):i.c.call(i.s||d)};var z=m.requestAnimationFrame,A=m.cancelAnimationFrame,G=Date.now||function(){return(new Date).getTime()};n=["ms","moz","webkit","o"];for(j=n.length;-1<--j&&!z;)z=m[n[j]+"RequestAnimationFrame"],A=m[n[j]+"CancelAnimationFrame"]||m[n[j]+"CancelRequestAnimationFrame"];A||(A=function(a){m.clearTimeout(a)}); p("Ticker",function(a,c){this.frame=this.time=0;var b=this,i=G(),d=!1!==c,k,h,g,f,j;this.tick=function(){b.time=(G()-i)/1E3;if(!k||b.time>=j)b.frame++,j=b.time+f-(b.time-j)-5.0E-4,j<=b.time&&(j=b.time+0.001),b.dispatchEvent("tick");g=h(b.tick)};this.fps=function(a){if(!arguments.length)return k;k=a;f=1/(k||60);j=this.time+f;h=0===k?function(){}:!d||!z?function(a){return m.setTimeout(a,1E3*(j-b.time)+1>>0||1)}:z;A(g);g=h(b.tick)};this.useRAF=function(a){if(!arguments.length)return d;d=a;this.fps(k)}; this.fps(a)});d=l.Ticker.prototype=new l.events.EventDispatcher;d.constructor=l.Ticker;var o=p("core.Animation",function(a,c){this.vars=c||{};this._duration=this._totalDuration=a||0;this._delay=Number(this.vars.delay)||0;this._timeScale=1;this._active=!0==this.vars.immediateRender;this.data=this.vars.data;this._reversed=!0==this.vars.reversed;if(r){var b=this.vars.useFrames?v:r;b.insert(this,b._time);this.vars.paused&&this.paused(!0)}}),s=o.ticker=new l.Ticker;d=o.prototype;d._dirty=d._gc=d._initted= d._paused=!1;d._totalTime=d._time=0;d._rawPrevTime=-1;d._next=d._last=d._onUpdate=d._timeline=d.timeline=null;d._paused=!1;d.play=function(a,c){arguments.length&&this.seek(a,c);this.reversed(!1);return this.paused(!1)};d.pause=function(a,c){arguments.length&&this.seek(a,c);return this.paused(!0)};d.resume=function(a,c){arguments.length&&this.seek(a,c);return this.paused(!1)};d.seek=function(a,c){return this.totalTime(Number(a),!1!=c)};d.restart=function(a,c){this.reversed(!1);this.paused(!1);return this.totalTime(a? -this._delay:0,!1!=c)};d.reverse=function(a,c){arguments.length&&this.seek(a||this.totalDuration(),c);this.reversed(!0);return this.paused(!1)};d.render=function(){};d.invalidate=function(){return this};d._enabled=function(a,c){this._gc=!a;this._active=a&&!this._paused&&0<this._totalTime&&this._totalTime<this._totalDuration;!0!=c&&(a&&null==this.timeline?this._timeline.insert(this,this._startTime-this._delay):!a&&null!=this.timeline&&this._timeline._remove(this,!0));return!1};d._kill=function(){return this._enabled(!1, !1)};d.kill=function(a,c){this._kill(a,c);return this};d._uncache=function(a){for(a=a?this:this.timeline;a;)a._dirty=!0,a=a.timeline;return this};d.eventCallback=function(a,c,b,i){if(null==a)return null;if("on"===a.substr(0,2)){if(1===arguments.length)return this.vars[a];if(null==c)delete this.vars[a];else if(this.vars[a]=c,this.vars[a+"Params"]=b,this.vars[a+"Scope"]=i,b)for(var d=b.length;-1<--d;)"{self}"===b[d]&&(b=this.vars[a+"Params"]=b.concat(),b[d]=this);"onUpdate"===a&&(this._onUpdate=c)}return this}; d.delay=function(a){if(!arguments.length)return this._delay;this._timeline.smoothChildTiming&&this.startTime(this._startTime+a-this._delay);this._delay=a;return this};d.duration=function(a){if(!arguments.length)return this._dirty=!1,this._duration;this._duration=this._totalDuration=a;this._uncache(!0);this._timeline.smoothChildTiming&&this._active&&0!=a&&this.totalTime(this._totalTime*(a/this._duration),!0);return this};d.totalDuration=function(a){this._dirty=!1;return!arguments.length?this._totalDuration: this.duration(a)};d.time=function(a,c){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();a>this._duration&&(a=this._duration);return this.totalTime(a,c)};d.totalTime=function(a,c){if(!arguments.length)return this._totalTime;if(this._timeline){0>a&&(a+=this.totalDuration());if(this._timeline.smoothChildTiming&&(this._dirty&&this.totalDuration(),a>this._totalDuration&&(a=this._totalDuration),this._startTime=(this._paused?this._pauseTime:this._timeline._time)-(!this._reversed? a:this._totalDuration-a)/this._timeScale,this._timeline._dirty||this._uncache(!1),!this._timeline._active))for(var b=this._timeline;b._timeline;)b.totalTime(b._totalTime,!0),b=b._timeline;this._gc&&this._enabled(!0,!1);this._totalTime!=a&&this.render(a,c,!1)}return this};d.startTime=function(a){if(!arguments.length)return this._startTime;a!=this._startTime&&(this._startTime=a,this.timeline&&this.timeline._sortChildren&&this.timeline.insert(this,a-this._delay));return this};d.timeScale=function(a){if(!arguments.length)return this._timeScale; a=a||1.0E-6;if(this._timeline&&this._timeline.smoothChildTiming){var c=this._pauseTime||0==this._pauseTime?this._pauseTime:this._timeline._totalTime;this._startTime=c-(c-this._startTime)*this._timeScale/a}this._timeScale=a;return this._uncache(!1)};d.reversed=function(a){if(!arguments.length)return this._reversed;a!=this._reversed&&(this._reversed=a,this.totalTime(this._totalTime,!0));return this};d.paused=function(a){if(!arguments.length)return this._paused;a!=this._paused&&this._timeline&&(!a&& this._timeline.smoothChildTiming&&(this._startTime+=this._timeline.rawTime()-this._pauseTime,this._uncache(!1)),this._pauseTime=a?this._timeline.rawTime():null,this._paused=a,this._active=!this._paused&&0<this._totalTime&&this._totalTime<this._totalDuration);this._gc&&(a||this._enabled(!0,!1));return this};l=p("core.SimpleTimeline",function(a){o.call(this,0,a);this.autoRemoveChildren=this.smoothChildTiming=!0});d=l.prototype=new o;d.constructor=l;d.kill()._gc=!1;d._first=d._last=null;d._sortChildren= !1;d.insert=function(a,c){a._startTime=Number(c||0)+a._delay;a._paused&&this!==a._timeline&&(a._pauseTime=a._startTime+(this.rawTime()-a._startTime)/a._timeScale);a.timeline&&a.timeline._remove(a,!0);a.timeline=a._timeline=this;a._gc&&a._enabled(!0,!0);var b=this._last;if(this._sortChildren)for(var d=a._startTime;b&&b._startTime>d;)b=b._prev;b?(a._next=b._next,b._next=a):(a._next=this._first,this._first=a);a._next?a._next._prev=a:this._last=a;a._prev=b;this._timeline&&this._uncache(!0);return this}; d._remove=function(a,c){a.timeline===this&&(c||a._enabled(!1,!0),a.timeline=null,a._prev?a._prev._next=a._next:this._first===a&&(this._first=a._next),a._next?a._next._prev=a._prev:this._last===a&&(this._last=a._prev),this._timeline&&this._uncache(!0));return this};d.render=function(a,c){var b=this._first,d;for(this._totalTime=this._time=this._rawPrevTime=a;b;){d=b._next;if(b._active||a>=b._startTime&&!b._paused)b._reversed?b.render((!b._dirty?b._totalDuration:b.totalDuration())-(a-b._startTime)*b._timeScale, c,!1):b.render((a-b._startTime)*b._timeScale,c,!1);b=d}};d.rawTime=function(){return this._totalTime};var f=p("TweenLite",function(a,c,b){o.call(this,c,b);if(null==a)throw"Cannot tween an undefined reference.";this.target=a;this._overwrite=null==this.vars.overwrite?H[f.defaultOverwrite]:"number"===typeof this.vars.overwrite?this.vars.overwrite>>0:H[this.vars.overwrite];if((a instanceof Array||a.jquery)&&"object"===typeof a[0]){this._targets=a.slice(0);this._propLookup=[];this._siblings=[];for(a=0;a< this._targets.length;a++)b=this._targets[a],b.jquery?(this._targets.splice(a--,1),this._targets=this._targets.concat(b.constructor.makeArray(b))):(this._siblings[a]=w(b,this,!1),1===this._overwrite&&1<this._siblings[a].length&&D(b,this,null,1,this._siblings[a]))}else this._propLookup={},this._siblings=w(a,this,!1),1===this._overwrite&&1<this._siblings.length&&D(a,this,null,1,this._siblings);(this.vars.immediateRender||0===c&&0===this._delay&&!1!=this.vars.immediateRender)&&this.render(0,!1,!0)},!0); d=f.prototype=new o;d.constructor=f;d.kill()._gc=!1;d.ratio=0;d._firstPT=d._targets=d._overwrittenProps=null;d._notifyPluginsOfEnabled=!1;f.version=12;f.defaultEase=d._ease=new q(null,null,1,1);f.defaultOverwrite="auto";f.ticker=s;var I=f._plugins={},t={},K=0,L={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1, onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,orientToBezier:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1},H={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},v=o._rootFramesTimeline=new l,r=o._rootTimeline=new l;r._startTime=s.time;v._startTime=s.frame;r._active=v._active=!0;o._updateRoot=function(){r.render((s.time-r._startTime)*r._timeScale,!1,!1);v.render((s.frame-v._startTime)*v._timeScale,!1,!1); if(!(s.frame%120)){var a,c,b;for(b in t){c=t[b].tweens;for(a=c.length;-1<--a;)c[a]._gc&&c.splice(a,1);0===c.length&&delete t[b]}}};s.addEventListener("tick",o._updateRoot);var w=function(a,c,b){var d=a._gsTweenID,e;if(!t[d||(a._gsTweenID=d="t"+K++)])t[d]={target:a,tweens:[]};if(c&&(a=t[d].tweens,a[e=a.length]=c,b))for(;-1<--e;)a[e]===c&&a.splice(e,1);return t[d].tweens},D=function(a,c,b,d,e){var k,h,g;if(1===d||4<=d){a=e.length;for(k=0;k<a;k++)if((g=e[k])!==c)g._gc||g._enabled(!1,!1)&&(h=!0);else if(5=== d)break;return h}var f=c._startTime+1.0E-10,j=[],l=0,m;for(k=e.length;-1<--k;)if(!((g=e[k])===c||g._gc||g._paused))g._timeline!==c._timeline?(m=m||J(c,0),0===J(g,m)&&(j[l++]=g)):g._startTime<=f&&g._startTime+g.totalDuration()/g._timeScale+1.0E-10>f&&((0===c._duration||!g._initted)&&2.0E-10>=f-g._startTime||(j[l++]=g));for(k=l;-1<--k;)if(g=j[k],2===d&&g._kill(b,a)&&(h=!0),2!==d||!g._firstPT&&g._initted)g._enabled(!1,!1)&&(h=!0);return h},J=function(a,c){for(var b=a._timeline,d=b._timeScale,e=a._startTime;b._timeline;){e+= b._startTime;d*=b._timeScale;if(b._paused)return-100;b=b._timeline}e/=d;return e>c?e-c:!a._initted&&2.0E-10>e-c?1.0E-10:(e=e+a.totalDuration()/a._timeScale/d+1.0E-10)>c?0:e-c-1.0E-10};d._init=function(){this.vars.startAt&&(this.vars.startAt.overwrite=0,this.vars.startAt.immediateRender=!0,f.to(this.target,0,this.vars.startAt));var a,c;this._ease=this.vars.ease instanceof q?this.vars.easeParams instanceof Array?this.vars.ease.config.apply(this.vars.ease,this.vars.easeParams):this.vars.ease:"function"=== typeof this.vars.ease?new q(this.vars.ease,this.vars.easeParams):f.defaultEase;this._easeType=this._ease._type;this._easePower=this._ease._power;this._firstPT=null;if(this._targets)for(a=this._targets.length;-1<--a;){if(this._initProps(this._targets[a],this._propLookup[a]={},this._siblings[a],this._overwrittenProps?this._overwrittenProps[a]:null))c=!0}else c=this._initProps(this.target,this._propLookup,this._siblings,this._overwrittenProps);c&&f._onPluginEvent("_onInitAllProps",this);this._overwrittenProps&& null==this._firstPT&&"function"!==typeof this.target&&this._enabled(!1,!1);if(this.vars.runBackwards)for(a=this._firstPT;a;)a.s+=a.c,a.c=-a.c,a=a._next;this._onUpdate=this.vars.onUpdate;this._initted=!0};d._initProps=function(a,c,b,d){var e,k,h,g,f;if(null==a)return!1;for(e in this.vars){if(L[e]){if("onStartParams"===e||"onUpdateParams"===e||"onCompleteParams"===e||"onReverseCompleteParams"===e||"onRepeatParams"===e)if(f=this.vars[e])for(k=f.length;-1<--k;)"{self}"===f[k]&&(f=this.vars[e]=f.concat(), f[k]=this)}else if(I[e]&&(g=new I[e])._onInitTween(a,this.vars[e],this)){this._firstPT={_next:this._firstPT,t:g,p:"setRatio",s:0,c:1,f:!0,n:e,pg:!0,pr:g._priority};for(k=g._overwriteProps.length;-1<--k;)c[g._overwriteProps[k]]=this._firstPT;if(g._priority||g._onInitAllProps)h=!0;if(g._onDisable||g._onEnable)this._notifyPluginsOfEnabled=!0}else this._firstPT=c[e]={_next:this._firstPT,t:a,p:e,f:"function"===typeof a[e],n:e,pg:!1,pr:0},this._firstPT.s=!this._firstPT.f?parseFloat(a[e]):a[e.indexOf("set")|| "function"!==typeof a["get"+e.substr(3)]?e:"get"+e.substr(3)](),this._firstPT.c="number"===typeof this.vars[e]?this.vars[e]-this._firstPT.s:"string"===typeof this.vars[e]?parseFloat(this.vars[e].split("=").join("")):0;this._firstPT&&this._firstPT._next&&(this._firstPT._next._prev=this._firstPT)}return d&&this._kill(d,a)?this._initProps(a,c,b,d):1<this._overwrite&&this._firstPT&&1<b.length&&D(a,this,c,this._overwrite,b)?(this._kill(c,a),this._initProps(a,c,b,d)):h};d.render=function(a,c,b){var d=this._time, e,f;if(a>=this._duration){if(this._totalTime=this._time=this._duration,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(e=!0,f="onComplete"),0===this._duration){if(0===a||0>this._rawPrevTime)this._rawPrevTime!==a&&(b=!0);this._rawPrevTime=a}}else if(0>=a){this._totalTime=this._time=0;this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0;if(0!==d||0===this._duration&&0<this._rawPrevTime)f="onReverseComplete",e=this._reversed;0>a?(this._active=!1,0===this._duration&&(0<=this._rawPrevTime&& (b=!0),this._rawPrevTime=a)):this._initted||(b=!0)}else if(this._totalTime=this._time=a,this._easeType){var h=a/this._duration,g=this._easeType,j=this._easePower;if(1===g||3===g&&0.5<=h)h=1-h;3===g&&(h*=2);1===j?h*=h:2===j?h*=h*h:3===j?h*=h*h*h:4===j&&(h*=h*h*h*h);this.ratio=1===g?1-h:2===g?h:0.5>a/this._duration?h/2:1-h/2}else this.ratio=this._ease.getRatio(a/this._duration);if(this._time!==d||b){this._initted||(this._init(),!e&&this._time&&(this.ratio=this._ease.getRatio(this._time/this._duration))); !this._active&&!this._paused&&(this._active=!0);if(0===d&&this.vars.onStart&&(0!==this._time||0===this._duration))c||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||C);for(a=this._firstPT;a;){if(a.f)a.t[a.p](a.c*this.ratio+a.s);else a.t[a.p]=a.c*this.ratio+a.s;a=a._next}this._onUpdate&&(c||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||C));f&&!this._gc&&(e&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),c||this.vars[f]&& this.vars[f].apply(this.vars[f+"Scope"]||this,this.vars[f+"Params"]||C))}};d._kill=function(a,c){"all"===a&&(a=null);if(null==a&&(null==c||c==this.target))return this._enabled(!1,!1);var c=c||this._targets||this.target,b,d,e,f,h,g,j;if((c instanceof Array||c.jquery)&&"object"===typeof c[0])for(b=c.length;-1<--b;)this._kill(a,c[b])&&(h=!0);else{if(this._targets)for(b=this._targets.length;-1<--b;){if(c===this._targets[b]){f=this._propLookup[b]||{};this._overwrittenProps=this._overwrittenProps||[];d= this._overwrittenProps[b]=a?this._overwrittenProps[b]||{}:"all";break}}else{if(c!==this.target)return!1;f=this._propLookup;d=this._overwrittenProps=a?this._overwrittenProps||{}:"all"}if(f)for(e in g=a||f,j=a!=d&&"all"!=d&&a!=f&&(null==a||!0!=a._tempKill),g){if(b=f[e]){b.pg&&b.t._kill(g)&&(h=!0);if(!b.pg||0===b.t._overwriteProps.length)b._prev?b._prev._next=b._next:b===this._firstPT&&(this._firstPT=b._next),b._next&&(b._next._prev=b._prev),b._next=b._prev=null;delete f[e]}j&&(d[e]=1)}}return h};d.invalidate= function(){this._notifyPluginsOfEnabled&&f._onPluginEvent("_onDisable",this);this._onUpdate=this._overwrittenProps=this._firstPT=null;this._initted=this._active=this._notifyPluginsOfEnabled=!1;this._propLookup=this._targets?{}:[];return this};d._enabled=function(a,c){if(a&&this._gc)if(this._targets)for(var b=this._targets.length;-1<--b;)this._siblings[b]=w(this._targets[b],this,!0);else this._siblings=w(this.target,this,!0);o.prototype._enabled.call(this,a,c);return this._notifyPluginsOfEnabled&& this._firstPT?f._onPluginEvent(a?"_onEnable":"_onDisable",this):!1};f.to=function(a,c,b){return new f(a,c,b)};f.from=function(a,c,b){b.runBackwards=!0;!1!=b.immediateRender&&(b.immediateRender=!0);return new f(a,c,b)};f.fromTo=function(a,c,b,d){d.startAt=b;b.immediateRender&&(d.immediateRender=!0);return new f(a,c,d)};f.delayedCall=function(a,c,b,d,e){return new f(c,0,{delay:a,onComplete:c,onCompleteParams:b,onCompleteScope:d,onReverseComplete:c,onReverseCompleteParams:b,onReverseCompleteScope:d, immediateRender:!1,useFrames:e,overwrite:0})};f.set=function(a,c){return new f(a,0,c)};f.killTweensOf=f.killDelayedCallsTo=function(a,c){for(var b=f.getTweensOf(a),d=b.length;-1<--d;)b[d]._kill(c,a)};f.getTweensOf=function(a){if(null!=a){var c,b,d;if((a instanceof Array||a.jquery)&&"object"===typeof a[0]){c=a.length;for(b=[];-1<--c;)b=b.concat(f.getTweensOf(a[c]));for(c=b.length;-1<--c;){d=b[c];for(a=c;-1<--a;)d===b[a]&&b.splice(c,1)}}else{b=w(a).concat();for(c=b.length;-1<--c;)b[c]._gc&&b.splice(c, 1)}return b}};var x=p("plugins.TweenPlugin",function(a,c){this._overwriteProps=(a||"").split(",");this._propName=this._overwriteProps[0];this._priority=c||0},!0);d=x.prototype;x.version=12;x.API=2;d._firstPT=null;d._addTween=function(a,c,b,d,e,f){var h;if(null!=d&&(h="number"===typeof d||"="!==d.charAt(1)?Number(d)-b:Number(d.split("=").join(""))))this._firstPT={_next:this._firstPT,t:a,p:c,s:b,c:h,f:"function"==typeof a[c],n:e||c,r:f},this._firstPT._next&&(this._firstPT._next._prev=this._firstPT)}; d.setRatio=function(a){for(var c=this._firstPT,b;c;){b=c.c*a+c.s;c.r&&(b=b+(0<b?0.5:-0.5)>>0);if(c.f)c.t[c.p](b);else c.t[c.p]=b;c=c._next}};d._kill=function(a){if(null!=a[this._propName])this._overwriteProps=[];else for(var c=this._overwriteProps.length;-1<--c;)null!=a[this._overwriteProps[c]]&&this._overwriteProps.splice(c,1);for(c=this._firstPT;c;)null!=a[c.n]&&((c._next&&(c._next._prev=c._prev),c._prev)?(c._prev._next=c._next,c._prev=null):this._firstPT===c&&(this._firstPT=c._next)),c=c._next; return!1};d._roundProps=function(a,c){for(var b=this._firstPT;b;){if(a[this._propName]||null!=b.n&&a[b.n.split(this._propName+"_").join("")])b.r=c;b=b._next}};f._onPluginEvent=function(a,c){var b=c._firstPT,d;if("_onInitAllProps"===a){for(var e,f,h,g;b;){g=b._next;for(e=f;e&&e.pr>b.pr;)e=e._next;(b._prev=e?e._prev:h)?b._prev._next=b:f=b;(b._next=e)?e._prev=b:h=b;b=g}b=c._firstPT=f}for(;b;)b.pg&&"function"===typeof b.t[a]&&b.t[a]()&&(d=!0),b=b._next;return d};x.activate=function(a){for(var c=a.length;-1< --c;)a[c].API===x.API&&(f._plugins[(new a[c])._propName]=a[c]);return!0};if(n=m._gsQueue){for(j=0;j<n.length;j++)n[j]();for(d in u)u[d].def||console.log("Warning: TweenLite encountered missing dependency: com.greensock."+d)}})(window);
16 js/greensock/TweenMax.min.js
@@ -0,0 +1,16 @@
+/**
+ * VERSION: beta 1.23
+ * DATE: 2012-05-17
+ * JavaScript (ActionScript 3 and 2 also available)
+ * UPDATES AND DOCS AT: http://www.greensock.com
+ *
+ * Includes all of the following: TweenLite, TweenMax, TimelineLite, TimelineMax, easing.EasePack, plugins.CSSPlugin, plugins.RoundPropsPlugin
+ *
+ * Copyright (c) 2008-2012, GreenSock. All rights reserved.
+ * This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for
+ * corporate Club GreenSock members, the software agreement that was issued with the corporate
+ * membership.
+ *
+ * @author: Jack Doyle, jack@greensock.com
+ **/
+(window._gsQueue||(window._gsQueue=[])).push(function(){_gsRequire("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(g,j,f){var e=function(d,k,b){f.call(this,d,k,b);this._cycle=0;this._yoyo=!0==this.vars.yoyo;this._repeat=this.vars.repeat||0;this._repeatDelay=this.vars.repeatDelay||0;this._dirty=!0},h=e.prototype=f.to({},0.1,{}),c=[];h.constructor=e;h.kill()._gc=!1;e.killTweensOf=e.killDelayedCallsTo=f.killTweensOf;e.getTweensOf=f.getTweensOf;h.invalidate=function(){this._yoyo= !0==this.vars.yoyo;this._repeat=this.vars.repeat||0;this._repeatDelay=this.vars.repeatDelay||0;this._uncache(!0);return f.invalidate.call(this)};h.updateTo=function(d,k){var b=this.ratio,a;k&&(null!=this.timeline&&this._startTime<this._timeline._time)&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay));for(a in d)this.vars[a]=d[a];if(this._initted)if(k)this._initted=!1;else if(this._notifyPluginsOfEnabled&& this._firstPT&&f._onPluginEvent("_onDisable",this),0.998<this._time/this._duration)b=this._time,this.render(0,!0,!1),this._initted=!1,this.render(b,!0,!1);else if(0<this._time){this._initted=!1;this._init();b=1/(1-b);a=this._firstPT;for(var c;a;)c=a.s+a.c,a.c*=b,a.s=c-a.c,a=a._next}return this};h.render=function(d,b,l){var a=!this._dirty?this._totalDuration:this.totalDuration(),f=this._time,e=this._totalTime,h=this._cycle,v,m;if(d>=a){if(this._totalTime=a,this._cycle=this._repeat,this._yoyo&&0!== (this._cycle&1)?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=this._duration,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(v=!0,m="onComplete"),0===this._duration){if(0===d||0>this._rawPrevTime)this._rawPrevTime!==d&&(l=!0);this._rawPrevTime=d}}else if(0>=d){this._totalTime=this._time=this._cycle=0;this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0;if(0!==e||0===this._duration&&0<this._rawPrevTime)m="onReverseComplete",v=this._reversed; 0>d?(this._active=!1,0===this._duration&&(0<=this._rawPrevTime&&(l=!0),this._rawPrevTime=d)):this._initted||(l=!0)}else if(this._totalTime=this._time=d,0!==this._repeat&&((d=this._duration+this._repeatDelay,this._cycle=this._totalTime/d>>0,0!==this._cycle&&this._cycle===this._totalTime/d&&this._cycle--,this._time=this._totalTime-this._cycle*d,this._yoyo&&0!==(this._cycle&1)&&(this._time=this._duration-this._time),this._time>this._duration)?this._time=this._duration:0>this._time&&(this._time=0)),this._easeType){var d= this._time/this._duration,a=this._easeType,g=this._easePower;if(1===a||3===a&&0.5<=d)d=1-d;3===a&&(d*=2);1===g?d*=d:2===g?d*=d*d:3===g?d*=d*d*d:4===g&&(d*=d*d*d*d);this.ratio=1===a?1-d:2===a?d:0.5>this._time/this._duration?d/2:1-d/2}else this.ratio=this._ease.getRatio(this._time/this._duration);if(f!==this._time||l){this._initted||(this._init(),!v&&this._time&&(this.ratio=this._ease.getRatio(this._time/this._duration)));!this._active&&!this._paused&&(this._active=!0);if(0==e&&this.vars.onStart&&(0!== this._totalTime||0===this._duration))b||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||c);for(l=this._firstPT;l;){if(l.f)l.t[l.p](l.c*this.ratio+l.s);else l.t[l.p]=l.c*this.ratio+l.s;l=l._next}this._onUpdate&&(b||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||c));this._cycle!=h&&(b||this._gc||this.vars.onRepeat&&this.vars.onRepeat.apply(this.vars.onRepeatScope||this,this.vars.onRepeatParams||c));m&&!this._gc&&(v&&(this._timeline.autoRemoveChildren&& this._enabled(!1,!1),this._active=!1),b||this.vars[m]&&this.vars[m].apply(this.vars[m+"Scope"]||this,this.vars[m+"Params"]||c))}};e.to=function(d,b,l){return new e(d,b,l)};e.from=function(d,b,l){l.runBackwards=!0;!1!=l.immediateRender&&(l.immediateRender=!0);return new e(d,b,l)};e.fromTo=function(d,b,l,a){a.startAt=l;l.immediateRender&&(a.immediateRender=!0);return new e(d,b,a)};e.staggerTo=e.allTo=function(d,b,a,u,c,f,h){var u=u||0,v=[],m=d.length,g=a.delay||0,p,j,x;for(j=0;j<m;j++){p={};for(x in a)p[x]= a[x];p.delay=g;j===m-1&&c&&(p.onComplete=function(){a.onComplete&&a.onComplete.apply(a.onCompleteScope,a.onCompleteParams);c.apply(h,f)});v[j]=new e(d[j],b,p);g+=u}return v};e.staggerFrom=e.allFrom=function(d,b,a,u,c,f,h){a.runBackwards=!0;!1!=a.immediateRender&&(a.immediateRender=!0);return e.staggerTo(d,b,a,u,c,f,h)};e.staggerFromTo=e.allFromTo=function(d,b,a,c,f,h,g,j){c.startAt=a;a.immediateRender&&(c.immediateRender=!0);return e.staggerTo(d,b,c,f,h,g,j)};e.delayedCall=function(d,b,a,c,f){return new e(b, 0,{delay:d,onComplete:b,onCompleteParams:a,onCompleteScope:c,onReverseComplete:b,onReverseCompleteParams:a,onReverseCompleteScope:c,immediateRender:!1,useFrames:f,overwrite:0})};e.set=function(d,b){return new e(d,0,b)};e.isTweening=function(d){for(var d=f.getTweensOf(d),b=d.length,a;-1<--b;)if((a=d[b])._active||a._startTime===a.timeline._time&&a.timeline._active)return!0;return!1};e.getAllTweens=function(d){return a(g._rootTimeline,d).concat(a(g._rootFramesTimeline,d))};var a=function(d,b){for(var l= [],c=0,e=d._first;e;)e instanceof f?l[c++]=e:(b&&(l[c++]=e),l=l.concat(a(e,b)),c=l.length),e=e._next;return l};e.killAll=function(d,b,a,c){null==b&&(b=!0);null==a&&(a=!0);for(var f=getAllTweens(!1!=c),e=f.length,c=b&&a&&c,h,g;-1<--e;)if(g=f[e],c||g instanceof j||(h=g.target===g.vars.onComplete)&&a||b&&!h)d?g.totalTime(g.totalDuration()):g._enabled(!1,!1)};e.pauseAll=function(d,a,l){b(!0,d,a,l)};e.resumeAll=function(d,a,l){b(!1,d,a,l)};var b=function(d,b,a,c){void 0==b&&(b=!0);void 0==a&&(a=!0);for(var f= getAllTweens(c),c=b&&a&&c,e=f.length,h,g;-1<--e;)g=f[e],(c||g instanceof j||(h=g.target===g.vars.onComplete)&&a||b&&!h)&&g.paused(d)};h.progress=function(b){return!arguments.length?this._time/this.duration():this.totalTime(this.duration()*b+this._cycle*this._duration,!1)};h.totalProgress=function(b){return!arguments.length?this._totalTime/this.totalDuration():this.totalTime(this.totalDuration()*b,!1)};h.time=function(b,a){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();b> this._duration&&(b=this._duration);this._yoyo&&0!==(this._cycle&1)?b=this._duration-b+this._cycle*(this._duration+this._repeatDelay):0!=this._repeat&&(b+=this._cycle*(this._duration+this._repeatDelay));return this.totalTime(b,a)};h.totalDuration=function(b){return!arguments.length?(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration):-1==this._repeat?this:this.duration((b-this._repeat*this._repeatDelay)/ (this._repeat+1))};h.repeat=function(b){if(!arguments.length)return this._repeat;this._repeat=b;return this._uncache(!0)};h.repeatDelay=function(b){if(!arguments.length)return this._repeatDelay;this._repeatDelay=b;return this._uncache(!0)};h.yoyo=function(b){if(!arguments.length)return this._yoyo;this._yoyo=b;return this};return e},!0);_gsRequire("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(g,j,f){var e=function(b){j.call(this,b);this._labels={};this.autoRemoveChildren= !0==this.vars.autoRemoveChildren;this.smoothChildTiming=!0==this.vars.smoothChildTiming;this._sortChildren=!0;this._onUpdate=this.vars.onUpdate;for(var b=h.length,d,a;-1<--b;)if(a=this.vars[h[b]])for(d=a.length;-1<--d;)"{self}"===a[d]&&(a=this.vars[h[b]]=a.concat(),a[d]=this);this.vars.tweens instanceof Array&&this.insertMultiple(this.vars.tweens,0,this.vars.align||"normal",this.vars.stagger||0)},h=["onStartParams","onUpdateParams","onCompleteParams","onReverseCompleteParams","onRepeatParams"],c= [],a=e.prototype=new j;a.constructor=e;a.kill()._gc=!1;a.to=function(b,d,a,c,e){return this.insert(new f(b,d,a),this._parseTimeOrLabel(e)+(c||0))};a.from=function(b,d,a,c,e){return this.insert(f.from(b,d,a),this._parseTimeOrLabel(e)+(c||0))};a.fromTo=function(b,d,a,c,e,h){return this.insert(f.fromTo(b,d,a,c),this._parseTimeOrLabel(h)+(e||0))};a.staggerTo=function(b,d,a,c,u,h,g,j,v){g=new e({onComplete:g,onCompleteParams:j,onCompleteScope:v});c=c||0;for(j=0;j<b.length;j++)g.insert(new f(b[j],d,a), j*c);return this.insert(g,this._parseTimeOrLabel(h)+(u||0))};a.staggerFrom=function(b,d,a,c,f,e,h,g,j){null==a.immediateRender&&(a.immediateRender=!0);a.runBackwards=!0;return this.staggerTo(b,d,a,c,f,e,h,g,j)};a.staggerFromTo=function(b,d,a,c,f,e,h,g,j,m){c.startAt=a;a.immediateRender&&(c.immediateRender=!0);return this.staggerTo(b,d,c,f,e,h,g,j,m)};a.call=function(b,d,a,c,e){return this.insert(f.delayedCall(0,b,d,a),this._parseTimeOrLabel(e)+(c||0))};a.set=function(b,d,a,c){d.immediateRender=!1; return this.insert(new f(b,0,d),this._parseTimeOrLabel(c)+(a||0))};e.exportRoot=function(b,d){b=b||{};null==b.smoothChildTiming&&(b.smoothChildTiming=!0);var a=new e(b),c=a._timeline;null==d&&(d=!0);c._remove(a,!0);a._startTime=0;a._rawPrevTime=a._time=a._totalTime=c._time;for(var u=c._first,h;u;)h=u._next,(!d||!(u instanceof f&&u.target==u.vars.onComplete))&&a.insert(u,u._startTime-u._delay),u=h;c.insert(a,0);return a};a.insert=function(b,d){if(!(b instanceof g)){if(b instanceof Array)return this.insertMultiple(b, d);if("string"===typeof b)return this.addLabel(b,this._parseTimeOrLabel(d||0,!0));if("function"===typeof b)b=f.delayedCall(0,b);else throw"ERROR: Cannot insert() "+b+" into the TimelineLite/Max because it is neither a tween, timeline, function, nor a String.";}j.prototype.insert.call(this,b,this._parseTimeOrLabel(d||0,!0));if(this._gc&&!this._paused&&this._startTime+(b._startTime+b._totalDuration/b._timeScale)/this._timeScale>this.timeline._time)for(var a=this;a._gc&&a._timeline;)a.totalTime(a._totalTime, !0),a=a._timeline;return this};a.remove=function(b){if(b instanceof g)return this._remove(b,!1);if(b instanceof Array){for(var a=b.length;-1<--a;)this.remove(b[a]);return this}return"string"===typeof b?this.removeLabel(b):this.kill(null,b)};a.append=function(b,a){return this.insert(b,this.duration()+(a||0))};a.insertMultiple=function(b,a,c,l){for(var c=c||"normal",l=l||0,f,h=this._parseTimeOrLabel(a||0,!0),g=b.length,a=0;a<g;a++){if((f=b[a])instanceof Array)f=new e({tweens:f});this.insert(f,h);"string"=== typeof f||"function"===typeof f||("sequence"===c?h=f._startTime+f.totalDuration()/f._timeScale:"start"===c&&(f._startTime-=f.delay()));h+=l}return this._uncache(!0)};a.appendMultiple=function(b,a,c,f){return this.insertMultiple(b,this.duration()+(a||0),c,f)};a.addLabel=function(b,a){this._labels[b]=a;return this};a.removeLabel=function(b){delete this._labels[b];return this};a.getLabelTime=function(b){return null!=this._labels[b]?this._labels[b]:-1};a._parseTimeOrLabel=function(b,a){return null==b? this.duration():"string"===typeof b&&isNaN(b)?null==this._labels[b]?a?this._labels[b]=this.duration():0:this._labels[b]:Number(b)};a.seek=function(b,a){return this.totalTime(this._parseTimeOrLabel(b,!1),!1!=a)};a.stop=function(){return this.paused(!0)};a.gotoAndPlay=function(b,a){return j.prototype.play.call(this,b,a)};a.gotoAndStop=function(b,a){return this.pause(b,a)};a.render=function(b,a,k){this._gc&&this._enabled(!0,!1);this._active=!this._paused;var f=!this._dirty?this._totalDuration:this.totalDuration(), e=this._time,h=this._startTime,g=this._timeScale,j=this._paused,v,m,t;if(b>=f){this._totalTime=this._time=f;if(!this._reversed&&!this._hasPausedChild()&&(v=!0,t="onComplete",0===this._duration&&(0===b||0>this._rawPrevTime)))this._rawPrevTime!==b&&(k=!0);this._rawPrevTime=b;b=f+1.0E-6}else if(0>=b){this._totalTime=this._time=0;if(0!==e||0===this._duration&&0<this._rawPrevTime)t="onReverseComplete",v=this._reversed;0>b?(this._active=!1,0===this._duration&&0<=this._rawPrevTime&&(k=!0)):this._initted|| (k=!0);this._rawPrevTime=b;b=-1.0E-6}else this._totalTime=this._time=this._rawPrevTime=b;if(this._time!==e||k){this._initted||(this._initted=!0);0===e&&this.vars.onStart&&0!==this._time&&(a||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||c));if(this._time>e)for(k=this._first;k;){m=k._next;if(this._paused&&!j)break;else if(k._active||k._startTime<=this._time&&!k._paused&&!k._gc)k._reversed?k.render((!k._dirty?k._totalDuration:k.totalDuration())-(b-k._startTime)*k._timeScale, a,!1):k.render((b-k._startTime)*k._timeScale,a,!1);k=m}else for(k=this._last;k;){m=k._prev;if(this._paused&&!j)break;else if(k._active||k._startTime<=e&&!k._paused&&!k._gc)k._reversed?k.render((!k._dirty?k._totalDuration:k.totalDuration())-(b-k._startTime)*k._timeScale,a,!1):k.render((b-k._startTime)*k._timeScale,a,!1);k=m}this._onUpdate&&(a||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||c));if(t&&!this._gc&&(h===this._startTime||g!=this._timeScale))if(0===this._time|| f>=this.totalDuration())v&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),a||this.vars[t]&&this.vars[t].apply(this.vars[t+"Scope"]||this,this.vars[t+"Params"]||c)}};a._hasPausedChild=function(){for(var b=this._first;b;){if(b._paused||b instanceof e&&b._hasPausedChild())return!0;b=b._next}return!1};a.getChildren=function(b,a,c,e){for(var e=e||-9999999999,h=[],g=this._first,j=0;g;)g._startTime<e||(g instanceof f?!1!=a&&(h[j++]=g):(!1!=c&&(h[j++]=g),!1!=b&&(h=h.concat(g.getChildren(!0, a,c)),j=h.length))),g=g._next;return h};a.getTweensOf=function(b,a){for(var c=f.getTweensOf(b),e=c.length,h=[],g=0;-1<--e;)if(c[e].timeline===this||a&&this._contains(c[e]))h[g++]=c[e];return h};a._contains=function(a){for(a=a.timeline;a;){if(a===this)return!0;a=a.timeline}return!1};a.shiftChildren=function(a,d,c){for(var c=c||0,f=this._first;f;)f._startTime>=c&&(f._startTime+=a),f=f._next;if(d)for(var e in this._labels)this._labels[e]>=c&&(this._labels[e]+=a);return this._uncache(!0)};a._kill=function(a, d){if(null==a&&null==d)return this._enabled(!1,!1);for(var c=null==d?this.getChildren(!0,!0,!1):this.getTweensOf(d),f=c.length,e=!1;-1<--f;)c[f]._kill(a,d)&&(e=!0);return e};a.clear=function(a){var d=this.getChildren(!1,!0,!0),c=d.length;for(this._time=this._totalTime=0;-1<--c;)d[c]._enabled(!1,!1);!1!=a&&(this._labels={});return this._uncache(!0)};a.invalidate=function(){for(var a=this._first;a;)a.invalidate(),a=a._next;return this};a._enabled=function(a,d){if(a==this._gc)for(var c=this._first;c;)c._enabled(a, !0),c=c._next;return j.prototype._enabled.call(this,a,d)};a.progress=function(a){return!arguments.length?this._time/this.duration():this.totalTime(this.duration()*a,!1)};a.duration=function(a){if(!arguments.length)return this._dirty&&this.totalDuration(),this._duration;0!==this.duration()&&0!==a&&this.timeScale(this._duration/a);return this};a.totalDuration=function(a){if(!arguments.length){if(this._dirty){for(var d=0,c=this._first,f=-999999999999,e;c;)e=c._next,c._startTime<f&&this._sortChildren? this.insert(c,c._startTime-c._delay):f=c._startTime,0>c._startTime&&(d-=c._startTime,this.shiftChildren(-c._startTime,!1,-9999999999)),c=c._startTime+(!c._dirty?c._totalDuration:c.totalDuration())/c._timeScale,c>d&&(d=c),c=e;this._duration=this._totalDuration=d;this._dirty=!1}return this._totalDuration}0!==this.totalDuration()&&0!==a&&this.timeScale(this._totalDuration/a);return this};a.usesFrames=function(){for(var a=this._timeline;a._timeline;)a=a._timeline;return a===g._rootFramesTimeline};a.rawTime= function(){return this._paused||0!==this._totalTime&&this._totalTime!==this._totalDuration?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale};return e},!0);_gsRequire("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(g,j,f){var e=function(a){g.call(this,a);this._repeat=this.vars.repeat||0;this._repeatDelay=this.vars.repeatDelay||0;this._cycle=0;this._yoyo=!0==this.vars.yoyo;this._dirty=!0},h=[],c=new f(null,null,1,0),f=e.prototype=new g;f.constructor=e;f.kill()._gc= !1;e.version=12;f.invalidate=function(){this._yoyo=!0==this.vars.yoyo;this._repeat=this.vars.repeat||0;this._repeatDelay=this.vars.repeatDelay||0;this._uncache(!0);return g.prototype.invalidate.call(this)};f.addCallback=function(a,b,c,f){return this.insert(j.delayedCall(0,a,c,f),b)};f.removeCallback=function(a,b){if(null==b)this._kill(null,a);else for(var c=this.getTweensOf(a,!1),f=c.length,e=this._parseTimeOrLabel(b,!1);-1<--f;)c[f]._startTime===e&&c[f]._enabled(!1,!1);return this};f.tweenTo=function(a, b){var b=b||{},d={ease:c,overwrite:2,useFrames:this.usesFrames(),immediateRender:!1},f,e;for(f in b)d[f]=b[f];d.time=this._parseTimeOrLabel(a,!1);e=new j(this,Math.abs(Number(d.time)-this._time)/this._timeScale||0.001,d);d.onStart=function(){e.target.paused(!0);e.vars.time!=e.target.time()&&e.duration(Math.abs(e.vars.time-e.target.time())/e.target._timeScale);b.onStart&&b.onStart.apply(b.onStartScope||e,b.onStartParams||h)};return e};f.tweenFromTo=function(a,b,c){c=c||{};c.startAt={time:this._parseTimeOrLabel(a, !1)};a=this.tweenTo(b,c);return a.duration(Math.abs(a.vars.time-a.vars.startAt.time)/this._timeScale||0.001)};f.render=function(a,b,c){this._gc&&this._enabled(!0,!1);this._active=!this._paused;var f=!this._dirty?this._totalDuration:this.totalDuration(),e=this._time,g=this._totalTime,j=this._startTime,A=this._timeScale,B=this._rawPrevTime,v=this._paused,m=this._cycle,t,p;if(a>=f){this._locked||(this._totalTime=f,this._cycle=this._repeat);if(!this._reversed&&!this._hasPausedChild()&&(t=!0,p="onComplete", 0===this._duration&&(0===a||0>this._rawPrevTime)))this._rawPrevTime!==a&&(c=!0);this._rawPrevTime=a;this._yoyo&&0!==(this._cycle&1)?(this._time=0,a=-1.0E-6):(this._time=this._duration,a=this._duration+1.0E-6)}else if(0>=a){this._locked||(this._totalTime=this._cycle=0);this._time=0;if(0!==e||0===this._duration&&0<this._rawPrevTime)p="onReverseComplete",t=this._reversed;0>a?(this._active=!1,0===this._duration&&0<=this._rawPrevTime&&(c=!0)):this._initted||(c=!0);this._rawPrevTime=a;a=-1.0E-6}else if(this._time= this._rawPrevTime=a,!this._locked&&(this._totalTime=a,0!==this._repeat))(a=this._duration+this._repeatDelay,this._cycle=this._totalTime/a>>0,0!==this._cycle&&this._cycle===this._totalTime/a&&this._cycle--,this._time=this._totalTime-this._cycle*a,this._yoyo&&0!=(this._cycle&1)&&(this._time=this._duration-this._time),this._time>this._duration)?(this._time=this._duration,a=this._duration+1.0E-6):0>this._time?(this._time=0,a=-1.0E-6):a=this._time;if(this._cycle!==m&&!this._locked){var C=this._yoyo&&0!== (m&1),x=C===(this._yoyo&&0!==(this._cycle&1)),E=this._totalTime,D=this._cycle,F=this._rawPrevTime,o=this._time;this._totalTime=m*this._duration;this._cycle<m?C=!C:this._totalTime+=this._duration;this._time=e;this._rawPrevTime=B;this._cycle=m;this._locked=!0;e=C?0:this._duration;this.render(e,b,!1);b||this._gc||this.vars.onRepeat&&this.vars.onRepeat.apply(this.vars.onRepeatScope||this,vars.onRepeatParams||h);x&&(e=C?this._duration+1.0E-6:-1.0E-6,this.render(e,!0,!1));this._time=o;this._totalTime=E; this._cycle=D;this._rawPrevTime=F;this._locked=!1}if(this._time!==e||c){this._initted||(this._initted=!0);0===g&&this.vars.onStart&&0!==this._totalTime&&(b||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||h));if(this._time>e)for(c=this._first;c;){g=c._next;if(this._paused&&!v)break;else if(c._active||c._startTime<=this._time&&!c._paused&&!c._gc)c._reversed?c.render((!c._dirty?c._totalDuration:c.totalDuration())-(a-c._startTime)*c._timeScale,b,!1):c.render((a-c._startTime)* c._timeScale,b,!1);c=g}else for(c=this._last;c;){g=c._prev;if(this._paused&&!v)break;else if(c._active||c._startTime<=e&&!c._paused&&!c._gc)c._reversed?c.render((!c._dirty?c._totalDuration:c.totalDuration())-(a-c._startTime)*c._timeScale,b,!1):c.render((a-c._startTime)*c._timeScale,b,!1);c=g}this._onUpdate&&(b||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||h));if(p&&!this._locked&&!this._gc&&(j===this._startTime||A!=this._timeScale))if(0===this._time||f>=this.totalDuration())t&& (this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),b||this.vars[p]&&this.vars[p].apply(this.vars[p+"Scope"]||this,this.vars[p+"Params"]||h)}};f.getActive=function(a,c,d){null==a&&(a=!0);null==c&&(c=!0);null==d&&(d=!1);var e=[],a=this.getChildren(a,c,d),c=0,d=a.length,f,h;for(f=0;f<d;f++)if(h=a[f],!h._paused&&h._timeline._totalTime>=h._startTime&&h._timeline._totalTime<h._startTime+h._totalDuration/h._timeScale){var g;a:{for(g=h._timeline;g;){if(g._paused){g=!0;break a}g=g._timeline}g= !1}g||(e[c++]=h)}return e};f.getLabelAfter=function(a){!a&&0!==a&&(a=this._time);var c=this._getLabelsArray(),d=c.length,f;for(f=0;f<d;f++)if(c[f].time>a)return c[f].name;return null};f.getLabelBefore=function(a){null==a&&(a=this._time);for(var c=this._getLabelsArray(),f=c.length;-1<--f;)if(c[f].time<a)return c[f].name;return null};f._getLabelsArray=function(){var a=[],c=0,f;for(f in this._labels)a[c++]={time:this._labels[f],name:f};a.sort(function(a,c){return a.time-c.time});return a};f.progress= function(a){return!arguments.length?this._time/this.duration():this.totalTime(this.duration()*a+this._cycle*this._duration,!1)};f.totalProgress=function(a){return!arguments.length?this._totalTime/this.totalDuration():this.totalTime(this.totalDuration()*a,!1)};f.totalDuration=function(a){return!arguments.length?(this._dirty&&(g.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration):-1== this._repeat?this:this.duration((a-this._repeat*this._repeatDelay)/(this._repeat+1))};f.time=function(a,c){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();a>this._duration&&(a=this._duration);this._yoyo&&0!==(this._cycle&1)?a=this._duration-a+this._cycle*(this._duration+this._repeatDelay):0!=this._repeat&&(a+=this._cycle*(this._duration+this._repeatDelay));return this.totalTime(a,c)};f.repeat=function(a){if(!arguments.length)return this._repeat;this._repeat=a;return this._uncache(!0)}; f.repeatDelay=function(a){if(!arguments.length)return this._repeatDelay;this._repeatDelay=a;return this._uncache(!0)};f.yoyo=function(a){if(!arguments.length)return this._yoyo;this._yoyo=a;return this};f.currentLabel=function(a){return!arguments.length?this.getLabelBefore(this._time+1.0E-8):this.seek(a,!0)};return e},!0);_gsRequire("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(g){var j=function(){g.call(this,"css");this._overwriteProps.pop()},f=j.prototype=new g("css");f.constructor= j;j.API=2;j.suffixMap={top:"px",right:"px",bottom:"px",left:"px",width:"px",height:"px",fontSize:"px",padding:"px",margin:"px"};var e=/[^\d\-\.]/g,h=/(\d|\-|\+|=|#|\.)*/g,c=/\d+/g,a=/opacity=([^)]*)/,b=/opacity:([^;]*)/,d=/([A-Z])/g,k=/-([a-z])/gi,l=function(i,a){return a.toUpperCase()},u=/(Left|Right|width|Width)/,z=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,A=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,B=Math.PI/180,v=180/Math.PI,m=document.createElement("div"),t=function(){var i=document.createElement("div"), a;i.innerHTML="<a style='top:1px;opacity:.55;'>a</a>";return!(a=i.getElementsByTagName("a")[0])?!1:/^0.55/.test(a.style.opacity)}(),p=function(i){return!i||""===i?r.black:r[i]?r[i]:"#"===i.charAt(0)?(4===i.length&&(i="#"+i.charAt(1)+i.charAt(1)+i.charAt(2)+i.charAt(2)+i.charAt(3)+i.charAt(3)),i=parseInt(i.substr(1),16),[i>>16,i>>8&255,i&255]):i.match(c)||r.transparent},C=function(i){return a.test("string"===typeof i?i:(i.currentStyle?i.currentStyle.filter:i.style.filter)||"")?parseFloat(RegExp.$1)/ 100:1},x=document.defaultView?document.defaultView.getComputedStyle:function(){},E=function(i,a,c,b){return!t&&"opacity"===a?C(i):!b&&i.style[a]?i.style[a]:(c=c||x(i,null))?(i=c.getPropertyValue(a.replace(d,"-$1").toLowerCase()))||c.length?i:c[a]:i.currentStyle?i.currentStyle[a]:null},D=function(i,a){var c={},b;if(a=a||x(i,null))if(b=a.length)for(;-1<--b;)c[a[b].replace(k,l)]=a.getPropertyValue(a[b]);else for(b in a)c[b]=a[b];else if(a=i.currentStyle||i.style)for(b in a)c[b.replace(k,l)]=a[b];t|| (c.opacity=C(i));b=G(i,a,!1);c.rotation=b.rotation*v;c.skewX=b.skewX*v;c.scaleX=b.scaleX;c.scaleY=b.scaleY;c.x=b.x;c.y=b.y;null!=c.filters&&delete c.filters;return c},F=function(i,a,c,b){var n={},s,o;for(o in a)if("cssText"!==o&&"length"!==o&&isNaN(o)&&s!==w&&i[o]!=(s=a[o]))if("number"===typeof s||"string"===typeof s)n[o]=s,b&&b.props.push(o);if(c)for(o in c)"className"!==o&&(n[o]=c[o]);return n},o={scaleX:1,scaleY:1,x:1,y:1,rotation:1,shortRotation:1,skewX:1,skewY:1,scale:1},y,w=function(){for(var i= document.body||document.documentElement,a=x(i,""),c="O -o- Moz -moz- ms -ms- Webkit -webkit-".split(" "),b=9;-1<(b-=2)&&!E(i,c[b]+"transform",a););return 0<b?(y=c[b]+"transform",c[b-1]+"Transform"):null}(),G=function(i,a,c){var b;w?b=E(i,y,a,!0):i.currentStyle&&(b=(b=i.currentStyle.filter.match(z))&&4===b.length?b[0].substr(4)+","+Number(b[2].substr(4))+","+Number(b[1].substr(4))+","+b[3].substr(4)+",0,0":null);var a=(b||"").replace(/[^\d\-\.e,]/g,"").split(","),n=(b=6<=a.length)?Number(a[0]):1,s= b?Number(a[1]):0,o=b?Number(a[2]):0,f=b?Number(a[3]):1,e=c?i._gsTransform||{skewY:0}:{skewY:0},d=0>e.scaleX;e.x=b?Number(a[4]):0;e.y=b?Number(a[5]):0;e.rotation=Math.atan2(s,n);e.scaleX=Math.sqrt(n*n+s*s);e.scaleY=Math.sqrt(f*f+o*o);e.skewX=Math.atan2(o,f)+e.rotation;if(0>n&&0<=f||0<n&&0>=f)d?(e.scaleX*=-1,e.skewX+=0>=e.rotation?Math.PI:-Math.PI,e.rotation+=0>=e.rotation?Math.PI:-Math.PI):(e.scaleY*=-1,e.skewX+=0>=e.skewX?Math.PI:-Math.PI);1.0E-8>e.rotation&&-1.0E-8<e.rotation&&(e.rotation=0);1.0E-8> e.skewX&&-1.0E-8<e.skewX&&(e.skewX=0);c&&(i._gsTransform=e);return e},I={width:["Left","Right"],height:["Top","Bottom"]},H=["marginLeft","marginRight","marginTop","marginBottom"],i=function(a,c,b,n,s){if("px"===n)return b;if("auto"===n)return 0;var o=u.test(c),e=a;m.style.cssText="border-style:solid; border-width:0; position:absolute; line-height:0;";"%"===n||"em"===n?(e=a.parentNode||document.body,m.style[o?"width":"height"]=b+n):m.style[o?"borderLeftWidth":"borderTopWidth"]=b+n;e.appendChild(m); o=parseFloat(m[o?"offsetWidth":"offsetHeight"]);e.removeChild(m);0===o&&!s&&(o=i(a,c,b,n,!0));return o},s=function(i,a){if(null==i||""===i||"auto"===i)i="0 0";var a=a||{},c=-1!==i.indexOf("left")?"0%":-1!==i.indexOf("right")?"100%":i.split(" ")[0],b=-1!==i.indexOf("top")?"0%":-1!==i.indexOf("bottom")?"100%":i.split(" ")[1];null==b&&(b="0");a.oxp=-1!==c.indexOf("%");a.oyp=-1!==b.indexOf("%");a.oxr="="===c.charAt(1);a.oyr="="===b.charAt(1);a.ox=parseFloat(c.replace(e,""));a.oy=parseFloat(b.replace(e, ""));return a},n=function(i,a){return null==i?a:"string"===typeof i&&1===i.indexOf("=")?Number(i.split("=").join(""))+a:Number(i)},q=function(i,a){var c=-1===i.indexOf("rad")?B:1,b=1===i.indexOf("="),i=Number(i.replace(e,""))*c;return b?i+a:i},r={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128, 0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]};f._onInitTween=function(i,a,c){if(!i.nodeType)return!1;this._target=i;this._tween=c;this._classData=this._transform=null;var c=this._style=i.style,n=x(i,""),s,o;"string"===typeof a?(s=c.cssText,o=D(i,n),c.cssText=s+";"+a,o=F(o,D(i)),!t&&b.test(a)&&(val.opacity=parseFloat(RegExp.$1)),a=o,c.cssText=s):a.className&&(s=i.className,o=D(i,n),i.className="="!==a.className.charAt(1)?a.className:"+"===a.className.charAt(0)? i.className+" "+a.className.substr(2):i.className.split(a.className.substr(2)).join(""),a=F(o,D(i),a,this._classData={b:s,e:i.className,props:[]}),i.className=s);this._parseVars(a,i,n,a.suffixMap||j.suffixMap);return!0};f._parseVars=function(a,c,b,n){var f=this._style,d,q,g,r,j,k,l;for(d in a)if(q=a[d],"transform"===d||d===w)this._parseTransform(c,q,b,n);else if(o[d]||"transformOrigin"===d)this._parseTransform(c,a,b,n);else{if("alpha"===d||"autoAlpha"===d)d="opacity";else if("margin"===d||"padding"=== d){q=q.split(" ");r=q.length;g={};g[d+"Top"]=q[0];g[d+"Right"]=1<r?q[1]:q[0];g[d+"Bottom"]=4===r?q[2]:q[0];g[d+"Left"]=4===r?q[3]:2===r?q[1]:q[0];this._parseVars(g,c,b,n);continue}else if("backgroundPosition"===d||"backgroundSize"===d){g=s(q);l=s(r=E(c,d,b));this._firstPT=g={_next:this._firstPT,t:f,p:d,b:r,f:!1,n:"css_"+d,type:3,s:l.ox,c:g.oxr?g.ox:g.ox-l.ox,ys:l.oy,yc:g.oyr?g.oy:g.oy-l.oy,sfx:g.oxp?"%":"px",ysfx:g.oyp?"%":"px",r:!g.oxp&&!1!==a.autoRound};g.e=g.s+g.c+g.sfx+" "+(g.ys+g.yc)+g.ysfx; continue}else if("border"===d){q=q.split(" ");this._parseVars({borderWidth:q[0],borderStyle:q[1]||"none",borderColor:q[2]||"#000000"},c,b,n);continue}else if("autoRound"===d)continue;r=E(c,d,b);r=null!=r?r+"":"";this._firstPT=g={_next:this._firstPT,t:f,p:d,b:r,f:!1,n:"css_"+d,sfx:"",r:!1,type:0};"opacity"===d&&null!=a.autoAlpha&&(this._firstPT=g._prev={_next:g,t:f,p:"visibility",f:!1,n:"css_visibility",r:!1,type:-1,b:0!==Number(r)?"visible":"hidden",i:"visible",e:0===Number(q)?"hidden":"visible"}, this._overwriteProps.push("css_visibility"));if("color"===d||"fill"===d||"stroke"===d||-1!==d.indexOf("Color")||"string"===typeof q&&!q.indexOf("rgb("))j=p(r),r=p(q),g.e=q,g.s=Number(j[0]),g.c=Number(r[0])-g.s,g.gs=Number(j[1]),g.gc=Number(r[1])-g.gs,g.bs=Number(j[2]),g.bc=Number(r[2])-g.bs,3<j.length||3<r.length?(g.as=4>j.length?1:Number(j[3]),g.ac=(4>r.length?1:Number(r[3]))-g.as,g.type=g.c||g.gc||g.bc||g.ac?2:-1):g.type=g.c||g.gc||g.bc?1:-1;else{j=r.replace(h,"");if(""===r||"auto"===r)if("width"=== d||"height"===d){k=d;j=c;r=b;l=parseFloat("width"===k?j.offsetWidth:j.offsetHeight);k=I[k];var m=k.length;for(r=r||x(j,null);-1<--m;)l-=parseFloat(E(j,"padding"+k[m],r,!0))||0,l-=parseFloat(E(j,"border"+k[m]+"Width",r,!0))||0;j="px"}else l="opacity"!==d?0:1;else l=-1===r.indexOf(" ")?parseFloat(r.replace(e,"")):NaN;"string"===typeof q?(r="="===q.charAt(1),k=q.replace(h,""),q=-1===q.indexOf(" ")?parseFloat(q.replace(e,"")):NaN):(r=!1,k="");""===k&&(k=n[d]||j);g.e=q||0===q?(r?q+l:q)+k:a[d];if(j!==k&& ""!==k&&(q||0===q))if(l||0===l)if(l=i(c,d,l,j),"%"===k?(l/=i(c,d,100,"%")/100,100<l&&(l=100)):"em"===k?l/=i(c,d,1,"em"):(q=i(c,d,q,k),k="px"),r&&(q||0===q))g.e=q+l+k;if((l||0===l)&&(q||0===q)&&(g.c=r?q:q-l))if(g.s=l,g.sfx=k,"opacity"===d)t||(g.type=4,g.p="filter",g.b="alpha(opacity="+100*g.s+")",g.e="alpha(opacity="+100*(g.s+g.c)+")",g.dup=null!=a.autoAlpha,this._style.zoom=1);else{if(!1!==a.autoRound&&("px"===k||"zIndex"===d))g.r=!0}else g.type=-1,g.i=g.e,g.s=g.c=0}this._overwriteProps.push("css_"+ d);g._next&&(g._next._prev=g)}};f._parseTransform=function(i,a,c){if(!this._transform){var c=this._transform=G(i,c,!0),b=this._style,d,e;if("object"===typeof a){i={scaleX:n(null!=a.scaleX?a.scaleX:a.scale,c.scaleX),scaleY:n(null!=a.scaleY?a.scaleY:a.scale,c.scaleY),x:n(a.x,c.x),y:n(a.y,c.y)};null!=a.shortRotation?(i.rotation="number"===typeof a.shortRotation?a.shortRotation*B:q(a.shortRotation,c.rotation),d=(i.rotation-c.rotation)%(2*Math.PI),d!==d%Math.PI&&(d+=Math.PI*(0>d?2:-2)),i.rotation=c.rotation+ d):i.rotation=null==a.rotation?c.rotation:"number"===typeof a.rotation?a.rotation*B:q(a.rotation,c.rotation);i.skewX=null==a.skewX?c.skewX:"number"===typeof a.skewX?a.skewX*B:q(a.skewX,c.skewX);i.skewY=null==a.skewY?c.skewY:"number"===typeof a.skewY?a.skewY*B:q(a.skewY,c.skewY);if(d=i.skewY-c.skewY)i.skewX+=d,i.rotation+=d;if(null!=(a=a.transformOrigin))w?(e=w+"Origin",this._firstPT=a={_next:this._firstPT,t:b,p:e,s:0,c:0,n:e,f:!1,r:!1,b:b[e],e:a,i:a,type:-1,sfx:""},a._next&&(a._next._prev=a)):s(a, c)}else if("string"===typeof a&&w)d=b[w],b[w]=a,i=G(i,null,!1),b[w]=d;else return;w?"WebkitTransform"===w&&(b[w+"Style"]="preserve-3d"):b.zoom=1;for(e in o)c[e]!==i[e]&&("shortRotation"!==e&&"scale"!==e)&&(this._firstPT=a={_next:this._firstPT,t:c,p:e,s:c[e],c:i[e]-c[e],n:e,f:!1,r:!1,b:c[e],e:i[e],type:0,sfx:0},a._next&&(a._next._prev=a),this._overwriteProps.push("css_"+e))}};f.setRatio=function(c){var b=this._firstPT,n,s;if(1===c&&(this._tween._time===this._tween._duration||0===this._tween._time))for(;b;)b.t[b.p]= b.e,4===b.type&&1===b.s+b.c&&this._style.removeAttribute("filter"),b=b._next;else if(c||!(this._tween._time===this._tween._duration||0===this._tween._time))for(;b;)n=b.c*c+b.s,b.r&&(n=0<n?n+0.5>>0:n-0.5>>0),b.type?1===b.type?b.t[b.p]="rgb("+(n>>0)+", "+(b.gs+c*b.gc>>0)+", "+(b.bs+c*b.bc>>0)+")":2===b.type?b.t[b.p]="rgba("+(n>>0)+", "+(b.gs+c*b.gc>>0)+", "+(b.bs+c*b.bc>>0)+", "+(b.as+c*b.ac)+")":-1===b.type?b.t[b.p]=b.i:3===b.type?(s=b.ys+c*b.yc,b.r&&(s=0<s?s+0.5>>0:s-0.5>>0),b.t[b.p]=n+b.sfx+" "+ s+b.ysfx):(b.dup&&(b.t.filter=b.t.filter||"alpha(opacity=100)"),b.t.filter=-1===b.t.filter.indexOf("opacity=")?b.t.filter+(" alpha(opacity="+(100*n>>0)+")"):b.t.filter.replace(a,"opacity="+(100*n>>0))):b.t[b.p]=n+b.sfx,b=b._next;else for(;b;)b.t[b.p]=b.b,4===b.type&&1===b.s&&this._style.removeAttribute("filter"),b=b._next;if(this._transform)if(b=this._transform,w&&!b.rotation)this._style[w]=(b.x||b.y?"translate("+b.x+"px,"+b.y+"px) ":"")+(b.skewX?"skewX("+b.skewX+"rad) ":"")+(1!==b.scaleX||1!==b.scaleY? "scale("+b.scaleX+","+Math.cos(b.skewX)*b.scaleY+")":"")||"translate(0px,0px)";else{var d=w?b.rotation:-b.rotation,e=w?d-b.skewX:d+b.skewX;s=Math.cos(d)*b.scaleX;var d=Math.sin(d)*b.scaleX,o=Math.sin(e)*-b.scaleY,e=Math.cos(e)*b.scaleY,g=1.0E-8,q;d<g&&d>-g&&(d=0);o<g&&o>-g&&(o=0);if(w)this._style[w]="matrix("+s+","+d+","+o+","+e+","+b.x+","+b.y+")";else if(q=this._target.currentStyle){g=d;d=-o;o=-g;g=this._style.filter;this._style.filter="";n=this._target.offsetWidth;var r=this._target.offsetHeight, j="absolute"!==q.position,k="progid:DXImageTransform.Microsoft.Matrix(M11="+s+", M12="+d+", M21="+o+", M22="+e,l=b.x,p=b.y,m,y;null!=b.ox&&(m=(b.oxp?0.01*n*b.ox:b.ox)-n/2,y=(b.oyp?0.01*r*b.oy:b.oy)-r/2,l=m-(m*s+y*d)+b.x,p=y-(m*o+y*e)+b.y);if(j)m=n/2,y=r/2,k+=", Dx="+(m-(m*s+y*d)+l)+", Dy="+(y-(m*o+y*e)+p)+")";else{j=4;m=b.ieOffsetX||0;y=b.ieOffsetY||0;b.ieOffsetX=Math.round((n-((0>s?-s:s)*n+(0>d?-d:d)*r))/2+l);for(b.ieOffsetY=Math.round((r-((0>e?-e:e)*r+(0>o?-o:o)*n))/2+p);-1<--j;)r=H[j],n=q[r],n= -1!==n.indexOf("px")?parseFloat(n):i(this._target,f,parseFloat(n),n.replace(h,""))||0,1===j?n-=l:3===j&&(n-=p),this._style[r]=Math.round(n-(2>j?m-b.ieOffsetX:y-b.ieOffsetY))+"px";k+=",sizingMethod='auto expand')"}this._style.filter=-1!==g.indexOf("progid:DXImageTransform.Microsoft.Matrix(")?g.replace(A,k):g+" "+k;if(0===c||1===c)1===s&&0===d&&0===o&&1===e&&(!a.test(g)||100===parseFloat(RegExp.$1))&&this._style.removeAttribute("filter")}}if(this._classData)if(b=this._classData,1===c&&(this._tween._time=== this._tween._duration||0===this._tween._time)){for(j=b.props.length;-1<--j;)this._style[b.props[j]]="";this._target.className=b.e}else this._target.className!==b.b&&(this._target.className=b.b)};f._kill=function(a){var i=a,b;if(a.autoAlpha||a.alpha){i={};for(b in a)i[b]=a[b];i.opacity=1;i.autoAlpha&&(i.visibility=1)}return g.prototype._kill.call(this,i)};g.activate([j]);return j},!0);_gsRequire("plugins.RoundPropsPlugin",["plugins.TweenPlugin"],function(g){var j=function(){g.call(this,"roundProps", -1);this._overwriteProps.pop()},f=j.prototype=new g("roundProps",-1);f.constructor=j;j.API=2;f._onInitTween=function(e,g,c){this._tween=c;return!0};f._onInitAllProps=function(){for(var e=this._tween.vars.roundProps instanceof Array?this._tween.vars.roundProps:this._tween.vars.roundProps.split(","),g=e.length,c={},a,b;-1<--g;)c[e[g]]=1;for(g=e.length;-1<--g;){a=e[g];for(b=this._tween._firstPT;b;)b.pg?b.t._roundProps(c,!0):b.n==a&&(this._add(b.t,a,b.s,b.c),b._next&&(b._next._prev=b._prev),b._prev?b._prev._next= b._next:_tween._firstPT===b&&(this._tween._firstPT=b._next),b._next=b._prev=null,this._tween._propLookup[a]=this),b=b._next}return!1};f._add=function(e,g,c,a){this._addTween(e,g,c,c+a,g,!0);this._overwriteProps.push(g)};g.activate([j]);return j},!0);_gsRequire("easing.Back",["easing.Ease"],function(g){var j=window.com.greensock._class,f=function(a,b){var c=j("easing."+a,function(){},!0),d=c.prototype=new g;d.constructor=c;d.getRatio=b;return c},e=function(a,b){var c=j("easing."+a,function(a){this._p1= a||0===a?a:1.70158;this._p2=1.525*this._p1},!0),d=c.prototype=new g;d.constructor=c;d.getRatio=b;d.config=function(a){return new c(a)};return c},h=e("BackOut",function(a){return(a-=1)*a*((this._p1+1)*a+this._p1)+1}),c=e("BackIn",function(a){return a*a*((this._p1+1)*a-this._p1)}),e=e("BackInOut",function(a){return 1>(a*=2)?0.5*a*a*((this._p2+1)*a-this._p2):0.5*((a-=2)*a*((this._p2+1)*a+this._p2)+2)}),a=f("BounceOut",function(a){return a<1/2.75?7.5625*a*a:a<2/2.75?7.5625*(a-=1.5/2.75)*a+0.75:a<2.5/ 2.75?7.5625*(a-=2.25/2.75)*a+0.9375:7.5625*(a-=2.625/2.75)*a+0.984375}),b=f("BounceIn",function(a){return(a=1-a)<1/2.75?1-7.5625*a*a:a<2/2.75?1-(7.5625*(a-=1.5/2.75)*a+0.75):a<2.5/2.75?1-(7.5625*(a-=2.25/2.75)*a+0.9375):1-(7.5625*(a-=2.625/2.75)*a+0.984375)}),d=f("BounceInOut",function(a){var b=0.5>a,a=b?1-2*a:2*a-1,a=a<1/2.75?7.5625*a*a:a<2/2.75?7.5625*(a-=1.5/2.75)*a+0.75:a<2.5/2.75?7.5625*(a-=2.25/2.75)*a+0.9375:7.5625*(a-=2.625/2.75)*a+0.984375;return b?0.5*(1-a):0.5*a+0.5}),k=f("CircOut",function(a){return Math.sqrt(1- (a-=1)*a)}),l=f("CircIn",function(a){return-(Math.sqrt(1-a*a)-1)}),u=f("CircInOut",function(a){return 1>(a*=2)?-0.5*(Math.sqrt(1-a*a)-1):0.5*(Math.sqrt(1-(a-=2)*a)+1)}),z=2*Math.PI,A=function(a,b,c){var d=j("easing."+a,function(a,b){a=a||0;this._p1=!a||1>a?1:a;this._p2=b||c;this._p3=this._p2/z*Math.asin(1/this._p1)},!0),a=d.prototype=new g;a.constructor=d;a.getRatio=b;a.config=function(a,b){return new d(a,b)};return d},B=A("ElasticOut",function(a){return this._p1*Math.pow(2,-10*a)*Math.sin((a-this._p3)* z/this._p2)+1},0.3),v=A("ElasticIn",function(a){return-(this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*z/this._p2))},0.3),A=A("ElasticInOut",function(a){return 1>(a*=2)?-0.5*this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*z/this._p2):0.5*this._p1*Math.pow(2,-10*(a-=1))*Math.sin((a-this._p3)*z/this._p2)+1},0.45),m=f("ExpoOut",function(a){return 1-Math.pow(2,-10*a)}),t=f("ExpoIn",function(a){return Math.pow(2,10*(a-1))-0.001}),p=f("ExpoInOut",function(a){return 1>(a*=2)?0.5*Math.pow(2,10* (a-1)):0.5*(2-Math.pow(2,-10*(a-1)))}),C=Math.PI/2,x=f("SineOut",function(a){return Math.sin(a*C)}),E=f("SineIn",function(a){return-Math.cos(a*C)+1}),f=f("SineInOut",function(a){return-0.5*(Math.cos(Math.PI*a)-1)}),D=j("easing.SlowMo",function(a,b,c){null==a?a=0.7:1<a&&(a=1);this._p=1!=a?b||0===b?b:0.7:0;this._p1=(1-a)/2;this._p2=a;this._p3=this._p1+this._p2;this._calcEnd=!0==c},!0),F=D.prototype=new g;F.constructor=D;F.getRatio=function(a){var b=a+(0.5-a)*this._p;return a<this._p1?this._calcEnd? 1-(a=1-a/this._p1)*a:b-(a=1-a/this._p1)*a*a*a*b:a>this._p3?this._calcEnd?1-(a=(a-this._p3)/this._p1)*a:b+(a-b)*(a=(a-this._p3)/this._p1)*a*a*a:this._calcEnd?1:b};D.ease=new D(0.7,0.7);F.config=function(a,b,c){return new D(a,b,c)};j("easing.Bounce",{easeOut:new a,easeIn:new b,easeInOut:new d},!0);j("easing.Circ",{easeOut:new k,easeIn:new l,easeInOut:new u},!0);j("easing.Elastic",{easeOut:new B,easeIn:new v,easeInOut:new A},!0);j("easing.Expo",{easeOut:new m,easeIn:new t,easeInOut:new p},!0);j("easing.Sine", {easeOut:new x,easeIn:new E,easeInOut:new f},!0);return{easeOut:new h,easeIn:new c,easeInOut:new e}},!0)}); (function(g){var j=function(a){var a=a.split("."),b=g,c;for(c=0;c<a.length;c++)b[a[c]]=b=b[a[c]]||{};return b},f=j("com.greensock"),e,h,c,a,b={},d=function(a,c,n,e){this.sc=b[a]?b[a].sc:[];b[a]=this;this.gsClass=null;this.def=n;var f=c||[],h=[];this.check=function(c){for(var s=f.length,k=0,l;-1<--s;)(l=b[f[s]]||new d(f[s])).gsClass?h[s]=l.gsClass:(k++,c&&l.sc.push(this));if(0===k&&n){var c=("com.greensock."+a).split("."),s=c.pop(),m=j(c.join("."))[s]=this.gsClass=n.apply(n,h);e&&("function"===typeof define&& define.amd?define(s,[],function(){return m}):"undefined"!==typeof module&&module.exports&&(module.exports=m),(g._gsGlobals||g)[s]=m);for(s=0;s<this.sc.length;s++)this.sc[s].check(!1)}};this.check(!0)},k=f._class=function(a,b,c){new d(a,[],function(){return b},c);return b};g._gsRequire=function(a,b,c,e){return new d(a,b,c,e)};var l=[0,0,1,1],u=[],z=k("easing.Ease",function(a,b,c,d){this._func=a;this._type=c||0;this._power=d||0;this._params=b?l.concat(b):l},!0);c=z.prototype;c._calcEnd=!1;c.getRatio= function(a){if(this._func)return this._params[0]=a,this._func.apply(null,this._params);var b=this._type,c=this._power,d=1===b?1-a:2===b?a:0.5>a?2*a:2*(1-a);1===c?d*=d:2===c?d*=d*d:3===c?d*=d*d*d:4===c&&(d*=d*d*d*d);return 1===b?1-d:2===b?d:0.5>a?d/2:1-d/2};e=["Linear","Quad","Cubic","Quart","Quint"];for(h=e.length;-1<--h;)c=k("easing."+e[h],function(){},!0),a=k("easing.Power"+h,function(){},!0),c.easeOut=a.easeOut=new z(null,null,1,h),c.easeIn=a.easeIn=new z(null,null,2,h),c.easeInOut=a.easeInOut= new z(null,null,3,h);k("easing.Strong",f.easing.Power4,!0);f.easing.Linear.easeNone=f.easing.Linear.easeIn;c=k("events.EventDispatcher",function(a){this._listeners={};this._eventTarget=a||this}).prototype;c.addEventListener=function(a,b,c,d,e){var e=e||0,g=this._listeners[a],f=0,h;null==g&&(this._listeners[a]=g=[]);for(h=g.length;-1<--h;)a=g[h],a.c===b?g.splice(h,1):0===f&&a.pr<e&&(f=h+1);g.splice(f,0,{c:b,s:c,up:d,pr:e})};c.removeEventListener=function(a,b){var c=this._listeners[a];if(c)for(var d= c.length;-1<--d;)if(c[d].c===b){c.splice(d,1);break}};c.dispatchEvent=function(a){var b=this._listeners[a];if(b)for(var c=b.length,d,e=this._eventTarget;-1<--c;)d=b[c],d.up?d.c.call(d.s||e,{type:a,target:e}):d.c.call(d.s||e)};var A=g.requestAnimationFrame,B=g.cancelAnimationFrame,v=Date.now||function(){return(new Date).getTime()};e=["ms","moz","webkit","o"];for(h=e.length;-1<--h&&!A;)A=g[e[h]+"RequestAnimationFrame"],B=g[e[h]+"CancelAnimationFrame"]||g[e[h]+"CancelRequestAnimationFrame"];B||(B=function(a){g.clearTimeout(a)}); k("Ticker",function(a,b){this.frame=this.time=0;var c=this,d=v(),e=!1!==b,f,h,j,k,l;this.tick=function(){c.time=(v()-d)/1E3;if(!f||c.time>=l)c.frame++,l=c.time+k-(c.time-l)-5.0E-4,l<=c.time&&(l=c.time+0.001),c.dispatchEvent("tick");j=h(c.tick)};this.fps=function(a){if(!arguments.length)return f;f=a;k=1/(f||60);l=this.time+k;h=0===f?function(){}:!e||!A?function(a){return g.setTimeout(a,1E3*(l-c.time)+1>>0||1)}:A;B(j);j=h(c.tick)};this.useRAF=function(a){if(!arguments.length)return e;e=a;this.fps(f)}; this.fps(a)});c=f.Ticker.prototype=new f.events.EventDispatcher;c.constructor=f.Ticker;var m=k("core.Animation",function(a,b){this.vars=b||{};this._duration=this._totalDuration=a||0;this._delay=Number(this.vars.delay)||0;this._timeScale=1;this._active=!0==this.vars.immediateRender;this.data=this.vars.data;this._reversed=!0==this.vars.reversed;if(y){var c=this.vars.useFrames?o:y;c.insert(this,c._time);this.vars.paused&&this.paused(!0)}}),t=m.ticker=new f.Ticker;c=m.prototype;c._dirty=c._gc=c._initted= c._paused=!1;c._totalTime=c._time=0;c._rawPrevTime=-1;c._next=c._last=c._onUpdate=c._timeline=c.timeline=null;c._paused=!1;c.play=function(a,b){arguments.length&&this.seek(a,b);this.reversed(!1);return this.paused(!1)};c.pause=function(a,b){arguments.length&&this.seek(a,b);return this.paused(!0)};c.resume=function(a,b){arguments.length&&this.seek(a,b);return this.paused(!1)};c.seek=function(a,b){return this.totalTime(Number(a),!1!=b)};c.restart=function(a,b){this.reversed(!1);this.paused(!1);return this.totalTime(a? -this._delay:0,!1!=b)};c.reverse=function(a,b){arguments.length&&this.seek(a||this.totalDuration(),b);this.reversed(!0);return this.paused(!1)};c.render=function(){};c.invalidate=function(){return this};c._enabled=function(a,b){this._gc=!a;this._active=a&&!this._paused&&0<this._totalTime&&this._totalTime<this._totalDuration;!0!=b&&(a&&null==this.timeline?this._timeline.insert(this,this._startTime-this._delay):!a&&null!=this.timeline&&this._timeline._remove(this,!0));return!1};c._kill=function(){return this._enabled(!1, !1)};c.kill=function(a,b){this._kill(a,b);return this};c._uncache=function(a){for(a=a?this:this.timeline;a;)a._dirty=!0,a=a.timeline;return this};c.eventCallback=function(a,b,c,d){if(null==a)return null;if("on"===a.substr(0,2)){if(1===arguments.length)return this.vars[a];if(null==b)delete this.vars[a];else if(this.vars[a]=b,this.vars[a+"Params"]=c,this.vars[a+"Scope"]=d,c)for(var e=c.length;-1<--e;)"{self}"===c[e]&&(c=this.vars[a+"Params"]=c.concat(),c[e]=this);"onUpdate"===a&&(this._onUpdate=b)}return this}; c.delay=function(a){if(!arguments.length)return this._delay;this._timeline.smoothChildTiming&&this.startTime(this._startTime+a-this._delay);this._delay=a;return this};c.duration=function(a){if(!arguments.length)return this._dirty=!1,this._duration;this._duration=this._totalDuration=a;this._uncache(!0);this._timeline.smoothChildTiming&&this._active&&0!=a&&this.totalTime(this._totalTime*(a/this._duration),!0);return this};c.totalDuration=function(a){this._dirty=!1;return!arguments.length?this._totalDuration: this.duration(a)};c.time=function(a,b){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();a>this._duration&&(a=this._duration);return this.totalTime(a,b)};c.totalTime=function(a,b){if(!arguments.length)return this._totalTime;if(this._timeline){0>a&&(a+=this.totalDuration());if(this._timeline.smoothChildTiming&&(this._dirty&&this.totalDuration(),a>this._totalDuration&&(a=this._totalDuration),this._startTime=(this._paused?this._pauseTime:this._timeline._time)-(!this._reversed? a:this._totalDuration-a)/this._timeScale,this._timeline._dirty||this._uncache(!1),!this._timeline._active))for(var c=this._timeline;c._timeline;)c.totalTime(c._totalTime,!0),c=c._timeline;this._gc&&this._enabled(!0,!1);this._totalTime!=a&&this.render(a,b,!1)}return this};c.startTime=function(a){if(!arguments.length)return this._startTime;a!=this._startTime&&(this._startTime=a,this.timeline&&this.timeline._sortChildren&&this.timeline.insert(this,a-this._delay));return this};c.timeScale=function(a){if(!arguments.length)return this._timeScale; a=a||1.0E-6;if(this._timeline&&this._timeline.smoothChildTiming){var b=this._pauseTime||0==this._pauseTime?this._pauseTime:this._timeline._totalTime;this._startTime=b-(b-this._startTime)*this._timeScale/a}this._timeScale=a;return this._uncache(!1)};c.reversed=function(a){if(!arguments.length)return this._reversed;a!=this._reversed&&(this._reversed=a,this.totalTime(this._totalTime,!0));return this};c.paused=function(a){if(!arguments.length)return this._paused;a!=this._paused&&this._timeline&&(!a&& this._timeline.smoothChildTiming&&(this._startTime+=this._timeline.rawTime()-this._pauseTime,this._uncache(!1)),this._pauseTime=a?this._timeline.rawTime():null,this._paused=a,this._active=!this._paused&&0<this._totalTime&&this._totalTime<this._totalDuration);this._gc&&(a||this._enabled(!0,!1));return this};f=k("core.SimpleTimeline",function(a){m.call(this,0,a);this.autoRemoveChildren=this.smoothChildTiming=!0});c=f.prototype=new m;c.constructor=f;c.kill()._gc=!1;c._first=c._last=null;c._sortChildren= !1;c.insert=function(a,b){a._startTime=Number(b||0)+a._delay;a._paused&&this!==a._timeline&&(a._pauseTime=a._startTime+(this.rawTime()-a._startTime)/a._timeScale);a.timeline&&a.timeline._remove(a,!0);a.timeline=a._timeline=this;a._gc&&a._enabled(!0,!0);var c=this._last;if(this._sortChildren)for(var d=a._startTime;c&&c._startTime>d;)c=c._prev;c?(a._next=c._next,c._next=a):(a._next=this._first,this._first=a);a._next?a._next._prev=a:this._last=a;a._prev=c;this._timeline&&this._uncache(!0);return this}; c._remove=function(a,b){a.timeline===this&&(b||a._enabled(!1,!0),a.timeline=null,a._prev?a._prev._next=a._next:this._first===a&&(this._first=a._next),a._next?a._next._prev=a._prev:this._last===a&&(this._last=a._prev),this._timeline&&this._uncache(!0));return this};c.render=function(a,b){var c=this._first,d;for(this._totalTime=this._time=this._rawPrevTime=a;c;){d=c._next;if(c._active||a>=c._startTime&&!c._paused)c._reversed?c.render((!c._dirty?c._totalDuration:c.totalDuration())-(a-c._startTime)*c._timeScale, b,!1):c.render((a-c._startTime)*c._timeScale,b,!1);c=d}};c.rawTime=function(){return this._totalTime};var p=k("TweenLite",function(a,b,c){m.call(this,b,c);if(null==a)throw"Cannot tween an undefined reference.";this.target=a;this._overwrite=null==this.vars.overwrite?F[p.defaultOverwrite]:"number"===typeof this.vars.overwrite?this.vars.overwrite>>0:F[this.vars.overwrite];if((a instanceof Array||a.jquery)&&"object"===typeof a[0]){this._targets=a.slice(0);this._propLookup=[];this._siblings=[];for(a=0;a< this._targets.length;a++)c=this._targets[a],c.jquery?(this._targets.splice(a--,1),this._targets=this._targets.concat(c.constructor.makeArray(c))):(this._siblings[a]=w(c,this,!1),1===this._overwrite&&1<this._siblings[a].length&&G(c,this,null,1,this._siblings[a]))}else this._propLookup={},this._siblings=w(a,this,!1),1===this._overwrite&&1<this._siblings.length&&G(a,this,null,1,this._siblings);(this.vars.immediateRender||0===b&&0===this._delay&&!1!=this.vars.immediateRender)&&this.render(0,!1,!0)},!0); c=p.prototype=new m;c.constructor=p;c.kill()._gc=!1;c.ratio=0;c._firstPT=c._targets=c._overwrittenProps=null;c._notifyPluginsOfEnabled=!1;p.version=12;p.defaultEase=c._ease=new z(null,null,1,1);p.defaultOverwrite="auto";p.ticker=t;var C=p._plugins={},x={},E=0,D={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1, onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,orientToBezier:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1},F={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},o=m._rootFramesTimeline=new f,y=m._rootTimeline=new f;y._startTime=t.time;o._startTime=t.frame;y._active=o._active=!0;m._updateRoot=function(){y.render((t.time-y._startTime)*y._timeScale,!1,!1);o.render((t.frame-o._startTime)*o._timeScale,!1,!1); if(!(t.frame%120)){var a,b,c;for(c in x){b=x[c].tweens;for(a=b.length;-1<--a;)b[a]._gc&&b.splice(a,1);0===b.length&&delete x[c]}}};t.addEventListener("tick",m._updateRoot);var w=function(a,b,c){var d=a._gsTweenID,e;if(!x[d||(a._gsTweenID=d="t"+E++)])x[d]={target:a,tweens:[]};if(b&&(a=x[d].tweens,a[e=a.length]=b,c))for(;-1<--e;)a[e]===b&&a.splice(e,1);return x[d].tweens},G=function(a,b,c,d,e){var g,f,h;if(1===d||4<=d){a=e.length;for(g=0;g<a;g++)if((h=e[g])!==b)h._gc||h._enabled(!1,!1)&&(f=!0);else if(5=== d)break;return f}var j=b._startTime+1.0E-10,k=[],l=0,m;for(g=e.length;-1<--g;)if(!((h=e[g])===b||h._gc||h._paused))h._timeline!==b._timeline?(m=m||I(b,0),0===I(h,m)&&(k[l++]=h)):h._startTime<=j&&h._startTime+h.totalDuration()/h._timeScale+1.0E-10>j&&((0===b._duration||!h._initted)&&2.0E-10>=j-h._startTime||(k[l++]=h));for(g=l;-1<--g;)if(h=k[g],2===d&&h._kill(c,a)&&(f=!0),2!==d||!h._firstPT&&h._initted)h._enabled(!1,!1)&&(f=!0);return f},I=function(a,b){for(var c=a._timeline,d=c._timeScale,e=a._startTime;c._timeline;){e+= c._startTime;d*=c._timeScale;if(c._paused)return-100;c=c._timeline}e/=d;return e>b?e-b:!a._initted&&2.0E-10>e-b?1.0E-10:(e=e+a.totalDuration()/a._timeScale/d+1.0E-10)>b?0:e-b-1.0E-10};c._init=function(){this.vars.startAt&&(this.vars.startAt.overwrite=0,this.vars.startAt.immediateRender=!0,p.to(this.target,0,this.vars.startAt));var a,b;this._ease=this.vars.ease instanceof z?this.vars.easeParams instanceof Array?this.vars.ease.config.apply(this.vars.ease,this.vars.easeParams):this.vars.ease:"function"=== typeof this.vars.ease?new z(this.vars.ease,this.vars.easeParams):p.defaultEase;this._easeType=this._ease._type;this._easePower=this._ease._power;this._firstPT=null;if(this._targets)for(a=this._targets.length;-1<--a;){if(this._initProps(this._targets[a],this._propLookup[a]={},this._siblings[a],this._overwrittenProps?this._overwrittenProps[a]:null))b=!0}else b=this._initProps(this.target,this._propLookup,this._siblings,this._overwrittenProps);b&&p._onPluginEvent("_onInitAllProps",this);this._overwrittenProps&& null==this._firstPT&&"function"!==typeof this.target&&this._enabled(!1,!1);if(this.vars.runBackwards)for(a=this._firstPT;a;)a.s+=a.c,a.c=-a.c,a=a._next;this._onUpdate=this.vars.onUpdate;this._initted=!0};c._initProps=function(a,b,c,d){var e,g,f,h,j;if(null==a)return!1;for(e in this.vars){if(D[e]){if("onStartParams"===e||"onUpdateParams"===e||"onCompleteParams"===e||"onReverseCompleteParams"===e||"onRepeatParams"===e)if(j=this.vars[e])for(g=j.length;-1<--g;)"{self}"===j[g]&&(j=this.vars[e]=j.concat(), j[g]=this)}else if(C[e]&&(h=new C[e])._onInitTween(a,this.vars[e],this)){this._firstPT={_next:this._firstPT,t:h,p:"setRatio",s:0,c:1,f:!0,n:e,pg:!0,pr:h._priority};for(g=h._overwriteProps.length;-1<--g;)b[h._overwriteProps[g]]=this._firstPT;if(h._priority||h._onInitAllProps)f=!0;if(h._onDisable||h._onEnable)this._notifyPluginsOfEnabled=!0}else this._firstPT=b[e]={_next:this._firstPT,t:a,p:e,f:"function"===typeof a[e],n:e,pg:!1,pr:0},this._firstPT.s=!this._firstPT.f?parseFloat(a[e]):a[e.indexOf("set")|| "function"!==typeof a["get"+e.substr(3)]?e:"get"+e.substr(3)](),this._firstPT.c="number"===typeof this.vars[e]?this.vars[e]-this._firstPT.s:"string"===typeof this.vars[e]?parseFloat(this.vars[e].split("=").join("")):0;this._firstPT&&this._firstPT._next&&(this._firstPT._next._prev=this._firstPT)}return d&&this._kill(d,a)?this._initProps(a,b,c,d):1<this._overwrite&&this._firstPT&&1<c.length&&G(a,this,b,this._overwrite,c)?(this._kill(b,a),this._initProps(a,b,c,d)):f};c.render=function(a,b,c){var d=this._time, e,g;if(a>=this._duration){if(this._totalTime=this._time=this._duration,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(e=!0,g="onComplete"),0===this._duration){if(0===a||0>this._rawPrevTime)this._rawPrevTime!==a&&(c=!0);this._rawPrevTime=a}}else if(0>=a){this._totalTime=this._time=0;this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0;if(0!==d||0===this._duration&&0<this._rawPrevTime)g="onReverseComplete",e=this._reversed;0>a?(this._active=!1,0===this._duration&&(0<=this._rawPrevTime&& (c=!0),this._rawPrevTime=a)):this._initted||(c=!0)}else if(this._totalTime=this._time=a,this._easeType){var f=a/this._duration,h=this._easeType,j=this._easePower;if(1===h||3===h&&0.5<=f)f=1-f;3===h&&(f*=2);1===j?f*=f:2===j?f*=f*f:3===j?f*=f*f*f:4===j&&(f*=f*f*f*f);this.ratio=1===h?1-f:2===h?f:0.5>a/this._duration?f/2:1-f/2}else this.ratio=this._ease.getRatio(a/this._duration);if(this._time!==d||c){this._initted||(this._init(),!e&&this._time&&(this.ratio=this._ease.getRatio(this._time/this._duration))); !this._active&&!this._paused&&(this._active=!0);if(0===d&&this.vars.onStart&&(0!==this._time||0===this._duration))b||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||u);for(a=this._firstPT;a;){if(a.f)a.t[a.p](a.c*this.ratio+a.s);else a.t[a.p]=a.c*this.ratio+a.s;a=a._next}this._onUpdate&&(b||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||u));g&&!this._gc&&(e&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),b||this.vars[g]&& this.vars[g].apply(this.vars[g+"Scope"]||this,this.vars[g+"Params"]||u))}};c._kill=function(a,b){"all"===a&&(a=null);if(null==a&&(null==b||b==this.target))return this._enabled(!1,!1);var b=b||this._targets||this.target,c,d,e,f,g,h,j;if((b instanceof Array||b.jquery)&&"object"===typeof b[0])for(c=b.length;-1<--c;)this._kill(a,b[c])&&(g=!0);else{if(this._targets)for(c=this._targets.length;-1<--c;){if(b===this._targets[c]){f=this._propLookup[c]||{};this._overwrittenProps=this._overwrittenProps||[];d= this._overwrittenProps[c]=a?this._overwrittenProps[c]||{}:"all";break}}else{if(b!==this.target)return!1;f=this._propLookup;d=this._overwrittenProps=a?this._overwrittenProps||{}:"all"}if(f)for(e in h=a||f,j=a!=d&&"all"!=d&&a!=f&&(null==a||!0!=a._tempKill),h){if(c=f[e]){c.pg&&c.t._kill(h)&&(g=!0);if(!c.pg||0===c.t._overwriteProps.length)c._prev?c._prev._next=c._next:c===this._firstPT&&(this._firstPT=c._next),c._next&&(c._next._prev=c._prev),c._next=c._prev=null;delete f[e]}j&&(d[e]=1)}}return g};c.invalidate= function(){this._notifyPluginsOfEnabled&&p._onPluginEvent("_onDisable",this);this._onUpdate=this._overwrittenProps=this._firstPT=null;this._initted=this._active=this._notifyPluginsOfEnabled=!1;this._propLookup=this._targets?{}:[];return this};c._enabled=function(a,b){if(a&&this._gc)if(this._targets)for(var c=this._targets.length;-1<--c;)this._siblings[c]=w(this._targets[c],this,!0);else this._siblings=w(this.target,this,!0);m.prototype._enabled.call(this,a,b);return this._notifyPluginsOfEnabled&& this._firstPT?p._onPluginEvent(a?"_onEnable":"_onDisable",this):!1};p.to=function(a,b,c){return new p(a,b,c)};p.from=function(a,b,c){c.runBackwards=!0;!1!=c.immediateRender&&(c.immediateRender=!0);return new p(a,b,c)};p.fromTo=function(a,b,c,d){d.startAt=c;c.immediateRender&&(d.immediateRender=!0);return new p(a,b,d)};p.delayedCall=function(a,b,c,d,e){return new p(b,0,{delay:a,onComplete:b,onCompleteParams:c,onCompleteScope:d,onReverseComplete:b,onReverseCompleteParams:c,onReverseCompleteScope:d, immediateRender:!1,useFrames:e,overwrite:0})};p.set=function(a,b){return new p(a,0,b)};p.killTweensOf=p.killDelayedCallsTo=function(a,b){for(var c=p.getTweensOf(a),d=c.length;-1<--d;)c[d]._kill(b,a)};p.getTweensOf=function(a){if(null!=a){var b,c,d;if((a instanceof Array||a.jquery)&&"object"===typeof a[0]){b=a.length;for(c=[];-1<--b;)c=c.concat(p.getTweensOf(a[b]));for(b=c.length;-1<--b;){d=c[b];for(a=b;-1<--a;)d===c[a]&&c.splice(b,1)}}else{c=w(a).concat();for(b=c.length;-1<--b;)c[b]._gc&&c.splice(b, 1)}return c}};var H=k("plugins.TweenPlugin",function(a,b){this._overwriteProps=(a||"").split(",");this._propName=this._overwriteProps[0];this._priority=b||0},!0);c=H.prototype;H.version=12;H.API=2;c._firstPT=null;c._addTween=function(a,b,c,d,e,f){var g;if(null!=d&&(g="number"===typeof d||"="!==d.charAt(1)?Number(d)-c:Number(d.split("=").join(""))))this._firstPT={_next:this._firstPT,t:a,p:b,s:c,c:g,f:"function"==typeof a[b],n:e||b,r:f},this._firstPT._next&&(this._firstPT._next._prev=this._firstPT)}; c.setRatio=function(a){for(var b=this._firstPT,c;b;){c=b.c*a+b.s;b.r&&(c=c+(0<c?0.5:-0.5)>>0);if(b.f)b.t[b.p](c);else b.t[b.p]=c;b=b._next}};c._kill=function(a){if(null!=a[this._propName])this._overwriteProps=[];else for(var b=this._overwriteProps.length;-1<--b;)null!=a[this._overwriteProps[b]]&&this._overwriteProps.splice(b,1);for(b=this._firstPT;b;)null!=a[b.n]&&((b._next&&(b._next._prev=b._prev),b._prev)?(b._prev._next=b._next,b._prev=null):this._firstPT===b&&(this._firstPT=b._next)),b=b._next; return!1};c._roundProps=function(a,b){for(var c=this._firstPT;c;){if(a[this._propName]||null!=c.n&&a[c.n.split(this._propName+"_").join("")])c.r=b;c=c._next}};p._onPluginEvent=function(a,b){var c=b._firstPT,d;if("_onInitAllProps"===a){for(var e,f,g,h;c;){h=c._next;for(e=f;e&&e.pr>c.pr;)e=e._next;(c._prev=e?e._prev:g)?c._prev._next=c:f=c;(c._next=e)?e._prev=c:g=c;c=h}c=b._firstPT=f}for(;c;)c.pg&&"function"===typeof c.t[a]&&c.t[a]()&&(d=!0),c=c._next;return d};H.activate=function(a){for(var b=a.length;-1< --b;)a[b].API===H.API&&(p._plugins[(new a[b])._propName]=a[b]);return!0};if(e=g._gsQueue){for(h=0;h<e.length;h++)e[h]();for(c in b)b[c].def||console.log("Warning: TweenLite encountered missing dependency: com.greensock."+c)}})(window);
14 js/greensock/easing/EasePack.min.js
@@ -0,0 +1,14 @@
+/*!
+ * VERSION: beta 1.2
+ * DATE: 2012-05-15
+ * JavaScript (ActionScript 3 and 2 also available)
+ * UPDATES AND DOCS AT: http://www.greensock.com
+ *
+ * Copyright (c) 2008-2012, GreenSock. All rights reserved.
+ * This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for
+ * corporate Club GreenSock members, the software agreement that was issued with the corporate
+ * membership.
+ *
+ * @author: Jack Doyle, jack@greensock.com
+ **/
+(window._gsQueue||(window._gsQueue=[])).push(function(){_gsRequire("easing.Back",["easing.Ease"],function(i){var c=window.com.greensock._class,b=function(a,j){var b=c("easing."+a,function(){},!0),d=b.prototype=new i;d.constructor=b;d.getRatio=j;return b},e=function(a,j){var b=c("easing."+a,function(a){this._p1=a||0===a?a:1.70158;this._p2=1.525*this._p1},!0),d=b.prototype=new i;d.constructor=b;d.getRatio=j;d.config=function(a){return new b(a)};return b},m=e("BackOut",function(a){return(a-=1)*a*((this._p1+ 1)*a+this._p1)+1}),n=e("BackIn",function(a){return a*a*((this._p1+1)*a-this._p1)}),e=e("BackInOut",function(a){return 1>(a*=2)?0.5*a*a*((this._p2+1)*a-this._p2):0.5*((a-=2)*a*((this._p2+1)*a+this._p2)+2)}),o=b("BounceOut",function(a){return a<1/2.75?7.5625*a*a:a<2/2.75?7.5625*(a-=1.5/2.75)*a+0.75:a<2.5/2.75?7.5625*(a-=2.25/2.75)*a+0.9375:7.5625*(a-=2.625/2.75)*a+0.984375}),p=b("BounceIn",function(a){return(a=1-a)<1/2.75?1-7.5625*a*a:a<2/2.75?1-(7.5625*(a-=1.5/2.75)*a+0.75):a<2.5/2.75?1-(7.5625*(a-= 2.25/2.75)*a+0.9375):1-(7.5625*(a-=2.625/2.75)*a+0.984375)}),q=b("BounceInOut",function(a){var b=0.5>a,a=b?1-2*a:2*a-1,a=a<1/2.75?7.5625*a*a:a<2/2.75?7.5625*(a-=1.5/2.75)*a+0.75:a<2.5/2.75?7.5625*(a-=2.25/2.75)*a+0.9375:7.5625*(a-=2.625/2.75)*a+0.984375;return b?0.5*(1-a):0.5*a+0.5}),r=b("CircOut",function(a){return Math.sqrt(1-(a-=1)*a)}),s=b("CircIn",function(a){return-(Math.sqrt(1-a*a)-1)}),t=b("CircInOut",function(a){return 1>(a*=2)?-0.5*(Math.sqrt(1-a*a)-1):0.5*(Math.sqrt(1-(a-=2)*a)+1)}),f= 2*Math.PI,g=function(a,b,e){var d=c("easing."+a,function(a,b){a=a||0;this._p1=!a||1>a?1:a;this._p2=b||e;this._p3=this._p2/f*Math.asin(1/this._p1)},!0),a=d.prototype=new i;a.constructor=d;a.getRatio=b;a.config=function(a,b){return new d(a,b)};return d},u=g("ElasticOut",function(a){return this._p1*Math.pow(2,-10*a)*Math.sin((a-this._p3)*f/this._p2)+1},0.3),v=g("ElasticIn",function(a){return-(this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*f/this._p2))},0.3),g=g("ElasticInOut",function(a){return 1> (a*=2)?-0.5*this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*f/this._p2):0.5*this._p1*Math.pow(2,-10*(a-=1))*Math.sin((a-this._p3)*f/this._p2)+1},0.45),w=b("ExpoOut",function(a){return 1-Math.pow(2,-10*a)}),x=b("ExpoIn",function(a){return Math.pow(2,10*(a-1))-0.001}),y=b("ExpoInOut",function(a){return 1>(a*=2)?0.5*Math.pow(2,10*(a-1)):0.5*(2-Math.pow(2,-10*(a-1)))}),l=Math.PI/2,z=b("SineOut",function(a){return Math.sin(a*l)}),A=b("SineIn",function(a){return-Math.cos(a*l)+1}),b=b("SineInOut",function(a){return-0.5* (Math.cos(Math.PI*a)-1)}),h=c("easing.SlowMo",function(a,b,c){null==a?a=0.7:1<a&&(a=1);this._p=1!=a?b||0===b?b:0.7:0;this._p1=(1-a)/2;this._p2=a;this._p3=this._p1+this._p2;this._calcEnd=!0===c},!0),k=h.prototype=new i;k.constructor=h;k.getRatio=function(a){var b=a+(0.5-a)*this._p;return a<this._p1?this._calcEnd?1-(a=1-a/this._p1)*a:b-(a=1-a/this._p1)*a*a*a*b:a>this._p3?this._calcEnd?1-(a=(a-this._p3)/this._p1)*a:b+(a-b)*(a=(a-this._p3)/this._p1)*a*a*a:this._calcEnd?1:b};h.ease=new h(0.7,0.7);k.config= function(a,b,c){return new h(a,b,c)};c("easing.Bounce",{easeOut:new o,easeIn:new p,easeInOut:new q},!0);c("easing.Circ",{easeOut:new r,easeIn:new s,easeInOut:new t},!0);c("easing.Elastic",{easeOut:new u,easeIn:new v,easeInOut:new g},!0);c("easing.Expo",{easeOut:new w,easeIn:new x,easeInOut:new y},!0);c("easing.Sine",{easeOut:new z,easeIn:new A,easeInOut:new b},!0);return{easeOut:new m,easeIn:new n,easeInOut:new e}},!0)});window._gsRequire&&_gsQueue.pop()();
14 js/greensock/plugins/CSSPlugin.min.js
@@ -0,0 +1,14 @@
+/*!
+ * VERSION: beta 1.21
+ * DATE: 2012-05-15
+ * JavaScript
+ * UPDATES AND DOCS AT: http://www.greensock.com
+ *
+ * Copyright (c) 2008-2012, GreenSock. All rights reserved.
+ * This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for
+ * corporate Club GreenSock members, the software agreement that was issued with the corporate
+ * membership.
+ *
+ * @author: Jack Doyle, jack@greensock.com
+ */
+(window._gsQueue||(window._gsQueue=[])).push(function(){_gsRequire("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(y){var n=function(){y.call(this,"css");this._overwriteProps.pop()},r=n.prototype=new y("css");r.constructor=n;n.API=2;n.suffixMap={top:"px",right:"px",bottom:"px",left:"px",width:"px",height:"px",fontSize:"px",padding:"px",margin:"px"};var v=/[^\d\-\.]/g,E=/(\d|\-|\+|=|#|\.)*/g,Q=/\d+/g,F=/opacity=([^)]*)/,R=/opacity:([^;]*)/,S=/([A-Z])/g,I=/-([a-z])/gi,J=function(b, a){return a.toUpperCase()},T=/(Left|Right|width|Width)/,U=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,V=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,w=Math.PI/180,K=180/Math.PI,s=document.createElement("div"),z=function(){var b=document.createElement("div"),a;b.innerHTML="<a style='top:1px;opacity:.55;'>a</a>";return!(a=b.getElementsByTagName("a")[0])?!1:/^0.55/.test(a.style.opacity)}(),L=function(b){return!b||""===b?A.black:A[b]?A[b]:"#"===b.charAt(0)?(4===b.length&&(b="#"+b.charAt(1)+b.charAt(1)+ b.charAt(2)+b.charAt(2)+b.charAt(3)+b.charAt(3)),b=parseInt(b.substr(1),16),[b>>16,b>>8&255,b&255]):b.match(Q)||A.transparent},M=function(b){return F.test("string"===typeof b?b:(b.currentStyle?b.currentStyle.filter:b.style.filter)||"")?parseFloat(RegExp.$1)/100:1},x=document.defaultView?document.defaultView.getComputedStyle:function(){},t=function(b,a,c,e){return!z&&"opacity"===a?M(b):!e&&b.style[a]?b.style[a]:(c=c||x(b,null))?(b=c.getPropertyValue(a.replace(S,"-$1").toLowerCase()))||c.length?b:c[a]: b.currentStyle?b.currentStyle[a]:null},B=function(b,a){var c={},e;if(a=a||x(b,null))if(e=a.length)for(;-1<--e;)c[a[e].replace(I,J)]=a.getPropertyValue(a[e]);else for(e in a)c[e]=a[e];else if(a=b.currentStyle||b.style)for(e in a)c[e.replace(I,J)]=a[e];z||(c.opacity=M(b));e=G(b,a,!1);c.rotation=e.rotation*K;c.skewX=e.skewX*K;c.scaleX=e.scaleX;c.scaleY=e.scaleY;c.x=e.x;c.y=e.y;null!=c.filters&&delete c.filters;return c},N=function(b,a,c,e){var i={},d,g;for(g in a)if("cssText"!==g&&"length"!==g&&isNaN(g)&& d!==m&&b[g]!=(d=a[g]))if("number"===typeof d||"string"===typeof d)i[g]=d,e&&e.props.push(g);if(c)for(g in c)"className"!==g&&(i[g]=c[g]);return i},O={scaleX:1,scaleY:1,x:1,y:1,rotation:1,shortRotation:1,skewX:1,skewY:1,scale:1},P,m=function(){for(var b=document.body||document.documentElement,a=x(b,""),c="O -o- Moz -moz- ms -ms- Webkit -webkit-".split(" "),e=9;-1<(e-=2)&&!t(b,c[e]+"transform",a););return 0<e?(P=c[e]+"transform",c[e-1]+"Transform"):null}(),G=function(b,a,c){var e;m?e=t(b,P,a,!0):b.currentStyle&& (e=(e=b.currentStyle.filter.match(U))&&4===e.length?e[0].substr(4)+","+Number(e[2].substr(4))+","+Number(e[1].substr(4))+","+e[3].substr(4)+",0,0":null);var a=(e||"").replace(/[^\d\-\.e,]/g,"").split(","),i=(e=6<=a.length)?Number(a[0]):1,d=e?Number(a[1]):0,g=e?Number(a[2]):0,f=e?Number(a[3]):1,h=c?b._gsTransform||{skewY:0}:{skewY:0},l=0>h.scaleX;h.x=e?Number(a[4]):0;h.y=e?Number(a[5]):0;h.rotation=Math.atan2(d,i);h.scaleX=Math.sqrt(i*i+d*d);h.scaleY=Math.sqrt(f*f+g*g);h.skewX=Math.atan2(g,f)+h.rotation; if(0>i&&0<=f||0<i&&0>=f)l?(h.scaleX*=-1,h.skewX+=0>=h.rotation?Math.PI:-Math.PI,h.rotation+=0>=h.rotation?Math.PI:-Math.PI):(h.scaleY*=-1,h.skewX+=0>=h.skewX?Math.PI:-Math.PI);1.0E-8>h.rotation&&-1.0E-8<h.rotation&&(h.rotation=0);1.0E-8>h.skewX&&-1.0E-8<h.skewX&&(h.skewX=0);c&&(b._gsTransform=h);return h},W={width:["Left","Right"],height:["Top","Bottom"]},X=["marginLeft","marginRight","marginTop","marginBottom"],u=function(b,a,c,e,i){if("px"===e)return c;if("auto"===e)return 0;var d=T.test(a),g=b; s.style.cssText="border-style:solid; border-width:0; position:absolute; line-height:0;";"%"===e||"em"===e?(g=b.parentNode||document.body,s.style[d?"width":"height"]=c+e):s.style[d?"borderLeftWidth":"borderTopWidth"]=c+e;g.appendChild(s);d=parseFloat(s[d?"offsetWidth":"offsetHeight"]);g.removeChild(s);0===d&&!i&&(d=u(b,a,c,e,!0));return d},H=function(b,a){if(null==b||""===b||"auto"===b)b="0 0";var a=a||{},c=-1!==b.indexOf("left")?"0%":-1!==b.indexOf("right")?"100%":b.split(" ")[0],e=-1!==b.indexOf("top")? "0%":-1!==b.indexOf("bottom")?"100%":b.split(" ")[1];null==e&&(e="0");a.oxp=-1!==c.indexOf("%");a.oyp=-1!==e.indexOf("%");a.oxr="="===c.charAt(1);a.oyr="="===e.charAt(1);a.ox=parseFloat(c.replace(v,""));a.oy=parseFloat(e.replace(v,""));return a},C=function(b,a){return null==b?a:"string"===typeof b&&1===b.indexOf("=")?Number(b.split("=").join(""))+a:Number(b)},D=function(b,a){var c=-1===b.indexOf("rad")?w:1,e=1===b.indexOf("="),b=Number(b.replace(v,""))*c;return e?b+a:b},A={aqua:[0,255,255],lime:[0, 255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]};r._onInitTween=function(b,a,c){if(!b.nodeType)return!1;this._target=b;this._tween=c;this._classData=this._transform=null;var c=this._style=b.style,e=x(b,""),i,d;"string"=== typeof a?(i=c.cssText,d=B(b,e),c.cssText=i+";"+a,d=N(d,B(b)),!z&&R.test(a)&&(val.opacity=parseFloat(RegExp.$1)),a=d,c.cssText=i):a.className&&(i=b.className,d=B(b,e),b.className="="!==a.className.charAt(1)?a.className:"+"===a.className.charAt(0)?b.className+" "+a.className.substr(2):b.className.split(a.className.substr(2)).join(""),a=N(d,B(b),a,this._classData={b:i,e:b.className,props:[]}),b.className=i);this._parseVars(a,b,e,a.suffixMap||n.suffixMap);return!0};r._parseVars=function(b,a,c,e){var i= this._style,d,g,f,h,l,k,j;for(d in b)if(g=b[d],"transform"===d||d===m)this._parseTransform(a,g,c,e);else if(O[d]||"transformOrigin"===d)this._parseTransform(a,b,c,e);else{if("alpha"===d||"autoAlpha"===d)d="opacity";else if("margin"===d||"padding"===d){g=g.split(" ");h=g.length;f={};f[d+"Top"]=g[0];f[d+"Right"]=1<h?g[1]:g[0];f[d+"Bottom"]=4===h?g[2]:g[0];f[d+"Left"]=4===h?g[3]:2===h?g[1]:g[0];this._parseVars(f,a,c,e);continue}else if("backgroundPosition"===d||"backgroundSize"===d){f=H(g);j=H(h=t(a, d,c));this._firstPT=f={_next:this._firstPT,t:i,p:d,b:h,f:!1,n:"css_"+d,type:3,s:j.ox,c:f.oxr?f.ox:f.ox-j.ox,ys:j.oy,yc:f.oyr?f.oy:f.oy-j.oy,sfx:f.oxp?"%":"px",ysfx:f.oyp?"%":"px",r:!f.oxp&&!1!==b.autoRound};f.e=f.s+f.c+f.sfx+" "+(f.ys+f.yc)+f.ysfx;continue}else if("border"===d){g=g.split(" ");this._parseVars({borderWidth:g[0],borderStyle:g[1]||"none",borderColor:g[2]||"#000000"},a,c,e);continue}else if("autoRound"===d)continue;h=t(a,d,c);h=null!=h?h+"":"";this._firstPT=f={_next:this._firstPT,t:i, p:d,b:h,f:!1,n:"css_"+d,sfx:"",r:!1,type:0};"opacity"===d&&null!=b.autoAlpha&&(this._firstPT=f._prev={_next:f,t:i,p:"visibility",f:!1,n:"css_visibility",r:!1,type:-1,b:0!==Number(h)?"visible":"hidden",i:"visible",e:0===Number(g)?"hidden":"visible"},this._overwriteProps.push("css_visibility"));if("color"===d||"fill"===d||"stroke"===d||-1!==d.indexOf("Color")||"string"===typeof g&&!g.indexOf("rgb("))l=L(h),h=L(g),f.e=g,f.s=Number(l[0]),f.c=Number(h[0])-f.s,f.gs=Number(l[1]),f.gc=Number(h[1])-f.gs,f.bs= Number(l[2]),f.bc=Number(h[2])-f.bs,3<l.length||3<h.length?(f.as=4>l.length?1:Number(l[3]),f.ac=(4>h.length?1:Number(h[3]))-f.as,f.type=f.c||f.gc||f.bc||f.ac?2:-1):f.type=f.c||f.gc||f.bc?1:-1;else{l=h.replace(E,"");if(""===h||"auto"===h)if("width"===d||"height"===d){k=d;l=a;h=c;j=parseFloat("width"===k?l.offsetWidth:l.offsetHeight);k=W[k];var q=k.length;for(h=h||x(l,null);-1<--q;)j-=parseFloat(t(l,"padding"+k[q],h,!0))||0,j-=parseFloat(t(l,"border"+k[q]+"Width",h,!0))||0;l="px"}else j="opacity"!== d?0:1;else j=-1===h.indexOf(" ")?parseFloat(h.replace(v,"")):NaN;"string"===typeof g?(h="="===g.charAt(1),k=g.replace(E,""),g=-1===g.indexOf(" ")?parseFloat(g.replace(v,"")):NaN):(h=!1,k="");""===k&&(k=e[d]||l);f.e=g||0===g?(h?g+j:g)+k:b[d];if(l!==k&&""!==k&&(g||0===g))if(j||0===j)if(j=u(a,d,j,l),"%"===k?(j/=u(a,d,100,"%")/100,100<j&&(j=100)):"em"===k?j/=u(a,d,1,"em"):(g=u(a,d,g,k),k="px"),h&&(g||0===g))f.e=g+j+k;if((j||0===j)&&(g||0===g)&&(f.c=h?g:g-j))if(f.s=j,f.sfx=k,"opacity"===d)z||(f.type=4, f.p="filter",f.b="alpha(opacity="+100*f.s+")",f.e="alpha(opacity="+100*(f.s+f.c)+")",f.dup=null!=b.autoAlpha,this._style.zoom=1);else{if(!1!==b.autoRound&&("px"===k||"zIndex"===d))f.r=!0}else f.type=-1,f.i=f.e,f.s=f.c=0}this._overwriteProps.push("css_"+d);f._next&&(f._next._prev=f)}};r._parseTransform=function(b,a,c){if(!this._transform){var c=this._transform=G(b,c,!0),e=this._style,i,d;if("object"===typeof a){b={scaleX:C(null!=a.scaleX?a.scaleX:a.scale,c.scaleX),scaleY:C(null!=a.scaleY?a.scaleY: a.scale,c.scaleY),x:C(a.x,c.x),y:C(a.y,c.y)};null!=a.shortRotation?(b.rotation="number"===typeof a.shortRotation?a.shortRotation*w:D(a.shortRotation,c.rotation),i=(b.rotation-c.rotation)%(2*Math.PI),i!==i%Math.PI&&(i+=Math.PI*(0>i?2:-2)),b.rotation=c.rotation+i):b.rotation=null==a.rotation?c.rotation:"number"===typeof a.rotation?a.rotation*w:D(a.rotation,c.rotation);b.skewX=null==a.skewX?c.skewX:"number"===typeof a.skewX?a.skewX*w:D(a.skewX,c.skewX);b.skewY=null==a.skewY?c.skewY:"number"===typeof a.skewY? a.skewY*w:D(a.skewY,c.skewY);if(i=b.skewY-c.skewY)b.skewX+=i,b.rotation+=i;if(null!=(a=a.transformOrigin))m?(d=m+"Origin",this._firstPT=a={_next:this._firstPT,t:e,p:d,s:0,c:0,n:d,f:!1,r:!1,b:e[d],e:a,i:a,type:-1,sfx:""},a._next&&(a._next._prev=a)):H(a,c)}else if("string"===typeof a&&m)i=e[m],e[m]=a,b=G(b,null,!1),e[m]=i;else return;m?"WebkitTransform"===m&&(e[m+"Style"]="preserve-3d"):e.zoom=1;for(d in O)c[d]!==b[d]&&("shortRotation"!==d&&"scale"!==d)&&(this._firstPT=a={_next:this._firstPT,t:c,p:d, s:c[d],c:b[d]-c[d],n:d,f:!1,r:!1,b:c[d],e:b[d],type:0,sfx:0},a._next&&(a._next._prev=a),this._overwriteProps.push("css_"+d))}};r.setRatio=function(b){var a=this._firstPT,c,e;if(1===b&&(this._tween._time===this._tween._duration||0===this._tween._time))for(;a;)a.t[a.p]=a.e,4===a.type&&1===a.s+a.c&&this._style.removeAttribute("filter"),a=a._next;else if(b||!(this._tween._time===this._tween._duration||0===this._tween._time))for(;a;)c=a.c*b+a.s,a.r&&(c=0<c?c+0.5>>0:c-0.5>>0),a.type?1===a.type?a.t[a.p]= "rgb("+(c>>0)+", "+(a.gs+b*a.gc>>0)+", "+(a.bs+b*a.bc>>0)+")":2===a.type?a.t[a.p]="rgba("+(c>>0)+", "+(a.gs+b*a.gc>>0)+", "+(a.bs+b*a.bc>>0)+", "+(a.as+b*a.ac)+")":-1===a.type?a.t[a.p]=a.i:3===a.type?(e=a.ys+b*a.yc,a.r&&(e=0<e?e+0.5>>0:e-0.5>>0),a.t[a.p]=c+a.sfx+" "+e+a.ysfx):(a.dup&&(a.t.filter=a.t.filter||"alpha(opacity=100)"),a.t.filter=-1===a.t.filter.indexOf("opacity=")?a.t.filter+(" alpha(opacity="+(100*c>>0)+")"):a.t.filter.replace(F,"opacity="+(100*c>>0))):a.t[a.p]=c+a.sfx,a=a._next;else for(;a;)a.t[a.p]= a.b,4===a.type&&1===a.s&&this._style.removeAttribute("filter"),a=a._next;if(this._transform)if(a=this._transform,m&&!a.rotation)this._style[m]=(a.x||a.y?"translate("+a.x+"px,"+a.y+"px) ":"")+(a.skewX?"skewX("+a.skewX+"rad) ":"")+(1!==a.scaleX||1!==a.scaleY?"scale("+a.scaleX+","+Math.cos(a.skewX)*a.scaleY+")":"")||"translate(0px,0px)";else{var i=m?a.rotation:-a.rotation,d=m?i-a.skewX:i+a.skewX;e=Math.cos(i)*a.scaleX;var i=Math.sin(i)*a.scaleX,g=Math.sin(d)*-a.scaleY,d=Math.cos(d)*a.scaleY,f=1.0E-8, h;i<f&&i>-f&&(i=0);g<f&&g>-f&&(g=0);if(m)this._style[m]="matrix("+e+","+i+","+g+","+d+","+a.x+","+a.y+")";else if(h=this._target.currentStyle){f=i;i=-g;g=-f;f=this._style.filter;this._style.filter="";c=this._target.offsetWidth;var l=this._target.offsetHeight,k="absolute"!==h.position,j="progid:DXImageTransform.Microsoft.Matrix(M11="+e+", M12="+i+", M21="+g+", M22="+d,q=a.x,n=a.y,o,p;null!=a.ox&&(o=(a.oxp?0.01*c*a.ox:a.ox)-c/2,p=(a.oyp?0.01*l*a.oy:a.oy)-l/2,q=o-(o*e+p*i)+a.x,n=p-(o*g+p*d)+a.y);if(k)o= c/2,p=l/2,j+=", Dx="+(o-(o*e+p*i)+q)+", Dy="+(p-(o*g+p*d)+n)+")";else{k=4;o=a.ieOffsetX||0;p=a.ieOffsetY||0;a.ieOffsetX=Math.round((c-((0>e?-e:e)*c+(0>i?-i:i)*l))/2+q);for(a.ieOffsetY=Math.round((l-((0>d?-d:d)*l+(0>g?-g:g)*c))/2+n);-1<--k;)l=X[k],c=h[l],c=-1!==c.indexOf("px")?parseFloat(c):u(this._target,r,parseFloat(c),c.replace(E,""))||0,1===k?c-=q:3===k&&(c-=n),this._style[l]=Math.round(c-(2>k?o-a.ieOffsetX:p-a.ieOffsetY))+"px";j+=",sizingMethod='auto expand')"}this._style.filter=-1!==f.indexOf("progid:DXImageTransform.Microsoft.Matrix(")? f.replace(V,j):f+" "+j;if(0===b||1===b)1===e&&0===i&&0===g&&1===d&&(!F.test(f)||100===parseFloat(RegExp.$1))&&this._style.removeAttribute("filter")}}if(this._classData)if(a=this._classData,1===b&&(this._tween._time===this._tween._duration||0===this._tween._time)){for(k=a.props.length;-1<--k;)this._style[a.props[k]]="";this._target.className=a.e}else this._target.className!==a.b&&(this._target.className=a.b)};r._kill=function(b){var a=b,c;if(b.autoAlpha||b.alpha){a={};for(c in b)a[c]=b[c];a.opacity= 1;a.autoAlpha&&(a.visibility=1)}return y.prototype._kill.call(this,a)};y.activate([n]);return n},!0)});window._gsRequire&&_gsQueue.pop()();
14 js/greensock/plugins/RoundPropsPlugin.min.js
@@ -0,0 +1,14 @@
+/**
+ * VERSION: beta 1.22
+ * DATE: 2012-05-16
+ * JavaScript (ActionScript 3 and 2 also available)
+ * UPDATES AND DOCS AT: http://www.greensock.com
+ *
+ * Copyright (c) 2008-2012, GreenSock. All rights reserved.
+ * This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for
+ * corporate Club GreenSock members, the software agreement that was issued with the corporate
+ * membership.
+ *
+ * @author: Jack Doyle, jack@greensock.com
+ **/
+(window._gsQueue||(window._gsQueue=[])).push(function(){_gsRequire("plugins.RoundPropsPlugin",["plugins.TweenPlugin"],function(h){var f=function(){h.call(this,"roundProps",-1);this._overwriteProps.pop()},g=f.prototype=new h("roundProps",-1);g.constructor=f;f.API=2;g._onInitTween=function(c,b,d){this._tween=d;return!0};g._onInitAllProps=function(){for(var c=this._tween.vars.roundProps instanceof Array?this._tween.vars.roundProps:this._tween.vars.roundProps.split(","),b=c.length,d={},e,a;-1<--b;)d[c[b]]= 1;for(b=c.length;-1<--b;){e=c[b];for(a=this._tween._firstPT;a;)a.pg?a.t._roundProps(d,!0):a.n==e&&(this._add(a.t,e,a.s,a.c),a._next&&(a._next._prev=a._prev),a._prev?a._prev._next=a._next:_tween._firstPT===a&&(this._tween._firstPT=a._next),a._next=a._prev=null,this._tween._propLookup[e]=this),a=a._next}return!1};g._add=function(c,b,d,e){this._addTween(c,b,d,d+e,b,!0);this._overwriteProps.push(b)};h.activate([f]);return f},!0)});window._gsRequire&&_gsQueue.pop()();
14 js/greensock/plugins/ScrollToPlugin.min.js
@@ -0,0 +1,14 @@
+/**
+ * VERSION: beta 1
+ * DATE: 2012-05-16
+ * JavaScript (ActionScript 3 and 2 also available)
+ * UPDATES AND DOCS AT: http://www.greensock.com
+ *
+ * Copyright (c) 2008-2012, GreenSock. All rights reserved.
+ * This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for
+ * corporate Club GreenSock members, the software agreement that was issued with the corporate
+ * membership.
+ *
+ * @author: Jack Doyle, jack@greensock.com
+ **/
+(window._gsQueue||(window._gsQueue=[])).push(function(){_gsRequire("plugins.ScrollToPlugin",["plugins.TweenPlugin"],function(a){var b=function(){a.call(this,"scrollTo");this._overwriteProps.pop()},c=b.prototype=new a("scrollTo"),e=function(){return null!=window.pageXOffset?window.pageXOffset:null!=document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft},f=function(){return null!=window.pageYOffset?window.pageYOffset:null!=document.documentElement.scrollTop? document.documentElement.scrollTop:document.body.scrollTop},g=a.prototype.setRatio;c.constructor=b;b.API=2;c._onInitTween=function(d,a){this.x=e();this.y=f();null!=a.x?this._addTween(this,"x",this.x,a.x,"scrollTo_x",!0):this.skipX=!0;null!=a.y?this._addTween(this,"y",this.y,a.y,"scrollTo_y",!0):this.skipY=!0;return!0};c._kill=function(d){d.scrollTo_x&&(this.skipX=!0);d.scrollTo_x&&(this.skipY=!0);return a.prototype._kill.call(this,d)};c.setRatio=function(a){g.call(this,a);window.scrollTo(!this.skipX? this.x:e(),!this.skipY?this.y:f())};a.activate([b]);return b},!0)});window._gsRequire&&_gsQueue.pop()();
4 js/jquery-1.7.2.min.js
@@ -0,0 +1,4 @@
+/*! jQuery v1.7.2 jquery.com | jquery.org/license */
+(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"<!doctype html>":"")+"<html><body>"),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g<i;g++){if(g===1)for(h in a.converters)typeof h=="string"&&(e[h.toLowerCase()]=a.converters[h]);l=k,k=d[g];if(k==="*")k=l;else if(l!=="*"&&l!==k){m=l+" "+k,n=e[m]||e["* "+k];if(!n){p=b;for(o in e){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=e[j[1]+" "+k];if(p){o=e[o],o===!0?n=p:p===!0&&(n=o);break}}}}!n&&!p&&f.error("No conversion from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}return c}function ca(a,c,d){var e=a.contents,f=a.dataTypes,g=a.responseFields,h,i,j,k;for(i in g)i in d&&(c[g[i]]=d[i]);while(f[0]==="*")f.shift(),h===b&&(h=a.mimeType||c.getResponseHeader("content-type"));if(h)for(i in e)if(e[i]&&e[i].test(h)){f.unshift(i);break}if(f[0]in d)j=f[0];else{for(i in d){if(!f[0]||a.converters[i+" "+f[0]]){j=i;break}k||(k=i)}j=j||k}if(j){j!==f[0]&&f.unshift(j);return d[j]}}function b_(a,b,c,d){if(f.isArray(b))f.each(b,function(b,e){c||bD.test(a)?d(a,e):b_(a+"["+(typeof e=="object"?b:"")+"]",e,c,d)});else if(!c&&f.type(b)==="object")for(var e in b)b_(a+"["+e+"]",b[e],c,d);else d(a,b)}function b$(a,c){var d,e,g=f.ajaxSettings.flatOptions||{};for(d in c)c[d]!==b&&((g[d]?a:e||(e={}))[d]=c[d]);e&&f.extend(!0,a,e)}function bZ(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h=a[f],i=0,j=h?h.length:0,k=a===bS,l;for(;i<j&&(k||!l);i++)l=h[i](c,d,e),typeof l=="string"&&(!k||g[l]?l=b:(c.dataTypes.unshift(l),l=bZ(a,c,d,e,l,g)));(k||!l)&&!g["*"]&&(l=bZ(a,c,d,e,"*",g));return l}function bY(a){return function(b,c){typeof b!="string"&&(c=b,b="*");if(f.isFunction(c)){var d=b.toLowerCase().split(bO),e=0,g=d.length,h,i,j;for(;e<g;e++)h=d[e],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h]||[],i[j?"unshift":"push"](c)}}}function bB(a,b,c){var d=b==="width"?a.offsetWidth:a.offsetHeight,e=b==="width"?1:0,g=4;if(d>0){if(c!=="border")for(;e<g;e+=2)c||(d-=parseFloat(f.css(a,"padding"+bx[e]))||0),c==="margin"?d+=parseFloat(f.css(a,c+bx[e]))||0:d-=parseFloat(f.css(a,"border"+bx[e]+"Width"))||0;return d+"px"}d=by(a,b);if(d<0||d==null)d=a.style[b];if(bt.test(d))return d;d=parseFloat(d)||0;if(c)for(;e<g;e+=2)d+=parseFloat(f.css(a,"padding"+bx[e]))||0,c!=="padding"&&(d+=parseFloat(f.css(a,"border"+bx[e]+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+bx[e]))||0);return d+"px"}function bo(a){var b=c.createElement("div");bh.appendChild(b),b.innerHTML=a.outerHTML;return b.firstChild}function bn(a){var b=(a.nodeName||"").toLowerCase();b==="input"?bm(a):b!=="script"&&typeof a.getElementsByTagName!="undefined"&&f.grep(a.getElementsByTagName("input"),bm)}function bm(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function bl(a){return typeof a.getElementsByTagName!="undefined"?a.getElementsByTagName("*"):typeof a.querySelectorAll!="undefined"?a.querySelectorAll("*"):[]}function bk(a,b){var c;b.nodeType===1&&(b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase(),c==="object"?b.outerHTML=a.outerHTML:c!=="input"||a.type!=="checkbox"&&a.type!=="radio"?c==="option"?b.selected=a.defaultSelected:c==="input"||c==="textarea"?b.defaultValue=a.defaultValue:c==="script"&&b.text!==a.text&&(b.text=a.text):(a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value)),b.removeAttribute(f.expando),b.removeAttribute("_submit_attached"),b.removeAttribute("_change_attached"))}function bj(a,b){if(b.nodeType===1&&!!f.hasData(a)){var c,d,e,g=f._data(a),h=f._data(b,g),i=g.events;if(i){delete h.handle,h.events={};for(c in i)for(d=0,e=i[c].length;d<e;d++)f.event.add(b,c,i[c][d])}h.data&&(h.data=f.extend({},h.data))}}function bi(a,b){return f.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function U(a){var b=V.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}function T(a,b,c){b=b||0;if(f.isFunction(b))return f.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return f.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=f.grep(a,function(a){return a.nodeType===1});if(O.test(b))return f.filter(b,d,!c);b=f.filter(b,d)}return f.grep(a,function(a,d){return f.inArray(a,b)>=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c<d;c++)b[a[c]]=!0;return b}var c=a.document,d=a.navigator,e=a.location,f=function(){function J(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(J,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?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(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j<k;j++)if((a=arguments[j])!=null)for(c in a){d=i[c],f=a[c];if(i===f)continue;l&&f&&(e.isPlainObject(f)||(g=e.isArray(f)))?(g?(g=!1,h=d&&e.isArray(d)?d:[]):h=d&&e.isPlainObject(d)?d:{},i[c]=e.extend(l,h,f)):f!==b&&(i[c]=f)}return i},e.extend({noConflict:function(b){a.$===e&&(a.$=g),b&&a.jQuery===e&&(a.jQuery=f);return e},isReady:!1,readyWait:1,holdReady:function(a){a?e.readyWait++:e.ready(!0)},ready:function(a){if(a===!0&&!--e.readyWait||a!==!0&&!e.isReady){if(!c.body)return setTimeout(e.ready,1);e.isReady=!0;if(a!==!0&&--e.readyWait>0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g<h;)if(c.apply(a[g++],d)===!1)break}else if(i){for(f in a)if(c.call(a[f],f,a[f])===!1)break}else for(;g<h;)if(c.call(a[g],g,a[g++])===!1)break;return a},trim:G?function(a){return a==null?"":G.call(a)}:function(a){return a==null?"":(a+"").replace(k,"").replace(l,"")},makeArray:function(a,b){var c=b||[];if(a!=null){var d=e.type(a);a.length==null||d==="string"||d==="function"||d==="regexp"||e.isWindow(a)?E.call(c,a):e.merge(c,a)}return c},inArray:function(a,b,c){var d;if(b){if(H)return H.call(b,a,c);d=b.length,c=c?c<0?Math.max(0,d+c):c:0;for(;c<d;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,c){var d=a.length,e=0;if(typeof c.length=="number")for(var f=c.length;e<f;e++)a[d++]=c[e];else while(c[e]!==b)a[d++]=c[e++];a.length=d;return a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);return d},map:function(a,c,d){var f,g,h=[],i=0,j=a.length,k=a instanceof e||j!==b&&typeof j=="number"&&(j>0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i<j;i++)f=c(a[i],i,d),f!=null&&(h[h.length]=f);else for(g in a)f=c(a[g],g,d),f!=null&&(h[h.length]=f);return h.concat.apply([],h)},guid:1,proxy:function(a,c){if(typeof c=="string"){var d=a[c];c=a,a=d}if(!e.isFunction(a))return b;var f=F.call(arguments,2),g=function(){return a.apply(c,f.concat(F.call(arguments)))};g.guid=a.guid=a.guid||g.guid||e.guid++;return g},access:function(a,c,d,f,g,h,i){var j,k=d==null,l=0,m=a.length;if(d&&typeof d=="object"){for(l in d)e.access(a,c,l,d[l],1,h,f);g=1}else if(f!==b){j=i===b&&e.isFunction(f),k&&(j?(j=c,c=function(a,b,c){return j.call(e(a),c)}):(c.call(a,f),c=null));if(c)for(;l<m;l++)c(a[l],d,j?f.call(a[l],l,c(a[l],d)):f,i);g=1}return g?a:k?c.call(a):m?c(a[0],d):h},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();var b=r.exec(a)||s.exec(a)||t.exec(a)||a.indexOf("compatible")<0&&u.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}e.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function(d,f){f&&f instanceof e&&!(f instanceof a)&&(f=a(f));return e.fn.init.call(this,d,f,b)},a.fn.init.prototype=a.fn;var b=a(c);return a},browser:{}}),e.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){I["[object "+b+"]"]=b.toLowerCase()}),z=e.uaMatch(y),z.browser&&(e.browser[z.browser]=!0,e.browser.version=z.version),e.browser.webkit&&(e.browser.safari=!0),j.test(" ")&&(k=/^[\s\xA0]+/,l=/[\s\xA0]+$/),h=e(c),c.addEventListener?B=function(){c.removeEventListener("DOMContentLoaded",B,!1),e.ready()}:c.attachEvent&&(B=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",B),e.ready())});return e}(),g={};f.Callbacks=function(a){a=a?g[a]||h(a):{};var c=[],d=[],e,i,j,k,l,m,n=function(b){var d,e,g,h,i;for(d=0,e=b.length;d<e;d++)g=b[d],h=f.type(g),h==="array"?n(g):h==="function"&&(!a.unique||!p.has(g))&&c.push(g)},o=function(b,f){f=f||[],e=!a.memory||[b,f],i=!0,j=!0,m=k||0,k=0,l=c.length;for(;c&&m<l;m++)if(c[m].apply(b,f)===!1&&a.stopOnFalse){e=!0;break}j=!1,c&&(a.once?e===!0?p.disable():c=[]:d&&d.length&&(e=d.shift(),p.fireWith(e[0],e[1])))},p={add:function(){if(c){var a=c.length;n(arguments),j?l=c.length:e&&e!==!0&&(k=a,o(e[0],e[1]))}return this},remove:function(){if(c){var b=arguments,d=0,e=b.length;for(;d<e;d++)for(var f=0;f<c.length;f++)if(b[d]===c[f]){j&&f<=l&&(l--,f<=m&&m--),c.splice(f--,1);if(a.unique)break}}return this},has:function(a){if(c){var b=0,d=c.length;for(;b<d;b++)if(a===c[b])return!0}return!1},empty:function(){c=[];return this},disable:function(){c=d=e=b;return this},disabled:function(){return!c},lock:function(){d=b,(!e||e===!0)&&p.disable();return this},locked:function(){return!d},fireWith:function(b,c){d&&(j?a.once||d.push([b,c]):(!a.once||!e)&&o(b,c));return this},fire:function(){p.fireWith(this,arguments);return this},fired:function(){return!!i}};return p};var i=[].slice;f.extend({Deferred:function(a){var b=f.Callbacks("once memory"),c=f.Callbacks("once memory"),d=f.Callbacks("memory"),e="pending",g={resolve:b,reject:c,notify:d},h={done:b.add,fail:c.add,progress:d.add,state:function(){return e},isResolved:b.fired,isRejected:c.fired,then:function(a,b,c){i.done(a).fail(b).progress(c);return this},always:function(){i.done.apply(i,arguments).fail.apply(i,arguments);return this},pipe:function(a,b,c){return f.Deferred(function(d){f.each({done:[a,"resolve"],fail:[b,"reject"],progress:[c,"notify"]},function(a,b){var c=b[0],e=b[1],g;f.isFunction(c)?i[a](function(){g=c.apply(this,arguments),g&&f.isFunction(g.promise)?g.promise().then(d.resolve,d.reject,d.notify):d[e+"With"](this===i?d:this,[g])}):i[a](d[e])})}).promise()},promise:function(a){if(a==null)a=h;else for(var b in h)a[b]=h[b];return a}},i=h.promise({}),j;for(j in g)i[j]=g[j].fire,i[j+"With"]=g[j].fireWith;i.done(function(){e="resolved"},c.disable,d.lock).fail(function(){e="rejected"},b.disable,d.lock),a&&a.call(i,i);return i},when:function(a){function m(a){return function(b){e[a]=arguments.length>1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c<d;c++)b[c]&&b[c].promise&&f.isFunction(b[c].promise)?b[c].promise().then(l(c),j.reject,m(c)):--g;g||j.resolveWith(j,b)}else j!==a&&j.resolveWith(j,d?[a]:[]);return k}}),f.support=function(){var b,d,e,g,h,i,j,k,l,m,n,o,p=c.createElement("div"),q=c.documentElement;p.setAttribute("className","t"),p.innerHTML=" <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="<div "+n+"display:block;'><div style='"+t+"0;display:block;overflow:hidden;'></div></div>"+"<table "+n+"' cellpadding='0' cellspacing='0'>"+"<tr><td></td></tr></table>",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="<table><tr><td style='"+t+"0;display:none'></td><td>t</td></tr></table>",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="<div style='width:5px;'></div>",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.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?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e<g;e++)delete d[b[e]];if(!(c?m:f.isEmptyObject)(d))return}}if(!c){delete j[k].data;if(!m(j[k]))return}f.support.deleteExpando||!j.setInterval?delete j[k]:j[k]=null,i&&(f.support.deleteExpando?delete a[h]:a.removeAttribute?a.removeAttribute(h):a[h]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.fn.extend({data:function(a,c){var d,e,g,h,i,j=this[0],k=0,m=null;if(a===b){if(this.length){m=f.data(j);if(j.nodeType===1&&!f._data(j,"parsedAttrs")){g=j.attributes;for(i=g.length;k<i;k++)h=g[k].name,h.indexOf("data-")===0&&(h=f.camelCase(h.substring(5)),l(j,h,m[h]));f._data(j,"parsedAttrs",!0)}}return m}if(typeof a=="object")return this.each(function(){f.data(this,a)});d=a.split(".",2),d[1]=d[1]?"."+d[1]:"",e=d[1]+"!";return f.access(this,function(c){if(c===b){m=this.triggerHandler("getData"+e,[d[0]]),m===b&&j&&(m=f.data(j,a),m=l(j,a,m));return m===b&&d[1]?this.data(d[0]):m}d[1]=c,this.each(function(){var b=f(this);b.triggerHandler("setData"+e,d),f.data(this,a,c),b.triggerHandler("changeData"+e,d)})},null,c,arguments.length>1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length<d)return f.queue(this[0],a);return c===b?this:this.each(function(){var b=f.queue(this,a,c);a==="fx"&&b[0]!=="inprogress"&&f.dequeue(this,a)})},dequeue:function(a){return this.each(function(){f.dequeue(this,a)})},delay:function(a,b){a=f.fx?f.fx.speeds[a]||a:a,b=b||"fx";return this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){function m(){--h||d.resolveWith(e,[e])}typeof a!="string"&&(c=a,a=b),a=a||"fx";var d=f.Deferred(),e=this,g=e.length,h=1,i=a+"defer",j=a+"queue",k=a+"mark",l;while(g--)if(l=f.data(e[g],i,b,!0)||(f.data(e[g],j,b,!0)||f.data(e[g],k,b,!0))&&f.data(e[g],i,f.Callbacks("once memory"),!0))h++,l.add(m);m();return d.promise(c)}});var o=/[\n\t\r]/g,p=/\s+/,q=/\r/g,r=/^(?:button|input)$/i,s=/^(?:button|input|object|select|textarea)$/i,t=/^a(?:rea)?$/i,u=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,v=f.support.getSetAttribute,w,x,y;f.fn.extend({attr:function(a,b){return f.access(this,f.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c<d;c++){e=this[c];if(e.nodeType===1)if(!e.className&&b.length===1)e.className=a;else{g=" "+e.className+" ";for(h=0,i=b.length;h<i;h++)~g.indexOf(" "+b[h]+" ")||(g+=b[h]+" ");e.className=f.trim(g)}}}return this},removeClass:function(a){var c,d,e,g,h,i,j;if(f.isFunction(a))return this.each(function(b){f(this).removeClass(a.call(this,b,this.className))});if(a&&typeof a=="string"||a===b){c=(a||"").split(p);for(d=0,e=this.length;d<e;d++){g=this[d];if(g.nodeType===1&&g.className)if(a){h=(" "+g.className+" ").replace(o," ");for(i=0,j=c.length;i<j;i++)h=h.replace(" "+c[i]+" "," ");g.className=f.trim(h)}else g.className=""}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";if(f.isFunction(a))return this.each(function(c){f(this).toggleClass(a.call(this,c,this.className,b),b)});return this.each(function(){if(c==="string"){var e,g=0,h=f(this),i=b,j=a.split(p);while(e=j[g++])i=d?i:!h.hasClass(e),h[i?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className&&f._data(this,"__className__",this.className),this.className=this.className||a===!1?"":f._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ",c=0,d=this.length;for(;c<d;c++)if(this[c].nodeType===1&&(" "+this[c].className+" ").replace(o," ").indexOf(b)>-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.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,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c<d;c++){e=i[c];if(e.selected&&(f.support.optDisabled?!e.disabled:e.getAttribute("disabled")===null)&&(!e.parentNode.disabled||!f.nodeName(e.parentNode,"optgroup"))){b=f(e).val();if(j)return b;h.push(b)}}if(j&&!h.length&&i.length)return f(i[g]).val();return h},set:function(a,b){var c=f.makeArray(b);f(a).find("option").each(function(){this.selected=f.inArray(f(this).val(),c)>=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i<g;i++)e=d[i],e&&(c=f.propFix[e]||e,h=u.test(e),h||f.attr(a,e,""),a.removeAttribute(v?e:c),h&&c in a&&(a[c]=!1))}},attrHooks:{type:{set:function(a,b){if(r.test(a.nodeName)&&a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b),c&&(a.value=c);return b}}},value:{get:function(a,b){if(w&&f.nodeName(a,"button"))return w.get(a,b);return b in a?a.value:null},set:function(a,b,c){if(w&&f.nodeName(a,"button"))return w.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,c,d){var e,g,h,i=a.nodeType;if(!!a&&i!==3&&i!==8&&i!==2){h=i!==1||!f.isXMLDoc(a),h&&(c=f.propFix[c]||c,g=f.propHooks[c]);return d!==b?g&&"set"in g&&(e=g.set(a,d,c))!==b?e:a[c]=d:g&&"get"in g&&(e=g.get(a,c))!==null?e:a[c]}},propHooks:{tabIndex:{get:function(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.value,10):s.test(a.nodeName)||t.test(a.nodeName)&&a.href?0:b}}}}),f.attrHooks.tabindex=f.propHooks.tabIndex,x={get:function(a,c){var d,e=f.prop(a,c);return e===!0||typeof e!="boolean"&&(d=a.getAttributeNode(c))&&d.nodeValue!==!1?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase()));return c}},v||(y={name:!0,id:!0,coords:!0},w=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&(y[c]?d.nodeValue!=="":d.specified)?d.nodeValue:b},set:function(a,b,d){var e=a.getAttributeNode(d);e||(e=c.createAttribute(d),a.setAttributeNode(e));return e.nodeValue=b+""}},f.attrHooks.tabindex.set=w.set,f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})}),f.attrHooks.contenteditable={get:w.get,set:function(a,b,c){b===""&&(b="false"),w.set(a,b,c)}}),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex);return null}})),f.support.enctype||(f.propFix.enctype="encoding"),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function(
+a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k<c.length;k++){l=A.exec(c[k])||[],m=l[1],n=(l[2]||"").split(".").sort(),s=f.event.special[m]||{},m=(g?s.delegateType:s.bindType)||m,s=f.event.special[m]||{},o=f.extend({type:m,origType:l[1],data:e,handler:d,guid:d.guid,selector:g,quick:g&&G(g),namespace:n.join(".")},p),r=j[m];if(!r){r=j[m]=[],r.delegateCount=0;if(!s.setup||s.setup.call(a,e,n,i)===!1)a.addEventListener?a.addEventListener(m,i,!1):a.attachEvent&&a.attachEvent("on"+m,i)}s.add&&(s.add.call(a,o),o.handler.guid||(o.handler.guid=d.guid)),g?r.splice(r.delegateCount++,0,o):r.push(o),f.event.global[m]=!0}a=null}},global:{},remove:function(a,b,c,d,e){var g=f.hasData(a)&&f._data(a),h,i,j,k,l,m,n,o,p,q,r,s;if(!!g&&!!(o=g.events)){b=f.trim(I(b||"")).split(" ");for(h=0;h<b.length;h++){i=A.exec(b[h])||[],j=k=i[1],l=i[2];if(!j){for(j in o)f.event.remove(a,j+b[h],c,d,!0);continue}p=f.event.special[j]||{},j=(d?p.delegateType:p.bindType)||j,r=o[j]||[],m=r.length,l=l?new RegExp("(^|\\.)"+l.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;for(n=0;n<r.length;n++)s=r[n],(e||k===s.origType)&&(!c||c.guid===s.guid)&&(!l||l.test(s.namespace))&&(!d||d===s.selector||d==="**"&&s.selector)&&(r.splice(n--,1),s.selector&&r.delegateCount--,p.remove&&p.remove.call(a,s));r.length===0&&m!==r.length&&((!p.teardown||p.teardown.call(a,l)===!1)&&f.removeEvent(a,j,g.handle),delete o[j])}f.isEmptyObject(o)&&(q=g.handle,q&&(q.elem=null),f.removeData(a,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,d,e,g){if(!e||e.nodeType!==3&&e.nodeType!==8){var h=c.type||c,i=[],j,k,l,m,n,o,p,q,r,s;if(E.test(h+f.event.triggered))return;h.indexOf("!")>=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;l<r.length&&!c.isPropagationStopped();l++)m=r[l][0],c.type=r[l][1],q=(f._data(m,"events")||{})[c.type]&&f._data(m,"handle"),q&&q.apply(m,d),q=o&&m[o],q&&f.acceptData(m)&&q.apply(m,d)===!1&&c.preventDefault();c.type=h,!g&&!c.isDefaultPrevented()&&(!p._default||p._default.apply(e.ownerDocument,d)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)&&o&&e[h]&&(h!=="focus"&&h!=="blur"||c.target.offsetWidth!==0)&&!f.isWindow(e)&&(n=e[o],n&&(e[o]=null),f.event.triggered=h,e[h](),f.event.triggered=b,n&&(e[o]=n));return c.result}},dispatch:function(c){c=f.event.fix(c||a.event);var d=(f._data(this,"events")||{})[c.type]||[],e=d.delegateCount,g=[].slice.call(arguments,0),h=!c.exclusive&&!c.namespace,i=f.event.special[c.type]||{},j=[],k,l,m,n,o,p,q,r,s,t,u;g[0]=c,c.delegateTarget=this;if(!i.preDispatch||i.preDispatch.call(this,c)!==!1){if(e&&(!c.button||c.type!=="click")){n=f(this),n.context=this.ownerDocument||this;for(m=c.target;m!=this;m=m.parentNode||this)if(m.disabled!==!0){p={},r=[],n[0]=m;for(k=0;k<e;k++)s=d[k],t=s.selector,p[t]===b&&(p[t]=s.quick?H(m,s.quick):n.is(t)),p[t]&&r.push(s);r.length&&j.push({elem:m,matches:r})}}d.length>e&&j.push({elem:this,matches:d.slice(e)});for(k=0;k<j.length&&!c.isPropagationStopped();k++){q=j[k],c.currentTarget=q.elem;for(l=0;l<q.matches.length&&!c.isImmediatePropagationStopped();l++){s=q.matches[l];if(h||!c.namespace&&!s.namespace||c.namespace_re&&c.namespace_re.test(s.namespace))c.data=s.data,c.handleObj=s,o=((f.event.special[s.origType]||{}).handle||s.handler).apply(q.elem,g),o!==b&&(c.result=o,o===!1&&(c.preventDefault(),c.stopPropagation()))}}i.postDispatch&&i.postDispatch.call(this,c);return c.result}},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){a.which==null&&(a.which=b.charCode!=null?b.charCode:b.keyCode);return a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,d){var e,f,g,h=d.button,i=d.fromElement;a.pageX==null&&d.clientX!=null&&(e=a.target.ownerDocument||c,f=e.documentElement,g=e.body,a.pageX=d.clientX+(f&&f.scrollLeft||g&&g.scrollLeft||0)-(f&&f.clientLeft||g&&g.clientLeft||0),a.pageY=d.clientY+(f&&f.scrollTop||g&&g.scrollTop||0)-(f&&f.clientTop||g&&g.clientTop||0)),!a.relatedTarget&&i&&(a.relatedTarget=i===a.target?d.toElement:i),!a.which&&h!==b&&(a.which=h&1?1:h&2?3:h&4?2:0);return a}},fix:function(a){if(a[f.expando])return a;var d,e,g=a,h=f.event.fixHooks[a.type]||{},i=h.props?this.props.concat(h.props):this.props;a=f.Event(g);for(d=i.length;d;)e=i[--d],a[e]=g[e];a.target||(a.target=g.srcElement||c),a.target.nodeType===3&&(a.target=a.target.parentNode),a.metaKey===b&&(a.metaKey=a.ctrlKey);return h.filter?h.filter(a,g):a},special:{ready:{setup:f.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,b,c){f.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}},simulate:function(a,b,c,d){var e=f.extend(new f.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?f.event.trigger(e,null,b):f.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},f.event.handle=f.event.dispatch,f.removeEvent=c.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},f.Event=function(a,b){if(!(this instanceof f.Event))return new f.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?K:J):this.type=a,b&&f.extend(this,b),this.timeStamp=a&&a.timeStamp||f.now(),this[f.expando]=!0},f.Event.prototype={preventDefault:function(){this.isDefaultPrevented=K;var a=this.originalEvent;!a||(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=K;var a=this.originalEvent;!a||(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=K,this.stopPropagation()},isDefaultPrevented:J,isPropagationStopped:J,isImmediatePropagationStopped:J},f.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){f.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c=this,d=a.relatedTarget,e=a.handleObj,g=e.selector,h;if(!d||d!==c&&!f.contains(c,d))a.type=e.origType,h=e.handler.apply(this,arguments),a.type=b;return h}}}),f.support.submitBubbles||(f.event.special.submit={setup:function(){if(f.nodeName(this,"form"))return!1;f.event.add(this,"click._submit keypress._submit",function(a){var c=a.target,d=f.nodeName(c,"input")||f.nodeName(c,"button")?c.form:b;d&&!d._submit_attached&&(f.event.add(d,"submit._submit",function(a){a._submit_bubble=!0}),d._submit_attached=!0)})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&f.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){if(f.nodeName(this,"form"))return!1;f.event.remove(this,"._submit")}}),f.support.changeBubbles||(f.event.special.change={setup:function(){if(z.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio")f.event.add(this,"propertychange._change",function(a){a.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),f.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1,f.event.simulate("change",this,a,!0))});return!1}f.event.add(this,"beforeactivate._change",function(a){var b=a.target;z.test(b.nodeName)&&!b._change_attached&&(f.event.add(b,"change._change",function(a){this.parentNode&&!a.isSimulated&&!a.isTrigger&&f.event.simulate("change",this.parentNode,a,!0)}),b._change_attached=!0)})},handle:function(a){var b=a.target;if(this!==b||a.isSimulated||a.isTrigger||b.type!=="radio"&&b.type!=="checkbox")return a.handleObj.handler.apply(this,arguments)},teardown:function(){f.event.remove(this,"._change");return z.test(this.nodeName)}}),f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){var d=0,e=function(a){f.event.simulate(b,a.target,f.event.fix(a),!0)};f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.fn.extend({on:function(a,c,d,e,g){var h,i;if(typeof a=="object"){typeof c!="string"&&(d=d||c,c=b);for(i in a)this.on(i,c,d,a[i],g);return this}d==null&&e==null?(e=c,d=c=b):e==null&&(typeof c=="string"?(e=d,d=b):(e=d,d=c,c=b));if(e===!1)e=J;else if(!e)return this;g===1&&(h=e,e=function(a){f().off(a);return h.apply(this,arguments)},e.guid=h.guid||(h.guid=f.guid++));return this.each(function(){f.event.add(this,a,e,d,c)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,c,d){if(a&&a.preventDefault&&a.handleObj){var e=a.handleObj;f(a.delegateTarget).off(e.namespace?e.origType+"."+e.namespace:e.origType,e.selector,e.handler);return this}if(typeof a=="object"){for(var g in a)this.off(g,c,a[g]);return this}if(c===!1||typeof c=="function")d=c,c=b;d===!1&&(d=J);return this.each(function(){f.event.remove(this,a,d,c)})},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},live:function(a,b,c){f(this.context).on(a,this.selector,b,c);return this},die:function(a,b){f(this.context).off(a,this.selector||"**",b);return this},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return arguments.length==1?this.off(a,"**"):this.off(b,a,c)},trigger:function(a,b){return this.each(function(){f.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return f.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,c=a.guid||f.guid++,d=0,e=function(c){var e=(f._data(this,"lastToggle"+a.guid)||0)%d;f._data(this,"lastToggle"+a.guid,e+1),c.preventDefault();return b[e].apply(this,arguments)||!1};e.guid=c;while(d<b.length)b[d++].guid=c;return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),f.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){f.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h<i;h++){var j=e[h];if(j){var k=!1;j=j[a];while(j){if(j[d]===c){k=e[j.sizset];break}if(j.nodeType===1){g||(j[d]=c,j.sizset=h);if(typeof b!="string"){if(j===b){k=!0;break}}else if(m.filter(b,[j]).length>0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h<i;h++){var j=e[h];if(j){var k=!1;j=j[a];while(j){if(j[d]===c){k=e[j.sizset];break}j.nodeType===1&&!g&&(j[d]=c,j.sizset=h);if(j.nodeName.toLowerCase()===b){k=j;break}j=j[a]}e[h]=k}}}var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a},m.matches=function(a,b){return m(a,null,null,b)},m.matchesSelector=function(a,b){return m(b,null,null,[a]).length>0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e<f;e++){h=o.order[e];if(g=o.leftMatch[h].exec(a)){i=g[1],g.splice(1,1);if(i.substr(i.length-1)!=="\\"){g[1]=(g[1]||"").replace(j,""),d=o.find[h](g,b,c);if(d!=null){a=a.replace(o.match[h],"");break}}}}d||(d=typeof b.getElementsByTagName!="undefined"?b.getElementsByTagName("*"):[]);return{set:d,expr:a}},m.filter=function(a,c,d,e){var f,g,h,i,j,k,l,n,p,q=a,r=[],s=c,t=c&&c[0]&&m.isXML(c[0]);while(a&&c.length){for(h in o.filter)if((f=o.leftMatch[h].exec(a))!=null&&f[2]){k=o.filter[h],l=f[1],g=!1,f.splice(1,1);if(l.substr(l.length-1)==="\\")continue;s===r&&(r=[]);if(o.preFilter[h]){f=o.preFilter[h](f,s,d,r,e,t);if(!f)g=i=!0;else if(f===!0)continue}if(f)for(n=0;(j=s[n])!=null;n++)j&&(i=k(j,f,n,s),p=e^i,d&&i!=null?p?g=!0:s[n]=!1:p&&(r.push(j),g=!0));if(i!==b){d||(s=r),a=a.replace(o.match[h],"");if(!g)return[];break}}if(a===q)if(g==null)m.error(a);else break;q=a}return s},m.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)};var n=m.getText=function(a){var b,c,d=a.nodeType,e="";if(d){if(d===1||d===9||d===11){if(typeof a.textContent=="string")return a.textContent;if(typeof a.innerText=="string")return a.innerText.replace(k,"");for(a=a.firstChild;a;a=a.nextSibling)e+=n(a)}else if(d===3||d===4)return a.nodeValue}else for(b=0;c=a[b];b++)c.nodeType!==8&&(e+=n(c));return e},o=m.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b=="string",d=c&&!l.test(b),e=c&&!d;d&&(b=b.toLowerCase());for(var f=0,g=a.length,h;f<g;f++)if(h=a[f]){while((h=h.previousSibling)&&h.nodeType!==1);a[f]=e||h&&h.nodeName.toLowerCase()===b?h||!1:h===b}e&&m.filter(b,a,!0)},">":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e<f;e++){c=a[e];if(c){var g=c.parentNode;a[e]=g.nodeName.toLowerCase()===b?g:!1}}}else{for(;e<f;e++)c=a[e],c&&(a[e]=d?c.parentNode:c.parentNode===b);d&&m.filter(b,a,!0)}},"":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("parentNode",b,f,a,d,c)},"~":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("previousSibling",b,f,a,d,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!="undefined"){var c=[],d=b.getElementsByName(a[1]);for(var e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===a[1]&&c.push(d[e]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(j,"")+" ";if(f)return a;for(var g=0,h;(h=b[g])!=null;g++)h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.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]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},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 b<c[3]-0},gt:function(a,b,c){return b>c[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=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h<i;h++)if(g[h]===a)return!1;return!0}m.error(e)},CHILD:function(a,b){var c,e,f,g,h,i,j,k=b[1],l=a;switch(k){case"only":case"first":while(l=l.previousSibling)if(l.nodeType===1)return!1;if(k==="first")return!0;l=a;case"last":while(l=l.nextSibling)if(l.nodeType===1)return!1;return!0;case"nth":c=b[2],e=b[3];if(c===1&&e===0)return!0;f=b[0],g=a.parentNode;if(g&&(g[d]!==f||!a.nodeIndex)){i=0;for(l=g.firstChild;l;l=l.nextSibling)l.nodeType===1&&(l.nodeIndex=++i);g[d]=f}j=a.nodeIndex-e;return c===0?j===0:j%c===0&&j/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&&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],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=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(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c<e;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var u,v;c.documentElement.compareDocumentPosition?u=function(a,b){if(a===b){h=!0;return 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition)return a.compareDocumentPosition?-1:1;return a.compareDocumentPosition(b)&4?-1:1}:(u=function(a,b){if(a===b){h=!0;return 0}if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[],g=a.parentNode,i=b.parentNode,j=g;if(g===i)return v(a,b);if(!g)return-1;if(!i)return 1;while(j)e.unshift(j),j=j.parentNode;j=i;while(j)f.unshift(j),j=j.parentNode;c=e.length,d=f.length;for(var k=0;k<c&&k<d;k++)if(e[k]!==f[k])return v(e[k],f[k]);return k===c?v(a,f[k],-1):v(e[k],b,1)},v=function(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}),function(){var a=c.createElement("div"),d="script"+(new Date).getTime(),e=c.documentElement;a.innerHTML="<a name='"+d+"'/>",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h<i;h++)m(a,g[h],e,c);return m.filter(f,e)};m.attr=f.attr,m.selectors.attrMap={},f.find=m,f.expr=m.selectors,f.expr[":"]=f.expr.filters,f.unique=m.uniqueSort,f.text=m.getText,f.isXMLDoc=m.isXML,f.contains=m.contains}();var L=/Until$/,M=/^(?:parents|prevUntil|prevAll)/,N=/,/,O=/^.[^:#\[\.,]*$/,P=Array.prototype.slice,Q=f.expr.match.globalPOS,R={children:!0,contents:!0,next:!0,prev:!0};f.fn.extend({find:function(a){var b=this,c,d;if(typeof a!="string")return f(a).filter(function(){for(c=0,d=b.length;c<d;c++)if(f.contains(b[c],this))return!0});var e=this.pushStack("","find",a),g,h,i;for(c=0,d=this.length;c<d;c++){g=e.length,f.find(a,this[c],e);if(c>0)for(h=g;h<e.length;h++)for(i=0;i<g;i++)if(e[i]===e[h]){e.splice(h--,1);break}}return e},has:function(a){var b=f(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++)if(f.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(T(this,a,!1),"not",a)},filter:function(a){return this.pushStack(T(this,a,!0),"filter",a)},is:function(a){return!!a&&(typeof a=="string"?Q.test(a)?f(a,this.context).index(this[0])>=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d<a.length;d++)f(g).is(a[d])&&c.push({selector:a[d],elem:g,level:h});g=g.parentNode,h++}return c}var i=Q.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d<e;d++){g=this[d];while(g){if(i?i.index(g)>-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/<tbody/i,_=/<|&#?\w+;/,ba=/<(?:script|style)/i,bb=/<(?:script|object|embed|option|style)/i,bc=new RegExp("<(?:"+V+")[\\s/>]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*<!(?:\[CDATA\[|\-\-)/,bg={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div<div>","</div>"]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f
+.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1></$2>");try{for(;d<e;d++)c=this[d]||{},c.nodeType===1&&(f.cleanData(c.getElementsByTagName("*")),c.innerHTML=a);c=0}catch(g){}}c&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(f.isFunction(a))return this.each(function(b){var c=f(this),d=c.html();c.replaceWith(a.call(this,b,d))});typeof a!="string"&&(a=f(a).detach());return this.each(function(){var b=this.nextSibling,c=this.parentNode;f(this).remove(),b?f(b).before(a):f(c).append(a)})}return this.length?this.pushStack(f(f.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,d){var e,g,h,i,j=a[0],k=[];if(!f.support.checkClone&&arguments.length===3&&typeof j=="string"&&bd.test(j))return this.each(function(){f(this).domManip(a,c,d,!0)});if(f.isFunction(j))return this.each(function(e){var g=f(this);a[0]=j.call(this,e,c?g.html():b),g.domManip(a,c,d)});if(this[0]){i=j&&j.parentNode,f.support.parentNode&&i&&i.nodeType===11&&i.childNodes.length===this.length?e={fragment:i}:e=f.buildFragment(a,this,k),h=e.fragment,h.childNodes.length===1?g=h=h.firstChild:g=h.firstChild;if(g){c=c&&f.nodeName(g,"tr");for(var l=0,m=this.length,n=m-1;l<m;l++)d.call(c?bi(this[l],g):this[l],e.cacheable||m>1&&l<n?f.clone(h,!0,!0):h)}k.length&&f.each(k,function(a,b){b.src?f.ajax({type:"GET",global:!1,url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(bf,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)})}return this}}),f.buildFragment=function(a,b,d){var e,g,h,i,j=a[0];b&&b[0]&&(i=b[0].ownerDocument||b[0]),i.createDocumentFragment||(i=c),a.length===1&&typeof j=="string"&&j.length<512&&i===c&&j.charAt(0)==="<"&&!bb.test(j)&&(f.support.checkClone||!bd.test(j))&&(f.support.html5Clone||!bc.test(j))&&(g=!0,h=f.fragments[j],h&&h!==1&&(e=h)),e||(e=i.createDocumentFragment(),f.clean(a,i,e,d)),g&&(f.fragments[j]=h?e:1);return{fragment:e,cacheable:g}},f.fragments={},f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){f.fn[a]=function(c){var d=[],e=f(c),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&e.length===1){e[b](this[0]);return this}for(var h=0,i=e.length;h<i;h++){var j=(h>0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1></$2>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]==="<table>"&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i<u;i++)bn(l[i]);else bn(l);l.nodeType?j.push(l):j=f.merge(j,l)}if(d){g=function(a){return!a.type||be.test(a.type)};for(k=0;j[k];k++){h=j[k];if(e&&f.nodeName(h,"script")&&(!h.type||be.test(h.type)))e.push(h.parentNode?h.parentNode.removeChild(h):h);else{if(h.nodeType===1){var v=f.grep(h.getElementsByTagName("script"),g);j.splice.apply(j,[k+1,0].concat(v))}d.appendChild(h)}}}return j},cleanData:function(a){var b,c,d=f.cache,e=f.event.special,g=f.support.deleteExpando;for(var h=0,i;(i=a[h])!=null;h++){if(i.nodeName&&f.noData[i.nodeName.toLowerCase()])continue;c=i[f.expando];if(c){b=d[c];if(b&&b.events){for(var j in b.events)e[j]?f.event.remove(i,j):f.removeEvent(i,j,b.handle);b.handle&&(b.handle.elem=null)}g?delete i[f.expando]:i.removeAttribute&&i.removeAttribute(f.expando),delete d[c]}}}});var bp=/alpha\([^)]*\)/i,bq=/opacity=([^)]*)/,br=/([A-Z]|^ms)/g,bs=/^[\-+]?(?:\d*\.)?\d+$/i,bt=/^-?(?:\d*\.)?\d+(?!px)[^\d\s]+$/i,bu=/^([\-+])=([\-+.\de]+)/,bv=/^margin/,bw={position:"absolute",visibility:"hidden",display:"block"},bx=["Top","Right","Bottom","Left"],by,bz,bA;f.fn.css=function(a,c){return f.access(this,function(a,c,d){return d!==b?f.style(a,c,d):f.css(a,c)},a,c,arguments.length>1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("<div>").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g<h;g++)d=this[g],d.style&&(e=d.style.display,!f._data(d,"olddisplay")&&e==="none"&&(e=d.style.display=""),(e===""&&f.css(d,"display")==="none"||!f.contains(d.ownerDocument.documentElement,d))&&f._data(d,"olddisplay",cu(d.nodeName)));for(g=0;g<h;g++){d=this[g];if(d.style){e=d.style.display;if(e===""||e==="none")d.style.display=f._data(d,"olddisplay")||""}}return this},hide:function(a,b,c){if(a||a===0)return this.animate(ct("hide",3),a,b,c);var d,e,g=0,h=this.length;for(;g<h;g++)d=this[g],d.style&&(e=f.css(d,"display"),e!=="none"&&!f._data(d,"olddisplay")&&f._data(d,"olddisplay",e));for(g=0;g<h;g++)this[g].style&&(this[g].style.display="none");return this},_toggle:f.fn.toggle,toggle:function(a,b,c){var d=typeof a=="boolean";f.isFunction(a)&&f.isFunction(b)?this._toggle.apply(this,arguments):a==null||d?this.each(function(){var b=d?a:f(this).is(":hidden");f(this)[b?"show":"hide"]()}):this.animate(ct("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){function g(){e.queue===!1&&f._mark(this);var b=f.extend({},e),c=this.nodeType===1,d=c&&f(this).is(":hidden"),g,h,i,j,k,l,m,n,o,p,q;b.animatedProperties={};for(i in a){g=f.camelCase(i),i!==g&&(a[g]=a[i],delete a[i]);if((k=f.cssHooks[g])&&"expand"in k){l=k.expand(a[g]),delete a[g];for(i in l)i in a||(a[i]=l[i])}}for(g in a){h=a[g],f.isArray(h)?(b.animatedProperties[g]=h[1],h=a[g]=h[0]):b.animatedProperties[g]=b.specialEasing&&b.specialEasing[g]||b.easing||"swing";if(h==="hide"&&d||h==="show"&&!d)return b.complete.call(this);c&&(g==="height"||g==="width")&&(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],f.css(this,"display")==="inline"&&f.css(this,"float")==="none"&&(!f.support.inlineBlockNeedsLayout||cu(this.nodeName)==="inline"?this.style.display="inline-block":this.style.zoom=1))}b.overflow!=null&&(this.style.overflow="hidden");for(i in a)j=new f.fx(this,b,i),h=a[i],cm.test(h)?(q=f._data(this,"toggle"+i)||(h==="toggle"?d?"show":"hide":0),q?(f._data(this,"toggle"+i,q==="show"?"hide":"show"),j[q]()):j[h]()):(m=cn.exec(h),n=j.cur(),m?(o=parseFloat(m[2]),p=m[3]||(f.cssNumber[i]?"":"px"),p!=="px"&&(f.style(this,i,(o||1)+p),n=(o||1)/j.cur()*n,f.style(this,i,n+p)),m[1]&&(o=(m[1]==="-="?-1:1)*o+n),j.custom(n,o,p)):j.custom(n,h,""));return!0}var e=f.speed(b,c,d);if(f.isEmptyObject(a))return this.each(e.complete,[!1]);a=f.extend({},a);return e.queue===!1?this.each(g):this.queue(e.queue,g)},stop:function(a,c,d){typeof a!="string"&&(d=c,c=a,a=b),c&&a!==!1&&this.queue(a||"fx",[]);return this.each(function(){function h(a,b,c){var e=b[c];f.removeData(a,c,!0),e.stop(d)}var b,c=!1,e=f.timers,g=f._data(this);d||f._unmark(!0,this);if(a==null)for(b in g)g[b]&&g[b].stop&&b.indexOf(".run")===b.length-4&&h(this,g,b);else g[b=a+".run"]&&g[b].stop&&h(this,g,b);for(b=e.length;b--;)e[b].elem===this&&(a==null||e[b].queue===a)&&(d?e[b](!0):e[b].saveState(),c=!0,e.splice(b,1));(!d||!c)&&f.dequeue(this,a)})}}),f.each({slideDown:ct("show",1),slideUp:ct("hide",1),slideToggle:ct("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){f.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),f.extend({speed:function(a,b,c){var d=a&&typeof a=="object"?f.extend({},a):{complete:c||!c&&b||f.isFunction(a)&&a,duration:a,easing:c&&b||b&&!f.isFunction(b)&&b};d.duration=f.fx.off?0:typeof d.duration=="number"?d.duration:d.duration in f.fx.speeds?f.fx.speeds[d.duration]:f.fx.speeds._default;if(d.queue==null||d.queue===!0)d.queue="fx";d.old=d.complete,d.complete=function(a){f.isFunction(d.old)&&d.old.call(this),d.queue?f.dequeue(this,d.queue):a!==!1&&f._unmark(this)};return d},easing:{linear:function(a){return a},swing:function(a){return-Math.cos(a*Math.PI)/2+.5}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig=b.orig||{}}}),f.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(f.fx.step[this.prop]||f.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=f.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,c,d){function h(a){return e.step(a)}var e=this,g=f.fx;this.startTime=cq||cr(),this.end=c,this.now=this.start=a,this.pos=this.state=0,this.unit=d||this.unit||(f.cssNumber[this.prop]?"":"px"),h.queue=this.options.queue,h.elem=this.elem,h.saveState=function(){f._data(e.elem,"fxshow"+e.prop)===b&&(e.options.hide?f._data(e.elem,"fxshow"+e.prop,e.start):e.options.show&&f._data(e.elem,"fxshow"+e.prop,e.end))},h()&&f.timers.push(h)&&!co&&(co=setInterval(g.tick,g.interval))},show:function(){var a=f._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=a||f.style(this.elem,this.prop),this.options.show=!0,a!==b?this.custom(this.cur(),a):this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),f(this.elem).show()},hide:function(){this.options.orig[this.prop]=f._data(this.elem,"fxshow"+this.prop)||f.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b,c,d,e=cq||cr(),g=!0,h=this.elem,i=this.options;if(a||e>=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c<b.length;c++)a=b[c],!a()&&b[c]===a&&b.splice(c--,1);b.length||f.fx.stop()},interval:13,stop:function(){clearInterval(co),co=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){f.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=a.now+a.unit:a.elem[a.prop]=a.now}}}),f.each(cp.concat.apply([],cp),function(a,b){b.indexOf("margin")&&(f.fx.step[b]=function(a){f.style(a.elem,b,Math.max(0,a.now)+a.unit)})}),f.expr&&f.expr.filters&&(f.expr.filters.animated=function(a){return f.grep(f.timers,function(b){return a===b.elem}).length});var cv,cw=/^t(?:able|d|h)$/i,cx=/^(?:body|html)$/i;"getBoundingClientRect"in c.documentElement?cv=function(a,b,c,d){try{d=a.getBoundingClientRect()}catch(e){}if(!d||!f.contains(c,a))return d?{top:d.top,left:d.left}:{top:0,left:0};var g=b.body,h=cy(b),i=c.clientTop||g.clientTop||0,j=c.clientLeft||g.clientLeft||0,k=h.pageYOffset||f.support.boxModel&&c.scrollTop||g.scrollTop,l=h.pageXOffset||f.support.boxModel&&c.scrollLeft||g.scrollLeft,m=d.top+k-i,n=d.left+l-j;return{top:m,left:n}}:cv=function(a,b,c){var d,e=a.offsetParent,g=a,h=b.body,i=b.defaultView,j=i?i.getComputedStyle(a,null):a.currentStyle,k=a.offsetTop,l=a.offsetLeft;while((a=a.parentNode)&&a!==h&&a!==c){if(f.support.fixedPosition&&j.position==="fixed")break;d=i?i.getComputedStyle(a,null):a.currentStyle,k-=a.scrollTop,l-=a.scrollLeft,a===e&&(k+=a.offsetTop,l+=a.offsetLeft,f.support.doesNotAddBorder&&(!f.support.doesAddBorderForTableAndCells||!cw.test(a.nodeName))&&(k+=parseFloat(d.borderTopWidth)||0,l+=parseFloat(d.borderLeftWidth)||0),g=e,e=a.offsetParent),f.support.subtractsBorderForOverflowNotVisible&&d.overflow!=="visible"&&(k+=parseFloat(d.borderTopWidth)||0,l+=parseFloat(d.borderLeftWidth)||0),j=d}if(j.position==="relative"||j.position==="static")k+=h.offsetTop,l+=h.offsetLeft;f.support.fixedPosition&&j.position==="fixed"&&(k+=Math.max(c.scrollTop,h.scrollTop),l+=Math.max(c.scrollLeft,h.scrollLeft));return{top:k,left:l}},f.fn.offset=function(a){if(arguments.length)return a===b?this:this.each(function(b){f.offset.setOffset(this,a,b)});var c=this[0],d=c&&c.ownerDocument;if(!d)return null;if(c===d.body)return f.offset.bodyOffset(c);return cv(c,d,d.documentElement)},f.offset={bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;f.support.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,"marginTop"))||0,c+=parseFloat(f.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var d=f.css(a,"position");d==="static"&&(a.style.position="relative");var e=f(a),g=e.offset(),h=f.css(a,"top"),i=f.css(a,"left"),j=(d==="absolute"||d==="fixed")&&f.inArray("auto",[h,i])>-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window);
2  js/jquery.lettering-0.6.1.min.js
@@ -0,0 +1,2 @@
+/* Lettering.JS 0.6.1 by Dave Rupert - http://daverupert.com */
+(function($){function injector(t,splitter,klass,after){var a=t.text().split(splitter),inject='';if(a.length){$(a).each(function(i,item){inject+='<span class="'+klass+(i+1)+'">'+item+'</span>'+after});t.empty().append(inject)}}var methods={init:function(){return this.each(function(){injector($(this),'','char','')})},words:function(){return this.each(function(){injector($(this),' ','word',' ')})},lines:function(){return this.each(function(){var r="eefec303079ad17405c889e092e105b0";injector($(this).children("br").replaceWith(r).end(),r,'line','')})}};$.fn.lettering=function(method){if(method&&methods[method]){return methods[method].apply(this,[].slice.call(arguments,1))}else if(method==='letters'||!method){return methods.init.apply(this,[].slice.call(arguments,0))}$.error('Method '+method+' does not exist on jQuery.lettering');return this}})(jQuery);
209 js/jquery.superscrollorama.js
@@ -0,0 +1,209 @@
+/*
+ SUPERSCROLLORAMA - The jQuery plugin for doing scroll animations
+ by John Polacek (@johnpolacek)
+
+ Powered by the Greensock Tweening Platform
+ http://www.greensock.com
+
+ Dual licensed under MIT and GPL.
+*/
+
+(function($) {
+ $.superscrollorama = function(options) {
+
+ var superscrollorama = this;
+ var defaults = {isVertical:true};
+ superscrollorama.settings = $.extend({}, defaults, options);
+
+
+ // PRIVATE VARS
+
+ var animObjects = [],
+ pinnedObjects = [],
+ didScrollCheck = false,
+ timeline = new TimelineLite();
+
+ // PRIVATE FUNCTIONS
+
+ function init() {
+ // scroll to top of page
+ $('html, body').animate({ scrollTop: 0 }, 0);
+
+ $(window).scroll(function() {
+ didScrollCheck = true;
+ });
+ setInterval(function() {
+ if (didScrollCheck) {
+ checkScrollAnim();
+ didScrollCheck = false;
+ }
+ }, 50);
+ }
+
+ function checkScrollAnim() {
+ var currScrollPoint = superscrollorama.settings.isVertical ? $(window).scrollTop() : $(window).scrollLeft();
+ var offsetAdjust = superscrollorama.settings.isVertical ? -$(window).height()/2 : -$(window).width()/2;
+ var i, startPoint, endPoint;
+
+ // check all animObjects
+ var numAnim = animObjects.length;
+ for (i=0; i<numAnim; i++) {
+ var animObj = animObjects[i],
+ target = animObj.target,
+ offset = animObj.offset;
+
+ if (typeof(target) === 'string') {
+ startPoint = superscrollorama.settings.isVertical ? $(target).offset().top : $(target).offset().left;
+ offset += offsetAdjust;
+ } else if (typeof(target) === 'number') {
+ startPoint = target;
+ } else {
+ startPoint = superscrollorama.settings.isVertical ? target.offset().top : target.offset().left;
+ offset += offsetAdjust;
+ }
+
+ startPoint += offset;
+ endPoint = animObj.dur ? startPoint + animObj.dur : startPoint;
+
+ if ((currScrollPoint > startPoint && currScrollPoint < endPoint) && animObj.state !== 'TWEENING') {
+ // if it should be TWEENING and isn't..
+ console.log('TWEEN');
+ animObj.state = 'TWEENING';
+ animObj.start = startPoint;
+ animObj.end = endPoint;
+ animObj.tween.progress((currScrollPoint - animObj.start)/(animObj.end - animObj.start)).pause();
+ } else if (currScrollPoint < startPoint && animObj.state !== 'BEFORE') {
+ console.log('BEFORE');
+ // if it should be at the BEFORE tween state and isn't..
+ animObj.tween.reverse();
+ animObj.state = 'BEFORE';
+ } else if (currScrollPoint > endPoint && animObj.state !== 'AFTER') {
+ console.log('AFTER');
+ // if it should be at the AFTER tween state and isn't..
+ animObj.tween.play();
+ animObj.state = 'AFTER';
+ } else if (animObj.state === 'TWEENING') {
+ console.log('TWEENING');
+ // if it is TWEENING..
+ animObj.tween.progress((currScrollPoint - animObj.start)/(animObj.end - animObj.start)).pause();
+ }
+ }
+
+ // check all pinned elements
+ var numPinned = pinnedObjects.length;
+ for (i=0; i<numPinned; i++) {
+ var pinObj = pinnedObjects[i];
+ var el = pinObj.el;
+
+ // should object be pinned?
+ if (pinObj.state != 'PINNED') {
+
+ startPoint = pinObj.spacer ?
+ superscrollorama.settings.isVertical ? pinObj.spacer.offset().top : pinObj.spacer.offset().left :
+ superscrollorama.settings.isVertical ? el.offset().top : el.offset().left;
+
+ startPoint += pinObj.offset;
+ endPoint = startPoint + pinObj.dur;
+
+ if (currScrollPoint > startPoint && currScrollPoint < endPoint && pinObj.state !== 'PINNED') {
+ // pin it
+ pinObj.state = 'PINNED';
+
+ // set original position value for unpinning
+ pinObj.origPositionVal = superscrollorama.settings.isVertical ? el.css('top') : el.css('left');
+ if (pinObj.origPositionVal === 'auto')
+ pinObj.origPositionVal = 0;
+ else
+ pinObj.origPositionVal = parseInt(pinObj.origPositionVal, 10);
+
+ // change to fixed position
+ el.css('position','fixed');
+ if (superscrollorama.settings.isVertical)
+ el.css('top', 0);
+ else
+ el.css('left', 0);
+
+ pinObj.pinStart = startPoint;
+ pinObj.pinEnd = endPoint;
+
+ if (pinObj.spacer)
+ pinObj.spacer.css('height', pinObj.dur + el.outerHeight());
+
+ if (pinObj.onPin)
+ pinObj.onPin();
+ }
+
+ // Check to see if object should be unpinned
+ } else {
+
+ if (currScrollPoint < pinObj.pinStart || currScrollPoint > pinObj.pinEnd) {
+ // unpin it
+ pinObj.state = currScrollPoint < pinObj.pinStart ? 'BEFORE' : 'AFTER';
+
+ // revert to original position value
+ el.css('position',pinObj.origPosition);
+ if (superscrollorama.settings.isVertical)
+ el.css('top', pinObj.origPositionVal);
+ else
+ el.css('left', pinObj.origPositionVal);
+
+ if (pinObj.spacer)
+ pinObj.spacer.css('height', currScrollPoint < pinObj.pinStart ? 0 : pinObj.dur);
+
+ if (pinObj.onUnpin)
+ pinObj.onUnpin();
+ }
+ else if (pinObj.anim) {
+ // do animation
+ pinObj.anim.progress((currScrollPoint - pinObj.pinStart)/(pinObj.pinEnd - pinObj.pinStart));
+ }
+ }
+ }
+ }
+
+ // PUBLIC FUNCTIONS
+ superscrollorama.addTween = function(target, tween, dur, offset) {
+
+ tween.pause();
+
+ animObjects.push({
+ target:target,
+ tween: tween,
+ offset: offset || 0,
+ dur: dur || 0,
+ state:'BEFORE'
+ });
+ };
+
+ superscrollorama.pin = function(el, dur, vars) {
+ if (typeof(el) === 'string') el = $(el);
+ if (vars.anim) vars.anim.pause();
+
+ // create wrapper for pinned elements that aren't absolute or fixed position
+ var pinSpacer = null;
+ if (el.css('position') === 'relative' || el.css('position') === 'static') {
+ pinSpacer = $('<div class="pin-spacer"></div>');
+ el.before(pinSpacer);
+ }
+
+ pinnedObjects.push({
+ el:el,
+ state:'BEFORE',
+ dur:dur,
+ offset: vars.offset || 0,
+ anim:vars.anim,
+ origPosition:el.css('position'),
+ spacer:pinSpacer,
+ onPin:vars.onPin,
+ onUnpin:vars.onUnpin
+ });
+ };
+
+
+ // INIT
+ init();
+
+ return superscrollorama;
+ };
+
+})(jQuery);
Please sign in to comment.
Something went wrong with that request. Please try again.