From be1f1021146026751c7a15f07bcd3eac6b36f84e Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Fri, 5 Jul 2024 15:03:08 -0400 Subject: [PATCH 1/4] Add .gitattributes to standardize line endings --- .gitattributes | 10 ++++++++++ arches/management/commands/updateproject.py | 5 +++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000000..7ff55d7bbd5 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,10 @@ +# Set the default behavior, in case people don't have core.autocrlf set. +* text=auto + +# Known binary formats +*.png binary +*.jpg binary +*.ico binary +*.gif binary +*.ttf binary +*.woff binary diff --git a/arches/management/commands/updateproject.py b/arches/management/commands/updateproject.py index 8b34bc42c25..e1ca339c919 100644 --- a/arches/management/commands/updateproject.py +++ b/arches/management/commands/updateproject.py @@ -18,8 +18,8 @@ def handle(self, *args, **options): answer = input( "This will replace the following files in your project:\n" ".babelrc, eslintrc.js, .eslintignore, .browserslistrc, .stylelintrc.json,\n" - ".yarnrc, .gitignore, nodemon.json, .prettierrc, .pre-commit-config.yaml,\n" - "tsconfig.json, and the entire webpack directory.\n\n" + ".yarnrc, .gitattributes, .gitignore, nodemon.json, .prettierrc,\n" + ".pre-commit-config.yaml, tsconfig.json, and the entire webpack directory.\n\n" "Continue? " ) @@ -122,6 +122,7 @@ def update_to_v7_6(self): "nodemon.json", "tsconfig.json", ".coveragerc", + ".gitattributes", ".gitignore", ".babelrc", ".browserslistrc", From 9f233f70299bf8533394d98eb1d4dd9e30e25221 Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Fri, 5 Jul 2024 15:36:47 -0400 Subject: [PATCH 2/4] Add github action to check line endings --- .github/workflows/main.yml | 4 ++++ arches/install/arches-templates/.github/workflows/main.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 42874ce1fab..fce78e46b63 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -67,6 +67,10 @@ jobs: run: | black . --check --exclude=node_modules + - name: Check line endings + run: | + ! git ls-files --eol | grep 'w/crlf\|w/mixed' + - name: Run frontend tests run: | npm run vitest diff --git a/arches/install/arches-templates/.github/workflows/main.yml b/arches/install/arches-templates/.github/workflows/main.yml index 42874ce1fab..fce78e46b63 100644 --- a/arches/install/arches-templates/.github/workflows/main.yml +++ b/arches/install/arches-templates/.github/workflows/main.yml @@ -67,6 +67,10 @@ jobs: run: | black . --check --exclude=node_modules + - name: Check line endings + run: | + ! git ls-files --eol | grep 'w/crlf\|w/mixed' + - name: Run frontend tests run: | npm run vitest From 3fe93f1e11e517e06884c7a10591fa99074cb0fe Mon Sep 17 00:00:00 2001 From: fargeo-admin Date: Fri, 5 Jul 2024 15:24:51 -0400 Subject: [PATCH 3/4] Normalize line endings --- .eggs/README.txt | 6 - MANIFEST.in | 56 +- arches/app/media/css/app.css | 5544 +++---- arches/app/media/css/page_404_error3.css | 96 +- arches/app/media/css/page_job_inner.css | 466 +- .../media/css/plugins/custom-sky-forms.css | 642 +- .../hover-effect/css/custom-hover-effects.css | 148 +- arches/app/media/js/views/concept-search.js | 120 +- .../js/views/rdm/modals/manage-parent-form.js | 150 +- .../views/rdm/modals/related-concept-form.js | 68 +- .../media/plugins/cube-portfolio-lightbox.js | 390 +- .../cubeportfolio/js/jquery.cubeportfolio.js | 44 +- .../cube-portfolio/documentation/css/main.css | 390 +- .../documentation/css/prettify.css | 280 +- .../documentation/css/reset.css | 108 +- .../cube-portfolio/documentation/js/main.js | 172 +- .../documentation/js/prettify.js | 66 +- arches/app/media/plugins/revolution-slider.js | 50 +- .../rs-plugin/css/settings-ie8.css | 1628 +- .../rs-plugin/css/settings.css | 4870 +++--- .../rs-plugin/font/revicons.svg | 106 +- .../js/jquery.themepunch.revolution.js | 12534 ++++++++-------- .../js/jquery.themepunch.revolution.min.js | 16 +- .../js/jquery.themepunch.tools.min.js | 284 +- .../rs-plugin/js/jquery2.2.3/jquery.min.js | 8 +- arches/app/models/concept.py | 3456 ++--- ..._view_dbf_function_edtf_displaying_null.py | 294 +- ...ial_view_dbf_function_table_alias_error.py | 948 +- .../app/search/elasticsearch_dsl_builder.py | 1400 +- arches/app/search/search_engine_factory.py | 94 +- arches/app/templates/rdm.htm | 344 +- .../components/search/provisional-filter.htm | 32 +- .../search/resource-type-filter.htm | 36 +- .../templates/views/rdm/concept-report.htm | 724 +- .../templates/views/rdm/entitytype-report.htm | 408 +- .../views/rdm/modals/related-concept-form.htm | 144 +- .../views/rdm/modals/related-member-form.htm | 142 +- arches/app/utils/__init__.py | 16 +- arches/app/utils/response.py | 152 +- arches/app/utils/skos.py | 1296 +- arches/app/views/concept.py | 1308 +- arches/app/views/main.py | 196 +- arches/install/arches-templates/README.txt | 14 +- arches/install/arches-templates/manage.py-tpl | 60 +- .../arches-templates/project_name/urls.py-tpl | 32 +- .../arches-templates/project_name/wsgi.py-tpl | 72 +- .../management/commands/build_production.py | 94 +- arches/management/commands/utils.py | 150 +- arches/version.py | 76 +- arches/wsgi.py | 78 +- manage.py | 54 +- tests/fixtures/PERSON.E1_edges.csv | 34 +- tests/fixtures/PERSON.E1_nodes.csv | 36 +- .../data/csv/resource_export_test.csv | 4 +- .../cidoc_crm/CRMdig_v3.2.1.rdfs.xml | 1242 +- .../ontologies/cidoc_crm/CRMgeo_v1.2.rdfs.xml | 978 +- .../ontologies/cidoc_crm/CRMinf_v0.7.rdfs.xml | 376 +- .../ontologies/cidoc_crm/cidoc_crm_v6.2.xml | 10696 ++++++------- .../test_ontology/cidoc_crm_v6.2.test.xml | 10760 ++++++------- ...esting_Model_2019-08-14_15-40-24.relations | 24 +- .../cidoc_crm/CRMdig_v3.2.1.rdfs.xml | 1242 +- .../ontologies/cidoc_crm/CRMgeo_v1.2.rdfs.xml | 978 +- .../ontologies/cidoc_crm/CRMinf_v0.7.rdfs.xml | 376 +- .../ontologies/cidoc_crm/cidoc_crm_v6.2.xml | 10696 ++++++------- 64 files changed, 38649 insertions(+), 38655 deletions(-) delete mode 100644 .eggs/README.txt diff --git a/.eggs/README.txt b/.eggs/README.txt deleted file mode 100644 index 5d01668824f..00000000000 --- a/.eggs/README.txt +++ /dev/null @@ -1,6 +0,0 @@ -This directory contains eggs that were downloaded by setuptools to build, test, and run plug-ins. - -This directory caches those eggs to prevent repeated downloads. - -However, it is safe to delete this directory. - diff --git a/MANIFEST.in b/MANIFEST.in index 5cfeae97004..7dfbb8fa4c1 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,28 +1,28 @@ -recursive-include arches * -include README.md -exclude Dockerfile -exclude manage.py -exclude arches/logs/*.txt -exclude arches/settings_local.py -exclude .* -exclude *.yml -recursive-exclude .eggs * -recursive-exclude .github * -recursive-exclude .idea * -recursive-exclude contributing * -recursive-exclude cypress * -recursive-exclude docker * -recursive-exclude node_modules * -recursive-exclude releases * -recursive-exclude tests * -recursive-exclude docs * -recursive-exclude virtualenv * -recursive-exclude webpack * -recursive-exclude arches/uploadedfiles * -recursive-exclude arches/staticfiles * -recursive-exclude arches/app/media/build * -global-exclude *.log -global-exclude *.pyc -global-exclude *.zip -global-exclude *.DS_Store -global-exclude *.orig +recursive-include arches * +include README.md +exclude Dockerfile +exclude manage.py +exclude arches/logs/*.txt +exclude arches/settings_local.py +exclude .* +exclude *.yml +recursive-exclude .eggs * +recursive-exclude .github * +recursive-exclude .idea * +recursive-exclude contributing * +recursive-exclude cypress * +recursive-exclude docker * +recursive-exclude node_modules * +recursive-exclude releases * +recursive-exclude tests * +recursive-exclude docs * +recursive-exclude virtualenv * +recursive-exclude webpack * +recursive-exclude arches/uploadedfiles * +recursive-exclude arches/staticfiles * +recursive-exclude arches/app/media/build * +global-exclude *.log +global-exclude *.pyc +global-exclude *.zip +global-exclude *.DS_Store +global-exclude *.orig diff --git a/arches/app/media/css/app.css b/arches/app/media/css/app.css index 7f6f09fab1b..49d454312e9 100755 --- a/arches/app/media/css/app.css +++ b/arches/app/media/css/app.css @@ -1,2772 +1,2772 @@ -/* - * Template Name: Unify - Responsive Bootstrap Template - * Description: Business, Corporate, Portfolio and Blog Theme. - * Version: 1.4 - * Author: @htmlstream - * Website: http://htmlstream.com -*/ - -/*Import Google Font*/ -@import url(//fonts.googleapis.com/css?family=Open+Sans:300,400); - -/*Reset Styles -------------------------------------*/ -* { - border-radius: 0; -} - -body { - color: #333; - font-size: 13px; - line-height: 1.6; -} - -p, -li, -li a { - color: #555; -} - -a { - color: #72c02c; - text-decoration: none; -} - -a, -a:focus, -a:hover, -a:active { - outline: 0 !important; -} -a:focus { - text-decoration: none; -} -a:hover { - color: #72c02c; - text-decoration: underline; -} - -hr { - margin: 30px 0; -} - -/*Headings*/ -h1 { - font-size: 28px; - line-height: 35px; -} -h2 { - font-size: 24px; - line-height: 33px; -} -h3 { - font-size: 20px; - line-height: 27px; -} -h4 { - line-height: 25px; -} -h5 { - line-height: 20px; -} -h6 { - line-height: 18px; -} - -h1, h2, h3, h4, h5, h6 { - color: #585f69; - margin-top: 5px; - text-shadow: none; - font-weight: normal; - font-family: 'Open Sans', sans-serif; -} - -h1 i, h2 i, h3 i, h4 i, h5 i, h6 i { - margin-right: 5px; -} - -/*Block Headline*/ -.headline { - display: block; - margin: 10px 0 25px 0; - border-bottom: 1px dotted #e4e9f0; -} - -.headline h2 { - font-size: 22px; -} - -.headline h2, -.headline h3, -.headline h4 { - margin: 0 0 -2px 0; - padding-bottom: 5px; - display: inline-block; - border-bottom: 2px solid #72c02c; -} - -.headline-md { - margin-bottom: 15px; -} - -.headline-md h2 { - font-size: 21px; -} - -/*Heading Options*/ -.heading { - text-align: center; -} - -.heading h2 { - padding: 0 12px; - position: relative; - display: inline-block; - line-height: 34px !important; /*For Tagline Boxes*/ -} - -.heading h2:before, -.heading h2:after { - content: ' '; - width: 70%; - position: absolute; - border-width: 1px; - border-color: #bbb; -} - -.heading h2:before { - right: 100%; -} - -.heading h2:after { - left: 100%; -} - -@media (max-width: 768px) { - .heading h2:before, - .heading h2:after { - width: 35%; - } -} - -@media (max-width: 600px) { - .heading h2 { - font-size: 19px; - } - - .heading h2:before, - .heading h2:after { - width: 15%; - } -} - -/*Headline v1*/ -.heading-v1 h2:before, -.heading-v1 h2:after { - top: 15px; - height: 6px; - border-top-style: solid; - border-bottom-style: solid; -} - -/*Headline v2*/ -.heading-v2 h2:before, -.heading-v2 h2:after { - top: 15px; - height: 6px; - border-top-style: dashed; - border-bottom-style: dashed; -} - -/*Headline v3*/ -.heading-v3 h2:before, -.heading-v3 h2:after { - top: 15px; - height: 6px; - border-top-style: dotted; - border-bottom-style: dotted; -} - -/*Headline v4*/ -.heading-v4 h2:before, -.heading-v4 h2:after { - top: 17px; - border-bottom-style: solid; -} - -/*Headline v5*/ -.heading-v5 h2:before, -.heading-v5 h2:after { - top: 17px; - border-bottom-style: dashed; -} - -/*Headline v6*/ -.heading-v6 h2:before, -.heading-v6 h2:after { - top: 17px; - border-bottom-style: dotted; -} - -/*Heading Sizes*/ -h2.heading-md { - font-size: 20px; - line-height: 24px; -} - -h2.heading-sm, -h3.heading-md { - font-size: 18px; - line-height: 24px; -} - -h3.heading-md { - line-height: 22px; -} - -h3.heading-sm { - font-size: 16px; - line-height: 20px; -} - -h3.heading-xs { - font-size: 14px; - margin-bottom: 0; -} - -/*Deviders*/ -.devider.devider-dotted { - border-top: 2px dotted #eee; -} -.devider.devider-dashed { - border-top: 2px dashed #eee; -} - -.devider.devider-db { - height: 5px; - border-top: 1px solid #eee; - border-bottom: 1px solid #eee; -} -.devider.devider-db-dashed { - height: 5px; - border-top: 1px dashed #ddd; - border-bottom: 1px dashed #ddd; -} -.devider.devider-db-dotted { - height: 5px; - border-top: 1px dotted #ddd; - border-bottom: 1px dotted #ddd; -} - -/*Tables -------------------------------------*/ -/*Basic Tables*/ -.table thead > tr > th { - border-bottom: none; -} - -@media (max-width: 768px) { - .table th.hidden-sm, - .table td.hidden-sm { - display: none !important; - } -} - -/*Forms -------------------------------------*/ -.form-control { - box-shadow: none; -} - -.form-control:focus { - border-color: #bbb; - box-shadow: 0 0 2px #c9c9c9; -} - -/*Form Spacing*/ -.form-spacing .form-control { - margin-bottom: 15px; -} - -/*Form Icons*/ -.input-group-addon { - color: #b3b3b3; - font-size: 14px; - background: #fff; -} - -/*Carousel -------------------------------------*/ -/*carousel-v1*/ -.carousel-v1 .carousel-caption { - left: 0; - right: 0; - bottom: 0; - padding: 7px 15px; - background: rgba(0, 0, 0, 0.7); -} - -.carousel-v1 .carousel-caption p { - color: #fff; - margin-bottom: 0; -} - -.carousel-v1 .carousel-arrow a.carousel-control { - opacity: 1; - font-size:30px; - height:inherit; - width: inherit; - background: none; - text-shadow: none; - position: inherit; -} - -.carousel-v1 .carousel-arrow a i { - top: 50%; - opacity: 0.6; - background: #000; - margin-top: -18px; - padding: 2px 12px; - position: absolute; -} -.carousel-v1 .carousel-arrow a i:hover { - opacity: 0.8; -} - -.carousel-v1 .carousel-arrow a.left i { - left: 0; -} -.carousel-v1 .carousel-arrow a.right i { - right: 0; -} - -/*Tabs -------------------------------------*/ -/*Tabs v1*/ -.tab-v1 .nav-tabs { - border: none; - background: none; - border-bottom: solid 2px #72c02c; -} - -.tab-v1 .nav-tabs a { - font-size: 14px; - padding: 5px 15px; -} - -.tab-v1 .nav-tabs > .active > a, -.tab-v1 .nav-tabs > .active > a:hover, -.tab-v1 .nav-tabs > .active > a:focus { - color: #fff; - border: none; - background: #72c02c; -} - -.tab-v1 .nav-tabs > li > a { - border: none; -} -.tab-v1 .nav-tabs > li > a:hover { - color: #fff; - background: #72c02c; -} - -.tab-v1 .tab-content { - padding: 10px 0; -} - -.tab-v1 .tab-content img { - margin-top: 4px; - margin-bottom: 15px; -} - -.tab-v1 .tab-content img.img-tab-space { - margin-top: 7px; -} - -/*Tabs v2*/ -.tab-v2 .nav-tabs { - border-bottom: none; -} - -.tab-v2 .nav-tabs li a { - padding: 9px 16px; - background: none; - border: none; -} - -.tab-v2 .nav-tabs li.active a { - background: #fff; - padding: 7px 15px 9px; - border: solid 1px #eee; - border-top: solid 2px #72c02c; - border-bottom: none !important; -} - -.tab-v2 .tab-content { - padding: 10px 16px; - border: solid 1px #eee; -} - -/*Tabs v3*/ -.tab-v3 .nav-pills li a { - color: #777; - font-size: 17px; - padding: 4px 8px; - margin-bottom: 3px; - background: #fafafa; - border: solid 1px #eee; -} - -.tab-v3 .nav-pills li a:hover, -.tab-v3 .nav-pills li.active a { - color: #fff; - background: #72c02c; - border: solid 1px #68af28; -} - -.tab-v3 .nav-pills li i { - width: 1.25em; - margin-right: 5px; - text-align: center; - display: inline-block; -} - -.tab-v3 .tab-content { - padding: 15px; - background: #fafafa; - border: solid 1px #eee; -} - -/*Accordions -------------------------------------*/ -/*Accordion v1*/ -.acc-v1 .panel-heading { - padding: 0; - box-shadow: none; -} - -.acc-v1 .panel-heading a { - display: block; - font-size: 14px; - padding: 5px 15px; - background: #fefefe; -} - -.acc-icon a.accordion-toggle i { - color: #585f69; - margin-right: 8px; -} -.acc-icon a.accordion-toggle:hover i { - color: #39414c; -} - -/*Navigation -------------------------------------*/ -/*Pegination*/ -.pagination li a { - color: #777; - padding: 5px 15px; -} - -.pagination li a:hover { - color: #fff; - background: #5fb611; - border-color: #5fb611; -} - -.pagination > .active > a, -.pagination > .active > span, -.pagination > .active > a:hover, -.pagination > .active > span:hover, -.pagination > .active > a:focus, -.pagination > .active > span:focus { - border-color: #72c02c; - background-color: #72c02c; -} - -/*Pagination Without Space*/ -.pagination-no-space .pagination { - margin: 0; -} - -/*Pager*/ -.pager li > a:hover, -.pager li > a:focus { - color: #fff; - background: #5fb611; - border-color: #5fb611; -} - -/*Sidebar Menu -------------------------------------*/ -/*Sidebar Menu v1*/ -.sidebar-nav-v1 li { - padding: 0; -} - -.sidebar-nav-v1 li a { - display: block; - padding: 8px 30px 8px 10px; -} - -.sidebar-nav-v1 li a:hover { - text-decoration: none; -} - -.sidebar-nav-v1 > li.active, -.sidebar-nav-v1 > li.active:hover { - background: #717984; -} - -.sidebar-nav-v1 > li.active > a { - color: #fff; -} - -/*Sidebar Sub Navigation*/ -.sidebar-nav-v1 li ul { - padding: 0; - list-style: none; -} - -.sidebar-nav-v1 li ul, -.sidebar-nav-v1 li.active ul a { - background: #f8f8f8; -} - -.sidebar-nav-v1 li ul a { - color: #585f69; - font-size: 12px; - border-top: solid 1px #ddd; - padding: 6px 30px 6px 17px; -} - -.sidebar-nav-v1 ul li:hover a, -.sidebar-nav-v1 ul li.active a { - color: #72c02c; -} - -/*Sidebar Badges*/ -.list-group-item li > .badge { - float: right; -} - -.sidebar-nav-v1 span.badge { - margin-top: 8px; - margin-right: 10px; -} - -.sidebar-nav-v1 .list-toggle > span.badge { - margin-right: 25px; -} - -.sidebar-nav-v1 ul li span.badge { - margin-top: 8px; - font-size: 11px; - padding: 3px 5px; - margin-right: 10px; -} - -/*Sidebar List Toggle*/ -.list-toggle:after { - top: 7px; - right: 10px; - color: #777; - font-size: 14px; - content: "\f105"; - position: absolute; - font-weight: normal; - display: inline-block; - font-family: FontAwesome; -} - -.list-toggle.active:after { - color: #fff; - content: "\f107"; -} - -/* Make Font Awesome icons fixed width */ -.sidebar-nav-v1 li [class^="fa"], -.sidebar-nav-v1 li [class*=" fa"] { - width: 1.25em; - left: -2px; - margin-right: 2px; - text-align: center; - position: relative; - display: inline-block; -} -.sidebar-nav-v1 li [class^="fa"].fa-lg, -.sidebar-nav-v1 li [class*=" fa"].fa-lg { - /* increased font size for fa-lg */ - width: 1.5625em; -} - - -/*Button Styles -------------------------------------*/ -.btn { - box-shadow: none; -} - -.btn-u { - border: 0; - color: #fff; - font-size: 14px; - cursor: pointer; - font-weight: 400; - padding: 6px 13px; - position: relative; - background: #72c02c; - display: inline-block; - text-decoration: none; -} -.btn-u:hover { - color: #fff; - text-decoration: none; - -webkit-transition: all 0.3s ease-in-out; - -moz-transition: all 0.3s ease-in-out; - -o-transition: all 0.3s ease-in-out; - transition: all 0.3s ease-in-out; -} - -a.btn-u { - /*padding: 4px 13px;*/ - /*vertical-align: middle;*/ -} - -.btn-u-sm, -a.btn-u-sm { - padding: 3px 12px; -} - -.btn-u-lg, -a.btn-u-lg { - font-size: 18px; - padding: 10px 25px; -} - -.btn-u-xs, -a.btn-u-xs { - font-size: 12px; - padding: 2px 12px; - line-height: 18px; -} - -/*Button Groups*/ -.btn-group .dropdown-menu > li > a { - padding: 3px 13px; - display: flex; -} - -.btn-group > .btn-u, -.btn-group-vertical > .btn-u { - float: left; - position: relative; -} - -.btn-group > .btn-u:first-child { - margin-left: 0; -} - -/*For FF Only*/ -@-moz-document url-prefix() { - .footer-subsribe .btn-u { - padding-bottom: 4px; - } -} -@media (max-width: 768px) { - @-moz-document url-prefix() { - .btn-u { - padding-bottom: 6px; - } - } -} - -/*Buttons Color*/ -.btn-u:hover, -.btn-u:focus, -.btn-u:active, -.btn-u.active, -.open .dropdown-toggle.btn-u { - background: #5fb611; -} -.btn-u-split.dropdown-toggle { - border-left: solid 1px #5fb611; -} - -.btn-u.btn-u-blue { - background: #3498db; -} -.btn-u.btn-u-blue:hover, -.btn-u.btn-u-blue:focus, -.btn-u.btn-u-blue:active, -.btn-u.btn-u-blue.active, -.open .dropdown-toggle.btn-u.btn-u-blue { - background: #2980b9; -} -.btn-u.btn-u-split-blue.dropdown-toggle { - border-left: solid 1px #2980b9; -} - -.btn-u.btn-u-red { - background: #e74c3c; -} -.btn-u.btn-u-red:hover, -.btn-u.btn-u-red:focus, -.btn-u.btn-u-red:active, -.btn-u.btn-u-red.active, -.open .dropdown-toggle.btn-u.btn-u-red { - background: #c0392b; -} -.btn-u.btn-u-split-red.dropdown-toggle { - border-left: solid 1px #c0392b; -} - -.btn-u.btn-u-orange { - background: #e67e22; -} -.btn-u.btn-u-orange:hover, -.btn-u.btn-u-orange:focus, -.btn-u.btn-u-orange:active, -.btn-u.btn-u-orange.active, -.open .dropdown-toggle.btn-u.btn-u-orange { - background: #d35400; -} -.btn-u.btn-u-split-orange.dropdown-toggle { - border-left: solid 1px #d35400; -} - -.btn-u.btn-u-sea { - background: #1abc9c; -} -.btn-u.btn-u-sea:hover, -.btn-u.btn-u-sea:focus, -.btn-u.btn-u-sea:active, -.btn-u.btn-u-sea.active, -.open .dropdown-toggle.btn-u.btn-u-sea { - background: #16a085; -} -.btn-u.btn-u-split-sea.dropdown-toggle { - border-left: solid 1px #16a085; -} - -.btn-u.btn-u-green { - background: #2ecc71; -} -.btn-u.btn-u-green:hover, -.btn-u.btn-u-green:focus, -.btn-u.btn-u-green:active, -.btn-u.btn-u-green.active, -.open .dropdown-toggle.btn-u.btn-u-green { - background: #27ae60; -} -.btn-u.btn-u-split-green.dropdown-toggle { - border-left: solid 1px #27ae60; -} - -.btn-u.btn-u-yellow { - background: #f1c40f; -} -.btn-u.btn-u-yellow:hover, -.btn-u.btn-u-yellow:focus, -.btn-u.btn-u-yellow:active, -.btn-u.btn-u-yellow.active, -.open .dropdown-toggle.btn-u.btn-u-yellow { - background: #f39c12; -} -.btn-u.btn-u-split-yellow.dropdown-toggle { - border-left: solid 1px #f39c12; -} - -.btn-u.btn-u-default { - background: #95a5a6; -} -.btn-u.btn-u-default:hover, -.btn-u.btn-u-default:focus, -.btn-u.btn-u-default:active, -.btn-u.btn-u-default.active, -.open .dropdown-toggle.btn-u.btn-u-default { - background: #7f8c8d; -} -.btn-u.btn-u-split-default.dropdown-toggle { - border-left: solid 1px #7f8c8d; -} - -.btn-u.btn-u-purple { - background: #9b6bcc; -} -.btn-u.btn-u-purple:hover, -.btn-u.btn-u-purple:focus, -.btn-u.btn-u-purple:active, -.btn-u.btn-u-purple.active, -.open .dropdown-toggle.btn-u.btn-u-purple { - background: #814fb5; -} -.btn-u.btn-u-split-purple.dropdown-toggle { - border-left: solid 1px #814fb5; -} - -.btn-u.btn-u-aqua { - background: #27d7e7; -} -.btn-u.btn-u-aqua:hover, -.btn-u.btn-u-aqua:focus, -.btn-u.btn-u-aqua:active, -.btn-u.btn-u-aqua.active, -.open .dropdown-toggle.btn-u.btn-u-aqua { - background: #26bac8; -} -.btn-u.btn-u-split-aqua.dropdown-toggle { - border-left: solid 1px #26bac8; -} - -.btn-u.btn-u-brown { - background: #9c8061; -} -.btn-u.btn-u-brown:hover, -.btn-u.btn-u-brown:focus, -.btn-u.btn-u-brown:active, -.btn-u.btn-u-brown.active, -.open .dropdown-toggle.btn-u.btn-u-brown { - background: #81674b; -} -.btn-u.btn-u-split-brown.dropdown-toggle { - border-left: solid 1px #81674b; -} - -.btn-u.btn-u-dark-blue { - background: #4765a0; -} -.btn-u.btn-u-dark-blue:hover, -.btn-u.btn-u-dark-blue:focus, -.btn-u.btn-u-dark-blue:active, -.btn-u.btn-u-dark-blue.active, -.open .dropdown-toggle.btn-u.btn-u-dark-blue { - background: #324c80; -} -.btn-u.btn-u-split-dark.dropdown-toggle { - border-left: solid 1px #324c80; -} - -.btn-u.btn-u-light-green { - background: #79d5b3; -} -.btn-u.btn-u-light-green:hover, -.btn-u.btn-u-light-green:focus, -.btn-u.btn-u-light-green:active, -.btn-u.btn-u-light-green.active, -.open .dropdown-toggle.btn-u.btn-u-light-green { - background: #59b795; -} -.btn-u.btn-u-split-light-green.dropdown-toggle { - border-left: solid 1px #59b795; -} - -.btn-u.btn-u-dark { - background: #555; -} -.btn-u.btn-u-dark:hover, -.btn-u.btn-u-dark:focus, -.btn-u.btn-u-dark:active, -.btn-u.btn-u-dark.active, -.open .dropdown-toggle.btn-u.btn-u-dark { - background: #333; -} -.btn-u.btn-u-split-dark.dropdown-toggle { - border-left: solid 1px #333; -} - -.btn-u.btn-u-light-grey { - background: #585f69; -} -.btn-u.btn-u-light-grey:hover, -.btn-u.btn-u-light-grey:focus, -.btn-u.btn-u-light-grey:active, -.btn-u.btn-u-light-grey.active, -.open .dropdown-toggle.btn-u.btn-u-light-grey { - background: #484f58; -} -.btn-u.btn-u-split-light-grey.dropdown-toggle { - border-left: solid 1px #484f58; -} - -/*Bordered Buttons*/ -.btn-u.btn-brd { - color: #555; - font-weight: 200; - background: none; - border: solid 1px transparent; - -webkit-transition: all 0.1s ease-in-out; - -moz-transition: all 0.1s ease-in-out; - -o-transition: all 0.1s ease-in-out; - transition: all 0.1s ease-in-out; -} -.btn-u.btn-brd:hover { - background: none; - border: solid 1px #eee; -} -.btn-u.btn-brd:focus { - background: none; -} -.btn-u.btn-brd.btn-brd-hover:hover { - color: #fff !important; -} - -.btn-u.btn-brd { - border-color: #72c02c; -} -.btn-u.btn-brd:hover { - color: #5fb611; - border-color: #5fb611; -} -.btn-u.btn-brd.btn-brd-hover:hover { - background: #5fb611; -} - -.btn-u.btn-brd.btn-u-blue { - border-color: #3498db; -} -.btn-u.btn-brd.btn-u-blue:hover { - color: #2980b9; - border-color: #2980b9; -} -.btn-u.btn-brd.btn-u-blue.btn-brd-hover:hover { - background: #2980b9; -} - -.btn-u.btn-brd.btn-u-red { - border-color: #e74c3c; -} -.btn-u.btn-brd.btn-u-red:hover { - color: #c0392b; - border-color: #c0392b; -} -.btn-u.btn-brd.btn-u-red.btn-brd-hover:hover { - background: #c0392b; -} - -.btn-u.btn-brd.btn-u-orange { - border-color: #e67e22; -} -.btn-u.btn-brd.btn-u-orange:hover { - color: #d35400; - border-color: #d35400; -} -.btn-u.btn-brd.btn-u-orange.btn-brd-hover:hover { - background: #d35400; -} - -.btn-u.btn-brd.btn-u-sea { - border-color: #1abc9c; -} -.btn-u.btn-brd.btn-u-sea:hover { - color: #16a085; - border-color: #16a085; -} -.btn-u.btn-brd.btn-u-sea.btn-brd-hover:hover { - background: #16a085; -} - -.btn-u.btn-brd.btn-u-green { - border-color: #2ecc71; -} -.btn-u.btn-brd.btn-u-green:hover { - color: #27ae60; - border-color: #27ae60; -} -.btn-u.btn-brd.btn-u-green.btn-brd-hover:hover { - background: #27ae60; -} - -.btn-u.btn-brd.btn-u-yellow { - border-color: #f1c40f; -} -.btn-u.btn-brd.btn-u-yellow:hover { - color: #f39c12; - border-color: #f39c12; -} -.btn-u.btn-brd.btn-u-yellow.btn-brd-hover:hover { - background: #f39c12; -} - -.btn-u.btn-brd.btn-u-default { - border-color: #95a5a6; -} -.btn-u.btn-brd.btn-u-default:hover { - color: #7f8c8d; - border-color: #7f8c8d; -} -.btn-u.btn-brd.btn-u-default.btn-brd-hover:hover { - background: #7f8c8d; -} - -.btn-u.btn-brd.btn-u-dark { - border-color: #555; -} -.btn-u.btn-brd.btn-u-dark:hover { - color: #333; - border-color: #333; -} -.btn-u.btn-brd.btn-u-dark.btn-brd-hover:hover { - background: #333; -} - -.btn-u.btn-brd.btn-u-light-grey { - border-color: #585f69; -} -.btn-u.btn-brd.btn-u-light-grey:hover { - color: #484f58; - border-color: #484f58; -} -.btn-u.btn-brd.btn-u-light-grey.btn-brd-hover:hover { - background: #484f58; -} - -.btn-u.btn-brd.btn-u-purple { - border-color: #9b6bcc; -} -.btn-u.btn-brd.btn-u-purple:hover { - color: #814fb5; - border-color: #814fb5; -} -.btn-u.btn-brd.btn-u-purple.btn-brd-hover:hover { - background: #814fb5; -} - -.btn-u.btn-brd.btn-u-aqua { - border-color: #27d7e7; -} -.btn-u.btn-brd.btn-u-aqua:hover { - color: #26bac8; - border-color: #26bac8; -} -.btn-u.btn-brd.btn-u-aqua.btn-brd-hover:hover { - background: #26bac8; -} - -.btn-u.btn-brd.btn-u-brown { - border-color: #9c8061; -} -.btn-u.btn-brd.btn-u-brown:hover { - color: #81674b; - border-color: #81674b; -} -.btn-u.btn-brd.btn-u-brown.btn-brd-hover:hover { - background: #81674b; -} - -.btn-u.btn-brd.btn-u-dark-blue { - border-color: #4765a0; -} -.btn-u.btn-brd.btn-u-dark-blue:hover { - color: #324c80; - border-color: #324c80; -} -.btn-u.btn-brd.btn-u-dark-blue.btn-brd-hover:hover { - background: #324c80; -} - -.btn-u.btn-brd.btn-u-light-green { - border-color: #79d5b3; -} -.btn-u.btn-brd.btn-u-light-green:hover { - color: #59b795; - border-color: #59b795; -} -.btn-u.btn-brd.btn-u-light-green.btn-brd-hover:hover { - background: #59b795; -} - -.btn-u.btn-brd.btn-u-light { - color: #fff; - border-color: #fff; -} -.btn-u.btn-brd.btn-u-light:hover { - border-color: #fff; -} -.btn-u.btn-brd.btn-u-light.btn-brd-hover:hover { - background: #fff; - color: #555 !important; -} - -/*Badges and Labels -------------------------------------*/ -/*Labels*/ -span.label { - font-size: 11px; - font-weight: 400; - padding: 4px 7px; -} - -/*Badges*/ -span.badge { - font-weight: 400; - padding: 4px 7px; -} - -span.label-u, -span.badge-u { - background: #72c02c; -} - -span.label-blue, -span.badge-blue { - background: #3498db; -} - -span.label-red, -span.badge-red { - background: #e74c3c; -} - -span.label-green, -span.badge-green { - background: #2ecc71; -} - -span.label-sea, -span.badge-sea { - background: #1abc9c; -} - -span.label-orange, -span.badge-orange { - background: #e67e22; -} - -span.label-yellow, -span.badge-yellow { - background: #f1c40f; -} - -span.label-purple, -span.badge-purple { - background: #9b6bcc; -} - -span.label-aqua, -span.badge-aqua { - background: #27d7e7; -} - -span.label-brown, -span.badge-brown { - background: #9c8061; -} - -span.label-dark-blue, -span.badge-dark-blue { - background: #4765a0; -} - -span.label-light-green, -span.badge-light-green { - background: #79d5b3; -} - -span.label-light, -span.badge-light { - color: #777; - background: #ecf0f1; -} - -span.label-dark, -span.badge-dark { - background: #555; -} - -/*Badge Lists*/ -.badge-lists li { - position: relative; -} - -.badge-lists span.badge { - top: -10px; - right: -6px; - position: absolute; -} - -/*Badge Icons*/ -.badge-lists.badge-icons span.badge { - min-width: 12px; - padding: 3px 6px; - } - -.badge-lists.badge-icons i { - font-size: 18px; - min-width: 25px; -} - -/*Badge Box v1*/ -.badge-box-v1 a { - color: #777; - min-width: 40px; - font-size: 18px; - padding: 8px 9px; - display: inline-block; - border: solid 1px #eee; -} - -/*Badge Box v2*/ -.badge-box-v2 a { - color: #777; - font-size: 12px; - padding: 10px; - min-width: 70px; - text-align: center; - display: inline-block; - border: solid 1px #eee; -} - -.badge-box-v2 a i { - font-size: 20px; -} - -/*General Badge Box*/ -.badge-box-v1 a i, -.badge-box-v2 a i { - display: block; - margin: 1px auto 2px; -} - -.badge-box-v1 a:hover, -.badge-box-v2 a:hover { - color: #555; - border-color: #555; - text-decoration: none; - -webkit-transition: all 0.2s ease-in-out; - -moz-transition: all 0.2s ease-in-out; - -o-transition: all 0.2s ease-in-out; - transition: all 0.2s ease-in-out; -} - -/*Icons -------------------------------------*/ -/*Social Icons*/ -.social-icons { - margin: 0; - padding: 0; -} - -.social-icons li { - list-style: none; - margin-right: 3px; - margin-bottom: 5px; - text-indent: -9999px; - display: inline-block; -} - -.social-icons li a, a.social-icon { - width: 28px; - height: 28px; - display: block; - background-position: 0 0; - background-repeat: no-repeat; - transition: all 0.3s ease-in-out; - -o-transition: all 0.3s ease-in-out; - -ms-transition: all 0.3s ease-in-out; - -moz-transition: all 0.3s ease-in-out; - -webkit-transition: all 0.3s ease-in-out; -} - -.social-icons li:hover a { - background-position: 0 -38px; -} - -.social-icons-color li a { - opacity: 0.7; - background-position: 0 -38px !important; - -webkit-backface-visibility: hidden; /*For Chrome*/ -} - -.social-icons-color li a:hover { - opacity: 1; -} - -.social_amazon {background: url(../img/icons/social/amazon.png) no-repeat;} -.social_behance {background: url(../img/icons/social/behance.png) no-repeat;} -.social_blogger {background: url(../img/icons/social/blogger.png) no-repeat;} -.social_deviantart {background: url(../img/icons/social/deviantart.png) no-repeat;} -.social_dribbble {background: url(../img/icons/social/dribbble.png) no-repeat;} -.social_dropbox {background: url(../img/icons/social/dropbox.png) no-repeat;} -.social_evernote {background: url(../img/icons/social/evernote.png) no-repeat;} -.social_facebook {background: url(../img/icons/social/facebook.png) no-repeat;} -.social_forrst {background: url(../img/icons/social/forrst.png) no-repeat;} -.social_github {background: url(../img/icons/social/github.png) no-repeat;} -.social_googleplus {background: url(../img/icons/social/googleplus.png) no-repeat;} -.social_jolicloud {background: url(../img/icons/social/jolicloud.png) no-repeat;} -.social_last-fm {background: url(../img/icons/social/last-fm.png) no-repeat;} -.social_linkedin {background: url(../img/icons/social/linkedin.png) no-repeat;} -.social_picasa {background: url(../img/icons/social/picasa.png) no-repeat;} -.social_pintrest {background: url(../img/icons/social/pintrest.png) no-repeat;} -.social_rss {background: url(../img/icons/social/rss.png) no-repeat;} -.social_skype {background: url(../img/icons/social/skype.png) no-repeat;} -.social_spotify {background: url(../img/icons/social/spotify.png) no-repeat;} -.social_stumbleupon {background: url(../img/icons/social/stumbleupon.png) no-repeat;} -.social_tumblr {background: url(../img/icons/social/tumblr.png) no-repeat;} -.social_twitter {background: url(../img/icons/social/twitter.png) no-repeat;} -.social_vimeo {background: url(../img/icons/social/vimeo.png) no-repeat;} -.social_wordpress {background: url(../img/icons/social/wordpress.png) no-repeat;} -.social_xing {background: url(../img/icons/social/xing.png) no-repeat;} -.social_yahoo {background: url(../img/icons/social/yahoo.png) no-repeat;} -.social_youtube {background: url(../img/icons/social/youtube.png) no-repeat;} -.social_vk {background: url(../img/icons/social/vk.png) no-repeat;} - -/*Font Awesome Icon Styles*/ -i.icon-custom { - color: #555; - width: 40px; - height: 40px; - font-size: 20px; - line-height: 40px; - margin-bottom: 5px; - text-align: center; - display: inline-block; - border: solid 1px #555; -} - -i.icon-sm { - width: 35px; - height: 35px; - font-size: 16px; - line-height: 35px; -} - -i.icon-lg { - width: 60px; - height: 60px; - font-size: 31px; - line-height: 60px; - margin-bottom: 10px; -} - -i.icon-2x { - font-size: 30px; -} -i.icon-3x { - font-size: 40px; -} -i.icon-4x { - font-size: 50px; -} - -/*Line Icons*/ -i.icon-line { - font-size: 17px; -} -i.icon-sm.icon-line { - font-size: 14px; -} -i.icon-lg.icon-line { - font-size: 28px; -} - -i.icon-2x.icon-line { - font-size: 27px; -} -i.icon-3x.icon-line { - font-size: 36px; -} -i.icon-4x.icon-line { - font-size: 47px; -} - -/*Icon Styles For Links*/ -.link-icon, -.link-bg-icon { - color: #555; -} - -.link-icon:hover, -.link-bg-icon:hover { - border: none; - text-decoration: none; -} - -.link-icon:hover i { - color: #72c02c; - background: none; - border: solid 1px #72c02c; -} - -.link-bg-icon:hover i { - color: #72c02c; - background: #72c02c; - border-color: #72c02c; - color: #fff !important; -} - -/*Icons Color*/ -i.icon-color-u, -i.icon-color-red, -i.icon-color-sea, -i.icon-color-dark, -i.icon-color-grey, -i.icon-color-blue, -i.icon-color-green, -i.icon-color-yellow, -i.icon-color-orange, -i.icon-color-purple, -i.icon-color-aqua, -i.icon-color-brown, -i.icon-color-dark-blue, -i.icon-color-light-grey, -i.icon-color-light-green, { - background: none; -} - -i.icon-color-u { - color: #72c02c; - border: solid 1px #72c02c; -} -i.icon-color-blue { - color: #3498db; - border: solid 1px #3498db; -} -i.icon-color-red { - color: #e74c3c; - border: solid 1px #e74c3c; -} -i.icon-color-sea { - color: #1abc9c; - border: solid 1px #1abc9c; -} -i.icon-color-green { - color: #2ecc71; - border: solid 1px #2ecc71; -} -i.icon-color-yellow { - color: #f1c40f; - border: solid 1px #f1c40f; -} -i.icon-color-orange { - color: #e67e22; - border: solid 1px #e67e22; -} -i.icon-color-grey { - color: #95a5a6; - border: solid 1px #95a5a6; -} -i.icon-color-purple { - color: #9b6bcc; - border: solid 1px #9b6bcc; -} -i.icon-color-aqua { - color: #27d7e7; - border: solid 1px #27d7e7; -} -i.icon-color-brown { - color: #9c8061; - border: solid 1px #9c8061; -} -i.icon-color-dark-blue { - color: #4765a0; - border: solid 1px #4765a0; -} -i.icon-color-light-green { - color: #79d5b3; - border: solid 1px #79d5b3; -} -i.icon-color-light { - color: #fff; - border: solid 1px #fff; -} -i.icon-color-light-grey { - color: #585f69; - border: solid 1px #585f69; -} - -/*Icons Backgroun Color*/ -i.icon-bg-u, -i.icon-bg-red, -i.icon-bg-sea, -i.icon-bg-dark, -i.icon-bg-grey, -i.icon-bg-blue, -i.icon-bg-green, -i.icon-bg-yellow, -i.icon-bg-orange, -i.icon-bg-purple, -i.icon-bg-aqua, -i.icon-bg-brown, -i.icon-bg-dark-blue, -i.icon-bg-light-grey, -i.icon-bg-light-green { - color: #fff; - border-color: transparent; -} - -i.icon-bg-u { - background: #72c02c; -} -i.icon-bg-blue { - background: #3498db; -} -i.icon-bg-red { - background: #e74c3c; -} -i.icon-bg-sea { - background: #1abc9c; -} -i.icon-bg-green { - background: #2ecc71; -} -i.icon-bg-yellow { - background: #f1c40f; -} -i.icon-bg-orange { - background: #e67e22; -} -i.icon-bg-grey { - background: #95a5a6; -} -i.icon-bg-dark { - background: #555; -} -i.icon-bg-purple { - background: #9b6bcc; -} -i.icon-bg-aqua { - background: #27d7e7; -} -i.icon-bg-brown { - background: #9c8061; -} -i.icon-bg-dark-blue { - background: #4765a0; -} -i.icon-bg-light-green { - background: #79d5b3; -} -i.icon-bg-light { - background: #fff; - border-color: transparent; -} -i.icon-bg-light-grey { - background: #585f69; - border-color: transparent; -} - -/* Make Font Awesome icons fixed width */ -.fa-fixed [class^="fa"], -.fa-fixed [class*=" fa"] { - width: 1.25em; - text-align: center; - display: inline-block; -} -.fa-fixed [class^="fa"].fa-lg, -.fa-fixed [class*=" fa"].fa-lg { - /* increased font size for fa-lg */ - width: 1.5625em; -} - -/*Content Boxes -------------------------------------*/ -/*Content Boxes v1*/ -.content-boxes-v1 { - text-align: center; -} - -.content-boxes-v1 span { - display: block; - margin-top: 5px; -} - -/*Content Boxes v2*/ -@media (max-width: 992px) { - .content-boxes-v2, - .content-boxes-v2 .text-justify { - text-align: center; - } - - .content-boxes-v2 span { - display: block; - margin-top: 5px; - } -} - -/*Content Boxes v3*/ -.content-boxes-v3 { - margin-bottom: 15px; -} - -.content-boxes-v3 i { - top: 8px; - float: left; - position: relative; -} - -.content-boxes-v3 .content-boxes-in-v3 { - padding: 0 10px; - overflow: hidden; -} - -.content-boxes-v3 .content-boxes-in-v3 h3 { - font-size: 18px; - line-height: 22px; - margin-bottom: 3px; - text-transform: capitalize; -} - -.content-boxes-v3 .content-boxes-in-v3 h3 a { - color: #555; -} - -/*Colored Content Boxes -------------------------------------*/ -.servive-block { - padding: 30px 30px; - text-align: center; - margin-bottom: 20px; - min-height: 200px; -} - -.servive-block p, -.servive-block h2 { - color: #fff; -} - -.servive-block h2 a:hover{ - text-decoration: none; -} - -.servive-block-light, -.servive-block-default { - background: #fafafa; - border: solid 1px #eee; -} - -.servive-block-default:hover { - box-shadow: 0 0 8px #eee; -} - -.servive-block-light p, -.servive-block-light h2, -.servive-block-default p, -.servive-block-default h2 { - color: #555; -} - -.servive-block-u { - background: #72c02c; -} -.servive-block-blue { - background: #3498db; -} -.servive-block-red { - background: #e74c3c; -} -.servive-block-sea { - background: #1abc9c; -} -.servive-block-grey { - background: #95a5a6; -} -.servive-block-yellow { - background: #f1c40f; -} -.servive-block-orange { - background: #e67e22; -} -.servive-block-green { - background: #2ecc71; -} -.servive-block-purple { - background: #9b6bcc; -} -.servive-block-aqua { - background: #27d7e7; -} -.servive-block-brown { - background: #9c8061; -} -.servive-block-dark-blue { - background: #4765a0; -} -.servive-block-light-green { - background: #79d5b3; -} -.servive-block-dark { - background: #555; -} -.servive-block-light { - background: #ecf0f1; -} - -/*Funny Boxes -------------------------------------*/ -.funny-boxes { - overflow: hidden; - padding: 15px 20px; - margin-bottom: 25px; - background: #f7f7f7; - -webkit-transition:all 0.3s ease-in-out; - -moz-transition:all 0.3s ease-in-out; - -o-transition:all 0.3s ease-in-out; - transition:all 0.3s ease-in-out; -} - -.funny-boxes h2 a { - color: #555; -} - -.funny-boxes p a { - color: #72c02c; -} - -.funny-boxes .funny-boxes-img li i { - color: #72c02c; - font-size: 12px; - margin-right: 5px; -} - -.funny-boxes .funny-boxes-img img { - display: block; - margin: 5px 10px 10px 0; -} - -.funny-boxes h2 { - margin-top: 0; - font-size: 20px; - line-height: 20px; -} - -.funny-boxes ul.funny-boxes-rating li { - display: inline; -} - -.funny-boxes ul.funny-boxes-rating li i { - color: #f8be2c; - cursor: pointer; - font-size: 16px; -} - -.funny-boxes ul.funny-boxes-rating li i:hover { - color: #f8be2c; -} - -/*Funny Colored Boxes*/ -.funny-boxes-colored p, -.funny-boxes-colored h2 a, -.funny-boxes-colored .funny-boxes-img li, -.funny-boxes-colored .funny-boxes-img li i { - color: #fff !important; -} - -/*Red Funny Box*/ -.funny-boxes-red { - background: #e74c3c; -} - -/*Blue Funny Box*/ -.funny-boxes-blue { - background: #3498db; -} - -/*Grey Funny Box*/ -.funny-boxes-grey { - background: #95a5a6; -} - -/*Turquoise Funny Box*/ -.funny-boxes-sea { - background: #1abc9c; -} - -/*Turquoise Top Bordered Funny Box*/ -.funny-boxes-top-sea { - border-top: solid 2px #1abc9c; -} - -.funny-boxes-top-sea:hover { - border-top-color: #16a085; -} - -/*Yellow Top Bordered Funny Box**/ -.funny-boxes-top-yellow { - border-top: solid 2px #f1c40f; -} - -.funny-boxes-top-yellow:hover { - border-top-color: #f39c12; -} - -/*Orange Left Bordered Funny Box**/ -.funny-boxes-left-orange { - border-left: solid 2px #e67e22; -} - -.funny-boxes-left-orange:hover { - border-left-color: #d35400; -} - -/*Green Left Bordered Funny Box**/ -.funny-boxes-left-green { - border-left: solid 2px #72c02c; -} - -.funny-boxes-left-green:hover { - border-left-color: #5fb611; -} - -/*Green Right Bordered Funny Box**/ -.funny-boxes-right-u { - border-right: solid 2px #72c02c; -} - -.funny-boxes-right-u:hover { - border-right-color: #5fb611; -} - -/*Typography -------------------------------------*/ -/*Text Dropcap*/ -.dropcap { - float: left; - color: #72c02c; - padding: 5px 0; - font-size: 45px; - font-weight: 200; - line-height: 30px; - margin: 0px 5px 0 0; -} - -.dropcap-bg { - float: left; - color: #fff; - padding: 7px 0; - min-width: 50px; - font-size: 35px; - font-weight: 200; - line-height: 35px; - text-align: center; - background: #72c02c; - margin: 4px 10px 0 0; -} - -/*Text Highlights*/ -.text-highlights { - color: #fff; - font-weight: 200; - padding: 0px 5px; - background: #555; -} - -.text-highlights-green { - background: #72c02c; -} -.text-highlights-blue { - background: #3498db; -} -.text-highlights-red { - background: #e74c3c; -} -.text-highlights-sea { - background: #1abc9c; -} -.text-highlights-orange { - background: #e67e22; -} -.text-highlights-yellow { - background: #f1c40f; -} -.text-highlights-purple { - background: #9b6bcc; -} -.text-highlights-aqua { - background: #27d7e7; -} -.text-highlights-brown { - background: #9c8061; -} -.text-highlights-dark-blue { - background: #4765a0; -} -.text-highlights-light-green { - background: #79d5b3; -} - -/*Text Borders*/ -.text-border { - border-bottom: dashed 1px #555; -} - -.text-border-default { - border-color: #95a5a6; -} -.text-border-green { - border-color: #72c02c; -} -.text-border-blue { - border-color: #3498db; -} -.text-border-red { - border-color: #e74c3c; -} -.text-border-yellow { - border-color: #f1c40f; -} -.text-border-purple { - border-color: #9b6bcc; -} - -/*List Styles*/ -.list-styles li { - margin-bottom: 8px; -} - -/*Tooltip*/ -.tooltips-show { - position: relative; -} - -/*Contextual Backgrounds*/ -.contex-bg p { - opacity: 0.8; - padding: 8px 10px; -} -.contex-bg p:hover { - opacity: 1; -} - -/*Blockquote*/ -blockquote { - padding: 5px 15px; - border-left-width: 2px; -} - -blockquote p { - font-size: 14px; - font-weight: 400; -} - -blockquote h1, -blockquote h2, -blockquote span { - font-size: 18px; - margin: 0 0 8px; - line-height: 24px; -} - -/*Blockquote Styles*/ -blockquote.bq-text-lg p, -blockquote.bq-text-lg small { - text-transform: uppercase; -} - -blockquote.bq-text-lg p { - font-size: 22px; - font-weight: 300; - line-height: 32px; -} - -blockquote.text-right, -blockquote.hero.text-right { - border-left: none; - border-right: 2px solid #eee; -} - -blockquote.hero.text-right, -blockquote.hero.text-right:hover { - border-color: #555; -} - -blockquote:hover, -blockquote.text-right:hover { - border-color: #72c02c; - -webkit-transition: all 0.4s ease-in-out; - -moz-transition: all 0.4s ease-in-out; - -o-transition: all 0.4s ease-in-out; - transition: all 0.4s ease-in-out; -} - -blockquote.bq-dark, -blockquote.bq-dark:hover { - border-color: #585f69; -} - -blockquote.bq-green { - border-color: #72c02c; -} - -/*Blockquote Hero Styles*/ -blockquote.hero { - border: none; - padding: 18px; - font-size: 16px; - background: #f3f3f3; - border-left: solid 2px #666; -} - -blockquote.hero:hover { - background: #eee; - border-left-color: #666; -} - -blockquote.hero.hero-dark, -blockquote.hero.hero-default { - border: none; -} - -blockquote.hero.hero-dark { - background: #444; -} - -blockquote.hero.hero-dark:hover { - background: #555; -} - -blockquote.hero.hero-default { - background: #72c02c; -} - -blockquote.hero.hero-default:hover { - background: #5fb611; -} - -blockquote.hero.hero-dark p, -blockquote.hero.hero-dark h2, -blockquote.hero.hero-dark small, -blockquote.hero.hero-default p, -blockquote.hero.hero-default h2, -blockquote.hero.hero-default small { - color: #fff; - font-weight: 200; -} - -/*Tag Boxes -------------------------------------*/ -.tag-box { - padding: 20px; - background: #fff; - margin-bottom: 30px; -} - -.tag-box h2 { - font-size: 20px; - line-height: 25px; -} - -.tag-box p { - margin-bottom: 0; -} - -.tag-box.tag-text-space p { - margin-bottom: 10px; -} - -/*Tag Boxes v1*/ -.tag-box-v1 { - border: solid 1px #eee; - border-top: solid 2px #72c02c; -} - -/*Tag Boxes v2*/ -.tag-box-v2 { - background: #fafafa; - border: solid 1px #eee; - border-left: solid 2px #72c02c; -} - -/*Tag Boxes v3*/ -.tag-box-v3 { - border: solid 2px #eee; -} - -/*Tag Boxes v4*/ -.tag-box-v4 { - border: dashed 1px #bbb; -} - -/*Tag Boxes v5*/ -.tag-box-v5 { - margin: 20px 0; - text-align: center; - border: dashed 1px #ccc; -} - -.tag-box-v5 span { - color: #555; - font-size: 28px; - margin-bottom: 0; -} - -/*Tag Boxes v6*/ -.tag-box-v6 { - background: #fafafa; - border: solid 1px #eee; -} - -/*Tag Boxes v7*/ -.tag-box-v7 { - border: solid 1px #eee; - border-bottom: solid 2px #72c02c; -} - -/*Testimonials -------------------------------------*/ -/*Testimonials*/ -.testimonials { - margin-bottom: 10px; -} - -.testimonials .testimonial-info { - color: #72c02c; - font-size: 16px; - padding: 0 15px; - margin-top: 18px; -} - -.testimonials .testimonial-info span { - top: 3px; - position: relative; -} - -.testimonials .testimonial-info em { - color: #777; - display: block; - font-size: 13px; -} - -.testimonials .testimonial-info img { - width: 60px; - float: left; - height: 60px; - padding: 2px; - margin-right: 15px; - border: solid 1px #ccc; -} - -.testimonials .testimonial-author { - overflow: hidden; -} - -.testimonials .carousel-arrow { - top: -65px; - position: relative; -} - -.testimonials .carousel-arrow i { - color: #777; - padding: 2px; - min-width: 25px; - font-size: 20px; - text-align: center; - background: #f5f5f5; -} - -.testimonials .carousel-arrow i:hover { - color: #fff; - background: #72c02c; -} - -.testimonials .carousel-control { - opacity: 1; - width: 100%; - text-align: right; - text-shadow: none; - position: absolute; - filter: Alpha(opacity = 100); /*For IE*/ -} - -.testimonials .carousel-control.left { - right: 27px; - left: auto; -} -.testimonials .carousel-control.right { - right: 0px; -} - -/*Testimonials v1*/ -.testimonials.testimonials-v1 .item p { - position: relative; -} - -.testimonials.testimonials-v1 .item p:after, -.testimonials.testimonials-v1 .item p:before { - left: 80px; - bottom: -20px; -} - -.testimonials.testimonials-v1 .item p:after { - border-top: 22px solid; - border-left: 0 solid transparent; - border-right: 22px solid transparent; -} - -/*Testimonials v2*/ -.testimonials.testimonials-v2 .testimonial-info { - padding: 0 20px; -} - -.testimonials.testimonials-v2 p { - padding-bottom: 15px; -} - -.testimonials.testimonials-v2 .carousel-arrow { - top: -55px; -} - -.testimonials.testimonials-v2 .item p:after, -.testimonials.testimonials-v2 .item p:before { - left: 8%; - bottom: 45px; -} - -.testimonials.testimonials-v2 .item p:after { - border-top: 20px solid; - border-left: 25px solid transparent; - border-right: 0px solid transparent; -} - -/*General Testimonials v1/v2*/ -.testimonials.testimonials-v1 p, -.testimonials.testimonials-v2 p { - padding: 15px; - font-size: 14px; - font-style: italic; - background: #f5f5f5; -} - -.testimonials.testimonials-v1 .item p:after, -.testimonials.testimonials-v2 .item p:after { - width: 0; - height: 0; - content: " "; - display: block; - position: absolute; - border-top-color: #f5f5f5; - border-left-style: inset; /*FF fixes*/ - border-right-style: inset; /*FF fixes*/ -} - -/*Testimonials Backgrounds*/ -.testimonials-bg-dark .item p, -.testimonials-bg-default .item p { - color: #fff; - font-weight: 200; -} - -.testimonials-bg-dark .carousel-arrow i, -.testimonials-bg-default .carousel-arrow i { - color: #fff; -} - -/*Testimonials Default*/ -.testimonials-bg-default .item p { - background: #72c02c; -} - -.testimonials.testimonials-bg-default .item p:after, -.testimonials.testimonials-bg-default .item p:after { - border-top-color: #72c02c; -} - -.testimonials-bg-default .carousel-arrow i { - background: #72c02c; -} - -.testimonials.testimonials-bg-default .carousel-arrow i:hover { - background: #5fb611; -} - -/*Testimonials Dark*/ -.testimonials-bg-dark .item p { - background: #555; -} - -.testimonials.testimonials-bg-dark .item p:after, -.testimonials.testimonials-bg-dark .item p:after { - border-top-color: #555; -} - -.testimonials-bg-dark .carousel-arrow i { - color: #fff; - background: #555; -} - -.testimonials.testimonials-bg-dark .carousel-arrow i:hover { - background: #333; -} - -.testimonials.testimonials-bg-dark .testimonial-info { - color: #555; -} - -/*Panels (Portlets) -------------------------------------*/ -.panel-heading { - color: #fff; - padding: 5px 15px; -} - -/*Panel Table*/ -.panel .table { - margin-bottom: 0; -} - -/*Panel Unify*/ -.panel-u { - border-color: #72c02c; -} - -.panel-u > .panel-heading { - background: #72c02c; -} - -/*Panel Blue*/ -.panel-blue { - border-color: #3498db; -} - -.panel-blue > .panel-heading { - background: #3498db; -} - -/*Panel Red*/ -.panel-red { - border-color: #e74c3c; -} - -.panel-red > .panel-heading { - background: #e74c3c; -} - -/*Panel Green*/ -.panel-green { - border-color: #2ecc71; -} - -.panel-green > .panel-heading { - background: #2ecc71; -} - -/*Panel Sea*/ -.panel-sea { - border-color: #1abc9c; -} - -.panel-sea > .panel-heading { - background: #1abc9c; -} - -/*Panel Orange*/ -.panel-orange { - border-color: #e67e22; -} - -.panel-orange > .panel-heading { - background: #e67e22; -} - -/*Panel Yellow*/ -.panel-yellow { - border-color: #f1c40f; -} - -.panel-yellow > .panel-heading { - background: #f1c40f; -} - -/*Panel Grey*/ -.panel-grey { - border-color: #95a5a6; -} - -.panel-grey > .panel-heading { - background: #95a5a6; -} - -/*Panel Dark*/ -.panel-dark { - border-color: #555; -} - -.panel-dark > .panel-heading { - background: #555; -} - -/*Panel Purple*/ -.panel-purple { - border-color: #9b6bcc; -} - -.panel-purple > .panel-heading { - background: #9b6bcc; -} - -/*Panel Aqua*/ -.panel-aqua { - border-color: #27d7e7; -} - -.panel-aqua > .panel-heading { - background: #27d7e7; -} - -/*Panel Brown*/ -.panel-brown { - border-color: #9c8061; -} - -.panel-brown > .panel-heading { - background: #9c8061; -} - -/*Panel Dark Blue*/ -.panel-dark-blue { - border-color: #4765a0; -} - -.panel-dark-blue > .panel-heading { - background: #4765a0; -} - -/*Panel Light Green*/ -.panel-light-green { - border-color: #79d5b3; -} - -.panel-light-green > .panel-heading { - background: #79d5b3; -} - -/*Panel Default Dark*/ -.panel-default-dark { - border-color: #585f69; -} - -.panel-default-dark > .panel-heading { - background: #585f69; -} - -/*Progress Bar -------------------------------------*/ -.progress-u { - box-shadow: none; -} - -.progress-u .progress-bar { - box-shadow: none; -} - -/*progress-bar (sizes)*/ -.progress-lg { - height: 25px; -} -.progress-lg p { - padding-top: 3px; -} - -.progress-sm { - height: 12px; -} - -.progress-xs { - height: 7px; -} - -.progress-xxs { - height: 3px; -} - -/*progress-bar (colors)*/ -.progress { - background: #e5e5e5; -} - -.progress-bar-u { - background: #72c02c; -} - -.progress-bar-blue { - background: #3498db; -} - -.progress-bar-orange { - background: #e67e22; -} - -.progress-bar-red { - background: #e74c3c; -} - -.progress-bar-purple { - background: #9b6bcc; -} - -.progress-bar-aqua { - background: #27d7e7; -} - -.progress-bar-brown { - background: #9c8061; -} - -.progress-bar-dark-blue { - background: #4765a0; -} - -.progress-bar-light-green { - background: #79d5b3; -} - -.progress-bar-dark { - background: #555; -} - -/*Count Stars -------------------------------------*/ -.stars-existing { - color: #72c02c; - cursor: pointer; -} - -.star-lg { - font-size: 30px; -} - -.star-sm { - font-size: 25px; -} - -.star-xs { - font-size: 20px; -} - -.star-default { - font-size: 16px; -} - -/*Media (Audio/Videos and Images) -------------------------------------*/ -/*Images*/ -img.img-bordered { - padding: 3px; - border: solid 1px #eee; -} - -img.img-circle { - border-radius: 50% !important; -} - -/*Responsive Video*/ -.responsive-video { - height: 0; - padding-top: 1px; - position: relative; - margin-bottom: -3px; - padding-bottom: 56.25%; /*16:9*/ -} - -.responsive-video iframe { - top: 0; - left: 0; - width: 100%; - height: 100%; - position: absolute; -} - -/*Spaces -------------------------------------*/ -.margin-left-5 { margin-left: 5px;} -.margin-right-5 { margin-right: 5px;} - -.no-top-space { - margin-top: 0; - padding-top: 0; -} - -.no-bottom-space { - margin-bottom: 0; - padding-bottom: 0; -} - -.margin-bottom-5, -.margin-bottom-10, -.margin-bottom-15, -.margin-bottom-20, -.margin-bottom-25, -.margin-bottom-30, -.margin-bottom-35, -.margin-bottom-40, -.margin-bottom-45, -.margin-bottom-50, -.margin-bottom-55, -.margin-bottom-60 { - clear:both; -} -.margin-bottom-5 { margin-bottom:5px;} -.margin-bottom-10 { margin-bottom:10px;} -.margin-bottom-15 { margin-bottom:15px;} -.margin-bottom-20 { margin-bottom:20px;} -.margin-bottom-25 { margin-bottom:25px;} -.margin-bottom-30 { margin-bottom:30px;} -.margin-bottom-35 { margin-bottom:35px;} -.margin-bottom-40 { margin-bottom:40px;} -.margin-bottom-45 { margin-bottom:45px;} -.margin-bottom-50 { margin-bottom:50px;} -.margin-bottom-55 { margin-bottom:55px;} -.margin-bottom-60 { margin-bottom:60px;} - -@media (max-width: 768px) { - .sm-margin-bottom-10 { - margin-bottom: 10px; - } - .sm-margin-bottom-20 { - margin-bottom: 20px; - } - .sm-margin-bottom-30 { - margin-bottom: 30px; - } - .sm-margin-bottom-40 { - margin-bottom: 40px; - } - .sm-margin-bottom-50 { - margin-bottom: 50px; - } - .sm-margin-bottom-60 { - margin-bottom: 60px; - } -} - -@media (max-width: 992px) { - .md-margin-bottom-10 { - margin-bottom: 10px; - } - .md-margin-bottom-20 { - margin-bottom: 20px; - } - .md-margin-bottom-30 { - margin-bottom: 30px; - } - .md-margin-bottom-40 { - margin-bottom: 40px; - } - .md-margin-bottom-50 { - margin-bottom: 50px; - } - .md-margin-bottom-60 { - margin-bottom: 60px; - } -} - -/*Text Colors -------------------------------------*/ -.color-sea { color: #1abc9c;} -.color-red { color: #e74c3c;} -.color-aqua { color: #27d7e7;} -.color-blue { color: #3498db;} -.color-grey { color: #95a5a6;} -.color-dark { color: #555555;} -.color-green { color: #72c02c;} -.color-brown { color: #9c8061;} -.color-light { color: #ffffff;} -.color-orange { color: #e67e22;} -.color-green1 { color: #2ecc71;} -.color-purple { color: #9b6bcc;} -.color-dark-blue { color: #4765a0;} -.color-light-grey { color: #585f69;} -.color-light-green { color: #79d5b3;} - -/*Background Colors -------------------------------------*/ -.bg-color-dark, -.bg-color-sea, -.bg-color-red, -.bg-color-aqua, -.bg-color-blue, -.bg-color-grey, -.bg-color-green, -.bg-color-brown, -.bg-color-orange, -.bg-color-green1, -.bg-color-purple, -.bg-color-dark-blue, -.bg-color-light-grey, -.bg-color-light-green { - color: #fff; -} -.bg-color-dark { background-color: #555;} -.bg-color-sea { background-color: #1abc9c;} -.bg-color-red { background-color: #e74c3c;} -.bg-color-aqua { background-color: #27d7e7;} -.bg-color-blue { background-color: #3498db;} -.bg-color-grey { background-color: #95a5a6;} -.bg-color-green { background-color: #72c02c;} -.bg-color-brown { background-color: #9c8061;} -.bg-color-orange { background-color: #e67e22;} -.bg-color-green1 { background-color: #2ecc71;} -.bg-color-purple { background-color: #9b6bcc;} -.bg-color-dark-blue { background-color: #4765a0;} -.bg-color-light-grey { background-color: #585f69;} -.bg-color-light-green { background-color: #79d5b3;} - -/*Rounded and Circle Classes -------------------------------------*/ -.rounded { border-radius: 4px !important;} -.rounded-x { border-radius: 50% !important;} -.rounded-2x { border-radius: 10px !important;} -.rounded-3x { border-radius: 15px !important;} -.rounded-4x { border-radius: 20px !important;} -.rounded-top { border-radius: 4px 4px 0 0 !important;} -.rounded-left { border-radius: 4px 0 0 4px !important;} -.rounded-right { border-radius: 0 4px 4px 0 !important;} -.rounded-bottom { border-radius: 0 0 4px 4px !important;} - -/*Others -------------------------------------*/ -.overflow-h { overflow: hidden;} -.overflow-a { overflow: auto;} -.overflow-hidden { overflow:hidden;} - -.lft-img-margin { margin:0 20px 5px 0;} -.rgt-img-margin { margin:0 0 5px 10px;} - -.padding-left-5 { padding-left:5px;} -.img-width-200 { width:200px;} - -/*Misc*/ -.content { - padding-top: 40px; - padding-bottom: 40px; -} - -.text-justify p { - text-align: justify; -} - -/*Background Light*/ -.bg-light { - padding:10px 15px; - margin-bottom:10px; - background:#fcfcfc; - border:solid 1px #e5e5e5; -} -.bg-light:hover { - border:solid 1px #bbb; -} - -/*CSS3 Hover Effects*/ -.hover-effect { - -webkit-transition: all 0.4s ease-in-out; - -moz-transition: all 0.4s ease-in-out; - -o-transition: all 0.4s ease-in-out; - transition: all 0.4s ease-in-out; -} -.hover-effect-kenburn { - left:10px; - margin-left:-10px; - position:relative; - -webkit-transition: all 0.8s ease-in-out; - -moz-transition: all 0.8s ease-in-out; - -o-transition: all 0.8s ease-in-out; - -ms-transition: all 0.8s ease-in-out; - transition: all 0.8s ease-in-out; -} -.hover-effect-kenburn:hover { - -webkit-transform: scale(2) rotate(5deg); - -moz-transform: scale(2) rotate(5deg); - -o-transform: scale(2) rotate(5deg); - -ms-transform: scale(2) rotate(5deg); - transform: scale(2) rotate(5deg); -} +/* + * Template Name: Unify - Responsive Bootstrap Template + * Description: Business, Corporate, Portfolio and Blog Theme. + * Version: 1.4 + * Author: @htmlstream + * Website: http://htmlstream.com +*/ + +/*Import Google Font*/ +@import url(//fonts.googleapis.com/css?family=Open+Sans:300,400); + +/*Reset Styles +------------------------------------*/ +* { + border-radius: 0; +} + +body { + color: #333; + font-size: 13px; + line-height: 1.6; +} + +p, +li, +li a { + color: #555; +} + +a { + color: #72c02c; + text-decoration: none; +} + +a, +a:focus, +a:hover, +a:active { + outline: 0 !important; +} +a:focus { + text-decoration: none; +} +a:hover { + color: #72c02c; + text-decoration: underline; +} + +hr { + margin: 30px 0; +} + +/*Headings*/ +h1 { + font-size: 28px; + line-height: 35px; +} +h2 { + font-size: 24px; + line-height: 33px; +} +h3 { + font-size: 20px; + line-height: 27px; +} +h4 { + line-height: 25px; +} +h5 { + line-height: 20px; +} +h6 { + line-height: 18px; +} + +h1, h2, h3, h4, h5, h6 { + color: #585f69; + margin-top: 5px; + text-shadow: none; + font-weight: normal; + font-family: 'Open Sans', sans-serif; +} + +h1 i, h2 i, h3 i, h4 i, h5 i, h6 i { + margin-right: 5px; +} + +/*Block Headline*/ +.headline { + display: block; + margin: 10px 0 25px 0; + border-bottom: 1px dotted #e4e9f0; +} + +.headline h2 { + font-size: 22px; +} + +.headline h2, +.headline h3, +.headline h4 { + margin: 0 0 -2px 0; + padding-bottom: 5px; + display: inline-block; + border-bottom: 2px solid #72c02c; +} + +.headline-md { + margin-bottom: 15px; +} + +.headline-md h2 { + font-size: 21px; +} + +/*Heading Options*/ +.heading { + text-align: center; +} + +.heading h2 { + padding: 0 12px; + position: relative; + display: inline-block; + line-height: 34px !important; /*For Tagline Boxes*/ +} + +.heading h2:before, +.heading h2:after { + content: ' '; + width: 70%; + position: absolute; + border-width: 1px; + border-color: #bbb; +} + +.heading h2:before { + right: 100%; +} + +.heading h2:after { + left: 100%; +} + +@media (max-width: 768px) { + .heading h2:before, + .heading h2:after { + width: 35%; + } +} + +@media (max-width: 600px) { + .heading h2 { + font-size: 19px; + } + + .heading h2:before, + .heading h2:after { + width: 15%; + } +} + +/*Headline v1*/ +.heading-v1 h2:before, +.heading-v1 h2:after { + top: 15px; + height: 6px; + border-top-style: solid; + border-bottom-style: solid; +} + +/*Headline v2*/ +.heading-v2 h2:before, +.heading-v2 h2:after { + top: 15px; + height: 6px; + border-top-style: dashed; + border-bottom-style: dashed; +} + +/*Headline v3*/ +.heading-v3 h2:before, +.heading-v3 h2:after { + top: 15px; + height: 6px; + border-top-style: dotted; + border-bottom-style: dotted; +} + +/*Headline v4*/ +.heading-v4 h2:before, +.heading-v4 h2:after { + top: 17px; + border-bottom-style: solid; +} + +/*Headline v5*/ +.heading-v5 h2:before, +.heading-v5 h2:after { + top: 17px; + border-bottom-style: dashed; +} + +/*Headline v6*/ +.heading-v6 h2:before, +.heading-v6 h2:after { + top: 17px; + border-bottom-style: dotted; +} + +/*Heading Sizes*/ +h2.heading-md { + font-size: 20px; + line-height: 24px; +} + +h2.heading-sm, +h3.heading-md { + font-size: 18px; + line-height: 24px; +} + +h3.heading-md { + line-height: 22px; +} + +h3.heading-sm { + font-size: 16px; + line-height: 20px; +} + +h3.heading-xs { + font-size: 14px; + margin-bottom: 0; +} + +/*Deviders*/ +.devider.devider-dotted { + border-top: 2px dotted #eee; +} +.devider.devider-dashed { + border-top: 2px dashed #eee; +} + +.devider.devider-db { + height: 5px; + border-top: 1px solid #eee; + border-bottom: 1px solid #eee; +} +.devider.devider-db-dashed { + height: 5px; + border-top: 1px dashed #ddd; + border-bottom: 1px dashed #ddd; +} +.devider.devider-db-dotted { + height: 5px; + border-top: 1px dotted #ddd; + border-bottom: 1px dotted #ddd; +} + +/*Tables +------------------------------------*/ +/*Basic Tables*/ +.table thead > tr > th { + border-bottom: none; +} + +@media (max-width: 768px) { + .table th.hidden-sm, + .table td.hidden-sm { + display: none !important; + } +} + +/*Forms +------------------------------------*/ +.form-control { + box-shadow: none; +} + +.form-control:focus { + border-color: #bbb; + box-shadow: 0 0 2px #c9c9c9; +} + +/*Form Spacing*/ +.form-spacing .form-control { + margin-bottom: 15px; +} + +/*Form Icons*/ +.input-group-addon { + color: #b3b3b3; + font-size: 14px; + background: #fff; +} + +/*Carousel +------------------------------------*/ +/*carousel-v1*/ +.carousel-v1 .carousel-caption { + left: 0; + right: 0; + bottom: 0; + padding: 7px 15px; + background: rgba(0, 0, 0, 0.7); +} + +.carousel-v1 .carousel-caption p { + color: #fff; + margin-bottom: 0; +} + +.carousel-v1 .carousel-arrow a.carousel-control { + opacity: 1; + font-size:30px; + height:inherit; + width: inherit; + background: none; + text-shadow: none; + position: inherit; +} + +.carousel-v1 .carousel-arrow a i { + top: 50%; + opacity: 0.6; + background: #000; + margin-top: -18px; + padding: 2px 12px; + position: absolute; +} +.carousel-v1 .carousel-arrow a i:hover { + opacity: 0.8; +} + +.carousel-v1 .carousel-arrow a.left i { + left: 0; +} +.carousel-v1 .carousel-arrow a.right i { + right: 0; +} + +/*Tabs +------------------------------------*/ +/*Tabs v1*/ +.tab-v1 .nav-tabs { + border: none; + background: none; + border-bottom: solid 2px #72c02c; +} + +.tab-v1 .nav-tabs a { + font-size: 14px; + padding: 5px 15px; +} + +.tab-v1 .nav-tabs > .active > a, +.tab-v1 .nav-tabs > .active > a:hover, +.tab-v1 .nav-tabs > .active > a:focus { + color: #fff; + border: none; + background: #72c02c; +} + +.tab-v1 .nav-tabs > li > a { + border: none; +} +.tab-v1 .nav-tabs > li > a:hover { + color: #fff; + background: #72c02c; +} + +.tab-v1 .tab-content { + padding: 10px 0; +} + +.tab-v1 .tab-content img { + margin-top: 4px; + margin-bottom: 15px; +} + +.tab-v1 .tab-content img.img-tab-space { + margin-top: 7px; +} + +/*Tabs v2*/ +.tab-v2 .nav-tabs { + border-bottom: none; +} + +.tab-v2 .nav-tabs li a { + padding: 9px 16px; + background: none; + border: none; +} + +.tab-v2 .nav-tabs li.active a { + background: #fff; + padding: 7px 15px 9px; + border: solid 1px #eee; + border-top: solid 2px #72c02c; + border-bottom: none !important; +} + +.tab-v2 .tab-content { + padding: 10px 16px; + border: solid 1px #eee; +} + +/*Tabs v3*/ +.tab-v3 .nav-pills li a { + color: #777; + font-size: 17px; + padding: 4px 8px; + margin-bottom: 3px; + background: #fafafa; + border: solid 1px #eee; +} + +.tab-v3 .nav-pills li a:hover, +.tab-v3 .nav-pills li.active a { + color: #fff; + background: #72c02c; + border: solid 1px #68af28; +} + +.tab-v3 .nav-pills li i { + width: 1.25em; + margin-right: 5px; + text-align: center; + display: inline-block; +} + +.tab-v3 .tab-content { + padding: 15px; + background: #fafafa; + border: solid 1px #eee; +} + +/*Accordions +------------------------------------*/ +/*Accordion v1*/ +.acc-v1 .panel-heading { + padding: 0; + box-shadow: none; +} + +.acc-v1 .panel-heading a { + display: block; + font-size: 14px; + padding: 5px 15px; + background: #fefefe; +} + +.acc-icon a.accordion-toggle i { + color: #585f69; + margin-right: 8px; +} +.acc-icon a.accordion-toggle:hover i { + color: #39414c; +} + +/*Navigation +------------------------------------*/ +/*Pegination*/ +.pagination li a { + color: #777; + padding: 5px 15px; +} + +.pagination li a:hover { + color: #fff; + background: #5fb611; + border-color: #5fb611; +} + +.pagination > .active > a, +.pagination > .active > span, +.pagination > .active > a:hover, +.pagination > .active > span:hover, +.pagination > .active > a:focus, +.pagination > .active > span:focus { + border-color: #72c02c; + background-color: #72c02c; +} + +/*Pagination Without Space*/ +.pagination-no-space .pagination { + margin: 0; +} + +/*Pager*/ +.pager li > a:hover, +.pager li > a:focus { + color: #fff; + background: #5fb611; + border-color: #5fb611; +} + +/*Sidebar Menu +------------------------------------*/ +/*Sidebar Menu v1*/ +.sidebar-nav-v1 li { + padding: 0; +} + +.sidebar-nav-v1 li a { + display: block; + padding: 8px 30px 8px 10px; +} + +.sidebar-nav-v1 li a:hover { + text-decoration: none; +} + +.sidebar-nav-v1 > li.active, +.sidebar-nav-v1 > li.active:hover { + background: #717984; +} + +.sidebar-nav-v1 > li.active > a { + color: #fff; +} + +/*Sidebar Sub Navigation*/ +.sidebar-nav-v1 li ul { + padding: 0; + list-style: none; +} + +.sidebar-nav-v1 li ul, +.sidebar-nav-v1 li.active ul a { + background: #f8f8f8; +} + +.sidebar-nav-v1 li ul a { + color: #585f69; + font-size: 12px; + border-top: solid 1px #ddd; + padding: 6px 30px 6px 17px; +} + +.sidebar-nav-v1 ul li:hover a, +.sidebar-nav-v1 ul li.active a { + color: #72c02c; +} + +/*Sidebar Badges*/ +.list-group-item li > .badge { + float: right; +} + +.sidebar-nav-v1 span.badge { + margin-top: 8px; + margin-right: 10px; +} + +.sidebar-nav-v1 .list-toggle > span.badge { + margin-right: 25px; +} + +.sidebar-nav-v1 ul li span.badge { + margin-top: 8px; + font-size: 11px; + padding: 3px 5px; + margin-right: 10px; +} + +/*Sidebar List Toggle*/ +.list-toggle:after { + top: 7px; + right: 10px; + color: #777; + font-size: 14px; + content: "\f105"; + position: absolute; + font-weight: normal; + display: inline-block; + font-family: FontAwesome; +} + +.list-toggle.active:after { + color: #fff; + content: "\f107"; +} + +/* Make Font Awesome icons fixed width */ +.sidebar-nav-v1 li [class^="fa"], +.sidebar-nav-v1 li [class*=" fa"] { + width: 1.25em; + left: -2px; + margin-right: 2px; + text-align: center; + position: relative; + display: inline-block; +} +.sidebar-nav-v1 li [class^="fa"].fa-lg, +.sidebar-nav-v1 li [class*=" fa"].fa-lg { + /* increased font size for fa-lg */ + width: 1.5625em; +} + + +/*Button Styles +------------------------------------*/ +.btn { + box-shadow: none; +} + +.btn-u { + border: 0; + color: #fff; + font-size: 14px; + cursor: pointer; + font-weight: 400; + padding: 6px 13px; + position: relative; + background: #72c02c; + display: inline-block; + text-decoration: none; +} +.btn-u:hover { + color: #fff; + text-decoration: none; + -webkit-transition: all 0.3s ease-in-out; + -moz-transition: all 0.3s ease-in-out; + -o-transition: all 0.3s ease-in-out; + transition: all 0.3s ease-in-out; +} + +a.btn-u { + /*padding: 4px 13px;*/ + /*vertical-align: middle;*/ +} + +.btn-u-sm, +a.btn-u-sm { + padding: 3px 12px; +} + +.btn-u-lg, +a.btn-u-lg { + font-size: 18px; + padding: 10px 25px; +} + +.btn-u-xs, +a.btn-u-xs { + font-size: 12px; + padding: 2px 12px; + line-height: 18px; +} + +/*Button Groups*/ +.btn-group .dropdown-menu > li > a { + padding: 3px 13px; + display: flex; +} + +.btn-group > .btn-u, +.btn-group-vertical > .btn-u { + float: left; + position: relative; +} + +.btn-group > .btn-u:first-child { + margin-left: 0; +} + +/*For FF Only*/ +@-moz-document url-prefix() { + .footer-subsribe .btn-u { + padding-bottom: 4px; + } +} +@media (max-width: 768px) { + @-moz-document url-prefix() { + .btn-u { + padding-bottom: 6px; + } + } +} + +/*Buttons Color*/ +.btn-u:hover, +.btn-u:focus, +.btn-u:active, +.btn-u.active, +.open .dropdown-toggle.btn-u { + background: #5fb611; +} +.btn-u-split.dropdown-toggle { + border-left: solid 1px #5fb611; +} + +.btn-u.btn-u-blue { + background: #3498db; +} +.btn-u.btn-u-blue:hover, +.btn-u.btn-u-blue:focus, +.btn-u.btn-u-blue:active, +.btn-u.btn-u-blue.active, +.open .dropdown-toggle.btn-u.btn-u-blue { + background: #2980b9; +} +.btn-u.btn-u-split-blue.dropdown-toggle { + border-left: solid 1px #2980b9; +} + +.btn-u.btn-u-red { + background: #e74c3c; +} +.btn-u.btn-u-red:hover, +.btn-u.btn-u-red:focus, +.btn-u.btn-u-red:active, +.btn-u.btn-u-red.active, +.open .dropdown-toggle.btn-u.btn-u-red { + background: #c0392b; +} +.btn-u.btn-u-split-red.dropdown-toggle { + border-left: solid 1px #c0392b; +} + +.btn-u.btn-u-orange { + background: #e67e22; +} +.btn-u.btn-u-orange:hover, +.btn-u.btn-u-orange:focus, +.btn-u.btn-u-orange:active, +.btn-u.btn-u-orange.active, +.open .dropdown-toggle.btn-u.btn-u-orange { + background: #d35400; +} +.btn-u.btn-u-split-orange.dropdown-toggle { + border-left: solid 1px #d35400; +} + +.btn-u.btn-u-sea { + background: #1abc9c; +} +.btn-u.btn-u-sea:hover, +.btn-u.btn-u-sea:focus, +.btn-u.btn-u-sea:active, +.btn-u.btn-u-sea.active, +.open .dropdown-toggle.btn-u.btn-u-sea { + background: #16a085; +} +.btn-u.btn-u-split-sea.dropdown-toggle { + border-left: solid 1px #16a085; +} + +.btn-u.btn-u-green { + background: #2ecc71; +} +.btn-u.btn-u-green:hover, +.btn-u.btn-u-green:focus, +.btn-u.btn-u-green:active, +.btn-u.btn-u-green.active, +.open .dropdown-toggle.btn-u.btn-u-green { + background: #27ae60; +} +.btn-u.btn-u-split-green.dropdown-toggle { + border-left: solid 1px #27ae60; +} + +.btn-u.btn-u-yellow { + background: #f1c40f; +} +.btn-u.btn-u-yellow:hover, +.btn-u.btn-u-yellow:focus, +.btn-u.btn-u-yellow:active, +.btn-u.btn-u-yellow.active, +.open .dropdown-toggle.btn-u.btn-u-yellow { + background: #f39c12; +} +.btn-u.btn-u-split-yellow.dropdown-toggle { + border-left: solid 1px #f39c12; +} + +.btn-u.btn-u-default { + background: #95a5a6; +} +.btn-u.btn-u-default:hover, +.btn-u.btn-u-default:focus, +.btn-u.btn-u-default:active, +.btn-u.btn-u-default.active, +.open .dropdown-toggle.btn-u.btn-u-default { + background: #7f8c8d; +} +.btn-u.btn-u-split-default.dropdown-toggle { + border-left: solid 1px #7f8c8d; +} + +.btn-u.btn-u-purple { + background: #9b6bcc; +} +.btn-u.btn-u-purple:hover, +.btn-u.btn-u-purple:focus, +.btn-u.btn-u-purple:active, +.btn-u.btn-u-purple.active, +.open .dropdown-toggle.btn-u.btn-u-purple { + background: #814fb5; +} +.btn-u.btn-u-split-purple.dropdown-toggle { + border-left: solid 1px #814fb5; +} + +.btn-u.btn-u-aqua { + background: #27d7e7; +} +.btn-u.btn-u-aqua:hover, +.btn-u.btn-u-aqua:focus, +.btn-u.btn-u-aqua:active, +.btn-u.btn-u-aqua.active, +.open .dropdown-toggle.btn-u.btn-u-aqua { + background: #26bac8; +} +.btn-u.btn-u-split-aqua.dropdown-toggle { + border-left: solid 1px #26bac8; +} + +.btn-u.btn-u-brown { + background: #9c8061; +} +.btn-u.btn-u-brown:hover, +.btn-u.btn-u-brown:focus, +.btn-u.btn-u-brown:active, +.btn-u.btn-u-brown.active, +.open .dropdown-toggle.btn-u.btn-u-brown { + background: #81674b; +} +.btn-u.btn-u-split-brown.dropdown-toggle { + border-left: solid 1px #81674b; +} + +.btn-u.btn-u-dark-blue { + background: #4765a0; +} +.btn-u.btn-u-dark-blue:hover, +.btn-u.btn-u-dark-blue:focus, +.btn-u.btn-u-dark-blue:active, +.btn-u.btn-u-dark-blue.active, +.open .dropdown-toggle.btn-u.btn-u-dark-blue { + background: #324c80; +} +.btn-u.btn-u-split-dark.dropdown-toggle { + border-left: solid 1px #324c80; +} + +.btn-u.btn-u-light-green { + background: #79d5b3; +} +.btn-u.btn-u-light-green:hover, +.btn-u.btn-u-light-green:focus, +.btn-u.btn-u-light-green:active, +.btn-u.btn-u-light-green.active, +.open .dropdown-toggle.btn-u.btn-u-light-green { + background: #59b795; +} +.btn-u.btn-u-split-light-green.dropdown-toggle { + border-left: solid 1px #59b795; +} + +.btn-u.btn-u-dark { + background: #555; +} +.btn-u.btn-u-dark:hover, +.btn-u.btn-u-dark:focus, +.btn-u.btn-u-dark:active, +.btn-u.btn-u-dark.active, +.open .dropdown-toggle.btn-u.btn-u-dark { + background: #333; +} +.btn-u.btn-u-split-dark.dropdown-toggle { + border-left: solid 1px #333; +} + +.btn-u.btn-u-light-grey { + background: #585f69; +} +.btn-u.btn-u-light-grey:hover, +.btn-u.btn-u-light-grey:focus, +.btn-u.btn-u-light-grey:active, +.btn-u.btn-u-light-grey.active, +.open .dropdown-toggle.btn-u.btn-u-light-grey { + background: #484f58; +} +.btn-u.btn-u-split-light-grey.dropdown-toggle { + border-left: solid 1px #484f58; +} + +/*Bordered Buttons*/ +.btn-u.btn-brd { + color: #555; + font-weight: 200; + background: none; + border: solid 1px transparent; + -webkit-transition: all 0.1s ease-in-out; + -moz-transition: all 0.1s ease-in-out; + -o-transition: all 0.1s ease-in-out; + transition: all 0.1s ease-in-out; +} +.btn-u.btn-brd:hover { + background: none; + border: solid 1px #eee; +} +.btn-u.btn-brd:focus { + background: none; +} +.btn-u.btn-brd.btn-brd-hover:hover { + color: #fff !important; +} + +.btn-u.btn-brd { + border-color: #72c02c; +} +.btn-u.btn-brd:hover { + color: #5fb611; + border-color: #5fb611; +} +.btn-u.btn-brd.btn-brd-hover:hover { + background: #5fb611; +} + +.btn-u.btn-brd.btn-u-blue { + border-color: #3498db; +} +.btn-u.btn-brd.btn-u-blue:hover { + color: #2980b9; + border-color: #2980b9; +} +.btn-u.btn-brd.btn-u-blue.btn-brd-hover:hover { + background: #2980b9; +} + +.btn-u.btn-brd.btn-u-red { + border-color: #e74c3c; +} +.btn-u.btn-brd.btn-u-red:hover { + color: #c0392b; + border-color: #c0392b; +} +.btn-u.btn-brd.btn-u-red.btn-brd-hover:hover { + background: #c0392b; +} + +.btn-u.btn-brd.btn-u-orange { + border-color: #e67e22; +} +.btn-u.btn-brd.btn-u-orange:hover { + color: #d35400; + border-color: #d35400; +} +.btn-u.btn-brd.btn-u-orange.btn-brd-hover:hover { + background: #d35400; +} + +.btn-u.btn-brd.btn-u-sea { + border-color: #1abc9c; +} +.btn-u.btn-brd.btn-u-sea:hover { + color: #16a085; + border-color: #16a085; +} +.btn-u.btn-brd.btn-u-sea.btn-brd-hover:hover { + background: #16a085; +} + +.btn-u.btn-brd.btn-u-green { + border-color: #2ecc71; +} +.btn-u.btn-brd.btn-u-green:hover { + color: #27ae60; + border-color: #27ae60; +} +.btn-u.btn-brd.btn-u-green.btn-brd-hover:hover { + background: #27ae60; +} + +.btn-u.btn-brd.btn-u-yellow { + border-color: #f1c40f; +} +.btn-u.btn-brd.btn-u-yellow:hover { + color: #f39c12; + border-color: #f39c12; +} +.btn-u.btn-brd.btn-u-yellow.btn-brd-hover:hover { + background: #f39c12; +} + +.btn-u.btn-brd.btn-u-default { + border-color: #95a5a6; +} +.btn-u.btn-brd.btn-u-default:hover { + color: #7f8c8d; + border-color: #7f8c8d; +} +.btn-u.btn-brd.btn-u-default.btn-brd-hover:hover { + background: #7f8c8d; +} + +.btn-u.btn-brd.btn-u-dark { + border-color: #555; +} +.btn-u.btn-brd.btn-u-dark:hover { + color: #333; + border-color: #333; +} +.btn-u.btn-brd.btn-u-dark.btn-brd-hover:hover { + background: #333; +} + +.btn-u.btn-brd.btn-u-light-grey { + border-color: #585f69; +} +.btn-u.btn-brd.btn-u-light-grey:hover { + color: #484f58; + border-color: #484f58; +} +.btn-u.btn-brd.btn-u-light-grey.btn-brd-hover:hover { + background: #484f58; +} + +.btn-u.btn-brd.btn-u-purple { + border-color: #9b6bcc; +} +.btn-u.btn-brd.btn-u-purple:hover { + color: #814fb5; + border-color: #814fb5; +} +.btn-u.btn-brd.btn-u-purple.btn-brd-hover:hover { + background: #814fb5; +} + +.btn-u.btn-brd.btn-u-aqua { + border-color: #27d7e7; +} +.btn-u.btn-brd.btn-u-aqua:hover { + color: #26bac8; + border-color: #26bac8; +} +.btn-u.btn-brd.btn-u-aqua.btn-brd-hover:hover { + background: #26bac8; +} + +.btn-u.btn-brd.btn-u-brown { + border-color: #9c8061; +} +.btn-u.btn-brd.btn-u-brown:hover { + color: #81674b; + border-color: #81674b; +} +.btn-u.btn-brd.btn-u-brown.btn-brd-hover:hover { + background: #81674b; +} + +.btn-u.btn-brd.btn-u-dark-blue { + border-color: #4765a0; +} +.btn-u.btn-brd.btn-u-dark-blue:hover { + color: #324c80; + border-color: #324c80; +} +.btn-u.btn-brd.btn-u-dark-blue.btn-brd-hover:hover { + background: #324c80; +} + +.btn-u.btn-brd.btn-u-light-green { + border-color: #79d5b3; +} +.btn-u.btn-brd.btn-u-light-green:hover { + color: #59b795; + border-color: #59b795; +} +.btn-u.btn-brd.btn-u-light-green.btn-brd-hover:hover { + background: #59b795; +} + +.btn-u.btn-brd.btn-u-light { + color: #fff; + border-color: #fff; +} +.btn-u.btn-brd.btn-u-light:hover { + border-color: #fff; +} +.btn-u.btn-brd.btn-u-light.btn-brd-hover:hover { + background: #fff; + color: #555 !important; +} + +/*Badges and Labels +------------------------------------*/ +/*Labels*/ +span.label { + font-size: 11px; + font-weight: 400; + padding: 4px 7px; +} + +/*Badges*/ +span.badge { + font-weight: 400; + padding: 4px 7px; +} + +span.label-u, +span.badge-u { + background: #72c02c; +} + +span.label-blue, +span.badge-blue { + background: #3498db; +} + +span.label-red, +span.badge-red { + background: #e74c3c; +} + +span.label-green, +span.badge-green { + background: #2ecc71; +} + +span.label-sea, +span.badge-sea { + background: #1abc9c; +} + +span.label-orange, +span.badge-orange { + background: #e67e22; +} + +span.label-yellow, +span.badge-yellow { + background: #f1c40f; +} + +span.label-purple, +span.badge-purple { + background: #9b6bcc; +} + +span.label-aqua, +span.badge-aqua { + background: #27d7e7; +} + +span.label-brown, +span.badge-brown { + background: #9c8061; +} + +span.label-dark-blue, +span.badge-dark-blue { + background: #4765a0; +} + +span.label-light-green, +span.badge-light-green { + background: #79d5b3; +} + +span.label-light, +span.badge-light { + color: #777; + background: #ecf0f1; +} + +span.label-dark, +span.badge-dark { + background: #555; +} + +/*Badge Lists*/ +.badge-lists li { + position: relative; +} + +.badge-lists span.badge { + top: -10px; + right: -6px; + position: absolute; +} + +/*Badge Icons*/ +.badge-lists.badge-icons span.badge { + min-width: 12px; + padding: 3px 6px; + } + +.badge-lists.badge-icons i { + font-size: 18px; + min-width: 25px; +} + +/*Badge Box v1*/ +.badge-box-v1 a { + color: #777; + min-width: 40px; + font-size: 18px; + padding: 8px 9px; + display: inline-block; + border: solid 1px #eee; +} + +/*Badge Box v2*/ +.badge-box-v2 a { + color: #777; + font-size: 12px; + padding: 10px; + min-width: 70px; + text-align: center; + display: inline-block; + border: solid 1px #eee; +} + +.badge-box-v2 a i { + font-size: 20px; +} + +/*General Badge Box*/ +.badge-box-v1 a i, +.badge-box-v2 a i { + display: block; + margin: 1px auto 2px; +} + +.badge-box-v1 a:hover, +.badge-box-v2 a:hover { + color: #555; + border-color: #555; + text-decoration: none; + -webkit-transition: all 0.2s ease-in-out; + -moz-transition: all 0.2s ease-in-out; + -o-transition: all 0.2s ease-in-out; + transition: all 0.2s ease-in-out; +} + +/*Icons +------------------------------------*/ +/*Social Icons*/ +.social-icons { + margin: 0; + padding: 0; +} + +.social-icons li { + list-style: none; + margin-right: 3px; + margin-bottom: 5px; + text-indent: -9999px; + display: inline-block; +} + +.social-icons li a, a.social-icon { + width: 28px; + height: 28px; + display: block; + background-position: 0 0; + background-repeat: no-repeat; + transition: all 0.3s ease-in-out; + -o-transition: all 0.3s ease-in-out; + -ms-transition: all 0.3s ease-in-out; + -moz-transition: all 0.3s ease-in-out; + -webkit-transition: all 0.3s ease-in-out; +} + +.social-icons li:hover a { + background-position: 0 -38px; +} + +.social-icons-color li a { + opacity: 0.7; + background-position: 0 -38px !important; + -webkit-backface-visibility: hidden; /*For Chrome*/ +} + +.social-icons-color li a:hover { + opacity: 1; +} + +.social_amazon {background: url(../img/icons/social/amazon.png) no-repeat;} +.social_behance {background: url(../img/icons/social/behance.png) no-repeat;} +.social_blogger {background: url(../img/icons/social/blogger.png) no-repeat;} +.social_deviantart {background: url(../img/icons/social/deviantart.png) no-repeat;} +.social_dribbble {background: url(../img/icons/social/dribbble.png) no-repeat;} +.social_dropbox {background: url(../img/icons/social/dropbox.png) no-repeat;} +.social_evernote {background: url(../img/icons/social/evernote.png) no-repeat;} +.social_facebook {background: url(../img/icons/social/facebook.png) no-repeat;} +.social_forrst {background: url(../img/icons/social/forrst.png) no-repeat;} +.social_github {background: url(../img/icons/social/github.png) no-repeat;} +.social_googleplus {background: url(../img/icons/social/googleplus.png) no-repeat;} +.social_jolicloud {background: url(../img/icons/social/jolicloud.png) no-repeat;} +.social_last-fm {background: url(../img/icons/social/last-fm.png) no-repeat;} +.social_linkedin {background: url(../img/icons/social/linkedin.png) no-repeat;} +.social_picasa {background: url(../img/icons/social/picasa.png) no-repeat;} +.social_pintrest {background: url(../img/icons/social/pintrest.png) no-repeat;} +.social_rss {background: url(../img/icons/social/rss.png) no-repeat;} +.social_skype {background: url(../img/icons/social/skype.png) no-repeat;} +.social_spotify {background: url(../img/icons/social/spotify.png) no-repeat;} +.social_stumbleupon {background: url(../img/icons/social/stumbleupon.png) no-repeat;} +.social_tumblr {background: url(../img/icons/social/tumblr.png) no-repeat;} +.social_twitter {background: url(../img/icons/social/twitter.png) no-repeat;} +.social_vimeo {background: url(../img/icons/social/vimeo.png) no-repeat;} +.social_wordpress {background: url(../img/icons/social/wordpress.png) no-repeat;} +.social_xing {background: url(../img/icons/social/xing.png) no-repeat;} +.social_yahoo {background: url(../img/icons/social/yahoo.png) no-repeat;} +.social_youtube {background: url(../img/icons/social/youtube.png) no-repeat;} +.social_vk {background: url(../img/icons/social/vk.png) no-repeat;} + +/*Font Awesome Icon Styles*/ +i.icon-custom { + color: #555; + width: 40px; + height: 40px; + font-size: 20px; + line-height: 40px; + margin-bottom: 5px; + text-align: center; + display: inline-block; + border: solid 1px #555; +} + +i.icon-sm { + width: 35px; + height: 35px; + font-size: 16px; + line-height: 35px; +} + +i.icon-lg { + width: 60px; + height: 60px; + font-size: 31px; + line-height: 60px; + margin-bottom: 10px; +} + +i.icon-2x { + font-size: 30px; +} +i.icon-3x { + font-size: 40px; +} +i.icon-4x { + font-size: 50px; +} + +/*Line Icons*/ +i.icon-line { + font-size: 17px; +} +i.icon-sm.icon-line { + font-size: 14px; +} +i.icon-lg.icon-line { + font-size: 28px; +} + +i.icon-2x.icon-line { + font-size: 27px; +} +i.icon-3x.icon-line { + font-size: 36px; +} +i.icon-4x.icon-line { + font-size: 47px; +} + +/*Icon Styles For Links*/ +.link-icon, +.link-bg-icon { + color: #555; +} + +.link-icon:hover, +.link-bg-icon:hover { + border: none; + text-decoration: none; +} + +.link-icon:hover i { + color: #72c02c; + background: none; + border: solid 1px #72c02c; +} + +.link-bg-icon:hover i { + color: #72c02c; + background: #72c02c; + border-color: #72c02c; + color: #fff !important; +} + +/*Icons Color*/ +i.icon-color-u, +i.icon-color-red, +i.icon-color-sea, +i.icon-color-dark, +i.icon-color-grey, +i.icon-color-blue, +i.icon-color-green, +i.icon-color-yellow, +i.icon-color-orange, +i.icon-color-purple, +i.icon-color-aqua, +i.icon-color-brown, +i.icon-color-dark-blue, +i.icon-color-light-grey, +i.icon-color-light-green, { + background: none; +} + +i.icon-color-u { + color: #72c02c; + border: solid 1px #72c02c; +} +i.icon-color-blue { + color: #3498db; + border: solid 1px #3498db; +} +i.icon-color-red { + color: #e74c3c; + border: solid 1px #e74c3c; +} +i.icon-color-sea { + color: #1abc9c; + border: solid 1px #1abc9c; +} +i.icon-color-green { + color: #2ecc71; + border: solid 1px #2ecc71; +} +i.icon-color-yellow { + color: #f1c40f; + border: solid 1px #f1c40f; +} +i.icon-color-orange { + color: #e67e22; + border: solid 1px #e67e22; +} +i.icon-color-grey { + color: #95a5a6; + border: solid 1px #95a5a6; +} +i.icon-color-purple { + color: #9b6bcc; + border: solid 1px #9b6bcc; +} +i.icon-color-aqua { + color: #27d7e7; + border: solid 1px #27d7e7; +} +i.icon-color-brown { + color: #9c8061; + border: solid 1px #9c8061; +} +i.icon-color-dark-blue { + color: #4765a0; + border: solid 1px #4765a0; +} +i.icon-color-light-green { + color: #79d5b3; + border: solid 1px #79d5b3; +} +i.icon-color-light { + color: #fff; + border: solid 1px #fff; +} +i.icon-color-light-grey { + color: #585f69; + border: solid 1px #585f69; +} + +/*Icons Backgroun Color*/ +i.icon-bg-u, +i.icon-bg-red, +i.icon-bg-sea, +i.icon-bg-dark, +i.icon-bg-grey, +i.icon-bg-blue, +i.icon-bg-green, +i.icon-bg-yellow, +i.icon-bg-orange, +i.icon-bg-purple, +i.icon-bg-aqua, +i.icon-bg-brown, +i.icon-bg-dark-blue, +i.icon-bg-light-grey, +i.icon-bg-light-green { + color: #fff; + border-color: transparent; +} + +i.icon-bg-u { + background: #72c02c; +} +i.icon-bg-blue { + background: #3498db; +} +i.icon-bg-red { + background: #e74c3c; +} +i.icon-bg-sea { + background: #1abc9c; +} +i.icon-bg-green { + background: #2ecc71; +} +i.icon-bg-yellow { + background: #f1c40f; +} +i.icon-bg-orange { + background: #e67e22; +} +i.icon-bg-grey { + background: #95a5a6; +} +i.icon-bg-dark { + background: #555; +} +i.icon-bg-purple { + background: #9b6bcc; +} +i.icon-bg-aqua { + background: #27d7e7; +} +i.icon-bg-brown { + background: #9c8061; +} +i.icon-bg-dark-blue { + background: #4765a0; +} +i.icon-bg-light-green { + background: #79d5b3; +} +i.icon-bg-light { + background: #fff; + border-color: transparent; +} +i.icon-bg-light-grey { + background: #585f69; + border-color: transparent; +} + +/* Make Font Awesome icons fixed width */ +.fa-fixed [class^="fa"], +.fa-fixed [class*=" fa"] { + width: 1.25em; + text-align: center; + display: inline-block; +} +.fa-fixed [class^="fa"].fa-lg, +.fa-fixed [class*=" fa"].fa-lg { + /* increased font size for fa-lg */ + width: 1.5625em; +} + +/*Content Boxes +------------------------------------*/ +/*Content Boxes v1*/ +.content-boxes-v1 { + text-align: center; +} + +.content-boxes-v1 span { + display: block; + margin-top: 5px; +} + +/*Content Boxes v2*/ +@media (max-width: 992px) { + .content-boxes-v2, + .content-boxes-v2 .text-justify { + text-align: center; + } + + .content-boxes-v2 span { + display: block; + margin-top: 5px; + } +} + +/*Content Boxes v3*/ +.content-boxes-v3 { + margin-bottom: 15px; +} + +.content-boxes-v3 i { + top: 8px; + float: left; + position: relative; +} + +.content-boxes-v3 .content-boxes-in-v3 { + padding: 0 10px; + overflow: hidden; +} + +.content-boxes-v3 .content-boxes-in-v3 h3 { + font-size: 18px; + line-height: 22px; + margin-bottom: 3px; + text-transform: capitalize; +} + +.content-boxes-v3 .content-boxes-in-v3 h3 a { + color: #555; +} + +/*Colored Content Boxes +------------------------------------*/ +.servive-block { + padding: 30px 30px; + text-align: center; + margin-bottom: 20px; + min-height: 200px; +} + +.servive-block p, +.servive-block h2 { + color: #fff; +} + +.servive-block h2 a:hover{ + text-decoration: none; +} + +.servive-block-light, +.servive-block-default { + background: #fafafa; + border: solid 1px #eee; +} + +.servive-block-default:hover { + box-shadow: 0 0 8px #eee; +} + +.servive-block-light p, +.servive-block-light h2, +.servive-block-default p, +.servive-block-default h2 { + color: #555; +} + +.servive-block-u { + background: #72c02c; +} +.servive-block-blue { + background: #3498db; +} +.servive-block-red { + background: #e74c3c; +} +.servive-block-sea { + background: #1abc9c; +} +.servive-block-grey { + background: #95a5a6; +} +.servive-block-yellow { + background: #f1c40f; +} +.servive-block-orange { + background: #e67e22; +} +.servive-block-green { + background: #2ecc71; +} +.servive-block-purple { + background: #9b6bcc; +} +.servive-block-aqua { + background: #27d7e7; +} +.servive-block-brown { + background: #9c8061; +} +.servive-block-dark-blue { + background: #4765a0; +} +.servive-block-light-green { + background: #79d5b3; +} +.servive-block-dark { + background: #555; +} +.servive-block-light { + background: #ecf0f1; +} + +/*Funny Boxes +------------------------------------*/ +.funny-boxes { + overflow: hidden; + padding: 15px 20px; + margin-bottom: 25px; + background: #f7f7f7; + -webkit-transition:all 0.3s ease-in-out; + -moz-transition:all 0.3s ease-in-out; + -o-transition:all 0.3s ease-in-out; + transition:all 0.3s ease-in-out; +} + +.funny-boxes h2 a { + color: #555; +} + +.funny-boxes p a { + color: #72c02c; +} + +.funny-boxes .funny-boxes-img li i { + color: #72c02c; + font-size: 12px; + margin-right: 5px; +} + +.funny-boxes .funny-boxes-img img { + display: block; + margin: 5px 10px 10px 0; +} + +.funny-boxes h2 { + margin-top: 0; + font-size: 20px; + line-height: 20px; +} + +.funny-boxes ul.funny-boxes-rating li { + display: inline; +} + +.funny-boxes ul.funny-boxes-rating li i { + color: #f8be2c; + cursor: pointer; + font-size: 16px; +} + +.funny-boxes ul.funny-boxes-rating li i:hover { + color: #f8be2c; +} + +/*Funny Colored Boxes*/ +.funny-boxes-colored p, +.funny-boxes-colored h2 a, +.funny-boxes-colored .funny-boxes-img li, +.funny-boxes-colored .funny-boxes-img li i { + color: #fff !important; +} + +/*Red Funny Box*/ +.funny-boxes-red { + background: #e74c3c; +} + +/*Blue Funny Box*/ +.funny-boxes-blue { + background: #3498db; +} + +/*Grey Funny Box*/ +.funny-boxes-grey { + background: #95a5a6; +} + +/*Turquoise Funny Box*/ +.funny-boxes-sea { + background: #1abc9c; +} + +/*Turquoise Top Bordered Funny Box*/ +.funny-boxes-top-sea { + border-top: solid 2px #1abc9c; +} + +.funny-boxes-top-sea:hover { + border-top-color: #16a085; +} + +/*Yellow Top Bordered Funny Box**/ +.funny-boxes-top-yellow { + border-top: solid 2px #f1c40f; +} + +.funny-boxes-top-yellow:hover { + border-top-color: #f39c12; +} + +/*Orange Left Bordered Funny Box**/ +.funny-boxes-left-orange { + border-left: solid 2px #e67e22; +} + +.funny-boxes-left-orange:hover { + border-left-color: #d35400; +} + +/*Green Left Bordered Funny Box**/ +.funny-boxes-left-green { + border-left: solid 2px #72c02c; +} + +.funny-boxes-left-green:hover { + border-left-color: #5fb611; +} + +/*Green Right Bordered Funny Box**/ +.funny-boxes-right-u { + border-right: solid 2px #72c02c; +} + +.funny-boxes-right-u:hover { + border-right-color: #5fb611; +} + +/*Typography +------------------------------------*/ +/*Text Dropcap*/ +.dropcap { + float: left; + color: #72c02c; + padding: 5px 0; + font-size: 45px; + font-weight: 200; + line-height: 30px; + margin: 0px 5px 0 0; +} + +.dropcap-bg { + float: left; + color: #fff; + padding: 7px 0; + min-width: 50px; + font-size: 35px; + font-weight: 200; + line-height: 35px; + text-align: center; + background: #72c02c; + margin: 4px 10px 0 0; +} + +/*Text Highlights*/ +.text-highlights { + color: #fff; + font-weight: 200; + padding: 0px 5px; + background: #555; +} + +.text-highlights-green { + background: #72c02c; +} +.text-highlights-blue { + background: #3498db; +} +.text-highlights-red { + background: #e74c3c; +} +.text-highlights-sea { + background: #1abc9c; +} +.text-highlights-orange { + background: #e67e22; +} +.text-highlights-yellow { + background: #f1c40f; +} +.text-highlights-purple { + background: #9b6bcc; +} +.text-highlights-aqua { + background: #27d7e7; +} +.text-highlights-brown { + background: #9c8061; +} +.text-highlights-dark-blue { + background: #4765a0; +} +.text-highlights-light-green { + background: #79d5b3; +} + +/*Text Borders*/ +.text-border { + border-bottom: dashed 1px #555; +} + +.text-border-default { + border-color: #95a5a6; +} +.text-border-green { + border-color: #72c02c; +} +.text-border-blue { + border-color: #3498db; +} +.text-border-red { + border-color: #e74c3c; +} +.text-border-yellow { + border-color: #f1c40f; +} +.text-border-purple { + border-color: #9b6bcc; +} + +/*List Styles*/ +.list-styles li { + margin-bottom: 8px; +} + +/*Tooltip*/ +.tooltips-show { + position: relative; +} + +/*Contextual Backgrounds*/ +.contex-bg p { + opacity: 0.8; + padding: 8px 10px; +} +.contex-bg p:hover { + opacity: 1; +} + +/*Blockquote*/ +blockquote { + padding: 5px 15px; + border-left-width: 2px; +} + +blockquote p { + font-size: 14px; + font-weight: 400; +} + +blockquote h1, +blockquote h2, +blockquote span { + font-size: 18px; + margin: 0 0 8px; + line-height: 24px; +} + +/*Blockquote Styles*/ +blockquote.bq-text-lg p, +blockquote.bq-text-lg small { + text-transform: uppercase; +} + +blockquote.bq-text-lg p { + font-size: 22px; + font-weight: 300; + line-height: 32px; +} + +blockquote.text-right, +blockquote.hero.text-right { + border-left: none; + border-right: 2px solid #eee; +} + +blockquote.hero.text-right, +blockquote.hero.text-right:hover { + border-color: #555; +} + +blockquote:hover, +blockquote.text-right:hover { + border-color: #72c02c; + -webkit-transition: all 0.4s ease-in-out; + -moz-transition: all 0.4s ease-in-out; + -o-transition: all 0.4s ease-in-out; + transition: all 0.4s ease-in-out; +} + +blockquote.bq-dark, +blockquote.bq-dark:hover { + border-color: #585f69; +} + +blockquote.bq-green { + border-color: #72c02c; +} + +/*Blockquote Hero Styles*/ +blockquote.hero { + border: none; + padding: 18px; + font-size: 16px; + background: #f3f3f3; + border-left: solid 2px #666; +} + +blockquote.hero:hover { + background: #eee; + border-left-color: #666; +} + +blockquote.hero.hero-dark, +blockquote.hero.hero-default { + border: none; +} + +blockquote.hero.hero-dark { + background: #444; +} + +blockquote.hero.hero-dark:hover { + background: #555; +} + +blockquote.hero.hero-default { + background: #72c02c; +} + +blockquote.hero.hero-default:hover { + background: #5fb611; +} + +blockquote.hero.hero-dark p, +blockquote.hero.hero-dark h2, +blockquote.hero.hero-dark small, +blockquote.hero.hero-default p, +blockquote.hero.hero-default h2, +blockquote.hero.hero-default small { + color: #fff; + font-weight: 200; +} + +/*Tag Boxes +------------------------------------*/ +.tag-box { + padding: 20px; + background: #fff; + margin-bottom: 30px; +} + +.tag-box h2 { + font-size: 20px; + line-height: 25px; +} + +.tag-box p { + margin-bottom: 0; +} + +.tag-box.tag-text-space p { + margin-bottom: 10px; +} + +/*Tag Boxes v1*/ +.tag-box-v1 { + border: solid 1px #eee; + border-top: solid 2px #72c02c; +} + +/*Tag Boxes v2*/ +.tag-box-v2 { + background: #fafafa; + border: solid 1px #eee; + border-left: solid 2px #72c02c; +} + +/*Tag Boxes v3*/ +.tag-box-v3 { + border: solid 2px #eee; +} + +/*Tag Boxes v4*/ +.tag-box-v4 { + border: dashed 1px #bbb; +} + +/*Tag Boxes v5*/ +.tag-box-v5 { + margin: 20px 0; + text-align: center; + border: dashed 1px #ccc; +} + +.tag-box-v5 span { + color: #555; + font-size: 28px; + margin-bottom: 0; +} + +/*Tag Boxes v6*/ +.tag-box-v6 { + background: #fafafa; + border: solid 1px #eee; +} + +/*Tag Boxes v7*/ +.tag-box-v7 { + border: solid 1px #eee; + border-bottom: solid 2px #72c02c; +} + +/*Testimonials +------------------------------------*/ +/*Testimonials*/ +.testimonials { + margin-bottom: 10px; +} + +.testimonials .testimonial-info { + color: #72c02c; + font-size: 16px; + padding: 0 15px; + margin-top: 18px; +} + +.testimonials .testimonial-info span { + top: 3px; + position: relative; +} + +.testimonials .testimonial-info em { + color: #777; + display: block; + font-size: 13px; +} + +.testimonials .testimonial-info img { + width: 60px; + float: left; + height: 60px; + padding: 2px; + margin-right: 15px; + border: solid 1px #ccc; +} + +.testimonials .testimonial-author { + overflow: hidden; +} + +.testimonials .carousel-arrow { + top: -65px; + position: relative; +} + +.testimonials .carousel-arrow i { + color: #777; + padding: 2px; + min-width: 25px; + font-size: 20px; + text-align: center; + background: #f5f5f5; +} + +.testimonials .carousel-arrow i:hover { + color: #fff; + background: #72c02c; +} + +.testimonials .carousel-control { + opacity: 1; + width: 100%; + text-align: right; + text-shadow: none; + position: absolute; + filter: Alpha(opacity = 100); /*For IE*/ +} + +.testimonials .carousel-control.left { + right: 27px; + left: auto; +} +.testimonials .carousel-control.right { + right: 0px; +} + +/*Testimonials v1*/ +.testimonials.testimonials-v1 .item p { + position: relative; +} + +.testimonials.testimonials-v1 .item p:after, +.testimonials.testimonials-v1 .item p:before { + left: 80px; + bottom: -20px; +} + +.testimonials.testimonials-v1 .item p:after { + border-top: 22px solid; + border-left: 0 solid transparent; + border-right: 22px solid transparent; +} + +/*Testimonials v2*/ +.testimonials.testimonials-v2 .testimonial-info { + padding: 0 20px; +} + +.testimonials.testimonials-v2 p { + padding-bottom: 15px; +} + +.testimonials.testimonials-v2 .carousel-arrow { + top: -55px; +} + +.testimonials.testimonials-v2 .item p:after, +.testimonials.testimonials-v2 .item p:before { + left: 8%; + bottom: 45px; +} + +.testimonials.testimonials-v2 .item p:after { + border-top: 20px solid; + border-left: 25px solid transparent; + border-right: 0px solid transparent; +} + +/*General Testimonials v1/v2*/ +.testimonials.testimonials-v1 p, +.testimonials.testimonials-v2 p { + padding: 15px; + font-size: 14px; + font-style: italic; + background: #f5f5f5; +} + +.testimonials.testimonials-v1 .item p:after, +.testimonials.testimonials-v2 .item p:after { + width: 0; + height: 0; + content: " "; + display: block; + position: absolute; + border-top-color: #f5f5f5; + border-left-style: inset; /*FF fixes*/ + border-right-style: inset; /*FF fixes*/ +} + +/*Testimonials Backgrounds*/ +.testimonials-bg-dark .item p, +.testimonials-bg-default .item p { + color: #fff; + font-weight: 200; +} + +.testimonials-bg-dark .carousel-arrow i, +.testimonials-bg-default .carousel-arrow i { + color: #fff; +} + +/*Testimonials Default*/ +.testimonials-bg-default .item p { + background: #72c02c; +} + +.testimonials.testimonials-bg-default .item p:after, +.testimonials.testimonials-bg-default .item p:after { + border-top-color: #72c02c; +} + +.testimonials-bg-default .carousel-arrow i { + background: #72c02c; +} + +.testimonials.testimonials-bg-default .carousel-arrow i:hover { + background: #5fb611; +} + +/*Testimonials Dark*/ +.testimonials-bg-dark .item p { + background: #555; +} + +.testimonials.testimonials-bg-dark .item p:after, +.testimonials.testimonials-bg-dark .item p:after { + border-top-color: #555; +} + +.testimonials-bg-dark .carousel-arrow i { + color: #fff; + background: #555; +} + +.testimonials.testimonials-bg-dark .carousel-arrow i:hover { + background: #333; +} + +.testimonials.testimonials-bg-dark .testimonial-info { + color: #555; +} + +/*Panels (Portlets) +------------------------------------*/ +.panel-heading { + color: #fff; + padding: 5px 15px; +} + +/*Panel Table*/ +.panel .table { + margin-bottom: 0; +} + +/*Panel Unify*/ +.panel-u { + border-color: #72c02c; +} + +.panel-u > .panel-heading { + background: #72c02c; +} + +/*Panel Blue*/ +.panel-blue { + border-color: #3498db; +} + +.panel-blue > .panel-heading { + background: #3498db; +} + +/*Panel Red*/ +.panel-red { + border-color: #e74c3c; +} + +.panel-red > .panel-heading { + background: #e74c3c; +} + +/*Panel Green*/ +.panel-green { + border-color: #2ecc71; +} + +.panel-green > .panel-heading { + background: #2ecc71; +} + +/*Panel Sea*/ +.panel-sea { + border-color: #1abc9c; +} + +.panel-sea > .panel-heading { + background: #1abc9c; +} + +/*Panel Orange*/ +.panel-orange { + border-color: #e67e22; +} + +.panel-orange > .panel-heading { + background: #e67e22; +} + +/*Panel Yellow*/ +.panel-yellow { + border-color: #f1c40f; +} + +.panel-yellow > .panel-heading { + background: #f1c40f; +} + +/*Panel Grey*/ +.panel-grey { + border-color: #95a5a6; +} + +.panel-grey > .panel-heading { + background: #95a5a6; +} + +/*Panel Dark*/ +.panel-dark { + border-color: #555; +} + +.panel-dark > .panel-heading { + background: #555; +} + +/*Panel Purple*/ +.panel-purple { + border-color: #9b6bcc; +} + +.panel-purple > .panel-heading { + background: #9b6bcc; +} + +/*Panel Aqua*/ +.panel-aqua { + border-color: #27d7e7; +} + +.panel-aqua > .panel-heading { + background: #27d7e7; +} + +/*Panel Brown*/ +.panel-brown { + border-color: #9c8061; +} + +.panel-brown > .panel-heading { + background: #9c8061; +} + +/*Panel Dark Blue*/ +.panel-dark-blue { + border-color: #4765a0; +} + +.panel-dark-blue > .panel-heading { + background: #4765a0; +} + +/*Panel Light Green*/ +.panel-light-green { + border-color: #79d5b3; +} + +.panel-light-green > .panel-heading { + background: #79d5b3; +} + +/*Panel Default Dark*/ +.panel-default-dark { + border-color: #585f69; +} + +.panel-default-dark > .panel-heading { + background: #585f69; +} + +/*Progress Bar +------------------------------------*/ +.progress-u { + box-shadow: none; +} + +.progress-u .progress-bar { + box-shadow: none; +} + +/*progress-bar (sizes)*/ +.progress-lg { + height: 25px; +} +.progress-lg p { + padding-top: 3px; +} + +.progress-sm { + height: 12px; +} + +.progress-xs { + height: 7px; +} + +.progress-xxs { + height: 3px; +} + +/*progress-bar (colors)*/ +.progress { + background: #e5e5e5; +} + +.progress-bar-u { + background: #72c02c; +} + +.progress-bar-blue { + background: #3498db; +} + +.progress-bar-orange { + background: #e67e22; +} + +.progress-bar-red { + background: #e74c3c; +} + +.progress-bar-purple { + background: #9b6bcc; +} + +.progress-bar-aqua { + background: #27d7e7; +} + +.progress-bar-brown { + background: #9c8061; +} + +.progress-bar-dark-blue { + background: #4765a0; +} + +.progress-bar-light-green { + background: #79d5b3; +} + +.progress-bar-dark { + background: #555; +} + +/*Count Stars +------------------------------------*/ +.stars-existing { + color: #72c02c; + cursor: pointer; +} + +.star-lg { + font-size: 30px; +} + +.star-sm { + font-size: 25px; +} + +.star-xs { + font-size: 20px; +} + +.star-default { + font-size: 16px; +} + +/*Media (Audio/Videos and Images) +------------------------------------*/ +/*Images*/ +img.img-bordered { + padding: 3px; + border: solid 1px #eee; +} + +img.img-circle { + border-radius: 50% !important; +} + +/*Responsive Video*/ +.responsive-video { + height: 0; + padding-top: 1px; + position: relative; + margin-bottom: -3px; + padding-bottom: 56.25%; /*16:9*/ +} + +.responsive-video iframe { + top: 0; + left: 0; + width: 100%; + height: 100%; + position: absolute; +} + +/*Spaces +------------------------------------*/ +.margin-left-5 { margin-left: 5px;} +.margin-right-5 { margin-right: 5px;} + +.no-top-space { + margin-top: 0; + padding-top: 0; +} + +.no-bottom-space { + margin-bottom: 0; + padding-bottom: 0; +} + +.margin-bottom-5, +.margin-bottom-10, +.margin-bottom-15, +.margin-bottom-20, +.margin-bottom-25, +.margin-bottom-30, +.margin-bottom-35, +.margin-bottom-40, +.margin-bottom-45, +.margin-bottom-50, +.margin-bottom-55, +.margin-bottom-60 { + clear:both; +} +.margin-bottom-5 { margin-bottom:5px;} +.margin-bottom-10 { margin-bottom:10px;} +.margin-bottom-15 { margin-bottom:15px;} +.margin-bottom-20 { margin-bottom:20px;} +.margin-bottom-25 { margin-bottom:25px;} +.margin-bottom-30 { margin-bottom:30px;} +.margin-bottom-35 { margin-bottom:35px;} +.margin-bottom-40 { margin-bottom:40px;} +.margin-bottom-45 { margin-bottom:45px;} +.margin-bottom-50 { margin-bottom:50px;} +.margin-bottom-55 { margin-bottom:55px;} +.margin-bottom-60 { margin-bottom:60px;} + +@media (max-width: 768px) { + .sm-margin-bottom-10 { + margin-bottom: 10px; + } + .sm-margin-bottom-20 { + margin-bottom: 20px; + } + .sm-margin-bottom-30 { + margin-bottom: 30px; + } + .sm-margin-bottom-40 { + margin-bottom: 40px; + } + .sm-margin-bottom-50 { + margin-bottom: 50px; + } + .sm-margin-bottom-60 { + margin-bottom: 60px; + } +} + +@media (max-width: 992px) { + .md-margin-bottom-10 { + margin-bottom: 10px; + } + .md-margin-bottom-20 { + margin-bottom: 20px; + } + .md-margin-bottom-30 { + margin-bottom: 30px; + } + .md-margin-bottom-40 { + margin-bottom: 40px; + } + .md-margin-bottom-50 { + margin-bottom: 50px; + } + .md-margin-bottom-60 { + margin-bottom: 60px; + } +} + +/*Text Colors +------------------------------------*/ +.color-sea { color: #1abc9c;} +.color-red { color: #e74c3c;} +.color-aqua { color: #27d7e7;} +.color-blue { color: #3498db;} +.color-grey { color: #95a5a6;} +.color-dark { color: #555555;} +.color-green { color: #72c02c;} +.color-brown { color: #9c8061;} +.color-light { color: #ffffff;} +.color-orange { color: #e67e22;} +.color-green1 { color: #2ecc71;} +.color-purple { color: #9b6bcc;} +.color-dark-blue { color: #4765a0;} +.color-light-grey { color: #585f69;} +.color-light-green { color: #79d5b3;} + +/*Background Colors +------------------------------------*/ +.bg-color-dark, +.bg-color-sea, +.bg-color-red, +.bg-color-aqua, +.bg-color-blue, +.bg-color-grey, +.bg-color-green, +.bg-color-brown, +.bg-color-orange, +.bg-color-green1, +.bg-color-purple, +.bg-color-dark-blue, +.bg-color-light-grey, +.bg-color-light-green { + color: #fff; +} +.bg-color-dark { background-color: #555;} +.bg-color-sea { background-color: #1abc9c;} +.bg-color-red { background-color: #e74c3c;} +.bg-color-aqua { background-color: #27d7e7;} +.bg-color-blue { background-color: #3498db;} +.bg-color-grey { background-color: #95a5a6;} +.bg-color-green { background-color: #72c02c;} +.bg-color-brown { background-color: #9c8061;} +.bg-color-orange { background-color: #e67e22;} +.bg-color-green1 { background-color: #2ecc71;} +.bg-color-purple { background-color: #9b6bcc;} +.bg-color-dark-blue { background-color: #4765a0;} +.bg-color-light-grey { background-color: #585f69;} +.bg-color-light-green { background-color: #79d5b3;} + +/*Rounded and Circle Classes +------------------------------------*/ +.rounded { border-radius: 4px !important;} +.rounded-x { border-radius: 50% !important;} +.rounded-2x { border-radius: 10px !important;} +.rounded-3x { border-radius: 15px !important;} +.rounded-4x { border-radius: 20px !important;} +.rounded-top { border-radius: 4px 4px 0 0 !important;} +.rounded-left { border-radius: 4px 0 0 4px !important;} +.rounded-right { border-radius: 0 4px 4px 0 !important;} +.rounded-bottom { border-radius: 0 0 4px 4px !important;} + +/*Others +------------------------------------*/ +.overflow-h { overflow: hidden;} +.overflow-a { overflow: auto;} +.overflow-hidden { overflow:hidden;} + +.lft-img-margin { margin:0 20px 5px 0;} +.rgt-img-margin { margin:0 0 5px 10px;} + +.padding-left-5 { padding-left:5px;} +.img-width-200 { width:200px;} + +/*Misc*/ +.content { + padding-top: 40px; + padding-bottom: 40px; +} + +.text-justify p { + text-align: justify; +} + +/*Background Light*/ +.bg-light { + padding:10px 15px; + margin-bottom:10px; + background:#fcfcfc; + border:solid 1px #e5e5e5; +} +.bg-light:hover { + border:solid 1px #bbb; +} + +/*CSS3 Hover Effects*/ +.hover-effect { + -webkit-transition: all 0.4s ease-in-out; + -moz-transition: all 0.4s ease-in-out; + -o-transition: all 0.4s ease-in-out; + transition: all 0.4s ease-in-out; +} +.hover-effect-kenburn { + left:10px; + margin-left:-10px; + position:relative; + -webkit-transition: all 0.8s ease-in-out; + -moz-transition: all 0.8s ease-in-out; + -o-transition: all 0.8s ease-in-out; + -ms-transition: all 0.8s ease-in-out; + transition: all 0.8s ease-in-out; +} +.hover-effect-kenburn:hover { + -webkit-transform: scale(2) rotate(5deg); + -moz-transform: scale(2) rotate(5deg); + -o-transform: scale(2) rotate(5deg); + -ms-transform: scale(2) rotate(5deg); + transform: scale(2) rotate(5deg); +} diff --git a/arches/app/media/css/page_404_error3.css b/arches/app/media/css/page_404_error3.css index ebe18aafd5a..8e0b22f7026 100644 --- a/arches/app/media/css/page_404_error3.css +++ b/arches/app/media/css/page_404_error3.css @@ -1,49 +1,49 @@ -/*Wrapping element for Sticky-Footer*/ -html { - min-height: 100%; - position: relative; -} -body { - /* Margin bottom by footer height */ - margin-bottom: 60px; -} - -/*404 Error Page V4 -------------------------------------*/ -.error-v4 { - padding-top: 30px; - text-align: center; -} - -.error-v4 img { - margin-bottom: 20px; -} - -.error-v4 h1 { - color: #eee; - font-size: 220px; - line-height: 260px; -} - -.error-v4 span.sorry { - color: #fff; - display: block; - font-size: 25px; - padding-bottom: 40px; -} - -/*Sticky-Footer -------------------------------------*/ -.sticky-footer { - position: absolute; - bottom: 0; - width: 100%; - padding: 20px; - /* Set the fixed height of the footer here */ - height: 60px; -} - -.sticky-footer .copyright-space { - color: #eee; - text-align: center; +/*Wrapping element for Sticky-Footer*/ +html { + min-height: 100%; + position: relative; +} +body { + /* Margin bottom by footer height */ + margin-bottom: 60px; +} + +/*404 Error Page V4 +------------------------------------*/ +.error-v4 { + padding-top: 30px; + text-align: center; +} + +.error-v4 img { + margin-bottom: 20px; +} + +.error-v4 h1 { + color: #eee; + font-size: 220px; + line-height: 260px; +} + +.error-v4 span.sorry { + color: #fff; + display: block; + font-size: 25px; + padding-bottom: 40px; +} + +/*Sticky-Footer +------------------------------------*/ +.sticky-footer { + position: absolute; + bottom: 0; + width: 100%; + padding: 20px; + /* Set the fixed height of the footer here */ + height: 60px; +} + +.sticky-footer .copyright-space { + color: #eee; + text-align: center; } \ No newline at end of file diff --git a/arches/app/media/css/page_job_inner.css b/arches/app/media/css/page_job_inner.css index d2cdfbfd609..fe9f06b8520 100644 --- a/arches/app/media/css/page_job_inner.css +++ b/arches/app/media/css/page_job_inner.css @@ -1,233 +1,233 @@ -/*Center Icon*/ -.center-icon { - left: 50%; - top: -22px; - color: #585f69; - min-width: 45px; - font-size: 23px; - background: #fff; - padding: 10px 5px; - text-align: center; - position: absolute; - margin: 0 10px 0 -22px; - border: 1px solid #eee; -} - -/*Wrapping element for colorful background Block-Description, Job_Team -------------------------------------*/ -.block-description, -.job-team { - padding: 40px 0 30px; - position: relative; - background: #f9f9f9; - border-top: 1px solid #eee; -} - -/*Wrapping element for white background Block-Level-v2, Contacts -------------------------------------*/ -.block-level-v2, -.contacts { - padding: 30px 0; - background: #fff; - position: relative; - border-top: 1px solid #eee; -} - -/*Block Description -------------------------------------*/ -.block-description { - padding-bottom: 80px !important; -} - -/*Left-Inner*/ -.block-description .left-inner { - padding: 20px; - background: #fff; - position: relative; -} - -.block-description .left-inner .hex { - color: #999; - margin-bottom: 0; -} - -.block-description .left-inner i.position-top { - top: 20px; - right: 20px; - color: #585f69; - font-size: 18px; - position: absolute; -} - -.block-description .left-inner img { - float: left; - width: 80px; - height: auto; - padding: 3px; - margin: 0 10px 10px 0; - border: 1px solid #eee; -} - -.block-description .left-inner h3 { - margin: 0 0 5px; -} - -.block-description .left-inner p.hex { - margin-bottom: 5px; -} - -.block-description .star-vote { - float: left; - margin-right: 10px; -} - -.block-description .star-vote li { - padding: 0; -} - -/*Progresses*/ -.block-description .progression span { - float: left; - width: 150px; - margin: -8px 15px 0 0; -} - -/*Right Inner*/ -.block-description .right-inner { - padding: 20px; - background: #fff; -} - -.block-description .right-inner img { - float: left; - width: 90px; - height: auto; - margin-right: 10px; -} - -.block-description .right-inner .font-s { - font-size: 18px; -} - -.block-description .right-inner hr { - margin: 15px 0; -} - -/*P chart v2*/ -.block-description .p-chart { - overflow: hidden; -} - -.block-description .p-chart h3 { - font-size: 16px; -} - -.block-description .p-chart .circle { - float: left; - margin-right: 10px; -} - -.block-description .p-chart .overflow-h li i, -.block-description .p-chart .overflow-h li a { - color: #72c02c; -} - -.block-description .p-chart .overflow-h li a { - font-size: 11px; -} - -/*Circle in Responsive*/ -@media (max-width: 450px) { - .block-description .p-chart.col-xs-6 { - width: 100%; - } -} - -/*Save Job*/ -.block-description .save-job li { - padding: 2px 0; -} - -.block-description .save-job i { - color: #999; - min-width: 25px; - text-align: center; -} - -.block-description .save-job a { - color: #999; -} - -.block-description .save-job a:hover { - color: #72c02c; -} - -/*Overview*/ -.block-description .overview { - margin-bottom: 10px; -} - -.block-description .overview i { - color: #fff; - float: left; - min-width: 38px; - font-size: 20px; - padding: 10px 3px; - text-align: center; - margin-right: 10px; - background: #585f69; -} - -/*People Say*/ -.block-description .people-say img { - float: left; - width: 40px; - height: auto; - margin: 6px 10px 0 0; -} - -.block-description .people-say .overflow-h span { - font-weight: 700; -} - -.block-description .people-say .overflow-h p { - font-style: italic; - line-height: 1.3; -} - -.block-description .people-say .overflow-h small { - text-align: right; - font-style: italic; -} - -/*Block Level -------------------------------------*/ -.block-level { - padding-bottom: 10px !important; -} - -/*Block Level v2 -------------------------------------*/ -.block-level-v2 .responsive-video { - margin-bottom: 15px; -} - -/*Job Team -------------------------------------*/ -.parallax-team { - border-top: 1px solid #eee; -} - -/*Contacts -------------------------------------*/ -.contacts { - padding-bottom: 70px; -} - -.contacts h3 { - margin-top: 0; -} - -.contacts hr { - margin: 10px 0; -} +/*Center Icon*/ +.center-icon { + left: 50%; + top: -22px; + color: #585f69; + min-width: 45px; + font-size: 23px; + background: #fff; + padding: 10px 5px; + text-align: center; + position: absolute; + margin: 0 10px 0 -22px; + border: 1px solid #eee; +} + +/*Wrapping element for colorful background Block-Description, Job_Team +------------------------------------*/ +.block-description, +.job-team { + padding: 40px 0 30px; + position: relative; + background: #f9f9f9; + border-top: 1px solid #eee; +} + +/*Wrapping element for white background Block-Level-v2, Contacts +------------------------------------*/ +.block-level-v2, +.contacts { + padding: 30px 0; + background: #fff; + position: relative; + border-top: 1px solid #eee; +} + +/*Block Description +------------------------------------*/ +.block-description { + padding-bottom: 80px !important; +} + +/*Left-Inner*/ +.block-description .left-inner { + padding: 20px; + background: #fff; + position: relative; +} + +.block-description .left-inner .hex { + color: #999; + margin-bottom: 0; +} + +.block-description .left-inner i.position-top { + top: 20px; + right: 20px; + color: #585f69; + font-size: 18px; + position: absolute; +} + +.block-description .left-inner img { + float: left; + width: 80px; + height: auto; + padding: 3px; + margin: 0 10px 10px 0; + border: 1px solid #eee; +} + +.block-description .left-inner h3 { + margin: 0 0 5px; +} + +.block-description .left-inner p.hex { + margin-bottom: 5px; +} + +.block-description .star-vote { + float: left; + margin-right: 10px; +} + +.block-description .star-vote li { + padding: 0; +} + +/*Progresses*/ +.block-description .progression span { + float: left; + width: 150px; + margin: -8px 15px 0 0; +} + +/*Right Inner*/ +.block-description .right-inner { + padding: 20px; + background: #fff; +} + +.block-description .right-inner img { + float: left; + width: 90px; + height: auto; + margin-right: 10px; +} + +.block-description .right-inner .font-s { + font-size: 18px; +} + +.block-description .right-inner hr { + margin: 15px 0; +} + +/*P chart v2*/ +.block-description .p-chart { + overflow: hidden; +} + +.block-description .p-chart h3 { + font-size: 16px; +} + +.block-description .p-chart .circle { + float: left; + margin-right: 10px; +} + +.block-description .p-chart .overflow-h li i, +.block-description .p-chart .overflow-h li a { + color: #72c02c; +} + +.block-description .p-chart .overflow-h li a { + font-size: 11px; +} + +/*Circle in Responsive*/ +@media (max-width: 450px) { + .block-description .p-chart.col-xs-6 { + width: 100%; + } +} + +/*Save Job*/ +.block-description .save-job li { + padding: 2px 0; +} + +.block-description .save-job i { + color: #999; + min-width: 25px; + text-align: center; +} + +.block-description .save-job a { + color: #999; +} + +.block-description .save-job a:hover { + color: #72c02c; +} + +/*Overview*/ +.block-description .overview { + margin-bottom: 10px; +} + +.block-description .overview i { + color: #fff; + float: left; + min-width: 38px; + font-size: 20px; + padding: 10px 3px; + text-align: center; + margin-right: 10px; + background: #585f69; +} + +/*People Say*/ +.block-description .people-say img { + float: left; + width: 40px; + height: auto; + margin: 6px 10px 0 0; +} + +.block-description .people-say .overflow-h span { + font-weight: 700; +} + +.block-description .people-say .overflow-h p { + font-style: italic; + line-height: 1.3; +} + +.block-description .people-say .overflow-h small { + text-align: right; + font-style: italic; +} + +/*Block Level +------------------------------------*/ +.block-level { + padding-bottom: 10px !important; +} + +/*Block Level v2 +------------------------------------*/ +.block-level-v2 .responsive-video { + margin-bottom: 15px; +} + +/*Job Team +------------------------------------*/ +.parallax-team { + border-top: 1px solid #eee; +} + +/*Contacts +------------------------------------*/ +.contacts { + padding-bottom: 70px; +} + +.contacts h3 { + margin-top: 0; +} + +.contacts hr { + margin: 10px 0; +} diff --git a/arches/app/media/css/plugins/custom-sky-forms.css b/arches/app/media/css/plugins/custom-sky-forms.css index ef53d15bce5..5fb79edf575 100644 --- a/arches/app/media/css/plugins/custom-sky-forms.css +++ b/arches/app/media/css/plugins/custom-sky-forms.css @@ -1,321 +1,321 @@ -/*Import Sky-Forms*/ - -/*Sky-Forms -------------------------------------*/ -/**/ -/* defaults */ -/**/ -.sky-form { - box-shadow: none; - border: 1px solid #eee; -} - -.sky-form header { - color: inherit; - font-size: 20px; - background: #fff; - font-weight: 400; - padding: 8px 30px; -} - -.sky-form fieldset { - background: #fff; -} - -.sky-form footer { - background: #fff; - padding: 15px 30px; -} - -.sky-form a { - color: inherit; -} - -.sky-form a.btn-u { - color: #fff; -} - -.sky-form .input input { - height: 34px; - padding: 6px 12px; -} - -.sky-form .input input, -.sky-form .select select, -.sky-form .textarea textarea { - border-width: 1px; - font-size: 14px; - color: #404040; -} - -.sky-form .select select { - height: 34px; - padding: 6px 10px; -} - -.sky-form .select-multiple select { - height: auto; -} - -/**/ -/* file inputs */ -/**/ -.sky-form .input-file .button { - height: 32px; - top: 1px; - right: 1px; -} - -/**/ -/* captcha inputs */ -/**/ -.sky-form .input-captcha img { - position: absolute; - top: 1px; - right: 1px; - border-left: 1px solid #e5e5e5; -} - - -/**/ -/* normal state */ -/**/ -.sky-form .input input, -.sky-form .select select, -.sky-form .textarea textarea, -.sky-form .radio i, -.sky-form .checkbox i, -.sky-form .toggle i, -.sky-form .icon-append, -.sky-form .icon-prepend { - border-color: #bbb; -} -.sky-form .toggle i:before { - background-color: #999; -} - -.sky-form .button { - background: #72c02c; -} - -/**/ -/* toggles */ -/**/ -.sky-form .toggle { - font-weight: normal; -} - -.sky-form .toggle i { - width: 54px; - height: 21px; - border-width: 1px; -} -.sky-form .toggle i:after { - top: 3px; -} -.sky-form .toggle i:before { - top: 5px; - right: 6px; -} - -/*(remove Bootstrap 'radio, checkbox' margin-top) ---------------------------------------------------*/ -.radio, .checkbox { - margin-top: 0; -} - -/**/ -/* radios and checkboxes */ -/**/ -.sky-form .radio i, -.sky-form .checkbox i { - width: 17px; - height: 17px; - border-width: 1px; -} - -.sky-form .checkbox input + i:after { - top: 2px; - left: 0; - font: normal 10px FontAwesome; -} - -/**/ -/* checked state */ -/**/ -.sky-form .radio input + i:after { - top: 5px; - left: 5px; - background-color: #999; -} -.sky-form .checkbox input + i:after { - color: #999; -} -.sky-form .radio input:checked + i, -.sky-form .checkbox input:checked + i, -.sky-form .toggle input:checked + i { - border-color: #999; -} -.sky-form .rating input:checked ~ label { - color: #72c02c; -} - -/**/ -/* selects */ -/**/ -.sky-form .select i { - top: 14px; - width: 9px; - right: 13px; - height: 6px; -} -.sky-form .select i:after, -.sky-form .select i:before { - top: 4px; -} -.sky-form .select i:before { - top: -2px; - border-bottom: 4px solid #404040; -} - -.label-rounded .ui-slider-handle { - border-radius: 50% !important; -} - -/**/ -/* icons */ -/**/ -.sky-form .icon-append, -.sky-form .icon-prepend { - top: 1px; - height: 32px; - font-size: 14px; - line-height: 33px; - background: inherit; -} -.sky-form .icon-append { - right: 1px; - padding: 0 3px; - min-width: 34px; -} - -.sky-form .icon-prepend { - left: 6px; - padding-right: 5px; -} - -/**/ -/* focus state */ -/**/ -.sky-form .input input:focus, -.sky-form .select select:focus, -.sky-form .textarea textarea:focus { - border-color: #bbb; - box-shadow: 0 0 2px #c9c9c9; -} - -.sky-form .radio input:focus + i, -.sky-form .checkbox input:focus + i, -.sky-form .toggle input:focus + i { - border-color: #999; - box-shadow: none; -} - -/**/ -/* hover state */ -/**/ -.sky-form .input:hover input, -.sky-form .select:hover select, -.sky-form .textarea:hover textarea { - border-color: #999; -} - -.sky-form .radio:hover i, -.sky-form .checkbox:hover i, -.sky-form .toggle:hover i, -.sky-form .ui-slider-handle:hover { - border-color: #999; -} -.sky-form .rating input + label:hover, -.sky-form .rating input + label:hover ~ label { - color: #bbb; -} - -.sky-form .icon-append, -.sky-form .icon-prepend { - color: #b3b3b3; -} - -/**/ -/* disabled state */ -/**/ -.sky-form .input.state-disabled:hover input, -.sky-form .select.state-disabled:hover select, -.sky-form .textarea.state-disabled:hover textarea, -.sky-form .radio.state-disabled:hover i, -.sky-form .checkbox.state-disabled:hover i, -.sky-form .toggle.state-disabled:hover i { - border-color: #bbb; -} - -/**/ -/* datepicker */ -/**/ -.ui-datepicker-header { - padding: 10px 0; - font-size: 16px; -} - -.ui-datepicker-inline { - border-width: 1px; -} - -.ui-datepicker-inline .ui-datepicker-header { - line-height: 27px; -} - -.ui-datepicker-prev, -.ui-datepicker-next { - font-size: 18px; - line-height: 47px; -} - -.ui-datepicker-calendar a { - border: 1px solid transparent; -} - -.ui-datepicker-calendar .ui-state-active { - background: inherit; - border: 1px solid #bbb; -} -.ui-datepicker-calendar a:hover { - background: inherit; - border: 1px solid #bbb; -} - -/**/ -/* bootstrap compatibility */ -/**/ -.sky-form button *, -.sky-form button *:after, -.sky-form button *:before { - margin: 0 auto; - padding: 0 auto; -} - -.btn-u.button-uploading:after { - top: 6px; -} -.btn-u.btn-u-lg.button-uploading:after { - top: 10px; -} -.btn-u.btn-u-sm.button-uploading:after { - top: 3px; -} -.btn-u.btn-u-xs.button-uploading:after { - top: 2px; -} - -.label { - padding: 0.2em 0 0.3em; -} +/*Import Sky-Forms*/ + +/*Sky-Forms +------------------------------------*/ +/**/ +/* defaults */ +/**/ +.sky-form { + box-shadow: none; + border: 1px solid #eee; +} + +.sky-form header { + color: inherit; + font-size: 20px; + background: #fff; + font-weight: 400; + padding: 8px 30px; +} + +.sky-form fieldset { + background: #fff; +} + +.sky-form footer { + background: #fff; + padding: 15px 30px; +} + +.sky-form a { + color: inherit; +} + +.sky-form a.btn-u { + color: #fff; +} + +.sky-form .input input { + height: 34px; + padding: 6px 12px; +} + +.sky-form .input input, +.sky-form .select select, +.sky-form .textarea textarea { + border-width: 1px; + font-size: 14px; + color: #404040; +} + +.sky-form .select select { + height: 34px; + padding: 6px 10px; +} + +.sky-form .select-multiple select { + height: auto; +} + +/**/ +/* file inputs */ +/**/ +.sky-form .input-file .button { + height: 32px; + top: 1px; + right: 1px; +} + +/**/ +/* captcha inputs */ +/**/ +.sky-form .input-captcha img { + position: absolute; + top: 1px; + right: 1px; + border-left: 1px solid #e5e5e5; +} + + +/**/ +/* normal state */ +/**/ +.sky-form .input input, +.sky-form .select select, +.sky-form .textarea textarea, +.sky-form .radio i, +.sky-form .checkbox i, +.sky-form .toggle i, +.sky-form .icon-append, +.sky-form .icon-prepend { + border-color: #bbb; +} +.sky-form .toggle i:before { + background-color: #999; +} + +.sky-form .button { + background: #72c02c; +} + +/**/ +/* toggles */ +/**/ +.sky-form .toggle { + font-weight: normal; +} + +.sky-form .toggle i { + width: 54px; + height: 21px; + border-width: 1px; +} +.sky-form .toggle i:after { + top: 3px; +} +.sky-form .toggle i:before { + top: 5px; + right: 6px; +} + +/*(remove Bootstrap 'radio, checkbox' margin-top) +--------------------------------------------------*/ +.radio, .checkbox { + margin-top: 0; +} + +/**/ +/* radios and checkboxes */ +/**/ +.sky-form .radio i, +.sky-form .checkbox i { + width: 17px; + height: 17px; + border-width: 1px; +} + +.sky-form .checkbox input + i:after { + top: 2px; + left: 0; + font: normal 10px FontAwesome; +} + +/**/ +/* checked state */ +/**/ +.sky-form .radio input + i:after { + top: 5px; + left: 5px; + background-color: #999; +} +.sky-form .checkbox input + i:after { + color: #999; +} +.sky-form .radio input:checked + i, +.sky-form .checkbox input:checked + i, +.sky-form .toggle input:checked + i { + border-color: #999; +} +.sky-form .rating input:checked ~ label { + color: #72c02c; +} + +/**/ +/* selects */ +/**/ +.sky-form .select i { + top: 14px; + width: 9px; + right: 13px; + height: 6px; +} +.sky-form .select i:after, +.sky-form .select i:before { + top: 4px; +} +.sky-form .select i:before { + top: -2px; + border-bottom: 4px solid #404040; +} + +.label-rounded .ui-slider-handle { + border-radius: 50% !important; +} + +/**/ +/* icons */ +/**/ +.sky-form .icon-append, +.sky-form .icon-prepend { + top: 1px; + height: 32px; + font-size: 14px; + line-height: 33px; + background: inherit; +} +.sky-form .icon-append { + right: 1px; + padding: 0 3px; + min-width: 34px; +} + +.sky-form .icon-prepend { + left: 6px; + padding-right: 5px; +} + +/**/ +/* focus state */ +/**/ +.sky-form .input input:focus, +.sky-form .select select:focus, +.sky-form .textarea textarea:focus { + border-color: #bbb; + box-shadow: 0 0 2px #c9c9c9; +} + +.sky-form .radio input:focus + i, +.sky-form .checkbox input:focus + i, +.sky-form .toggle input:focus + i { + border-color: #999; + box-shadow: none; +} + +/**/ +/* hover state */ +/**/ +.sky-form .input:hover input, +.sky-form .select:hover select, +.sky-form .textarea:hover textarea { + border-color: #999; +} + +.sky-form .radio:hover i, +.sky-form .checkbox:hover i, +.sky-form .toggle:hover i, +.sky-form .ui-slider-handle:hover { + border-color: #999; +} +.sky-form .rating input + label:hover, +.sky-form .rating input + label:hover ~ label { + color: #bbb; +} + +.sky-form .icon-append, +.sky-form .icon-prepend { + color: #b3b3b3; +} + +/**/ +/* disabled state */ +/**/ +.sky-form .input.state-disabled:hover input, +.sky-form .select.state-disabled:hover select, +.sky-form .textarea.state-disabled:hover textarea, +.sky-form .radio.state-disabled:hover i, +.sky-form .checkbox.state-disabled:hover i, +.sky-form .toggle.state-disabled:hover i { + border-color: #bbb; +} + +/**/ +/* datepicker */ +/**/ +.ui-datepicker-header { + padding: 10px 0; + font-size: 16px; +} + +.ui-datepicker-inline { + border-width: 1px; +} + +.ui-datepicker-inline .ui-datepicker-header { + line-height: 27px; +} + +.ui-datepicker-prev, +.ui-datepicker-next { + font-size: 18px; + line-height: 47px; +} + +.ui-datepicker-calendar a { + border: 1px solid transparent; +} + +.ui-datepicker-calendar .ui-state-active { + background: inherit; + border: 1px solid #bbb; +} +.ui-datepicker-calendar a:hover { + background: inherit; + border: 1px solid #bbb; +} + +/**/ +/* bootstrap compatibility */ +/**/ +.sky-form button *, +.sky-form button *:after, +.sky-form button *:before { + margin: 0 auto; + padding: 0 auto; +} + +.btn-u.button-uploading:after { + top: 6px; +} +.btn-u.btn-u-lg.button-uploading:after { + top: 10px; +} +.btn-u.btn-u-sm.button-uploading:after { + top: 3px; +} +.btn-u.btn-u-xs.button-uploading:after { + top: 2px; +} + +.label { + padding: 0.2em 0 0.3em; +} diff --git a/arches/app/media/css/plugins/hover-effect/css/custom-hover-effects.css b/arches/app/media/css/plugins/hover-effect/css/custom-hover-effects.css index 1c42443a1f1..1ead24c5c7f 100644 --- a/arches/app/media/css/plugins/hover-effect/css/custom-hover-effects.css +++ b/arches/app/media/css/plugins/hover-effect/css/custom-hover-effects.css @@ -1,75 +1,75 @@ -/*Import custom_hover_effect.css*/ -@import url(hover.css); - -.link-effects .tag-box a { - margin: 0 10px 10px 0; -} - -.link-effects .tag-box h2.heading-sm { - font-size: 18px; - line-height: 26px; -} - -/*custom_hover_effect*/ -.link-effects .button { - margin: 10px; - padding: 10px; - cursor: pointer; -} - -.link-effects a.button:hover { - text-decoration: none; -} - -.link-effects .border-fade, -.link-effects .hollow, -.link-effects .trim, -.link-effects .outline-outward, -.link-effects .outline-inward, -.link-effects .round-corners { - color: #fff !important; -} - -.link-effects .hollow:hover { - background: #fff !important; - color: #555 !important; -} - -.link-effects .round-corners:hover { - border-radius: 1em !important; -} - -.bubble-float-top, -.bubble-float-right, -.bubble-float-left, -.bubble-float-bottom { - transform: inherit; -} - -.bubble-float-top, -.bubble-float-right, -.bubble-float-left, -.bubble-float-bottom:hover { - color: #555 !important; -} - -.link-effects .curl-top-left:before { - background: -webkit-linear-gradient(315deg, white 45%, #eee 50%, #eee 56%, white 80%); - background: linear-gradient(135deg, white 45%, #eee 50%, #eee 56%, white 80%); - filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#ffffff', endColorstr='#000000'); -} - -.link-effects .curl-top-right:before { - background: -webkit-linear-gradient(225deg, white 45%, #eee 50%, #eee 56%, white 80%); - background: linear-gradient(225deg, white 45%, #eee 50%, #eee 56%, white 80%); -} - -.link-effects .curl-bottom-right:before { - background: -webkit-linear-gradient(135deg, white 45%, #eee 50%, #eee 56%, white 80%); - background: linear-gradient(315deg, white 45%, #eee 50%, #eee 56%, white 80%); -} - -.link-effects .curl-bottom-left:before { - background: -webkit-linear-gradient(45deg, white 45%, #eee 50%, #eee 56%, white 80%); - background: linear-gradient(45deg, white 45%, #eee 50%, #eee 56%, white 80%); +/*Import custom_hover_effect.css*/ +@import url(hover.css); + +.link-effects .tag-box a { + margin: 0 10px 10px 0; +} + +.link-effects .tag-box h2.heading-sm { + font-size: 18px; + line-height: 26px; +} + +/*custom_hover_effect*/ +.link-effects .button { + margin: 10px; + padding: 10px; + cursor: pointer; +} + +.link-effects a.button:hover { + text-decoration: none; +} + +.link-effects .border-fade, +.link-effects .hollow, +.link-effects .trim, +.link-effects .outline-outward, +.link-effects .outline-inward, +.link-effects .round-corners { + color: #fff !important; +} + +.link-effects .hollow:hover { + background: #fff !important; + color: #555 !important; +} + +.link-effects .round-corners:hover { + border-radius: 1em !important; +} + +.bubble-float-top, +.bubble-float-right, +.bubble-float-left, +.bubble-float-bottom { + transform: inherit; +} + +.bubble-float-top, +.bubble-float-right, +.bubble-float-left, +.bubble-float-bottom:hover { + color: #555 !important; +} + +.link-effects .curl-top-left:before { + background: -webkit-linear-gradient(315deg, white 45%, #eee 50%, #eee 56%, white 80%); + background: linear-gradient(135deg, white 45%, #eee 50%, #eee 56%, white 80%); + filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#ffffff', endColorstr='#000000'); +} + +.link-effects .curl-top-right:before { + background: -webkit-linear-gradient(225deg, white 45%, #eee 50%, #eee 56%, white 80%); + background: linear-gradient(225deg, white 45%, #eee 50%, #eee 56%, white 80%); +} + +.link-effects .curl-bottom-right:before { + background: -webkit-linear-gradient(135deg, white 45%, #eee 50%, #eee 56%, white 80%); + background: linear-gradient(315deg, white 45%, #eee 50%, #eee 56%, white 80%); +} + +.link-effects .curl-bottom-left:before { + background: -webkit-linear-gradient(45deg, white 45%, #eee 50%, #eee 56%, white 80%); + background: linear-gradient(45deg, white 45%, #eee 50%, #eee 56%, white 80%); } \ No newline at end of file diff --git a/arches/app/media/js/views/concept-search.js b/arches/app/media/js/views/concept-search.js index 75688d4fb4e..e3b0d320618 100644 --- a/arches/app/media/js/views/concept-search.js +++ b/arches/app/media/js/views/concept-search.js @@ -1,61 +1,61 @@ -define(['jquery', 'underscore', 'backbone', 'select-woo', 'arches'], function($, _, Backbone, Select2, arches) { - return Backbone.View.extend({ - - initialize: function(options) { - $.extend(this, options); - this.render(); - }, - - render: function(){ - var self = this; - this.searchbox = this.$el.find('select.concept_search_widget').selectWoo({ - multiple: false, - maximumselectionsize: 1, - minimumInputLength: 2, - placeholder: arches.translations.searchForAConcept, - ajax: { - url: this.getUrl, - dataType: 'json', - data: function(requestParams) { - let term = requestParams.term || ''; - let page = requestParams.page || 1; - return { - q: term, // search term - page_limit: 30 - }; - }, - processResults: function(data) { - var results = []; - $.each(data.hits.hits, function(){ - results.push({ - id: this._source.conceptid, - text: this._source.value, - scheme_id: this._type, - scheme: this.in_scheme_name - }); - }, this); - return { - "results": results, - "pagination": { - "more": false - } - }; - } - }, - templateResult:function(result){ - result.scheme = result.scheme ? '(' + _.escape(result.scheme) + ')' : ''; - var formatedresult = $('' + result.text + '' + result.scheme + ''); - return formatedresult; - }, - escapeMarkup: function(m) { return m; } - }).on("select2:selecting", function(e) { - self.trigger("select2:selecting", e); - }); - }, - - getUrl: function(){ - return arches.urls.concept_search; - } - - }); +define(['jquery', 'underscore', 'backbone', 'select-woo', 'arches'], function($, _, Backbone, Select2, arches) { + return Backbone.View.extend({ + + initialize: function(options) { + $.extend(this, options); + this.render(); + }, + + render: function(){ + var self = this; + this.searchbox = this.$el.find('select.concept_search_widget').selectWoo({ + multiple: false, + maximumselectionsize: 1, + minimumInputLength: 2, + placeholder: arches.translations.searchForAConcept, + ajax: { + url: this.getUrl, + dataType: 'json', + data: function(requestParams) { + let term = requestParams.term || ''; + let page = requestParams.page || 1; + return { + q: term, // search term + page_limit: 30 + }; + }, + processResults: function(data) { + var results = []; + $.each(data.hits.hits, function(){ + results.push({ + id: this._source.conceptid, + text: this._source.value, + scheme_id: this._type, + scheme: this.in_scheme_name + }); + }, this); + return { + "results": results, + "pagination": { + "more": false + } + }; + } + }, + templateResult:function(result){ + result.scheme = result.scheme ? '(' + _.escape(result.scheme) + ')' : ''; + var formatedresult = $('' + result.text + '' + result.scheme + ''); + return formatedresult; + }, + escapeMarkup: function(m) { return m; } + }).on("select2:selecting", function(e) { + self.trigger("select2:selecting", e); + }); + }, + + getUrl: function(){ + return arches.urls.concept_search; + } + + }); }); \ No newline at end of file diff --git a/arches/app/media/js/views/rdm/modals/manage-parent-form.js b/arches/app/media/js/views/rdm/modals/manage-parent-form.js index b5780a10091..b298b0d366e 100644 --- a/arches/app/media/js/views/rdm/modals/manage-parent-form.js +++ b/arches/app/media/js/views/rdm/modals/manage-parent-form.js @@ -1,76 +1,76 @@ -define(['jquery', 'backbone', 'arches', 'views/concept-search', 'models/concept'], function($, Backbone, arches, ConceptSearch, ConceptModel) { - return Backbone.View.extend({ - - events: { - 'click .modal-footer .savebtn': 'save', - 'click .modal-footer .btn-u-default': 'cancel', - 'click a': 'removeRelationship' - }, - - initialize: function(){ - var self = this; - this.conceptsearch = new ConceptSearch({ - el:this.$el, - getUrl: function(){ - return arches.urls.concept_search + '?removechildren=' + self.model.get('id'); - } - }); - this.modal = this.$el.find('.modal'); - this.relationshiptype = this.modal.find('#parent-relation-type').select2({ - minimumResultsForSearch: 10, - maximumSelectionSize: 1 - }); - this.numberOfParents = this.$el.find('#number_of_parents').val(); - this.deletedrelationships = []; - }, - - save: function(){ - var self = this; - if (this.conceptsearch.searchbox.val() !== ''){ - var parentConcept = new ConceptModel({ - id: this.conceptsearch.searchbox.val(), - relationshiptype: this.relationshiptype.val() - }); - this.model.set('added', [parentConcept.toJSON()]); - } - - var concepts = []; - $.each(this.deletedrelationships, function(){ - var parentConcept = new ConceptModel({ - id: this - }); - concepts.push(parentConcept); - }); - self.model.set('deleted', concepts); - - this.modal.on('hidden.bs.modal', function(e) { - self.model.save(function() { - self.cleanup(); - }, this); - }); - this.modal.modal('hide'); - }, - - cancel: function(){ - this.cleanup(); - }, - - removeRelationship: function(e){ - var data = $(e.target).data(); - this.deletedrelationships.push(data.id); - this.$el.find('[data-id="'+ data.id +'"]').toggle(300); - }, - - cleanup: function() { - var self = this; - $.each(this.deletedrelationships, function(){ - self.$el.find('[data-id="'+ this +'"]').toggle(300); - }); - this.model.set('deleted', []); - this.model.set('added', []); - - this.$el.find('a').show(300); - this.undelegateEvents(); - } - }); +define(['jquery', 'backbone', 'arches', 'views/concept-search', 'models/concept'], function($, Backbone, arches, ConceptSearch, ConceptModel) { + return Backbone.View.extend({ + + events: { + 'click .modal-footer .savebtn': 'save', + 'click .modal-footer .btn-u-default': 'cancel', + 'click a': 'removeRelationship' + }, + + initialize: function(){ + var self = this; + this.conceptsearch = new ConceptSearch({ + el:this.$el, + getUrl: function(){ + return arches.urls.concept_search + '?removechildren=' + self.model.get('id'); + } + }); + this.modal = this.$el.find('.modal'); + this.relationshiptype = this.modal.find('#parent-relation-type').select2({ + minimumResultsForSearch: 10, + maximumSelectionSize: 1 + }); + this.numberOfParents = this.$el.find('#number_of_parents').val(); + this.deletedrelationships = []; + }, + + save: function(){ + var self = this; + if (this.conceptsearch.searchbox.val() !== ''){ + var parentConcept = new ConceptModel({ + id: this.conceptsearch.searchbox.val(), + relationshiptype: this.relationshiptype.val() + }); + this.model.set('added', [parentConcept.toJSON()]); + } + + var concepts = []; + $.each(this.deletedrelationships, function(){ + var parentConcept = new ConceptModel({ + id: this + }); + concepts.push(parentConcept); + }); + self.model.set('deleted', concepts); + + this.modal.on('hidden.bs.modal', function(e) { + self.model.save(function() { + self.cleanup(); + }, this); + }); + this.modal.modal('hide'); + }, + + cancel: function(){ + this.cleanup(); + }, + + removeRelationship: function(e){ + var data = $(e.target).data(); + this.deletedrelationships.push(data.id); + this.$el.find('[data-id="'+ data.id +'"]').toggle(300); + }, + + cleanup: function() { + var self = this; + $.each(this.deletedrelationships, function(){ + self.$el.find('[data-id="'+ this +'"]').toggle(300); + }); + this.model.set('deleted', []); + this.model.set('added', []); + + this.$el.find('a').show(300); + this.undelegateEvents(); + } + }); }); \ No newline at end of file diff --git a/arches/app/media/js/views/rdm/modals/related-concept-form.js b/arches/app/media/js/views/rdm/modals/related-concept-form.js index c0eab58f4bf..900f81efa7f 100644 --- a/arches/app/media/js/views/rdm/modals/related-concept-form.js +++ b/arches/app/media/js/views/rdm/modals/related-concept-form.js @@ -1,35 +1,35 @@ -define(['jquery', 'arches', 'backbone', 'views/concept-search', 'models/concept'], function($, arches, Backbone, ConceptSearch, ConceptModel) { - return ConceptSearch.extend({ - - initialize: function(){ - ConceptSearch.prototype.initialize.apply(this, arguments); - var self = this; - this.modal = this.$el.find('form'); - this.relationshiptype = this.modal.find('#related-relation-type').select2({ - placeholder: arches.translations.selectAnOption, - minimumResultsForSearch: 10, - maximumSelectionSize: 1 - }); - - this.modal.validate({ - ignore: null, - rules: { - concept_search_box: 'required', - relationtype_dd: 'required' - }, - submitHandler: function(form) { - var relatedConcept = new ConceptModel({ - id: self.searchbox.val(), - relationshiptype: self.relationshiptype.val() - }); - self.model.set('relatedconcepts', [relatedConcept]); - - self.modal.on('hidden.bs.modal', function(e) { - self.model.save(); - }); - self.modal.modal('hide'); - } - }); - } - }); +define(['jquery', 'arches', 'backbone', 'views/concept-search', 'models/concept'], function($, arches, Backbone, ConceptSearch, ConceptModel) { + return ConceptSearch.extend({ + + initialize: function(){ + ConceptSearch.prototype.initialize.apply(this, arguments); + var self = this; + this.modal = this.$el.find('form'); + this.relationshiptype = this.modal.find('#related-relation-type').select2({ + placeholder: arches.translations.selectAnOption, + minimumResultsForSearch: 10, + maximumSelectionSize: 1 + }); + + this.modal.validate({ + ignore: null, + rules: { + concept_search_box: 'required', + relationtype_dd: 'required' + }, + submitHandler: function(form) { + var relatedConcept = new ConceptModel({ + id: self.searchbox.val(), + relationshiptype: self.relationshiptype.val() + }); + self.model.set('relatedconcepts', [relatedConcept]); + + self.modal.on('hidden.bs.modal', function(e) { + self.model.save(); + }); + self.modal.modal('hide'); + } + }); + } + }); }); \ No newline at end of file diff --git a/arches/app/media/plugins/cube-portfolio-lightbox.js b/arches/app/media/plugins/cube-portfolio-lightbox.js index 6b754438e32..cd8e52836c8 100644 --- a/arches/app/media/plugins/cube-portfolio-lightbox.js +++ b/arches/app/media/plugins/cube-portfolio-lightbox.js @@ -1,195 +1,195 @@ -(function($, window, document, undefined) { - 'use strict'; - - var gridContainer = $('#grid-container'), - filtersContainer = $('#filters-container'), - wrap, filtersCallback; - - - /******************************* - init cubeportfolio - ****************************** */ - gridContainer.cubeportfolio({ - layoutMode: 'grid', - rewindNav: true, - scrollByPage: false, - mediaQueries: [{ - width: 1100, - cols: 3 - }, { - width: 800, - cols: 3 - }, { - width: 500, - cols: 2 - }, { - width: 320, - cols: 1 - }], - defaultFilter: '*', - animationType: 'rotateSides', - gapHorizontal: 10, - gapVertical: 10, - gridAdjustment: 'responsive', - caption: 'overlayBottomPush', - displayType: 'sequentially', - displayTypeSpeed: 100, - - // lightbox - lightboxDelegate: '.cbp-lightbox', - lightboxGallery: true, - lightboxTitleSrc: 'data-title', - lightboxCounter: '
{{current}} of {{total}}
', - - // singlePage popup - singlePageDelegate: '.cbp-singlePage', - singlePageDeeplinking: true, - singlePageStickyNavigation: true, - singlePageCounter: '
{{current}} of {{total}}
', - singlePageCallback: function(url, element) { - // to update singlePage content use the following method: this.updateSinglePage(yourContent) - }, - - // singlePageInline - singlePageInlineDelegate: '.cbp-singlePageInline', - singlePageInlinePosition: 'below', - singlePageInlineInFocus: true, - singlePageInlineCallback: function(url, element) { - // to update singlePageInline content use the following method: this.updateSinglePageInline(yourContent) - var t = this; - - $.ajax({ - url: url, - type: 'GET', - dataType: 'html', - timeout: 5000 - }) - .done(function(result) { - - t.updateSinglePageInline(result); - - }) - .fail(function() { - t.updateSinglePageInline("Error! Please refresh the page!"); - }); - } - }); - - - /********************************* - add listener for filters - *********************************/ - if (filtersContainer.hasClass('cbp-l-filters-dropdown')) { - wrap = filtersContainer.find('.cbp-l-filters-dropdownWrap'); - - wrap.on({ - 'mouseover.cbp': function() { - wrap.addClass('cbp-l-filters-dropdownWrap-open'); - }, - 'mouseleave.cbp': function() { - wrap.removeClass('cbp-l-filters-dropdownWrap-open'); - } - }); - - filtersCallback = function(me) { - wrap.find('.cbp-filter-item').removeClass('cbp-filter-item-active'); - wrap.find('.cbp-l-filters-dropdownHeader').text(me.text()); - me.addClass('cbp-filter-item-active'); - wrap.trigger('mouseleave.cbp'); - }; - } else { - filtersCallback = function(me) { - me.addClass('cbp-filter-item-active').siblings().removeClass('cbp-filter-item-active'); - }; - } - - filtersContainer.on('click.cbp', '.cbp-filter-item', function() { - var me = $(this); - - if (me.hasClass('cbp-filter-item-active')) { - return; - } - - // get cubeportfolio data and check if is still animating (reposition) the items. - if (!$.data(gridContainer[0], 'cubeportfolio').isAnimating) { - filtersCallback.call(null, me); - } - - // filter the items - gridContainer.cubeportfolio('filter', me.data('filter'), function() {}); - }); - - - /********************************* - activate counter for filters - *********************************/ - gridContainer.cubeportfolio('showCounter', filtersContainer.find('.cbp-filter-item'), function() { - // read from url and change filter active - var match = /#cbpf=(.*?)([#|?&]|$)/gi.exec(location.href), - item; - if (match !== null) { - item = filtersContainer.find('.cbp-filter-item').filter('[data-filter="' + match[1] + '"]'); - if (item.length) { - filtersCallback.call(null, item); - } - } - }); - - - /********************************* - add listener for load more - *********************************/ - $('.cbp-l-loadMore-button-link').on('click.cbp', function(e) { - e.preventDefault(); - var clicks, me = $(this), - oMsg; - - if (me.hasClass('cbp-l-loadMore-button-stop')) { - return; - } - - // get the number of times the loadMore link has been clicked - clicks = $.data(this, 'numberOfClicks'); - clicks = (clicks) ? ++clicks : 1; - $.data(this, 'numberOfClicks', clicks); - - // set loading status - oMsg = me.text(); - me.text('LOADING...'); - - // perform ajax request - $.ajax({ - url: me.attr('href'), - type: 'GET', - dataType: 'HTML' - }).done(function(result) { - var items, itemsNext; - - // find current container - items = $(result).filter(function() { - return $(this).is('div' + '.cbp-loadMore-block' + clicks); - }); - - gridContainer.cubeportfolio('appendItems', items.html(), - function() { - // put the original message back - me.text(oMsg); - - // check if we have more works - itemsNext = $(result).filter(function() { - return $(this).is('div' + '.cbp-loadMore-block' + (clicks + 1)); - }); - - if (itemsNext.length === 0) { - me.text('NO MORE WORKS'); - me.addClass('cbp-l-loadMore-button-stop'); - } - - }); - }).fail(function() { - // error - }); - - }); - -})(jQuery, window, document); +(function($, window, document, undefined) { + 'use strict'; + + var gridContainer = $('#grid-container'), + filtersContainer = $('#filters-container'), + wrap, filtersCallback; + + + /******************************* + init cubeportfolio + ****************************** */ + gridContainer.cubeportfolio({ + layoutMode: 'grid', + rewindNav: true, + scrollByPage: false, + mediaQueries: [{ + width: 1100, + cols: 3 + }, { + width: 800, + cols: 3 + }, { + width: 500, + cols: 2 + }, { + width: 320, + cols: 1 + }], + defaultFilter: '*', + animationType: 'rotateSides', + gapHorizontal: 10, + gapVertical: 10, + gridAdjustment: 'responsive', + caption: 'overlayBottomPush', + displayType: 'sequentially', + displayTypeSpeed: 100, + + // lightbox + lightboxDelegate: '.cbp-lightbox', + lightboxGallery: true, + lightboxTitleSrc: 'data-title', + lightboxCounter: '
{{current}} of {{total}}
', + + // singlePage popup + singlePageDelegate: '.cbp-singlePage', + singlePageDeeplinking: true, + singlePageStickyNavigation: true, + singlePageCounter: '
{{current}} of {{total}}
', + singlePageCallback: function(url, element) { + // to update singlePage content use the following method: this.updateSinglePage(yourContent) + }, + + // singlePageInline + singlePageInlineDelegate: '.cbp-singlePageInline', + singlePageInlinePosition: 'below', + singlePageInlineInFocus: true, + singlePageInlineCallback: function(url, element) { + // to update singlePageInline content use the following method: this.updateSinglePageInline(yourContent) + var t = this; + + $.ajax({ + url: url, + type: 'GET', + dataType: 'html', + timeout: 5000 + }) + .done(function(result) { + + t.updateSinglePageInline(result); + + }) + .fail(function() { + t.updateSinglePageInline("Error! Please refresh the page!"); + }); + } + }); + + + /********************************* + add listener for filters + *********************************/ + if (filtersContainer.hasClass('cbp-l-filters-dropdown')) { + wrap = filtersContainer.find('.cbp-l-filters-dropdownWrap'); + + wrap.on({ + 'mouseover.cbp': function() { + wrap.addClass('cbp-l-filters-dropdownWrap-open'); + }, + 'mouseleave.cbp': function() { + wrap.removeClass('cbp-l-filters-dropdownWrap-open'); + } + }); + + filtersCallback = function(me) { + wrap.find('.cbp-filter-item').removeClass('cbp-filter-item-active'); + wrap.find('.cbp-l-filters-dropdownHeader').text(me.text()); + me.addClass('cbp-filter-item-active'); + wrap.trigger('mouseleave.cbp'); + }; + } else { + filtersCallback = function(me) { + me.addClass('cbp-filter-item-active').siblings().removeClass('cbp-filter-item-active'); + }; + } + + filtersContainer.on('click.cbp', '.cbp-filter-item', function() { + var me = $(this); + + if (me.hasClass('cbp-filter-item-active')) { + return; + } + + // get cubeportfolio data and check if is still animating (reposition) the items. + if (!$.data(gridContainer[0], 'cubeportfolio').isAnimating) { + filtersCallback.call(null, me); + } + + // filter the items + gridContainer.cubeportfolio('filter', me.data('filter'), function() {}); + }); + + + /********************************* + activate counter for filters + *********************************/ + gridContainer.cubeportfolio('showCounter', filtersContainer.find('.cbp-filter-item'), function() { + // read from url and change filter active + var match = /#cbpf=(.*?)([#|?&]|$)/gi.exec(location.href), + item; + if (match !== null) { + item = filtersContainer.find('.cbp-filter-item').filter('[data-filter="' + match[1] + '"]'); + if (item.length) { + filtersCallback.call(null, item); + } + } + }); + + + /********************************* + add listener for load more + *********************************/ + $('.cbp-l-loadMore-button-link').on('click.cbp', function(e) { + e.preventDefault(); + var clicks, me = $(this), + oMsg; + + if (me.hasClass('cbp-l-loadMore-button-stop')) { + return; + } + + // get the number of times the loadMore link has been clicked + clicks = $.data(this, 'numberOfClicks'); + clicks = (clicks) ? ++clicks : 1; + $.data(this, 'numberOfClicks', clicks); + + // set loading status + oMsg = me.text(); + me.text('LOADING...'); + + // perform ajax request + $.ajax({ + url: me.attr('href'), + type: 'GET', + dataType: 'HTML' + }).done(function(result) { + var items, itemsNext; + + // find current container + items = $(result).filter(function() { + return $(this).is('div' + '.cbp-loadMore-block' + clicks); + }); + + gridContainer.cubeportfolio('appendItems', items.html(), + function() { + // put the original message back + me.text(oMsg); + + // check if we have more works + itemsNext = $(result).filter(function() { + return $(this).is('div' + '.cbp-loadMore-block' + (clicks + 1)); + }); + + if (itemsNext.length === 0) { + me.text('NO MORE WORKS'); + me.addClass('cbp-l-loadMore-button-stop'); + } + + }); + }).fail(function() { + // error + }); + + }); + +})(jQuery, window, document); diff --git a/arches/app/media/plugins/cube-portfolio/cubeportfolio/js/jquery.cubeportfolio.js b/arches/app/media/plugins/cube-portfolio/cubeportfolio/js/jquery.cubeportfolio.js index 00f2f3280ae..4b1b86c8a4a 100644 --- a/arches/app/media/plugins/cube-portfolio/cubeportfolio/js/jquery.cubeportfolio.js +++ b/arches/app/media/plugins/cube-portfolio/cubeportfolio/js/jquery.cubeportfolio.js @@ -854,7 +854,7 @@ CubePortfolio.plugins = {}; $.fn.cubeportfolio.constructor = CubePortfolio; })(jQuery, window, document); - + (function($, window, document, undefined) { 'use strict'; @@ -1352,7 +1352,7 @@ } }); })(jQuery, window, document); - + // Plugin default options jQuery.fn.cubeportfolio.options = { /** @@ -1680,7 +1680,7 @@ jQuery.fn.cubeportfolio.options = { */ plugins: {}, }; - + (function($, window, document, undefined) { 'use strict'; @@ -1847,7 +1847,7 @@ jQuery.fn.cubeportfolio.options = { CubePortfolio.private.browserInfo(); })(jQuery, window, document); - + (function($, window, document, undefined) { 'use strict'; @@ -2022,7 +2022,7 @@ jQuery.fn.cubeportfolio.options = { }; })(jQuery, window, document); - + (function($, window, document, undefined) { 'use strict'; @@ -2481,7 +2481,7 @@ jQuery.fn.cubeportfolio.options = { }, }); })(jQuery, window, document); - + if (typeof Object.create !== 'function') { Object.create = function(obj) { function F() {} @@ -2525,7 +2525,7 @@ if (typeof Object.create !== 'function') { }; } }()); - + (function($, window, document, undefined) { 'use strict'; @@ -2618,7 +2618,7 @@ if (typeof Object.create !== 'function') { return new Plugin(parent); }; })(jQuery, window, document); - + (function($, window, document, undefined) { 'use strict'; @@ -2700,7 +2700,7 @@ if (typeof Object.create !== 'function') { return new Plugin(parent); }; })(jQuery, window, document); - + (function($, window, document, undefined) { 'use strict'; @@ -2789,7 +2789,7 @@ if (typeof Object.create !== 'function') { return new Plugin(parent); }; })(jQuery, window, document); - + (function($, window, document, undefined) { 'use strict'; @@ -2861,7 +2861,7 @@ if (typeof Object.create !== 'function') { return new Plugin(parent); }; })(jQuery, window, document); - + (function($, window, document, undefined) { 'use strict'; @@ -2951,7 +2951,7 @@ if (typeof Object.create !== 'function') { }; })(jQuery, window, document); - + (function($, window, document, undefined) { 'use strict'; @@ -2991,7 +2991,7 @@ if (typeof Object.create !== 'function') { return new Plugin(parent); }; })(jQuery, window, document); - + (function($, window, document, undefined) { 'use strict'; @@ -3026,7 +3026,7 @@ if (typeof Object.create !== 'function') { return new Plugin(parent); }; })(jQuery, window, document); - + (function($, window, document, undefined) { 'use strict'; @@ -3061,7 +3061,7 @@ if (typeof Object.create !== 'function') { return new Plugin(parent); }; })(jQuery, window, document); - + (function($, window, document, undefined) { 'use strict'; @@ -3101,7 +3101,7 @@ if (typeof Object.create !== 'function') { return new Plugin(parent); }; })(jQuery, window, document); - + (function($, window, document, undefined) { 'use strict'; @@ -3237,7 +3237,7 @@ if (typeof Object.create !== 'function') { return new Plugin(parent); }; })(jQuery, window, document); - + (function($, window, document, undefined) { 'use strict'; @@ -3357,7 +3357,7 @@ if (typeof Object.create !== 'function') { return new Plugin(parent); }; })(jQuery, window, document); - + (function($, window, document, undefined) { 'use strict'; @@ -3471,7 +3471,7 @@ if (typeof Object.create !== 'function') { return new Plugin(parent); }; })(jQuery, window, document); - + (function($, window, document, undefined) { 'use strict'; @@ -3705,7 +3705,7 @@ if (typeof Object.create !== 'function') { }; })(jQuery, window, document); - + (function($, window, document, undefined) { 'use strict'; @@ -5373,7 +5373,7 @@ if (typeof Object.create !== 'function') { return new Plugin(parent); }; })(jQuery, window, document); - + (function($, window, document, undefined) { 'use strict'; @@ -5493,7 +5493,7 @@ if (typeof Object.create !== 'function') { return new Plugin(parent); }; })(jQuery, window, document); - + (function($, window, document, undefined) { 'use strict'; diff --git a/arches/app/media/plugins/cube-portfolio/documentation/css/main.css b/arches/app/media/plugins/cube-portfolio/documentation/css/main.css index 302ffd459a6..401b3277d9c 100644 --- a/arches/app/media/plugins/cube-portfolio/documentation/css/main.css +++ b/arches/app/media/plugins/cube-portfolio/documentation/css/main.css @@ -1,195 +1,195 @@ -/* apply a natural box layout model to all elements - http://www.paulirish.com/2012/box-sizing-border-box-ftw/*/ -*, *:before, *:after { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -*:focus { - outline: 0; -} - -html, -body { - min-height: 100%; - width: 100%; - font: normal 13px/20px "Open Sans", sans-serif; - color: #555; -} - -body { - background: none repeat scroll 0 0 #FEFEFE; -} - -.wrap { - width: 955; - max-width: 1050px; - margin: 0 auto; -} - -a { - transition: color 0.5s ease 0s; - text-decoration: none; -} - -i { - font-style: italic; -} - -strong { - font-weight: bold; -} - -.left { - height: 439px; - margin-left: 10px; - position: fixed; - width: 150px; -} - -.left > a { - color: #6F6D6D; - display: block; - font: bold 25px/25px "Open Sans", sans-serif; - margin: 20px 0 0; -} - -.left > a:hover { - color: #B3B3B3; -} - -.left nav { - margin: 50px 0 0; -} - -.left nav dl dt a { - color: #848484; - display: block; - font: 14px/21px "Open Sans", sans-serif; - padding: 6px 0; -} - -.left nav dl dt a:hover { - color: #5283D0; -} - -.left nav dl dt.active a { - color: #2576B8; - font-weight: bold; -} - -.right { - margin-left: 190px; - max-width: 860px; - overflow: hidden; - padding: 0 25px 25px; -} - -.right h1 a { - background: none repeat scroll 0 0 #E7E7E7; - border-bottom: 2px solid #AAD6F9; - color: #333; - display: block; - font: bold 20px/20px "Open Sans", sans-serif; - margin: 30px 0 20px; - padding: 15px 0 15px 15px; -} - -.right h2 { - color: #4C4A56; - font: bold 17px/17px "Open Sans", sans-serif; - padding: 17px 0; -} - -.right h3 { - color: #4C4A56; - font: bold 15px/15px "Open Sans", sans-serif; - padding: 15px 0; -} - -.right h4 { - color: #555; - font: bold 13px/21px "Open Sans", sans-serif; - padding: 5px 0; -} - -.right p { - margin: 5px 0; -} - -.right strong { - color: #4C4A56; -} - -.right ul { - padding: 5px 0; -} - -.right a { - color: #2576B8; -} - -.right a:hover { - color: #333333; -} - -p.attention { - color: #E87373; -} - -.right li { - /*color: #4C4A56;*/ -} - -.right .tinycode { - background: none repeat scroll 0% 0% #e4e4e4; - color: #42433C; - font: italic 12px/18px "Open Sans", sans-serif; - margin: 0 2px; - padding: 2px 6px; -} - -.right table { - border-color: #DADADA; - border-radius: 2px 2px 2px 2px; - border-style: solid; - border-width: 1px 1px 0 0; -} - -.right table th { - background: none repeat scroll 0% 0% #ECECEC; - border-bottom: 1px solid #C8C8C8; - border-left: 1px solid #C8C8C8; - border-top: 1px solid #C8C8C8; - color: #666666; - font: bold 12px/32px sans-serif; - height: 32px; - padding-left: 10px; - text-align: left; -} - -.right table td { - border-bottom: 1px solid #C8C8C8; - border-left: 1px solid #C8C8C8; - color: #787878; - font: 12px/18px Open Sans, sans-serif; - padding: 8px 12px; -} - -.right table td a { - color: #2576B8; - font: 11px/14px sans-serif; -} - -.right table td a:hover { - color: #333333; -} - -.right table tr:nth-child(2n+1) { - background: none repeat scroll 0% 0% #F0F0F0; -} - -.lists { - list-style: disc inside none; - margin-left: 30px; -} +/* apply a natural box layout model to all elements - http://www.paulirish.com/2012/box-sizing-border-box-ftw/*/ +*, *:before, *:after { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +*:focus { + outline: 0; +} + +html, +body { + min-height: 100%; + width: 100%; + font: normal 13px/20px "Open Sans", sans-serif; + color: #555; +} + +body { + background: none repeat scroll 0 0 #FEFEFE; +} + +.wrap { + width: 955; + max-width: 1050px; + margin: 0 auto; +} + +a { + transition: color 0.5s ease 0s; + text-decoration: none; +} + +i { + font-style: italic; +} + +strong { + font-weight: bold; +} + +.left { + height: 439px; + margin-left: 10px; + position: fixed; + width: 150px; +} + +.left > a { + color: #6F6D6D; + display: block; + font: bold 25px/25px "Open Sans", sans-serif; + margin: 20px 0 0; +} + +.left > a:hover { + color: #B3B3B3; +} + +.left nav { + margin: 50px 0 0; +} + +.left nav dl dt a { + color: #848484; + display: block; + font: 14px/21px "Open Sans", sans-serif; + padding: 6px 0; +} + +.left nav dl dt a:hover { + color: #5283D0; +} + +.left nav dl dt.active a { + color: #2576B8; + font-weight: bold; +} + +.right { + margin-left: 190px; + max-width: 860px; + overflow: hidden; + padding: 0 25px 25px; +} + +.right h1 a { + background: none repeat scroll 0 0 #E7E7E7; + border-bottom: 2px solid #AAD6F9; + color: #333; + display: block; + font: bold 20px/20px "Open Sans", sans-serif; + margin: 30px 0 20px; + padding: 15px 0 15px 15px; +} + +.right h2 { + color: #4C4A56; + font: bold 17px/17px "Open Sans", sans-serif; + padding: 17px 0; +} + +.right h3 { + color: #4C4A56; + font: bold 15px/15px "Open Sans", sans-serif; + padding: 15px 0; +} + +.right h4 { + color: #555; + font: bold 13px/21px "Open Sans", sans-serif; + padding: 5px 0; +} + +.right p { + margin: 5px 0; +} + +.right strong { + color: #4C4A56; +} + +.right ul { + padding: 5px 0; +} + +.right a { + color: #2576B8; +} + +.right a:hover { + color: #333333; +} + +p.attention { + color: #E87373; +} + +.right li { + /*color: #4C4A56;*/ +} + +.right .tinycode { + background: none repeat scroll 0% 0% #e4e4e4; + color: #42433C; + font: italic 12px/18px "Open Sans", sans-serif; + margin: 0 2px; + padding: 2px 6px; +} + +.right table { + border-color: #DADADA; + border-radius: 2px 2px 2px 2px; + border-style: solid; + border-width: 1px 1px 0 0; +} + +.right table th { + background: none repeat scroll 0% 0% #ECECEC; + border-bottom: 1px solid #C8C8C8; + border-left: 1px solid #C8C8C8; + border-top: 1px solid #C8C8C8; + color: #666666; + font: bold 12px/32px sans-serif; + height: 32px; + padding-left: 10px; + text-align: left; +} + +.right table td { + border-bottom: 1px solid #C8C8C8; + border-left: 1px solid #C8C8C8; + color: #787878; + font: 12px/18px Open Sans, sans-serif; + padding: 8px 12px; +} + +.right table td a { + color: #2576B8; + font: 11px/14px sans-serif; +} + +.right table td a:hover { + color: #333333; +} + +.right table tr:nth-child(2n+1) { + background: none repeat scroll 0% 0% #F0F0F0; +} + +.lists { + list-style: disc inside none; + margin-left: 30px; +} diff --git a/arches/app/media/plugins/cube-portfolio/documentation/css/prettify.css b/arches/app/media/plugins/cube-portfolio/documentation/css/prettify.css index 0212a268f1c..ad85273b91c 100644 --- a/arches/app/media/plugins/cube-portfolio/documentation/css/prettify.css +++ b/arches/app/media/plugins/cube-portfolio/documentation/css/prettify.css @@ -1,140 +1,140 @@ -.pln { - color: #333333; -} - -@media screen { - /* string content */ - .str { - color: #dd1144; - } - - /* a keyword */ - .kwd { - color: #255ABC; - } - - /* a comment */ - .com { - color: #999988; - font-style: italic; - } - - /* a type name */ - .typ { - color: #445588; - } - - /* a literal value */ - .lit { - color: #A91336; - } - - /* punctuation */ - .pun { - color: #333333; - } - - /* lisp open bracket */ - .opn { - color: #333333; - } - - /* lisp close bracket */ - .clo { - color: #333333; - } - - /* a markup tag name */ - .tag { - color: navy; - } - - /* a markup attribute name */ - .atn { - color: teal; - } - - /* a markup attribute value */ - .atv { - color: #dd1144; - } - - /* a declaration */ - .dec { - color: #333333; - } - - /* a variable name */ - .var { - color: teal; - } - - /* a function name */ - .fun { - color: #990000; - } -} - -/* Use higher contrast and text-weight for printable form. */ -@media print, projection { - .str { - color: #006600; - } - - .kwd { - color: #006; - font-weight: bold; - } - - .com { - color: #600; - font-style: italic; - } - - .typ { - color: #404; - font-weight: bold; - } - - .lit { - color: #004444; - } - - .pun, .opn, .clo { - color: #444400; - } - - .tag { - color: #006; - font-weight: bold; - } - - .atn { - color: #440044; - } - - .atv { - color: #006600; - } -} - -/* Style */ -pre.prettyprint { - background: none repeat scroll 0 0 #FFFFFF; - border: 1px solid #e0e0e0; - color: #CDCDCD; - font: 12px/18px Consolas, monospace, sans-serif; - overflow: auto; - margin: 15px 0; -} - -/* Specify class=linenums on a pre to get line numbering */ -ol.linenums { - margin: 15px 15px 15px 40px; -} - -li.L0, li.L1, li.L2, li.L3, li.L4, -li.L5, li.L6, li.L7, li.L8, li.L9 { - list-style-type: decimal !important -} - +.pln { + color: #333333; +} + +@media screen { + /* string content */ + .str { + color: #dd1144; + } + + /* a keyword */ + .kwd { + color: #255ABC; + } + + /* a comment */ + .com { + color: #999988; + font-style: italic; + } + + /* a type name */ + .typ { + color: #445588; + } + + /* a literal value */ + .lit { + color: #A91336; + } + + /* punctuation */ + .pun { + color: #333333; + } + + /* lisp open bracket */ + .opn { + color: #333333; + } + + /* lisp close bracket */ + .clo { + color: #333333; + } + + /* a markup tag name */ + .tag { + color: navy; + } + + /* a markup attribute name */ + .atn { + color: teal; + } + + /* a markup attribute value */ + .atv { + color: #dd1144; + } + + /* a declaration */ + .dec { + color: #333333; + } + + /* a variable name */ + .var { + color: teal; + } + + /* a function name */ + .fun { + color: #990000; + } +} + +/* Use higher contrast and text-weight for printable form. */ +@media print, projection { + .str { + color: #006600; + } + + .kwd { + color: #006; + font-weight: bold; + } + + .com { + color: #600; + font-style: italic; + } + + .typ { + color: #404; + font-weight: bold; + } + + .lit { + color: #004444; + } + + .pun, .opn, .clo { + color: #444400; + } + + .tag { + color: #006; + font-weight: bold; + } + + .atn { + color: #440044; + } + + .atv { + color: #006600; + } +} + +/* Style */ +pre.prettyprint { + background: none repeat scroll 0 0 #FFFFFF; + border: 1px solid #e0e0e0; + color: #CDCDCD; + font: 12px/18px Consolas, monospace, sans-serif; + overflow: auto; + margin: 15px 0; +} + +/* Specify class=linenums on a pre to get line numbering */ +ol.linenums { + margin: 15px 15px 15px 40px; +} + +li.L0, li.L1, li.L2, li.L3, li.L4, +li.L5, li.L6, li.L7, li.L8, li.L9 { + list-style-type: decimal !important +} + diff --git a/arches/app/media/plugins/cube-portfolio/documentation/css/reset.css b/arches/app/media/plugins/cube-portfolio/documentation/css/reset.css index 34f8388a8b2..71365e9aae8 100644 --- a/arches/app/media/plugins/cube-portfolio/documentation/css/reset.css +++ b/arches/app/media/plugins/cube-portfolio/documentation/css/reset.css @@ -1,54 +1,54 @@ -/* http://meyerweb.com/eric/tools/css/reset/ - v2.0 | 20110126 - License: none (public domain) -*/ - -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -b, u, i, center, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td, -article, aside, canvas, details, embed, -figure, figcaption, footer, header, hgroup, -menu, nav, output, ruby, section, summary, -time, mark, audio, video { - margin: 0; - padding: 0; - border: 0; - font-size: 100%; - font: inherit; - vertical-align: baseline; -} - -/* HTML5 display-role reset for older browsers */ -article, aside, details, figcaption, figure, -footer, header, hgroup, menu, nav, section { - display: block; -} - -body { - line-height: 1; -} - -ol, ul { - list-style: none; -} - -blockquote, q { - quotes: none; -} - -blockquote:before, blockquote:after, -q:before, q:after { - content: ''; - content: none; -} - -table { - border-collapse: collapse; - border-spacing: 0; -} +/* http://meyerweb.com/eric/tools/css/reset/ + v2.0 | 20110126 + License: none (public domain) +*/ + +html, body, div, span, applet, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, img, ins, kbd, q, s, samp, +small, strike, strong, sub, sup, tt, var, +b, u, i, center, +dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td, +article, aside, canvas, details, embed, +figure, figcaption, footer, header, hgroup, +menu, nav, output, ruby, section, summary, +time, mark, audio, video { + margin: 0; + padding: 0; + border: 0; + font-size: 100%; + font: inherit; + vertical-align: baseline; +} + +/* HTML5 display-role reset for older browsers */ +article, aside, details, figcaption, figure, +footer, header, hgroup, menu, nav, section { + display: block; +} + +body { + line-height: 1; +} + +ol, ul { + list-style: none; +} + +blockquote, q { + quotes: none; +} + +blockquote:before, blockquote:after, +q:before, q:after { + content: ''; + content: none; +} + +table { + border-collapse: collapse; + border-spacing: 0; +} diff --git a/arches/app/media/plugins/cube-portfolio/documentation/js/main.js b/arches/app/media/plugins/cube-portfolio/documentation/js/main.js index b830893b436..cff68fec2e0 100644 --- a/arches/app/media/plugins/cube-portfolio/documentation/js/main.js +++ b/arches/app/media/plugins/cube-portfolio/documentation/js/main.js @@ -1,86 +1,86 @@ -$(document).ready(function() { - - var verticalLinks = { - - init: function() { - var t = this, - name; - - var url = document.URL; - - var index = url.lastIndexOf('#'); - - if (index > 0 && index < url.length - 1) { - name = url.substr(index); - - t.options.links.children().filter(function() { - - var me = $(this), - link = me.children(); - - if (link.attr('href') === name) { - me.addClass('active'); - } - }); - - } else { - t.options.links.children().eq(t.options.defaultLink).addClass('active'); - } - - // add events - t.addEvents(); - - }, - - // add events - addEvents: function() { - var t = this, - me; - - t.options.links.on('click', 'dt', function(e) { - me = $(this); - - me.addClass('active').siblings().removeClass('active'); - - }); - - $(window).scroll(function(e) { - - t.offset = $.map($('a[name]'), function(value, index) { - return { - el: $(value), - offset: $(value).offset().top - }; - }); - - var offset = e.currentTarget.pageYOffset, - hash; - - for (var i = 0; i < t.offset.length; i++) { - if (offset >= t.offset[i].offset) { - hash = t.offset[i].el.attr('name'); - } - } - - hash = (hash) ? hash : t.offset[0].el.attr('name'); - - $('#navigation').children().removeClass('active'); - - $('a[href="#' + hash + '"]').parent().addClass('active'); - - }); - }, - - - options: { - links: $('#navigation'), - defaultLink: 0 - } - - }; - - (Object.create(verticalLinks)).init(); - - prettyPrint(); - -}); +$(document).ready(function() { + + var verticalLinks = { + + init: function() { + var t = this, + name; + + var url = document.URL; + + var index = url.lastIndexOf('#'); + + if (index > 0 && index < url.length - 1) { + name = url.substr(index); + + t.options.links.children().filter(function() { + + var me = $(this), + link = me.children(); + + if (link.attr('href') === name) { + me.addClass('active'); + } + }); + + } else { + t.options.links.children().eq(t.options.defaultLink).addClass('active'); + } + + // add events + t.addEvents(); + + }, + + // add events + addEvents: function() { + var t = this, + me; + + t.options.links.on('click', 'dt', function(e) { + me = $(this); + + me.addClass('active').siblings().removeClass('active'); + + }); + + $(window).scroll(function(e) { + + t.offset = $.map($('a[name]'), function(value, index) { + return { + el: $(value), + offset: $(value).offset().top + }; + }); + + var offset = e.currentTarget.pageYOffset, + hash; + + for (var i = 0; i < t.offset.length; i++) { + if (offset >= t.offset[i].offset) { + hash = t.offset[i].el.attr('name'); + } + } + + hash = (hash) ? hash : t.offset[0].el.attr('name'); + + $('#navigation').children().removeClass('active'); + + $('a[href="#' + hash + '"]').parent().addClass('active'); + + }); + }, + + + options: { + links: $('#navigation'), + defaultLink: 0 + } + + }; + + (Object.create(verticalLinks)).init(); + + prettyPrint(); + +}); diff --git a/arches/app/media/plugins/cube-portfolio/documentation/js/prettify.js b/arches/app/media/plugins/cube-portfolio/documentation/js/prettify.js index ed472b586cb..fc7583bd450 100644 --- a/arches/app/media/plugins/cube-portfolio/documentation/js/prettify.js +++ b/arches/app/media/plugins/cube-portfolio/documentation/js/prettify.js @@ -1,33 +1,33 @@ -!function(){var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; -(function(){function S(a){function d(e){var b=e.charCodeAt(0);if(b!==92)return b;var a=e.charAt(1);return(b=r[a])?b:"0"<=a&&a<="7"?parseInt(e.substring(1),8):a==="u"||a==="x"?parseInt(e.substring(2),16):e.charCodeAt(1)}function g(e){if(e<32)return(e<16?"\\x0":"\\x")+e.toString(16);e=String.fromCharCode(e);return e==="\\"||e==="-"||e==="]"||e==="^"?"\\"+e:e}function b(e){var b=e.substring(1,e.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),e=[],a= -b[0]==="^",c=["["];a&&c.push("^");for(var a=a?1:0,f=b.length;a122||(l<65||h>90||e.push([Math.max(65,h)|32,Math.min(l,90)|32]),l<97||h>122||e.push([Math.max(97,h)&-33,Math.min(l,122)&-33]))}}e.sort(function(e,a){return e[0]-a[0]||a[1]-e[1]});b=[];f=[];for(a=0;ah[0]&&(h[1]+1>h[0]&&c.push("-"),c.push(g(h[1])));c.push("]");return c.join("")}function s(e){for(var a=e.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),c=a.length,d=[],f=0,h=0;f=2&&e==="["?a[f]=b(l):e!=="\\"&&(a[f]=l.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return a.join("")}for(var x=0,m=!1,j=!1,k=0,c=a.length;k=5&&"lang-"===w.substring(0,5))&&!(t&&typeof t[1]==="string"))f=!1,w="src";f||(r[z]=w)}h=c;c+=z.length;if(f){f=t[1];var l=z.indexOf(f),B=l+f.length;t[2]&&(B=z.length-t[2].length,l=B-f.length);w=w.substring(5);H(j+h,z.substring(0,l),g,k);H(j+h+l,f,I(w,f),k);H(j+h+B,z.substring(B),g,k)}else k.push(j+h,w)}a.g=k}var b={},s;(function(){for(var g=a.concat(d),j=[],k={},c=0,i=g.length;c=0;)b[n.charAt(e)]=r;r=r[1];n=""+r;k.hasOwnProperty(n)||(j.push(r),k[n]=q)}j.push(/[\S\s]/);s=S(j)})();var x=d.length;return g}function v(a){var d=[],g=[];a.tripleQuotedStrings?d.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?d.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, -q,"'\"`"]):d.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&g.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var b=a.hashComments;b&&(a.cStyleComments?(b>1?d.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):d.push(["com",/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),g.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,q])):d.push(["com", -/^#[^\n\r]*/,q,"#"]));a.cStyleComments&&(g.push(["com",/^\/\/[^\n\r]*/,q]),g.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));if(b=a.regexLiterals){var s=(b=b>1?"":"\n\r")?".":"[\\S\\s]";g.push(["lang-regex",RegExp("^(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*("+("/(?=[^/*"+b+"])(?:[^/\\x5B\\x5C"+b+"]|\\x5C"+s+"|\\x5B(?:[^\\x5C\\x5D"+b+"]|\\x5C"+ -s+")*(?:\\x5D|$))+/")+")")])}(b=a.types)&&g.push(["typ",b]);b=(""+a.keywords).replace(/^ | $/g,"");b.length&&g.push(["kwd",RegExp("^(?:"+b.replace(/[\s,]+/g,"|")+")\\b"),q]);d.push(["pln",/^\s+/,q," \r\n\t\u00a0"]);b="^.[^\\s\\w.$@'\"`/\\\\]*";a.regexLiterals&&(b+="(?!s*/)");g.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/, -q],["pun",RegExp(b),q]);return C(d,g)}function J(a,d,g){function b(a){var c=a.nodeType;if(c==1&&!x.test(a.className))if("br"===a.nodeName)s(a),a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)b(a);else if((c==3||c==4)&&g){var d=a.nodeValue,i=d.match(m);if(i)c=d.substring(0,i.index),a.nodeValue=c,(d=d.substring(i.index+i[0].length))&&a.parentNode.insertBefore(j.createTextNode(d),a.nextSibling),s(a),c||a.parentNode.removeChild(a)}}function s(a){function b(a,c){var d= -c?a.cloneNode(!1):a,e=a.parentNode;if(e){var e=b(e,1),g=a.nextSibling;e.appendChild(d);for(var i=g;i;i=g)g=i.nextSibling,e.appendChild(i)}return d}for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),d;(d=a.parentNode)&&d.nodeType===1;)a=d;c.push(a)}for(var x=/(?:^|\s)nocode(?:\s|$)/,m=/\r\n?|\n/,j=a.ownerDocument,k=j.createElement("li");a.firstChild;)k.appendChild(a.firstChild);for(var c=[k],i=0;i=0;){var b=d[g];F.hasOwnProperty(b)?D.console&&console.warn("cannot override language handler %s",b):F[b]=a}}function I(a,d){if(!a||!F.hasOwnProperty(a))a=/^\s*=l&&(b+=2);g>=B&&(r+=2)}}finally{if(f)f.style.display=h}}catch(u){D.console&&console.log(u&&u.stack||u)}}var D=window,y=["break,continue,do,else,for,if,return,while"],E=[[y,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"], -"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],M=[E,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],N=[E,"abstract,assert,boolean,byte,extends,final,finally,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"], -O=[N,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,internal,into,is,let,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where"],E=[E,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],P=[y,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"], -Q=[y,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],W=[y,"as,assert,const,copy,drop,enum,extern,fail,false,fn,impl,let,log,loop,match,mod,move,mut,priv,pub,pure,ref,self,static,struct,true,trait,type,unsafe,use"],y=[y,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],R=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/, -V=/\S/,X=v({keywords:[M,O,E,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",P,Q,y],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),F={};p(X,["default-code"]);p(C([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-", -/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]);p(C([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/], -["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css",/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);p(C([],[["atv",/^[\S\s]+/]]),["uq.val"]);p(v({keywords:M,hashComments:!0,cStyleComments:!0,types:R}),["c","cc","cpp","cxx","cyc","m"]);p(v({keywords:"null,true,false"}),["json"]);p(v({keywords:O,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:R}), -["cs"]);p(v({keywords:N,cStyleComments:!0}),["java"]);p(v({keywords:y,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]);p(v({keywords:P,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]);p(v({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]);p(v({keywords:Q, -hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]);p(v({keywords:E,cStyleComments:!0,regexLiterals:!0}),["javascript","js"]);p(v({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);p(v({keywords:W,cStyleComments:!0,multilineStrings:!0}),["rc","rs","rust"]); -p(C([],[["str",/^[\S\s]+/]]),["regex"]);var Y=D.PR={createSimpleLexer:C,registerLangHandler:p,sourceDecorator:v,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ",prettyPrintOne:D.prettyPrintOne=function(a,d,g){var b=document.createElement("div");b.innerHTML="
"+a+"
";b=b.firstChild;g&&J(b,g,!0);K({h:d,j:g,c:b,i:1}); -return b.innerHTML},prettyPrint:D.prettyPrint=function(a,d){function g(){for(var b=D.PR_SHOULD_USE_CONTINUATION?c.now()+250:Infinity;i)/],["lit",/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],["lit",/^#[\da-f]{3,6}\b/i],["pln",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i],["pun",/^[^\s\w"']+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[["kwd",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[["str",/^[^"')]+/]]),["css-str"]); +!function(){var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; +(function(){function S(a){function d(e){var b=e.charCodeAt(0);if(b!==92)return b;var a=e.charAt(1);return(b=r[a])?b:"0"<=a&&a<="7"?parseInt(e.substring(1),8):a==="u"||a==="x"?parseInt(e.substring(2),16):e.charCodeAt(1)}function g(e){if(e<32)return(e<16?"\\x0":"\\x")+e.toString(16);e=String.fromCharCode(e);return e==="\\"||e==="-"||e==="]"||e==="^"?"\\"+e:e}function b(e){var b=e.substring(1,e.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),e=[],a= +b[0]==="^",c=["["];a&&c.push("^");for(var a=a?1:0,f=b.length;a122||(l<65||h>90||e.push([Math.max(65,h)|32,Math.min(l,90)|32]),l<97||h>122||e.push([Math.max(97,h)&-33,Math.min(l,122)&-33]))}}e.sort(function(e,a){return e[0]-a[0]||a[1]-e[1]});b=[];f=[];for(a=0;ah[0]&&(h[1]+1>h[0]&&c.push("-"),c.push(g(h[1])));c.push("]");return c.join("")}function s(e){for(var a=e.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),c=a.length,d=[],f=0,h=0;f=2&&e==="["?a[f]=b(l):e!=="\\"&&(a[f]=l.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return a.join("")}for(var x=0,m=!1,j=!1,k=0,c=a.length;k=5&&"lang-"===w.substring(0,5))&&!(t&&typeof t[1]==="string"))f=!1,w="src";f||(r[z]=w)}h=c;c+=z.length;if(f){f=t[1];var l=z.indexOf(f),B=l+f.length;t[2]&&(B=z.length-t[2].length,l=B-f.length);w=w.substring(5);H(j+h,z.substring(0,l),g,k);H(j+h+l,f,I(w,f),k);H(j+h+B,z.substring(B),g,k)}else k.push(j+h,w)}a.g=k}var b={},s;(function(){for(var g=a.concat(d),j=[],k={},c=0,i=g.length;c=0;)b[n.charAt(e)]=r;r=r[1];n=""+r;k.hasOwnProperty(n)||(j.push(r),k[n]=q)}j.push(/[\S\s]/);s=S(j)})();var x=d.length;return g}function v(a){var d=[],g=[];a.tripleQuotedStrings?d.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?d.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, +q,"'\"`"]):d.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&g.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var b=a.hashComments;b&&(a.cStyleComments?(b>1?d.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):d.push(["com",/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),g.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,q])):d.push(["com", +/^#[^\n\r]*/,q,"#"]));a.cStyleComments&&(g.push(["com",/^\/\/[^\n\r]*/,q]),g.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));if(b=a.regexLiterals){var s=(b=b>1?"":"\n\r")?".":"[\\S\\s]";g.push(["lang-regex",RegExp("^(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*("+("/(?=[^/*"+b+"])(?:[^/\\x5B\\x5C"+b+"]|\\x5C"+s+"|\\x5B(?:[^\\x5C\\x5D"+b+"]|\\x5C"+ +s+")*(?:\\x5D|$))+/")+")")])}(b=a.types)&&g.push(["typ",b]);b=(""+a.keywords).replace(/^ | $/g,"");b.length&&g.push(["kwd",RegExp("^(?:"+b.replace(/[\s,]+/g,"|")+")\\b"),q]);d.push(["pln",/^\s+/,q," \r\n\t\u00a0"]);b="^.[^\\s\\w.$@'\"`/\\\\]*";a.regexLiterals&&(b+="(?!s*/)");g.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/, +q],["pun",RegExp(b),q]);return C(d,g)}function J(a,d,g){function b(a){var c=a.nodeType;if(c==1&&!x.test(a.className))if("br"===a.nodeName)s(a),a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)b(a);else if((c==3||c==4)&&g){var d=a.nodeValue,i=d.match(m);if(i)c=d.substring(0,i.index),a.nodeValue=c,(d=d.substring(i.index+i[0].length))&&a.parentNode.insertBefore(j.createTextNode(d),a.nextSibling),s(a),c||a.parentNode.removeChild(a)}}function s(a){function b(a,c){var d= +c?a.cloneNode(!1):a,e=a.parentNode;if(e){var e=b(e,1),g=a.nextSibling;e.appendChild(d);for(var i=g;i;i=g)g=i.nextSibling,e.appendChild(i)}return d}for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),d;(d=a.parentNode)&&d.nodeType===1;)a=d;c.push(a)}for(var x=/(?:^|\s)nocode(?:\s|$)/,m=/\r\n?|\n/,j=a.ownerDocument,k=j.createElement("li");a.firstChild;)k.appendChild(a.firstChild);for(var c=[k],i=0;i=0;){var b=d[g];F.hasOwnProperty(b)?D.console&&console.warn("cannot override language handler %s",b):F[b]=a}}function I(a,d){if(!a||!F.hasOwnProperty(a))a=/^\s*=l&&(b+=2);g>=B&&(r+=2)}}finally{if(f)f.style.display=h}}catch(u){D.console&&console.log(u&&u.stack||u)}}var D=window,y=["break,continue,do,else,for,if,return,while"],E=[[y,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"], +"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],M=[E,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],N=[E,"abstract,assert,boolean,byte,extends,final,finally,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"], +O=[N,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,internal,into,is,let,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where"],E=[E,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],P=[y,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"], +Q=[y,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],W=[y,"as,assert,const,copy,drop,enum,extern,fail,false,fn,impl,let,log,loop,match,mod,move,mut,priv,pub,pure,ref,self,static,struct,true,trait,type,unsafe,use"],y=[y,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],R=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/, +V=/\S/,X=v({keywords:[M,O,E,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",P,Q,y],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),F={};p(X,["default-code"]);p(C([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-", +/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]);p(C([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/], +["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css",/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);p(C([],[["atv",/^[\S\s]+/]]),["uq.val"]);p(v({keywords:M,hashComments:!0,cStyleComments:!0,types:R}),["c","cc","cpp","cxx","cyc","m"]);p(v({keywords:"null,true,false"}),["json"]);p(v({keywords:O,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:R}), +["cs"]);p(v({keywords:N,cStyleComments:!0}),["java"]);p(v({keywords:y,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]);p(v({keywords:P,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]);p(v({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]);p(v({keywords:Q, +hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]);p(v({keywords:E,cStyleComments:!0,regexLiterals:!0}),["javascript","js"]);p(v({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);p(v({keywords:W,cStyleComments:!0,multilineStrings:!0}),["rc","rs","rust"]); +p(C([],[["str",/^[\S\s]+/]]),["regex"]);var Y=D.PR={createSimpleLexer:C,registerLangHandler:p,sourceDecorator:v,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ",prettyPrintOne:D.prettyPrintOne=function(a,d,g){var b=document.createElement("div");b.innerHTML="
"+a+"
";b=b.firstChild;g&&J(b,g,!0);K({h:d,j:g,c:b,i:1}); +return b.innerHTML},prettyPrint:D.prettyPrint=function(a,d){function g(){for(var b=D.PR_SHOULD_USE_CONTINUATION?c.now()+250:Infinity;i)/],["lit",/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],["lit",/^#[\da-f]{3,6}\b/i],["pln",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i],["pun",/^[^\s\w"']+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[["kwd",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[["str",/^[^"')]+/]]),["css-str"]); diff --git a/arches/app/media/plugins/revolution-slider.js b/arches/app/media/plugins/revolution-slider.js index f86d9b59c62..87acb789a9f 100644 --- a/arches/app/media/plugins/revolution-slider.js +++ b/arches/app/media/plugins/revolution-slider.js @@ -1,25 +1,25 @@ -var RevolutionSlider = function() { - - return { - - //Revolution Slider - Full Screen - initRSfullScreen: function() { - var revapi; - jQuery(document).ready(function() { - revapi = jQuery('.fullscreenbanner').revolution( - { - delay: 5000, - startwidth: 1170, - startheight: 500, - hideThumbs: 10, - fullWidth: "on", - fullScreen: "on", - hideCaptionAtLimit: "", - navigationStyle: "preview4", - fullScreenOffsetContainer: "" - }); - }); - } - - }; -}(); +var RevolutionSlider = function() { + + return { + + //Revolution Slider - Full Screen + initRSfullScreen: function() { + var revapi; + jQuery(document).ready(function() { + revapi = jQuery('.fullscreenbanner').revolution( + { + delay: 5000, + startwidth: 1170, + startheight: 500, + hideThumbs: 10, + fullWidth: "on", + fullScreen: "on", + hideCaptionAtLimit: "", + navigationStyle: "preview4", + fullScreenOffsetContainer: "" + }); + }); + } + + }; +}(); diff --git a/arches/app/media/plugins/revolution-slider/rs-plugin/css/settings-ie8.css b/arches/app/media/plugins/revolution-slider/rs-plugin/css/settings-ie8.css index 7cf7e51f9db..cf96e326a5c 100644 --- a/arches/app/media/plugins/revolution-slider/rs-plugin/css/settings-ie8.css +++ b/arches/app/media/plugins/revolution-slider/rs-plugin/css/settings-ie8.css @@ -1,814 +1,814 @@ -/*----------------------------------------------------------------------------- - - - Revolution Slider 1.5.3 - - - Screen Stylesheet - -version: 2.1 -date: 09/18/11 -last update: 06.12.2012 -author: themepunch -email: info@themepunch.com -website: http://www.themepunch.com ------------------------------------------------------------------------------*/ - - -/*----------------------------------------------------------------------------- - - - Revolution Slider 2.0 Captions - - - Screen Stylesheet - -version: 1.4.5 -date: 09/18/11 -last update: 06.12.2012 -author: themepunch -email: info@themepunch.com -website: http://www.themepunch.com ------------------------------------------------------------------------------*/ - - - -/************************* - - CAPTIONS - -**************************/ - -.tp-hide-revslider,.tp-caption.tp-hidden-caption { visibility:hidden !important; display:none !important;} - -.tp-caption { z-index:1;} -.tp-caption.big_white{ - position: absolute; - color: #fff; - text-shadow: none; - font-weight: 800; - font-size: 20px; - line-height: 20px; - font-family: 'Open Sans', sans; - padding: 3px 4px; - padding-top: 1px; - margin: 0px; - border-width: 0px; - border-style: none; - background-color:#000; - letter-spacing: 0px; - } - -.tp-caption.big_orange{ - position: absolute; - color: #fff; - text-shadow: none; - font-weight: 700; - font-size: 36px; - line-height: 36px; - font-family: Arial; - padding: 0px 4px; - margin: 0px; - border-width: 0px; - border-style: none; - background-color:#fb7354; - letter-spacing: -1.5px; - } - -.tp-caption.big_black{ - position: absolute; - color: #000; - text-shadow: none; - font-weight: 800; - font-size: 36px; - line-height: 36px; - font-family: 'Open Sans', sans; - padding: 0px 4px; - margin: 0px; - border-width: 0px; - border-style: none; - background-color:#fff; - letter-spacing: -1.5px; - } - -.tp-caption.medium_grey{ - position: absolute; - color: #fff; - text-shadow: none; - font-weight: 700; - font-size: 20px; - line-height: 20px; - font-family: Arial; - padding: 2px 4px; - margin: 0px; - border-width: 0px; - border-style: none; - background-color:#888; - white-space:nowrap; - text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5); - } - -.tp-caption.small_text{ - position: absolute; - color: #fff; - text-shadow: none; - font-weight: 700; - font-size: 14px; - line-height: 20px; - font-family: Arial; - margin: 0px; - border-width: 0px; - border-style: none; - white-space:nowrap; - text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5); - } - -.tp-caption.medium_text{ - position: absolute; - color: #fff; - text-shadow: none; - font-weight: 300; - font-size: 20px; - line-height: 20px; - font-family: 'Open Sans', sans; - margin: 0px; - border-width: 0px; - border-style: none; - white-space:nowrap; - text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5); - } - -.tp-caption.large_text{ - position: absolute; - color: #fff; - text-shadow: none; - font-weight: 800; - font-size: 36px; - line-height: 36px; - font-family: 'Open Sans', sans; - margin: 0px; - border-width: 0px; - border-style: none; - white-space:nowrap; - text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5); - } -.tp-caption.large_black_text{ - position: absolute; - color: #000; - text-shadow: none; - font-weight: 300; - font-size: 42px; - line-height: 42px; - font-family: 'Open Sans', sans; - margin: 0px; - border-width: 0px; - border-style: none; - white-space:nowrap; - } - -.tp-caption.very_large_text{ - position: absolute; - color: #fff; - text-shadow: none; - font-weight: 800; - font-size: 60px; - line-height: 60px; - font-family: 'Open Sans', sans; - margin: 0px; - border-width: 0px; - border-style: none; - white-space:nowrap; - text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5); - letter-spacing: 0px; - } -.tp-caption.very_large_black_text{ - position: absolute; - color: #000; - text-shadow: none; - font-weight: 800; - font-size: 72px; - line-height: 72px; - font-family: 'Open Sans', sans; - margin: 0px; - border-width: 0px; - border-style: none; - white-space:nowrap; - } -.tp-caption.bold_red_text{ - position: absolute; - color: #d31e00; - text-shadow: none; - font-weight: 800; - font-size: 20px; - line-height: 20px; - font-family: 'Open Sans', sans; - margin: 0px; - border-width: 0px; - border-style: none; - white-space:nowrap; - } -.tp-caption.bold_brown_text{ - position: absolute; - color: #a04606; - text-shadow: none; - font-weight: 800; - font-size: 20px; - line-height: 20px; - font-family: 'Open Sans', sans; - margin: 0px; - border-width: 0px; - border-style: none; - white-space:nowrap; - } - .tp-caption.bold_green_text{ - position: absolute; - color: #5b9830; - text-shadow: none; - font-weight: 800; - font-size: 20px; - line-height: 20px; - font-family: 'Open Sans', sans; - margin: 0px; - border-width: 0px; - border-style: none; - white-space:nowrap; - } - -.tp-caption.very_big_white{ - position: absolute; - color: #fff; - text-shadow: none; - font-weight: 800; - font-size: 36px; - line-height: 36px; - font-family: 'Open Sans', sans; - margin: 0px; - border-width: 0px; - border-style: none; - white-space:nowrap; - padding: 3px 4px; - padding-top: 1px; - background-color:#7e8e96; - } - -.tp-caption.very_big_black{ - position: absolute; - color: #000; - text-shadow: none; - font-weight: 700; - font-size: 60px; - line-height: 60px; - font-family: Arial; - margin: 0px; - border-width: 0px; - border-style: none; - white-space:nowrap; - padding: 0px 4px; - padding-top: 1px; - background-color:#fff; - } - - -.tp-caption.modern_medium_fat{ - position: absolute; - color: #000; - text-shadow: none; - font-weight: 800; - font-size: 24px; - line-height: 20px; - font-family: 'Open Sans', sans-serif; - margin: 0px; - border-width: 0px; - border-style: none; - white-space:nowrap; - } -.tp-caption.modern_medium_fat_white{ - position: absolute; - color: #fff; - text-shadow: none; - font-weight: 800; - font-size: 24px; - line-height: 20px; - font-family: 'Open Sans', sans-serif; - margin: 0px; - border-width: 0px; - border-style: none; - white-space:nowrap; - } -.tp-caption.modern_medium_light{ - position: absolute; - color: #000; - text-shadow: none; - font-weight: 300; - font-size: 24px; - line-height: 20px; - font-family: 'Open Sans', sans-serif; - margin: 0px; - border-width: 0px; - border-style: none; - white-space:nowrap; - } -.tp-caption.modern_big_bluebg{ - position: absolute; - color: #fff; - text-shadow: none; - font-weight: 800; - font-size: 30px; - line-height: 36px; - font-family: 'Open Sans', sans-serif; - padding: 3px 10px; - margin: 0px; - border-width: 0px; - border-style: none; - background-color:#4e5b6c; - letter-spacing: 0; - } -.tp-caption.modern_big_redbg{ - position: absolute; - color: #fff; - text-shadow: none; - font-weight: 300; - font-size: 30px; - line-height: 36px; - font-family: 'Open Sans', sans-serif; - padding: 3px 10px; - padding-top: 1px; - margin: 0px; - border-width: 0px; - border-style: none; - background-color:#de543e; - letter-spacing: 0; - } -.tp-caption.modern_small_text_dark{ - position: absolute; - color: #555; - text-shadow: none; - font-size: 14px; - line-height: 22px; - font-family: Arial; - margin: 0px; - border-width: 0px; - border-style: none; - white-space:nowrap; - } - - - - - -.tp-caption.boxshadow{ - -moz-box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5); - -webkit-box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5); - box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5); - } - -.tp-caption.black{ - color: #000; - text-shadow: none; - font-weight: 300; - font-size: 19px; - line-height: 19px; - font-family: 'Open Sans', sans; - } - -.tp-caption.noshadow { - text-shadow: none; - } - -.tp-caption a { - color: #ff7302; text-shadow: none; -webkit-transition: all 0.2s ease-out; -moz-transition: all 0.2s ease-out; -o-transition: all 0.2s ease-out; -ms-transition: all 0.2s ease-out; -} - -.tp-caption a:hover { - color: #ffa902; -} - - -.tp_inner_padding { box-sizing:border-box; - -webkit-box-sizing:border-box; - -moz-box-sizing:border-box; - max-height:none !important; } - - -.tp-caption .frontcorner { - width: 0; - height: 0; - border-left: 40px solid transparent; - border-right: 0px solid transparent; - border-top: 40px solid #00A8FF; - position: absolute;left:-40px;top:0px; - } - -.tp-caption .backcorner { - width: 0; - height: 0; - border-left: 0px solid transparent; - border-right: 40px solid transparent; - border-bottom: 40px solid #00A8FF; - position: absolute;right:0px;top:0px; - } - -.tp-caption .frontcornertop { - width: 0; - height: 0; - border-left: 40px solid transparent; - border-right: 0px solid transparent; - border-bottom: 40px solid #00A8FF; - position: absolute;left:-40px;top:0px; - } - -.tp-caption .backcornertop { - width: 0; - height: 0; - border-left: 0px solid transparent; - border-right: 40px solid transparent; - border-top: 40px solid #00A8FF; - position: absolute;right:0px;top:0px; - } - - -/****************************** - - BUTTONS - -*******************************/ - -.button { padding:6px 13px 5px; border-radius: 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px; height:30px; - cursor:pointer; - color:#fff !important; text-shadow:0px 1px 1px rgba(0, 0, 0, 0.6) !important; font-size:15px; line-height:45px !important; - background:url(../images/gradient/g30.png) repeat-x top; font-family: arial, sans-serif; font-weight: bold; letter-spacing: -1px; - } - -.button.big { color:#fff; text-shadow:0px 1px 1px rgba(0, 0, 0, 0.6); font-weight:bold; padding:9px 20px; font-size:19px; line-height:57px !important; background:url(../images/gradient/g40.png) repeat-x top;} - - -.purchase:hover, -.button:hover, -.button.big:hover { background-position:bottom, 15px 11px;} - - - - @media only screen and (min-width: 768px) and (max-width: 959px) { - - } - - - - @media only screen and (min-width: 480px) and (max-width: 767px) { - .button { padding:4px 8px 3px; line-height:25px !important; font-size:11px !important;font-weight:normal; } - a.button { -webkit-transition: none; -moz-transition: none; -o-transition: none; -ms-transition: none; } - - - } - - @media only screen and (min-width: 0px) and (max-width: 479px) { - .button { padding:2px 5px 2px; line-height:20px !important; font-size:10px !important;} - a.button { -webkit-transition: none; -moz-transition: none; -o-transition: none; -ms-transition: none; } - } - - - - - -/* BUTTON COLORS */ - - - -.button.green, .button:hover.green, -.purchase.green, .purchase:hover.green { background-color:#21a117; -webkit-box-shadow: 0px 3px 0px 0px #104d0b; -moz-box-shadow: 0px 3px 0px 0px #104d0b; box-shadow: 0px 3px 0px 0px #104d0b; } - - -.button.blue, .button:hover.blue, -.purchase.blue, .purchase:hover.blue { background-color:#1d78cb; -webkit-box-shadow: 0px 3px 0px 0px #0f3e68; -moz-box-shadow: 0px 3px 0px 0px #0f3e68; box-shadow: 0px 3px 0px 0px #0f3e68;} - - -.button.red, .button:hover.red, -.purchase.red, .purchase:hover.red { background-color:#cb1d1d; -webkit-box-shadow: 0px 3px 0px 0px #7c1212; -moz-box-shadow: 0px 3px 0px 0px #7c1212; box-shadow: 0px 3px 0px 0px #7c1212;} - -.button.orange, .button:hover.orange, -.purchase.orange, .purchase:hover.orange { background-color:#ff7700; -webkit-box-shadow: 0px 3px 0px 0px #a34c00; -moz-box-shadow: 0px 3px 0px 0px #a34c00; box-shadow: 0px 3px 0px 0px #a34c00;} - -.button.darkgrey,.button.grey, -.button:hover.darkgrey,.button:hover.grey, -.purchase.darkgrey, .purchase:hover.darkgrey { background-color:#555; -webkit-box-shadow: 0px 3px 0px 0px #222; -moz-box-shadow: 0px 3px 0px 0px #222; box-shadow: 0px 3px 0px 0px #222;} - -.button.lightgrey, .button:hover.lightgrey, -.purchase.lightgrey, .purchase:hover.lightgrey { background-color:#888; -webkit-box-shadow: 0px 3px 0px 0px #555; -moz-box-shadow: 0px 3px 0px 0px #555; box-shadow: 0px 3px 0px 0px #555;} - - - -/**************************************************************** - - - SET THE ANIMATION EVEN MORE SMOOTHER ON ANDROID - - -******************************************************************/ - -.tp-simpleresponsive .slotholder *, -.tp-simpleresponsive img { -webkit-transform: translateZ(0); - -webkit-backface-visibility: hidden; - -webkit-perspective: 1000; - } - - -/************************************************ - - SOME CAPTION MODIFICATION AT START - -*************************************************/ -.tp-simpleresponsive .caption, -.tp-simpleresponsive .tp-caption { - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; -moz-opacity: 0; -khtml-opacity: 0; opacity: 0; position:absolute; visibility: hidden; - -} - -.tp-simpleresponsive img { max-width:none;} - - - -/****************************** - - IE8 HACKS - -*******************************/ -.noFilterClass { - filter:none !important; -} - - -/****************************** - - SHADOWS - -******************************/ -.tp-bannershadow { - position:absolute; - - margin-left:auto; - margin-right:auto; - -moz-user-select: none; - -khtml-user-select: none; - -webkit-user-select: none; - -o-user-select: none; - } - -.tp-bannershadow.tp-shadow1 { background:url(../assets/shadow1.png) no-repeat; background-size:100%; width:890px; height:60px; bottom:-60px;} -.tp-bannershadow.tp-shadow2 { background:url(../assets/shadow2.png) no-repeat; background-size:100%; width:890px; height:60px;bottom:-60px;} -.tp-bannershadow.tp-shadow3 { background:url(../assets/shadow3.png) no-repeat; background-size:100%; width:890px; height:60px;bottom:-60px;} - - -/******************************** - - FULLSCREEN VIDEO - -*********************************/ -.caption.fullscreenvideo { left:0px; top:0px; position:absolute;width:100%;height:100%;} -.caption.fullscreenvideo iframe { width:100% !important; height:100% !important;} - -.tp-caption.fullscreenvideo { left:0px; top:0px; position:absolute;width:100%;height:100%;} -.tp-caption.fullscreenvideo iframe { width:100% !important; height:100% !important;} - -/************************ - - NAVIGATION - -*************************/ - -/** BULLETS **/ - -.tpclear { clear:both;} - - -.tp-bullets { z-index:1000; position:absolute; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; - -moz-opacity: 1; - -khtml-opacity: 1; - opacity: 1; - -webkit-transition: opacity 0.2s ease-out; -moz-transition: opacity 0.2s ease-out; -o-transition: opacity 0.2s ease-out; -ms-transition: opacity 0.2s ease-out; - } -.tp-bullets.hidebullets { - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; - -moz-opacity: 0; - -khtml-opacity: 0; - opacity: 0; - } - - -.tp-bullets.simplebullets.navbar { border:1px solid #666; border-bottom:1px solid #444; background:url(../assets/boxed_bgtile.png); height:40px; padding:0px 10px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px ;} - -.tp-bullets.simplebullets.navbar-old { background:url(../assets/navigdots_bgtile.png); height:35px; padding:0px 10px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px ;} - - -.tp-bullets.simplebullets.round .bullet { cursor:pointer; position:relative; background:url(../assets/bullet.png) no-Repeat top left; width:20px; height:20px; margin-right:0px; float:left; margin-top:2px; margin-left:3px;} -.tp-bullets.simplebullets.round .bullet.last { margin-right:3px;} - -.tp-bullets.simplebullets.round-old .bullet { cursor:pointer; position:relative; background:url(../assets/bullets.png) no-Repeat bottom left; width:23px; height:23px; margin-right:0px; float:left; margin-top:0px;} -.tp-bullets.simplebullets.round-old .bullet.last { margin-right:0px;} - - -/** SQUARE BULLETS **/ -.tp-bullets.simplebullets.square .bullet { cursor:pointer; position:relative; background:url(../assets/bullets2.png) no-Repeat bottom left; width:19px; height:19px; margin-right:0px; float:left; margin-top:2px;} -.tp-bullets.simplebullets.square .bullet.last { margin-right:0px;} - - -/** SQUARE BULLETS **/ -.tp-bullets.simplebullets.square-old .bullet { cursor:pointer; position:relative; background:url(../assets/bullets2.png) no-Repeat bottom left; width:19px; height:19px; margin-right:0px; float:left; margin-top:2px;} -.tp-bullets.simplebullets.square-old .bullet.last { margin-right:0px;} - - -/** navbar NAVIGATION VERSION **/ -.tp-bullets.simplebullets.navbar .bullet { cursor:pointer; position:relative; background:url(../assets/bullet_boxed.png) no-Repeat top left; width:18px; height:19px; margin-right:5px; float:left; margin-top:10px;} - -.tp-bullets.simplebullets.navbar .bullet.first { margin-left:0px !important;} -.tp-bullets.simplebullets.navbar .bullet.last { margin-right:0px !important;} - - - -/** navbar NAVIGATION VERSION **/ -.tp-bullets.simplebullets.navbar-old .bullet { cursor:pointer; position:relative; background:url(../assets/navigdots.png) no-Repeat bottom left; width:15px; height:15px; margin-left:5px !important; margin-right:5px !important;float:left; margin-top:10px;} -.tp-bullets.simplebullets.navbar-old .bullet.first { margin-left:0px !important;} -.tp-bullets.simplebullets.navbar-old .bullet.last { margin-right:0px !important;} - - -.tp-bullets.simplebullets .bullet:hover, -.tp-bullets.simplebullets .bullet.selected { background-position:top left; } - -.tp-bullets.simplebullets.round .bullet:hover, -.tp-bullets.simplebullets.round .bullet.selected, -.tp-bullets.simplebullets.navbar .bullet:hover, -.tp-bullets.simplebullets.navbar .bullet.selected { background-position:bottom left; } - - - -/************************************* - - TP ARROWS - -**************************************/ -.tparrows { -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; - -moz-opacity: 1; - -khtml-opacity: 1; - opacity: 1; - -webkit-transition: opacity 0.2s ease-out; -moz-transition: opacity 0.2s ease-out; -o-transition: opacity 0.2s ease-out; -ms-transition: opacity 0.2s ease-out; - - } -.tparrows.hidearrows { - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; - -moz-opacity: 0; - -khtml-opacity: 0; - opacity: 0; - } -.tp-leftarrow { z-index:100;cursor:pointer; position:relative; background:url(../assets/large_left.png) no-Repeat top left; width:40px; height:40px; } -.tp-rightarrow { z-index:100;cursor:pointer; position:relative; background:url(../assets/large_right.png) no-Repeat top left; width:40px; height:40px; } - - -.tp-leftarrow.round { z-index:100;cursor:pointer; position:relative; background:url(../assets/small_left.png) no-Repeat top left; width:19px; height:14px; margin-right:0px; float:left; margin-top:0px; } -.tp-rightarrow.round { z-index:100;cursor:pointer; position:relative; background:url(../assets/small_right.png) no-Repeat top left; width:19px; height:14px; margin-right:0px; float:left; margin-top:0px;} - - -.tp-leftarrow.round-old { z-index:100;cursor:pointer; position:relative; background:url(../assets/arrow_left.png) no-Repeat top left; width:26px; height:26px; margin-right:0px; float:left; margin-top:0px; } -.tp-rightarrow.round-old { z-index:100;cursor:pointer; position:relative; background:url(../assets/arrow_right.png) no-Repeat top left; width:26px; height:26px; margin-right:0px; float:left; margin-top:0px;} - - -.tp-leftarrow.navbar { z-index:100;cursor:pointer; position:relative; background:url(../assets/small_left_boxed.png) no-Repeat top left; width:20px; height:15px; float:left; margin-right:6px; margin-top:12px;} -.tp-rightarrow.navbar { z-index:100;cursor:pointer; position:relative; background:url(../assets/small_right_boxed.png) no-Repeat top left; width:20px; height:15px; float:left; margin-left:6px; margin-top:12px;} - - -.tp-leftarrow.navbar-old { z-index:100;cursor:pointer; position:relative; background:url(../assets/arrowleft.png) no-Repeat top left; width:9px; height:16px; float:left; margin-right:6px; margin-top:10px;} -.tp-rightarrow.navbar-old { z-index:100;cursor:pointer; position:relative; background:url(../assets/arrowright.png) no-Repeat top left; width:9px; height:16px; float:left; margin-left:6px; margin-top:10px;} - -.tp-leftarrow.navbar-old.thumbswitharrow { margin-right:10px; } -.tp-rightarrow.navbar-old.thumbswitharrow { margin-left:0px; } - -.tp-leftarrow.square { z-index:100;cursor:pointer; position:relative; background:url(../assets/arrow_left2.png) no-Repeat top left; width:12px; height:17px; float:left; margin-right:0px; margin-top:0px;} -.tp-rightarrow.square { z-index:100;cursor:pointer; position:relative; background:url(../assets/arrow_right2.png) no-Repeat top left; width:12px; height:17px; float:left; margin-left:0px; margin-top:0px;} - - -.tp-leftarrow.square-old { z-index:100;cursor:pointer; position:relative; background:url(../assets/arrow_left2.png) no-Repeat top left; width:12px; height:17px; float:left; margin-right:0px; margin-top:0px;} -.tp-rightarrow.square-old { z-index:100;cursor:pointer; position:relative; background:url(../assets/arrow_right2.png) no-Repeat top left; width:12px; height:17px; float:left; margin-left:0px; margin-top:0px;} - - -.tp-leftarrow.default { z-index:100;cursor:pointer; position:relative; background:url(../assets/large_left.png) no-Repeat 0 0; width:40px; height:40px; - - } -.tp-rightarrow.default { z-index:100;cursor:pointer; position:relative; background:url(../assets/large_right.png) no-Repeat 0 0; width:40px; height:40px; - - } - - - - -.tp-leftarrow:hover, -.tp-rightarrow:hover { background-position:bottom left; } - - - - - - -/**************************************************************************************************** - - TP THUMBS - -***************************************************************************************************** - - - tp-thumbs & tp-mask Width is the width of the basic Thumb Container (500px basic settings) - - - .bullet width & height is the dimension of a simple Thumbnail (basic 100px x 50px) - - *****************************************************************************************************/ - - -.tp-bullets.tp-thumbs { z-index:1000; position:absolute; padding:3px;background-color:#fff; - width:500px;height:50px; /* THE DIMENSIONS OF THE THUMB CONTAINER */ - margin-top:-50px; - } - - -.fullwidthbanner-container .tp-thumbs { padding:3px;} - -.tp-bullets.tp-thumbs .tp-mask { width:500px; height:50px; /* THE DIMENSIONS OF THE THUMB CONTAINER */ - overflow:hidden; position:relative;} - - -.tp-bullets.tp-thumbs .tp-mask .tp-thumbcontainer { width:5000px; position:absolute;} - -.tp-bullets.tp-thumbs .bullet { width:100px; height:50px; /* THE DIMENSION OF A SINGLE THUMB */ - cursor:pointer; overflow:hidden;background:none;margin:0;float:left; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; - /*filter: alpha(opacity=50); */ - -moz-opacity: 0.5; - -khtml-opacity: 0.5; - opacity: 0.5; - - -webkit-transition: all 0.2s ease-out; -moz-transition: all 0.2s ease-out; -o-transition: all 0.2s ease-out; -ms-transition: all 0.2s ease-out; - } - - -.tp-bullets.tp-thumbs .bullet:hover, -.tp-bullets.tp-thumbs .bullet.selected { -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; - - -moz-opacity: 1; - -khtml-opacity: 1; - opacity: 1; - } -.tp-thumbs img { width:100%; } - - -/************************************ - - TP BANNER TIMER - -*************************************/ -.tp-bannertimer { width:100%; height:10px; background:url(../assets/timer.png);position:absolute; z-index:200;top:0px;} -.tp-bannertimer.tp-bottom { bottom:0px;height:5px; top:auto;} - - - - -/*************************************** - - RESPONSIVE SETTINGS - -****************************************/ - - - @media only screen and (min-width: 768px) and (max-width: 959px) { - - } - - - - @media only screen and (min-width: 480px) and (max-width: 767px) { - .responsive .tp-bullets.tp-thumbs { width:300px !important; height:30px !important;} - .responsive .tp-bullets.tp-thumbs .tp-mask { width:300px !important; height:30px !important;} - .responsive .tp-bullets.tp-thumbs .bullet { width:60px !important;height:30px !important;} - - } - - @media only screen and (min-width: 0px) and (max-width: 479px) { - .responsive .tp-bullets { display:none} - .responsive .tparrows { display:none;} - } - - - - - -/********************************************* - - - BASIC SETTINGS FOR THE BANNER - - -***********************************************/ - - .tp-simpleresponsive img { - -moz-user-select: none; - -khtml-user-select: none; - -webkit-user-select: none; - -o-user-select: none; -} - - - -.tp-simpleresponsive a{ text-decoration:none;} - -.tp-simpleresponsive ul { - list-style:none; - padding:0; - margin:0; -} - -.tp-simpleresponsive >ul >li{ - list-stye:none; - position:absolute; - visibility:hidden; -} -/* CAPTION SLIDELINK **/ -.caption.slidelink a div, -.tp-caption.slidelink a div { width:3000px; height:1500px; background:url(../assets/coloredbg.png) repeat;} - -.tp-loader { background:url(../assets/loader.gif) no-repeat 10px 10px; background-color:#fff; margin:-22px -22px; top:50%; left:50%; z-index:10000; position:absolute;width:44px;height:44px; - border-radius: 3px; - -moz-border-radius: 3px; - -webkit-border-radius: 3px; - } - - -.tp-transparentimg { content:"url(../assets/transparent.jpg)"} -.tp-3d { -webkit-transform-style: preserve-3d; - -webkit-transform-origin: 50% 50%; - } - +/*----------------------------------------------------------------------------- + + - Revolution Slider 1.5.3 - + + Screen Stylesheet + +version: 2.1 +date: 09/18/11 +last update: 06.12.2012 +author: themepunch +email: info@themepunch.com +website: http://www.themepunch.com +-----------------------------------------------------------------------------*/ + + +/*----------------------------------------------------------------------------- + + - Revolution Slider 2.0 Captions - + + Screen Stylesheet + +version: 1.4.5 +date: 09/18/11 +last update: 06.12.2012 +author: themepunch +email: info@themepunch.com +website: http://www.themepunch.com +-----------------------------------------------------------------------------*/ + + + +/************************* + - CAPTIONS - +**************************/ + +.tp-hide-revslider,.tp-caption.tp-hidden-caption { visibility:hidden !important; display:none !important;} + +.tp-caption { z-index:1;} +.tp-caption.big_white{ + position: absolute; + color: #fff; + text-shadow: none; + font-weight: 800; + font-size: 20px; + line-height: 20px; + font-family: 'Open Sans', sans; + padding: 3px 4px; + padding-top: 1px; + margin: 0px; + border-width: 0px; + border-style: none; + background-color:#000; + letter-spacing: 0px; + } + +.tp-caption.big_orange{ + position: absolute; + color: #fff; + text-shadow: none; + font-weight: 700; + font-size: 36px; + line-height: 36px; + font-family: Arial; + padding: 0px 4px; + margin: 0px; + border-width: 0px; + border-style: none; + background-color:#fb7354; + letter-spacing: -1.5px; + } + +.tp-caption.big_black{ + position: absolute; + color: #000; + text-shadow: none; + font-weight: 800; + font-size: 36px; + line-height: 36px; + font-family: 'Open Sans', sans; + padding: 0px 4px; + margin: 0px; + border-width: 0px; + border-style: none; + background-color:#fff; + letter-spacing: -1.5px; + } + +.tp-caption.medium_grey{ + position: absolute; + color: #fff; + text-shadow: none; + font-weight: 700; + font-size: 20px; + line-height: 20px; + font-family: Arial; + padding: 2px 4px; + margin: 0px; + border-width: 0px; + border-style: none; + background-color:#888; + white-space:nowrap; + text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5); + } + +.tp-caption.small_text{ + position: absolute; + color: #fff; + text-shadow: none; + font-weight: 700; + font-size: 14px; + line-height: 20px; + font-family: Arial; + margin: 0px; + border-width: 0px; + border-style: none; + white-space:nowrap; + text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5); + } + +.tp-caption.medium_text{ + position: absolute; + color: #fff; + text-shadow: none; + font-weight: 300; + font-size: 20px; + line-height: 20px; + font-family: 'Open Sans', sans; + margin: 0px; + border-width: 0px; + border-style: none; + white-space:nowrap; + text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5); + } + +.tp-caption.large_text{ + position: absolute; + color: #fff; + text-shadow: none; + font-weight: 800; + font-size: 36px; + line-height: 36px; + font-family: 'Open Sans', sans; + margin: 0px; + border-width: 0px; + border-style: none; + white-space:nowrap; + text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5); + } +.tp-caption.large_black_text{ + position: absolute; + color: #000; + text-shadow: none; + font-weight: 300; + font-size: 42px; + line-height: 42px; + font-family: 'Open Sans', sans; + margin: 0px; + border-width: 0px; + border-style: none; + white-space:nowrap; + } + +.tp-caption.very_large_text{ + position: absolute; + color: #fff; + text-shadow: none; + font-weight: 800; + font-size: 60px; + line-height: 60px; + font-family: 'Open Sans', sans; + margin: 0px; + border-width: 0px; + border-style: none; + white-space:nowrap; + text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5); + letter-spacing: 0px; + } +.tp-caption.very_large_black_text{ + position: absolute; + color: #000; + text-shadow: none; + font-weight: 800; + font-size: 72px; + line-height: 72px; + font-family: 'Open Sans', sans; + margin: 0px; + border-width: 0px; + border-style: none; + white-space:nowrap; + } +.tp-caption.bold_red_text{ + position: absolute; + color: #d31e00; + text-shadow: none; + font-weight: 800; + font-size: 20px; + line-height: 20px; + font-family: 'Open Sans', sans; + margin: 0px; + border-width: 0px; + border-style: none; + white-space:nowrap; + } +.tp-caption.bold_brown_text{ + position: absolute; + color: #a04606; + text-shadow: none; + font-weight: 800; + font-size: 20px; + line-height: 20px; + font-family: 'Open Sans', sans; + margin: 0px; + border-width: 0px; + border-style: none; + white-space:nowrap; + } + .tp-caption.bold_green_text{ + position: absolute; + color: #5b9830; + text-shadow: none; + font-weight: 800; + font-size: 20px; + line-height: 20px; + font-family: 'Open Sans', sans; + margin: 0px; + border-width: 0px; + border-style: none; + white-space:nowrap; + } + +.tp-caption.very_big_white{ + position: absolute; + color: #fff; + text-shadow: none; + font-weight: 800; + font-size: 36px; + line-height: 36px; + font-family: 'Open Sans', sans; + margin: 0px; + border-width: 0px; + border-style: none; + white-space:nowrap; + padding: 3px 4px; + padding-top: 1px; + background-color:#7e8e96; + } + +.tp-caption.very_big_black{ + position: absolute; + color: #000; + text-shadow: none; + font-weight: 700; + font-size: 60px; + line-height: 60px; + font-family: Arial; + margin: 0px; + border-width: 0px; + border-style: none; + white-space:nowrap; + padding: 0px 4px; + padding-top: 1px; + background-color:#fff; + } + + +.tp-caption.modern_medium_fat{ + position: absolute; + color: #000; + text-shadow: none; + font-weight: 800; + font-size: 24px; + line-height: 20px; + font-family: 'Open Sans', sans-serif; + margin: 0px; + border-width: 0px; + border-style: none; + white-space:nowrap; + } +.tp-caption.modern_medium_fat_white{ + position: absolute; + color: #fff; + text-shadow: none; + font-weight: 800; + font-size: 24px; + line-height: 20px; + font-family: 'Open Sans', sans-serif; + margin: 0px; + border-width: 0px; + border-style: none; + white-space:nowrap; + } +.tp-caption.modern_medium_light{ + position: absolute; + color: #000; + text-shadow: none; + font-weight: 300; + font-size: 24px; + line-height: 20px; + font-family: 'Open Sans', sans-serif; + margin: 0px; + border-width: 0px; + border-style: none; + white-space:nowrap; + } +.tp-caption.modern_big_bluebg{ + position: absolute; + color: #fff; + text-shadow: none; + font-weight: 800; + font-size: 30px; + line-height: 36px; + font-family: 'Open Sans', sans-serif; + padding: 3px 10px; + margin: 0px; + border-width: 0px; + border-style: none; + background-color:#4e5b6c; + letter-spacing: 0; + } +.tp-caption.modern_big_redbg{ + position: absolute; + color: #fff; + text-shadow: none; + font-weight: 300; + font-size: 30px; + line-height: 36px; + font-family: 'Open Sans', sans-serif; + padding: 3px 10px; + padding-top: 1px; + margin: 0px; + border-width: 0px; + border-style: none; + background-color:#de543e; + letter-spacing: 0; + } +.tp-caption.modern_small_text_dark{ + position: absolute; + color: #555; + text-shadow: none; + font-size: 14px; + line-height: 22px; + font-family: Arial; + margin: 0px; + border-width: 0px; + border-style: none; + white-space:nowrap; + } + + + + + +.tp-caption.boxshadow{ + -moz-box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5); + -webkit-box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5); + box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5); + } + +.tp-caption.black{ + color: #000; + text-shadow: none; + font-weight: 300; + font-size: 19px; + line-height: 19px; + font-family: 'Open Sans', sans; + } + +.tp-caption.noshadow { + text-shadow: none; + } + +.tp-caption a { + color: #ff7302; text-shadow: none; -webkit-transition: all 0.2s ease-out; -moz-transition: all 0.2s ease-out; -o-transition: all 0.2s ease-out; -ms-transition: all 0.2s ease-out; +} + +.tp-caption a:hover { + color: #ffa902; +} + + +.tp_inner_padding { box-sizing:border-box; + -webkit-box-sizing:border-box; + -moz-box-sizing:border-box; + max-height:none !important; } + + +.tp-caption .frontcorner { + width: 0; + height: 0; + border-left: 40px solid transparent; + border-right: 0px solid transparent; + border-top: 40px solid #00A8FF; + position: absolute;left:-40px;top:0px; + } + +.tp-caption .backcorner { + width: 0; + height: 0; + border-left: 0px solid transparent; + border-right: 40px solid transparent; + border-bottom: 40px solid #00A8FF; + position: absolute;right:0px;top:0px; + } + +.tp-caption .frontcornertop { + width: 0; + height: 0; + border-left: 40px solid transparent; + border-right: 0px solid transparent; + border-bottom: 40px solid #00A8FF; + position: absolute;left:-40px;top:0px; + } + +.tp-caption .backcornertop { + width: 0; + height: 0; + border-left: 0px solid transparent; + border-right: 40px solid transparent; + border-top: 40px solid #00A8FF; + position: absolute;right:0px;top:0px; + } + + +/****************************** + - BUTTONS - +*******************************/ + +.button { padding:6px 13px 5px; border-radius: 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px; height:30px; + cursor:pointer; + color:#fff !important; text-shadow:0px 1px 1px rgba(0, 0, 0, 0.6) !important; font-size:15px; line-height:45px !important; + background:url(../images/gradient/g30.png) repeat-x top; font-family: arial, sans-serif; font-weight: bold; letter-spacing: -1px; + } + +.button.big { color:#fff; text-shadow:0px 1px 1px rgba(0, 0, 0, 0.6); font-weight:bold; padding:9px 20px; font-size:19px; line-height:57px !important; background:url(../images/gradient/g40.png) repeat-x top;} + + +.purchase:hover, +.button:hover, +.button.big:hover { background-position:bottom, 15px 11px;} + + + + @media only screen and (min-width: 768px) and (max-width: 959px) { + + } + + + + @media only screen and (min-width: 480px) and (max-width: 767px) { + .button { padding:4px 8px 3px; line-height:25px !important; font-size:11px !important;font-weight:normal; } + a.button { -webkit-transition: none; -moz-transition: none; -o-transition: none; -ms-transition: none; } + + + } + + @media only screen and (min-width: 0px) and (max-width: 479px) { + .button { padding:2px 5px 2px; line-height:20px !important; font-size:10px !important;} + a.button { -webkit-transition: none; -moz-transition: none; -o-transition: none; -ms-transition: none; } + } + + + + + +/* BUTTON COLORS */ + + + +.button.green, .button:hover.green, +.purchase.green, .purchase:hover.green { background-color:#21a117; -webkit-box-shadow: 0px 3px 0px 0px #104d0b; -moz-box-shadow: 0px 3px 0px 0px #104d0b; box-shadow: 0px 3px 0px 0px #104d0b; } + + +.button.blue, .button:hover.blue, +.purchase.blue, .purchase:hover.blue { background-color:#1d78cb; -webkit-box-shadow: 0px 3px 0px 0px #0f3e68; -moz-box-shadow: 0px 3px 0px 0px #0f3e68; box-shadow: 0px 3px 0px 0px #0f3e68;} + + +.button.red, .button:hover.red, +.purchase.red, .purchase:hover.red { background-color:#cb1d1d; -webkit-box-shadow: 0px 3px 0px 0px #7c1212; -moz-box-shadow: 0px 3px 0px 0px #7c1212; box-shadow: 0px 3px 0px 0px #7c1212;} + +.button.orange, .button:hover.orange, +.purchase.orange, .purchase:hover.orange { background-color:#ff7700; -webkit-box-shadow: 0px 3px 0px 0px #a34c00; -moz-box-shadow: 0px 3px 0px 0px #a34c00; box-shadow: 0px 3px 0px 0px #a34c00;} + +.button.darkgrey,.button.grey, +.button:hover.darkgrey,.button:hover.grey, +.purchase.darkgrey, .purchase:hover.darkgrey { background-color:#555; -webkit-box-shadow: 0px 3px 0px 0px #222; -moz-box-shadow: 0px 3px 0px 0px #222; box-shadow: 0px 3px 0px 0px #222;} + +.button.lightgrey, .button:hover.lightgrey, +.purchase.lightgrey, .purchase:hover.lightgrey { background-color:#888; -webkit-box-shadow: 0px 3px 0px 0px #555; -moz-box-shadow: 0px 3px 0px 0px #555; box-shadow: 0px 3px 0px 0px #555;} + + + +/**************************************************************** + + - SET THE ANIMATION EVEN MORE SMOOTHER ON ANDROID - + +******************************************************************/ + +.tp-simpleresponsive .slotholder *, +.tp-simpleresponsive img { -webkit-transform: translateZ(0); + -webkit-backface-visibility: hidden; + -webkit-perspective: 1000; + } + + +/************************************************ + - SOME CAPTION MODIFICATION AT START - +*************************************************/ +.tp-simpleresponsive .caption, +.tp-simpleresponsive .tp-caption { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; -moz-opacity: 0; -khtml-opacity: 0; opacity: 0; position:absolute; visibility: hidden; + +} + +.tp-simpleresponsive img { max-width:none;} + + + +/****************************** + - IE8 HACKS - +*******************************/ +.noFilterClass { + filter:none !important; +} + + +/****************************** + - SHADOWS - +******************************/ +.tp-bannershadow { + position:absolute; + + margin-left:auto; + margin-right:auto; + -moz-user-select: none; + -khtml-user-select: none; + -webkit-user-select: none; + -o-user-select: none; + } + +.tp-bannershadow.tp-shadow1 { background:url(../assets/shadow1.png) no-repeat; background-size:100%; width:890px; height:60px; bottom:-60px;} +.tp-bannershadow.tp-shadow2 { background:url(../assets/shadow2.png) no-repeat; background-size:100%; width:890px; height:60px;bottom:-60px;} +.tp-bannershadow.tp-shadow3 { background:url(../assets/shadow3.png) no-repeat; background-size:100%; width:890px; height:60px;bottom:-60px;} + + +/******************************** + - FULLSCREEN VIDEO - +*********************************/ +.caption.fullscreenvideo { left:0px; top:0px; position:absolute;width:100%;height:100%;} +.caption.fullscreenvideo iframe { width:100% !important; height:100% !important;} + +.tp-caption.fullscreenvideo { left:0px; top:0px; position:absolute;width:100%;height:100%;} +.tp-caption.fullscreenvideo iframe { width:100% !important; height:100% !important;} + +/************************ + - NAVIGATION - +*************************/ + +/** BULLETS **/ + +.tpclear { clear:both;} + + +.tp-bullets { z-index:1000; position:absolute; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; + -moz-opacity: 1; + -khtml-opacity: 1; + opacity: 1; + -webkit-transition: opacity 0.2s ease-out; -moz-transition: opacity 0.2s ease-out; -o-transition: opacity 0.2s ease-out; -ms-transition: opacity 0.2s ease-out; + } +.tp-bullets.hidebullets { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; + -moz-opacity: 0; + -khtml-opacity: 0; + opacity: 0; + } + + +.tp-bullets.simplebullets.navbar { border:1px solid #666; border-bottom:1px solid #444; background:url(../assets/boxed_bgtile.png); height:40px; padding:0px 10px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px ;} + +.tp-bullets.simplebullets.navbar-old { background:url(../assets/navigdots_bgtile.png); height:35px; padding:0px 10px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px ;} + + +.tp-bullets.simplebullets.round .bullet { cursor:pointer; position:relative; background:url(../assets/bullet.png) no-Repeat top left; width:20px; height:20px; margin-right:0px; float:left; margin-top:2px; margin-left:3px;} +.tp-bullets.simplebullets.round .bullet.last { margin-right:3px;} + +.tp-bullets.simplebullets.round-old .bullet { cursor:pointer; position:relative; background:url(../assets/bullets.png) no-Repeat bottom left; width:23px; height:23px; margin-right:0px; float:left; margin-top:0px;} +.tp-bullets.simplebullets.round-old .bullet.last { margin-right:0px;} + + +/** SQUARE BULLETS **/ +.tp-bullets.simplebullets.square .bullet { cursor:pointer; position:relative; background:url(../assets/bullets2.png) no-Repeat bottom left; width:19px; height:19px; margin-right:0px; float:left; margin-top:2px;} +.tp-bullets.simplebullets.square .bullet.last { margin-right:0px;} + + +/** SQUARE BULLETS **/ +.tp-bullets.simplebullets.square-old .bullet { cursor:pointer; position:relative; background:url(../assets/bullets2.png) no-Repeat bottom left; width:19px; height:19px; margin-right:0px; float:left; margin-top:2px;} +.tp-bullets.simplebullets.square-old .bullet.last { margin-right:0px;} + + +/** navbar NAVIGATION VERSION **/ +.tp-bullets.simplebullets.navbar .bullet { cursor:pointer; position:relative; background:url(../assets/bullet_boxed.png) no-Repeat top left; width:18px; height:19px; margin-right:5px; float:left; margin-top:10px;} + +.tp-bullets.simplebullets.navbar .bullet.first { margin-left:0px !important;} +.tp-bullets.simplebullets.navbar .bullet.last { margin-right:0px !important;} + + + +/** navbar NAVIGATION VERSION **/ +.tp-bullets.simplebullets.navbar-old .bullet { cursor:pointer; position:relative; background:url(../assets/navigdots.png) no-Repeat bottom left; width:15px; height:15px; margin-left:5px !important; margin-right:5px !important;float:left; margin-top:10px;} +.tp-bullets.simplebullets.navbar-old .bullet.first { margin-left:0px !important;} +.tp-bullets.simplebullets.navbar-old .bullet.last { margin-right:0px !important;} + + +.tp-bullets.simplebullets .bullet:hover, +.tp-bullets.simplebullets .bullet.selected { background-position:top left; } + +.tp-bullets.simplebullets.round .bullet:hover, +.tp-bullets.simplebullets.round .bullet.selected, +.tp-bullets.simplebullets.navbar .bullet:hover, +.tp-bullets.simplebullets.navbar .bullet.selected { background-position:bottom left; } + + + +/************************************* + - TP ARROWS - +**************************************/ +.tparrows { -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; + -moz-opacity: 1; + -khtml-opacity: 1; + opacity: 1; + -webkit-transition: opacity 0.2s ease-out; -moz-transition: opacity 0.2s ease-out; -o-transition: opacity 0.2s ease-out; -ms-transition: opacity 0.2s ease-out; + + } +.tparrows.hidearrows { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; + -moz-opacity: 0; + -khtml-opacity: 0; + opacity: 0; + } +.tp-leftarrow { z-index:100;cursor:pointer; position:relative; background:url(../assets/large_left.png) no-Repeat top left; width:40px; height:40px; } +.tp-rightarrow { z-index:100;cursor:pointer; position:relative; background:url(../assets/large_right.png) no-Repeat top left; width:40px; height:40px; } + + +.tp-leftarrow.round { z-index:100;cursor:pointer; position:relative; background:url(../assets/small_left.png) no-Repeat top left; width:19px; height:14px; margin-right:0px; float:left; margin-top:0px; } +.tp-rightarrow.round { z-index:100;cursor:pointer; position:relative; background:url(../assets/small_right.png) no-Repeat top left; width:19px; height:14px; margin-right:0px; float:left; margin-top:0px;} + + +.tp-leftarrow.round-old { z-index:100;cursor:pointer; position:relative; background:url(../assets/arrow_left.png) no-Repeat top left; width:26px; height:26px; margin-right:0px; float:left; margin-top:0px; } +.tp-rightarrow.round-old { z-index:100;cursor:pointer; position:relative; background:url(../assets/arrow_right.png) no-Repeat top left; width:26px; height:26px; margin-right:0px; float:left; margin-top:0px;} + + +.tp-leftarrow.navbar { z-index:100;cursor:pointer; position:relative; background:url(../assets/small_left_boxed.png) no-Repeat top left; width:20px; height:15px; float:left; margin-right:6px; margin-top:12px;} +.tp-rightarrow.navbar { z-index:100;cursor:pointer; position:relative; background:url(../assets/small_right_boxed.png) no-Repeat top left; width:20px; height:15px; float:left; margin-left:6px; margin-top:12px;} + + +.tp-leftarrow.navbar-old { z-index:100;cursor:pointer; position:relative; background:url(../assets/arrowleft.png) no-Repeat top left; width:9px; height:16px; float:left; margin-right:6px; margin-top:10px;} +.tp-rightarrow.navbar-old { z-index:100;cursor:pointer; position:relative; background:url(../assets/arrowright.png) no-Repeat top left; width:9px; height:16px; float:left; margin-left:6px; margin-top:10px;} + +.tp-leftarrow.navbar-old.thumbswitharrow { margin-right:10px; } +.tp-rightarrow.navbar-old.thumbswitharrow { margin-left:0px; } + +.tp-leftarrow.square { z-index:100;cursor:pointer; position:relative; background:url(../assets/arrow_left2.png) no-Repeat top left; width:12px; height:17px; float:left; margin-right:0px; margin-top:0px;} +.tp-rightarrow.square { z-index:100;cursor:pointer; position:relative; background:url(../assets/arrow_right2.png) no-Repeat top left; width:12px; height:17px; float:left; margin-left:0px; margin-top:0px;} + + +.tp-leftarrow.square-old { z-index:100;cursor:pointer; position:relative; background:url(../assets/arrow_left2.png) no-Repeat top left; width:12px; height:17px; float:left; margin-right:0px; margin-top:0px;} +.tp-rightarrow.square-old { z-index:100;cursor:pointer; position:relative; background:url(../assets/arrow_right2.png) no-Repeat top left; width:12px; height:17px; float:left; margin-left:0px; margin-top:0px;} + + +.tp-leftarrow.default { z-index:100;cursor:pointer; position:relative; background:url(../assets/large_left.png) no-Repeat 0 0; width:40px; height:40px; + + } +.tp-rightarrow.default { z-index:100;cursor:pointer; position:relative; background:url(../assets/large_right.png) no-Repeat 0 0; width:40px; height:40px; + + } + + + + +.tp-leftarrow:hover, +.tp-rightarrow:hover { background-position:bottom left; } + + + + + + +/**************************************************************************************************** + - TP THUMBS - +***************************************************************************************************** + + - tp-thumbs & tp-mask Width is the width of the basic Thumb Container (500px basic settings) + + - .bullet width & height is the dimension of a simple Thumbnail (basic 100px x 50px) + + *****************************************************************************************************/ + + +.tp-bullets.tp-thumbs { z-index:1000; position:absolute; padding:3px;background-color:#fff; + width:500px;height:50px; /* THE DIMENSIONS OF THE THUMB CONTAINER */ + margin-top:-50px; + } + + +.fullwidthbanner-container .tp-thumbs { padding:3px;} + +.tp-bullets.tp-thumbs .tp-mask { width:500px; height:50px; /* THE DIMENSIONS OF THE THUMB CONTAINER */ + overflow:hidden; position:relative;} + + +.tp-bullets.tp-thumbs .tp-mask .tp-thumbcontainer { width:5000px; position:absolute;} + +.tp-bullets.tp-thumbs .bullet { width:100px; height:50px; /* THE DIMENSION OF A SINGLE THUMB */ + cursor:pointer; overflow:hidden;background:none;margin:0;float:left; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; + /*filter: alpha(opacity=50); */ + -moz-opacity: 0.5; + -khtml-opacity: 0.5; + opacity: 0.5; + + -webkit-transition: all 0.2s ease-out; -moz-transition: all 0.2s ease-out; -o-transition: all 0.2s ease-out; -ms-transition: all 0.2s ease-out; + } + + +.tp-bullets.tp-thumbs .bullet:hover, +.tp-bullets.tp-thumbs .bullet.selected { -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; + + -moz-opacity: 1; + -khtml-opacity: 1; + opacity: 1; + } +.tp-thumbs img { width:100%; } + + +/************************************ + - TP BANNER TIMER - +*************************************/ +.tp-bannertimer { width:100%; height:10px; background:url(../assets/timer.png);position:absolute; z-index:200;top:0px;} +.tp-bannertimer.tp-bottom { bottom:0px;height:5px; top:auto;} + + + + +/*************************************** + - RESPONSIVE SETTINGS - +****************************************/ + + + @media only screen and (min-width: 768px) and (max-width: 959px) { + + } + + + + @media only screen and (min-width: 480px) and (max-width: 767px) { + .responsive .tp-bullets.tp-thumbs { width:300px !important; height:30px !important;} + .responsive .tp-bullets.tp-thumbs .tp-mask { width:300px !important; height:30px !important;} + .responsive .tp-bullets.tp-thumbs .bullet { width:60px !important;height:30px !important;} + + } + + @media only screen and (min-width: 0px) and (max-width: 479px) { + .responsive .tp-bullets { display:none} + .responsive .tparrows { display:none;} + } + + + + + +/********************************************* + + - BASIC SETTINGS FOR THE BANNER - + +***********************************************/ + + .tp-simpleresponsive img { + -moz-user-select: none; + -khtml-user-select: none; + -webkit-user-select: none; + -o-user-select: none; +} + + + +.tp-simpleresponsive a{ text-decoration:none;} + +.tp-simpleresponsive ul { + list-style:none; + padding:0; + margin:0; +} + +.tp-simpleresponsive >ul >li{ + list-stye:none; + position:absolute; + visibility:hidden; +} +/* CAPTION SLIDELINK **/ +.caption.slidelink a div, +.tp-caption.slidelink a div { width:3000px; height:1500px; background:url(../assets/coloredbg.png) repeat;} + +.tp-loader { background:url(../assets/loader.gif) no-repeat 10px 10px; background-color:#fff; margin:-22px -22px; top:50%; left:50%; z-index:10000; position:absolute;width:44px;height:44px; + border-radius: 3px; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + } + + +.tp-transparentimg { content:"url(../assets/transparent.jpg)"} +.tp-3d { -webkit-transform-style: preserve-3d; + -webkit-transform-origin: 50% 50%; + } + diff --git a/arches/app/media/plugins/revolution-slider/rs-plugin/css/settings.css b/arches/app/media/plugins/revolution-slider/rs-plugin/css/settings.css index 1eaca0673ab..9252f495fda 100644 --- a/arches/app/media/plugins/revolution-slider/rs-plugin/css/settings.css +++ b/arches/app/media/plugins/revolution-slider/rs-plugin/css/settings.css @@ -1,2436 +1,2436 @@ -/*----------------------------------------------------------------------------- - - - Revolution Slider 4.1 Captions - - - Screen Stylesheet - -version: 1.4.5 -date: 27/11/13 -author: themepunch -email: info@themepunch.com -website: http://www.themepunch.com ------------------------------------------------------------------------------*/ - - - -/************************* - - CAPTIONS - -**************************/ - -.tp-static-layers { position:absolute; z-index:505; top:0px;left:0px} - -.tp-hide-revslider,.tp-caption.tp-hidden-caption { visibility:hidden !important; display:none !important} - - -.tp-caption { z-index:1; white-space:nowrap} - -.tp-caption-demo .tp-caption { position:relative !important; display:inline-block; margin-bottom:10px; margin-right:20px !important} - - -.tp-caption.whitedivider3px { - - color: #000000; - text-shadow: none; - background-color: rgb(255, 255, 255); - background-color: rgba(255, 255, 255, 1); - text-decoration: none; - min-width: 408px; - min-height: 3px; - background-position: initial initial; - background-repeat: initial initial; - border-width: 0px; - border-color: #000000; - border-style: none; -} - - -.tp-caption.finewide_large_white { -color:#ffffff; -text-shadow:none; -font-size:60px; -line-height:60px; -font-weight:300; -font-family:"Open Sans", sans-serif; -background-color:transparent; -text-decoration:none; -text-transform:uppercase; -letter-spacing:8px; -border-width:0px; -border-color:rgb(0, 0, 0); -border-style:none; -} - -.tp-caption.whitedivider3px { -color:#000000; -text-shadow:none; -background-color:rgb(255, 255, 255); -background-color:rgba(255, 255, 255, 1); -text-decoration:none; -font-size:0px; -line-height:0; -min-width:468px; -min-height:3px; -border-width:0px; -border-color:rgb(0, 0, 0); -border-style:none; -} - -.tp-caption.finewide_medium_white { -color:#ffffff; -text-shadow:none; -font-size:37px; -line-height:37px; -font-weight:300; -font-family:"Open Sans", sans-serif; -background-color:transparent; -text-decoration:none; -text-transform:uppercase; -letter-spacing:5px; -border-width:0px; -border-color:rgb(0, 0, 0); -border-style:none; -} - -.tp-caption.boldwide_small_white { -font-size:25px; -line-height:25px; -font-weight:800; -font-family:"Open Sans", sans-serif; -color:rgb(255, 255, 255); -text-decoration:none; -background-color:transparent; -text-shadow:none; -text-transform:uppercase; -letter-spacing:5px; -border-width:0px; -border-color:rgb(0, 0, 0); -border-style:none; -} - -.tp-caption.whitedivider3px_vertical { -color:#000000; -text-shadow:none; -background-color:rgb(255, 255, 255); -background-color:rgba(255, 255, 255, 1); -text-decoration:none; -font-size:0px; -line-height:0; -min-width:3px; -min-height:130px; -border-width:0px; -border-color:rgb(0, 0, 0); -border-style:none; -} - -.tp-caption.finewide_small_white { -color:#ffffff; -text-shadow:none; -font-size:25px; -line-height:25px; -font-weight:300; -font-family:"Open Sans", sans-serif; -background-color:transparent; -text-decoration:none; -text-transform:uppercase; -letter-spacing:5px; -border-width:0px; -border-color:rgb(0, 0, 0); -border-style:none; -} - -.tp-caption.finewide_verysmall_white_mw { -font-size:13px; -line-height:25px; -font-weight:400; -font-family:"Open Sans", sans-serif; -color:#ffffff; -text-decoration:none; -background-color:transparent; -text-shadow:none; -text-transform:uppercase; -letter-spacing:5px; -max-width:470px; -white-space:normal !important; -border-width:0px; -border-color:rgb(0, 0, 0); -border-style:none; -} - -.tp-caption.lightgrey_divider { -text-decoration:none; -background-color:rgb(235, 235, 235); -background-color:rgba(235, 235, 235, 1); -width:370px; -height:3px; -background-position:initial initial; -background-repeat:initial initial; -border-width:0px; -border-color:rgb(34, 34, 34); -border-style:none; -} - -.tp-caption.finewide_large_white { -color: #FFF; -text-shadow: none; -font-size: 60px; -line-height: 60px; -font-weight: 300; -font-family: "Open Sans", sans-serif; -background-color: rgba(0, 0, 0, 0); -text-decoration: none; -text-transform: uppercase; -letter-spacing: 8px; -border-width: 0px; -border-color: #000; -border-style: none; -} - -.tp-caption.finewide_medium_white { -color: #FFF; -text-shadow: none; -font-size: 34px; -line-height: 34px; -font-weight: 300; -font-family: "Open Sans", sans-serif; -background-color: rgba(0, 0, 0, 0); -text-decoration: none; -text-transform: uppercase; -letter-spacing: 5px; -border-width: 0px; -border-color: #000; -border-style: none; -} - -.tp-caption.huge_red { -position:absolute; -color:rgb(223,75,107); -font-weight:400; -font-size:150px; -line-height:130px; -font-family: 'Oswald', sans-serif; -margin:0px; -border-width:0px; -border-style:none; -white-space:nowrap; -background-color:rgb(45,49,54); -padding:0px; -} - -.tp-caption.middle_yellow { -position:absolute; -color:rgb(251,213,114); -font-weight:600; -font-size:50px; -line-height:50px; -font-family: 'Open Sans', sans-serif; -margin:0px; -border-width:0px; -border-style:none; -white-space:nowrap; -} - -.tp-caption.huge_thin_yellow { - position:absolute; -color:rgb(251,213,114); -font-weight:300; -font-size:90px; -line-height:90px; -font-family: 'Open Sans', sans-serif; -margin:0px; -letter-spacing: 20px; -border-width:0px; -border-style:none; -white-space:nowrap; -} - -.tp-caption.big_dark { -position:absolute; -color:#333; -font-weight:700; -font-size:70px; -line-height:70px; -font-family:"Open Sans"; -margin:0px; -border-width:0px; -border-style:none; -white-space:nowrap; -} - -.tp-caption.medium_dark { -position:absolute; -color:#333; -font-weight:300; -font-size:40px; -line-height:40px; -font-family:"Open Sans"; -margin:0px; -letter-spacing: 5px; -border-width:0px; -border-style:none; -white-space:nowrap; -} - - -.tp-caption.medium_grey { -position:absolute; -color:#fff; -text-shadow:0px 2px 5px rgba(0, 0, 0, 0.5); -font-weight:700; -font-size:20px; -line-height:20px; -font-family:Arial; -padding:2px 4px; -margin:0px; -border-width:0px; -border-style:none; -background-color:#888; -white-space:nowrap; -} - -.tp-caption.small_text { -position:absolute; -color:#fff; -text-shadow:0px 2px 5px rgba(0, 0, 0, 0.5); -font-weight:700; -font-size:14px; -line-height:20px; -font-family:Arial; -margin:0px; -border-width:0px; -border-style:none; -white-space:nowrap; -} - -.tp-caption.medium_text { -position:absolute; -color:#fff; -text-shadow:0px 2px 5px rgba(0, 0, 0, 0.5); -font-weight:700; -font-size:20px; -line-height:20px; -font-family:Arial; -margin:0px; -border-width:0px; -border-style:none; -white-space:nowrap; -} - - -.tp-caption.large_bold_white_25 { -font-size:55px; -line-height:65px; -font-weight:700; -font-family:"Open Sans"; -color:#fff; -text-decoration:none; -background-color:transparent; -text-align:center; -text-shadow:#000 0px 5px 10px; -border-width:0px; -border-color:rgb(255, 255, 255); -border-style:none; -} - -.tp-caption.medium_text_shadow { -font-size:25px; -line-height:25px; -font-weight:600; -font-family:"Open Sans"; -color:#fff; -text-decoration:none; -background-color:transparent; -text-align:center; -text-shadow:#000 0px 5px 10px; -border-width:0px; -border-color:rgb(255, 255, 255); -border-style:none; -} - -.tp-caption.large_text { -position:absolute; -color:#fff; -text-shadow:0px 2px 5px rgba(0, 0, 0, 0.5); -font-weight:700; -font-size:40px; -line-height:40px; -font-family:Arial; -margin:0px; -border-width:0px; -border-style:none; -white-space:nowrap; -} - -.tp-caption.medium_bold_grey { -font-size:30px; -line-height:30px; -font-weight:800; -font-family:"Open Sans"; -color:rgb(102, 102, 102); -text-decoration:none; -background-color:transparent; -text-shadow:none; -margin:0px; -padding:1px 4px 0px; -border-width:0px; -border-color:rgb(255, 214, 88); -border-style:none; -} - -.tp-caption.very_large_text { -position:absolute; -color:#fff; -text-shadow:0px 2px 5px rgba(0, 0, 0, 0.5); -font-weight:700; -font-size:60px; -line-height:60px; -font-family:Arial; -margin:0px; -border-width:0px; -border-style:none; -white-space:nowrap; -letter-spacing:-2px; -} - -.tp-caption.very_big_white { -position:absolute; -color:#fff; -text-shadow:none; -font-weight:800; -font-size:60px; -line-height:60px; -font-family:Arial; -margin:0px; -border-width:0px; -border-style:none; -white-space:nowrap; -padding:0px 4px; -padding-top:1px; -background-color:#000; -} - -.tp-caption.very_big_black { -position:absolute; -color:#000; -text-shadow:none; -font-weight:700; -font-size:60px; -line-height:60px; -font-family:Arial; -margin:0px; -border-width:0px; -border-style:none; -white-space:nowrap; -padding:0px 4px; -padding-top:1px; -background-color:#fff; -} - -.tp-caption.modern_medium_fat { -position:absolute; -color:#000; -text-shadow:none; -font-weight:800; -font-size:24px; -line-height:20px; -font-family:"Open Sans", sans-serif; -margin:0px; -border-width:0px; -border-style:none; -white-space:nowrap; -} - -.tp-caption.modern_medium_fat_white { -position:absolute; -color:#fff; -text-shadow:none; -font-weight:800; -font-size:24px; -line-height:20px; -font-family:"Open Sans", sans-serif; -margin:0px; -border-width:0px; -border-style:none; -white-space:nowrap; -} - -.tp-caption.modern_medium_light { -position:absolute; -color:#000; -text-shadow:none; -font-weight:300; -font-size:24px; -line-height:20px; -font-family:"Open Sans", sans-serif; -margin:0px; -border-width:0px; -border-style:none; -white-space:nowrap; -} - -.tp-caption.modern_big_bluebg { -position:absolute; -color:#fff; -text-shadow:none; -font-weight:800; -font-size:30px; -line-height:36px; -font-family:"Open Sans", sans-serif; -padding:3px 10px; -margin:0px; -border-width:0px; -border-style:none; -background-color:#4e5b6c; -letter-spacing:0; -} - -.tp-caption.modern_big_redbg { -position:absolute; -color:#fff; -text-shadow:none; -font-weight:300; -font-size:30px; -line-height:36px; -font-family:"Open Sans", sans-serif; -padding:3px 10px; -padding-top:1px; -margin:0px; -border-width:0px; -border-style:none; -background-color:#de543e; -letter-spacing:0; -} - -.tp-caption.modern_small_text_dark { -position:absolute; -color:#555; -text-shadow:none; -font-size:14px; -line-height:22px; -font-family:Arial; -margin:0px; -border-width:0px; -border-style:none; -white-space:nowrap; -} - -.tp-caption.boxshadow { --moz-box-shadow:0px 0px 20px rgba(0, 0, 0, 0.5); --webkit-box-shadow:0px 0px 20px rgba(0, 0, 0, 0.5); -box-shadow:0px 0px 20px rgba(0, 0, 0, 0.5); -} - -.tp-caption.black { -color:#000; -text-shadow:none; -} - -.tp-caption.noshadow { -text-shadow:none; -} - -.tp-caption a { -color:#ff7302; -text-shadow:none; --webkit-transition:all 0.2s ease-out; --moz-transition:all 0.2s ease-out; --o-transition:all 0.2s ease-out; --ms-transition:all 0.2s ease-out; -} - -.tp-caption a:hover { -color:#ffa902; -} - -.tp-caption.thinheadline_dark { -position:absolute; -color:rgba(0,0,0,0.85); -text-shadow:none; -font-weight:300; -font-size:30px; -line-height:30px; -font-family:"Open Sans"; -background-color:transparent; -} - -.tp-caption.thintext_dark { -position:absolute; -color:rgba(0,0,0,0.85); -text-shadow:none; -font-weight:300; -font-size:16px; -line-height:26px; -font-family:"Open Sans"; -background-color:transparent; -} - -.tp-caption.medium_bg_red a { - color: #fff; - text-decoration: none; -} - -.tp-caption.medium_bg_red a:hover { - color: #fff; - text-decoration: underline; -} - -.tp-caption.smoothcircle { -font-size:30px; -line-height:75px; -font-weight:800; -font-family:"Open Sans"; -color:rgb(255, 255, 255); -text-decoration:none; -background-color:rgb(0, 0, 0); -background-color:rgba(0, 0, 0, 0.498039); -padding:50px 25px; -text-align:center; -border-radius:500px 500px 500px 500px; -border-width:0px; -border-color:rgb(0, 0, 0); -border-style:none; -} - -.tp-caption.largeblackbg { -font-size:50px; -line-height:70px; -font-weight:300; -font-family:"Open Sans"; -color:rgb(255, 255, 255); -text-decoration:none; -background-color:rgb(0, 0, 0); -padding:0px 20px 5px; -text-shadow:none; -border-width:0px; -border-color:rgb(255, 255, 255); -border-style:none; -} - -.tp-caption.largepinkbg { -position:absolute; -color:#fff; -text-shadow:none; -font-weight:300; -font-size:50px; -line-height:70px; -font-family:"Open Sans"; -background-color:#db4360; -padding:0px 20px; --webkit-border-radius:0px; --moz-border-radius:0px; -border-radius:0px; -} - -.tp-caption.largewhitebg { -position:absolute; -color:#000; -text-shadow:none; -font-weight:300; -font-size:50px; -line-height:70px; -font-family:"Open Sans"; -background-color:#fff; -padding:0px 20px; --webkit-border-radius:0px; --moz-border-radius:0px; -border-radius:0px; -} - -.tp-caption.largegreenbg { -position:absolute; -color:#fff; -text-shadow:none; -font-weight:300; -font-size:50px; -line-height:70px; -font-family:"Open Sans"; -background-color:#67ae73; -padding:0px 20px; --webkit-border-radius:0px; --moz-border-radius:0px; -border-radius:0px; -} - -.tp-caption.excerpt { -font-size:36px; -line-height:36px; -font-weight:700; -font-family:Arial; -color:#ffffff; -text-decoration:none; -background-color:rgba(0, 0, 0, 1); -text-shadow:none; -margin:0px; -letter-spacing:-1.5px; -padding:1px 4px 0px 4px; -width:150px; -white-space:normal !important; -height:auto; -border-width:0px; -border-color:rgb(255, 255, 255); -border-style:none; -} - -.tp-caption.large_bold_grey { -font-size:60px; -line-height:60px; -font-weight:800; -font-family:"Open Sans"; -color:rgb(102, 102, 102); -text-decoration:none; -background-color:transparent; -text-shadow:none; -margin:0px; -padding:1px 4px 0px; -border-width:0px; -border-color:rgb(255, 214, 88); -border-style:none; -} - -.tp-caption.medium_thin_grey { -font-size:34px; -line-height:30px; -font-weight:300; -font-family:"Open Sans"; -color:rgb(102, 102, 102); -text-decoration:none; -background-color:transparent; -padding:1px 4px 0px; -text-shadow:none; -margin:0px; -border-width:0px; -border-color:rgb(255, 214, 88); -border-style:none; -} - -.tp-caption.small_thin_grey { -font-size:18px; -line-height:26px; -font-weight:300; -font-family:"Open Sans"; -color:rgb(117, 117, 117); -text-decoration:none; -background-color:transparent; -padding:1px 4px 0px; -text-shadow:none; -margin:0px; -border-width:0px; -border-color:rgb(255, 214, 88); -border-style:none; -} - -.tp-caption.lightgrey_divider { -text-decoration:none; -background-color:rgba(235, 235, 235, 1); -width:370px; -height:3px; -background-position:initial initial; -background-repeat:initial initial; -border-width:0px; -border-color:rgb(34, 34, 34); -border-style:none; -} - -.tp-caption.large_bold_darkblue { -font-size:58px; -line-height:60px; -font-weight:800; -font-family:"Open Sans"; -color:rgb(52, 73, 94); -text-decoration:none; -background-color:transparent; -border-width:0px; -border-color:rgb(255, 214, 88); -border-style:none; -} - -.tp-caption.medium_bg_darkblue { -font-size:20px; -line-height:20px; -font-weight:800; -font-family:"Open Sans"; -color:rgb(255, 255, 255); -text-decoration:none; -background-color:rgb(52, 73, 94); -padding:10px; -border-width:0px; -border-color:rgb(255, 214, 88); -border-style:none; -} - -.tp-caption.medium_bold_red { -font-size:24px; -line-height:30px; -font-weight:800; -font-family:"Open Sans"; -color:rgb(227, 58, 12); -text-decoration:none; -background-color:transparent; -padding:0px; -border-width:0px; -border-color:rgb(255, 214, 88); -border-style:none; -} - -.tp-caption.medium_light_red { -font-size:21px; -line-height:26px; -font-weight:300; -font-family:"Open Sans"; -color:rgb(227, 58, 12); -text-decoration:none; -background-color:transparent; -padding:0px; -border-width:0px; -border-color:rgb(255, 214, 88); -border-style:none; -} - -.tp-caption.medium_bg_red { -font-size:20px; -line-height:20px; -font-weight:800; -font-family:"Open Sans"; -color:rgb(255, 255, 255); -text-decoration:none; -background-color:rgb(227, 58, 12); -padding:10px; -border-width:0px; -border-color:rgb(255, 214, 88); -border-style:none; -} - -.tp-caption.medium_bold_orange { -font-size:24px; -line-height:30px; -font-weight:800; -font-family:"Open Sans"; -color:rgb(243, 156, 18); -text-decoration:none; -background-color:transparent; -border-width:0px; -border-color:rgb(255, 214, 88); -border-style:none; -} - -.tp-caption.medium_bg_orange { -font-size:20px; -line-height:20px; -font-weight:800; -font-family:"Open Sans"; -color:rgb(255, 255, 255); -text-decoration:none; -background-color:rgb(243, 156, 18); -padding:10px; -border-width:0px; -border-color:rgb(255, 214, 88); -border-style:none; -} - -.tp-caption.grassfloor { -text-decoration:none; -background-color:rgba(160, 179, 151, 1); -width:4000px; -height:150px; -border-width:0px; -border-color:rgb(34, 34, 34); -border-style:none; -} - -.tp-caption.large_bold_white { -font-size:58px; -line-height:60px; -font-weight:800; -font-family:"Open Sans"; -color:rgb(255, 255, 255); -text-decoration:none; -background-color:transparent; -border-width:0px; -border-color:rgb(255, 214, 88); -border-style:none; -} - -.tp-caption.medium_light_white { -font-size:30px; -line-height:36px; -font-weight:300; -font-family:"Open Sans"; -color:rgb(255, 255, 255); -text-decoration:none; -background-color:transparent; -padding:0px; -border-width:0px; -border-color:rgb(255, 214, 88); -border-style:none; -} - -.tp-caption.mediumlarge_light_white { -font-size:34px; -line-height:40px; -font-weight:300; -font-family:"Open Sans"; -color:rgb(255, 255, 255); -text-decoration:none; -background-color:transparent; -padding:0px; -border-width:0px; -border-color:rgb(255, 214, 88); -border-style:none; -} - -.tp-caption.mediumlarge_light_white_center { -font-size:34px; -line-height:40px; -font-weight:300; -font-family:"Open Sans"; -color:#ffffff; -text-decoration:none; -background-color:transparent; -padding:0px 0px 0px 0px; -text-align:center; -border-width:0px; -border-color:rgb(255, 214, 88); -border-style:none; -} - -.tp-caption.medium_bg_asbestos { -font-size:20px; -line-height:20px; -font-weight:800; -font-family:"Open Sans"; -color:rgb(255, 255, 255); -text-decoration:none; -background-color:rgb(127, 140, 141); -padding:10px; -border-width:0px; -border-color:rgb(255, 214, 88); -border-style:none; -} - -.tp-caption.medium_light_black { -font-size:30px; -line-height:36px; -font-weight:300; -font-family:"Open Sans"; -color:rgb(0, 0, 0); -text-decoration:none; -background-color:transparent; -padding:0px; -border-width:0px; -border-color:rgb(255, 214, 88); -border-style:none; -} - -.tp-caption.large_bold_black { -font-size:58px; -line-height:60px; -font-weight:800; -font-family:"Open Sans"; -color:rgb(0, 0, 0); -text-decoration:none; -background-color:transparent; -border-width:0px; -border-color:rgb(255, 214, 88); -border-style:none; -} - -.tp-caption.mediumlarge_light_darkblue { -font-size:34px; -line-height:40px; -font-weight:300; -font-family:"Open Sans"; -color:rgb(52, 73, 94); -text-decoration:none; -background-color:transparent; -padding:0px; -border-width:0px; -border-color:rgb(255, 214, 88); -border-style:none; -} - -.tp-caption.small_light_white { -font-size:17px; -line-height:28px; -font-weight:300; -font-family:"Open Sans"; -color:rgb(255, 255, 255); -text-decoration:none; -background-color:transparent; -padding:0px; -border-width:0px; -border-color:rgb(255, 214, 88); -border-style:none; -} - -.tp-caption.roundedimage { -border-width:0px; -border-color:rgb(34, 34, 34); -border-style:none; -} - -.tp-caption.large_bg_black { -font-size:40px; -line-height:40px; -font-weight:800; -font-family:"Open Sans"; -color:rgb(255, 255, 255); -text-decoration:none; -background-color:rgb(0, 0, 0); -padding:10px 20px 15px; -border-width:0px; -border-color:rgb(255, 214, 88); -border-style:none; -} - -.tp-caption.mediumwhitebg { -font-size:30px; -line-height:30px; -font-weight:300; -font-family:"Open Sans"; -color:rgb(0, 0, 0); -text-decoration:none; -background-color:rgb(255, 255, 255); -padding:5px 15px 10px; -text-shadow:none; -border-width:0px; -border-color:rgb(0, 0, 0); -border-style:none; -} - -.tp-caption.medium_bg_orange_new1 { -font-size:20px; -line-height:20px; -font-weight:800; -font-family:"Open Sans"; -color:rgb(255, 255, 255); -text-decoration:none; -background-color:rgb(243, 156, 18); -padding:10px; -border-width:0px; -border-color:rgb(255, 214, 88); -border-style:none; -} - - - -.tp-caption.boxshadow{ - -moz-box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5); - -webkit-box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5); - box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5); - } - -.tp-caption.black{ - color: #000; - text-shadow: none; - font-weight: 300; - font-size: 19px; - line-height: 19px; - font-family: 'Open Sans', sans; - } - -.tp-caption.noshadow { - text-shadow: none; - } - - -.tp_inner_padding { box-sizing:border-box; - -webkit-box-sizing:border-box; - -moz-box-sizing:border-box; - max-height:none !important; } - - -/*.tp-caption { transform:none !important}*/ - - -/********************************* - - SPECIAL TP CAPTIONS - -**********************************/ -.tp-caption .frontcorner { - width: 0; - height: 0; - border-left: 40px solid transparent; - border-right: 0px solid transparent; - border-top: 40px solid #00A8FF; - position: absolute;left:-40px;top:0px; - } - -.tp-caption .backcorner { - width: 0; - height: 0; - border-left: 0px solid transparent; - border-right: 40px solid transparent; - border-bottom: 40px solid #00A8FF; - position: absolute;right:0px;top:0px; - } - -.tp-caption .frontcornertop { - width: 0; - height: 0; - border-left: 40px solid transparent; - border-right: 0px solid transparent; - border-bottom: 40px solid #00A8FF; - position: absolute;left:-40px;top:0px; - } - -.tp-caption .backcornertop { - width: 0; - height: 0; - border-left: 0px solid transparent; - border-right: 40px solid transparent; - border-top: 40px solid #00A8FF; - position: absolute;right:0px;top:0px; - } - - -/*********************************************** - - SPECIAL ALTERNATIVE IMAGE SETTINGS - -***********************************************/ - -img.tp-slider-alternative-image { width:100%; height:auto;} - -/****************************** - - BUTTONS - -*******************************/ - -.tp-simpleresponsive .button { padding:6px 13px 5px; border-radius: 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px; height:30px; - cursor:pointer; - color:#fff !important; text-shadow:0px 1px 1px rgba(0, 0, 0, 0.6) !important; font-size:15px; line-height:45px !important; - background:url(../images/gradient/g30.png) repeat-x top; font-family: arial, sans-serif; font-weight: bold; letter-spacing: -1px; - } - -.tp-simpleresponsive .button.big { color:#fff; text-shadow:0px 1px 1px rgba(0, 0, 0, 0.6); font-weight:bold; padding:9px 20px; font-size:19px; line-height:57px !important; background:url(../images/gradient/g40.png) repeat-x top} - - -.tp-simpleresponsive .purchase:hover, -.tp-simpleresponsive .button:hover, -.tp-simpleresponsive .button.big:hover { background-position:bottom, 15px 11px} - - - - @media only screen and (min-width: 768px) and (max-width: 959px) { - - } - - - - @media only screen and (min-width: 480px) and (max-width: 767px) { - .tp-simpleresponsive .button { padding:4px 8px 3px; line-height:25px !important; font-size:11px !important;font-weight:normal; } - .tp-simpleresponsive a.button { -webkit-transition: none; -moz-transition: none; -o-transition: none; -ms-transition: none; } - - - } - - @media only screen and (min-width: 0px) and (max-width: 479px) { - .tp-simpleresponsive .button { padding:2px 5px 2px; line-height:20px !important; font-size:10px !important} - .tp-simpleresponsive a.button { -webkit-transition: none; -moz-transition: none; -o-transition: none; -ms-transition: none; } - } - - - - - -/* BUTTON COLORS */ - - - -.tp-simpleresponsive .button.green, .tp-simpleresponsive .button:hover.green, -.tp-simpleresponsive .purchase.green, .tp-simpleresponsive .purchase:hover.green { background-color:#21a117; -webkit-box-shadow: 0px 3px 0px 0px #104d0b; -moz-box-shadow: 0px 3px 0px 0px #104d0b; box-shadow: 0px 3px 0px 0px #104d0b; } - - -.tp-simpleresponsive .button.blue, .tp-simpleresponsive .button:hover.blue, -.tp-simpleresponsive .purchase.blue, .tp-simpleresponsive .purchase:hover.blue { background-color:#1d78cb; -webkit-box-shadow: 0px 3px 0px 0px #0f3e68; -moz-box-shadow: 0px 3px 0px 0px #0f3e68; box-shadow: 0px 3px 0px 0px #0f3e68} - - -.tp-simpleresponsive .button.red, .tp-simpleresponsive .button:hover.red, -.tp-simpleresponsive .purchase.red, .tp-simpleresponsive .purchase:hover.red { background-color:#cb1d1d; -webkit-box-shadow: 0px 3px 0px 0px #7c1212; -moz-box-shadow: 0px 3px 0px 0px #7c1212; box-shadow: 0px 3px 0px 0px #7c1212} - -.tp-simpleresponsive .button.orange, .tp-simpleresponsive .button:hover.orange, -.tp-simpleresponsive .purchase.orange, .tp-simpleresponsive .purchase:hover.orange { background-color:#ff7700; -webkit-box-shadow: 0px 3px 0px 0px #a34c00; -moz-box-shadow: 0px 3px 0px 0px #a34c00; box-shadow: 0px 3px 0px 0px #a34c00} - -.tp-simpleresponsive .button.darkgrey, .tp-simpleresponsive .button.grey, -.tp-simpleresponsive .button:hover.darkgrey, .tp-simpleresponsive .button:hover.grey, -.tp-simpleresponsive .purchase.darkgrey, .tp-simpleresponsive .purchase:hover.darkgrey { background-color:#555; -webkit-box-shadow: 0px 3px 0px 0px #222; -moz-box-shadow: 0px 3px 0px 0px #222; box-shadow: 0px 3px 0px 0px #222} - -.tp-simpleresponsive .button.lightgrey, .tp-simpleresponsive .button:hover.lightgrey, -.tp-simpleresponsive .purchase.lightgrey, .tp-simpleresponsive .purchase:hover.lightgrey { background-color:#888; -webkit-box-shadow: 0px 3px 0px 0px #555; -moz-box-shadow: 0px 3px 0px 0px #555; box-shadow: 0px 3px 0px 0px #555} - - - -/**************************************************************** - - - SET THE ANIMATION EVEN MORE SMOOTHER ON ANDROID - - -******************************************************************/ - -/*.tp-simpleresponsive { -webkit-perspective: 1500px; - -moz-perspective: 1500px; - -o-perspective: 1500px; - -ms-perspective: 1500px; - perspective: 1500px; - }*/ - - - - -/********************************************** - - FULLSCREEN AND FULLWIDHT CONTAINERS - -**********************************************/ - -.fullscreen-container { - width:100%; - position:relative; - padding:0; -} - - - -.fullwidthbanner-container{ - width:100%; - position:relative; - padding:0; - overflow:hidden; -} - -.fullwidthbanner-container .fullwidthbanner{ - width:100%; - position:relative; -} - - - -/************************************************ - - SOME CAPTION MODIFICATION AT START - -*************************************************/ -.tp-simpleresponsive .caption, -.tp-simpleresponsive .tp-caption { - /*-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; -moz-opacity: 0; -khtml-opacity: 0; opacity: 0; */ - position:absolute;visibility: hidden; - -webkit-font-smoothing: antialiased !important; -} - - -.tp-simpleresponsive img { max-width:none} - - - -/****************************** - - IE8 HACKS - -*******************************/ -.noFilterClass { - filter:none !important; -} - - -/****************************** - - SHADOWS - -******************************/ -.tp-bannershadow { - position:absolute; - - margin-left:auto; - margin-right:auto; - -moz-user-select: none; - -khtml-user-select: none; - -webkit-user-select: none; - -o-user-select: none; - } - -.tp-bannershadow.tp-shadow1 { background:url(../assets/shadow1.png) no-repeat; background-size:100% 100%; width:890px; height:60px; bottom:-60px} -.tp-bannershadow.tp-shadow2 { background:url(../assets/shadow2.png) no-repeat; background-size:100% 100%; width:890px; height:60px;bottom:-60px} -.tp-bannershadow.tp-shadow3 { background:url(../assets/shadow3.png) no-repeat; background-size:100% 100%; width:890px; height:60px;bottom:-60px} - - -/******************************** - - FULLSCREEN VIDEO - -*********************************/ -.caption.fullscreenvideo { left:0px; top:0px; position:absolute;width:100%;height:100%} -.caption.fullscreenvideo iframe, -.caption.fullscreenvideo video { width:100% !important; height:100% !important; display: none} - -.tp-caption.fullscreenvideo { left:0px; top:0px; position:absolute;width:100%;height:100%} - - -.tp-caption.fullscreenvideo iframe, -.tp-caption.fullscreenvideo iframe video { width:100% !important; height:100% !important; display: none} - - -.fullcoveredvideo video, -.fullscreenvideo video { background: #000} - -.fullcoveredvideo .tp-poster { background-position: center center;background-size: cover;width:100%;height:100%;top:0px;left:0px} - -.html5vid.videoisplaying .tp-poster { display: none} - -.tp-video-play-button { background:#000; - background:rgba(0,0,0,0.3); - padding:5px; - border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px; - position: absolute; - top: 50%; - left: 50%; - font-size: 40px; - color: #FFF; - z-index: 3; - margin-top: -27px; - margin-left: -28px; - text-align: center; - cursor: pointer; - } - -.html5vid .tp-revstop { width:15px;height:20px; border-left:5px solid #fff; border-right:5px solid #fff; position:relative;margin:10px 20px; box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box} -.html5vid .tp-revstop { display:none} -.html5vid.videoisplaying .revicon-right-dir { display:none} -.html5vid.videoisplaying .tp-revstop { display:block} - -.html5vid.videoisplaying .tp-video-play-button { display:none} -.html5vid:hover .tp-video-play-button { display:block} - -.fullcoveredvideo .tp-video-play-button { display:none !important} - -.tp-video-controls { - position: absolute; - bottom: 0; - left: 0; - right: 0; - padding: 5px; - opacity: 0; - -webkit-transition: opacity .3s; - -moz-transition: opacity .3s; - -o-transition: opacity .3s; - -ms-transition: opacity .3s; - transition: opacity .3s; - background-image: linear-gradient(bottom, rgb(0,0,0) 13%, rgb(50,50,50) 100%); - background-image: -o-linear-gradient(bottom, rgb(0,0,0) 13%, rgb(50,50,50) 100%); - background-image: -moz-linear-gradient(bottom, rgb(0,0,0) 13%, rgb(50,50,50) 100%); - background-image: -webkit-linear-gradient(bottom, rgb(0,0,0) 13%, rgb(50,50,50) 100%); - background-image: -ms-linear-gradient(bottom, rgb(0,0,0) 13%, rgb(50,50,50) 100%); - - background-image: -webkit-gradient( - linear, - left bottom, - left top, - color-stop(0.13, rgb(0,0,0)), - color-stop(1, rgb(50,50,50)) - ); - - display:table;max-width:100%; overflow:hidden;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box; -} - -.tp-caption:hover .tp-video-controls { - opacity: .9; -} - -.tp-video-button { - background: rgba(0,0,0,.5); - border: 0; - color: #EEE; - -webkit-border-radius: 3px; - -moz-border-radius: 3px; - -o-border-radius: 3px; - border-radius: 3px; - cursor:pointer; - line-height:12px; - font-size:12px; - color:#fff; - padding:0px; - margin:0px; - outline: none; - } -.tp-video-button:hover { - cursor: pointer; -} - - -.tp-video-button-wrap, -.tp-video-seek-bar-wrap, -.tp-video-vol-bar-wrap { padding:0px 5px;display:table-cell; } - -.tp-video-seek-bar-wrap { width:80%} -.tp-video-vol-bar-wrap { width:20%} - -.tp-volume-bar, -.tp-seek-bar { width:100%; cursor: pointer; outline:none; line-height:12px;margin:0; padding:0;} - - -/******************************** - - FULLSCREEN VIDEO ENDS - -*********************************/ - - -/******************************** - - DOTTED OVERLAYS - -*********************************/ -.tp-dottedoverlay { background-repeat:repeat;width:100%;height:100%;position:absolute;top:0px;left:0px;z-index:4} -.tp-dottedoverlay.twoxtwo { background:url(../assets/gridtile.png)} -.tp-dottedoverlay.twoxtwowhite { background:url(../assets/gridtile_white.png)} -.tp-dottedoverlay.threexthree { background:url(../assets/gridtile_3x3.png)} -.tp-dottedoverlay.threexthreewhite { background:url(../assets/gridtile_3x3_white.png)} -/******************************** - - DOTTED OVERLAYS ENDS - -*********************************/ - - -/************************ - - NAVIGATION - -*************************/ - -/** BULLETS **/ - -.tpclear { clear:both} - - -.tp-bullets { z-index:1000; position:absolute; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; - -moz-opacity: 1; - -khtml-opacity: 1; - opacity: 1; - -webkit-transition: opacity 0.2s ease-out; -moz-transition: opacity 0.2s ease-out; -o-transition: opacity 0.2s ease-out; -ms-transition: opacity 0.2s ease-out;-webkit-transform: translateZ(5px); - } -.tp-bullets.hidebullets { - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; - -moz-opacity: 0; - -khtml-opacity: 0; - opacity: 0; - } - - -.tp-bullets.simplebullets.navbar { border:1px solid #666; border-bottom:1px solid #444; background:url(../assets/boxed_bgtile.png); height:40px; padding:0px 10px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px } - -.tp-bullets.simplebullets.navbar-old { background:url(../assets/navigdots_bgtile.png); height:35px; padding:0px 10px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px } - - -.tp-bullets.simplebullets.round .bullet { cursor:pointer; position:relative; background:url(../assets/bullet.png) no-Repeat top left; width:20px; height:20px; margin-right:0px; float:left; margin-top:0px; margin-left:3px} -.tp-bullets.simplebullets.round .bullet.last { margin-right:3px} - -.tp-bullets.simplebullets.round-old .bullet { cursor:pointer; position:relative; background:url(../assets/bullets.png) no-Repeat bottom left; width:23px; height:23px; margin-right:0px; float:left; margin-top:0px} -.tp-bullets.simplebullets.round-old .bullet.last { margin-right:0px} - - -/** SQUARE BULLETS **/ -.tp-bullets.simplebullets.square .bullet { cursor:pointer; position:relative; background:url(../assets/bullets2.png) no-Repeat bottom left; width:19px; height:19px; margin-right:0px; float:left; margin-top:0px} -.tp-bullets.simplebullets.square .bullet.last { margin-right:0px} - - -/** SQUARE BULLETS **/ -.tp-bullets.simplebullets.square-old .bullet { cursor:pointer; position:relative; background:url(../assets/bullets2.png) no-Repeat bottom left; width:19px; height:19px; margin-right:0px; float:left; margin-top:0px} -.tp-bullets.simplebullets.square-old .bullet.last { margin-right:0px} - - -/** navbar NAVIGATION VERSION **/ -.tp-bullets.simplebullets.navbar .bullet { cursor:pointer; position:relative; background:url(../assets/bullet_boxed.png) no-Repeat top left; width:18px; height:19px; margin-right:5px; float:left; margin-top:0px} - -.tp-bullets.simplebullets.navbar .bullet.first { margin-left:0px !important} -.tp-bullets.simplebullets.navbar .bullet.last { margin-right:0px !important} - - - -/** navbar NAVIGATION VERSION **/ -.tp-bullets.simplebullets.navbar-old .bullet { cursor:pointer; position:relative; background:url(../assets/navigdots.png) no-Repeat bottom left; width:15px; height:15px; margin-left:5px !important; margin-right:5px !important;float:left; margin-top:10px} -.tp-bullets.simplebullets.navbar-old .bullet.first { margin-left:0px !important} -.tp-bullets.simplebullets.navbar-old .bullet.last { margin-right:0px !important} - - -.tp-bullets.simplebullets .bullet:hover, -.tp-bullets.simplebullets .bullet.selected { background-position:top left} - -.tp-bullets.simplebullets.round .bullet:hover, -.tp-bullets.simplebullets.round .bullet.selected, -.tp-bullets.simplebullets.navbar .bullet:hover, -.tp-bullets.simplebullets.navbar .bullet.selected { background-position:bottom left} - - - -/************************************* - - TP ARROWS - -**************************************/ -.tparrows { -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; - -moz-opacity: 1; - -khtml-opacity: 1; - opacity: 1; - -webkit-transition: opacity 0.2s ease-out; -moz-transition: opacity 0.2s ease-out; -o-transition: opacity 0.2s ease-out; -ms-transition: opacity 0.2s ease-out; - -webkit-transform: translateZ(5000px); - -webkit-transform-style: flat; - -webkit-backface-visibility: hidden; - z-index:600; - position: relative; - - } -.tparrows.hidearrows { - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; - -moz-opacity: 0; - -khtml-opacity: 0; - opacity: 0; - } -.tp-leftarrow { z-index:100;cursor:pointer; position:relative; background:url(../assets/large_left.png) no-Repeat top left; width:40px; height:40px; } -.tp-rightarrow { z-index:100;cursor:pointer; position:relative; background:url(../assets/large_right.png) no-Repeat top left; width:40px; height:40px; } - - -.tp-leftarrow.round { z-index:100;cursor:pointer; position:relative; background:url(../assets/small_left.png) no-Repeat top left; width:19px; height:14px; margin-right:0px; float:left; margin-top:0px; } -.tp-rightarrow.round { z-index:100;cursor:pointer; position:relative; background:url(../assets/small_right.png) no-Repeat top left; width:19px; height:14px; margin-right:0px; float:left; margin-top:0px} - - -.tp-leftarrow.round-old { z-index:100;cursor:pointer; position:relative; background:url(../assets/arrow_left.png) no-Repeat top left; width:26px; height:26px; margin-right:0px; float:left; margin-top:0px; } -.tp-rightarrow.round-old { z-index:100;cursor:pointer; position:relative; background:url(../assets/arrow_right.png) no-Repeat top left; width:26px; height:26px; margin-right:0px; float:left; margin-top:0px} - - -.tp-leftarrow.navbar { z-index:100;cursor:pointer; position:relative; background:url(../assets/small_left_boxed.png) no-Repeat top left; width:20px; height:15px; float:left; margin-right:6px; margin-top:12px} -.tp-rightarrow.navbar { z-index:100;cursor:pointer; position:relative; background:url(../assets/small_right_boxed.png) no-Repeat top left; width:20px; height:15px; float:left; margin-left:6px; margin-top:12px} - - -.tp-leftarrow.navbar-old { z-index:100;cursor:pointer; position:relative; background:url(../assets/arrowleft.png) no-Repeat top left; width:9px; height:16px; float:left; margin-right:6px; margin-top:10px} -.tp-rightarrow.navbar-old { z-index:100;cursor:pointer; position:relative; background:url(../assets/arrowright.png) no-Repeat top left; width:9px; height:16px; float:left; margin-left:6px; margin-top:10px} - -.tp-leftarrow.navbar-old.thumbswitharrow { margin-right:10px} -.tp-rightarrow.navbar-old.thumbswitharrow { margin-left:0px} - -.tp-leftarrow.square { z-index:100;cursor:pointer; position:relative; background:url(../assets/arrow_left2.png) no-Repeat top left; width:12px; height:17px; float:left; margin-right:0px; margin-top:0px} -.tp-rightarrow.square { z-index:100;cursor:pointer; position:relative; background:url(../assets/arrow_right2.png) no-Repeat top left; width:12px; height:17px; float:left; margin-left:0px; margin-top:0px} - - -.tp-leftarrow.square-old { z-index:100;cursor:pointer; position:relative; background:url(../assets/arrow_left2.png) no-Repeat top left; width:12px; height:17px; float:left; margin-right:0px; margin-top:0px} -.tp-rightarrow.square-old { z-index:100;cursor:pointer; position:relative; background:url(../assets/arrow_right2.png) no-Repeat top left; width:12px; height:17px; float:left; margin-left:0px; margin-top:0px} - - -.tp-leftarrow.default { z-index:100;cursor:pointer; position:relative; background:url(../assets/large_left.png) no-Repeat 0 0; width:40px; height:40px; - - } -.tp-rightarrow.default { z-index:100;cursor:pointer; position:relative; background:url(../assets/large_right.png) no-Repeat 0 0; width:40px; height:40px; - - } - - - - -.tp-leftarrow:hover, -.tp-rightarrow:hover { background-position:bottom left} - - - - - - -/**************************************************************************************************** - - TP THUMBS - -***************************************************************************************************** - - - tp-thumbs & tp-mask Width is the width of the basic Thumb Container (500px basic settings) - - - .bullet width & height is the dimension of a simple Thumbnail (basic 100px x 50px) - - *****************************************************************************************************/ - - -.tp-bullets.tp-thumbs { z-index:1000; position:absolute; padding:3px;background-color:#fff; - width:500px;height:50px; /* THE DIMENSIONS OF THE THUMB CONTAINER */ - margin-top:-50px; - } - - -.fullwidthbanner-container .tp-thumbs { padding:3px} - -.tp-bullets.tp-thumbs .tp-mask { width:500px; height:50px; /* THE DIMENSIONS OF THE THUMB CONTAINER */ - overflow:hidden; position:relative} - - -.tp-bullets.tp-thumbs .tp-mask .tp-thumbcontainer { width:5000px; position:absolute} - -.tp-bullets.tp-thumbs .bullet { width:100px; height:50px; /* THE DIMENSION OF A SINGLE THUMB */ - cursor:pointer; overflow:hidden;background:none;margin:0;float:left; - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; - /*filter: alpha(opacity=50); */ - -moz-opacity: 0.5; - -khtml-opacity: 0.5; - opacity: 0.5; - - -webkit-transition: all 0.2s ease-out; -moz-transition: all 0.2s ease-out; -o-transition: all 0.2s ease-out; -ms-transition: all 0.2s ease-out; - } - - -.tp-bullets.tp-thumbs .bullet:hover, -.tp-bullets.tp-thumbs .bullet.selected { -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; - - -moz-opacity: 1; - -khtml-opacity: 1; - opacity: 1; - } -.tp-thumbs img { width:100%} - - -/************************************ - - TP BANNER TIMER - -*************************************/ -.tp-bannertimer { width:100%; height:10px; background:url(../assets/timer.png);position:absolute; z-index:200;top:0px} -.tp-bannertimer.tp-bottom { bottom:0px;height:5px; top:auto} - - - - -/*************************************** - - RESPONSIVE SETTINGS - -****************************************/ - - - - - @media only screen and (min-width: 0px) and (max-width: 479px) { - .responsive .tp-bullets { display:none} - .responsive .tparrows { display:none} - } - - - - - -/********************************************* - - - BASIC SETTINGS FOR THE BANNER - - -***********************************************/ - - .tp-simpleresponsive img { - -moz-user-select: none; - -khtml-user-select: none; - -webkit-user-select: none; - -o-user-select: none; -} - - - -.tp-simpleresponsive a{ text-decoration:none} - -.tp-simpleresponsive ul, -.tp-simpleresponsive ul li, -.tp-simpleresponsive ul li:before { - list-style:none; - padding:0 !important; - margin:0 !important; - list-style:none !important; - overflow-x: visible; - overflow-y: visible; - background-image:none -} - - -.tp-simpleresponsive >ul >li{ - list-style:none; - position:absolute; - visibility:hidden -} - -/* CAPTION SLIDELINK **/ -.caption.slidelink a div, -.tp-caption.slidelink a div { width:3000px; height:1500px; background:url(../assets/coloredbg.png) repeat} - -.tp-caption.slidelink a span { background:url(../assets/coloredbg.png) repeat} - - - -/***************************************** - - NAVIGATION FANCY EXAMPLES - -*****************************************/ - -.tparrows .tp-arr-imgholder { display: none} -.tparrows .tp-arr-titleholder { display: none} - - - -/***************************************** - - NAVIGATION FANCY EXAMPLES - -*****************************************/ - -/* NAVIGATION PREVIEW 1 */ -.tparrows.preview1 { width:100px;height:100px;-webkit-transform-style: preserve-3d; -webkit-perspective: 1000; -moz-perspective: 1000; -webkit-backface-visibility: hidden; -moz-backface-visibility: hidden;background: transparent} -.tparrows.preview1:after { position:absolute; left:0px;top:0px; font-family: "revicons"; color:#fff; font-size:30px; width:100px;height:100px;text-align: center; background:#fff;background:rgba(0,0,0,0.15);z-index:2;line-height:100px; -webkit-transition: background 0.3s, color 0.3s; -moz-transition: background 0.3s, color 0.3s; transition: background 0.3s, color 0.3s} -.tp-rightarrow.preview1:after { content: '\e825'; } -.tp-leftarrow.preview1:after { content: '\e824'; } - -.tparrows.preview1:hover:after { background:rgba(255,255,255,1); color:#aaa} - -.tparrows.preview1 .tp-arr-imgholder { background-size:cover; background-position:center center; display:block;width:100%;height:100%;position:absolute;top:0px; - -webkit-transition: -webkit-transform 0.3s; - transition: transform 0.3s; - -webkit-backface-visibility: hidden; - backface-visibility: hidden; - } -.tparrows.preview1 .tp-arr-iwrapper { -webkit-transition: all 0.3s;transition: all 0.3s; - -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";filter: alpha(opacity=0);-moz-opacity: 0.0;-khtml-opacity: 0.0;opacity: 0.0} -.tparrows.preview1:hover .tp-arr-iwrapper { -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";filter: alpha(opacity=100);-moz-opacity: 1;-khtml-opacity: 1;opacity: 1} - - -.tp-rightarrow.preview1 .tp-arr-imgholder { right:100%; - -webkit-transform: rotateY(-90deg); - transform: rotateY(-90deg); - -webkit-transform-origin: 100% 50%; - transform-origin: 100% 50%; - -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";filter: alpha(opacity=0);-moz-opacity: 0.0;-khtml-opacity: 0.0;opacity: 0.0; - - - - } -.tp-leftarrow.preview1 .tp-arr-imgholder { left:100%; - -webkit-transform: rotateY(90deg); - transform: rotateY(90deg); - -webkit-transform-origin: 0% 50%; - transform-origin: 0% 50%; - -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";filter: alpha(opacity=0);-moz-opacity: 0.0;-khtml-opacity: 0.0;opacity: 0.0; - - - - } - - -.tparrows.preview1:hover .tp-arr-imgholder { -webkit-transform: rotateY(0deg); - transform: rotateY(0deg); - -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";filter: alpha(opacity=100);-moz-opacity: 1;-khtml-opacity: 1;opacity: 1; - - } - - - @media only screen and (min-width: 768px) and (max-width: 979px) { - .tparrows.preview1, - .tparrows.preview1:after { width:80px; height:80px;line-height:80px; font-size:24px} - - } - - @media only screen and (min-width: 480px) and (max-width: 767px) { - .tparrows.preview1, - .tparrows.preview1:after { width:60px; height:60px;line-height:60px;font-size:20px} - - } - - - - @media only screen and (min-width: 0px) and (max-width: 479px) { - .tparrows.preview1, - .tparrows.preview1:after { width:40px; height:40px;line-height:40px; font-size:12px} - } - -/* PREVIEW 1 BULLETS */ - -.tp-bullets.preview1 { height: 21px} -.tp-bullets.preview1 .bullet { cursor: pointer; - position: relative !important; - background: rgba(0, 0, 0, 0.15) !important; - /*-webkit-border-radius: 10px; - border-radius: 10px;*/ - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; - width: 5px !important; - height: 5px !important; - border: 8px solid rgba(0, 0, 0, 0) !important; - display: inline-block; - margin-right: 5px !important; - margin-bottom: 0px !important; - -webkit-transition: background-color 0.2s, border-color 0.2s; - -moz-transition: background-color 0.2s, border-color 0.2s; - -o-transition: background-color 0.2s, border-color 0.2s; - -ms-transition: background-color 0.2s, border-color 0.2s; - transition: background-color 0.2s, border-color 0.2s; - float:none !important; - box-sizing:content-box; - -moz-box-sizing:content-box; - -webkit-box-sizing:content-box; -} -.tp-bullets.preview1 .bullet.last { margin-right: 0px} -.tp-bullets.preview1 .bullet:hover, -.tp-bullets.preview1 .bullet.selected { -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; - background: #aaa !important; - width: 5px !important; - height: 5px !important; - border: 8px solid rgba(255, 255, 255, 1) !important; -} - - - - -/* NAVIGATION PREVIEW 2 */ -.tparrows.preview2 { min-width:60px; min-height:60px; background:#fff; ; - - border-radius:30px;-moz-border-radius:30px;-webkit-border-radius:30px; - overflow:hidden; - -webkit-transition: -webkit-transform 1.3s; - -webkit-transition: width 0.3s, background-color 0.3s, opacity 0.3s; - transition: width 0.3s, background-color 0.3s, opacity 0.3s; - backface-visibility: hidden; -} -.tparrows.preview2:after { position:absolute; top:50%; font-family: "revicons"; color:#aaa; font-size:25px; margin-top: -12px; -webkit-transition: color 0.3s; -moz-transition: color 0.3s; transition: color 0.3s } -.tp-rightarrow.preview2:after { content: '\e81e'; right:18px} -.tp-leftarrow.preview2:after { content: '\e81f'; left:18px} - - -.tparrows.preview2 .tp-arr-titleholder { background-size:cover; background-position:center center; display:block; visibility:hidden;position:relative;top:0px; - -webkit-transition: -webkit-transform 0.3s; - transition: transform 0.3s; - -webkit-backface-visibility: hidden; - backface-visibility: hidden; - white-space: nowrap; - color: #000; - text-transform: uppercase; - font-weight: 400; - font-size: 14px; - line-height: 60px; - padding:0px 10px; - } - -.tp-rightarrow.preview2 .tp-arr-titleholder { right:50px; - -webkit-transform: translateX(-100%); - transform: translateX(-100%); - } -.tp-leftarrow.preview2 .tp-arr-titleholder { left:50px; - -webkit-transform: translateX(100%); - transform: translateX(100%); - } - -.tparrows.preview2.hovered { width:300px} -.tparrows.preview2:hover { background:#fff} -.tparrows.preview2:hover:after { color:#000} -.tparrows.preview2:hover .tp-arr-titleholder{ -webkit-transform: translateX(0px); - transform: translateX(0px); - visibility: visible; - position: absolute; - } - -/* PREVIEW 2 BULLETS */ - -.tp-bullets.preview2 { height: 17px} -.tp-bullets.preview2 .bullet { cursor: pointer; - position: relative !important; - background: rgba(0, 0, 0, 0.5) !important; - -webkit-border-radius: 10px; - border-radius: 10px; - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; - width: 6px !important; - height: 6px !important; - border: 5px solid rgba(0, 0, 0, 0) !important; - display: inline-block; - margin-right: 2px !important; - margin-bottom: 0px !important; - -webkit-transition: background-color 0.2s, border-color 0.2s; - -moz-transition: background-color 0.2s, border-color 0.2s; - -o-transition: background-color 0.2s, border-color 0.2s; - -ms-transition: background-color 0.2s, border-color 0.2s; - transition: background-color 0.2s, border-color 0.2s; - float:none !important; - box-sizing:content-box; - -moz-box-sizing:content-box; - -webkit-box-sizing:content-box; -} -.tp-bullets.preview2 .bullet.last { margin-right: 0px} -.tp-bullets.preview2 .bullet:hover, -.tp-bullets.preview2 .bullet.selected { -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; - background: rgba(255, 255, 255, 1) !important; - width: 6px !important; - height: 6px !important; - border: 5px solid rgba(0, 0, 0, 1) !important; -} - -.tp-arr-titleholder.alwayshidden { display:none !important} - - - @media only screen and (min-width: 768px) and (max-width: 979px) { - .tparrows.preview2 { min-width:40px; min-height:40px; width:40px;height:40px; - border-radius:20px;-moz-border-radius:20px;-webkit-border-radius:20px; - } - .tparrows.preview2:after { position:absolute; top:50%; font-family: "revicons"; font-size:20px; margin-top: -12px} - .tp-rightarrow.preview2:after { content: '\e81e'; right:11px} - .tp-leftarrow.preview2:after { content: '\e81f'; left:11px} - .tparrows.preview2 .tp-arr-titleholder { font-size:12px; line-height:40px; letter-spacing: 0px} - .tp-rightarrow.preview2 .tp-arr-titleholder { right:35px} - .tp-leftarrow.preview2 .tp-arr-titleholder { left:35px} - - } - - @media only screen and (min-width: 480px) and (max-width: 767px) { - .tparrows.preview2 { min-width:30px; min-height:30px; width:30px;height:30px; - border-radius:15px;-moz-border-radius:15px;-webkit-border-radius:15px; - } - .tparrows.preview2:after { position:absolute; top:50%; font-family: "revicons"; font-size:14px; margin-top: -12px} - .tp-rightarrow.preview2:after { content: '\e81e'; right:8px} - .tp-leftarrow.preview2:after { content: '\e81f'; left:8px} - .tparrows.preview2 .tp-arr-titleholder { font-size:10px; line-height:30px; letter-spacing: 0px} - .tp-rightarrow.preview2 .tp-arr-titleholder { right:25px} - .tp-leftarrow.preview2 .tp-arr-titleholder { left:25px} - .tparrows.preview2 .tp-arr-titleholder { display:none;visibility:none} - - - } - - @media only screen and (min-width: 0px) and (max-width: 479px) { - .tparrows.preview2 { min-width:30px; min-height:30px; width:30px;height:30px; - border-radius:15px;-moz-border-radius:15px;-webkit-border-radius:15px; - } - .tparrows.preview2:after { position:absolute; top:50%; font-family: "revicons"; font-size:14px; margin-top: -12px} - .tp-rightarrow.preview2:after { content: '\e81e'; right:8px} - .tp-leftarrow.preview2:after { content: '\e81f'; left:8px} - .tparrows.preview2 .tp-arr-titleholder { display:none;visibility:none} - .tparrows.preview2:hover { width:30px !important; height:30px !important} - } - - - -/* NAVIGATION PREVIEW 3 */ -.tparrows.preview3 { width:70px; height:70px; background:#fff; background:rgba(255,255,255,1); -webkit-transform-style: flat} -.tparrows.preview3:after { position:absolute; line-height: 70px;text-align: center; font-family: "revicons"; color:#aaa; font-size:30px; top:0px;left:0px;;background:#fff; z-index:100; width:70px;height:70px; -webkit-transition: color 0.3s; -moz-transition: color 0.3s; transition: color 0.3s} -.tparrows.preview3:hover:after { color:#000} -.tp-rightarrow.preview3:after { content: '\e825'; } -.tp-leftarrow.preview3:after { content: '\e824'; } - - -.tparrows.preview3 .tp-arr-iwrapper { - -webkit-transform: scale(0,1); - transform: scale(0,1); - -webkit-transform-origin: 100% 50%; - transform-origin: 100% 50%; - -webkit-transition: -webkit-transform 0.2s; - transition: transform 0.2s; - z-index:0;position: absolute; background: #000; background: rgba(0,0,0,0.75); - display: table;min-height:90px;top:-10px} - -.tp-leftarrow.preview3 .tp-arr-iwrapper { -webkit-transform: scale(0,1); - transform: scale(0,1); - -webkit-transform-origin: 0% 50%; - transform-origin: 0% 50%; - } - -.tparrows.preview3 .tp-arr-imgholder { display:block;background-size:cover; background-position:center center; display:table-cell;min-width:90px;height:90px; - position:relative;top:0px} - -.tp-rightarrow.preview3 .tp-arr-iwrapper { right:0px;padding-right:70px} -.tp-leftarrow.preview3 .tp-arr-iwrapper { left:0px; direction: rtl;padding-left:70px} -.tparrows.preview3 .tp-arr-titleholder { display:table-cell; padding:30px;font-size:16px; color:#fff;white-space: nowrap; position: relative; clear:right;vertical-align: middle} - -.tparrows.preview3:hover .tp-arr-iwrapper { - -webkit-transform: scale(1,1); - transform: scale(1,1); - - } - -/* PREVIEW 3 BULLETS */ -.tp-bullets.preview3 { height: 17px} -.tp-bullets.preview3 .bullet { cursor: pointer; - position: relative !important; - background: rgba(0, 0, 0, 0.5) !important; - -webkit-border-radius: 10px; - border-radius: 10px; - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; - width: 6px !important; - height: 6px !important; - border: 5px solid rgba(0, 0, 0, 0) !important; - display: inline-block; - margin-right: 2px !important; - margin-bottom: 0px !important; - -webkit-transition: background-color 0.2s, border-color 0.2s; - -moz-transition: background-color 0.2s, border-color 0.2s; - -o-transition: background-color 0.2s, border-color 0.2s; - -ms-transition: background-color 0.2s, border-color 0.2s; - transition: background-color 0.2s, border-color 0.2s; - float:none !important; - box-sizing:content-box; - -moz-box-sizing:content-box; - -webkit-box-sizing:content-box; -} -.tp-bullets.preview3 .bullet.last { margin-right: 0px} -.tp-bullets.preview3 .bullet:hover, -.tp-bullets.preview3 .bullet.selected { -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; - background: rgba(255, 255, 255, 1) !important; - width: 6px !important; - height: 6px !important; - border: 5px solid rgba(0, 0, 0, 1) !important; -} - - - @media only screen and (min-width: 768px) and (max-width: 979px) { - .tparrows.preview3:after, - .tparrows.preview3 { width:50px; height:50px; line-height:50px;font-size:20px} - .tparrows.preview3 .tp-arr-iwrapper { min-height:70px} - .tparrows.preview3 .tp-arr-imgholder { min-width:70px;height:70px} - .tp-rightarrow.preview3 .tp-arr-iwrapper { padding-right:50px} - .tp-leftarrow.preview3 .tp-arr-iwrapper { padding-left:50px} - .tparrows.preview3 .tp-arr-titleholder { padding:10px;font-size:16px} - - - - } - - @media only screen and (max-width: 767px) { - - .tparrows.preview3:after, - .tparrows.preview3 { width:50px; height:50px; line-height:50px;font-size:20px} - .tparrows.preview3 .tp-arr-iwrapper { min-height:70px} - } - - - - - -/* NAVIGATION PREVIEW 4 */ -.tparrows.preview4 { width:30px; height:110px; background:transparent;-webkit-transform-style: preserve-3d; -webkit-perspective: 1000; -moz-perspective: 1000} -.tparrows.preview4:after { position:absolute; line-height: 110px;text-align: center; font-family: "revicons"; color:#fff; font-size:20px; top:0px;left:0px;z-index:0; width:30px;height:110px; background: #000; background: rgba(0,0,0,0.25); - -webkit-transition: all 0.2s ease-in-out; - -moz-transition: all 0.2s ease-in-out; - -o-transition: all 0.2s ease-in-out; - transition: all 0.2s ease-in-out; - -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";filter: alpha(opacity=100);-moz-opacity: 1;-khtml-opacity: 1;opacity: 1; - - } - -.tp-rightarrow.preview4:after { content: '\e825'; } -.tp-leftarrow.preview4:after { content: '\e824'; } - - -.tparrows.preview4 .tp-arr-allwrapper { visibility:hidden;width:180px;position: absolute;z-index: 1;min-height:120px;top:0px;left:-150px; overflow: hidden;-webkit-perspective: 1000px;-webkit-transform-style: flat} - -.tp-leftarrow.preview4 .tp-arr-allwrapper { left:0px} -.tparrows.preview4 .tp-arr-iwrapper { position: relative} - -.tparrows.preview4 .tp-arr-imgholder { display:block;background-size:cover; background-position:center center;width:180px;height:110px; - position:relative;top:0px; - - -webkit-backface-visibility: hidden; - backface-visibility: hidden; - - - - } - - -.tparrows.preview4 .tp-arr-imgholder2 { display:block;background-size:cover; background-position:center center; width:180px;height:110px; - position:absolute;top:0px; left:180px; - -webkit-backface-visibility: hidden; - backface-visibility: hidden; - - } - -.tp-leftarrow.preview4 .tp-arr-imgholder2 { left:-180px} - - - - -.tparrows.preview4 .tp-arr-titleholder { display:block; font-size:12px; line-height:25px; padding:0px 10px;text-align:left;color:#fff; position: relative; - background: #000; - color: #FFF; - text-transform: uppercase; - white-space: nowrap; - letter-spacing: 1px; - font-weight: 700; - font-size: 11px; - line-height: 2.75; - -webkit-transition: all 0.3s; - transition: all 0.3s; - -webkit-transform: rotateX(-90deg); - transform: rotateX(-90deg); - -webkit-transform-origin: 50% 0; - transform-origin: 50% 0; - -webkit-backface-visibility: hidden; - backface-visibility: hidden; - -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";filter: alpha(opacity=0);-moz-opacity: 0.0;-khtml-opacity: 0.0;opacity: 0.0; - - -} - - - -.tparrows.preview4:after { transform-origin: 100% 100%; -webkit-transform-origin: 100% 100%} -.tp-leftarrow.preview4:after { transform-origin: 0% 0%; -webkit-transform-origin: 0% 0%} - - - - -@media only screen and (min-width: 768px) { - .tparrows.preview4:hover:after { -webkit-transform: rotateY(-90deg); transform:rotateY(-90deg)} - .tp-leftarrow.preview4:hover:after { -webkit-transform: rotateY(90deg); transform:rotateY(90deg)} - - - .tparrows.preview4:hover .tp-arr-titleholder { -webkit-transition-delay: 0.4s; - transition-delay: 0.4s; - -webkit-transform: rotateX(0deg); - transform: rotateX(0deg); - -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";filter: alpha(opacity=100);-moz-opacity: 1;-khtml-opacity: 1;opacity: 1; - - } -} - -/* PREVIEW 4 BULLETS */ - -.tp-bullets.preview4 { height: 17px} -.tp-bullets.preview4 .bullet { cursor: pointer; - position: relative !important; - background: rgba(0, 0, 0, 0.5) !important; - -webkit-border-radius: 10px; - border-radius: 10px; - -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; - width: 6px !important; - height: 6px !important; - border: 5px solid rgba(0, 0, 0, 0) !important; - display: inline-block; - margin-right: 2px !important; - margin-bottom: 0px !important; - -webkit-transition: background-color 0.2s, border-color 0.2s; - -moz-transition: background-color 0.2s, border-color 0.2s; - -o-transition: background-color 0.2s, border-color 0.2s; - -ms-transition: background-color 0.2s, border-color 0.2s; - transition: background-color 0.2s, border-color 0.2s; - float:none !important; - box-sizing:content-box; - -moz-box-sizing:content-box; - -webkit-box-sizing:content-box; -} -.tp-bullets.preview4 .bullet.last { margin-right: 0px} -.tp-bullets.preview4 .bullet:hover, -.tp-bullets.preview4 .bullet.selected { -webkit-box-shadow: none; - -moz-box-shadow: none; - box-shadow: none; - background: rgba(255, 255, 255, 1) !important; - width: 6px !important; - height: 6px !important; - border: 5px solid rgba(0, 0, 0, 1) !important; -} - - - @media only screen and (max-width: 767px) { - .tparrows.preview4 { width:20px; height:80px} - .tparrows.preview4:after { width:20px; height:80px; line-height:80px; font-size:14px} - - .tparrows.preview1 .tp-arr-allwrapper, - .tparrows.preview2 .tp-arr-allwrapper, - .tparrows.preview3 .tp-arr-allwrapper, - .tparrows.preview4 .tp-arr-allwrapper { display: none !important} - } - - - -/****************************** - - LOADER FORMS - -********************************/ - -.tp-loader { - top:50%; left:50%; - z-index:10000; - position:absolute; - - - } - -.tp-loader.spinner0 { - width: 40px; - height: 40px; - background:url(../assets/loader.gif) no-repeat center center; - background-color: #fff; - box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); - -webkit-box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); - margin-top:-20px; - margin-left:-20px; - -webkit-animation: tp-rotateplane 1.2s infinite ease-in-out; - animation: tp-rotateplane 1.2s infinite ease-in-out; - border-radius: 3px; - -moz-border-radius: 3px; - -webkit-border-radius: 3px; -} - - -.tp-loader.spinner1 { - width: 40px; - height: 40px; - background-color: #fff; - box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); - -webkit-box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); - margin-top:-20px; - margin-left:-20px; - -webkit-animation: tp-rotateplane 1.2s infinite ease-in-out; - animation: tp-rotateplane 1.2s infinite ease-in-out; - border-radius: 3px; - -moz-border-radius: 3px; - -webkit-border-radius: 3px; -} - - - -.tp-loader.spinner5 { background:url(../assets/loader.gif) no-repeat 10px 10px; - background-color:#fff; - margin:-22px -22px; - width:44px;height:44px; - border-radius: 3px; - -moz-border-radius: 3px; - -webkit-border-radius: 3px; - } - - -@-webkit-keyframes tp-rotateplane { - 0% { -webkit-transform: perspective(120px) } - 50% { -webkit-transform: perspective(120px) rotateY(180deg) } - 100% { -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg) } -} - -@keyframes tp-rotateplane { - 0% { - transform: perspective(120px) rotateX(0deg) rotateY(0deg); - -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg) - } 50% { - transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg); - -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg) - } 100% { - transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg); - -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg); - } -} - - -.tp-loader.spinner2 { - width: 40px; - height: 40px; - margin-top:-20px;margin-left:-20px; - background-color: #ff0000; - box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); - -webkit-box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); - border-radius: 100%; - -webkit-animation: tp-scaleout 1.0s infinite ease-in-out; - animation: tp-scaleout 1.0s infinite ease-in-out; -} - -@-webkit-keyframes tp-scaleout { - 0% { -webkit-transform: scale(0.0) } - 100% { - -webkit-transform: scale(1.0); - opacity: 0; - } -} - -@keyframes tp-scaleout { - 0% { - transform: scale(0.0); - -webkit-transform: scale(0.0); - } 100% { - transform: scale(1.0); - -webkit-transform: scale(1.0); - opacity: 0; - } -} - - - - -.tp-loader.spinner3 { - margin: -9px 0px 0px -35px; - width: 70px; - text-align: center; - -} - -.tp-loader.spinner3 .bounce1, -.tp-loader.spinner3 .bounce2, -.tp-loader.spinner3 .bounce3 { - width: 18px; - height: 18px; - background-color: #fff; - box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); - -webkit-box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); - border-radius: 100%; - display: inline-block; - -webkit-animation: tp-bouncedelay 1.4s infinite ease-in-out; - animation: tp-bouncedelay 1.4s infinite ease-in-out; - /* Prevent first frame from flickering when animation starts */ - -webkit-animation-fill-mode: both; - animation-fill-mode: both; -} - -.tp-loader.spinner3 .bounce1 { - -webkit-animation-delay: -0.32s; - animation-delay: -0.32s; -} - -.tp-loader.spinner3 .bounce2 { - -webkit-animation-delay: -0.16s; - animation-delay: -0.16s; -} - -@-webkit-keyframes tp-bouncedelay { - 0%, 80%, 100% { -webkit-transform: scale(0.0) } - 40% { -webkit-transform: scale(1.0) } -} - -@keyframes tp-bouncedelay { - 0%, 80%, 100% { - transform: scale(0.0); - -webkit-transform: scale(0.0); - } 40% { - transform: scale(1.0); - -webkit-transform: scale(1.0); - } -} - - - - -.tp-loader.spinner4 { - margin: -20px 0px 0px -20px; - width: 40px; - height: 40px; - text-align: center; - -webkit-animation: tp-rotate 2.0s infinite linear; - animation: tp-rotate 2.0s infinite linear; -} - -.tp-loader.spinner4 .dot1, -.tp-loader.spinner4 .dot2 { - width: 60%; - height: 60%; - display: inline-block; - position: absolute; - top: 0; - background-color: #fff; - border-radius: 100%; - -webkit-animation: tp-bounce 2.0s infinite ease-in-out; - animation: tp-bounce 2.0s infinite ease-in-out; - box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); - -webkit-box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); -} - -.tp-loader.spinner4 .dot2 { - top: auto; - bottom: 0px; - -webkit-animation-delay: -1.0s; - animation-delay: -1.0s; -} - -@-webkit-keyframes tp-rotate { 100% { -webkit-transform: rotate(360deg) }} -@keyframes tp-rotate { 100% { transform: rotate(360deg); -webkit-transform: rotate(360deg) }} - -@-webkit-keyframes tp-bounce { - 0%, 100% { -webkit-transform: scale(0.0) } - 50% { -webkit-transform: scale(1.0) } -} - -@keyframes tp-bounce { - 0%, 100% { - transform: scale(0.0); - -webkit-transform: scale(0.0); - } 50% { - transform: scale(1.0); - -webkit-transform: scale(1.0); - } -} - - - -.tp-transparentimg { content:"url(../assets/transparent.jpg)"} -.tp-3d { -webkit-transform-style: preserve-3d; - -webkit-transform-origin: 50% 50%; - } - - - -.tp-caption img { -background: transparent; --ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF)"; -filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF); -zoom: 1; -} - - -@font-face { - font-family: 'revicons'; - src: url('../font/revicons.eot?5510888'); - src: url('../font/revicons.eot?5510888#iefix') format('embedded-opentype'), - url('../font/revicons.woff?5510888') format('woff'), - url('../font/revicons.ttf?5510888') format('truetype'), - url('../font/revicons.svg?5510888#revicons') format('svg'); - font-weight: normal; - font-style: normal; -} -/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */ -/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */ -/* -@media screen and (-webkit-min-device-pixel-ratio:0) { - @font-face { - font-family: 'revicons'; - src: url('../font/revicons.svg?5510888#revicons') format('svg'); - } -} -*/ - - [class^="revicon-"]:before, [class*=" revicon-"]:before { - font-family: "revicons"; - font-style: normal; - font-weight: normal; - speak: none; - - display: inline-block; - text-decoration: inherit; - width: 1em; - margin-right: .2em; - text-align: center; - /* opacity: .8; */ - - /* For safety - reset parent styles, that can break glyph codes*/ - font-variant: normal; - text-transform: none; - - /* fix buttons height, for twitter bootstrap */ - line-height: 1em; - - /* Animation center compensation - margins should be symmetric */ - /* remove if not needed */ - margin-left: .2em; - - /* you can be more comfortable with increased icons size */ - /* font-size: 120%; */ - - /* Uncomment for 3D effect */ - /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */ -} - -.revicon-search-1:before { content: '\e802'} /* '' */ -.revicon-pencil-1:before { content: '\e831'} /* '' */ -.revicon-picture-1:before { content: '\e803'} /* '' */ -.revicon-cancel:before { content: '\e80a'} /* '' */ -.revicon-info-circled:before { content: '\e80f'} /* '' */ -.revicon-trash:before { content: '\e801'} /* '' */ -.revicon-left-dir:before { content: '\e817'} /* '' */ -.revicon-right-dir:before { content: '\e818'} /* '' */ -.revicon-down-open:before { content: '\e83b'} /* '' */ -.revicon-left-open:before { content: '\e819'} /* '' */ -.revicon-right-open:before { content: '\e81a'} /* '' */ -.revicon-angle-left:before { content: '\e820'} /* '' */ -.revicon-angle-right:before { content: '\e81d'} /* '' */ -.revicon-left-big:before { content: '\e81f'} /* '' */ -.revicon-right-big:before { content: '\e81e'} /* '' */ -.revicon-magic:before { content: '\e807'} /* '' */ -.revicon-picture:before { content: '\e800'} /* '' */ -.revicon-export:before { content: '\e80b'} /* '' */ -.revicon-cog:before { content: '\e832'} /* '' */ -.revicon-login:before { content: '\e833'} /* '' */ -.revicon-logout:before { content: '\e834'} /* '' */ -.revicon-video:before { content: '\e805'} /* '' */ -.revicon-arrow-combo:before { content: '\e827'} /* '' */ -.revicon-left-open-1:before { content: '\e82a'} /* '' */ -.revicon-right-open-1:before { content: '\e82b'} /* '' */ -.revicon-left-open-mini:before { content: '\e822'} /* '' */ -.revicon-right-open-mini:before { content: '\e823'} /* '' */ -.revicon-left-open-big:before { content: '\e824'} /* '' */ -.revicon-right-open-big:before { content: '\e825'} /* '' */ -.revicon-left:before { content: '\e836'} /* '' */ -.revicon-right:before { content: '\e826'} /* '' */ -.revicon-ccw:before { content: '\e808'} /* '' */ -.revicon-arrows-ccw:before { content: '\e806'} /* '' */ -.revicon-palette:before { content: '\e829'} /* '' */ -.revicon-list-add:before { content: '\e80c'} /* '' */ -.revicon-doc:before { content: '\e809'} /* '' */ -.revicon-left-open-outline:before { content: '\e82e'} /* '' */ -.revicon-left-open-2:before { content: '\e82c'} /* '' */ -.revicon-right-open-outline:before { content: '\e82f'} /* '' */ -.revicon-right-open-2:before { content: '\e82d'} /* '' */ -.revicon-equalizer:before { content: '\e83a'} /* '' */ -.revicon-layers-alt:before { content: '\e804'} /* '' */ +/*----------------------------------------------------------------------------- + + - Revolution Slider 4.1 Captions - + + Screen Stylesheet + +version: 1.4.5 +date: 27/11/13 +author: themepunch +email: info@themepunch.com +website: http://www.themepunch.com +-----------------------------------------------------------------------------*/ + + + +/************************* + - CAPTIONS - +**************************/ + +.tp-static-layers { position:absolute; z-index:505; top:0px;left:0px} + +.tp-hide-revslider,.tp-caption.tp-hidden-caption { visibility:hidden !important; display:none !important} + + +.tp-caption { z-index:1; white-space:nowrap} + +.tp-caption-demo .tp-caption { position:relative !important; display:inline-block; margin-bottom:10px; margin-right:20px !important} + + +.tp-caption.whitedivider3px { + + color: #000000; + text-shadow: none; + background-color: rgb(255, 255, 255); + background-color: rgba(255, 255, 255, 1); + text-decoration: none; + min-width: 408px; + min-height: 3px; + background-position: initial initial; + background-repeat: initial initial; + border-width: 0px; + border-color: #000000; + border-style: none; +} + + +.tp-caption.finewide_large_white { +color:#ffffff; +text-shadow:none; +font-size:60px; +line-height:60px; +font-weight:300; +font-family:"Open Sans", sans-serif; +background-color:transparent; +text-decoration:none; +text-transform:uppercase; +letter-spacing:8px; +border-width:0px; +border-color:rgb(0, 0, 0); +border-style:none; +} + +.tp-caption.whitedivider3px { +color:#000000; +text-shadow:none; +background-color:rgb(255, 255, 255); +background-color:rgba(255, 255, 255, 1); +text-decoration:none; +font-size:0px; +line-height:0; +min-width:468px; +min-height:3px; +border-width:0px; +border-color:rgb(0, 0, 0); +border-style:none; +} + +.tp-caption.finewide_medium_white { +color:#ffffff; +text-shadow:none; +font-size:37px; +line-height:37px; +font-weight:300; +font-family:"Open Sans", sans-serif; +background-color:transparent; +text-decoration:none; +text-transform:uppercase; +letter-spacing:5px; +border-width:0px; +border-color:rgb(0, 0, 0); +border-style:none; +} + +.tp-caption.boldwide_small_white { +font-size:25px; +line-height:25px; +font-weight:800; +font-family:"Open Sans", sans-serif; +color:rgb(255, 255, 255); +text-decoration:none; +background-color:transparent; +text-shadow:none; +text-transform:uppercase; +letter-spacing:5px; +border-width:0px; +border-color:rgb(0, 0, 0); +border-style:none; +} + +.tp-caption.whitedivider3px_vertical { +color:#000000; +text-shadow:none; +background-color:rgb(255, 255, 255); +background-color:rgba(255, 255, 255, 1); +text-decoration:none; +font-size:0px; +line-height:0; +min-width:3px; +min-height:130px; +border-width:0px; +border-color:rgb(0, 0, 0); +border-style:none; +} + +.tp-caption.finewide_small_white { +color:#ffffff; +text-shadow:none; +font-size:25px; +line-height:25px; +font-weight:300; +font-family:"Open Sans", sans-serif; +background-color:transparent; +text-decoration:none; +text-transform:uppercase; +letter-spacing:5px; +border-width:0px; +border-color:rgb(0, 0, 0); +border-style:none; +} + +.tp-caption.finewide_verysmall_white_mw { +font-size:13px; +line-height:25px; +font-weight:400; +font-family:"Open Sans", sans-serif; +color:#ffffff; +text-decoration:none; +background-color:transparent; +text-shadow:none; +text-transform:uppercase; +letter-spacing:5px; +max-width:470px; +white-space:normal !important; +border-width:0px; +border-color:rgb(0, 0, 0); +border-style:none; +} + +.tp-caption.lightgrey_divider { +text-decoration:none; +background-color:rgb(235, 235, 235); +background-color:rgba(235, 235, 235, 1); +width:370px; +height:3px; +background-position:initial initial; +background-repeat:initial initial; +border-width:0px; +border-color:rgb(34, 34, 34); +border-style:none; +} + +.tp-caption.finewide_large_white { +color: #FFF; +text-shadow: none; +font-size: 60px; +line-height: 60px; +font-weight: 300; +font-family: "Open Sans", sans-serif; +background-color: rgba(0, 0, 0, 0); +text-decoration: none; +text-transform: uppercase; +letter-spacing: 8px; +border-width: 0px; +border-color: #000; +border-style: none; +} + +.tp-caption.finewide_medium_white { +color: #FFF; +text-shadow: none; +font-size: 34px; +line-height: 34px; +font-weight: 300; +font-family: "Open Sans", sans-serif; +background-color: rgba(0, 0, 0, 0); +text-decoration: none; +text-transform: uppercase; +letter-spacing: 5px; +border-width: 0px; +border-color: #000; +border-style: none; +} + +.tp-caption.huge_red { +position:absolute; +color:rgb(223,75,107); +font-weight:400; +font-size:150px; +line-height:130px; +font-family: 'Oswald', sans-serif; +margin:0px; +border-width:0px; +border-style:none; +white-space:nowrap; +background-color:rgb(45,49,54); +padding:0px; +} + +.tp-caption.middle_yellow { +position:absolute; +color:rgb(251,213,114); +font-weight:600; +font-size:50px; +line-height:50px; +font-family: 'Open Sans', sans-serif; +margin:0px; +border-width:0px; +border-style:none; +white-space:nowrap; +} + +.tp-caption.huge_thin_yellow { + position:absolute; +color:rgb(251,213,114); +font-weight:300; +font-size:90px; +line-height:90px; +font-family: 'Open Sans', sans-serif; +margin:0px; +letter-spacing: 20px; +border-width:0px; +border-style:none; +white-space:nowrap; +} + +.tp-caption.big_dark { +position:absolute; +color:#333; +font-weight:700; +font-size:70px; +line-height:70px; +font-family:"Open Sans"; +margin:0px; +border-width:0px; +border-style:none; +white-space:nowrap; +} + +.tp-caption.medium_dark { +position:absolute; +color:#333; +font-weight:300; +font-size:40px; +line-height:40px; +font-family:"Open Sans"; +margin:0px; +letter-spacing: 5px; +border-width:0px; +border-style:none; +white-space:nowrap; +} + + +.tp-caption.medium_grey { +position:absolute; +color:#fff; +text-shadow:0px 2px 5px rgba(0, 0, 0, 0.5); +font-weight:700; +font-size:20px; +line-height:20px; +font-family:Arial; +padding:2px 4px; +margin:0px; +border-width:0px; +border-style:none; +background-color:#888; +white-space:nowrap; +} + +.tp-caption.small_text { +position:absolute; +color:#fff; +text-shadow:0px 2px 5px rgba(0, 0, 0, 0.5); +font-weight:700; +font-size:14px; +line-height:20px; +font-family:Arial; +margin:0px; +border-width:0px; +border-style:none; +white-space:nowrap; +} + +.tp-caption.medium_text { +position:absolute; +color:#fff; +text-shadow:0px 2px 5px rgba(0, 0, 0, 0.5); +font-weight:700; +font-size:20px; +line-height:20px; +font-family:Arial; +margin:0px; +border-width:0px; +border-style:none; +white-space:nowrap; +} + + +.tp-caption.large_bold_white_25 { +font-size:55px; +line-height:65px; +font-weight:700; +font-family:"Open Sans"; +color:#fff; +text-decoration:none; +background-color:transparent; +text-align:center; +text-shadow:#000 0px 5px 10px; +border-width:0px; +border-color:rgb(255, 255, 255); +border-style:none; +} + +.tp-caption.medium_text_shadow { +font-size:25px; +line-height:25px; +font-weight:600; +font-family:"Open Sans"; +color:#fff; +text-decoration:none; +background-color:transparent; +text-align:center; +text-shadow:#000 0px 5px 10px; +border-width:0px; +border-color:rgb(255, 255, 255); +border-style:none; +} + +.tp-caption.large_text { +position:absolute; +color:#fff; +text-shadow:0px 2px 5px rgba(0, 0, 0, 0.5); +font-weight:700; +font-size:40px; +line-height:40px; +font-family:Arial; +margin:0px; +border-width:0px; +border-style:none; +white-space:nowrap; +} + +.tp-caption.medium_bold_grey { +font-size:30px; +line-height:30px; +font-weight:800; +font-family:"Open Sans"; +color:rgb(102, 102, 102); +text-decoration:none; +background-color:transparent; +text-shadow:none; +margin:0px; +padding:1px 4px 0px; +border-width:0px; +border-color:rgb(255, 214, 88); +border-style:none; +} + +.tp-caption.very_large_text { +position:absolute; +color:#fff; +text-shadow:0px 2px 5px rgba(0, 0, 0, 0.5); +font-weight:700; +font-size:60px; +line-height:60px; +font-family:Arial; +margin:0px; +border-width:0px; +border-style:none; +white-space:nowrap; +letter-spacing:-2px; +} + +.tp-caption.very_big_white { +position:absolute; +color:#fff; +text-shadow:none; +font-weight:800; +font-size:60px; +line-height:60px; +font-family:Arial; +margin:0px; +border-width:0px; +border-style:none; +white-space:nowrap; +padding:0px 4px; +padding-top:1px; +background-color:#000; +} + +.tp-caption.very_big_black { +position:absolute; +color:#000; +text-shadow:none; +font-weight:700; +font-size:60px; +line-height:60px; +font-family:Arial; +margin:0px; +border-width:0px; +border-style:none; +white-space:nowrap; +padding:0px 4px; +padding-top:1px; +background-color:#fff; +} + +.tp-caption.modern_medium_fat { +position:absolute; +color:#000; +text-shadow:none; +font-weight:800; +font-size:24px; +line-height:20px; +font-family:"Open Sans", sans-serif; +margin:0px; +border-width:0px; +border-style:none; +white-space:nowrap; +} + +.tp-caption.modern_medium_fat_white { +position:absolute; +color:#fff; +text-shadow:none; +font-weight:800; +font-size:24px; +line-height:20px; +font-family:"Open Sans", sans-serif; +margin:0px; +border-width:0px; +border-style:none; +white-space:nowrap; +} + +.tp-caption.modern_medium_light { +position:absolute; +color:#000; +text-shadow:none; +font-weight:300; +font-size:24px; +line-height:20px; +font-family:"Open Sans", sans-serif; +margin:0px; +border-width:0px; +border-style:none; +white-space:nowrap; +} + +.tp-caption.modern_big_bluebg { +position:absolute; +color:#fff; +text-shadow:none; +font-weight:800; +font-size:30px; +line-height:36px; +font-family:"Open Sans", sans-serif; +padding:3px 10px; +margin:0px; +border-width:0px; +border-style:none; +background-color:#4e5b6c; +letter-spacing:0; +} + +.tp-caption.modern_big_redbg { +position:absolute; +color:#fff; +text-shadow:none; +font-weight:300; +font-size:30px; +line-height:36px; +font-family:"Open Sans", sans-serif; +padding:3px 10px; +padding-top:1px; +margin:0px; +border-width:0px; +border-style:none; +background-color:#de543e; +letter-spacing:0; +} + +.tp-caption.modern_small_text_dark { +position:absolute; +color:#555; +text-shadow:none; +font-size:14px; +line-height:22px; +font-family:Arial; +margin:0px; +border-width:0px; +border-style:none; +white-space:nowrap; +} + +.tp-caption.boxshadow { +-moz-box-shadow:0px 0px 20px rgba(0, 0, 0, 0.5); +-webkit-box-shadow:0px 0px 20px rgba(0, 0, 0, 0.5); +box-shadow:0px 0px 20px rgba(0, 0, 0, 0.5); +} + +.tp-caption.black { +color:#000; +text-shadow:none; +} + +.tp-caption.noshadow { +text-shadow:none; +} + +.tp-caption a { +color:#ff7302; +text-shadow:none; +-webkit-transition:all 0.2s ease-out; +-moz-transition:all 0.2s ease-out; +-o-transition:all 0.2s ease-out; +-ms-transition:all 0.2s ease-out; +} + +.tp-caption a:hover { +color:#ffa902; +} + +.tp-caption.thinheadline_dark { +position:absolute; +color:rgba(0,0,0,0.85); +text-shadow:none; +font-weight:300; +font-size:30px; +line-height:30px; +font-family:"Open Sans"; +background-color:transparent; +} + +.tp-caption.thintext_dark { +position:absolute; +color:rgba(0,0,0,0.85); +text-shadow:none; +font-weight:300; +font-size:16px; +line-height:26px; +font-family:"Open Sans"; +background-color:transparent; +} + +.tp-caption.medium_bg_red a { + color: #fff; + text-decoration: none; +} + +.tp-caption.medium_bg_red a:hover { + color: #fff; + text-decoration: underline; +} + +.tp-caption.smoothcircle { +font-size:30px; +line-height:75px; +font-weight:800; +font-family:"Open Sans"; +color:rgb(255, 255, 255); +text-decoration:none; +background-color:rgb(0, 0, 0); +background-color:rgba(0, 0, 0, 0.498039); +padding:50px 25px; +text-align:center; +border-radius:500px 500px 500px 500px; +border-width:0px; +border-color:rgb(0, 0, 0); +border-style:none; +} + +.tp-caption.largeblackbg { +font-size:50px; +line-height:70px; +font-weight:300; +font-family:"Open Sans"; +color:rgb(255, 255, 255); +text-decoration:none; +background-color:rgb(0, 0, 0); +padding:0px 20px 5px; +text-shadow:none; +border-width:0px; +border-color:rgb(255, 255, 255); +border-style:none; +} + +.tp-caption.largepinkbg { +position:absolute; +color:#fff; +text-shadow:none; +font-weight:300; +font-size:50px; +line-height:70px; +font-family:"Open Sans"; +background-color:#db4360; +padding:0px 20px; +-webkit-border-radius:0px; +-moz-border-radius:0px; +border-radius:0px; +} + +.tp-caption.largewhitebg { +position:absolute; +color:#000; +text-shadow:none; +font-weight:300; +font-size:50px; +line-height:70px; +font-family:"Open Sans"; +background-color:#fff; +padding:0px 20px; +-webkit-border-radius:0px; +-moz-border-radius:0px; +border-radius:0px; +} + +.tp-caption.largegreenbg { +position:absolute; +color:#fff; +text-shadow:none; +font-weight:300; +font-size:50px; +line-height:70px; +font-family:"Open Sans"; +background-color:#67ae73; +padding:0px 20px; +-webkit-border-radius:0px; +-moz-border-radius:0px; +border-radius:0px; +} + +.tp-caption.excerpt { +font-size:36px; +line-height:36px; +font-weight:700; +font-family:Arial; +color:#ffffff; +text-decoration:none; +background-color:rgba(0, 0, 0, 1); +text-shadow:none; +margin:0px; +letter-spacing:-1.5px; +padding:1px 4px 0px 4px; +width:150px; +white-space:normal !important; +height:auto; +border-width:0px; +border-color:rgb(255, 255, 255); +border-style:none; +} + +.tp-caption.large_bold_grey { +font-size:60px; +line-height:60px; +font-weight:800; +font-family:"Open Sans"; +color:rgb(102, 102, 102); +text-decoration:none; +background-color:transparent; +text-shadow:none; +margin:0px; +padding:1px 4px 0px; +border-width:0px; +border-color:rgb(255, 214, 88); +border-style:none; +} + +.tp-caption.medium_thin_grey { +font-size:34px; +line-height:30px; +font-weight:300; +font-family:"Open Sans"; +color:rgb(102, 102, 102); +text-decoration:none; +background-color:transparent; +padding:1px 4px 0px; +text-shadow:none; +margin:0px; +border-width:0px; +border-color:rgb(255, 214, 88); +border-style:none; +} + +.tp-caption.small_thin_grey { +font-size:18px; +line-height:26px; +font-weight:300; +font-family:"Open Sans"; +color:rgb(117, 117, 117); +text-decoration:none; +background-color:transparent; +padding:1px 4px 0px; +text-shadow:none; +margin:0px; +border-width:0px; +border-color:rgb(255, 214, 88); +border-style:none; +} + +.tp-caption.lightgrey_divider { +text-decoration:none; +background-color:rgba(235, 235, 235, 1); +width:370px; +height:3px; +background-position:initial initial; +background-repeat:initial initial; +border-width:0px; +border-color:rgb(34, 34, 34); +border-style:none; +} + +.tp-caption.large_bold_darkblue { +font-size:58px; +line-height:60px; +font-weight:800; +font-family:"Open Sans"; +color:rgb(52, 73, 94); +text-decoration:none; +background-color:transparent; +border-width:0px; +border-color:rgb(255, 214, 88); +border-style:none; +} + +.tp-caption.medium_bg_darkblue { +font-size:20px; +line-height:20px; +font-weight:800; +font-family:"Open Sans"; +color:rgb(255, 255, 255); +text-decoration:none; +background-color:rgb(52, 73, 94); +padding:10px; +border-width:0px; +border-color:rgb(255, 214, 88); +border-style:none; +} + +.tp-caption.medium_bold_red { +font-size:24px; +line-height:30px; +font-weight:800; +font-family:"Open Sans"; +color:rgb(227, 58, 12); +text-decoration:none; +background-color:transparent; +padding:0px; +border-width:0px; +border-color:rgb(255, 214, 88); +border-style:none; +} + +.tp-caption.medium_light_red { +font-size:21px; +line-height:26px; +font-weight:300; +font-family:"Open Sans"; +color:rgb(227, 58, 12); +text-decoration:none; +background-color:transparent; +padding:0px; +border-width:0px; +border-color:rgb(255, 214, 88); +border-style:none; +} + +.tp-caption.medium_bg_red { +font-size:20px; +line-height:20px; +font-weight:800; +font-family:"Open Sans"; +color:rgb(255, 255, 255); +text-decoration:none; +background-color:rgb(227, 58, 12); +padding:10px; +border-width:0px; +border-color:rgb(255, 214, 88); +border-style:none; +} + +.tp-caption.medium_bold_orange { +font-size:24px; +line-height:30px; +font-weight:800; +font-family:"Open Sans"; +color:rgb(243, 156, 18); +text-decoration:none; +background-color:transparent; +border-width:0px; +border-color:rgb(255, 214, 88); +border-style:none; +} + +.tp-caption.medium_bg_orange { +font-size:20px; +line-height:20px; +font-weight:800; +font-family:"Open Sans"; +color:rgb(255, 255, 255); +text-decoration:none; +background-color:rgb(243, 156, 18); +padding:10px; +border-width:0px; +border-color:rgb(255, 214, 88); +border-style:none; +} + +.tp-caption.grassfloor { +text-decoration:none; +background-color:rgba(160, 179, 151, 1); +width:4000px; +height:150px; +border-width:0px; +border-color:rgb(34, 34, 34); +border-style:none; +} + +.tp-caption.large_bold_white { +font-size:58px; +line-height:60px; +font-weight:800; +font-family:"Open Sans"; +color:rgb(255, 255, 255); +text-decoration:none; +background-color:transparent; +border-width:0px; +border-color:rgb(255, 214, 88); +border-style:none; +} + +.tp-caption.medium_light_white { +font-size:30px; +line-height:36px; +font-weight:300; +font-family:"Open Sans"; +color:rgb(255, 255, 255); +text-decoration:none; +background-color:transparent; +padding:0px; +border-width:0px; +border-color:rgb(255, 214, 88); +border-style:none; +} + +.tp-caption.mediumlarge_light_white { +font-size:34px; +line-height:40px; +font-weight:300; +font-family:"Open Sans"; +color:rgb(255, 255, 255); +text-decoration:none; +background-color:transparent; +padding:0px; +border-width:0px; +border-color:rgb(255, 214, 88); +border-style:none; +} + +.tp-caption.mediumlarge_light_white_center { +font-size:34px; +line-height:40px; +font-weight:300; +font-family:"Open Sans"; +color:#ffffff; +text-decoration:none; +background-color:transparent; +padding:0px 0px 0px 0px; +text-align:center; +border-width:0px; +border-color:rgb(255, 214, 88); +border-style:none; +} + +.tp-caption.medium_bg_asbestos { +font-size:20px; +line-height:20px; +font-weight:800; +font-family:"Open Sans"; +color:rgb(255, 255, 255); +text-decoration:none; +background-color:rgb(127, 140, 141); +padding:10px; +border-width:0px; +border-color:rgb(255, 214, 88); +border-style:none; +} + +.tp-caption.medium_light_black { +font-size:30px; +line-height:36px; +font-weight:300; +font-family:"Open Sans"; +color:rgb(0, 0, 0); +text-decoration:none; +background-color:transparent; +padding:0px; +border-width:0px; +border-color:rgb(255, 214, 88); +border-style:none; +} + +.tp-caption.large_bold_black { +font-size:58px; +line-height:60px; +font-weight:800; +font-family:"Open Sans"; +color:rgb(0, 0, 0); +text-decoration:none; +background-color:transparent; +border-width:0px; +border-color:rgb(255, 214, 88); +border-style:none; +} + +.tp-caption.mediumlarge_light_darkblue { +font-size:34px; +line-height:40px; +font-weight:300; +font-family:"Open Sans"; +color:rgb(52, 73, 94); +text-decoration:none; +background-color:transparent; +padding:0px; +border-width:0px; +border-color:rgb(255, 214, 88); +border-style:none; +} + +.tp-caption.small_light_white { +font-size:17px; +line-height:28px; +font-weight:300; +font-family:"Open Sans"; +color:rgb(255, 255, 255); +text-decoration:none; +background-color:transparent; +padding:0px; +border-width:0px; +border-color:rgb(255, 214, 88); +border-style:none; +} + +.tp-caption.roundedimage { +border-width:0px; +border-color:rgb(34, 34, 34); +border-style:none; +} + +.tp-caption.large_bg_black { +font-size:40px; +line-height:40px; +font-weight:800; +font-family:"Open Sans"; +color:rgb(255, 255, 255); +text-decoration:none; +background-color:rgb(0, 0, 0); +padding:10px 20px 15px; +border-width:0px; +border-color:rgb(255, 214, 88); +border-style:none; +} + +.tp-caption.mediumwhitebg { +font-size:30px; +line-height:30px; +font-weight:300; +font-family:"Open Sans"; +color:rgb(0, 0, 0); +text-decoration:none; +background-color:rgb(255, 255, 255); +padding:5px 15px 10px; +text-shadow:none; +border-width:0px; +border-color:rgb(0, 0, 0); +border-style:none; +} + +.tp-caption.medium_bg_orange_new1 { +font-size:20px; +line-height:20px; +font-weight:800; +font-family:"Open Sans"; +color:rgb(255, 255, 255); +text-decoration:none; +background-color:rgb(243, 156, 18); +padding:10px; +border-width:0px; +border-color:rgb(255, 214, 88); +border-style:none; +} + + + +.tp-caption.boxshadow{ + -moz-box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5); + -webkit-box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5); + box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5); + } + +.tp-caption.black{ + color: #000; + text-shadow: none; + font-weight: 300; + font-size: 19px; + line-height: 19px; + font-family: 'Open Sans', sans; + } + +.tp-caption.noshadow { + text-shadow: none; + } + + +.tp_inner_padding { box-sizing:border-box; + -webkit-box-sizing:border-box; + -moz-box-sizing:border-box; + max-height:none !important; } + + +/*.tp-caption { transform:none !important}*/ + + +/********************************* + - SPECIAL TP CAPTIONS - +**********************************/ +.tp-caption .frontcorner { + width: 0; + height: 0; + border-left: 40px solid transparent; + border-right: 0px solid transparent; + border-top: 40px solid #00A8FF; + position: absolute;left:-40px;top:0px; + } + +.tp-caption .backcorner { + width: 0; + height: 0; + border-left: 0px solid transparent; + border-right: 40px solid transparent; + border-bottom: 40px solid #00A8FF; + position: absolute;right:0px;top:0px; + } + +.tp-caption .frontcornertop { + width: 0; + height: 0; + border-left: 40px solid transparent; + border-right: 0px solid transparent; + border-bottom: 40px solid #00A8FF; + position: absolute;left:-40px;top:0px; + } + +.tp-caption .backcornertop { + width: 0; + height: 0; + border-left: 0px solid transparent; + border-right: 40px solid transparent; + border-top: 40px solid #00A8FF; + position: absolute;right:0px;top:0px; + } + + +/*********************************************** + - SPECIAL ALTERNATIVE IMAGE SETTINGS - +***********************************************/ + +img.tp-slider-alternative-image { width:100%; height:auto;} + +/****************************** + - BUTTONS - +*******************************/ + +.tp-simpleresponsive .button { padding:6px 13px 5px; border-radius: 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px; height:30px; + cursor:pointer; + color:#fff !important; text-shadow:0px 1px 1px rgba(0, 0, 0, 0.6) !important; font-size:15px; line-height:45px !important; + background:url(../images/gradient/g30.png) repeat-x top; font-family: arial, sans-serif; font-weight: bold; letter-spacing: -1px; + } + +.tp-simpleresponsive .button.big { color:#fff; text-shadow:0px 1px 1px rgba(0, 0, 0, 0.6); font-weight:bold; padding:9px 20px; font-size:19px; line-height:57px !important; background:url(../images/gradient/g40.png) repeat-x top} + + +.tp-simpleresponsive .purchase:hover, +.tp-simpleresponsive .button:hover, +.tp-simpleresponsive .button.big:hover { background-position:bottom, 15px 11px} + + + + @media only screen and (min-width: 768px) and (max-width: 959px) { + + } + + + + @media only screen and (min-width: 480px) and (max-width: 767px) { + .tp-simpleresponsive .button { padding:4px 8px 3px; line-height:25px !important; font-size:11px !important;font-weight:normal; } + .tp-simpleresponsive a.button { -webkit-transition: none; -moz-transition: none; -o-transition: none; -ms-transition: none; } + + + } + + @media only screen and (min-width: 0px) and (max-width: 479px) { + .tp-simpleresponsive .button { padding:2px 5px 2px; line-height:20px !important; font-size:10px !important} + .tp-simpleresponsive a.button { -webkit-transition: none; -moz-transition: none; -o-transition: none; -ms-transition: none; } + } + + + + + +/* BUTTON COLORS */ + + + +.tp-simpleresponsive .button.green, .tp-simpleresponsive .button:hover.green, +.tp-simpleresponsive .purchase.green, .tp-simpleresponsive .purchase:hover.green { background-color:#21a117; -webkit-box-shadow: 0px 3px 0px 0px #104d0b; -moz-box-shadow: 0px 3px 0px 0px #104d0b; box-shadow: 0px 3px 0px 0px #104d0b; } + + +.tp-simpleresponsive .button.blue, .tp-simpleresponsive .button:hover.blue, +.tp-simpleresponsive .purchase.blue, .tp-simpleresponsive .purchase:hover.blue { background-color:#1d78cb; -webkit-box-shadow: 0px 3px 0px 0px #0f3e68; -moz-box-shadow: 0px 3px 0px 0px #0f3e68; box-shadow: 0px 3px 0px 0px #0f3e68} + + +.tp-simpleresponsive .button.red, .tp-simpleresponsive .button:hover.red, +.tp-simpleresponsive .purchase.red, .tp-simpleresponsive .purchase:hover.red { background-color:#cb1d1d; -webkit-box-shadow: 0px 3px 0px 0px #7c1212; -moz-box-shadow: 0px 3px 0px 0px #7c1212; box-shadow: 0px 3px 0px 0px #7c1212} + +.tp-simpleresponsive .button.orange, .tp-simpleresponsive .button:hover.orange, +.tp-simpleresponsive .purchase.orange, .tp-simpleresponsive .purchase:hover.orange { background-color:#ff7700; -webkit-box-shadow: 0px 3px 0px 0px #a34c00; -moz-box-shadow: 0px 3px 0px 0px #a34c00; box-shadow: 0px 3px 0px 0px #a34c00} + +.tp-simpleresponsive .button.darkgrey, .tp-simpleresponsive .button.grey, +.tp-simpleresponsive .button:hover.darkgrey, .tp-simpleresponsive .button:hover.grey, +.tp-simpleresponsive .purchase.darkgrey, .tp-simpleresponsive .purchase:hover.darkgrey { background-color:#555; -webkit-box-shadow: 0px 3px 0px 0px #222; -moz-box-shadow: 0px 3px 0px 0px #222; box-shadow: 0px 3px 0px 0px #222} + +.tp-simpleresponsive .button.lightgrey, .tp-simpleresponsive .button:hover.lightgrey, +.tp-simpleresponsive .purchase.lightgrey, .tp-simpleresponsive .purchase:hover.lightgrey { background-color:#888; -webkit-box-shadow: 0px 3px 0px 0px #555; -moz-box-shadow: 0px 3px 0px 0px #555; box-shadow: 0px 3px 0px 0px #555} + + + +/**************************************************************** + + - SET THE ANIMATION EVEN MORE SMOOTHER ON ANDROID - + +******************************************************************/ + +/*.tp-simpleresponsive { -webkit-perspective: 1500px; + -moz-perspective: 1500px; + -o-perspective: 1500px; + -ms-perspective: 1500px; + perspective: 1500px; + }*/ + + + + +/********************************************** + - FULLSCREEN AND FULLWIDHT CONTAINERS - +**********************************************/ + +.fullscreen-container { + width:100%; + position:relative; + padding:0; +} + + + +.fullwidthbanner-container{ + width:100%; + position:relative; + padding:0; + overflow:hidden; +} + +.fullwidthbanner-container .fullwidthbanner{ + width:100%; + position:relative; +} + + + +/************************************************ + - SOME CAPTION MODIFICATION AT START - +*************************************************/ +.tp-simpleresponsive .caption, +.tp-simpleresponsive .tp-caption { + /*-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; -moz-opacity: 0; -khtml-opacity: 0; opacity: 0; */ + position:absolute;visibility: hidden; + -webkit-font-smoothing: antialiased !important; +} + + +.tp-simpleresponsive img { max-width:none} + + + +/****************************** + - IE8 HACKS - +*******************************/ +.noFilterClass { + filter:none !important; +} + + +/****************************** + - SHADOWS - +******************************/ +.tp-bannershadow { + position:absolute; + + margin-left:auto; + margin-right:auto; + -moz-user-select: none; + -khtml-user-select: none; + -webkit-user-select: none; + -o-user-select: none; + } + +.tp-bannershadow.tp-shadow1 { background:url(../assets/shadow1.png) no-repeat; background-size:100% 100%; width:890px; height:60px; bottom:-60px} +.tp-bannershadow.tp-shadow2 { background:url(../assets/shadow2.png) no-repeat; background-size:100% 100%; width:890px; height:60px;bottom:-60px} +.tp-bannershadow.tp-shadow3 { background:url(../assets/shadow3.png) no-repeat; background-size:100% 100%; width:890px; height:60px;bottom:-60px} + + +/******************************** + - FULLSCREEN VIDEO - +*********************************/ +.caption.fullscreenvideo { left:0px; top:0px; position:absolute;width:100%;height:100%} +.caption.fullscreenvideo iframe, +.caption.fullscreenvideo video { width:100% !important; height:100% !important; display: none} + +.tp-caption.fullscreenvideo { left:0px; top:0px; position:absolute;width:100%;height:100%} + + +.tp-caption.fullscreenvideo iframe, +.tp-caption.fullscreenvideo iframe video { width:100% !important; height:100% !important; display: none} + + +.fullcoveredvideo video, +.fullscreenvideo video { background: #000} + +.fullcoveredvideo .tp-poster { background-position: center center;background-size: cover;width:100%;height:100%;top:0px;left:0px} + +.html5vid.videoisplaying .tp-poster { display: none} + +.tp-video-play-button { background:#000; + background:rgba(0,0,0,0.3); + padding:5px; + border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px; + position: absolute; + top: 50%; + left: 50%; + font-size: 40px; + color: #FFF; + z-index: 3; + margin-top: -27px; + margin-left: -28px; + text-align: center; + cursor: pointer; + } + +.html5vid .tp-revstop { width:15px;height:20px; border-left:5px solid #fff; border-right:5px solid #fff; position:relative;margin:10px 20px; box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box} +.html5vid .tp-revstop { display:none} +.html5vid.videoisplaying .revicon-right-dir { display:none} +.html5vid.videoisplaying .tp-revstop { display:block} + +.html5vid.videoisplaying .tp-video-play-button { display:none} +.html5vid:hover .tp-video-play-button { display:block} + +.fullcoveredvideo .tp-video-play-button { display:none !important} + +.tp-video-controls { + position: absolute; + bottom: 0; + left: 0; + right: 0; + padding: 5px; + opacity: 0; + -webkit-transition: opacity .3s; + -moz-transition: opacity .3s; + -o-transition: opacity .3s; + -ms-transition: opacity .3s; + transition: opacity .3s; + background-image: linear-gradient(bottom, rgb(0,0,0) 13%, rgb(50,50,50) 100%); + background-image: -o-linear-gradient(bottom, rgb(0,0,0) 13%, rgb(50,50,50) 100%); + background-image: -moz-linear-gradient(bottom, rgb(0,0,0) 13%, rgb(50,50,50) 100%); + background-image: -webkit-linear-gradient(bottom, rgb(0,0,0) 13%, rgb(50,50,50) 100%); + background-image: -ms-linear-gradient(bottom, rgb(0,0,0) 13%, rgb(50,50,50) 100%); + + background-image: -webkit-gradient( + linear, + left bottom, + left top, + color-stop(0.13, rgb(0,0,0)), + color-stop(1, rgb(50,50,50)) + ); + + display:table;max-width:100%; overflow:hidden;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box; +} + +.tp-caption:hover .tp-video-controls { + opacity: .9; +} + +.tp-video-button { + background: rgba(0,0,0,.5); + border: 0; + color: #EEE; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + -o-border-radius: 3px; + border-radius: 3px; + cursor:pointer; + line-height:12px; + font-size:12px; + color:#fff; + padding:0px; + margin:0px; + outline: none; + } +.tp-video-button:hover { + cursor: pointer; +} + + +.tp-video-button-wrap, +.tp-video-seek-bar-wrap, +.tp-video-vol-bar-wrap { padding:0px 5px;display:table-cell; } + +.tp-video-seek-bar-wrap { width:80%} +.tp-video-vol-bar-wrap { width:20%} + +.tp-volume-bar, +.tp-seek-bar { width:100%; cursor: pointer; outline:none; line-height:12px;margin:0; padding:0;} + + +/******************************** + - FULLSCREEN VIDEO ENDS - +*********************************/ + + +/******************************** + - DOTTED OVERLAYS - +*********************************/ +.tp-dottedoverlay { background-repeat:repeat;width:100%;height:100%;position:absolute;top:0px;left:0px;z-index:4} +.tp-dottedoverlay.twoxtwo { background:url(../assets/gridtile.png)} +.tp-dottedoverlay.twoxtwowhite { background:url(../assets/gridtile_white.png)} +.tp-dottedoverlay.threexthree { background:url(../assets/gridtile_3x3.png)} +.tp-dottedoverlay.threexthreewhite { background:url(../assets/gridtile_3x3_white.png)} +/******************************** + - DOTTED OVERLAYS ENDS - +*********************************/ + + +/************************ + - NAVIGATION - +*************************/ + +/** BULLETS **/ + +.tpclear { clear:both} + + +.tp-bullets { z-index:1000; position:absolute; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; + -moz-opacity: 1; + -khtml-opacity: 1; + opacity: 1; + -webkit-transition: opacity 0.2s ease-out; -moz-transition: opacity 0.2s ease-out; -o-transition: opacity 0.2s ease-out; -ms-transition: opacity 0.2s ease-out;-webkit-transform: translateZ(5px); + } +.tp-bullets.hidebullets { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; + -moz-opacity: 0; + -khtml-opacity: 0; + opacity: 0; + } + + +.tp-bullets.simplebullets.navbar { border:1px solid #666; border-bottom:1px solid #444; background:url(../assets/boxed_bgtile.png); height:40px; padding:0px 10px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px } + +.tp-bullets.simplebullets.navbar-old { background:url(../assets/navigdots_bgtile.png); height:35px; padding:0px 10px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px } + + +.tp-bullets.simplebullets.round .bullet { cursor:pointer; position:relative; background:url(../assets/bullet.png) no-Repeat top left; width:20px; height:20px; margin-right:0px; float:left; margin-top:0px; margin-left:3px} +.tp-bullets.simplebullets.round .bullet.last { margin-right:3px} + +.tp-bullets.simplebullets.round-old .bullet { cursor:pointer; position:relative; background:url(../assets/bullets.png) no-Repeat bottom left; width:23px; height:23px; margin-right:0px; float:left; margin-top:0px} +.tp-bullets.simplebullets.round-old .bullet.last { margin-right:0px} + + +/** SQUARE BULLETS **/ +.tp-bullets.simplebullets.square .bullet { cursor:pointer; position:relative; background:url(../assets/bullets2.png) no-Repeat bottom left; width:19px; height:19px; margin-right:0px; float:left; margin-top:0px} +.tp-bullets.simplebullets.square .bullet.last { margin-right:0px} + + +/** SQUARE BULLETS **/ +.tp-bullets.simplebullets.square-old .bullet { cursor:pointer; position:relative; background:url(../assets/bullets2.png) no-Repeat bottom left; width:19px; height:19px; margin-right:0px; float:left; margin-top:0px} +.tp-bullets.simplebullets.square-old .bullet.last { margin-right:0px} + + +/** navbar NAVIGATION VERSION **/ +.tp-bullets.simplebullets.navbar .bullet { cursor:pointer; position:relative; background:url(../assets/bullet_boxed.png) no-Repeat top left; width:18px; height:19px; margin-right:5px; float:left; margin-top:0px} + +.tp-bullets.simplebullets.navbar .bullet.first { margin-left:0px !important} +.tp-bullets.simplebullets.navbar .bullet.last { margin-right:0px !important} + + + +/** navbar NAVIGATION VERSION **/ +.tp-bullets.simplebullets.navbar-old .bullet { cursor:pointer; position:relative; background:url(../assets/navigdots.png) no-Repeat bottom left; width:15px; height:15px; margin-left:5px !important; margin-right:5px !important;float:left; margin-top:10px} +.tp-bullets.simplebullets.navbar-old .bullet.first { margin-left:0px !important} +.tp-bullets.simplebullets.navbar-old .bullet.last { margin-right:0px !important} + + +.tp-bullets.simplebullets .bullet:hover, +.tp-bullets.simplebullets .bullet.selected { background-position:top left} + +.tp-bullets.simplebullets.round .bullet:hover, +.tp-bullets.simplebullets.round .bullet.selected, +.tp-bullets.simplebullets.navbar .bullet:hover, +.tp-bullets.simplebullets.navbar .bullet.selected { background-position:bottom left} + + + +/************************************* + - TP ARROWS - +**************************************/ +.tparrows { -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; + -moz-opacity: 1; + -khtml-opacity: 1; + opacity: 1; + -webkit-transition: opacity 0.2s ease-out; -moz-transition: opacity 0.2s ease-out; -o-transition: opacity 0.2s ease-out; -ms-transition: opacity 0.2s ease-out; + -webkit-transform: translateZ(5000px); + -webkit-transform-style: flat; + -webkit-backface-visibility: hidden; + z-index:600; + position: relative; + + } +.tparrows.hidearrows { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; + -moz-opacity: 0; + -khtml-opacity: 0; + opacity: 0; + } +.tp-leftarrow { z-index:100;cursor:pointer; position:relative; background:url(../assets/large_left.png) no-Repeat top left; width:40px; height:40px; } +.tp-rightarrow { z-index:100;cursor:pointer; position:relative; background:url(../assets/large_right.png) no-Repeat top left; width:40px; height:40px; } + + +.tp-leftarrow.round { z-index:100;cursor:pointer; position:relative; background:url(../assets/small_left.png) no-Repeat top left; width:19px; height:14px; margin-right:0px; float:left; margin-top:0px; } +.tp-rightarrow.round { z-index:100;cursor:pointer; position:relative; background:url(../assets/small_right.png) no-Repeat top left; width:19px; height:14px; margin-right:0px; float:left; margin-top:0px} + + +.tp-leftarrow.round-old { z-index:100;cursor:pointer; position:relative; background:url(../assets/arrow_left.png) no-Repeat top left; width:26px; height:26px; margin-right:0px; float:left; margin-top:0px; } +.tp-rightarrow.round-old { z-index:100;cursor:pointer; position:relative; background:url(../assets/arrow_right.png) no-Repeat top left; width:26px; height:26px; margin-right:0px; float:left; margin-top:0px} + + +.tp-leftarrow.navbar { z-index:100;cursor:pointer; position:relative; background:url(../assets/small_left_boxed.png) no-Repeat top left; width:20px; height:15px; float:left; margin-right:6px; margin-top:12px} +.tp-rightarrow.navbar { z-index:100;cursor:pointer; position:relative; background:url(../assets/small_right_boxed.png) no-Repeat top left; width:20px; height:15px; float:left; margin-left:6px; margin-top:12px} + + +.tp-leftarrow.navbar-old { z-index:100;cursor:pointer; position:relative; background:url(../assets/arrowleft.png) no-Repeat top left; width:9px; height:16px; float:left; margin-right:6px; margin-top:10px} +.tp-rightarrow.navbar-old { z-index:100;cursor:pointer; position:relative; background:url(../assets/arrowright.png) no-Repeat top left; width:9px; height:16px; float:left; margin-left:6px; margin-top:10px} + +.tp-leftarrow.navbar-old.thumbswitharrow { margin-right:10px} +.tp-rightarrow.navbar-old.thumbswitharrow { margin-left:0px} + +.tp-leftarrow.square { z-index:100;cursor:pointer; position:relative; background:url(../assets/arrow_left2.png) no-Repeat top left; width:12px; height:17px; float:left; margin-right:0px; margin-top:0px} +.tp-rightarrow.square { z-index:100;cursor:pointer; position:relative; background:url(../assets/arrow_right2.png) no-Repeat top left; width:12px; height:17px; float:left; margin-left:0px; margin-top:0px} + + +.tp-leftarrow.square-old { z-index:100;cursor:pointer; position:relative; background:url(../assets/arrow_left2.png) no-Repeat top left; width:12px; height:17px; float:left; margin-right:0px; margin-top:0px} +.tp-rightarrow.square-old { z-index:100;cursor:pointer; position:relative; background:url(../assets/arrow_right2.png) no-Repeat top left; width:12px; height:17px; float:left; margin-left:0px; margin-top:0px} + + +.tp-leftarrow.default { z-index:100;cursor:pointer; position:relative; background:url(../assets/large_left.png) no-Repeat 0 0; width:40px; height:40px; + + } +.tp-rightarrow.default { z-index:100;cursor:pointer; position:relative; background:url(../assets/large_right.png) no-Repeat 0 0; width:40px; height:40px; + + } + + + + +.tp-leftarrow:hover, +.tp-rightarrow:hover { background-position:bottom left} + + + + + + +/**************************************************************************************************** + - TP THUMBS - +***************************************************************************************************** + + - tp-thumbs & tp-mask Width is the width of the basic Thumb Container (500px basic settings) + + - .bullet width & height is the dimension of a simple Thumbnail (basic 100px x 50px) + + *****************************************************************************************************/ + + +.tp-bullets.tp-thumbs { z-index:1000; position:absolute; padding:3px;background-color:#fff; + width:500px;height:50px; /* THE DIMENSIONS OF THE THUMB CONTAINER */ + margin-top:-50px; + } + + +.fullwidthbanner-container .tp-thumbs { padding:3px} + +.tp-bullets.tp-thumbs .tp-mask { width:500px; height:50px; /* THE DIMENSIONS OF THE THUMB CONTAINER */ + overflow:hidden; position:relative} + + +.tp-bullets.tp-thumbs .tp-mask .tp-thumbcontainer { width:5000px; position:absolute} + +.tp-bullets.tp-thumbs .bullet { width:100px; height:50px; /* THE DIMENSION OF A SINGLE THUMB */ + cursor:pointer; overflow:hidden;background:none;margin:0;float:left; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; + /*filter: alpha(opacity=50); */ + -moz-opacity: 0.5; + -khtml-opacity: 0.5; + opacity: 0.5; + + -webkit-transition: all 0.2s ease-out; -moz-transition: all 0.2s ease-out; -o-transition: all 0.2s ease-out; -ms-transition: all 0.2s ease-out; + } + + +.tp-bullets.tp-thumbs .bullet:hover, +.tp-bullets.tp-thumbs .bullet.selected { -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; + + -moz-opacity: 1; + -khtml-opacity: 1; + opacity: 1; + } +.tp-thumbs img { width:100%} + + +/************************************ + - TP BANNER TIMER - +*************************************/ +.tp-bannertimer { width:100%; height:10px; background:url(../assets/timer.png);position:absolute; z-index:200;top:0px} +.tp-bannertimer.tp-bottom { bottom:0px;height:5px; top:auto} + + + + +/*************************************** + - RESPONSIVE SETTINGS - +****************************************/ + + + + + @media only screen and (min-width: 0px) and (max-width: 479px) { + .responsive .tp-bullets { display:none} + .responsive .tparrows { display:none} + } + + + + + +/********************************************* + + - BASIC SETTINGS FOR THE BANNER - + +***********************************************/ + + .tp-simpleresponsive img { + -moz-user-select: none; + -khtml-user-select: none; + -webkit-user-select: none; + -o-user-select: none; +} + + + +.tp-simpleresponsive a{ text-decoration:none} + +.tp-simpleresponsive ul, +.tp-simpleresponsive ul li, +.tp-simpleresponsive ul li:before { + list-style:none; + padding:0 !important; + margin:0 !important; + list-style:none !important; + overflow-x: visible; + overflow-y: visible; + background-image:none +} + + +.tp-simpleresponsive >ul >li{ + list-style:none; + position:absolute; + visibility:hidden +} + +/* CAPTION SLIDELINK **/ +.caption.slidelink a div, +.tp-caption.slidelink a div { width:3000px; height:1500px; background:url(../assets/coloredbg.png) repeat} + +.tp-caption.slidelink a span { background:url(../assets/coloredbg.png) repeat} + + + +/***************************************** + - NAVIGATION FANCY EXAMPLES - +*****************************************/ + +.tparrows .tp-arr-imgholder { display: none} +.tparrows .tp-arr-titleholder { display: none} + + + +/***************************************** + - NAVIGATION FANCY EXAMPLES - +*****************************************/ + +/* NAVIGATION PREVIEW 1 */ +.tparrows.preview1 { width:100px;height:100px;-webkit-transform-style: preserve-3d; -webkit-perspective: 1000; -moz-perspective: 1000; -webkit-backface-visibility: hidden; -moz-backface-visibility: hidden;background: transparent} +.tparrows.preview1:after { position:absolute; left:0px;top:0px; font-family: "revicons"; color:#fff; font-size:30px; width:100px;height:100px;text-align: center; background:#fff;background:rgba(0,0,0,0.15);z-index:2;line-height:100px; -webkit-transition: background 0.3s, color 0.3s; -moz-transition: background 0.3s, color 0.3s; transition: background 0.3s, color 0.3s} +.tp-rightarrow.preview1:after { content: '\e825'; } +.tp-leftarrow.preview1:after { content: '\e824'; } + +.tparrows.preview1:hover:after { background:rgba(255,255,255,1); color:#aaa} + +.tparrows.preview1 .tp-arr-imgholder { background-size:cover; background-position:center center; display:block;width:100%;height:100%;position:absolute;top:0px; + -webkit-transition: -webkit-transform 0.3s; + transition: transform 0.3s; + -webkit-backface-visibility: hidden; + backface-visibility: hidden; + } +.tparrows.preview1 .tp-arr-iwrapper { -webkit-transition: all 0.3s;transition: all 0.3s; + -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";filter: alpha(opacity=0);-moz-opacity: 0.0;-khtml-opacity: 0.0;opacity: 0.0} +.tparrows.preview1:hover .tp-arr-iwrapper { -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";filter: alpha(opacity=100);-moz-opacity: 1;-khtml-opacity: 1;opacity: 1} + + +.tp-rightarrow.preview1 .tp-arr-imgholder { right:100%; + -webkit-transform: rotateY(-90deg); + transform: rotateY(-90deg); + -webkit-transform-origin: 100% 50%; + transform-origin: 100% 50%; + -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";filter: alpha(opacity=0);-moz-opacity: 0.0;-khtml-opacity: 0.0;opacity: 0.0; + + + + } +.tp-leftarrow.preview1 .tp-arr-imgholder { left:100%; + -webkit-transform: rotateY(90deg); + transform: rotateY(90deg); + -webkit-transform-origin: 0% 50%; + transform-origin: 0% 50%; + -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";filter: alpha(opacity=0);-moz-opacity: 0.0;-khtml-opacity: 0.0;opacity: 0.0; + + + + } + + +.tparrows.preview1:hover .tp-arr-imgholder { -webkit-transform: rotateY(0deg); + transform: rotateY(0deg); + -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";filter: alpha(opacity=100);-moz-opacity: 1;-khtml-opacity: 1;opacity: 1; + + } + + + @media only screen and (min-width: 768px) and (max-width: 979px) { + .tparrows.preview1, + .tparrows.preview1:after { width:80px; height:80px;line-height:80px; font-size:24px} + + } + + @media only screen and (min-width: 480px) and (max-width: 767px) { + .tparrows.preview1, + .tparrows.preview1:after { width:60px; height:60px;line-height:60px;font-size:20px} + + } + + + + @media only screen and (min-width: 0px) and (max-width: 479px) { + .tparrows.preview1, + .tparrows.preview1:after { width:40px; height:40px;line-height:40px; font-size:12px} + } + +/* PREVIEW 1 BULLETS */ + +.tp-bullets.preview1 { height: 21px} +.tp-bullets.preview1 .bullet { cursor: pointer; + position: relative !important; + background: rgba(0, 0, 0, 0.15) !important; + /*-webkit-border-radius: 10px; + border-radius: 10px;*/ + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + width: 5px !important; + height: 5px !important; + border: 8px solid rgba(0, 0, 0, 0) !important; + display: inline-block; + margin-right: 5px !important; + margin-bottom: 0px !important; + -webkit-transition: background-color 0.2s, border-color 0.2s; + -moz-transition: background-color 0.2s, border-color 0.2s; + -o-transition: background-color 0.2s, border-color 0.2s; + -ms-transition: background-color 0.2s, border-color 0.2s; + transition: background-color 0.2s, border-color 0.2s; + float:none !important; + box-sizing:content-box; + -moz-box-sizing:content-box; + -webkit-box-sizing:content-box; +} +.tp-bullets.preview1 .bullet.last { margin-right: 0px} +.tp-bullets.preview1 .bullet:hover, +.tp-bullets.preview1 .bullet.selected { -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + background: #aaa !important; + width: 5px !important; + height: 5px !important; + border: 8px solid rgba(255, 255, 255, 1) !important; +} + + + + +/* NAVIGATION PREVIEW 2 */ +.tparrows.preview2 { min-width:60px; min-height:60px; background:#fff; ; + + border-radius:30px;-moz-border-radius:30px;-webkit-border-radius:30px; + overflow:hidden; + -webkit-transition: -webkit-transform 1.3s; + -webkit-transition: width 0.3s, background-color 0.3s, opacity 0.3s; + transition: width 0.3s, background-color 0.3s, opacity 0.3s; + backface-visibility: hidden; +} +.tparrows.preview2:after { position:absolute; top:50%; font-family: "revicons"; color:#aaa; font-size:25px; margin-top: -12px; -webkit-transition: color 0.3s; -moz-transition: color 0.3s; transition: color 0.3s } +.tp-rightarrow.preview2:after { content: '\e81e'; right:18px} +.tp-leftarrow.preview2:after { content: '\e81f'; left:18px} + + +.tparrows.preview2 .tp-arr-titleholder { background-size:cover; background-position:center center; display:block; visibility:hidden;position:relative;top:0px; + -webkit-transition: -webkit-transform 0.3s; + transition: transform 0.3s; + -webkit-backface-visibility: hidden; + backface-visibility: hidden; + white-space: nowrap; + color: #000; + text-transform: uppercase; + font-weight: 400; + font-size: 14px; + line-height: 60px; + padding:0px 10px; + } + +.tp-rightarrow.preview2 .tp-arr-titleholder { right:50px; + -webkit-transform: translateX(-100%); + transform: translateX(-100%); + } +.tp-leftarrow.preview2 .tp-arr-titleholder { left:50px; + -webkit-transform: translateX(100%); + transform: translateX(100%); + } + +.tparrows.preview2.hovered { width:300px} +.tparrows.preview2:hover { background:#fff} +.tparrows.preview2:hover:after { color:#000} +.tparrows.preview2:hover .tp-arr-titleholder{ -webkit-transform: translateX(0px); + transform: translateX(0px); + visibility: visible; + position: absolute; + } + +/* PREVIEW 2 BULLETS */ + +.tp-bullets.preview2 { height: 17px} +.tp-bullets.preview2 .bullet { cursor: pointer; + position: relative !important; + background: rgba(0, 0, 0, 0.5) !important; + -webkit-border-radius: 10px; + border-radius: 10px; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + width: 6px !important; + height: 6px !important; + border: 5px solid rgba(0, 0, 0, 0) !important; + display: inline-block; + margin-right: 2px !important; + margin-bottom: 0px !important; + -webkit-transition: background-color 0.2s, border-color 0.2s; + -moz-transition: background-color 0.2s, border-color 0.2s; + -o-transition: background-color 0.2s, border-color 0.2s; + -ms-transition: background-color 0.2s, border-color 0.2s; + transition: background-color 0.2s, border-color 0.2s; + float:none !important; + box-sizing:content-box; + -moz-box-sizing:content-box; + -webkit-box-sizing:content-box; +} +.tp-bullets.preview2 .bullet.last { margin-right: 0px} +.tp-bullets.preview2 .bullet:hover, +.tp-bullets.preview2 .bullet.selected { -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + background: rgba(255, 255, 255, 1) !important; + width: 6px !important; + height: 6px !important; + border: 5px solid rgba(0, 0, 0, 1) !important; +} + +.tp-arr-titleholder.alwayshidden { display:none !important} + + + @media only screen and (min-width: 768px) and (max-width: 979px) { + .tparrows.preview2 { min-width:40px; min-height:40px; width:40px;height:40px; + border-radius:20px;-moz-border-radius:20px;-webkit-border-radius:20px; + } + .tparrows.preview2:after { position:absolute; top:50%; font-family: "revicons"; font-size:20px; margin-top: -12px} + .tp-rightarrow.preview2:after { content: '\e81e'; right:11px} + .tp-leftarrow.preview2:after { content: '\e81f'; left:11px} + .tparrows.preview2 .tp-arr-titleholder { font-size:12px; line-height:40px; letter-spacing: 0px} + .tp-rightarrow.preview2 .tp-arr-titleholder { right:35px} + .tp-leftarrow.preview2 .tp-arr-titleholder { left:35px} + + } + + @media only screen and (min-width: 480px) and (max-width: 767px) { + .tparrows.preview2 { min-width:30px; min-height:30px; width:30px;height:30px; + border-radius:15px;-moz-border-radius:15px;-webkit-border-radius:15px; + } + .tparrows.preview2:after { position:absolute; top:50%; font-family: "revicons"; font-size:14px; margin-top: -12px} + .tp-rightarrow.preview2:after { content: '\e81e'; right:8px} + .tp-leftarrow.preview2:after { content: '\e81f'; left:8px} + .tparrows.preview2 .tp-arr-titleholder { font-size:10px; line-height:30px; letter-spacing: 0px} + .tp-rightarrow.preview2 .tp-arr-titleholder { right:25px} + .tp-leftarrow.preview2 .tp-arr-titleholder { left:25px} + .tparrows.preview2 .tp-arr-titleholder { display:none;visibility:none} + + + } + + @media only screen and (min-width: 0px) and (max-width: 479px) { + .tparrows.preview2 { min-width:30px; min-height:30px; width:30px;height:30px; + border-radius:15px;-moz-border-radius:15px;-webkit-border-radius:15px; + } + .tparrows.preview2:after { position:absolute; top:50%; font-family: "revicons"; font-size:14px; margin-top: -12px} + .tp-rightarrow.preview2:after { content: '\e81e'; right:8px} + .tp-leftarrow.preview2:after { content: '\e81f'; left:8px} + .tparrows.preview2 .tp-arr-titleholder { display:none;visibility:none} + .tparrows.preview2:hover { width:30px !important; height:30px !important} + } + + + +/* NAVIGATION PREVIEW 3 */ +.tparrows.preview3 { width:70px; height:70px; background:#fff; background:rgba(255,255,255,1); -webkit-transform-style: flat} +.tparrows.preview3:after { position:absolute; line-height: 70px;text-align: center; font-family: "revicons"; color:#aaa; font-size:30px; top:0px;left:0px;;background:#fff; z-index:100; width:70px;height:70px; -webkit-transition: color 0.3s; -moz-transition: color 0.3s; transition: color 0.3s} +.tparrows.preview3:hover:after { color:#000} +.tp-rightarrow.preview3:after { content: '\e825'; } +.tp-leftarrow.preview3:after { content: '\e824'; } + + +.tparrows.preview3 .tp-arr-iwrapper { + -webkit-transform: scale(0,1); + transform: scale(0,1); + -webkit-transform-origin: 100% 50%; + transform-origin: 100% 50%; + -webkit-transition: -webkit-transform 0.2s; + transition: transform 0.2s; + z-index:0;position: absolute; background: #000; background: rgba(0,0,0,0.75); + display: table;min-height:90px;top:-10px} + +.tp-leftarrow.preview3 .tp-arr-iwrapper { -webkit-transform: scale(0,1); + transform: scale(0,1); + -webkit-transform-origin: 0% 50%; + transform-origin: 0% 50%; + } + +.tparrows.preview3 .tp-arr-imgholder { display:block;background-size:cover; background-position:center center; display:table-cell;min-width:90px;height:90px; + position:relative;top:0px} + +.tp-rightarrow.preview3 .tp-arr-iwrapper { right:0px;padding-right:70px} +.tp-leftarrow.preview3 .tp-arr-iwrapper { left:0px; direction: rtl;padding-left:70px} +.tparrows.preview3 .tp-arr-titleholder { display:table-cell; padding:30px;font-size:16px; color:#fff;white-space: nowrap; position: relative; clear:right;vertical-align: middle} + +.tparrows.preview3:hover .tp-arr-iwrapper { + -webkit-transform: scale(1,1); + transform: scale(1,1); + + } + +/* PREVIEW 3 BULLETS */ +.tp-bullets.preview3 { height: 17px} +.tp-bullets.preview3 .bullet { cursor: pointer; + position: relative !important; + background: rgba(0, 0, 0, 0.5) !important; + -webkit-border-radius: 10px; + border-radius: 10px; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + width: 6px !important; + height: 6px !important; + border: 5px solid rgba(0, 0, 0, 0) !important; + display: inline-block; + margin-right: 2px !important; + margin-bottom: 0px !important; + -webkit-transition: background-color 0.2s, border-color 0.2s; + -moz-transition: background-color 0.2s, border-color 0.2s; + -o-transition: background-color 0.2s, border-color 0.2s; + -ms-transition: background-color 0.2s, border-color 0.2s; + transition: background-color 0.2s, border-color 0.2s; + float:none !important; + box-sizing:content-box; + -moz-box-sizing:content-box; + -webkit-box-sizing:content-box; +} +.tp-bullets.preview3 .bullet.last { margin-right: 0px} +.tp-bullets.preview3 .bullet:hover, +.tp-bullets.preview3 .bullet.selected { -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + background: rgba(255, 255, 255, 1) !important; + width: 6px !important; + height: 6px !important; + border: 5px solid rgba(0, 0, 0, 1) !important; +} + + + @media only screen and (min-width: 768px) and (max-width: 979px) { + .tparrows.preview3:after, + .tparrows.preview3 { width:50px; height:50px; line-height:50px;font-size:20px} + .tparrows.preview3 .tp-arr-iwrapper { min-height:70px} + .tparrows.preview3 .tp-arr-imgholder { min-width:70px;height:70px} + .tp-rightarrow.preview3 .tp-arr-iwrapper { padding-right:50px} + .tp-leftarrow.preview3 .tp-arr-iwrapper { padding-left:50px} + .tparrows.preview3 .tp-arr-titleholder { padding:10px;font-size:16px} + + + + } + + @media only screen and (max-width: 767px) { + + .tparrows.preview3:after, + .tparrows.preview3 { width:50px; height:50px; line-height:50px;font-size:20px} + .tparrows.preview3 .tp-arr-iwrapper { min-height:70px} + } + + + + + +/* NAVIGATION PREVIEW 4 */ +.tparrows.preview4 { width:30px; height:110px; background:transparent;-webkit-transform-style: preserve-3d; -webkit-perspective: 1000; -moz-perspective: 1000} +.tparrows.preview4:after { position:absolute; line-height: 110px;text-align: center; font-family: "revicons"; color:#fff; font-size:20px; top:0px;left:0px;z-index:0; width:30px;height:110px; background: #000; background: rgba(0,0,0,0.25); + -webkit-transition: all 0.2s ease-in-out; + -moz-transition: all 0.2s ease-in-out; + -o-transition: all 0.2s ease-in-out; + transition: all 0.2s ease-in-out; + -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";filter: alpha(opacity=100);-moz-opacity: 1;-khtml-opacity: 1;opacity: 1; + + } + +.tp-rightarrow.preview4:after { content: '\e825'; } +.tp-leftarrow.preview4:after { content: '\e824'; } + + +.tparrows.preview4 .tp-arr-allwrapper { visibility:hidden;width:180px;position: absolute;z-index: 1;min-height:120px;top:0px;left:-150px; overflow: hidden;-webkit-perspective: 1000px;-webkit-transform-style: flat} + +.tp-leftarrow.preview4 .tp-arr-allwrapper { left:0px} +.tparrows.preview4 .tp-arr-iwrapper { position: relative} + +.tparrows.preview4 .tp-arr-imgholder { display:block;background-size:cover; background-position:center center;width:180px;height:110px; + position:relative;top:0px; + + -webkit-backface-visibility: hidden; + backface-visibility: hidden; + + + + } + + +.tparrows.preview4 .tp-arr-imgholder2 { display:block;background-size:cover; background-position:center center; width:180px;height:110px; + position:absolute;top:0px; left:180px; + -webkit-backface-visibility: hidden; + backface-visibility: hidden; + + } + +.tp-leftarrow.preview4 .tp-arr-imgholder2 { left:-180px} + + + + +.tparrows.preview4 .tp-arr-titleholder { display:block; font-size:12px; line-height:25px; padding:0px 10px;text-align:left;color:#fff; position: relative; + background: #000; + color: #FFF; + text-transform: uppercase; + white-space: nowrap; + letter-spacing: 1px; + font-weight: 700; + font-size: 11px; + line-height: 2.75; + -webkit-transition: all 0.3s; + transition: all 0.3s; + -webkit-transform: rotateX(-90deg); + transform: rotateX(-90deg); + -webkit-transform-origin: 50% 0; + transform-origin: 50% 0; + -webkit-backface-visibility: hidden; + backface-visibility: hidden; + -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";filter: alpha(opacity=0);-moz-opacity: 0.0;-khtml-opacity: 0.0;opacity: 0.0; + + +} + + + +.tparrows.preview4:after { transform-origin: 100% 100%; -webkit-transform-origin: 100% 100%} +.tp-leftarrow.preview4:after { transform-origin: 0% 0%; -webkit-transform-origin: 0% 0%} + + + + +@media only screen and (min-width: 768px) { + .tparrows.preview4:hover:after { -webkit-transform: rotateY(-90deg); transform:rotateY(-90deg)} + .tp-leftarrow.preview4:hover:after { -webkit-transform: rotateY(90deg); transform:rotateY(90deg)} + + + .tparrows.preview4:hover .tp-arr-titleholder { -webkit-transition-delay: 0.4s; + transition-delay: 0.4s; + -webkit-transform: rotateX(0deg); + transform: rotateX(0deg); + -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";filter: alpha(opacity=100);-moz-opacity: 1;-khtml-opacity: 1;opacity: 1; + + } +} + +/* PREVIEW 4 BULLETS */ + +.tp-bullets.preview4 { height: 17px} +.tp-bullets.preview4 .bullet { cursor: pointer; + position: relative !important; + background: rgba(0, 0, 0, 0.5) !important; + -webkit-border-radius: 10px; + border-radius: 10px; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + width: 6px !important; + height: 6px !important; + border: 5px solid rgba(0, 0, 0, 0) !important; + display: inline-block; + margin-right: 2px !important; + margin-bottom: 0px !important; + -webkit-transition: background-color 0.2s, border-color 0.2s; + -moz-transition: background-color 0.2s, border-color 0.2s; + -o-transition: background-color 0.2s, border-color 0.2s; + -ms-transition: background-color 0.2s, border-color 0.2s; + transition: background-color 0.2s, border-color 0.2s; + float:none !important; + box-sizing:content-box; + -moz-box-sizing:content-box; + -webkit-box-sizing:content-box; +} +.tp-bullets.preview4 .bullet.last { margin-right: 0px} +.tp-bullets.preview4 .bullet:hover, +.tp-bullets.preview4 .bullet.selected { -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + background: rgba(255, 255, 255, 1) !important; + width: 6px !important; + height: 6px !important; + border: 5px solid rgba(0, 0, 0, 1) !important; +} + + + @media only screen and (max-width: 767px) { + .tparrows.preview4 { width:20px; height:80px} + .tparrows.preview4:after { width:20px; height:80px; line-height:80px; font-size:14px} + + .tparrows.preview1 .tp-arr-allwrapper, + .tparrows.preview2 .tp-arr-allwrapper, + .tparrows.preview3 .tp-arr-allwrapper, + .tparrows.preview4 .tp-arr-allwrapper { display: none !important} + } + + + +/****************************** + - LOADER FORMS - +********************************/ + +.tp-loader { + top:50%; left:50%; + z-index:10000; + position:absolute; + + + } + +.tp-loader.spinner0 { + width: 40px; + height: 40px; + background:url(../assets/loader.gif) no-repeat center center; + background-color: #fff; + box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); + -webkit-box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); + margin-top:-20px; + margin-left:-20px; + -webkit-animation: tp-rotateplane 1.2s infinite ease-in-out; + animation: tp-rotateplane 1.2s infinite ease-in-out; + border-radius: 3px; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; +} + + +.tp-loader.spinner1 { + width: 40px; + height: 40px; + background-color: #fff; + box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); + -webkit-box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); + margin-top:-20px; + margin-left:-20px; + -webkit-animation: tp-rotateplane 1.2s infinite ease-in-out; + animation: tp-rotateplane 1.2s infinite ease-in-out; + border-radius: 3px; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; +} + + + +.tp-loader.spinner5 { background:url(../assets/loader.gif) no-repeat 10px 10px; + background-color:#fff; + margin:-22px -22px; + width:44px;height:44px; + border-radius: 3px; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + } + + +@-webkit-keyframes tp-rotateplane { + 0% { -webkit-transform: perspective(120px) } + 50% { -webkit-transform: perspective(120px) rotateY(180deg) } + 100% { -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg) } +} + +@keyframes tp-rotateplane { + 0% { + transform: perspective(120px) rotateX(0deg) rotateY(0deg); + -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg) + } 50% { + transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg); + -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg) + } 100% { + transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg); + -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg); + } +} + + +.tp-loader.spinner2 { + width: 40px; + height: 40px; + margin-top:-20px;margin-left:-20px; + background-color: #ff0000; + box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); + -webkit-box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); + border-radius: 100%; + -webkit-animation: tp-scaleout 1.0s infinite ease-in-out; + animation: tp-scaleout 1.0s infinite ease-in-out; +} + +@-webkit-keyframes tp-scaleout { + 0% { -webkit-transform: scale(0.0) } + 100% { + -webkit-transform: scale(1.0); + opacity: 0; + } +} + +@keyframes tp-scaleout { + 0% { + transform: scale(0.0); + -webkit-transform: scale(0.0); + } 100% { + transform: scale(1.0); + -webkit-transform: scale(1.0); + opacity: 0; + } +} + + + + +.tp-loader.spinner3 { + margin: -9px 0px 0px -35px; + width: 70px; + text-align: center; + +} + +.tp-loader.spinner3 .bounce1, +.tp-loader.spinner3 .bounce2, +.tp-loader.spinner3 .bounce3 { + width: 18px; + height: 18px; + background-color: #fff; + box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); + -webkit-box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); + border-radius: 100%; + display: inline-block; + -webkit-animation: tp-bouncedelay 1.4s infinite ease-in-out; + animation: tp-bouncedelay 1.4s infinite ease-in-out; + /* Prevent first frame from flickering when animation starts */ + -webkit-animation-fill-mode: both; + animation-fill-mode: both; +} + +.tp-loader.spinner3 .bounce1 { + -webkit-animation-delay: -0.32s; + animation-delay: -0.32s; +} + +.tp-loader.spinner3 .bounce2 { + -webkit-animation-delay: -0.16s; + animation-delay: -0.16s; +} + +@-webkit-keyframes tp-bouncedelay { + 0%, 80%, 100% { -webkit-transform: scale(0.0) } + 40% { -webkit-transform: scale(1.0) } +} + +@keyframes tp-bouncedelay { + 0%, 80%, 100% { + transform: scale(0.0); + -webkit-transform: scale(0.0); + } 40% { + transform: scale(1.0); + -webkit-transform: scale(1.0); + } +} + + + + +.tp-loader.spinner4 { + margin: -20px 0px 0px -20px; + width: 40px; + height: 40px; + text-align: center; + -webkit-animation: tp-rotate 2.0s infinite linear; + animation: tp-rotate 2.0s infinite linear; +} + +.tp-loader.spinner4 .dot1, +.tp-loader.spinner4 .dot2 { + width: 60%; + height: 60%; + display: inline-block; + position: absolute; + top: 0; + background-color: #fff; + border-radius: 100%; + -webkit-animation: tp-bounce 2.0s infinite ease-in-out; + animation: tp-bounce 2.0s infinite ease-in-out; + box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); + -webkit-box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.15); +} + +.tp-loader.spinner4 .dot2 { + top: auto; + bottom: 0px; + -webkit-animation-delay: -1.0s; + animation-delay: -1.0s; +} + +@-webkit-keyframes tp-rotate { 100% { -webkit-transform: rotate(360deg) }} +@keyframes tp-rotate { 100% { transform: rotate(360deg); -webkit-transform: rotate(360deg) }} + +@-webkit-keyframes tp-bounce { + 0%, 100% { -webkit-transform: scale(0.0) } + 50% { -webkit-transform: scale(1.0) } +} + +@keyframes tp-bounce { + 0%, 100% { + transform: scale(0.0); + -webkit-transform: scale(0.0); + } 50% { + transform: scale(1.0); + -webkit-transform: scale(1.0); + } +} + + + +.tp-transparentimg { content:"url(../assets/transparent.jpg)"} +.tp-3d { -webkit-transform-style: preserve-3d; + -webkit-transform-origin: 50% 50%; + } + + + +.tp-caption img { +background: transparent; +-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF)"; +filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF); +zoom: 1; +} + + +@font-face { + font-family: 'revicons'; + src: url('../font/revicons.eot?5510888'); + src: url('../font/revicons.eot?5510888#iefix') format('embedded-opentype'), + url('../font/revicons.woff?5510888') format('woff'), + url('../font/revicons.ttf?5510888') format('truetype'), + url('../font/revicons.svg?5510888#revicons') format('svg'); + font-weight: normal; + font-style: normal; +} +/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */ +/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */ +/* +@media screen and (-webkit-min-device-pixel-ratio:0) { + @font-face { + font-family: 'revicons'; + src: url('../font/revicons.svg?5510888#revicons') format('svg'); + } +} +*/ + + [class^="revicon-"]:before, [class*=" revicon-"]:before { + font-family: "revicons"; + font-style: normal; + font-weight: normal; + speak: none; + + display: inline-block; + text-decoration: inherit; + width: 1em; + margin-right: .2em; + text-align: center; + /* opacity: .8; */ + + /* For safety - reset parent styles, that can break glyph codes*/ + font-variant: normal; + text-transform: none; + + /* fix buttons height, for twitter bootstrap */ + line-height: 1em; + + /* Animation center compensation - margins should be symmetric */ + /* remove if not needed */ + margin-left: .2em; + + /* you can be more comfortable with increased icons size */ + /* font-size: 120%; */ + + /* Uncomment for 3D effect */ + /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */ +} + +.revicon-search-1:before { content: '\e802'} /* '' */ +.revicon-pencil-1:before { content: '\e831'} /* '' */ +.revicon-picture-1:before { content: '\e803'} /* '' */ +.revicon-cancel:before { content: '\e80a'} /* '' */ +.revicon-info-circled:before { content: '\e80f'} /* '' */ +.revicon-trash:before { content: '\e801'} /* '' */ +.revicon-left-dir:before { content: '\e817'} /* '' */ +.revicon-right-dir:before { content: '\e818'} /* '' */ +.revicon-down-open:before { content: '\e83b'} /* '' */ +.revicon-left-open:before { content: '\e819'} /* '' */ +.revicon-right-open:before { content: '\e81a'} /* '' */ +.revicon-angle-left:before { content: '\e820'} /* '' */ +.revicon-angle-right:before { content: '\e81d'} /* '' */ +.revicon-left-big:before { content: '\e81f'} /* '' */ +.revicon-right-big:before { content: '\e81e'} /* '' */ +.revicon-magic:before { content: '\e807'} /* '' */ +.revicon-picture:before { content: '\e800'} /* '' */ +.revicon-export:before { content: '\e80b'} /* '' */ +.revicon-cog:before { content: '\e832'} /* '' */ +.revicon-login:before { content: '\e833'} /* '' */ +.revicon-logout:before { content: '\e834'} /* '' */ +.revicon-video:before { content: '\e805'} /* '' */ +.revicon-arrow-combo:before { content: '\e827'} /* '' */ +.revicon-left-open-1:before { content: '\e82a'} /* '' */ +.revicon-right-open-1:before { content: '\e82b'} /* '' */ +.revicon-left-open-mini:before { content: '\e822'} /* '' */ +.revicon-right-open-mini:before { content: '\e823'} /* '' */ +.revicon-left-open-big:before { content: '\e824'} /* '' */ +.revicon-right-open-big:before { content: '\e825'} /* '' */ +.revicon-left:before { content: '\e836'} /* '' */ +.revicon-right:before { content: '\e826'} /* '' */ +.revicon-ccw:before { content: '\e808'} /* '' */ +.revicon-arrows-ccw:before { content: '\e806'} /* '' */ +.revicon-palette:before { content: '\e829'} /* '' */ +.revicon-list-add:before { content: '\e80c'} /* '' */ +.revicon-doc:before { content: '\e809'} /* '' */ +.revicon-left-open-outline:before { content: '\e82e'} /* '' */ +.revicon-left-open-2:before { content: '\e82c'} /* '' */ +.revicon-right-open-outline:before { content: '\e82f'} /* '' */ +.revicon-right-open-2:before { content: '\e82d'} /* '' */ +.revicon-equalizer:before { content: '\e83a'} /* '' */ +.revicon-layers-alt:before { content: '\e804'} /* '' */ .revicon-popup:before { content: '\e828'} /* '' */ \ No newline at end of file diff --git a/arches/app/media/plugins/revolution-slider/rs-plugin/font/revicons.svg b/arches/app/media/plugins/revolution-slider/rs-plugin/font/revicons.svg index 85c7704d125..2ec696b5df3 100644 --- a/arches/app/media/plugins/revolution-slider/rs-plugin/font/revicons.svg +++ b/arches/app/media/plugins/revolution-slider/rs-plugin/font/revicons.svg @@ -1,54 +1,54 @@ - - - -Copyright (C) 2013 by original authors @ fontello.com - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + +Copyright (C) 2013 by original authors @ fontello.com + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/arches/app/media/plugins/revolution-slider/rs-plugin/js/jquery.themepunch.revolution.js b/arches/app/media/plugins/revolution-slider/rs-plugin/js/jquery.themepunch.revolution.js index 355ebae9d06..f5ace7114e0 100644 --- a/arches/app/media/plugins/revolution-slider/rs-plugin/js/jquery.themepunch.revolution.js +++ b/arches/app/media/plugins/revolution-slider/rs-plugin/js/jquery.themepunch.revolution.js @@ -1,6267 +1,6267 @@ -/************************************************************************** - * jquery.themepunch.revolution.js - jQuery Plugin for Revolution Slider - * @version: 4.6.4 (26.11.2014) - * @requires jQuery v1.7 or later (tested on 1.9) - * @author ThemePunch -**************************************************************************/ - - -(function(jQuery,undefined){ - - - - - //////////////////////////////////////// - // THE REVOLUTION PLUGIN STARTS HERE // - /////////////////////////////////////// - - jQuery.fn.extend({ - - // OUR PLUGIN HERE :) - revolution: function(options) { - - - - //////////////////////////////// - // SET DEFAULT VALUES OF ITEM // - //////////////////////////////// - var defaults = { - delay:9000, - startheight:500, - startwidth:960, - fullScreenAlignForce:"off", - autoHeight:"off", - hideTimerBar:"off", - hideThumbs:200, - hideNavDelayOnMobile:1500, - - thumbWidth:100, // Thumb With and Height and Amount (only if navigation Tyope set to thumb !) - thumbHeight:50, - thumbAmount:3, - - navigationType:"bullet", // bullet, thumb, none - navigationArrows:"solo", // nextto, solo, none - navigationInGrid:"off", // on/off - - hideThumbsOnMobile:"off", - hideBulletsOnMobile:"off", - hideArrowsOnMobile:"off", - hideThumbsUnderResoluition:0, - - navigationStyle:"round", // round,square,navbar,round-old,square-old,navbar-old, or any from the list in the docu (choose between 50+ different item), - - navigationHAlign:"center", // Vertical Align top,center,bottom - navigationVAlign:"bottom", // Horizontal Align left,center,right - navigationHOffset:0, - navigationVOffset:20, - - soloArrowLeftHalign:"left", - soloArrowLeftValign:"center", - soloArrowLeftHOffset:20, - soloArrowLeftVOffset:0, - - soloArrowRightHalign:"right", - soloArrowRightValign:"center", - soloArrowRightHOffset:20, - soloArrowRightVOffset:0, - - keyboardNavigation:"on", - - touchenabled:"on", // Enable Swipe Function : on/off - onHoverStop:"on", // Stop Banner Timet at Hover on Slide on/off - - - stopAtSlide:-1, // Stop Timer if Slide "x" has been Reached. If stopAfterLoops set to 0, then it stops already in the first Loop at slide X which defined. -1 means do not stop at any slide. stopAfterLoops has no sinn in this case. - stopAfterLoops:-1, // Stop Timer if All slides has been played "x" times. IT will stop at THe slide which is defined via stopAtSlide:x, if set to -1 slide never stop automatic - - hideCaptionAtLimit:0, // It Defines if a caption should be shown under a Screen Resolution ( Basod on The Width of Browser) - hideAllCaptionAtLimit:0, // Hide all The Captions if Width of Browser is less then this value - hideSliderAtLimit:0, // Hide the whole slider, and stop also functions if Width of Browser is less than this value - - shadow:0, //0 = no Shadow, 1,2,3 = 3 Different Art of Shadows (No Shadow in Fullwidth Version !) - fullWidth:"off", // Turns On or Off the Fullwidth Image Centering in FullWidth Modus - fullScreen:"off", - minFullScreenHeight:0, // The Minimum FullScreen Height - fullScreenOffsetContainer:"", // Size for FullScreen Slider minimising Calculated on the Container sizes - fullScreenOffset:"0", // Size for FullScreen Slider minimising - dottedOverlay:"none", //twoxtwo, threexthree, twoxtwowhite, threexthreewhite - - forceFullWidth:"off", // Force The FullWidth - - spinner:"spinner0", - - swipe_treshold : 75, // The number of pixels that the user must move their finger by before it is considered a swipe. - swipe_min_touches : 1, // Min Finger (touch) used for swipe - drag_block_vertical:false, // Prevent Vertical Scroll during Swipe - isJoomla:false, - parallax:"off", - parallaxLevels: [10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85], - parallaxBgFreeze: "off", - parallaxOpacity:"on", - parallaxDisableOnMobile:"off", - panZoomDisableOnMobile:"off", - simplifyAll:"on", - minHeight:0, - nextSlideOnWindowFocus:"off", - - startDelay:0 // Delay before the first Animation starts. - - - }; - - options = jQuery.extend({}, defaults, options); - - return this.each(function() { - - - // REPORT SOME IMPORTAN INFORMATION ABOUT THE SLIDER - if (window.tplogs==true) - try{ - console.groupCollapsed("Slider Revolution 4.6.3 Initialisation on "+jQuery(this).attr('id')); - console.groupCollapsed("Used Options:"); - console.info(options); - console.groupEnd(); - console.groupCollapsed("Tween Engine:") - } catch(e) {} - - // CHECK IF TweenLite IS LOADED AT ALL - if (punchgs.TweenLite==undefined) { - if (window.tplogs==true) - try{ console.error("GreenSock Engine Does not Exist!"); - } catch(e) {} - return false; - } - - punchgs.force3D = true; - - if (window.tplogs==true) - try{ console.info("GreenSock Engine Version in Slider Revolution:"+punchgs.TweenLite.version); - } catch(e) { - - } - - if (options.simplifyAll=="on") { - - } else { - punchgs.TweenLite.lagSmoothing(1000,16); - punchgs.force3D = "true"; - } - - if (window.tplogs==true) - try{ - console.groupEnd(); - console.groupEnd(); - } catch(e) {} - - - initSlider(jQuery(this),options) - - - }) - }, - - - // METHODE PAUSE - revscroll: function(oy) { - return this.each(function() { - var container=jQuery(this); - if (container!=undefined && container.length>0 && jQuery('body').find('#'+container.attr('id')).length>0) - jQuery('body,html').animate({scrollTop:(container.offset().top+(container.find('>ul >li').height())-oy)+"px"},{duration:400}); - }) - }, - - // METHODE PAUSE - revredraw: function(oy) { - return this.each(function() { - var container=jQuery(this); - if (container!=undefined && container.length>0 && jQuery('body').find('#'+container.attr('id')).length>0) { - var bt = container.parent().find('.tp-bannertimer'); - var opt = bt.data('opt'); - containerResized(container,opt); - } - }) - }, - // METHODE PAUSE - revkill: function(oy) { - - var self = this, - container=jQuery(this); - - if (container!=undefined && container.length>0 && jQuery('body').find('#'+container.attr('id')).length>0) { - - container.data('conthover',1); - container.data('conthover-changed',1); - container.trigger('revolution.slide.onpause'); - var bt = container.parent().find('.tp-bannertimer'); - var opt = bt.data('opt'); - opt.bannertimeronpause = true; - container.trigger('stoptimer'); - - punchgs.TweenLite.killTweensOf(container.find('*'),false); - punchgs.TweenLite.killTweensOf(container,false); - container.unbind('hover, mouseover, mouseenter,mouseleave, resize'); - var resizid = "resize.revslider-"+container.attr('id'); - jQuery(window).off(resizid); - container.find('*').each(function() { - var el = jQuery(this); - - el.unbind('on, hover, mouseenter,mouseleave,mouseover, resize,restarttimer, stoptimer'); - el.off('on, hover, mouseenter,mouseleave,mouseover, resize'); - el.data('mySplitText',null); - el.data('ctl',null); - if (el.data('tween')!=undefined) - el.data('tween').kill(); - if (el.data('kenburn')!=undefined) - el.data('kenburn').kill(); - el.remove(); - el.empty(); - el=null; - }) - - - punchgs.TweenLite.killTweensOf(container.find('*'),false); - punchgs.TweenLite.killTweensOf(container,false); - bt.remove(); - try{container.closest('.forcefullwidth_wrapper_tp_banner').remove();} catch(e) {} - try{container.closest('.rev_slider_wrapper').remove()} catch(e) {} - try{container.remove();} catch(e) {} - container.empty(); - container.html(); - container = null; - - opt = null; - delete(self.container); - delete(self.opt); - - return true; - } else { - return false; - } - - - }, - - // METHODE PAUSE - revpause: function(options) { - - return this.each(function() { - var container=jQuery(this); - if (container!=undefined && container.length>0 && jQuery('body').find('#'+container.attr('id')).length>0) { - container.data('conthover',1); - container.data('conthover-changed',1); - container.trigger('revolution.slide.onpause'); - var bt = container.parent().find('.tp-bannertimer'); - var opt = bt.data('opt'); - opt.bannertimeronpause = true; - container.trigger('stoptimer'); - } - }) - - - }, - - // METHODE RESUME - revresume: function(options) { - return this.each(function() { - var container=jQuery(this); - if (container!=undefined && container.length>0 && jQuery('body').find('#'+container.attr('id')).length>0) { - container.data('conthover',0); - container.data('conthover-changed',1); - container.trigger('revolution.slide.onresume'); - var bt = container.parent().find('.tp-bannertimer'); - var opt = bt.data('opt'); - opt.bannertimeronpause = false; - container.trigger('starttimer'); - } - }) - - }, - - // METHODE NEXT - revnext: function(options) { - return this.each(function() { - - // CATCH THE CONTAINER - var container=jQuery(this); - if (container!=undefined && container.length>0 && jQuery('body').find('#'+container.attr('id')).length>0) - container.parent().find('.tp-rightarrow').click(); - - - }) - - }, - - // METHODE RESUME - revprev: function(options) { - return this.each(function() { - // CATCH THE CONTAINER - var container=jQuery(this); - if (container!=undefined && container.length>0 && jQuery('body').find('#'+container.attr('id')).length>0) - container.parent().find('.tp-leftarrow').click(); - }) - - }, - - // METHODE LENGTH - revmaxslide: function(options) { - // CATCH THE CONTAINER - return jQuery(this).find('>ul:first-child >li').length; - }, - - - // METHODE CURRENT - revcurrentslide: function(options) { - // CATCH THE CONTAINER - var container=jQuery(this); - if (container!=undefined && container.length>0 && jQuery('body').find('#'+container.attr('id')).length>0) { - var bt = container.parent().find('.tp-bannertimer'); - var opt = bt.data('opt'); - return opt.act; - } - }, - - // METHODE CURRENT - revlastslide: function(options) { - // CATCH THE CONTAINER - var container=jQuery(this); - if (container!=undefined && container.length>0 && jQuery('body').find('#'+container.attr('id')).length>0) { - var bt = container.parent().find('.tp-bannertimer'); - var opt = bt.data('opt'); - return opt.lastslide; - } - }, - - - // METHODE JUMP TO SLIDE - revshowslide: function(slide) { - return this.each(function() { - // CATCH THE CONTAINER - var container=jQuery(this); - if (container!=undefined && container.length>0 && jQuery('body').find('#'+container.attr('id')).length>0) { - container.data('showus',slide); - container.parent().find('.tp-rightarrow').click(); - } - }) - - } - - -}) - /******************************************* - - IS IOS VERSION OLDER THAN 5 ?? - - *******************************************/ - - function iOSVersion() { - var oldios = false; - if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) { - if (navigator.userAgent.match(/OS 4_\d like Mac OS X/i)) { - oldios = true; - } - } else { - oldios = false; - } - return oldios; - } - - function initSlider(container,opt) { - if (container==undefined) return false; - - if (container.data('aimg')!=undefined) { - if ((container.data('aie8')=="enabled" && isIE(8)) || (container.data('amobile')=="enabled" && is_mobile())) - container.html(''); - } - // PREPARE FALL BACK SETTINGS - if (opt.navigationStyle=="preview1" || opt.navigationStyle=="preview3" || opt.navigationStyle=="preview4") { - opt.soloArrowLeftHalign="left"; - opt.soloArrowLeftValign="center"; - opt.soloArrowLeftHOffset=0; - opt.soloArrowLeftVOffset=0; - opt.soloArrowRightHalign="right"; - opt.soloArrowRightValign="center"; - opt.soloArrowRightHOffset=0; - opt.soloArrowRightVOffset=0; - opt.navigationArrows="solo"; - } - - - // SIMPLIFY ANIMATIONS ON OLD IOS AND IE8 IF NEEDED - if (opt.simplifyAll=="on" && (isIE(8) || iOSVersion())) { - container.find('.tp-caption').each(function() { - var tc = jQuery(this); - tc.removeClass("customin").removeClass("customout").addClass("fadein").addClass("fadeout"); - tc.data('splitin',""); - tc.data('speed',400); - }) - container.find('>ul>li').each(function() { - var li= jQuery(this); - li.data('transition',"fade"); - li.data('masterspeed',500); - li.data('slotamount',1); - var img = li.find('>img').first(); - img.data('kenburns',"off"); - }); - } - - - - - - opt.desktop = !navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i); - - if (opt.fullWidth!="on" && opt.fullScreen!="on") opt.autoHeight = "off"; - if (opt.fullScreen=="on") opt.autoHeight = "on"; - if (opt.fullWidth!="on" && opt.fullScreen!="on") forceFulWidth="off"; - - if (opt.fullWidth=="on" && opt.autoHeight=="off") - container.css({maxHeight:opt.startheight+"px"}); - - if (is_mobile() && opt.hideThumbsOnMobile=="on" && opt.navigationType=="thumb") - opt.navigationType = "none" - - if (is_mobile() && opt.hideBulletsOnMobile=="on" && opt.navigationType=="bullet") - opt.navigationType = "none" - - if (is_mobile() && opt.hideBulletsOnMobile=="on" && opt.navigationType=="both") - opt.navigationType = "none" - - if (is_mobile() && opt.hideArrowsOnMobile=="on") - opt.navigationArrows = "none" - - if (opt.forceFullWidth=="on" && container.closest('.forcefullwidth_wrapper_tp_banner').length==0) { - - var loff = container.parent().offset().left; - var mb = container.parent().css('marginBottom'); - var mt = container.parent().css('marginTop'); - if (mb==undefined) mb=0; - if (mt==undefined) mt=0; - - container.parent().wrap('
'); - container.closest('.forcefullwidth_wrapper_tp_banner').append('
'); - container.css({'backgroundColor':container.parent().css('backgroundColor'),'backgroundImage':container.parent().css('backgroundImage')}); - //container.parent().css({'position':'absolute','width':jQuery(window).width()}); - container.parent().css({'left':(0-loff)+"px",position:'absolute','width':jQuery(window).width()}); - opt.width=jQuery(window).width(); - } - - // HIDE THUMBS UNDER RESOLUTION - try{ - if (opt.hideThumbsUnderResolution>jQuery(window).width() && opt.hideThumbsUnderResolution!=0) { - container.parent().find('.tp-bullets.tp-thumbs').css({display:"none"}); - } else { - container.parent().find('.tp-bullets.tp-thumbs').css({display:"block"}); - } - } catch(e) {} - - if (!container.hasClass("revslider-initialised")) { - - container.addClass("revslider-initialised"); - if (container.attr('id')==undefined) container.attr('id',"revslider-"+Math.round(Math.random()*1000+5)); - - // CHECK IF FIREFOX 13 IS ON WAY.. IT HAS A STRANGE BUG, CSS ANIMATE SHOULD NOT BE USED - - - - opt.firefox13 = false; - opt.ie = !jQuery.support.opacity; - opt.ie9 = (document.documentMode == 9); - - opt.origcd=opt.delay; - - // CHECK THE jQUERY VERSION - var version = jQuery.fn.jquery.split('.'), - versionTop = parseFloat(version[0]), - versionMinor = parseFloat(version[1]), - versionIncrement = parseFloat(version[2] || '0'); - - if (versionTop==1 && versionMinor < 7) { - container.html('
The Current Version of jQuery:'+version+'
Please update your jQuery Version to min. 1.7 in Case you wish to use the Revolution Slider Plugin
'); - } - - if (versionTop>1) opt.ie=false; - - - // Delegate .transition() calls to .animate() - // if the browser can't do CSS transitions. - if (!jQuery.support.transition) - jQuery.fn.transition = jQuery.fn.animate; - - // CATCH THE CONTAINER - - - // LOAD THE YOUTUBE API IF NECESSARY - - container.find('.caption').each(function() { jQuery(this).addClass('tp-caption')}); - - if (is_mobile()) { - container.find('.tp-caption').each(function() { - var nextcaption = jQuery(this); - if (nextcaption.data('autoplayonlyfirsttime') == true || nextcaption.data('autoplayonlyfirsttime')=="true") - nextcaption.data('autoplayonlyfirsttime',"false"); - if (nextcaption.data('autoplay')==true || nextcaption.data('autoplay')=="true") - nextcaption.data('autoplay',false); - - }) - } - - - var addedyt=0; - var addedvim=0; - var addedvid=0; - var httpprefix = "http"; - - if (location.protocol === 'https:') { - httpprefix = "https"; - } - container.find('.tp-caption').each(function(i) { - // IF SRC EXIST, RESET SRC'S since WE DONT NEED THEM !! - - try { - - if ((jQuery(this).data('ytid')!=undefined || jQuery(this).find('iframe').attr('src').toLowerCase().indexOf('youtube')>0) && addedyt==0) { - addedyt=1; - var s = document.createElement("script"); - var httpprefix2 = "https"; - s.src = httpprefix2+"://www.youtube.com/iframe_api"; /* Load Player API*/ - - var before = document.getElementsByTagName("script")[0]; - var loadit = true; - jQuery('head').find('*').each(function(){ - if (jQuery(this).attr('src') == httpprefix2+"://www.youtube.com/iframe_api") - loadit = false; - }); - if (loadit) { - before.parentNode.insertBefore(s, before); - - - } - } - } catch(e) {} - - try{ - if ((jQuery(this).data('vimeoid')!=undefined || jQuery(this).find('iframe').attr('src').toLowerCase().indexOf('vimeo')>0) && addedvim==0) { - addedvim=1; - var f = document.createElement("script"); - f.src = httpprefix+"://a.vimeocdn.com/js/froogaloop2.min.js"; /* Load Player API*/ - var before = document.getElementsByTagName("script")[0]; - - var loadit = true; - jQuery('head').find('*').each(function(){ - if (jQuery(this).attr('src') == httpprefix+"://a.vimeocdn.com/js/froogaloop2.min.js") - loadit = false; - }); - if (loadit) - before.parentNode.insertBefore(f, before); - } - } catch(e) {} - - try{ - if ((jQuery(this).data('videomp4')!=undefined || jQuery(this).data('videowebm')!=undefined)) { - - } - } catch(e) {} - }); - - - - - // REMOVE ANY VIDEO JS SETTINGS OF THE VIDEO IF NEEDED - container.find('.tp-caption video').each(function(i) { - jQuery(this).removeClass("video-js").removeClass("vjs-default-skin"); - jQuery(this).attr("preload",""); - jQuery(this).css({display:"none"}); - }); - - container.find('>ul:first-child >li').each(function() { - var t = jQuery(this); - t.data('origindex',t.index()); - }) - - // SHUFFLE MODE - if (opt.shuffle=="on") { - var fsa = new Object, - fli = container.find('>ul:first-child >li:first-child') - - fsa.fstransition = fli.data('fstransition'); - fsa.fsmasterspeed = fli.data('fsmasterspeed'); - fsa.fsslotamount = fli.data('fsslotamount'); - - - - for (var u=0;uul:first-child >li').length;u++) { - var it = Math.round(Math.random()*container.find('>ul:first-child >li').length); - container.find('>ul:first-child >li:eq('+it+')').prependTo(container.find('>ul:first-child')); - } - - var newfli = container.find('>ul:first-child >li:first-child'); - newfli.data('fstransition',fsa.fstransition); - newfli.data('fsmasterspeed',fsa.fsmasterspeed); - newfli.data('fsslotamount',fsa.fsslotamount); - } - - - // CREATE SOME DEFAULT OPTIONS FOR LATER - opt.slots=4; - opt.act=-1; - opt.next=0; - - // IF START SLIDE IS SET - if (opt.startWithSlide !=undefined) opt.next=opt.startWithSlide; - - // IF DEEPLINK HAS BEEN SET - var deeplink = getUrlVars("#")[0]; - if (deeplink.length<9) { - if (deeplink.split('slide').length>1) { - var dslide=parseInt(deeplink.split('slide')[1],0); - if (dslide<1) dslide=1; - if (dslide>container.find('>ul:first >li').length) dslide=container.find('>ul:first >li').length; - opt.next=dslide-1; - } - } - - - opt.firststart=1; - - // BASIC OFFSET POSITIONS OF THE BULLETS - if (opt.navigationHOffset==undefined) opt.navOffsetHorizontal=0; - if (opt.navigationVOffset==undefined) opt.navOffsetVertical=0; - - - - container.append('
'+ - '
'+ - '
'+ - '
'+ - '
'+ - '
'+ - '
'); - - // RESET THE TIMER - if (container.find('.tp-bannertimer').length==0) container.append(''); - var bt=container.find('.tp-bannertimer'); - if (bt.length>0) { - bt.css({'width':'0%'}); - }; - - - // WE NEED TO ADD A BASIC CLASS FOR SETTINGS.CSS - container.addClass("tp-simpleresponsive"); - opt.container=container; - - //if (container.height()==0) container.height(opt.startheight); - - // AMOUNT OF THE SLIDES - opt.slideamount = container.find('>ul:first >li').length; - - - // A BASIC GRID MUST BE DEFINED. IF NO DEFAULT GRID EXIST THAN WE NEED A DEFAULT VALUE, ACTUAL SIZE OF CONAINER - if (container.height()==0) container.height(opt.startheight); - if (opt.startwidth==undefined || opt.startwidth==0) opt.startwidth=container.width(); - if (opt.startheight==undefined || opt.startheight==0) opt.startheight=container.height(); - - // OPT WIDTH && HEIGHT SHOULD BE SET - opt.width=container.width(); - opt.height=container.height(); - - - // DEFAULT DEPENDECIES - opt.bw= opt.startwidth / container.width(); - opt.bh = opt.startheight / container.height(); - - // IF THE ITEM ALREADY IN A RESIZED FORM - if (opt.width!=opt.startwidth) { - - opt.height = Math.round(opt.startheight * (opt.width/opt.startwidth)); - - container.height(opt.height); - - } - - // LETS SEE IF THERE IS ANY SHADOW - if (opt.shadow!=0) { - container.parent().append('
'); - var loff=0; - if (opt.forceFullWidth=="on") - loff = 0-opt.container.parent().offset().left; - container.parent().find('.tp-bannershadow').css({'width':opt.width,'left':loff}); - } - - - container.find('ul').css({'display':'none'}); - - var fliparent = container; - - - // PREPARE THE SLIDES - container.find('ul').css({'display':'block'}); - prepareSlides(container,opt); - if (opt.parallax!="off") checkForParallax(container,opt); - - // CREATE BULLETS - if (opt.slideamount >1) createBullets(container,opt); - - if (opt.slideamount >1 && opt.navigationType=="thumb") createThumbs(container,opt); - if (opt.slideamount >1) createArrows(container,opt); - if (opt.keyboardNavigation=="on") createKeyboard(container,opt); - - - swipeAction(container,opt); - - - if (opt.hideThumbs>0) hideThumbs(container,opt); - setTimeout(function() { - swapSlide(container,opt); - },opt.startDelay); - opt.startDelay=0; - // START COUNTDOWN - if (opt.slideamount >1) countDown(container,opt); - setTimeout(function() { - container.trigger('revolution.slide.onloaded'); - },500); - - - - /****************************** - - FULLSCREEN CHANGE - - ********************************/ - // FULLSCREEN MODE TESTING - jQuery("body").data('rs-fullScreenMode',false); - jQuery(window).on ('mozfullscreenchange webkitfullscreenchange fullscreenchange',function(){ - jQuery("body").data('rs-fullScreenMode',!jQuery("body").data('rs-fullScreenMode')); - if (jQuery("body").data('rs-fullScreenMode')) { - setTimeout(function() { - jQuery(window).trigger("resize"); - - },200); - } - }) - - - var resizid = "resize.revslider-"+container.attr('id'); - - // IF RESIZED, NEED TO STOP ACTUAL TRANSITION AND RESIZE ACTUAL IMAGES - jQuery(window).on(resizid,function() { - if (container==undefined) return false; - if (jQuery('body').find(container)!=0) - if (opt.forceFullWidth=="on" ) { - - var loff = opt.container.closest('.forcefullwidth_wrapper_tp_banner').offset().left; - //opt.container.parent().css({'width':jQuery(window).width()}); - opt.container.parent().css({'left':(0-loff)+"px",'width':jQuery(window).width()}); - } - - if (container.outerWidth(true)!=opt.width || container.is(":hidden")) { - containerResized(container,opt); - } - - - - - }); - - // HIDE THUMBS UNDER SIZE... - try{ - if (opt.hideThumbsUnderResoluition!=0 && opt.navigationType=="thumb") { - if (opt.hideThumbsUnderResoluition>jQuery(window).width()) - jQuery('.tp-bullets').css({display:"none"}); - else - jQuery('.tp-bullets').css({display:"block"}); - } - } catch(e) {} - - - - // CHECK IF THE CAPTION IS A "SCROLL ME TO POSITION" CAPTION IS - //if (opt.fullScreen=="on") { - container.find('.tp-scrollbelowslider').on('click',function() { - var off=0; - try{ - off = jQuery('body').find(opt.fullScreenOffsetContainer).height(); - } catch(e) {} - try{ - off = off - parseInt(jQuery(this).data('scrolloffset'),0); - } catch(e) {} - - - jQuery('body,html').animate( - {scrollTop:(container.offset().top+(container.find('>ul >li').height())-off)+"px"},{duration:400}); - }); - //} - - - // FIRST TIME STOP/START HIDE / SHOW SLIDER - //REMOVE AND SHOW SLIDER ON DEMAND - var contpar= container.parent(); - if (jQuery(window).width()jQuery(window).width()) - jQuery('.tp-bullets').css({display:"none"}); - else - jQuery('.tp-bullets').css({display:"block"}); - } - } catch(e) {} - - - - container.find('.defaultimg').each(function(i) { - setSize(jQuery(this),opt); - }); - - - //REMOVE AND SHOW SLIDER ON DEMAND - var contpar= container.parent(); - if (jQuery(window).width()ul >li:eq('+opt.act+') .slotholder'); - var nextsh = container.find('>ul >li:eq('+opt.next+') .slotholder'); - removeSlots(container,opt,container); - punchgs.TweenLite.set(nextsh.find('.defaultimg'),{opacity:0}); - actsh.find('.defaultimg').css({'opacity':1}); - - nextsh.find('.defaultimg').each(function() { - var dimg = jQuery(this); - - if (opt.panZoomDisableOnMobile == "on") { - // NO KEN BURNS ON MOBILE DEVICES - - } else { - if (dimg.data('kenburn')!=undefined) { - dimg.data('kenburn').restart(); - startKenBurn(container,opt,true) - } - } - }); - - var nextli = container.find('>ul >li:eq('+opt.next+')'); - - - - var arr = container.parent().find('.tparrows'); - if (arr.hasClass("preview2")) - arr.css({width:(parseInt(arr.css('minWidth'),0))}); - - - animateTheCaptions(nextli, opt,true); - //restartBannerTimer(opt,container); - setBulPos(container,opt); - - } - - - - - /********************************* - - CHECK IF BROWSER IS IE - - ********************************/ - var isIE = function( version, comparison ){ - var $div = jQuery('
').appendTo(jQuery('body')); - $div.html(''); - var ieTest = $div.find('a').length; - $div.remove(); - return ieTest; - } - - - - var callingNewSlide = function(opt,container) { - // CHECK THE LOOPS !! - if (opt.next==container.find('>ul >li').length-1) { - opt.looptogo=opt.looptogo-1; - if (opt.looptogo<=0) - opt.stopLoop="on"; - } - swapSlide(container,opt); - - } - - - - - - - //////////////////////////////// - // - CREATE THE BULLETS - // - //////////////////////////////// - var createBullets = function(container,opt) { - var starthidebullets = "hidebullets"; - if (opt.hideThumbs==0) starthidebullets = ""; - - if (opt.navigationType=="bullet" || opt.navigationType=="both") { - container.parent().append('
'); - } - - var bullets = container.parent().find('.tp-bullets'); - container.find('>ul:first >li').each(function(i) { - var src=container.find(">ul:first >li:eq("+i+") img:first").attr('src'); - bullets.append('
'); - var bullet= bullets.find('.bullet:first'); - }); - // ADD THE BULLET CLICK FUNCTION HERE - bullets.find('.bullet').each(function(i) { - var bul = jQuery(this); - if (i==opt.slideamount-1) bul.addClass('last'); - if (i==0) bul.addClass('first'); - - bul.click(function() { - var sameslide = false, - buli = bul.index(); - - if (opt.navigationArrows=="withbullet" || opt.navigationArrows=="nexttobullets") - buli = bul.index()-1; - - if (buli == opt.act) sameslide=true; - - if (opt.transition==0 && !sameslide) { - opt.next = buli; - callingNewSlide(opt,container); - } - }); - - }); - bullets.append('
'); - setBulPos(container,opt); - } - - ////////////////////// - // CREATE ARROWS // - ///////////////////// - var createArrows = function(container,opt) { - var bullets = container.find('.tp-bullets'), - hidden="", - starthidearrows = "hidearrows", - arst= opt.navigationStyle; - - if (opt.hideThumbs==0) starthidearrows = ""; - - - if (opt.navigationArrows=="none") hidden="visibility:hidden;display:none"; - opt.soloArrowStyle = "default"+" "+opt.navigationStyle; - - if (opt.navigationArrows!="none" && opt.navigationArrows!="nexttobullets") arst = opt.soloArrowStyle; - - function aArrow(dir) { - container.parent().append('
'); - } - aArrow("left"); - aArrow("right"); - - // THE LEFT / RIGHT BUTTON CLICK ! // - container.parent().find('.tp-rightarrow').click(function() { - if (opt.transition==0) { - if (container.data('showus') !=undefined && container.data('showus') != -1) - opt.next = container.data('showus')-1; - else - opt.next = opt.next+1; - container.data('showus',-1); - if (opt.next >= opt.slideamount) opt.next=0; - if (opt.next<0) opt.next=0; - - if (opt.act !=opt.next) - callingNewSlide(opt,container); - } - }); - - container.parent().find('.tp-leftarrow').click(function() { - if (opt.transition==0) { - opt.next = opt.next-1; - opt.leftarrowpressed=1; - if (opt.next < 0) opt.next=opt.slideamount-1; - callingNewSlide(opt,container); - } - }); - - setBulPos(container,opt); - - } - - ////////////////////////////////// - // ENABLE KEYBOARD INTERACTION // - ////////////////////////////////// - var createKeyboard = function(container,opt) { - // THE LEFT / RIGHT BUTTON CLICK ! // - jQuery(document).keydown(function(e){ - if (opt.transition==0 && e.keyCode == 39) { - if (container.data('showus') !=undefined && container.data('showus') != -1) - opt.next = container.data('showus')-1; - else - opt.next = opt.next+1; - container.data('showus',-1); - if (opt.next >= opt.slideamount) opt.next=0; - if (opt.next<0) opt.next=0; - if (opt.act !=opt.next) - callingNewSlide(opt,container); - } - - if (opt.transition==0 && e.keyCode == 37) { - opt.next = opt.next-1; - opt.leftarrowpressed=1; - if (opt.next < 0) opt.next=opt.slideamount-1; - callingNewSlide(opt,container); - } - }); - - setBulPos(container,opt); - - } - - //////////////////////////// - // SET THE SWIPE FUNCTION // - //////////////////////////// - var swipeAction = function(container,opt) { - // TOUCH ENABLED SCROLL - var aps = "vertical"; - - if (opt.touchenabled=="on") { - if (opt.drag_block_vertical == true) - aps = "none"; - - container.swipe({ - allowPageScroll:aps, - fingers:opt.swipe_min_touches, - treshold:opt.swipe_treshold, - swipe:function(event,direction,distance,duration,fingerCount,fingerData) { - switch (direction) { - case "left": - if (opt.transition==0) { - opt.next = opt.next+1; - if (opt.next == opt.slideamount) opt.next=0; - callingNewSlide(opt,container); - } - break; - case "right": - if (opt.transition==0) { - opt.next = opt.next-1; - opt.leftarrowpressed=1; - if (opt.next < 0) opt.next=opt.slideamount-1; - callingNewSlide(opt,container); - } - break; - case "up": - if (aps=="none") - jQuery("html, body").animate({scrollTop:(container.offset().top + container.height())+"px"}); - break; - case "down": - if (aps=="none") - jQuery("html, body").animate({scrollTop:(container.offset().top - jQuery(window).height())+"px"}); - break; - } - } - }) - - } - - } - - - - - //////////////////////////////////////////////////////////////// - // SHOW AND HIDE THE THUMBS IF MOUE GOES OUT OF THE BANNER /// - ////////////////////////////////////////////////////////////// - var hideThumbs = function(container,opt) { - - var bullets = container.parent().find('.tp-bullets'), - ca = container.parent().find('.tparrows'); - - if (bullets==null) { - container.append('
'); - var bullets = container.parent().find('.tp-bullets'); - } - - if (ca==null) { - container.append('
'); - var ca = container.parent().find('.tparrows'); - } - - - //var bp = (thumbs.parent().outerHeight(true) - opt.height)/2; - - // ADD THUMBNAIL IMAGES FOR THE BULLETS // - container.data('hideThumbs',opt.hideThumbs); - - bullets.addClass("hidebullets"); - ca.addClass("hidearrows"); - - if (is_mobile()) { - try{ - container.hammer().on('touch', function() { - container.addClass("hovered"); - if (opt.onHoverStop=="on") - container.trigger('stoptimer'); - clearTimeout(container.data('hideThumbs')); - bullets.removeClass("hidebullets"); - ca.removeClass("hidearrows"); - - - }); - - container.hammer().on('release', function() { - container.removeClass("hovered"); - container.trigger('starttimer'); - if (!container.hasClass("hovered") && !bullets.hasClass("hovered")) - container.data('hideThumbs', setTimeout(function() { - bullets.addClass("hidebullets"); - ca.addClass("hidearrows"); - container.trigger('starttimer'); - },opt.hideNavDelayOnMobile)); - }); - } catch(e) {} - - } else { - bullets.hover(function() { - opt.overnav = true; - if (opt.onHoverStop=="on") - container.trigger('stoptimer'); - bullets.addClass("hovered"); - clearTimeout(container.data('hideThumbs')); - bullets.removeClass("hidebullets"); - ca.removeClass("hidearrows"); - }, - function() { - opt.overnav = false; - container.trigger('starttimer'); - bullets.removeClass("hovered"); - if (!container.hasClass("hovered") && !bullets.hasClass("hovered")) - container.data('hideThumbs', setTimeout(function() { - bullets.addClass("hidebullets"); - ca.addClass("hidearrows"); - },opt.hideThumbs)); - }); - - - ca.hover(function() { - opt.overnav = true; - if (opt.onHoverStop=="on") - container.trigger('stoptimer'); - bullets.addClass("hovered"); - clearTimeout(container.data('hideThumbs')); - bullets.removeClass("hidebullets"); - ca.removeClass("hidearrows"); - - }, - function() { - opt.overnav = false; - container.trigger('starttimer'); - bullets.removeClass("hovered"); - }); - - - - container.on('mouseenter', function() { - container.addClass("hovered"); - if (opt.onHoverStop=="on") - container.trigger('stoptimer'); - clearTimeout(container.data('hideThumbs')); - bullets.removeClass("hidebullets"); - ca.removeClass("hidearrows"); - - - }); - - container.on('mouseleave', function() { - container.removeClass("hovered"); - container.trigger('starttimer'); - if (!container.hasClass("hovered") && !bullets.hasClass("hovered")) - container.data('hideThumbs', setTimeout(function() { - bullets.addClass("hidebullets"); - ca.addClass("hidearrows"); - },opt.hideThumbs)); - }); - } - - - } - - - ////////////////////////////// - // SET POSITION OF BULLETS // - ////////////////////////////// - var setBulPos = function(container,opt) { - var topcont=container.parent(); - var bullets=topcont.find('.tp-bullets'); - - if (opt.navigationType=="thumb") { - bullets.find('.thumb').each(function(i) { - var thumb = jQuery(this); - - thumb.css({'width':opt.thumbWidth * opt.bw+"px", 'height':opt.thumbHeight*opt.bh+"px"}); - - }) - var bup = bullets.find('.tp-mask'); - - bup.width(opt.thumbWidth*opt.thumbAmount * opt.bw); - bup.height(opt.thumbHeight * opt.bh); - bup.parent().width(opt.thumbWidth*opt.thumbAmount * opt.bw); - bup.parent().height(opt.thumbHeight * opt.bh); - } - - - var tl = topcont.find('.tp-leftarrow'); - var tr = topcont.find('.tp-rightarrow'); - - if (opt.navigationType=="thumb" && opt.navigationArrows=="nexttobullets") opt.navigationArrows="solo"; - // IM CASE WE HAVE NAVIGATION BULLETS TOGETHER WITH ARROWS - if (opt.navigationArrows=="nexttobullets") { - tl.prependTo(bullets).css({'float':'left'}); - tr.insertBefore(bullets.find('.tpclear')).css({'float':'left'}); - } - var loff=0; - if (opt.forceFullWidth=="on") - loff = 0-opt.container.parent().offset().left; - - var gridposX = 0, - gridposY = 0; - - if (opt.navigationInGrid=="on") { - gridposX = container.width()>opt.startwidth ? (container.width() - opt.startwidth)/2 : 0, - gridposY = container.height()>opt.startheight ? (container.height() - opt.startheight)/2 : 0; - } - - - - if (opt.navigationArrows!="none" && opt.navigationArrows!="nexttobullets") { - var lv = opt.soloArrowLeftValign, - lh = opt.soloArrowLeftHalign, - rv = opt.soloArrowRightValign, - rh = opt.soloArrowRightHalign, - lvo = opt.soloArrowLeftVOffset, - lho = opt.soloArrowLeftHOffset, - rvo = opt.soloArrowRightVOffset, - rho = opt.soloArrowRightHOffset; - - tl.css({'position':'absolute'}); - tr.css({'position':'absolute'}); - - if (lv=="center") tl.css({'top':'50%','marginTop':(lvo-Math.round(tl.innerHeight()/2))+"px"}) - else - if (lv=="bottom") tl.css({'top':'auto','bottom':(0+lvo)+"px"}) - else - if (lv=="top") tl.css({'bottom':'auto','top':(0+lvo)+"px"}); - - if (lh=="center") tl.css({'left':'50%','marginLeft':(loff+lho-Math.round(tl.innerWidth()/2))+"px"}) - else - if (lh=="left") tl.css({'left':(gridposX+lho+loff)+"px"}) - else - if (lh=="right") tl.css({'right':(gridposX+lho-loff)+"px"}); - - if (rv=="center") tr.css({'top':'50%','marginTop':(rvo-Math.round(tr.innerHeight()/2))+"px"}) - else - if (rv=="bottom") tr.css({'top':'auto','bottom':(0+rvo)+"px"}) - else - if (rv=="top") tr.css({'bottom':'auto','top':(0+rvo)+"px"}) - - if (rh=="center") tr.css({'left':'50%','marginLeft':(loff+rho-Math.round(tr.innerWidth()/2))+"px"}) - else - if (rh=="left") tr.css({'left':(gridposX+rho+loff)+"px"}) - else - if (rh=="right") tr.css({'right':(gridposX+rho-loff)+"px"}) - - - if (tl.position()!=null) - tl.css({'top':Math.round(parseInt(tl.position().top,0))+"px"}); - - if (tr.position()!=null) - tr.css({'top':Math.round(parseInt(tr.position().top,0))+"px"}); - } - - if (opt.navigationArrows=="none") { - tl.css({'visibility':'hidden'}); - tr.css({'visibility':'hidden'}); - } - - // SET THE POSITIONS OF THE BULLETS // THUMBNAILS - var nv = opt.navigationVAlign, - nh = opt.navigationHAlign, - nvo = opt.navigationVOffset * opt.bh, - nho = opt.navigationHOffset * opt.bw; - - if (nv=="center") bullets.css({'top':'50%','marginTop':(nvo-Math.round(bullets.innerHeight()/2))+"px"}); - if (nv=="bottom") bullets.css({'bottom':(0+nvo)+"px"}); - if (nv=="top") bullets.css({'top':(0+nvo)+"px"}); - - if (nh=="center") bullets.css({'left':'50%','marginLeft':(loff+nho-Math.round(bullets.innerWidth()/2))+"px"}); - if (nh=="left") bullets.css({'left':(0+nho+loff)+"px"}); - if (nh=="right") bullets.css({'right':(0+nho-loff)+"px"}); - } - - - /******************************************************* - - HANDLING OF PREVIEWS AND CUSTOM PREVIEWS - - *******************************************************/ - - var handleSpecialPreviews = function(opt) { - - var container= opt.container; - // FILL WITH INFOS THE NAVIGATION ARROWS - opt.beforli = opt.next-1; - opt.comingli = opt.next+1; - - if (opt.beforli<0) opt.beforli = opt.slideamount-1; - if (opt.comingli>=opt.slideamount) opt.comingli = 0; - - var comingli = container.find('>ul:first-child >li:eq('+opt.comingli+')'), - beforli = container.find('>ul:first-child >li:eq('+opt.beforli+')'), - previmgsrc = beforli.find('.defaultimg').attr('src'), - nextimgsrc = comingli.find('.defaultimg').attr('src'); - - // SAVE REFERENCES - if (opt.arr == undefined) { - opt.arr = container.parent().find('.tparrows'), - opt.rar = container.parent().find('.tp-rightarrow'), - opt.lar = container.parent().find('.tp-leftarrow'), - opt.raimg = opt.rar.find('.tp-arr-imgholder'), - opt.laimg = opt.lar.find('.tp-arr-imgholder'), - opt.raimg_b = opt.rar.find('.tp-arr-imgholder2'), - opt.laimg_b = opt.lar.find('.tp-arr-imgholder2'), - opt.ratit = opt.rar.find('.tp-arr-titleholder'), - opt.latit = opt.lar.find('.tp-arr-titleholder'); - } - - // READ REFERENCES - var arr = opt.arr, - rar = opt.rar, - lar = opt.lar, - raimg = opt.raimg, - laimg = opt.laimg, - raimg_b = opt.raimg_b, - laimg_b = opt.laimg_b, - ratit = opt.ratit, - latit = opt.latit; - - - if (comingli.data('title') != undefined) ratit.html(comingli.data('title')); - if (beforli.data('title') != undefined) latit.html(beforli.data('title')); - - - if (rar.hasClass("itishovered")) { - rar.width(ratit.outerWidth(true)+parseInt(rar.css('minWidth'),0)); - } - - if (lar.hasClass("itishovered")) { - lar.width(latit.outerWidth(true)+parseInt(lar.css('minWidth'),0)); - } - - if (arr.hasClass("preview2") && !arr.hasClass("hashoveralready")) { - - arr.addClass("hashoveralready"); - - if (!is_mobile()) - arr.hover(function() { - - var arr = jQuery(this), - th = arr.find('.tp-arr-titleholder'); - if (jQuery(window).width()>767) - arr.width(th.outerWidth(true)+parseInt(arr.css('minWidth'),0)); - arr.addClass("itishovered"); - },function() { - var arr = jQuery(this), - th = arr.find('.tp-arr-titleholder'); - arr.css({width:parseInt(arr.css('minWidth'),0)}); - arr.removeClass("itishovered"); - }); - else { - var arr = jQuery(this), - th = arr.find('.tp-arr-titleholder'); - th.addClass("alwayshidden"); - punchgs.TweenLite.set(th,{autoAlpha:0}); - } - - } - - if (beforli.data('thumb')!=undefined) previmgsrc = beforli.data('thumb'); - if (comingli.data('thumb')!=undefined) nextimgsrc = comingli.data('thumb') - - - // CHANGE THE IMAGE SOURCE (AND ANIMATE IF PREVIEW4 MODE IS ON - if (!arr.hasClass("preview4")) { - - punchgs.TweenLite.to(raimg,0.5,{autoAlpha:0,onComplete:function() { - raimg.css({'backgroundImage':'url('+nextimgsrc+')'}); - laimg.css({'backgroundImage':'url('+previmgsrc+')'}); - }}); - punchgs.TweenLite.to(laimg,0.5,{autoAlpha:0,onComplete:function() { - punchgs.TweenLite.to(raimg,0.5,{autoAlpha:1,delay:0.2}); - punchgs.TweenLite.to(laimg,0.5,{autoAlpha:1,delay:0.2}); - }}); - } else { - - raimg_b.css({'backgroundImage':'url('+nextimgsrc+')'}); - laimg_b.css({'backgroundImage':'url('+previmgsrc+')'}); - - punchgs.TweenLite.fromTo(raimg_b,0.8,{force3D:punchgs.force3d,x:0},{x:-raimg.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function() { - raimg.css({'backgroundImage':'url('+nextimgsrc+')'}); - punchgs.TweenLite.set(raimg_b,{x:0}); - }}); - punchgs.TweenLite.fromTo(laimg_b,0.8,{force3D:punchgs.force3d,x:0},{x:raimg.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function() { - laimg.css({'backgroundImage':'url('+previmgsrc+')'}); - punchgs.TweenLite.set(laimg_b,{x:0}); - }}); - - - - punchgs.TweenLite.fromTo(raimg,0.8,{x:0},{force3D:punchgs.force3d,x:-raimg.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function() { - punchgs.TweenLite.set(raimg,{x:0}); - }}); - punchgs.TweenLite.fromTo(laimg,0.8,{x:0},{force3D:punchgs.force3d,x:raimg.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function() { - punchgs.TweenLite.set(laimg,{x:0}); - }}); - } - - // HOVER EFFECTS ARE SPECIAL ON PREVIEW4 - if (rar.hasClass("preview4") && !rar.hasClass("hashoveralready")) { - - rar.addClass("hashoveralready"); - rar.hover(function() { - var iw = jQuery(this).find('.tp-arr-iwrapper'); - var all = jQuery(this).find('.tp-arr-allwrapper'); - punchgs.TweenLite.fromTo(iw,0.4,{x:iw.width()},{x:0,delay:0.3,ease:punchgs.Power3.easeOut,overwrite:"all"}); - punchgs.TweenLite.to(all,0.2,{autoAlpha:1,overwrite:"all"}); - - },function() { - var iw = jQuery(this).find('.tp-arr-iwrapper'); - var all = jQuery(this).find('.tp-arr-allwrapper'); - punchgs.TweenLite.to(iw,0.4,{x:iw.width(),ease:punchgs.Power3.easeOut,delay:0.2,overwrite:"all"}); - punchgs.TweenLite.to(all,0.2,{delay:0.6,autoAlpha:0,overwrite:"all"}); - }); - - - lar.hover(function() { - var iw = jQuery(this).find('.tp-arr-iwrapper'); - var all = jQuery(this).find('.tp-arr-allwrapper'); - punchgs.TweenLite.fromTo(iw,0.4,{x:(0-iw.width())},{x:0,delay:0.3,ease:punchgs.Power3.easeOut,overwrite:"all"}); - punchgs.TweenLite.to(all,0.2,{autoAlpha:1,overwrite:"all"}); - - },function() { - var iw = jQuery(this).find('.tp-arr-iwrapper'); - var all = jQuery(this).find('.tp-arr-allwrapper'); - punchgs.TweenLite.to(iw,0.4,{x:(0-iw.width()),ease:punchgs.Power3.easeOut,delay:0.2,overwrite:"all"}); - punchgs.TweenLite.to(all,0.2,{delay:0.6,autoAlpha:0,overwrite:"all"}); - }); - - } - // END OF NAVIGATION ARROW CONTENT FILLING - - } - ////////////////////////////////////////////////////////// - // - SET THE IMAGE SIZE TO FIT INTO THE CONTIANER - // - //////////////////////////////////////////////////////// - var setSize = function(img,opt) { - - - opt.container.closest('.forcefullwidth_wrapper_tp_banner').find('.tp-fullwidth-forcer').css({'height':opt.container.height()}); - opt.container.closest('.rev_slider_wrapper').css({'height':opt.container.height()}); - - - opt.width=parseInt(opt.container.width(),0); - opt.height=parseInt(opt.container.height(),0); - - - - opt.bw= (opt.width / opt.startwidth); - opt.bh = (opt.height / opt.startheight); - - if (opt.bh>opt.bw) opt.bh=opt.bw; - if (opt.bh1) { opt.bw=1; opt.bh=1; } - if (opt.bw>1) {opt.bw=1; opt.bh=1; } - - - //opt.height= opt.startheight * opt.bh; - opt.height = Math.round(opt.startheight * (opt.width/opt.startwidth)); - - - if (opt.height>opt.startheight && opt.autoHeight!="on") opt.height=opt.startheight; - - - if (opt.fullScreen=="on") { - opt.height = opt.bw * opt.startheight; - var cow = opt.container.parent().width(); - var coh = jQuery(window).height(); - - if (opt.fullScreenOffsetContainer!=undefined) { - try{ - var offcontainers = opt.fullScreenOffsetContainer.split(","); - jQuery.each(offcontainers,function(index,searchedcont) { - coh = coh - jQuery(searchedcont).outerHeight(true); - if (coh1 && opt.fullScreenOffset!=undefined && opt.fullScreenOffset.length>0) { - - coh = coh - (jQuery(window).height()* parseInt(opt.fullScreenOffset,0)/100); - } else { - if (opt.fullScreenOffset!=undefined && opt.fullScreenOffset.length>0) - coh = coh - parseInt(opt.fullScreenOffset,0); - } - - - if (cohul:first').css({overflow:'hidden',width:'100%',height:'100%',padding:'0px',maxHeight:container.parent().css('maxHeight')}).addClass("tp-revslider-mainul"); - if (opt.autoHeight=="on") { - container.find('>ul:first').css({overflow:'hidden',width:'100%',height:'100%',maxHeight:"none"}); - container.css({'maxHeight':'none'}); - container.parent().css({'maxHeight':'none'}); - } - - container.find('>ul:first >li').each(function(j) { - var li=jQuery(this); - li.addClass("tp-revslider-slidesli"); - - // MAKE LI OVERFLOW HIDDEN FOR FURTHER ISSUES - li.css({'width':'100%','height':'100%','overflow':'hidden'}); - - // IF LINK ON SLIDE EXISTS, NEED TO CREATE A PROPER LAYER FOR IT. - if (li.data('link')!=undefined) { - var link = li.data('link'); - var target="_self"; - var zindex=60; - if (li.data('slideindex')=="back") zindex=0; - var linktoslide=checksl = li.data('linktoslide'); - if (linktoslide != undefined) { - if (linktoslide!="next" && linktoslide!="prev") - container.find('>ul:first-child >li').each(function() { - var t = jQuery(this); - if (t.data('origindex')+1==checksl) linktoslide = t.index()+1; - }); - } - if (li.data('target')!=undefined) target=li.data('target'); - if (link!="slide") linktoslide="no"; - var apptxt = ''; - - li.append(apptxt); - } - }); - - // RESOLVE OVERFLOW HIDDEN OF MAIN CONTAINER - container.parent().css({'overflow':'visible'}); - - - container.find('>ul:first >li >img').each(function(j) { - - var img=jQuery(this); - - img.addClass('defaultimg'); - if (img.data('lazyload')!=undefined && img.data('lazydone') != 1) { - - } else { - setSize(img,opt); - } - - if (isIE(8)) { - img.data('kenburns',"off"); - } - - // TURN OF KEN BURNS IF WE ARE ON MOBILE AND IT IS WISHED SO - if (opt.panZoomDisableOnMobile == "on" && is_mobile()) { - img.data('kenburns',"off"); - img.data('bgfit',"cover"); - } - - img.wrap('
'); - - if (opt.dottedOverlay!="none" && opt.dottedOverlay!=undefined) - img.closest('.slotholder').append('
'); - - var src=img.attr('src'), - ll = img.data('lazyload'), - bgfit = img.data('bgfit'), - bgrepeat = img.data('bgrepeat'), - bgposition = img.data('bgposition'); - - - if (bgfit==undefined) bgfit="cover"; - if (bgrepeat==undefined) bgrepeat="no-repeat"; - if (bgposition==undefined) bgposition="center center" - - - var pari = img.closest('.slotholder'); - img.replaceWith('
'); - - if (isIE(8)) { - pari.find('.tp-bgimg').css({backgroundImage:"none",'background-image':'none'}); - pari.find('.tp-bgimg').append(''); - } - - img.css({'opacity':0}); - img.data('li-id',j); - - }); - } - - - /////////////////////// - // PREPARE THE SLIDE // - ////////////////////// - var prepareOneSlide = function(slotholder,opt,visible,vorh) { - - var sh=slotholder, - img = sh.find('.defaultimg'), - scalestart = sh.data('zoomstart'), - rotatestart = sh.data('rotationstart'); - - if (img.data('currotate')!=undefined) - rotatestart = img.data('currotate'); - if (img.data('curscale')!=undefined && vorh=="box") - scalestart = img.data('curscale')*100; - else - if (img.data('curscale')!=undefined) - scalestart = img.data('curscale'); - - setSize(img,opt) - - var src = img.data('src'), - bgcolor=img.css('backgroundColor'), - w = opt.width, - h = opt.height, - fulloff = img.data("fxof"), - fullyoff=0; - - if (opt.autoHeight=="on") h = opt.container.height(); - if (fulloff==undefined) fulloff=0; - - - - var off=0, - bgfit = img.data('bgfit'), - bgrepeat = img.data('bgrepeat'), - bgposition = img.data('bgposition'); - - if (bgfit==undefined) bgfit="cover"; - if (bgrepeat==undefined) bgrepeat="no-repeat"; - if (bgposition==undefined) bgposition="center center"; - - if (isIE(8)) { - sh.data('kenburns',"off"); - var imgsrc=src; - src=""; - } - - switch (vorh) { - // BOX ANIMATION PREPARING - case "box": - // SET THE MINIMAL SIZE OF A BOX - var basicsize = 0, - x = 0, - y = 0; - - if (opt.sloth>opt.slotw) - basicsize=opt.sloth - else - basicsize=opt.slotw; - - if (!visible) { - var off=0-basicsize; - } - - opt.slotw = basicsize; - opt.sloth = basicsize; - var x=0; - var y=0; - - if (sh.data('kenburns')=="on") { - bgfit=scalestart; - if (bgfit.toString().length<4) - bgfit = calculateKenBurnScales(bgfit,sh,opt); - } - - for (var j=0;j'+ - - '
'+ - - '
'+ - '
'); - y=y+basicsize; - - if (isIE(8)) { - - sh.find('.slot ').last().find('.slotslide').append(''); - ieimgposition(sh,opt); - } - - if (scalestart!=undefined && rotatestart!=undefined) - punchgs.TweenLite.set(sh.find('.slot').last(),{rotationZ:rotatestart}); - } - x=x+basicsize; - } - break; - - // SLOT ANIMATION PREPARING - case "vertical": - case "horizontal": - if (sh.data('kenburns')=="on") { - bgfit=scalestart; - if (bgfit.toString().length<4) - bgfit = calculateKenBurnScales(bgfit,sh,opt); - } - if (vorh == "horizontal") { - if (!visible) var off=0-opt.slotw; - for (var i=0;i'+ - '
'+ - '
'+ - '
'); - if (scalestart!=undefined && rotatestart!=undefined) - punchgs.TweenLite.set(sh.find('.slot').last(),{rotationZ:rotatestart}); - if (isIE(8)) { - sh.find('.slot ').last().find('.slotslide').append(''); - ieimgposition(sh,opt); - } - } - } else { - if (!visible) var off=0-opt.sloth; - for (var i=0;i'+ - - '
'+ - '
'+ - - '
'); - if (scalestart!=undefined && rotatestart!=undefined) - punchgs.TweenLite.set(sh.find('.slot').last(),{rotationZ:rotatestart}); - if (isIE(8)) { - sh.find('.slot ').last().find('.slotslide').append(''); - ieimgposition(sh,opt); - } - } - } - break; - } - } - - /*********************************************** - - MOVE IE8 IMAGE IN RIGHT POSITION - - ***********************************************/ - - var ieimgposition = function(nextsh,opt) { - - if (isIE(8)) { - - var ie8img = nextsh.find('.ieeightfallbackimage'); - - var ie8w = ie8img.width(), - ie8h = ie8img.height(); - - - - if (opt.startwidth/opt.startheight 0) - loadAllPrepared(element,found); - else { - clearInterval(inter); - if (call!=undefined) - call(); - } - - },100) - } - - - ////////////////////////////// - // - SWAP THE SLIDES - // - //////////////////////////// - var swapSlide = function(container,opt) { - - try{ - var actli =container.find('>ul:first-child >li:eq('+opt.act+')'); - } catch(e) { - var actli=container.find('>ul:first-child >li:eq(1)'); - } - opt.lastslide=opt.act; - var nextli = container.find('>ul:first-child >li:eq('+opt.next+')'); - - var defimg= nextli.find('.defaultimg'); - - - opt.bannertimeronpause = true; - container.trigger('stoptimer'); - opt.cd=0; - - if (defimg.data('lazyload') !=undefined && defimg.data('lazyload') !="undefined" && defimg.data('lazydone') !=1 ) { - - if (!isIE(8)) - defimg.css({backgroundImage:'url("'+nextli.find('.defaultimg').data('lazyload')+'")'}); - else { - defimg.attr('src',nextli.find('.defaultimg').data('lazyload')); - } - - defimg.data('src',nextli.find('.defaultimg').data('lazyload')); - defimg.data('lazydone',1); - defimg.data('orgw',0); - nextli.data('loadeddone',1); - - container.find('.tp-loader').css({display:"block"}); - waitForLoads(container.find('.tp-static-layers'),function() { - waitForLoads(nextli,function() { - var nextsh = nextli.find('.slotholder'); - if (nextsh.data('kenburns')=="on") { - var waitfordimension = setInterval(function() { - var ow = nextsh.data('owidth'); - if (ow>=0) { - clearInterval(waitfordimension); - swapSlideCall(opt,defimg,container) - } - },10) - } else - swapSlideCall(opt,defimg,container) - },opt); - },opt); - - } else { - - if (nextli.data('loadeddone')===undefined) { - nextli.data('loadeddone',1); - waitForLoads(nextli,function() { - swapSlideCall(opt,defimg,container) - },opt); - } else - - swapSlideCall(opt,defimg,container) - } - - } - - var swapSlideCall = function(opt,defimg,container) { - opt.bannertimeronpause = false; - opt.cd=0; - container.trigger('nulltimer'); - container.find('.tp-loader').css({display:"none"}); - setSize(defimg,opt); - setBulPos(container,opt); - setSize(defimg,opt); - swapSlideProgress(container,opt); - - } - - /****************************** - - SWAP SLIDE PROGRESS - - ********************************/ - /*!SWAP SLIDE*/ - var swapSlideProgress = function(container,opt) { - - - container.trigger('revolution.slide.onbeforeswap'); - - opt.transition = 1; - opt.videoplaying = false; - //konsole.log("VideoPlay set to False due swapSlideProgress"); - - try{ - var actli = container.find('>ul:first-child >li:eq('+opt.act+')'); - } catch(e) { - var actli=container.find('>ul:first-child >li:eq(1)'); - } - - opt.lastslide=opt.act; - - var nextli = container.find('>ul:first-child >li:eq('+opt.next+')'); - - setTimeout(function() { - handleSpecialPreviews(opt); - },200); - - var actsh = actli.find('.slotholder'), - nextsh = nextli.find('.slotholder'); - - if (nextsh.data('kenburns')=="on" || actsh.data('kenburns')=="on") { - stopKenBurn(container,opt); - container.find('.kenburnimg').remove(); - } - - - // IF DELAY HAS BEEN SET VIA THE SLIDE, WE TAKE THE NEW VALUE, OTHER WAY THE OLD ONE... - if (nextli.data('delay')!=undefined) { - opt.cd=0; - opt.delay=nextli.data('delay'); - } else { - opt.delay=opt.origcd; - } - - - if (opt.firststart==1) - punchgs.TweenLite.set(actli,{autoAlpha:0}); - - punchgs.TweenLite.set(actli,{zIndex:18}); - punchgs.TweenLite.set(nextli,{autoAlpha:0,zIndex:20}); - - /////////////////////////// - // REMOVE THE CAPTIONS // - /////////////////////////// - var removetime = 0; - if (actli.index() != nextli.index() && opt.firststart!=1) { - removetime = removeTheCaptions(actli,opt); - - } - - if (actli.data('saveperformance')!="on") removetime = 0; - - setTimeout(function() { - //opt.cd=0; - //container.trigger('nulltimer'); - container.trigger('restarttimer'); - slideAnimation(container,opt,nextli,actli,actsh,nextsh); - },removetime) - - } - - - /****************************************** - - START THE LAYER ANIMATION - - *******************************************/ - - var slideAnimation = function(container,opt,nextli,actli,actsh,nextsh) { - - // IF THERE IS AN OTHER FIRST SLIDE START HAS BEED SELECTED - if (nextli.data('differentissplayed') =='prepared') { - nextli.data('differentissplayed','done'); - nextli.data('transition',nextli.data('savedtransition')); - nextli.data('slotamount',nextli.data('savedslotamount')); - nextli.data('masterspeed',nextli.data('savedmasterspeed')); - } - - - if (nextli.data('fstransition') != undefined && nextli.data('differentissplayed') !="done") { - nextli.data('savedtransition',nextli.data('transition')); - nextli.data('savedslotamount',nextli.data('slotamount')); - nextli.data('savedmasterspeed',nextli.data('masterspeed')); - - nextli.data('transition',nextli.data('fstransition')); - nextli.data('slotamount',nextli.data('fsslotamount')); - nextli.data('masterspeed',nextli.data('fsmasterspeed')); - - nextli.data('differentissplayed','prepared'); - } - - container.find('.active-revslide').removeClass('.active-revslide'); - nextli.addClass("active-revslide"); - - /////////////////////////////////////// - // TRANSITION CHOOSE - RANDOM EFFECTS// - /////////////////////////////////////// - - - if (nextli.data('transition')==undefined) nextli.data('transition',"random"); - - var nexttrans = 0, - transtext = nextli.data('transition').split(","), - curtransid = nextli.data('nexttransid') == undefined ? -1 : nextli.data('nexttransid'); - - if (nextli.data('randomtransition')=="on") - curtransid = Math.round(Math.random()*transtext.length); - else - curtransid=curtransid+1; - - if (curtransid==transtext.length) curtransid=0; - nextli.data('nexttransid',curtransid); - - - - var comingtransition = transtext[curtransid]; - - if (opt.ie) { - if (comingtransition=="boxfade") comingtransition = "boxslide"; - if (comingtransition=="slotfade-vertical") comingtransition = "slotzoom-vertical"; - if (comingtransition=="slotfade-horizontal") comingtransition = "slotzoom-horizontal"; - } - - if (isIE(8)) { - comingtransition = 11; - } - - - var specials = 0; - - if (opt.parallax=="scroll" && opt.parallaxFirstGo==undefined) { - opt.parallaxFirstGo = true; - scrollParallax(container,opt); - setTimeout(function() { - scrollParallax(container,opt); - },210); - setTimeout(function() { - scrollParallax(container,opt); - },420); - - } - - - - - /* if (opt.ffnn == undefined) opt.ffnn=0; - comingtransition=opt.ffnn; - - if ( direction==1) - opt.ffnn=opt.ffnn-1; - else - opt.ffnn=opt.ffnn+1; - - if (opt.ffnn>46) opt.ffnn=0; - if (opt.ffnn<0) opt.ffnn = 46; - - jQuery('.logo').html('Next Anim:'+comingtransition); - - - if (comingtransition=="boxslide" || comingtransition == "boxfade" || comingtransition == "papercut" || - comingtransition==0 || comingtransition == 1 || comingtransition == 16) - comingtransition = 9;*/ - - - /* Transition Name , - Transition Code, - Transition Sub Code, - Max Slots, - MasterSpeed Delays, - Preparing Slots (box,slideh, slidev), - Call on nextsh (null = no, true/false for visibility first preparing), - Call on actsh (null = no, true/false for visibility first preparing), - */ - - - - if (comingtransition=="slidehorizontal") { - comingtransition = "slideleft" - if (opt.leftarrowpressed==1) - comingtransition = "slideright" - } - - if (comingtransition=="slidevertical") { - comingtransition = "slideup" - if (opt.leftarrowpressed==1) - comingtransition = "slidedown" - } - - if (comingtransition=="parallaxhorizontal") { - comingtransition = "parallaxtoleft" - if (opt.leftarrowpressed==1) - comingtransition = "parallaxtoright" - } - - - if (comingtransition=="parallaxvertical") { - comingtransition = "parallaxtotop" - if (opt.leftarrowpressed==1) - comingtransition = "parallaxtobottom" - } - - - - - var transitionsArray = [ ['boxslide' , 0, 1, 10, 0,'box',false,null,0], - ['boxfade', 1, 0, 10, 0,'box',false,null,1], - ['slotslide-horizontal', 2, 0, 0, 200,'horizontal',true,false,2], - ['slotslide-vertical', 3, 0,0,200,'vertical',true,false,3], - ['curtain-1', 4, 3,0,0,'horizontal',true,true,4], - ['curtain-2', 5, 3,0,0,'horizontal',true,true,5], - ['curtain-3', 6, 3,25,0,'horizontal',true,true,6], - ['slotzoom-horizontal', 7, 0,0,400,'horizontal',true,true,7], - ['slotzoom-vertical', 8, 0,0,0,'vertical',true,true,8], - ['slotfade-horizontal', 9, 0,0,500,'horizontal',true,null,9], - ['slotfade-vertical', 10, 0,0 ,500,'vertical',true,null,10], - ['fade', 11, 0, 1 ,300,'horizontal',true,null,11], - ['slideleft', 12, 0,1,0,'horizontal',true,true,12], - ['slideup', 13, 0,1,0,'horizontal',true,true,13], - ['slidedown', 14, 0,1,0,'horizontal',true,true,14], - ['slideright', 15, 0,1,0,'horizontal',true,true,15], - ['papercut', 16, 0,0,600,'',null,null,16], - ['3dcurtain-horizontal', 17, 0,20,100,'vertical',false,true,17], - ['3dcurtain-vertical', 18, 0,10,100,'horizontal',false,true,18], - ['cubic', 19, 0,20,600,'horizontal',false,true,19], - ['cube',19,0,20,600,'horizontal',false,true,20], - ['flyin', 20, 0,4,600,'vertical',false,true,21], - ['turnoff', 21, 0,1,1600,'horizontal',false,true,22], - ['incube', 22, 0,20,200,'horizontal',false,true,23], - ['cubic-horizontal', 23, 0,20,500,'vertical',false,true,24], - ['cube-horizontal', 23, 0,20,500,'vertical',false,true,25], - ['incube-horizontal', 24, 0,20,500,'vertical',false,true,26], - ['turnoff-vertical', 25, 0,1,200,'horizontal',false,true,27], - ['fadefromright', 12, 1,1,0,'horizontal',true,true,28], - ['fadefromleft', 15, 1,1,0,'horizontal',true,true,29], - ['fadefromtop', 14, 1,1,0,'horizontal',true,true,30], - ['fadefrombottom', 13, 1,1,0,'horizontal',true,true,31], - ['fadetoleftfadefromright', 12, 2,1,0,'horizontal',true,true,32], - ['fadetorightfadetoleft', 15, 2,1,0,'horizontal',true,true,33], - ['fadetobottomfadefromtop', 14, 2,1,0,'horizontal',true,true,34], - ['fadetotopfadefrombottom', 13, 2,1,0,'horizontal',true,true,35], - ['parallaxtoright', 12, 3,1,0,'horizontal',true,true,36], - ['parallaxtoleft', 15, 3,1,0,'horizontal',true,true,37], - ['parallaxtotop', 14, 3,1,0,'horizontal',true,true,38], - ['parallaxtobottom', 13, 3,1,0,'horizontal',true,true,39], - ['scaledownfromright', 12, 4,1,0,'horizontal',true,true,40], - ['scaledownfromleft', 15, 4,1,0,'horizontal',true,true,41], - ['scaledownfromtop', 14, 4,1,0,'horizontal',true,true,42], - ['scaledownfrombottom', 13, 4,1,0,'horizontal',true,true,43], - ['zoomout', 13, 5,1,0,'horizontal',true,true,44], - ['zoomin', 13, 6,1,0,'horizontal',true,true,45], - ['notransition',26,0,1,0,'horizontal',true,null,46] - ]; - - - var flatTransitions = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45]; - var premiumTransitions = [16,17,18,19,20,21,22,23,24,25,26,27] - - var nexttrans =0; - var specials = 1; - var STAindex = 0; - var indexcounter =0; - var STA = new Array; - - //START THE KEN BURN PAN ZOOM ANIMATION - if (nextsh.data('kenburns')=="on") { - if (comingtransition == "boxslide" || comingtransition==0 || - comingtransition == "boxfade" || comingtransition==1 || - comingtransition == "papercut" || comingtransition==16 - ) - comingtransition = 11; - - startKenBurn(container,opt,true,true); - } - - - - // RANDOM TRANSITIONS - if (comingtransition == "random") { - comingtransition = Math.round(Math.random()*transitionsArray.length-1); - if (comingtransition>transitionsArray.length-1) comingtransition=transitionsArray.length-1; - } - - // RANDOM FLAT TRANSITIONS - if (comingtransition == "random-static") { - comingtransition = Math.round(Math.random()*flatTransitions.length-1); - if (comingtransition>flatTransitions.length-1) comingtransition=flatTransitions.length-1; - comingtransition = flatTransitions[comingtransition]; - } - - // RANDOM PREMIUM TRANSITIONS - if (comingtransition == "random-premium") { - comingtransition = Math.round(Math.random()*premiumTransitions.length-1); - if (comingtransition>premiumTransitions.length-1) comingtransition=premiumTransitions.length-1; - comingtransition = premiumTransitions[comingtransition]; - } - - //joomla only change: avoid problematic transitions that don't compatible with mootools - var problematicTransitions = [12,13,14,15,16,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45]; - if(opt.isJoomla == true && window.MooTools != undefined && problematicTransitions.indexOf(comingtransition) != -1){ - - var newTransIndex = Math.round(Math.random() * (premiumTransitions.length-2) ) + 1; - - //some limits fix - if (newTransIndex > premiumTransitions.length-1) - newTransIndex = premiumTransitions.length-1; - - if(newTransIndex == 0) - newTransIndex = 1; - - comingtransition = premiumTransitions[newTransIndex]; - } - - - - function findTransition() { - // FIND THE RIGHT TRANSITION PARAMETERS HERE - jQuery.each(transitionsArray,function(inde,trans) { - if (trans[0] == comingtransition || trans[8] == comingtransition) { - nexttrans = trans[1]; - specials = trans[2]; - STAindex = indexcounter; - } - indexcounter = indexcounter+1; - }) - } - - findTransition(); - - // CHECK IF WE HAVE IE8 AND THAN FALL BACK ON FLAT TRANSITIONS - if (isIE(8) && nexttrans>15 && nexttrans<28) { - comingtransition = Math.round(Math.random()*flatTransitions.length-1); - if (comingtransition>flatTransitions.length-1) comingtransition=flatTransitions.length-1; - comingtransition = flatTransitions[comingtransition]; - indexcounter =0; - findTransition(); - } - - - - - // WHICH DIRECTION DID WE HAD ? - var direction=-1; - if (opt.leftarrowpressed==1 || opt.act>opt.next) direction=1; - - - - opt.leftarrowpressed=0; - - if (nexttrans>26) nexttrans = 26; - if (nexttrans<0) nexttrans = 0; - - - // DEFINE THE MASTERSPEED FOR THE SLIDE // - var masterspeed=300; - if (nextli.data('masterspeed')!=undefined && nextli.data('masterspeed')>99 && nextli.data('masterspeed')opt.delay) - masterspeed = opt.delay; - - // PREPARED DEFAULT SETTINGS PER TRANSITION - STA = transitionsArray[STAindex]; - - ///////////////////////////////////////////// - // SET THE BULLETS SELECTED OR UNSELECTED // - ///////////////////////////////////////////// - container.parent().find(".bullet").each(function() { - var bul = jQuery(this), - buli = bul.index(); - bul.removeClass("selected"); - - if (opt.navigationArrows=="withbullet" || opt.navigationArrows=="nexttobullets") - buli = bul.index()-1; - - if (buli == opt.next) bul.addClass('selected'); - - }); - - /////////////////////////////// - // MAIN TIMELINE DEFINITION // - /////////////////////////////// - - var mtl = new punchgs.TimelineLite({onComplete:function() { - letItFree(container,opt,nextsh,actsh,nextli,actli,mtl); - }}); - //SET DEFAULT IMG UNVISIBLE AT START - mtl.add(punchgs.TweenLite.set(nextsh.find('.defaultimg'),{opacity:0})); - mtl.pause(); - - - - - ///////////////////////////////////////////// - // SET THE ACTUAL AMOUNT OF SLIDES !! // - // SET A RANDOM AMOUNT OF SLOTS // - /////////////////////////////////////////// - if (nextli.data('slotamount')==undefined || nextli.data('slotamount')<1) { - opt.slots=Math.round(Math.random()*12+4); - if (comingtransition=="boxslide") - opt.slots=Math.round(Math.random()*6+3); - else - if (comingtransition=="flyin") - opt.slots=Math.round(Math.random()*4+1); - } else { - opt.slots=nextli.data('slotamount'); - - } - - ///////////////////////////////////////////// - // SET THE ACTUAL AMOUNT OF SLIDES !! // - // SET A RANDOM AMOUNT OF SLOTS // - /////////////////////////////////////////// - if (nextli.data('rotate')==undefined) - opt.rotate = 0 - else - if (nextli.data('rotate')==999) - opt.rotate=Math.round(Math.random()*360); - else - opt.rotate=nextli.data('rotate'); - if (!jQuery.support.transition || opt.ie || opt.ie9) opt.rotate=0; - - - - - ////////////////////////////// - // FIRST START // - ////////////////////////////// - if (opt.firststart==1) opt.firststart=0; - - - // ADJUST MASTERSPEED - masterspeed = masterspeed + STA[4]; - - if ((nexttrans==4 || nexttrans==5 || nexttrans==6) && opt.slots<3 ) opt.slots=3; - - // ADJUST SLOTS - if (STA[3] != 0) opt.slots = Math.min(opt.slots,STA[3]); - if (nexttrans==9) opt.slots = opt.width/20; - if (nexttrans==10) opt.slots = opt.height/20; - - // prepareOneSlide - - if (STA[7] !=null) prepareOneSlide(actsh,opt,STA[7],STA[5]); - if (STA[6] !=null) prepareOneSlide(nextsh,opt,STA[6],STA[5]); - - - ///////////////////////////////////// - // THE SLOTSLIDE - TRANSITION I. // - //////////////////////////////////// - if (nexttrans==0) { // BOXSLIDE - - - // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT - var maxz = Math.ceil(opt.height/opt.sloth); - var curz = 0; - nextsh.find('.slotslide').each(function(j) { - var ss=jQuery(this); - curz=curz+1; - if (curz==maxz) curz=0; - - mtl.add(punchgs.TweenLite.from(ss,(masterspeed)/600, - {opacity:0,top:(0-opt.sloth),left:(0-opt.slotw),rotation:opt.rotate,force3D:"auto",ease:punchgs.Power2.easeOut}),((j*15) + ((curz)*30))/1500); - }); - } - ///////////////////////////////////// - // THE SLOTSLIDE - TRANSITION I. // - //////////////////////////////////// - if (nexttrans==1) { - - // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT - var maxtime, - maxj = 0; - - nextsh.find('.slotslide').each(function(j) { - var ss=jQuery(this), - rand=Math.random()*masterspeed+300, - rand2=Math.random()*500+200; - if (rand+rand2>maxtime) { - maxtime = rand2+rand2; - maxj = j; - } - mtl.add(punchgs.TweenLite.from(ss,rand/1000, - {autoAlpha:0, force3D:"auto",rotation:opt.rotate,ease:punchgs.Power2.easeInOut}),rand2/1000); - }); - } - - - ///////////////////////////////////// - // THE SLOTSLIDE - TRANSITION I. // - //////////////////////////////////// - if (nexttrans==2) { - - var subtl = new punchgs.TimelineLite(); - // ALL OLD SLOTS SHOULD BE SLIDED TO THE RIGHT - actsh.find('.slotslide').each(function() { - var ss=jQuery(this); - subtl.add(punchgs.TweenLite.to(ss,masterspeed/1000,{left:opt.slotw, force3D:"auto",rotation:(0-opt.rotate)}),0); - mtl.add(subtl,0); - }); - - // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT - nextsh.find('.slotslide').each(function() { - var ss=jQuery(this); - subtl.add(punchgs.TweenLite.from(ss,masterspeed/1000,{left:0-opt.slotw, force3D:"auto",rotation:opt.rotate}),0); - mtl.add(subtl,0); - }); - } - - - - ///////////////////////////////////// - // THE SLOTSLIDE - TRANSITION I. // - //////////////////////////////////// - if (nexttrans==3) { - var subtl = new punchgs.TimelineLite(); - - // ALL OLD SLOTS SHOULD BE SLIDED TO THE RIGHT - actsh.find('.slotslide').each(function() { - var ss=jQuery(this); - subtl.add(punchgs.TweenLite.to(ss,masterspeed/1000,{top:opt.sloth,rotation:opt.rotate,force3D:"auto",transformPerspective:600}),0); - mtl.add(subtl,0); - - }); - - // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT - nextsh.find('.slotslide').each(function() { - var ss=jQuery(this); - subtl.add(punchgs.TweenLite.from(ss,masterspeed/1000,{top:0-opt.sloth,rotation:opt.rotate,ease:punchgs.Power2.easeOut,force3D:"auto",transformPerspective:600}),0); - mtl.add(subtl,0); - }); - } - - - - ///////////////////////////////////// - // THE SLOTSLIDE - TRANSITION I. // - //////////////////////////////////// - if (nexttrans==4 || nexttrans==5) { - - setTimeout(function() { - actsh.find('.defaultimg').css({opacity:0}); - },100); - - - // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT - var cspeed = (masterspeed)/1000, - ticker = cspeed, - subtl = new punchgs.TimelineLite(); - - actsh.find('.slotslide').each(function(i) { - var ss=jQuery(this); - var del = (i*cspeed)/opt.slots; - if (nexttrans==5) del = ((opt.slots-i-1)*cspeed)/(opt.slots)/1.5; - subtl.add(punchgs.TweenLite.to(ss,cspeed*3,{transformPerspective:600,force3D:"auto",top:0+opt.height,opacity:0.5,rotation:opt.rotate,ease:punchgs.Power2.easeInOut,delay:del}),0); - mtl.add(subtl,0); - }); - - // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT - nextsh.find('.slotslide').each(function(i) { - var ss=jQuery(this); - var del = (i*cspeed)/opt.slots; - if (nexttrans==5) del = ((opt.slots-i-1)*cspeed)/(opt.slots)/1.5; - subtl.add(punchgs.TweenLite.from(ss,cspeed*3, - {top:(0-opt.height),opacity:0.5,rotation:opt.rotate,force3D:"auto",ease:punchgs.Power2.easeInOut,delay:del}),0); - mtl.add(subtl,0); - - }); - - - } - - ///////////////////////////////////// - // THE SLOTSLIDE - TRANSITION I. // - //////////////////////////////////// - if (nexttrans==6) { - - - if (opt.slots<2) opt.slots=2; - if (opt.slots % 2) opt.slots = opt.slots+1; - - var subtl = new punchgs.TimelineLite(); - - //SET DEFAULT IMG UNVISIBLE - setTimeout(function() { - actsh.find('.defaultimg').css({opacity:0}); - },100); - - actsh.find('.slotslide').each(function(i) { - var ss=jQuery(this); - if (i+1opt.delay) masterspeed=opt.delay; - var subtl = new punchgs.TimelineLite(); - - //SET DEFAULT IMG UNVISIBLE - setTimeout(function() { - actsh.find('.defaultimg').css({opacity:0}); - },100); - - // ALL OLD SLOTS SHOULD BE SLIDED TO THE RIGHT - actsh.find('.slotslide').each(function() { - var ss=jQuery(this).find('div'); - subtl.add(punchgs.TweenLite.to(ss,masterspeed/1000,{ - left:(0-opt.slotw/2)+'px', - top:(0-opt.height/2)+'px', - width:(opt.slotw*2)+"px", - height:(opt.height*2)+"px", - opacity:0, - rotation:opt.rotate, - force3D:"auto", - ease:punchgs.Power2.easeOut}),0); - mtl.add(subtl,0); - - }); - - ////////////////////////////////////////////////////////////// - // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT // - /////////////////////////////////////////////////////////////// - nextsh.find('.slotslide').each(function(i) { - var ss=jQuery(this).find('div'); - - subtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, - {left:0,top:0,opacity:0,transformPerspective:600}, - {left:(0-i*opt.slotw)+'px', - ease:punchgs.Power2.easeOut, - force3D:"auto", - top:(0)+'px', - width:opt.width, - height:opt.height, - opacity:1,rotation:0, - delay:0.1}),0); - mtl.add(subtl,0); - }); - } - - - - - //////////////////////////////////// - // THE SLOTSZOOM - TRANSITION II. // - //////////////////////////////////// - if (nexttrans==8) { - - masterspeed = masterspeed * 3; - if (masterspeed>opt.delay) masterspeed=opt.delay; - var subtl = new punchgs.TimelineLite(); - - - - // ALL OLD SLOTS SHOULD BE SLIDED TO THE RIGHT - actsh.find('.slotslide').each(function() { - var ss=jQuery(this).find('div'); - subtl.add(punchgs.TweenLite.to(ss,masterspeed/1000, - {left:(0-opt.width/2)+'px', - top:(0-opt.sloth/2)+'px', - width:(opt.width*2)+"px", - height:(opt.sloth*2)+"px", - force3D:"auto", - opacity:0,rotation:opt.rotate}),0); - mtl.add(subtl,0); - - }); - - - // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT // - /////////////////////////////////////////////////////////////// - nextsh.find('.slotslide').each(function(i) { - var ss=jQuery(this).find('div'); - - subtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, - {left:0, top:0,opacity:0,force3D:"auto"}, - {'left':(0)+'px', - 'top':(0-i*opt.sloth)+'px', - 'width':(nextsh.find('.defaultimg').data('neww'))+"px", - 'height':(nextsh.find('.defaultimg').data('newh'))+"px", - opacity:1,rotation:0, - }),0); - mtl.add(subtl,0); - }); - } - - - //////////////////////////////////////// - // THE SLOTSFADE - TRANSITION III. // - ////////////////////////////////////// - if (nexttrans==9 || nexttrans==10) { - var ssamount=0; - // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT - nextsh.find('.slotslide').each(function(i) { - var ss=jQuery(this); - ssamount++; - mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000,{autoAlpha:0,force3D:"auto",transformPerspective:600}, - {autoAlpha:1,ease:punchgs.Power2.easeInOut,delay:(i*5)/1000}),0); - - }); - } - - /////////////////////////// - // SIMPLE FADE ANIMATION // - /////////////////////////// - if (nexttrans==11 || nexttrans==26) { - - - var ssamount=0; - if (nexttrans==26) masterspeed=0; - - // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT - nextsh.find('.slotslide').each(function(i) { - var ss=jQuery(this); - mtl.add(punchgs.TweenLite.from(ss,masterspeed/1000,{autoAlpha:0,force3D:"auto",ease:punchgs.Power2.easeInOut}),0); - }); - } - - if (nexttrans==12 || nexttrans==13 || nexttrans==14 || nexttrans==15) { - masterspeed = masterspeed; - if (masterspeed>opt.delay) masterspeed=opt.delay; - //masterspeed = 1000; - - setTimeout(function() { - punchgs.TweenLite.set(actsh.find('.defaultimg'),{autoAlpha:0}); - - },100); - - var oow = opt.width, - ooh = opt.height, - ssn=nextsh.find('.slotslide'), - twx = 0, - twy = 0, - op = 1, - scal = 1, - fromscale = 1, - easeitout = punchgs.Power2.easeInOut, - easeitin = punchgs.Power2.easeInOut, - speedy = masterspeed/1000, - speedy2 = speedy; - - - if (opt.fullWidth=="on" || opt.fullScreen=="on") { - oow=ssn.width(); - ooh=ssn.height(); - } - - if (nexttrans==12) - twx = oow; - else - if (nexttrans==15) - twx = 0-oow; - else - if (nexttrans==13) - twy = ooh; - else - if (nexttrans==14) - twy = 0-ooh; - - - // DEPENDING ON EXTENDED SPECIALS, DIFFERENT SCALE AND OPACITY FUNCTIONS NEED TO BE ADDED - if (specials == 1) op = 0; - if (specials == 2) op = 0; - if (specials == 3) { - easeitout = punchgs.Power2.easeInOut; - easeitin = punchgs.Power1.easeInOut; - speedy = masterspeed / 1200; - } - - if (specials==4 || specials==5) - scal=0.6; - if (specials==6 ) - scal=1.4; - - - if (specials==5 || specials==6) { - fromscale=1.4; - op=0; - oow=0; - ooh=0;twx=0;twy=0; - } - if (specials==6) fromscale=0.6; - var dd = 0; - - mtl.add(punchgs.TweenLite.from(ssn,speedy, - {left:twx, top:twy, scale:fromscale, opacity:op,rotation:opt.rotate,ease:easeitin,force3D:"auto"}),0); - - var ssa=actsh.find('.slotslide'); - - if (specials==4 || specials==5) { - oow = 0; ooh=0; - } - - if (specials!=1) - switch (nexttrans) { - case 12: - mtl.add(punchgs.TweenLite.to(ssa,speedy2,{'left':(0-oow)+'px',force3D:"auto",scale:scal,opacity:op,rotation:opt.rotate,ease:easeitout}),0); - break; - case 15: - mtl.add(punchgs.TweenLite.to(ssa,speedy2,{'left':(oow)+'px',force3D:"auto",scale:scal,opacity:op,rotation:opt.rotate,ease:easeitout}),0); - break; - case 13: - mtl.add(punchgs.TweenLite.to(ssa,speedy2,{'top':(0-ooh)+'px',force3D:"auto",scale:scal,opacity:op,rotation:opt.rotate,ease:easeitout}),0); - break; - case 14: - mtl.add(punchgs.TweenLite.to(ssa,speedy2,{'top':(ooh)+'px',force3D:"auto",scale:scal,opacity:op,rotation:opt.rotate,ease:easeitout}),0); - break; - } - - } - - ////////////////////////////////////// - // THE SLOTSLIDE - TRANSITION XVI. // - ////////////////////////////////////// - if (nexttrans==16) { // PAPERCUT - - - var subtl = new punchgs.TimelineLite(); - mtl.add(punchgs.TweenLite.set(actli,{'position':'absolute','z-index':20}),0); - mtl.add(punchgs.TweenLite.set(nextli,{'position':'absolute','z-index':15}),0); - - - // PREPARE THE CUTS - actli.wrapInner('
'); - - actli.find('.tp-half-one').clone(true).appendTo(actli).addClass("tp-half-two"); - actli.find('.tp-half-two').removeClass('tp-half-one'); - - var oow = opt.width, - ooh = opt.height; - if (opt.autoHeight=="on") - ooh = container.height(); - - - actli.find('.tp-half-one .defaultimg').wrap('
') - actli.find('.tp-half-two .defaultimg').wrap('
') - actli.find('.tp-half-two .defaultimg').css({position:'absolute',top:'-50%'}); - actli.find('.tp-half-two .tp-caption').wrapAll('
'); - - mtl.add(punchgs.TweenLite.set(actli.find('.tp-half-two'), - {width:oow,height:ooh,overflow:'hidden',zIndex:15,position:'absolute',top:ooh/2,left:'0px',transformPerspective:600,transformOrigin:"center bottom"}),0); - - mtl.add(punchgs.TweenLite.set(actli.find('.tp-half-one'), - {width:oow,height:ooh/2,overflow:'visible',zIndex:10,position:'absolute',top:'0px',left:'0px',transformPerspective:600,transformOrigin:"center top"}),0); - - // ANIMATE THE CUTS - var img=actli.find('.defaultimg'), - ro1=Math.round(Math.random()*20-10), - ro2=Math.round(Math.random()*20-10), - ro3=Math.round(Math.random()*20-10), - xof = Math.random()*0.4-0.2, - yof = Math.random()*0.4-0.2, - sc1=Math.random()*1+1, - sc2=Math.random()*1+1, - sc3=Math.random()*0.3+0.3; - - mtl.add(punchgs.TweenLite.set(actli.find('.tp-half-one'),{overflow:'hidden'}),0); - mtl.add(punchgs.TweenLite.fromTo(actli.find('.tp-half-one'),masterspeed/800, - {width:oow,height:ooh/2,position:'absolute',top:'0px',left:'0px',force3D:"auto",transformOrigin:"center top"}, - {scale:sc1,rotation:ro1,y:(0-ooh-ooh/4),autoAlpha:0,ease:punchgs.Power2.easeInOut}),0); - mtl.add(punchgs.TweenLite.fromTo(actli.find('.tp-half-two'),masterspeed/800, - {width:oow,height:ooh,overflow:'hidden',position:'absolute',top:ooh/2,left:'0px',force3D:"auto",transformOrigin:"center bottom"}, - {scale:sc2,rotation:ro2,y:ooh+ooh/4,ease:punchgs.Power2.easeInOut,autoAlpha:0,onComplete:function() { - // CLEAN UP - punchgs.TweenLite.set(actli,{'position':'absolute','z-index':15}); - punchgs.TweenLite.set(nextli,{'position':'absolute','z-index':20}); - if (actli.find('.tp-half-one').length>0) { - actli.find('.tp-half-one .defaultimg').unwrap(); - actli.find('.tp-half-one .slotholder').unwrap(); - } - actli.find('.tp-half-two').remove(); - }}),0); - - subtl.add(punchgs.TweenLite.set(nextsh.find('.defaultimg'),{autoAlpha:1}),0); - - if (actli.html()!=null) - mtl.add(punchgs.TweenLite.fromTo(nextli,(masterspeed-200)/1000, - {scale:sc3,x:(opt.width/4)*xof, y:(ooh/4)*yof,rotation:ro3,force3D:"auto",transformOrigin:"center center",ease:punchgs.Power2.easeOut}, - {autoAlpha:1,scale:1,x:0,y:0,rotation:0}),0); - - mtl.add(subtl,0); - - - } - - //////////////////////////////////////// - // THE SLOTSLIDE - TRANSITION XVII. // - /////////////////////////////////////// - if (nexttrans==17) { // 3D CURTAIN HORIZONTAL - - - // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT - - nextsh.find('.slotslide').each(function(j) { - var ss=jQuery(this); - - mtl.add(punchgs.TweenLite.fromTo(ss,(masterspeed)/800, - {opacity:0,rotationY:0,scale:0.9,rotationX:-110,force3D:"auto",transformPerspective:600,transformOrigin:"center center"}, - {opacity:1,top:0,left:0,scale:1,rotation:0,rotationX:0,force3D:"auto",rotationY:0,ease:punchgs.Power3.easeOut,delay:j*0.06}),0); - - }); - } - - - - //////////////////////////////////////// - // THE SLOTSLIDE - TRANSITION XVIII. // - /////////////////////////////////////// - if (nexttrans==18) { // 3D CURTAIN VERTICAL - - // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT - nextsh.find('.slotslide').each(function(j) { - var ss=jQuery(this); - - mtl.add(punchgs.TweenLite.fromTo(ss,(masterspeed)/500, - {autoAlpha:0,rotationY:310,scale:0.9,rotationX:10,force3D:"auto",transformPerspective:600,transformOrigin:"center center"}, - {autoAlpha:1,top:0,left:0,scale:1,rotation:0,rotationX:0,force3D:"auto",rotationY:0,ease:punchgs.Power3.easeOut,delay:j*0.06}),0); - }); - - - - } - - - //////////////////////////////////////// - // THE SLOTSLIDE - TRANSITION XIX. // - /////////////////////////////////////// - if (nexttrans==19 || nexttrans==22) { // IN CUBE - - var subtl = new punchgs.TimelineLite(); - //SET DEFAULT IMG UNVISIBLE - - mtl.add(punchgs.TweenLite.set(actli,{zIndex:20}),0); - mtl.add(punchgs.TweenLite.set(nextli,{zIndex:20}),0); - setTimeout(function() { - actsh.find('.defaultimg').css({opacity:0}); - },100); - var chix=nextli.css('z-index'), - chix2=actli.css('z-index'), - rot = 90, - op = 1, - torig ="center center "; - - if (direction==1) rot = -90; - - if (nexttrans==19) { - torig = torig+"-"+opt.height/2; - op=0; - - } else { - torig = torig+opt.height/2; - } - - // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT - punchgs.TweenLite.set(container,{transformStyle:"flat",backfaceVisibility:"hidden",transformPerspective:600}); - - nextsh.find('.slotslide').each(function(j) { - var ss=jQuery(this); - - subtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, - {transformStyle:"flat",backfaceVisibility:"hidden",left:0,rotationY:opt.rotate,z:10,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:torig,rotationX:rot}, - {left:0,rotationY:0,top:0,z:0, scale:1,force3D:"auto",rotationX:0, delay:(j*50)/1000,ease:punchgs.Power2.easeInOut}),0); - subtl.add(punchgs.TweenLite.to(ss,0.1,{autoAlpha:1,delay:(j*50)/1000}),0); - mtl.add(subtl); - }); - - actsh.find('.slotslide').each(function(j) { - var ss=jQuery(this); - var rot = -90; - if (direction==1) rot = 90; - - subtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, - {transformStyle:"flat",backfaceVisibility:"hidden",autoAlpha:1,rotationY:0,top:0,z:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:torig, rotationX:0}, - {autoAlpha:1,rotationY:opt.rotate,top:0,z:10, scale:1,rotationX:rot, delay:(j*50)/1000,force3D:"auto",ease:punchgs.Power2.easeInOut}),0); - - mtl.add(subtl); - }); - } - - - - - //////////////////////////////////////// - // THE SLOTSLIDE - TRANSITION XX. // - /////////////////////////////////////// - if (nexttrans==20 ) { // FLYIN - - - setTimeout(function() { - actsh.find('.defaultimg').css({opacity:0}); - },100); - var chix=nextli.css('z-index'), - chix2=actli.css('z-index'); - - if (direction==1) { - var ofx = -opt.width - var rot =70; - var torig = "left center -"+opt.height/2; - } else { - var ofx = opt.width; - var rot = -70; - var torig = "right center -"+opt.height/2; - } - - - nextsh.find('.slotslide').each(function(j) { - var ss=jQuery(this); - - mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1500, - {left:ofx,rotationX:40,z:-600, opacity:op,top:0,force3D:"auto",transformPerspective:600,transformOrigin:torig,rotationY:rot}, - {left:0, delay:(j*50)/1000,ease:punchgs.Power2.easeInOut}),0); - - mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, - {rotationX:40,z:-600, opacity:op,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:torig,rotationY:rot}, - {rotationX:0,opacity:1,top:0,z:0, scale:1,rotationY:0, delay:(j*50)/1000,ease:punchgs.Power2.easeInOut}),0); - - mtl.add(punchgs.TweenLite.to(ss,0.1,{opacity:1,force3D:"auto",delay:(j*50)/1000+masterspeed/2000}),0); - - }); - actsh.find('.slotslide').each(function(j) { - var ss=jQuery(this); - - if (direction!=1) { - var ofx = -opt.width - var rot =70; - var torig = "left center -"+opt.height/2; - } else { - var ofx = opt.width; - var rot = -70; - var torig = "right center -"+opt.height/2; - } - mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, - {opacity:1,rotationX:0,top:0,z:0,scale:1,left:0, force3D:"auto",transformPerspective:600,transformOrigin:torig, rotationY:0}, - {opacity:1,rotationX:40,top:0, z:-600, left:ofx, force3D:"auto",scale:0.8,rotationY:rot, delay:(j*50)/1000,ease:punchgs.Power2.easeInOut}),0); - mtl.add(punchgs.TweenLite.to(ss,0.1,{force3D:"auto",opacity:0,delay:(j*50)/1000+(masterspeed/1000 - (masterspeed/10000))}),0); - }); - } - - //////////////////////////////////////// - // THE SLOTSLIDE - TRANSITION XX. // - /////////////////////////////////////// - if (nexttrans==21 || nexttrans==25) { // TURNOFF - - - //SET DEFAULT IMG UNVISIBLE - - setTimeout(function() { - actsh.find('.defaultimg').css({opacity:0}); - },100); - var chix=nextli.css('z-index'), - chix2=actli.css('z-index'), - rot = 90, - ofx = -opt.width, - rot2 = -rot; - - if (direction==1) { - if (nexttrans==25) { - var torig = "center top 0"; - rot = opt.rotate; - } else { - var torig = "left center 0"; - rot2 = opt.rotate; - } - - } else { - ofx = opt.width; - rot = -90; - if (nexttrans==25) { - var torig = "center bottom 0" - rot2 = -rot; - rot = opt.rotate; - } else { - var torig = "right center 0"; - rot2 = opt.rotate; - } - } - - nextsh.find('.slotslide').each(function(j) { - var ss=jQuery(this); - - - mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, - {left:0,transformStyle:"flat",rotationX:rot2,z:0, autoAlpha:0,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:torig,rotationY:rot}, - {left:0,rotationX:0,top:0,z:0, autoAlpha:1,scale:1,rotationY:0,force3D:"auto", ease:punchgs.Power3.easeInOut}),0); - }); - - - if (direction!=1) { - ofx = -opt.width - rot = 90; - - if (nexttrans==25) { - torig = "center top 0" - rot2 = -rot; - rot = opt.rotate; - } else { - torig = "left center 0"; - rot2 = opt.rotate; - } - - } else { - ofx = opt.width; - rot = -90; - if (nexttrans==25) { - torig = "center bottom 0" - rot2 = -rot; - rot = opt.rotate; - } else { - torig = "right center 0"; - rot2 = opt.rotate; - } - } - - actsh.find('.slotslide').each(function(j) { - var ss=jQuery(this); - mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, - {left:0,transformStyle:"flat",rotationX:0,z:0, autoAlpha:1,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:torig,rotationY:0}, - {left:0,rotationX:rot2,top:0,z:0,autoAlpha:1,force3D:"auto", scale:1,rotationY:rot,ease:punchgs.Power1.easeInOut}),0); - }); - } - - - - //////////////////////////////////////// - // THE SLOTSLIDE - TRANSITION XX. // - /////////////////////////////////////// - if (nexttrans==23 || nexttrans == 24) { // cube-horizontal - inboxhorizontal - - - //SET DEFAULT IMG UNVISIBLE - setTimeout(function() { - actsh.find('.defaultimg').css({opacity:0}); - },100); - var chix=nextli.css('z-index'), - chix2=actli.css('z-index'), - rot = -90, - op = 1, - opx=0; - - if (direction==1) rot = 90; - if (nexttrans==23) { - var torig = "center center -"+opt.width/2; - op=0; - } else - var torig = "center center "+opt.width/2; - - punchgs.TweenLite.set(container,{transformStyle:"preserve-3d",backfaceVisibility:"hidden",perspective:2500}); - nextsh.find('.slotslide').each(function(j) { - var ss=jQuery(this); - mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, - {left:opx,rotationX:opt.rotate,force3D:"auto",opacity:op,top:0,scale:1,transformPerspective:600,transformOrigin:torig,rotationY:rot}, - {left:0,rotationX:0,autoAlpha:1,top:0,z:0, scale:1,rotationY:0, delay:(j*50)/500,ease:punchgs.Power2.easeInOut}),0); - }); - - rot = 90; - if (direction==1) rot = -90; - - actsh.find('.slotslide').each(function(j) { - var ss=jQuery(this); - mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, - {left:0,autoAlpha:1,rotationX:0,top:0,z:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:torig, rotationY:0}, - {left:opx,autoAlpha:1,rotationX:opt.rotate,top:0, scale:1,rotationY:rot, delay:(j*50)/500,ease:punchgs.Power2.easeInOut}),0); - - - - }); - } - - - // SHOW FIRST LI && ANIMATE THE CAPTIONS - mtl.pause(); - animateTheCaptions(nextli, opt,null,mtl); - punchgs.TweenLite.to(nextli,0.001,{autoAlpha:1}); - - var data={}; - data.slideIndex=opt.next+1; - data.slide = nextli; - container.trigger('revolution.slide.onchange',data); - setTimeout(function() { container.trigger('revolution.slide.onafterswap'); },masterspeed); - container.trigger('revolution.slide.onvideostop'); - - } - - - - - - - /************************************** - - GIVE FREE THE TRANSITIOSN - - **************************************/ - var letItFree = function(container,opt,nextsh,actsh,nextli,actli,mtl) { - punchgs.TweenLite.to(nextsh.find('.defaultimg'),0.001,{autoAlpha:1,onComplete:function() { - removeSlots(container,opt,nextli); - }}); - if (nextli.index()!=actli.index()) { - punchgs.TweenLite.to(actli,0.2,{autoAlpha:0,onComplete:function() { - removeSlots(container,opt,actli); - }}); - } - opt.act=opt.next; - if (opt.navigationType=="thumb") moveSelectedThumb(container); - if (nextsh.data('kenburns')=="on") { - startKenBurn(container,opt); - } - container.find('.current-sr-slide-visible').removeClass("current-sr-slide-visible"); - nextli.addClass("current-sr-slide-visible"); - if (opt.parallax=="scroll" || opt.parallax=="scroll+mouse" || opt.parallax=="mouse+scroll") { - scrollParallax(container,opt); - } - - mtl.clear(); - - } - - - ////////////////////////////////////////// - // CHANG THE YOUTUBE PLAYER STATE HERE // - //////////////////////////////////////// - var onPlayerStateChange = function(event) { - - var embedCode = event.target.getVideoEmbedCode(); - var ytcont = jQuery('#'+embedCode.split('id="')[1].split('"')[0]) - var container = ytcont.closest('.tp-simpleresponsive'); - var player = ytcont.parent().data('player'); - - if (event.data == YT.PlayerState.PLAYING) { - - var bt = container.find('.tp-bannertimer'); - var opt = bt.data('opt'); - - - if (ytcont.closest('.tp-caption').data('volume')=="mute") - player.mute(); - - opt.videoplaying=true; - container.trigger('stoptimer'); - container.trigger('revolution.slide.onvideoplay'); - - } else { - - var bt = container.find('.tp-bannertimer'); - var opt = bt.data('opt'); - - if ((event.data!=-1 && event.data!=3)) { - - opt.videoplaying=false; - container.trigger('starttimer'); - container.trigger('revolution.slide.onvideostop'); - - } - - if (event.data==0 && opt.nextslideatend==true) - opt.container.revnext(); - else { - - opt.videoplaying=false; - container.trigger('starttimer'); - container.trigger('revolution.slide.onvideostop'); - } - - } - - - } - - - - //////////////////////// - // VIMEO ADD EVENT ///// - //////////////////////// - var addEvent = function(element, eventName, callback) { - - if (element.addEventListener) - element.addEventListener(eventName, callback, false); - else - element.attachEvent(eventName, callback, false); - } - - - - - - ///////////////////////////////////// - // EVENT HANDLING FOR VIMEO VIDEOS // - ///////////////////////////////////// - - var vimeoready_auto = function(player_id,autoplay) { - - var froogaloop = $f(player_id), - vimcont = jQuery('#'+player_id), - container = vimcont.closest('.tp-simpleresponsive'), - nextcaption = vimcont.closest('.tp-caption'); - - setTimeout(function() { - froogaloop.addEvent('ready', function(data) { - if(autoplay) froogaloop.api('play'); - - - froogaloop.addEvent('play', function(data) { - var bt = container.find('.tp-bannertimer'); - var opt = bt.data('opt'); - - opt.videoplaying=true; - container.trigger('stoptimer'); - if (nextcaption.data('volume')=="mute") - froogaloop.api('setVolume',"0"); - }); - - froogaloop.addEvent('finish', function(data) { - var bt = container.find('.tp-bannertimer'); - var opt = bt.data('opt'); - opt.videoplaying=false; - container.trigger('starttimer'); - - container.trigger('revolution.slide.onvideoplay'); //opt.videostartednow=1; - if (opt.nextslideatend==true) - opt.container.revnext(); - - }); - - froogaloop.addEvent('pause', function(data) { - var bt = container.find('.tp-bannertimer'); - var opt = bt.data('opt'); - opt.videoplaying=false; - container.trigger('starttimer'); - container.trigger('revolution.slide.onvideostop'); //opt.videostoppednow=1; - }); - - // PLAY VIDEO IF THUMBNAIL HAS BEEN CLICKED - nextcaption.find('.tp-thumb-image').click(function() { - punchgs.TweenLite.to(jQuery(this),0.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut}) - froogaloop.api("play"); - }) - }); - },150); - } - - - - ///////////////////////////////////// - // RESIZE HTML5VIDEO FOR FULLSCREEN// - ///////////////////////////////////// - var updateHTML5Size = function(pc,container) { - var windowW = container.width(); - var windowH = container.height(); - var mediaAspect = pc.data('mediaAspect'); - if (mediaAspect == undefined) mediaAspect = 1; - - - var windowAspect = windowW/windowH; - - pc.css({position:"absolute"}); - var video = pc.find('video'); - - - if (windowAspect < mediaAspect) { - // taller - punchgs.TweenLite.to(pc,0.0001,{width:windowH*mediaAspect,force3D:"auto",top:0, - left:0-(windowH*mediaAspect-windowW)/2, - height:windowH}); - - } else { - // wider - punchgs.TweenLite.to(pc,0.0001,{width:windowW,force3D:"auto",top:0-(windowW/mediaAspect-windowH)/2, - left:0, - height:windowW/mediaAspect}); - } - } - - - - ///////////////////////////////////// - // - CREATE ANIMATION OBJECT - // - ///////////////////////////////////// - var newAnimObject = function() { - var a = new Object(); - a.x=0; - a.y=0; - a.rotationX = 0; - a.rotationY = 0; - a.rotationZ = 0; - a.scale = 1; - a.scaleX = 1; - a.scaleY = 1; - a.skewX = 0; - a.skewY = 0; - a.opacity=0; - a.transformOrigin = "center, center"; - a.transformPerspective = 400; - a.rotation = 0; - return a; - } - - /////////////////////////////////////////////////// - // ANALYSE AND READ OUT DATAS FROM HTML CAPTIONS // - /////////////////////////////////////////////////// - var getAnimDatas = function(frm,data) { - - var customarray = data.split(';'); - jQuery.each(customarray,function(index,param) { - - param = param.split(":") - - var w = param[0], - v = param[1]; - if (w=="rotationX") frm.rotationX = parseInt(v,0); - if (w=="rotationY") frm.rotationY = parseInt(v,0); - if (w=="rotationZ") frm.rotationZ = parseInt(v,0); - if (w=="rotationZ") frm.rotation = parseInt(v,0); - if (w=="scaleX") frm.scaleX = parseFloat(v); - if (w=="scaleY") frm.scaleY = parseFloat(v); - if (w=="opacity") frm.opacity = parseFloat(v); - if (w=="skewX") frm.skewX = parseInt(v,0); - if (w=="skewY") frm.skewY = parseInt(v,0); - if (w=="x") frm.x = parseInt(v,0); - if (w=="y") frm.y = parseInt(v,0); - if (w=="z") frm.z = parseInt(v,0); - if (w=="transformOrigin") frm.transformOrigin = v.toString(); - if (w=="transformPerspective") frm.transformPerspective=parseInt(v,0); - }) - - return frm; - } - /////////////////////////////////////////////////////////////////// - // ANALYSE AND READ OUT DATAS FROM HTML CAPTIONS ANIMATION STEPS // - /////////////////////////////////////////////////////////////////// - var getAnimSteps = function(data) { - - var paramarray = data.split("animation:"); - var params = new Object(); - - params.animation = getAnimDatas(newAnimObject(),paramarray[1]); - var customarray = paramarray[0].split(';'); - - jQuery.each(customarray,function(index,param) { - param = param.split(":") - var w = param[0], - v = param[1]; - if (w=="typ") params.typ = v; - if (w=="speed") params.speed = parseInt(v,0)/1000; - if (w=="start") params.start = parseInt(v,0)/1000; - if (w=="elementdelay") params.elementdelay = parseFloat(v); - if (w=="ease") params.ease = v; - }) - - return params; - } - - - - - //////////////////////// - // SHOW THE CAPTION // - /////////////////////// - var animateTheCaptions = function(nextli, opt,recalled,mtl) { - - // MAKE SURE THE ANIMATION ENDS WITH A CLEANING ON MOZ TRANSFORMS - function animcompleted() { - } - - function tlstart() { - } - - if (nextli.data('ctl')==undefined) { - nextli.data('ctl',new punchgs.TimelineLite()); - } - - var ctl = nextli.data('ctl'), - offsetx=0, - offsety=0, - allcaptions = nextli.find('.tp-caption'), - allstaticcaptions = opt.container.find('.tp-static-layers').find('.tp-caption'); - - - ctl.pause(); - - jQuery.each(allstaticcaptions, function(index,staticcapt) { - allcaptions.push(staticcapt); - }); - - allcaptions.each(function(i) { - var internrecalled = recalled, - staticdirection = -1, // 1 -> In, 2-> Out 0-> Ignore -1-> Not Static - nextcaption=jQuery(this); - - if (nextcaption.hasClass("tp-static-layer")) { - var nss = nextcaption.data('startslide'), - nes = nextcaption.data('endslide'); - - if ( nss == -1 || nss == "-1") - nextcaption.data('startslide',0); - - if ( nes== -1 || nes == "-1") - nextcaption.data('endslide',opt.slideamount); - - if (nss==0 && nes==opt.slideamount-1) - nextcaption.data('endslide',opt.slideamount+1); - - - // RESET SETTIGNS AFTER SETTING THEM AGAIN - nss = nextcaption.data('startslide'), - nes = nextcaption.data('endslide'); - - - // IF STATIC ITEM CURRENTLY NOT VISIBLE - if (!nextcaption.hasClass("tp-is-shown")) { - // IF ITEM SHOULD BECOME VISIBLE - - - if ((nss<=opt.next && nes>=opt.next) || - (nss == opt.next) || (nes == opt.next)){ - - nextcaption.addClass("tp-is-shown"); - staticdirection = 1; - } else { - - staticdirection = 0; - } - // IF STATIC ITEM ALREADY VISIBLE - } else { - if ((nes==opt.next) || - (nss > opt.next) || - (nes < opt.next)) { - - staticdirection = 2; - //nextcaption.removeClass("tp-is-shown"); - } else { - staticdirection = 0; - } - - } - - //if (staticdirection==2) staticdirection = 0; - - } - - offsetx = opt.width/2 - (opt.startwidth*opt.bw)/2; - - var xbw = opt.bw; - var xbh = opt.bh; - - if (opt.fullScreen=="on") - offsety = opt.height/2 - (opt.startheight*opt.bh)/2; - - if (opt.autoHeight=="on" || (opt.minHeight!=undefined && opt.minHeight>0)) - offsety = opt.container.height()/2 - (opt.startheight*opt.bh)/2;; - - - if (offsety<0) offsety=0; - - - - var handlecaption=0; - - // HIDE CAPTION IF RESOLUTION IS TOO LOW - if (opt.width0 || nextcaption.find('video').length>0 ) { - - // YOUTUBE AND VIMEO LISTENRES INITIALISATION - var frameID = "iframe"+Math.round(Math.random()*100000+1), - vidw = nextcaption.data("videowidth"), - vidh = nextcaption.data("videoheight"), - vida = nextcaption.data("videoattributes"), - vidytid = nextcaption.data('ytid'), - vimeoid = nextcaption.data('vimeoid'), - videopreload = nextcaption.data('videpreload'), - videomp = nextcaption.data('videomp4'), - videowebm = nextcaption.data('videowebm'), - videoogv = nextcaption.data('videoogv'), - videocontrols = nextcaption.data('videocontrols'), - httpprefix = "http", - videoloop = nextcaption.data('videoloop')=="loop" ? "loop" : nextcaption.data('videoloop')=="loopandnoslidestop" ? "loop" : ""; - - if (nextcaption.data('thumbimage')!=undefined && nextcaption.data('videoposter')==undefined) - nextcaption.data('videoposter',nextcaption.data('thumbimage')) - - // ADD YOUTUBE IFRAME IF NEEDED - if (vidytid!=undefined && String(vidytid).length>1 && nextcaption.find('iframe').length==0) { - httpprefix = "https"; - - if (videocontrols=="none") { - vida = vida.replace("controls=1","controls=0"); - if (vida.toLowerCase().indexOf('controls')==-1) - vida = vida+"&controls=0"; - } - nextcaption.append(''); - } - - // ADD VIMEO IFRAME IF NEEDED - if (vimeoid!=undefined && String(vimeoid).length>1 && nextcaption.find('iframe').length==0) { - if (location.protocol === 'https:') - httpprefix = "https"; - - nextcaption.append(''); - } - - // ADD HTML5 VIDEO IF NEEDED - if ((videomp!=undefined || videowebm!=undefined) && nextcaption.find('video').length==0) { - - if (videocontrols!="controls") videocontrols=""; - var apptxt = ''; - nextcaption.append(apptxt);*/ - - if (nextcaption.data('videoposter')!=undefined) - if (nextcaption.data('videoposter') != undefined) apptxt = apptxt + 'poster="'+nextcaption.data('videoposter')+'">'; - if (videowebm!=undefined && get_browser().toLowerCase()=="firefox") apptxt = apptxt + ''; - if (videomp!=undefined) apptxt = apptxt + ''; - if (videoogv!=undefined) apptxt = apptxt + ''; - apptxt = apptxt + ''; - nextcaption.append(apptxt); - - if (videocontrols=="controls") - nextcaption.append('
'+ - '
'+ - '
'+ - '
'+ - '
'+ - '
'+ - '
'); - } - - // RESET DEFAULTS - var autoplaywason = false; - if (nextcaption.data('autoplayonlyfirsttime') == true || nextcaption.data('autoplayonlyfirsttime')=="true" || nextcaption.data('autoplay')==true) { - nextcaption.data('autoplay',true); - autoplaywason = true; - } - - - nextcaption.find('iframe').each(function() { - var ifr=jQuery(this); - - punchgs.TweenLite.to(ifr,0.1,{autoAlpha:1, zIndex:0, transformStyle:"preserve-3d",z:0,rotationX:0,force3D:"auto"}); - if (is_mobile()) { - var oldsrc = ifr.attr('src'); - ifr.attr('src',""); - ifr.attr('src',oldsrc); - } - - - // START YOUTUBE HANDLING - opt.nextslideatend = nextcaption.data('nextslideatend'); - - // IF VIDEOPOSTER EXISTING - if (nextcaption.data('videoposter')!=undefined && nextcaption.data('videoposter').length>2 && nextcaption.data('autoplay')!=true && !internrecalled) { - if (nextcaption.find('.tp-thumb-image').length==0) - nextcaption.append('
'); - else - punchgs.TweenLite.set(nextcaption.find('.tp-thumb-image'),{autoAlpha:1}); - } - - // IF IFRAME IS A YOUTUBE FRAME - if (ifr.attr('src').toLowerCase().indexOf('youtube')>=0) { - - // IF LISTENER DOES NOT EXIST YET - if (!ifr.hasClass("HasListener")) { - try { - ifr.attr('id',frameID); - var player; - var ytint = setInterval(function() { - if (YT !=undefined) - if (typeof YT.Player != undefined && typeof YT.Player !="undefined") { - player = new YT.Player(frameID, { - events: { - "onStateChange": onPlayerStateChange, - 'onReady': function(event) { - var embedCode = event.target.getVideoEmbedCode(), - ytcont = jQuery('#'+embedCode.split('id="')[1].split('"')[0]), - nextcaption = ytcont.closest('.tp-caption'), - videorate = nextcaption.data('videorate'), - videostart = nextcaption.data('videostart'); - - - if (videorate!=undefined) - event.target.setPlaybackRate(parseFloat(videorate)); - - /*if (nextcaption.data('autoplay')==true || autoplaywason) - event.target.playVideo();*/ - - if (!is_mobile() && nextcaption.data('autoplay')==true || autoplaywason) { - nextcaption.data('timerplay',setTimeout(function() { - event.target.playVideo(); - },nextcaption.data('start'))); - } - - // PLAY VIDEO IF THUMBNAIL HAS BEEN CLICKED - nextcaption.find('.tp-thumb-image').click(function() { - punchgs.TweenLite.to(jQuery(this),0.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut}) - if (!is_mobile()) { - player.playVideo(); - } - }) - - } - } - }); - } - ifr.addClass("HasListener"); - nextcaption.data('player',player); - clearInterval(ytint); - }, 100) - } catch(e) {} - } else { - if (!recalled) { - var player=nextcaption.data('player'); - if (nextcaption.data('forcerewind')=="on" && !is_mobile()) - player.seekTo(0); - - if (!is_mobile() && nextcaption.data('autoplay')==true || autoplaywason) { - nextcaption.data('timerplay',setTimeout(function() { - player.playVideo(); - },nextcaption.data('start'))); - } - } - } // END YOUTUBE HANDLING - - - } else - - // START VIMEO HANDLING - if (ifr.attr('src').toLowerCase().indexOf('vimeo')>=0) { - if (!ifr.hasClass("HasListener")) { - ifr.addClass("HasListener"); - ifr.attr('id',frameID); - var isrc = ifr.attr('src'); - var queryParameters = {}, queryString = isrc, - re = /([^&=]+)=([^&]*)/g, m; - // Creates a map with the query string parameters - while (m = re.exec(queryString)) { - queryParameters[decodeURIComponent(m[1])] = decodeURIComponent(m[2]); - } - - if (queryParameters['player_id']!=undefined) - isrc = isrc.replace(queryParameters['player_id'],frameID); - else - isrc=isrc+"&player_id="+frameID; - - try{ isrc = isrc.replace('api=0','api=1'); } catch(e) {} - - isrc=isrc+"&api=1"; - - ifr.attr('src',isrc); - var player = nextcaption.find('iframe')[0]; - var vimint = setInterval(function() { - if ($f !=undefined){ - if (typeof $f(frameID).api != undefined && typeof $f(frameID).api !="undefined") { - - $f(player).addEvent('ready', function(){ - vimeoready_auto(frameID,autoplaywason) - }); - clearInterval(vimint); - } - } - },100); - - } else { - if (!recalled) { - if (!is_mobile() && (nextcaption.data('autoplay')==true || nextcaption.data('forcerewind')=="on")) { - - var ifr = nextcaption.find('iframe'); - var id = ifr.attr('id'); - var froogaloop = $f(id); - if (nextcaption.data('forcerewind')=="on") - froogaloop.api("seekTo",0); - nextcaption.data('timerplay',setTimeout(function() { - if (nextcaption.data('autoplay')==true) - froogaloop.api("play"); - },nextcaption.data('start'))); - } - } - }// END HAS LISTENER HANDLING - } // END OF VIMEO HANDLING - }); // END OF LOOP THROUGH IFRAMES - - - - // START OF HTML5 VIDEOS - if ((is_mobile() && nextcaption.data('disablevideoonmobile')==1) ||isIE(8)) nextcaption.find('video').remove(); - //if (is_mobile() && jQuery(window).width()<569) nextcaption.find('video').remove() - - if (nextcaption.find('video').length>0) { - nextcaption.find('video').each(function(i) { - - var video = this, - jvideo = jQuery(this); - - - if (!jvideo.parent().hasClass("html5vid")) - jvideo.wrap('
'); - - var html5vid = jvideo.parent(); - - // WAITING FOR META DATAS - - addEvent(video,'loadedmetadata',function(html5vid) { - html5vid.data('metaloaded',1); - }(html5vid)); - - - clearInterval(html5vid.data('interval')); - html5vid.data('interval',setInterval(function() { - if (html5vid.data('metaloaded')==1 || video.duration!=NaN) { - clearInterval(html5vid.data('interval')); - // FIRST TIME LOADED THE HTML5 VIDEO - if (!html5vid.hasClass("HasListener")) { - html5vid.addClass("HasListener"); - - if (nextcaption.data('dottedoverlay')!="none" && nextcaption.data('dottedoverlay')!=undefined) - if (nextcaption.find('.tp-dottedoverlay').length!=1) - html5vid.append('
'); - - if (jvideo.attr('control') == undefined ) { - if (html5vid.find('.tp-video-play-button').length==0) - html5vid.append('
'); - html5vid.find('video, .tp-poster, .tp-video-play-button').click(function() { - if (html5vid.hasClass("videoisplaying")) - video.pause(); - else - video.play(); - }) - } - - if (nextcaption.data('forcecover')==1 || nextcaption.hasClass('fullscreenvideo')) { - if (nextcaption.data('forcecover')==1) { - updateHTML5Size(html5vid,opt.container); - html5vid.addClass("fullcoveredvideo"); - nextcaption.addClass("fullcoveredvideo"); - } - html5vid.css({width:"100%", height:"100%"}); - } - - - - var playButton = nextcaption.find('.tp-vid-play-pause')[0], - muteButton = nextcaption.find('.tp-vid-mute')[0], - fullScreenButton = nextcaption.find('.tp-vid-full-screen')[0], - seekBar = nextcaption.find('.tp-seek-bar')[0], - volumeBar = nextcaption.find('.tp-volume-bar')[0]; - - if (playButton!=undefined) { - // Event listener for the play/pause button - addEvent(playButton,"click", function() { - if (video.paused == true) - // Play the video - video.play(); - else - // Pause the video - video.pause(); - }); - - // Event listener for the mute button - addEvent(muteButton,"click", function() { - if (video.muted == false) { - // Mute the video - video.muted = true; - - // Update the button text - muteButton.innerHTML = "Unmute"; - } else { - // Unmute the video - video.muted = false; - - // Update the button text - muteButton.innerHTML = "Mute"; - } - }); - - // Event listener for the full-screen button - addEvent(fullScreenButton,"click", function() { - if (video.requestFullscreen) { - video.requestFullscreen(); - } else if (video.mozRequestFullScreen) { - video.mozRequestFullScreen(); // Firefox - } else if (video.webkitRequestFullscreen) { - video.webkitRequestFullscreen(); // Chrome and Safari - } - }); - - - // Event listener for the seek bar - addEvent(seekBar,"change", function() { - // Calculate the new time - var time = video.duration * (seekBar.value / 100); - // Update the video time - video.currentTime = time; - }); - - - // Update the seek bar as the video plays - addEvent(video,"timeupdate", function() { - // Calculate the slider value - var value = (100 / video.duration) * video.currentTime; - - // Update the slider value - seekBar.value = value; - }); - - // Pause the video when the seek handle is being dragged - addEvent(seekBar,"mousedown", function() { - video.pause(); - }); - - // Play the video when the seek handle is dropped - addEvent(seekBar,"mouseup", function() { - video.play(); - }); - - // Event listener for the volume bar - addEvent(volumeBar,"change", function() { - // Update the video volume - video.volume = volumeBar.value; - }); - } - - - // VIDEO EVENT LISTENER FOR "PLAY" - addEvent(video,"play",function() { - if (nextcaption.data('volume')=="mute") - video.muted=true; - - html5vid.addClass("videoisplaying"); - - if (nextcaption.data('videoloop')=="loopandnoslidestop") { - opt.videoplaying=false; - opt.container.trigger('starttimer'); - opt.container.trigger('revolution.slide.onvideostop'); - } else { - - opt.videoplaying=true; - opt.container.trigger('stoptimer'); - opt.container.trigger('revolution.slide.onvideoplay'); - } - - var playButton = nextcaption.find('.tp-vid-play-pause')[0], - muteButton = nextcaption.find('.tp-vid-mute')[0]; - if (playButton!=undefined) - playButton.innerHTML = "Pause"; - if (muteButton!=undefined && video.muted) - muteButton.innerHTML = "Unmute"; - }); - - // VIDEO EVENT LISTENER FOR "PAUSE" - addEvent(video,"pause",function() { - html5vid.removeClass("videoisplaying"); - opt.videoplaying=false; - opt.container.trigger('starttimer'); - opt.container.trigger('revolution.slide.onvideostop'); - var playButton = nextcaption.find('.tp-vid-play-pause')[0]; - if (playButton!=undefined) - playButton.innerHTML = "Play"; - - }); - - // VIDEO EVENT LISTENER FOR "END" - addEvent(video,"ended",function() { - html5vid.removeClass("videoisplaying"); - opt.videoplaying=false; - opt.container.trigger('starttimer'); - opt.container.trigger('revolution.slide.onvideostop'); - if (opt.nextslideatend==true) - opt.container.revnext(); - }); - - } // END OF LISTENER DECLARATION - - var autoplaywason = false; - if (nextcaption.data('autoplayonlyfirsttime') == true || nextcaption.data('autoplayonlyfirsttime')=="true") - autoplaywason = true; - - var mediaaspect=16/9; - if (nextcaption.data('aspectratio')=="4:3") mediaaspect=4/3; - html5vid.data('mediaAspect',mediaaspect); - - if (html5vid.closest('.tp-caption').data('forcecover')==1) { - updateHTML5Size(html5vid,opt.container); - html5vid.addClass("fullcoveredvideo"); - } - - jvideo.css({display:"block"}); - opt.nextslideatend = nextcaption.data('nextslideatend'); - - // IF VIDEO SHOULD BE AUTOPLAYED - if (nextcaption.data('autoplay')==true || autoplaywason==true) { - - - if (nextcaption.data('videoloop')=="loopandnoslidestop") { - opt.videoplaying=false; - opt.container.trigger('starttimer'); - opt.container.trigger('revolution.slide.onvideostop'); - } else { - opt.videoplaying=true; - opt.container.trigger('stoptimer'); - opt.container.trigger('revolution.slide.onvideoplay'); - } - - - if (nextcaption.data('forcerewind')=="on" && !html5vid.hasClass("videoisplaying")) - if (video.currentTime>0) video.currentTime=0; - - if (nextcaption.data('volume')=="mute") - video.muted = true; - - html5vid.data('timerplay',setTimeout(function() { - - if (nextcaption.data('forcerewind')=="on" && !html5vid.hasClass("videoisplaying")) - if (video.currentTime>0) video.currentTime=0; - - if (nextcaption.data('volume')=="mute") - video.muted = true; - - - video.play(); - },10+nextcaption.data('start'))); - } - - if (html5vid.data('ww') == undefined) html5vid.data('ww',jvideo.attr('width')); - if (html5vid.data('hh') == undefined) html5vid.data('hh',jvideo.attr('height')); - - if (!nextcaption.hasClass("fullscreenvideo") && nextcaption.data('forcecover')==1) { - try{ - html5vid.width(html5vid.data('ww')*opt.bw); - html5vid.height(html5vid.data('hh')*opt.bh); - } catch(e) {} - } - - clearInterval(html5vid.data('interval')); - } - }),100); // END OF SET INTERVAL - - }); - } // END OF HTML5 VIDEO FUNCTIONS - - // IF AUTOPLAY IS ON, WE NEED SOME STOP FUNCTION ON - if (nextcaption.data('autoplay')==true) { - setTimeout(function() { - - if (nextcaption.data('videoloop')!="loopandnoslidestop") { - opt.videoplaying=true; - opt.container.trigger('stoptimer'); - } - },200) - if (nextcaption.data('videoloop')!="loopandnoslidestop") { - opt.videoplaying=true; - opt.container.trigger('stoptimer'); - } - - if (nextcaption.data('autoplayonlyfirsttime') == true || nextcaption.data('autoplayonlyfirsttime')=="true" ) { - nextcaption.data('autoplay',false); - nextcaption.data('autoplayonlyfirsttime',false); - } - } - } - - - - - // NEW ENGINE - //if (nextcaption.hasClass("randomrotate") && (opt.ie || opt.ie9)) nextcaption.removeClass("randomrotate").addClass("sfb"); - // nextcaption.removeClass('noFilterClass'); - - - - var imw =0; - var imh = 0; - - if (nextcaption.find('img').length>0) { - var im = nextcaption.find('img'); - if (im.width()==0) im.css({width:"auto"}); - if (im.height()==0) im.css({height:"auto"}); - - if (im.data('ww') == undefined && im.width()>0) im.data('ww',im.width()); - if (im.data('hh') == undefined && im.height()>0) im.data('hh',im.height()); - - var ww = im.data('ww'); - var hh = im.data('hh'); - - if (ww==undefined) ww=0; - if (hh==undefined) hh=0; - - im.width(ww*opt.bw); - im.height(hh*opt.bh); - imw = im.width(); - imh = im.height(); - } else { - - if (nextcaption.find('iframe').length>0 || nextcaption.find('video').length>0) { - - var html5vid = false, - im = nextcaption.find('iframe'); - if (im.length==0) { - im = nextcaption.find('video'); - html5vid = true; - } - im.css({display:"block"}); - - if (nextcaption.data('ww') == undefined) nextcaption.data('ww',im.width()); - if (nextcaption.data('hh') == undefined) nextcaption.data('hh',im.height()); - - var ww = nextcaption.data('ww'), - hh = nextcaption.data('hh'); - - var nc =nextcaption; - if (nc.data('fsize') == undefined) nc.data('fsize',parseInt(nc.css('font-size'),0) || 0); - if (nc.data('pt') == undefined) nc.data('pt',parseInt(nc.css('paddingTop'),0) || 0); - if (nc.data('pb') == undefined) nc.data('pb',parseInt(nc.css('paddingBottom'),0) || 0); - if (nc.data('pl') == undefined) nc.data('pl',parseInt(nc.css('paddingLeft'),0) || 0); - if (nc.data('pr') == undefined) nc.data('pr',parseInt(nc.css('paddingRight'),0) || 0); - - if (nc.data('mt') == undefined) nc.data('mt',parseInt(nc.css('marginTop'),0) || 0); - if (nc.data('mb') == undefined) nc.data('mb',parseInt(nc.css('marginBottom'),0) || 0); - if (nc.data('ml') == undefined) nc.data('ml',parseInt(nc.css('marginLeft'),0) || 0); - if (nc.data('mr') == undefined) nc.data('mr',parseInt(nc.css('marginRight'),0) || 0); - - if (nc.data('bt') == undefined) nc.data('bt',parseInt(nc.css('borderTop'),0) || 0); - if (nc.data('bb') == undefined) nc.data('bb',parseInt(nc.css('borderBottom'),0) || 0); - if (nc.data('bl') == undefined) nc.data('bl',parseInt(nc.css('borderLeft'),0) || 0); - if (nc.data('br') == undefined) nc.data('br',parseInt(nc.css('borderRight'),0) || 0); - - if (nc.data('lh') == undefined) nc.data('lh',parseInt(nc.css('lineHeight'),0) || 0); - - // IE8 FIX FOR AUTO LINEHEIGHT - if (nc.data('lh')=="auto") nc.data('lh',nc.data('fsize')+4); - - var fvwidth=opt.width, - fvheight=opt.height; - if (fvwidth>opt.startwidth) fvwidth=opt.startwidth; - if (fvheight>opt.startheight) fvheight=opt.startheight; - - if (!nextcaption.hasClass('fullscreenvideo')) - nextcaption.css({ - - 'font-size': (nc.data('fsize') * opt.bw)+"px", - - 'padding-top': (nc.data('pt') * opt.bh) + "px", - 'padding-bottom': (nc.data('pb') * opt.bh) + "px", - 'padding-left': (nc.data('pl') * opt.bw) + "px", - 'padding-right': (nc.data('pr') * opt.bw) + "px", - - 'margin-top': (nc.data('mt') * opt.bh) + "px", - 'margin-bottom': (nc.data('mb') * opt.bh) + "px", - 'margin-left': (nc.data('ml') * opt.bw) + "px", - 'margin-right': (nc.data('mr') * opt.bw) + "px", - - 'border-top': (nc.data('bt') * opt.bh) + "px", - 'border-bottom': (nc.data('bb') * opt.bh) + "px", - 'border-left': (nc.data('bl') * opt.bw) + "px", - 'border-right': (nc.data('br') * opt.bw) + "px", - - 'line-height': (nc.data('lh') * opt.bh) + "px", - 'height':(hh*opt.bh)+'px' - }); - else { - - offsetx=0; offsety=0; - nextcaption.data('x',0) - nextcaption.data('y',0) - - var ovhh = opt.height - if (opt.autoHeight=="on") - ovhh = opt.container.height() - nextcaption.css({ - - 'width':opt.width, - 'height':ovhh - }); - } - - if (html5vid == false) { - im.width(ww*opt.bw); - im.height(hh*opt.bh); - } - - else - - if (nextcaption.data('forcecover')!=1 && !nextcaption.hasClass('fullscreenvideo')) { - im.width(ww*opt.bw); - im.height(hh*opt.bh); - } - - - imw = im.width(); - imh = im.height(); - } - - else { - - - nextcaption.find('.tp-resizeme, .tp-resizeme *').each(function() { - calcCaptionResponsive(jQuery(this),opt); - }); - - if (nextcaption.hasClass("tp-resizeme")) { - nextcaption.find('*').each(function() { - calcCaptionResponsive(jQuery(this),opt); - }); - } - - calcCaptionResponsive(nextcaption,opt); - - imh=nextcaption.outerHeight(true); - imw=nextcaption.outerWidth(true); - - // NEXTCAPTION FRONTCORNER CHANGES - var ncch = nextcaption.outerHeight(); - var bgcol = nextcaption.css('backgroundColor'); - nextcaption.find('.frontcorner').css({ - 'borderWidth':ncch+"px", - 'left':(0-ncch)+'px', - 'borderRight':'0px solid transparent', - 'borderTopColor':bgcol - }); - - nextcaption.find('.frontcornertop').css({ - 'borderWidth':ncch+"px", - 'left':(0-ncch)+'px', - 'borderRight':'0px solid transparent', - 'borderBottomColor':bgcol - }); - - // NEXTCAPTION BACKCORNER CHANGES - nextcaption.find('.backcorner').css({ - 'borderWidth':ncch+"px", - 'right':(0-ncch)+'px', - 'borderLeft':'0px solid transparent', - 'borderBottomColor':bgcol - }); - - // NEXTCAPTION BACKCORNER CHANGES - nextcaption.find('.backcornertop').css({ - 'borderWidth':ncch+"px", - 'right':(0-ncch)+'px', - 'borderLeft':'0px solid transparent', - 'borderTopColor':bgcol - }); - - } - - - } - - if (opt.fullScreenAlignForce == "on") { - //xbw = 1; - //xbh = 1; - offsetx=0; - offsety=0; - } - - - - if (nextcaption.data('voffset')==undefined) nextcaption.data('voffset',0); - if (nextcaption.data('hoffset')==undefined) nextcaption.data('hoffset',0); - - var vofs= nextcaption.data('voffset')*xbw; - var hofs= nextcaption.data('hoffset')*xbw; - - var crw = opt.startwidth*xbw; - var crh = opt.startheight*xbw; - - if (opt.fullScreenAlignForce == "on") { - crw = opt.container.width(); - crh = opt.container.height(); - } - - - - // CENTER THE CAPTION HORIZONTALLY - if (nextcaption.data('x')=="center" || nextcaption.data('xcenter')=='center') { - nextcaption.data('xcenter','center'); - //nextcaption.data('x',(crw/2 - nextcaption.outerWidth(true)/2)/xbw+ hofs); - nextcaption.data('x',(crw/2 - nextcaption.outerWidth(true)/2) + hofs); - - - } - - // ALIGN LEFT THE CAPTION HORIZONTALLY - if (nextcaption.data('x')=="left" || nextcaption.data('xleft')=='left') { - nextcaption.data('xleft','left'); - - nextcaption.data('x',(0)/xbw+hofs); - - } - - // ALIGN RIGHT THE CAPTION HORIZONTALLY - if (nextcaption.data('x')=="right" || nextcaption.data('xright')=='right') { - nextcaption.data('xright','right'); - nextcaption.data('x',((crw - nextcaption.outerWidth(true))+hofs)/xbw); - //konsole.log("crw:"+crw+" width:"+nextcaption.outerWidth(true)+" xbw:"+xbw); - //konsole.log("x-pos:"+nextcaption.data('x')) - } - - - // CENTER THE CAPTION VERTICALLY - if (nextcaption.data('y')=="center" || nextcaption.data('ycenter')=='center') { - nextcaption.data('ycenter','center'); - nextcaption.data('y',(crh/2 - nextcaption.outerHeight(true)/2) + vofs); - } - - // ALIGN TOP THE CAPTION VERTICALLY - if (nextcaption.data('y')=="top" || nextcaption.data('ytop')=='top') { - nextcaption.data('ytop','top'); - nextcaption.data('y',(0)/opt.bh+vofs); - - } - - // ALIGN BOTTOM THE CAPTION VERTICALLY - if (nextcaption.data('y')=="bottom" || nextcaption.data('ybottom')=='bottom') { - nextcaption.data('ybottom','bottom'); - nextcaption.data('y',((crh - nextcaption.outerHeight(true))+vofs)/xbw); - - } - - - - // THE TRANSITIONS OF CAPTIONS - // MDELAY AND MSPEED - if (nextcaption.data('start') == undefined) nextcaption.data('start',1000); - - - - var easedata=nextcaption.data('easing'); - if (easedata==undefined) easedata="punchgs.Power1.easeOut"; - - - var mdelay = nextcaption.data('start')/1000, - mspeed = nextcaption.data('speed')/1000; - - - if (nextcaption.data('x')=="center" || nextcaption.data('xcenter')=='center') - var calcx = (nextcaption.data('x')+offsetx); - else { - - var calcx = (xbw*nextcaption.data('x')+offsetx); - } - - - if (nextcaption.data('y')=="center" || nextcaption.data('ycenter')=='center') - var calcy = (nextcaption.data('y')+offsety); - else { - //if (opt.fullScreenAlignForce == "on" && (nextcaption.data('y')=="bottom" || nextcaption.data('ybottom')=='bottom')) - // opt.bh = 1; - - var calcy = (opt.bh*nextcaption.data('y')+offsety); - } - - - punchgs.TweenLite.set(nextcaption,{top:calcy,left:calcx,overwrite:"auto"}); - - if (staticdirection == 0) - internrecalled = true; - - if (nextcaption.data('timeline')!=undefined && !internrecalled) { - if (staticdirection!=2) - nextcaption.data('timeline').gotoAndPlay(0); - internrecalled = true; - } - - if (!internrecalled) { - - - - // CLEAR THE TIMELINE, SINCE IT CAN BE DAMAGED, OR PAUSED AT A FEW PART - if (nextcaption.data('timeline')!=undefined) { - //nextcaption.data('timeline').clear(); - } - - var tl = new punchgs.TimelineLite({smoothChildTiming:true,onStart:tlstart}); - tl.pause(); - - - if (opt.fullScreenAlignForce == "on") { - //calcy = nextcaption.data('y')+offsety; - } - - var animobject = nextcaption; - if (nextcaption.data('mySplitText') !=undefined) nextcaption.data('mySplitText').revert(); - - - if (nextcaption.data('splitin') == "chars" || nextcaption.data('splitin') == "words" || nextcaption.data('splitin') == "lines" || nextcaption.data('splitout') == "chars" || nextcaption.data('splitout') == "words" || nextcaption.data('splitout') == "lines") { - if (nextcaption.find('a').length>0) - nextcaption.data('mySplitText',new punchgs.SplitText(nextcaption.find('a'),{type:"lines,words,chars",charsClass:"tp-splitted",wordsClass:"tp-splitted",linesClass:"tp-splitted"})); - else - if (nextcaption.find('.tp-layer-inner-rotation').length>0) - nextcaption.data('mySplitText',new punchgs.SplitText(nextcaption.find('.tp-layer-inner-rotation'),{type:"lines,words,chars",charsClass:"tp-splitted",wordsClass:"tp-splitted",linesClass:"tp-splitted"})); - else - nextcaption.data('mySplitText',new punchgs.SplitText(nextcaption,{type:"lines,words,chars",charsClass:"tp-splitted",wordsClass:"tp-splitted",linesClass:"tp-splitted"})); - - nextcaption.addClass("splitted"); - } - - if (nextcaption.data('splitin') == "chars") - animobject = nextcaption.data('mySplitText').chars; - - - if (nextcaption.data('splitin') == "words") - animobject = nextcaption.data('mySplitText').words; - - - if (nextcaption.data('splitin') == "lines") - animobject = nextcaption.data('mySplitText').lines; - - - - var frm = newAnimObject(); - var endfrm = newAnimObject(); - - - if (nextcaption.data('repeat')!=undefined) repeatV = nextcaption.data('repeat'); - if (nextcaption.data('yoyo')!=undefined) yoyoV = nextcaption.data('yoyo'); - if (nextcaption.data('repeatdelay')!=undefined) repeatdelayV = nextcaption.data('repeatdelay'); - - var ncc = nextcaption.attr('class'); - - // WHICH ANIMATION TYPE SHOULD BE USED - if (ncc.match("customin")) frm = getAnimDatas(frm,nextcaption.data('customin')); - else - if (ncc.match("randomrotate")) { - - frm.scale = Math.random()*3+1; - frm.rotation = Math.round(Math.random()*200-100); - frm.x = Math.round(Math.random()*200-100); - frm.y = Math.round(Math.random()*200-100); - } - else - if (ncc.match('lfr') || ncc.match('skewfromright')) frm.x = 15+opt.width; - else - if (ncc.match('lfl') || ncc.match('skewfromleft')) frm.x = -15-imw; - else - if (ncc.match('sfl') || ncc.match('skewfromleftshort')) frm.x = -50; - else - if (ncc.match('sfr') || ncc.match('skewfromrightshort')) frm.x = 50; - else - if (ncc.match('lft')) frm.y = -25 - imh; - else - if (ncc.match('lfb')) frm.y = 25 + opt.height; - else - if (ncc.match('sft')) frm.y = -50; - else - if (ncc.match('sfb')) frm.y = 50; - - - if (ncc.match('skewfromright') || nextcaption.hasClass('skewfromrightshort')) frm.skewX = -85 - else - if (ncc.match('skewfromleft') || nextcaption.hasClass('skewfromleftshort')) frm.skewX = 85 - - - if (ncc.match("fade") || ncc.match('sft') || ncc.match('sfl') || ncc.match('sfb') || ncc.match('skewfromleftshort') || ncc.match('sfr') || ncc.match('skewfromrightshort')) - frm.opacity = 0; - - // FOR SAFARI WE NEED TO REMOVE 3D ROTATIONS - if (get_browser().toLowerCase()=="safari") { - //frm.rotationX=0;frm.rotationY=0; - } - - var elemdelay = (nextcaption.data('elementdelay') == undefined) ? 0 : nextcaption.data('elementdelay'); - endfrm.ease = frm.ease = (nextcaption.data('easing') == undefined) ? punchgs.Power1.easeInOut : nextcaption.data('easing'); - - - // DISTANCES SHOULD BE RESIZED ALSO - - frm.data = new Object(); - frm.data.oldx = frm.x; - frm.data.oldy = frm.y; - - endfrm.data = new Object(); - endfrm.data.oldx = endfrm.x; - endfrm.data.oldy = endfrm.y; - - frm.x = frm.x * xbw; - frm.y = frm.y * xbw; - - var newtl = new punchgs.TimelineLite(); - - - if (staticdirection != 2) { - - // CHANGE to punchgs.TweenLite. if Yoyo and Repeat is used. Dont forget to laod the Right Tools for it !! - if (ncc.match("customin")) { - if (animobject != nextcaption) - tl.add(punchgs.TweenLite.set(nextcaption, { force3D:"auto",opacity:1,scaleX:1,scaleY:1,rotationX:0,rotationY:0,rotationZ:0,skewX:0,skewY:0,z:0,x:0,y:0,visibility:'visible',delay:0,overwrite:"all"})); - frm.visibility = "hidden"; - endfrm.visibility = "visible"; - endfrm.overwrite = "all"; - endfrm.opacity = 1; - endfrm.onComplete = animcompleted(); - endfrm.delay = mdelay; - endfrm.force3D="auto" - - tl.add(newtl.staggerFromTo(animobject,mspeed,frm,endfrm,elemdelay),"frame0"); - - } else { - - frm.visibility = "visible"; - frm.transformPerspective = 600; - if (animobject != nextcaption) - tl.add(punchgs.TweenLite.set(nextcaption, { force3D:"auto",opacity:1,scaleX:1,scaleY:1,rotationX:0,rotationY:0,rotationZ:0,skewX:0,skewY:0,z:0,x:0,y:0,visibility:'visible',delay:0,overwrite:"all"})); - - endfrm.visibility = "visible"; - endfrm.delay = mdelay; - endfrm.onComplete = animcompleted(); - endfrm.opacity = 1; - endfrm.force3D="auto"; - if (ncc.match("randomrotate") && animobject != nextcaption) { - - for (var i=0;i0) { - var params = getAnimSteps(spframe); - - addMoveCaption(nextcaption,opt,params,"frame"+(index+10),xbw) - - } - }) - } // END OF ANIMATION STEPS - - tl = nextcaption.data('timeline'); - // IF THERE IS ANY EXIT ANIM DEFINED - // For Static Layers -> 1 -> In, 2-> Out 0-> Ignore -1-> Not Static - if ((nextcaption.data('end')!=undefined) && (staticdirection==-1 || staticdirection==2)) { - endMoveCaption(nextcaption,opt,nextcaption.data('end')/1000,frm,"frame99",xbw); - } else { - if (staticdirection==-1 || staticdirection==2) - endMoveCaption(nextcaption,opt,999999,frm,"frame99",xbw); - else - endMoveCaption(nextcaption,opt,200,frm,"frame99",xbw); - } - - // SAVE THE TIMELINE IN DOM ELEMENT - tl = nextcaption.data('timeline'); - nextcaption.data('timeline',tl); - callCaptionLoops(nextcaption,xbw); - tl.resume(); - } - } - - if (internrecalled) { - killCaptionLoops(nextcaption); - callCaptionLoops(nextcaption,xbw); - - if (nextcaption.data('timeline') != undefined) { - var tweens = nextcaption.data('timeline').getTweensOf(); - jQuery.each(tweens,function(index,tween) { - if (tween.vars.data != undefined) { - var newx = tween.vars.data.oldx * xbw; - var newy = tween.vars.data.oldy * xbw; - if (tween.progress() !=1 && tween.progress()!=0) { - try{ - //tween.updateTo({x:newx, y:newy},true); - tween.vars.x = newx; - tween.vary.y = newy; - } catch(e) { - - } - } else { - if (tween.progress()==1) { - punchgs.TweenLite.set(tween.target,{x:newx,y:newy}); - } - } - } - }) - } - } - - }) - - var bt=jQuery('body').find('#'+opt.container.attr('id')).find('.tp-bannertimer'); - bt.data('opt',opt); - - - - if (mtl != undefined) setTimeout(function() { - mtl.resume(); - },30); - - } - - - var get_browser = function(){ - var N=navigator.appName, ua=navigator.userAgent, tem; - var M=ua.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i); - if(M && (tem= ua.match(/version\/([\.\d]+)/i))!= null) M[2]= tem[1]; - M=M? [M[1], M[2]]: [N, navigator.appVersion, '-?']; - return M[0]; - } - var get_browser_version = function(){ - var N=navigator.appName, ua=navigator.userAgent, tem; - var M=ua.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i); - if(M && (tem= ua.match(/version\/([\.\d]+)/i))!= null) M[2]= tem[1]; - M=M? [M[1], M[2]]: [N, navigator.appVersion, '-?']; - return M[1]; - } - - ///////////////////////////////////////////////////////////////// - // - CALCULATE THE RESPONSIVE SIZES OF THE CAPTIONS - // - ///////////////////////////////////////////////////////////////// - var calcCaptionResponsive = function(nc,opt) { - if (nc.data('fsize') == undefined) nc.data('fsize',parseInt(nc.css('font-size'),0) || 0); - if (nc.data('pt') == undefined) nc.data('pt',parseInt(nc.css('paddingTop'),0) || 0); - if (nc.data('pb') == undefined) nc.data('pb',parseInt(nc.css('paddingBottom'),0) || 0); - if (nc.data('pl') == undefined) nc.data('pl',parseInt(nc.css('paddingLeft'),0) || 0); - if (nc.data('pr') == undefined) nc.data('pr',parseInt(nc.css('paddingRight'),0) || 0); - - if (nc.data('mt') == undefined) nc.data('mt',parseInt(nc.css('marginTop'),0) || 0); - if (nc.data('mb') == undefined) nc.data('mb',parseInt(nc.css('marginBottom'),0) || 0); - if (nc.data('ml') == undefined) nc.data('ml',parseInt(nc.css('marginLeft'),0) || 0); - if (nc.data('mr') == undefined) nc.data('mr',parseInt(nc.css('marginRight'),0) || 0); - - if (nc.data('bt') == undefined) nc.data('bt',parseInt(nc.css('borderTopWidth'),0) || 0); - if (nc.data('bb') == undefined) nc.data('bb',parseInt(nc.css('borderBottomWidth'),0) || 0); - if (nc.data('bl') == undefined) nc.data('bl',parseInt(nc.css('borderLeftWidth'),0) || 0); - if (nc.data('br') == undefined) nc.data('br',parseInt(nc.css('borderRightWidth'),0) || 0); - - if (nc.data('ls') == undefined) nc.data('ls',parseInt(nc.css('letterSpacing'),0) || 0); - - if (nc.data('lh') == undefined) nc.data('lh',parseInt(nc.css('lineHeight'),0) || "auto"); - if (nc.data('minwidth') == undefined) nc.data('minwidth',parseInt(nc.css('minWidth'),0) || 0); - if (nc.data('minheight') == undefined) nc.data('minheight',parseInt(nc.css('minHeight'),0) || 0); - if (nc.data('maxwidth') == undefined) nc.data('maxwidth',parseInt(nc.css('maxWidth'),0) || "none"); - if (nc.data('maxheight') == undefined) nc.data('maxheight',parseInt(nc.css('maxHeight'),0) || "none"); - if (nc.data('wii') == undefined) nc.data('wii',parseInt(nc.css('width'),0) || 0); - if (nc.data('hii') == undefined) nc.data('hii',parseInt(nc.css('height'),0) || 0); - - if (nc.data('wan') == undefined) nc.data('wan',nc.css("-webkit-transition")); - if (nc.data('moan') == undefined) nc.data('moan',nc.css("-moz-animation-transition")); - if (nc.data('man') == undefined) nc.data('man',nc.css("-ms-animation-transition")); - if (nc.data('ani') == undefined) nc.data('ani',nc.css("transition")); - - // IE8 FIX FOR AUTO LINEHEIGHT - if (nc.data('lh')=="auto") nc.data('lh',nc.data('fsize')+4); - - - - - if (!nc.hasClass("tp-splitted")) { - - - nc.css("-webkit-transition", "none"); - nc.css("-moz-transition", "none"); - nc.css("-ms-transition", "none"); - nc.css("transition", "none"); - - punchgs.TweenLite.set(nc,{ - fontSize: Math.round((nc.data('fsize') * opt.bw))+"px", - - letterSpacing:Math.floor((nc.data('ls') * opt.bw))+"px", - - paddingTop: Math.round((nc.data('pt') * opt.bh)) + "px", - paddingBottom: Math.round((nc.data('pb') * opt.bh)) + "px", - paddingLeft: Math.round((nc.data('pl') * opt.bw)) + "px", - paddingRight: Math.round((nc.data('pr') * opt.bw)) + "px", - - marginTop: (nc.data('mt') * opt.bh) + "px", - marginBottom: (nc.data('mb') * opt.bh) + "px", - marginLeft: (nc.data('ml') * opt.bw) + "px", - marginRight: (nc.data('mr') * opt.bw) + "px", - - borderTopWidth: Math.round((nc.data('bt') * opt.bh)) + "px", - borderBottomWidth: Math.round((nc.data('bb') * opt.bh)) + "px", - borderLeftWidth: Math.round((nc.data('bl') * opt.bw)) + "px", - borderRightWidth: Math.round((nc.data('br') * opt.bw)) + "px", - - lineHeight: Math.round((nc.data('lh') * opt.bh)) + "px", - minWidth:(nc.data('minwidth') * opt.bw) + "px", - minHeight:(nc.data('minheight') * opt.bh) + "px", - - /* width:(nc.data('wii') * opt.bw) + "px", - height:(nc.data('hii') * opt.bh) + "px", */ - - overwrite:"auto" - }); - setTimeout(function() { - nc.css("-webkit-transition", nc.data('wan')); - nc.css("-moz-transition", nc.data('moan')); - nc.css("-ms-transition", nc.data('man')); - nc.css("transition", nc.data('ani')); - - },30); - - //konsole.log(nc.data('maxwidth')+" "+nc.data('maxheight')); - if (nc.data('maxheight')!='none') - nc.css({'maxHeight':(nc.data('maxheight') * opt.bh) + "px"}); - - - if (nc.data('maxwidth')!='none') - nc.css({'maxWidth':(nc.data('maxwidth') * opt.bw) + "px"}); - } - } - - - /****************************** - - CAPTION LOOPS - - ********************************/ - - - var callCaptionLoops = function(nextcaption,factor) { - - // SOME LOOPING ANIMATION ON INTERNAL ELEMENTS - nextcaption.find('.rs-pendulum').each(function() { - var el = jQuery(this); - if (el.data('timeline')==undefined) { - el.data('timeline',new punchgs.TimelineLite); - var startdeg = el.data('startdeg')==undefined ? -20 : el.data('startdeg'), - enddeg = el.data('enddeg')==undefined ? 20 : el.data('enddeg'), - speed = el.data('speed')==undefined ? 2 : el.data('speed'), - origin = el.data('origin')==undefined ? "50% 50%" : el.data('origin'), - easing = el.data('easing')==undefined ? punchgs.Power2.easeInOut : el.data('ease'); - - startdeg = startdeg * factor; - enddeg = enddeg * factor; - - el.data('timeline').append(new punchgs.TweenLite.fromTo(el,speed,{force3D:"auto",rotation:startdeg,transformOrigin:origin},{rotation:enddeg,ease:easing})); - el.data('timeline').append(new punchgs.TweenLite.fromTo(el,speed,{force3D:"auto",rotation:enddeg,transformOrigin:origin},{rotation:startdeg,ease:easing,onComplete:function() { - el.data('timeline').restart(); - }})); - } - - }) - - // SOME LOOPING ANIMATION ON INTERNAL ELEMENTS - nextcaption.find('.rs-rotate').each(function() { - var el = jQuery(this); - if (el.data('timeline')==undefined) { - el.data('timeline',new punchgs.TimelineLite); - var startdeg = el.data('startdeg')==undefined ? 0 : el.data('startdeg'), - enddeg = el.data('enddeg')==undefined ? 360 : el.data('enddeg'); - speed = el.data('speed')==undefined ? 2 : el.data('speed'), - origin = el.data('origin')==undefined ? "50% 50%" : el.data('origin'), - easing = el.data('easing')==undefined ? punchgs.Power2.easeInOut : el.data('easing'); - - startdeg = startdeg * factor; - enddeg = enddeg * factor; - - el.data('timeline').append(new punchgs.TweenLite.fromTo(el,speed,{force3D:"auto",rotation:startdeg,transformOrigin:origin},{rotation:enddeg,ease:easing,onComplete:function() { - el.data('timeline').restart(); - }})); - } - - }) - - // SOME LOOPING ANIMATION ON INTERNAL ELEMENTS - nextcaption.find('.rs-slideloop').each(function() { - var el = jQuery(this); - if (el.data('timeline')==undefined) { - el.data('timeline',new punchgs.TimelineLite); - var xs = el.data('xs')==undefined ? 0 : el.data('xs'), - ys = el.data('ys')==undefined ? 0 : el.data('ys'), - xe = el.data('xe')==undefined ? 0 : el.data('xe'), - ye = el.data('ye')==undefined ? 0 : el.data('ye'), - speed = el.data('speed')==undefined ? 2 : el.data('speed'), - easing = el.data('easing')==undefined ? punchgs.Power2.easeInOut : el.data('easing'); - - xs = xs * factor; - ys = ys * factor; - xe = xe * factor; - ye = ye * factor; - - el.data('timeline').append(new punchgs.TweenLite.fromTo(el,speed,{force3D:"auto",x:xs,y:ys},{x:xe,y:ye,ease:easing})); - el.data('timeline').append(new punchgs.TweenLite.fromTo(el,speed,{force3D:"auto",x:xe,y:ye},{x:xs,y:ys,onComplete:function() { - el.data('timeline').restart(); - }})); - } - - }) - - // SOME LOOPING ANIMATION ON INTERNAL ELEMENTS - nextcaption.find('.rs-pulse').each(function() { - var el = jQuery(this); - if (el.data('timeline')==undefined) { - el.data('timeline',new punchgs.TimelineLite); - var zoomstart = el.data('zoomstart')==undefined ? 0 : el.data('zoomstart'), - zoomend = el.data('zoomend')==undefined ? 0 : el.data('zoomend'), - speed = el.data('speed')==undefined ? 2 : el.data('speed'), - easing = el.data('easing')==undefined ? punchgs.Power2.easeInOut : el.data('easing'); - - el.data('timeline').append(new punchgs.TweenLite.fromTo(el,speed,{force3D:"auto",scale:zoomstart},{scale:zoomend,ease:easing})); - el.data('timeline').append(new punchgs.TweenLite.fromTo(el,speed,{force3D:"auto",scale:zoomend},{scale:zoomstart,onComplete:function() { - el.data('timeline').restart(); - }})); - } - - }) - - nextcaption.find('.rs-wave').each(function() { - var el = jQuery(this); - if (el.data('timeline')==undefined) { - el.data('timeline',new punchgs.TimelineLite); - - var angle= el.data('angle')==undefined ? 10 : el.data('angle'), - radius = el.data('radius')==undefined ? 10 : el.data('radius'), - speed = el.data('speed')==undefined ? -20 : el.data('speed'), - origin = el.data('origin')==undefined ? -20 : el.data('origin'); - - angle = angle*factor; - radius = radius * factor; - - var angobj = {a:0, ang : angle, element:el, unit:radius}; - - - el.data('timeline').append(new punchgs.TweenLite.fromTo(angobj,speed, - { a:360 }, - { a:0, - force3D:"auto", - ease:punchgs.Linear.easeNone, - onUpdate:function() { - - var rad = angobj.a * (Math.PI / 180); - punchgs.TweenLite.to(angobj.element,0.1,{force3D:"auto",x:Math.cos(rad) * angobj.unit, y:angobj.unit * (1 - Math.sin(rad))}); - - }, - onComplete:function() { - el.data('timeline').restart(); - } - } - )); - } - - }) - } - - var killCaptionLoops = function(nextcaption) { - // SOME LOOPING ANIMATION ON INTERNAL ELEMENTS - nextcaption.find('.rs-pendulum, .rs-slideloop, .rs-pulse, .rs-wave').each(function() { - var el = jQuery(this); - if (el.data('timeline')!=undefined) { - el.data('timeline').pause(); - el.data('timeline',null); - } - }); - } - - ////////////////////////// - // REMOVE THE CAPTIONS // - ///////////////////////// - var removeTheCaptions = function(actli,opt) { - - var removetime = 0; - - var allcaptions = actli.find('.tp-caption'), - allstaticcaptions = opt.container.find('.tp-static-layers').find('.tp-caption'); - - - jQuery.each(allstaticcaptions, function(index,staticcapt) { - allcaptions.push(staticcapt); - }); - - allcaptions.each(function(i) { - - - - var staticdirection = -1; // 1 -> In, 2-> Out 0-> Ignore -1-> Not Static - - var nextcaption=jQuery(this); - if (nextcaption.hasClass("tp-static-layer")) { - - if (nextcaption.data('startslide') == -1 || nextcaption.data('startslide') == "-1") - nextcaption.data('startslide',0); - - if (nextcaption.data('endslide') == -1 || nextcaption.data('endslide') == "-1") - nextcaption.data('endslide',opt.slideamount); - - - - // IF STATIC ITEM CURRENTLY NOT VISIBLE - if (nextcaption.hasClass("tp-is-shown")) { - - if ((nextcaption.data('startslide') > opt.next) || - (nextcaption.data('endslide') < opt.next)) { - - staticdirection = 2; - nextcaption.removeClass("tp-is-shown"); - } else { - staticdirection = 0; - } - } else { - staticdirection = 2; - } - - - - } - - - - if (staticdirection != 0 ) { - - killCaptionLoops(nextcaption); - - if (nextcaption.find('iframe').length>0) { - // VIMEO VIDEO PAUSE - //if (nextcaption.data('vimeoid')!=undefined && String(nextcaption.data('vimeoid')).length>0) - punchgs.TweenLite.to(nextcaption.find('iframe'),0.2,{autoAlpha:0}); - if (is_mobile()) nextcaption.find('iframe').remove(); - try { - var ifr = nextcaption.find('iframe'); - var id = ifr.attr('id'); - var froogaloop = $f(id); - froogaloop.api("pause"); - clearTimeout(nextcaption.data('timerplay')); - } catch(e) {} - - try { - var player=nextcaption.data('player'); - player.stopVideo(); - clearTimeout(nextcaption.data('timerplay')); - } catch(e) {} - } - - // IF HTML5 VIDEO IS EMBEDED - if (nextcaption.find('video').length>0) { - try{ - nextcaption.find('video').each(function(i) { - var html5vid = jQuery(this).parent(); - var videoID =html5vid.attr('id'); - clearTimeout(html5vid.data('timerplay')); - var video = this; - video.pause(); - }) - }catch(e) {} - } // END OF VIDEO JS FUNCTIONS - try { - - //var tl = punchgs.TimelineLite.exportRoot(); - var tl = nextcaption.data('timeline'); - var endstarts = tl.getLabelTime("frame99"); - var curtime = tl.time(); - if (endstarts>curtime) { - - // WE NEED TO STOP ALL OTHER NIMATIONS - var tweens = tl.getTweensOf(nextcaption); - jQuery.each(tweens,function(index,tw) { - - if (index!=0) - tw.pause(); - }); - if (nextcaption.css('opacity')!=0) { - var spp = nextcaption.data('endspeed') == undefined ? nextcaption.data('speed') : nextcaption.data('endspeed'); - if (spp>removetime) removetime =spp; - tl.play("frame99"); - } else - tl.progress(1,false); - } - - } catch(e) {} - - } - - }); - - return removetime; - } - - ////////////////////////////// - // MOVE THE CAPTIONS // - //////////////////////////// - var addMoveCaption = function(nextcaption,opt,params,frame,downscale) { - var tl = nextcaption.data('timeline'); - - var newtl = new punchgs.TimelineLite(); - - var animobject = nextcaption; - - if (params.typ == "chars") animobject = nextcaption.data('mySplitText').chars; - else - if (params.typ == "words") animobject = nextcaption.data('mySplitText').words; - else - if (params.typ == "lines") animobject = nextcaption.data('mySplitText').lines; - params.animation.ease = params.ease; - - if (params.animation.rotationZ !=undefined) params.animation.rotation = params.animation.rotationZ; - params.animation.data = new Object(); - params.animation.data.oldx = params.animation.x; - params.animation.data.oldy = params.animation.y; - - params.animation.x = params.animation.x * downscale; - params.animation.y = params.animation.y * downscale; - - - tl.add(newtl.staggerTo(animobject,params.speed,params.animation,params.elementdelay),params.start); - tl.addLabel(frame,params.start); - - nextcaption.data('timeline',tl); - - } - ////////////////////////////// - // MOVE OUT THE CAPTIONS // - //////////////////////////// - var endMoveCaption = function(nextcaption,opt,mdelay,backwards,frame,downscale) { - - var tl = nextcaption.data('timeline'), - newtl = new punchgs.TimelineLite(); - - var frm = newAnimObject(), - mspeed= (nextcaption.data('endspeed') == undefined) ? nextcaption.data('speed') : nextcaption.data('endspeed'), - ncc = nextcaption.attr('class'); - - frm.ease = (nextcaption.data('endeasing') == undefined) ? punchgs.Power1.easeInOut : nextcaption.data('endeasing'); - - mspeed = mspeed/1000; - - - - if (ncc.match('ltr') || - ncc.match('ltl') || - ncc.match('str') || - ncc.match('stl') || - ncc.match('ltt') || - ncc.match('ltb') || - ncc.match('stt') || - ncc.match('stb') || - ncc.match('skewtoright') || - ncc.match('skewtorightshort') || - ncc.match('skewtoleft') || - ncc.match('skewtoleftshort') || - ncc.match('fadeout') || - ncc.match("randomrotateout")) - { - - if (ncc.match('skewtoright') || ncc.match('skewtorightshort')) frm.skewX = 35 - else - if (ncc.match('skewtoleft') || ncc.match('skewtoleftshort')) frm.skewX = -35 - - - if (ncc.match('ltr') || ncc.match('skewtoright')) - frm.x=opt.width+60; - else if (ncc.match('ltl') || ncc.match('skewtoleft')) - frm.x=0-(opt.width+60); - else if (ncc.match('ltt')) - frm.y=0-(opt.height+60); - else if (ncc.match('ltb')) - frm.y=opt.height+60; - else if (ncc.match('str') || ncc.match('skewtorightshort')) { - frm.x=50;frm.opacity=0; - } else if (ncc.match('stl') || ncc.match('skewtoleftshort')) { - frm.x=-50;frm.opacity=0; - } else if (ncc.match('stt')) { - frm.y=-50;frm.opacity=0; - } else if (ncc.match('stb')) { - frm.y=50;frm.opacity=0; - } else if (ncc.match("randomrotateout")) { - frm.x = Math.random()*opt.width; - frm.y = Math.random()*opt.height; - frm.scale = Math.random()*2+0.3; - frm.rotation = Math.random()*360-180; - frm.opacity = 0; - } else if (ncc.match('fadeout')) { - frm.opacity = 0; - } - - if (ncc.match('skewtorightshort')) frm.x = 270; - else - if (ncc.match('skewtoleftshort')) frm.x = -270 - frm.data = new Object(); - frm.data.oldx = frm.x; - frm.data.oldy = frm.y; - frm.x = frm.x * downscale; - frm.y = frm.y * downscale; - - frm.overwrite="auto"; - var animobject = nextcaption; - var animobject = nextcaption; - if (nextcaption.data('splitout') == "chars") animobject = nextcaption.data('mySplitText').chars; - else - if (nextcaption.data('splitout') == "words") animobject = nextcaption.data('mySplitText').words; - else - if (nextcaption.data('splitout') == "lines") animobject = nextcaption.data('mySplitText').lines; - var elemdelay = (nextcaption.data('endelementdelay') == undefined) ? 0 : nextcaption.data('endelementdelay'); - //tl.add(punchgs.TweenLite.to(nextcaption,mspeed,frm),mdelay); - tl.add(newtl.staggerTo(animobject,mspeed,frm,elemdelay),mdelay); - - } - - else - - if (nextcaption.hasClass("customout")) { - - frm = getAnimDatas(frm,nextcaption.data('customout')); - var animobject = nextcaption; - if (nextcaption.data('splitout') == "chars") animobject = nextcaption.data('mySplitText').chars; - else - if (nextcaption.data('splitout') == "words") animobject = nextcaption.data('mySplitText').words; - else - if (nextcaption.data('splitout') == "lines") animobject = nextcaption.data('mySplitText').lines; - - var elemdelay = (nextcaption.data('endelementdelay') == undefined) ? 0 : nextcaption.data('endelementdelay'); - frm.onStart = function() { - - punchgs.TweenLite.set(nextcaption,{ - transformPerspective:frm.transformPerspective, - transformOrigin:frm.transformOrigin, - overwrite:"auto" - }); - } - - frm.data = new Object(); - frm.data.oldx = frm.x; - frm.data.oldy = frm.y; - - frm.x = frm.x * downscale; - frm.y = frm.y * downscale; - - tl.add(newtl.staggerTo(animobject,mspeed,frm,elemdelay),mdelay); - } - - else { - backwards.delay = 0; - tl.add(punchgs.TweenLite.to(nextcaption,mspeed,backwards),mdelay); - } - - - tl.addLabel(frame,mdelay); - - nextcaption.data('timeline',tl); - } - - /////////////////////////// - // REMOVE THE LISTENERS // - /////////////////////////// - var removeAllListeners = function(container,opt) { - container.children().each(function() { - try{ jQuery(this).die('click'); } catch(e) {} - try{ jQuery(this).die('mouseenter');} catch(e) {} - try{ jQuery(this).die('mouseleave');} catch(e) {} - try{ jQuery(this).unbind('hover');} catch(e) {} - }) - try{ container.die('click','mouseenter','mouseleave');} catch(e) {} - clearInterval(opt.cdint); - container=null; - } - - /////////////////////////// - // - countDown - // - ///////////////////////// - var countDown = function(container,opt) { - opt.cd=0; - opt.loop=0; - if (opt.stopAfterLoops!=undefined && opt.stopAfterLoops>-1) - opt.looptogo=opt.stopAfterLoops; - else - opt.looptogo=9999999; - - if (opt.stopAtSlide!=undefined && opt.stopAtSlide>-1) - opt.lastslidetoshow=opt.stopAtSlide; - else - opt.lastslidetoshow=999; - - opt.stopLoop="off"; - - if (opt.looptogo==0) opt.stopLoop="on"; - - - if (opt.slideamount >1 && !(opt.stopAfterLoops==0 && opt.stopAtSlide==1) ) { - var bt=container.find('.tp-bannertimer'); - - - // LISTENERS //container.trigger('stoptimer'); - container.on('stoptimer',function() { - var bt = jQuery(this).find('.tp-bannertimer'); - bt.data('tween').pause(); - if (opt.hideTimerBar=="on") bt.css({visibility:"hidden"}); - }); - container.on('starttimer',function() { - - if (opt.conthover!=1 && opt.videoplaying!=true && opt.width>opt.hideSliderAtLimit && opt.bannertimeronpause != true && opt.overnav !=true) - if ((opt.stopLoop=="on" && opt.next==opt.lastslidetoshow-1) || opt.noloopanymore == 1) - opt.noloopanymore = 1; - else { - - bt.css({visibility:"visible"}); - bt.data('tween').resume(); - } - - if (opt.hideTimerBar=="on") bt.css({visibility:"hidden"}); - }); - container.on('restarttimer',function() { - var bt = jQuery(this).find('.tp-bannertimer'); - if ((opt.stopLoop=="on" && opt.next==opt.lastslidetoshow-1) || opt.noloopanymore == 1) - opt.noloopanymore = 1; - else { - - bt.css({visibility:"visible"}); - bt.data('tween').kill(); - bt.data('tween',punchgs.TweenLite.fromTo(bt,opt.delay/1000,{width:"0%"},{force3D:"auto",width:"100%",ease:punchgs.Linear.easeNone,onComplete:countDownNext,delay:1})); - - } - if (opt.hideTimerBar=="on") bt.css({visibility:"hidden"}); - }); - - container.on('nulltimer',function() { - bt.data('tween').pause(0); - if (opt.hideTimerBar=="on") bt.css({visibility:"hidden"}); - }); - - - - var countDownNext = function() { - if (jQuery('body').find(container).length==0) { - removeAllListeners(container,opt); - clearInterval(opt.cdint); - } - - container.trigger("revolution.slide.slideatend"); - - //STATE OF API CHANGED -> MOVE TO AIP BETTER - if (container.data('conthover-changed') == 1) { - opt.conthover= container.data('conthover'); - container.data('conthover-changed',0); - } - - // SWAP TO NEXT BANNER - opt.act=opt.next; - opt.next=opt.next+1; - - if (opt.next>container.find('>ul >li').length-1) { - opt.next=0; - opt.looptogo=opt.looptogo-1; - - if (opt.looptogo<=0) { - opt.stopLoop="on"; - - } - } - - // STOP TIMER IF NO LOOP NO MORE NEEDED. - - if (opt.stopLoop=="on" && opt.next==opt.lastslidetoshow-1) { - container.find('.tp-bannertimer').css({'visibility':'hidden'}); - container.trigger('revolution.slide.onstop'); - opt.noloopanymore = 1; - } else { - bt.data('tween').restart(); - } - - // SWAP THE SLIDES - swapSlide(container,opt); - - } - - bt.data('tween',punchgs.TweenLite.fromTo(bt,opt.delay/1000,{width:"0%"},{force3D:"auto",width:"100%",ease:punchgs.Linear.easeNone,onComplete:countDownNext,delay:1})); - bt.data('opt',opt); - - - container.hover( - function() { - - if (opt.onHoverStop=="on" && (!is_mobile())) { - container.trigger('stoptimer'); - - container.trigger('revolution.slide.onpause'); - var nextsh = container.find('>ul >li:eq('+opt.next+') .slotholder'); - nextsh.find('.defaultimg').each(function() { - var dimg = jQuery(this); - if (dimg.data('kenburn')!=undefined) { - dimg.data('kenburn').pause(); - } - }); - } - }, - function() { - if (container.data('conthover')!=1) { - container.trigger('revolution.slide.onresume'); - container.trigger('starttimer'); - - var nextsh = container.find('>ul >li:eq('+opt.next+') .slotholder'); - nextsh.find('.defaultimg').each(function() { - var dimg = jQuery(this); - if (dimg.data('kenburn')!=undefined) { - dimg.data('kenburn').play(); - } - }); - } - }); - } - } - - - ////////////////// - // IS MOBILE ?? // - ////////////////// - var is_mobile = function() { - var agents = ['android', 'webos', 'iphone', 'ipad', 'blackberry','Android', 'webos', ,'iPod', 'iPhone', 'iPad', 'Blackberry', 'BlackBerry']; - var ismobile=false; - for(var i in agents) { - - if (navigator.userAgent.split(agents[i]).length>1) { - ismobile = true; - - } - } - return ismobile; - } - - - -/************************************************************************** - * Revolution Slider - PAN ZOOM MODULE - * @version: 1.0 (03.06.2013) - * @author ThemePunch -**************************************************************************/ - - /*********************************************** - - KEN BURN BACKGROUND FIT CALCULATOR - - ***********************************************/ - var calculateKenBurnScales = function(proc,sloth,opt) { - var ow = sloth.data('owidth'); - var oh = sloth.data('oheight'); - - if (ow / oh > opt.width / opt.height) { - var factor = (opt.container.width() /ow); - var nheight = oh * factor; - var hfactor = (nheight / opt.container.height())*proc; - proc = proc * (100/hfactor); - hfactor = 100; - proc = proc; - return (proc+"% "+hfactor+"%"+" 1"); - } else { - var factor = (opt.container.width() /ow); - var nheight = oh * factor; - var hfactor = (nheight / opt.container.height())*proc; - return (proc+"% "+hfactor+"%"); - } - } - - - - /****************************** - - startKenBurn - - ********************************/ - var startKenBurn = function(container,opt,recalc,prepareonly) { - - try{ - var actli = container.find('>ul:first-child >li:eq('+opt.act+')'); - } catch(e) { - var actli=container.find('>ul:first-child >li:eq(1)'); - } - - opt.lastslide=opt.act; - - - var nextli = container.find('>ul:first-child >li:eq('+opt.next+')'), - nextsh = nextli.find('.slotholder'), - bgps = nextsh.data('bgposition'), - bgpe = nextsh.data('bgpositionend'), - zos = nextsh.data('zoomstart')/100, - zoe = nextsh.data('zoomend')/100, - ros = nextsh.data('rotationstart'), - roe = nextsh.data('rotationend'), - bgfs = nextsh.data('bgfit'), - bgfe = nextsh.data('bgfitend'), - easeme = nextsh.data('easeme'), - dur = nextsh.data('duration')/1000, - bgfb = 100; - - - if (bgfs==undefined) bgfs=100; - if (bgfe==undefined) bgfe=100; - var obgfs = bgfs, - obgfe = bgfe; - - bgfs = calculateKenBurnScales(bgfs,nextsh,opt); - bgfe = calculateKenBurnScales(bgfe,nextsh,opt); - bgfb = calculateKenBurnScales(100,nextsh,opt); - - - if (zos==undefined) zos=1; - if (zoe==undefined) zoe=1; - if (ros==undefined) ros=0; - if (roe==undefined) roe=0; - - if (zos<1) zos=1; - if (zoe<1) zoe=1; - - - var imgobj = new Object(); - imgobj.w = parseInt(bgfb.split(" ")[0],0), - imgobj.h = parseInt(bgfb.split(" ")[1],0); - - var turned = false; - if (bgfb.split(" ")[2] == "1") { - turned = true; - } - - nextsh.find('.defaultimg').each(function() { - var defimg = jQuery(this); - if (nextsh.find('.kenburnimg').length==0) - nextsh.append('
'); - else { - nextsh.find('.kenburnimg img').css({width:imgobj.w+'%',height:imgobj.h+'%'}); - } - - - - var kbimg = nextsh.find('.kenburnimg img'); - - - var imgs = calculateKenBurnImgPos(opt,bgps,bgfs,kbimg,turned), - imge = calculateKenBurnImgPos(opt,bgpe,bgfe,kbimg,turned); - - if (turned) { - imgs.w = obgfs/100; - imge.w = obgfe/100; - } - - - - if (prepareonly) { - - punchgs.TweenLite.set(kbimg,{autoAlpha:0, - transformPerspective:1200, - transformOrigin:"0% 0%", - top:0,left:0, - scale:imgs.w, - x:imgs.x, - y:imgs.y}); - var sx = imgs.w, - ww = (sx * kbimg.width()) - opt.width, - hh = (sx * kbimg.height()) - opt.height, - hor = Math.abs((imgs.x / ww)*100), - ver = Math.abs((imgs.y / hh)*100); - if (hh==0) ver =0; - if (ww == 0) hor = 0; - defimg.data('bgposition',hor+"% "+ver+"%"); - if (!isIE(8)) defimg.data('currotate',getRotationDegrees(kbimg)); - if (!isIE(8)) defimg.data('curscale',(imgobj.w*sx)+"% "+(imgobj.h*sx+"%")); - - nextsh.find('.kenburnimg').remove(); - } - else - defimg.data('kenburn',punchgs.TweenLite.fromTo(kbimg,dur,{autoAlpha:1, force3D:punchgs.force3d, transformOrigin:"0% 0%", top:0,left:0, scale:imgs.w, x:imgs.x, y:imgs.y},{autoAlpha:1,rotationZ:roe,ease:easeme, x:imge.x, y:imge.y,scale:imge.w,onUpdate:function() { - var sx = kbimg[0]._gsTransform.scaleX; - var ww = (sx * kbimg.width()) - opt.width, - hh = (sx * kbimg.height()) - opt.height, - hor = Math.abs((kbimg[0]._gsTransform.x / ww)*100), - ver = Math.abs((kbimg[0]._gsTransform.y / hh)*100); - if (hh==0) ver =0; - if (ww == 0) hor = 0; - - defimg.data('bgposition',hor+"% "+ver+"%"); - - if (!isIE(8)) defimg.data('currotate',getRotationDegrees(kbimg)); - if (!isIE(8)) defimg.data('curscale',(imgobj.w*sx)+"% "+(imgobj.h*sx+"%")); - //punchgs.TweenLite.set(defimg,{rotation:defimg.data('currotate'), backgroundPosition:defimg.data('bgposition'), backgroundSize:defimg.data('curscale')}); - }})); - }) - } - - /************************************************* - - CALCULATE KENBURNS IMAGE POSITIONS - - **************************************************/ - - var calculateKenBurnImgPos = function(opt,bgp,bgf,img,turned) { - var imgobj = new Object; - - if (!turned) - imgobj.w = parseInt(bgf.split(" ")[0],0) / 100; - else - imgobj.w = parseInt(bgf.split(" ")[1],0) / 100; - - switch(bgp) { - case "left top": - case "top left": - imgobj.x = 0; - imgobj.y = 0; - break; - case "center top": - case "top center": - imgobj.x = (((0-img.width()) * imgobj.w) + parseInt(opt.width,0))/2; - imgobj.y = 0; - break; - case "top right": - case "right top": - imgobj.x = ((0-img.width()) * imgobj.w) + parseInt(opt.width,0); - imgobj.y = 0; - - break; - case "center left": - case "left center": - imgobj.x = 0; - imgobj.y = (((0-img.height()) * imgobj.w) + parseInt(opt.height,0)) / 2; - break; - case "center center": - imgobj.x = (((0-img.width()) * imgobj.w) + parseInt(opt.width,0))/2; - imgobj.y = (((0-img.height()) * imgobj.w) + parseInt(opt.height,0)) / 2; - - break; - case "center right": - case "right center": - imgobj.x = ((0-img.width()) * imgobj.w) + parseInt(opt.width,0); - imgobj.y = (((0-img.height()) * imgobj.w) + parseInt(opt.height,0)) / 2; - - break; - case "bottom left": - case "left bottom": - imgobj.x =0; - imgobj.y = ((0-img.height()) * imgobj.w) + parseInt(opt.height,0); - - break; - case "bottom center": - case "center bottom": - imgobj.x = (((0-img.width()) * imgobj.w) + parseInt(opt.width,0))/2; - imgobj.y = ((0-img.height()) * imgobj.w) + parseInt(opt.height,0); - break; - case "bottom right": - case "right bottom": - imgobj.x = ((0-img.width()) * imgobj.w) + parseInt(opt.width,0); - imgobj.y = ((0-img.height()) * imgobj.w) + parseInt(opt.height,0); - break; - } - - - - return imgobj; - } - - /****************************** - - GET ROTATION DEGREES - - ********************************/ - var getRotationDegrees = function(obj) { - var matrix = obj.css("-webkit-transform") || - obj.css("-moz-transform") || - obj.css("-ms-transform") || - obj.css("-o-transform") || - obj.css("transform"); - if(matrix !== 'none') { - var values = matrix.split('(')[1].split(')')[0].split(','); - var a = values[0]; - var b = values[1]; - var angle = Math.round(Math.atan2(b, a) * (180/Math.PI)); - } else { var angle = 0; } - return (angle < 0) ? angle +=360 : angle; - } - - - /****************************** - - STOP KEN BURN - - ********************************/ - var stopKenBurn = function(container,opt) { - - try{ - var actli = container.find('>ul:first-child >li:eq('+opt.act+')'); - } catch(e) { - var actli=container.find('>ul:first-child >li:eq(1)'); - } - - opt.lastslide=opt.act; - - var nextli = container.find('>ul:first-child >li:eq('+opt.next+')'); - - - var actsh = actli.find('.slotholder'); - var nextsh = nextli.find('.slotholder'); - - container.find('.defaultimg').each(function() { - var defimg = jQuery(this); - punchgs.TweenLite.killTweensOf(defimg,false); - punchgs.TweenLite.set(defimg,{scale:1,rotationZ:0}); - punchgs.TweenLite.killTweensOf(defimg.data('kenburn img'),false); - if (defimg.data('kenburn') != undefined) { - defimg.data('kenburn').pause(); - } - if (defimg.data('currotate') != undefined && defimg.data('bgposition') !=undefined && defimg.data('curscale') != undefined) - punchgs.TweenLite.set(defimg,{rotation:defimg.data('currotate'), backgroundPosition:defimg.data('bgposition'), backgroundSize:defimg.data('curscale')}); - if (defimg!= undefined && defimg.data('kenburn img') != undefined && defimg.data('kenburn img').length>0) punchgs.TweenLite.set(defimg.data('kenburn img'),{autoAlpha:0}); - - }); - } - -//// END OF KENBURNS EXTNESION - - - - -/************************************************************************** - * Revolution Slider - PARALLAX MODULE - * @version: 1.1 (23.06.2013) - * @author ThemePunch -**************************************************************************/ - - /****************************** - - PARALLAX EFFECT - - ********************************/ - var checkForParallax = function(container,opt) { - if (is_mobile() && opt.parallaxDisableOnMobile=="on") return false; - - container.find('>ul:first-child >li').each(function() { - var li = jQuery(this); - for (var i = 1; i<=10;i++) - li.find('.rs-parallaxlevel-'+i).each(function() { - var pw = jQuery(this); - pw.wrap('
'); - }); - }) - - - - if (opt.parallax=="mouse" || opt.parallax=="scroll+mouse" || opt.parallax=="mouse+scroll") { - - container.mouseenter(function(event) { - var currslide = container.find('.current-sr-slide-visible'); - var t = container.offset().top, - l = container.offset().left, - ex = (event.pageX-l), - ey = (event.pageY-t); - currslide.data("enterx",ex); - currslide.data("entery",ey); - - }) - - container.on('mousemove.hoverdir, mouseleave.hoverdir',function(event) { - var currslide = container.find('.current-sr-slide-visible'); - switch (event.type) { - - case "mousemove": - - var t = container.offset().top, - l = container.offset().left, - mh = currslide.data("enterx"), - mv = currslide.data("entery"), - diffh = (mh - (event.pageX - l)), - diffv = (mv - (event.pageY - t)); - - currslide.find(".tp-parallax-container").each(function() { - var pc = jQuery(this), - pl = parseInt(pc.data('parallaxlevel'),0)/100, - offsh = diffh * pl, - offsv = diffv * pl; - if (opt.parallax=="scroll+mouse" || opt.parallax=="mouse+scroll") - punchgs.TweenLite.to(pc,0.4,{force3D:"auto",x:offsh,ease:punchgs.Power3.easeOut,overwrite:"all"}); - else - punchgs.TweenLite.to(pc,0.4,{force3D:"auto",x:offsh,y:offsv,ease:punchgs.Power3.easeOut,overwrite:"all"}); - }) - - break; - case "mouseleave": - currslide.find(".tp-parallax-container").each(function() { - var pc = jQuery(this); - if (opt.parallax=="scroll+mouse" || opt.parallax=="mouse+scroll") - punchgs.TweenLite.to(pc,1.5,{force3D:"auto",x:0,ease:punchgs.Power3.easeOut}); - else - punchgs.TweenLite.to(pc,1.5,{force3D:"auto",x:0,y:0,ease:punchgs.Power3.easeOut}); - }) - break; - } - }); - - if (is_mobile()) - window.ondeviceorientation = function(event) { - var y = Math.round(event.beta || 0), - x = Math.round(event.gamma || 0); - - var currslide = container.find('.current-sr-slide-visible'); - - - if (jQuery(window).width() > jQuery(window).height()){ - var xx = x; - x = y; - y = xx; - - } - - var curh = 360/container.width() * x, - curv = 180/container.height() * y; - - - - - currslide.find(".tp-parallax-container").each(function() { - var pc = jQuery(this), - pl = parseInt(pc.data('parallaxlevel'),0)/100, - offsh = curh * pl, - offsv = curv * pl; - punchgs.TweenLite.to(pc,0.2,{force3D:"auto",x:offsh,y:offsv,ease:punchgs.Power3.easeOut}); - }) - - // y: -90 -> +90, x:-180 -> +180 - - //jQuery('.logo-container').html("h:"+curh+" v:"+curv); - } - } - if (opt.parallax=="scroll" || opt.parallax=="scroll+mouse" || opt.parallax=="mouse+scroll") { - - jQuery(window).on('scroll',function(event) { - scrollParallax(container,opt); - }); - } - } - - /*************************************** - - SET POST OF SCROLL PARALLAX - - ***************************************/ - var scrollParallax = function(container,opt) { - if (is_mobile() && opt.parallaxDisableOnMobile=="on") return false; - var t = container.offset().top, - st = jQuery(window).scrollTop(), - dist = t+container.height()/2, - mv = t+container.height()/2 - st, - wh = jQuery(window).height()/2, - diffv= wh - mv; - - if (dist
'); - } - var bullets = cap.find('.tp-bullets.tp-thumbs .tp-mask .tp-thumbcontainer'); - var bup = bullets.parent(); - - bup.width(opt.thumbWidth*opt.thumbAmount); - bup.height(opt.thumbHeight); - bup.parent().width(opt.thumbWidth*opt.thumbAmount); - bup.parent().height(opt.thumbHeight); - - container.find('>ul:first >li').each(function(i) { - var li= container.find(">ul:first >li:eq("+i+")"); - var bgcolor = li.find(".defaultimg").css("backgroundColor"); - if (li.data('thumb') !=undefined) - var src= li.data('thumb') - else - var src=li.find("img:first").attr('src'); - - - bullets.append('
'); - var bullet= bullets.find('.bullet:first'); - }); - //bullets.append('
'); - var minwidth=10; - - - // ADD THE BULLET CLICK FUNCTION HERE - bullets.find('.bullet').each(function(i) { - var bul = jQuery(this); - - if (i==opt.slideamount-1) bul.addClass('last'); - if (i==0) bul.addClass('first'); - bul.width(opt.thumbWidth); - bul.height(opt.thumbHeight); - - if (minwidthul:first >li').length; - - var thumbconwidth=bullets.parent().width(); - opt.thumbWidth = minwidth; - - - - //////////////////////// - // SLIDE TO POSITION // - //////////////////////// - if (thumbconwidthul:first >li').length, - diff=(max- thumbconwidth)+15, - steps = diff / thumbconwidth; - - $this.addClass("over"); - x=x-30; - - //ANIMATE TO POSITION - var pos=(0-((x)*steps)); - if (pos>0) pos =0; - if (pos<0-max+thumbconwidth) pos=0-max+thumbconwidth; - moveThumbSliderToPosition($this,pos,200); - }); - - bullets.parent().mousemove(function() { - - var $this=jQuery(this), - offset = $this.offset(), - x = jQuery('body').data('mousex')-offset.left, - thumbconwidth=$this.width(), - minwidth=$this.find('.bullet:first').outerWidth(true), - max=minwidth*container.find('>ul:first >li').length-1, - diff=(max- thumbconwidth)+15, - steps = diff / thumbconwidth; - - x=x-3; - if (x<6) x=0; - if (x+3>thumbconwidth-6) x=thumbconwidth; - - //ANIMATE TO POSITION - var pos=(0-((x)*steps)); - if (pos>0) pos =0; - if (pos<0-max+thumbconwidth) pos=0-max+thumbconwidth; - moveThumbSliderToPosition($this,pos,0); - - }); - - bullets.parent().mouseleave(function() { - var $this=jQuery(this); - $this.removeClass("over"); - moveSelectedThumb(container); - }); - } - - - } - - - /////////////////////////////// - // SelectedThumbInPosition // - ////////////////////////////// - var moveSelectedThumb = function(container) { - - var bullets=container.parent().find('.tp-bullets.tp-thumbs .tp-mask .tp-thumbcontainer'), - $this=bullets.parent(), - offset = $this.offset(), - minwidth=$this.find('.bullet:first').outerWidth(true), - x = $this.find('.bullet.selected').index() * minwidth, - thumbconwidth=$this.width(), - minwidth=$this.find('.bullet:first').outerWidth(true), - max=minwidth*container.find('>ul:first >li').length, - diff=(max- thumbconwidth), - steps = diff / thumbconwidth, - pos=0-x; - - if (pos>0) pos =0; - if (pos<0-max+thumbconwidth) pos=0-max+thumbconwidth; - if (!$this.hasClass("over")) { - moveThumbSliderToPosition($this,pos,200); - } - } - - - //////////////////////////////////// - // MOVE THUMB SLIDER TO POSITION // - /////////////////////////////////// - var moveThumbSliderToPosition = function($this,pos,speed) { - punchgs.TweenLite.to($this.find('.tp-thumbcontainer'),0.2,{force3D:"auto",left:pos,ease:punchgs.Power3.easeOut,overwrite:"auto"}); - } -})(jQuery); - - - -/// END OF THUMBNAIL EXTNESIONS - - - - - - -// SOME ERROR MESSAGES IN CASE THE PLUGIN CAN NOT BE LOADED -function revslider_showDoubleJqueryError(sliderID) { - var errorMessage = "Revolution Slider Error: You have some jquery.js library include that comes after the revolution files js include."; - errorMessage += "
This includes make eliminates the revolution slider libraries, and make it not work."; - errorMessage += "

To fix it you can:
    1. In the Slider Settings -> Troubleshooting set option: Put JS Includes To Body option to true."; - errorMessage += "
    2. Find the double jquery.js include and remove it."; - errorMessage = "" + errorMessage + "" - jQuery(sliderID).show().html(errorMessage); -} - - +/************************************************************************** + * jquery.themepunch.revolution.js - jQuery Plugin for Revolution Slider + * @version: 4.6.4 (26.11.2014) + * @requires jQuery v1.7 or later (tested on 1.9) + * @author ThemePunch +**************************************************************************/ + + +(function(jQuery,undefined){ + + + + + //////////////////////////////////////// + // THE REVOLUTION PLUGIN STARTS HERE // + /////////////////////////////////////// + + jQuery.fn.extend({ + + // OUR PLUGIN HERE :) + revolution: function(options) { + + + + //////////////////////////////// + // SET DEFAULT VALUES OF ITEM // + //////////////////////////////// + var defaults = { + delay:9000, + startheight:500, + startwidth:960, + fullScreenAlignForce:"off", + autoHeight:"off", + hideTimerBar:"off", + hideThumbs:200, + hideNavDelayOnMobile:1500, + + thumbWidth:100, // Thumb With and Height and Amount (only if navigation Tyope set to thumb !) + thumbHeight:50, + thumbAmount:3, + + navigationType:"bullet", // bullet, thumb, none + navigationArrows:"solo", // nextto, solo, none + navigationInGrid:"off", // on/off + + hideThumbsOnMobile:"off", + hideBulletsOnMobile:"off", + hideArrowsOnMobile:"off", + hideThumbsUnderResoluition:0, + + navigationStyle:"round", // round,square,navbar,round-old,square-old,navbar-old, or any from the list in the docu (choose between 50+ different item), + + navigationHAlign:"center", // Vertical Align top,center,bottom + navigationVAlign:"bottom", // Horizontal Align left,center,right + navigationHOffset:0, + navigationVOffset:20, + + soloArrowLeftHalign:"left", + soloArrowLeftValign:"center", + soloArrowLeftHOffset:20, + soloArrowLeftVOffset:0, + + soloArrowRightHalign:"right", + soloArrowRightValign:"center", + soloArrowRightHOffset:20, + soloArrowRightVOffset:0, + + keyboardNavigation:"on", + + touchenabled:"on", // Enable Swipe Function : on/off + onHoverStop:"on", // Stop Banner Timet at Hover on Slide on/off + + + stopAtSlide:-1, // Stop Timer if Slide "x" has been Reached. If stopAfterLoops set to 0, then it stops already in the first Loop at slide X which defined. -1 means do not stop at any slide. stopAfterLoops has no sinn in this case. + stopAfterLoops:-1, // Stop Timer if All slides has been played "x" times. IT will stop at THe slide which is defined via stopAtSlide:x, if set to -1 slide never stop automatic + + hideCaptionAtLimit:0, // It Defines if a caption should be shown under a Screen Resolution ( Basod on The Width of Browser) + hideAllCaptionAtLimit:0, // Hide all The Captions if Width of Browser is less then this value + hideSliderAtLimit:0, // Hide the whole slider, and stop also functions if Width of Browser is less than this value + + shadow:0, //0 = no Shadow, 1,2,3 = 3 Different Art of Shadows (No Shadow in Fullwidth Version !) + fullWidth:"off", // Turns On or Off the Fullwidth Image Centering in FullWidth Modus + fullScreen:"off", + minFullScreenHeight:0, // The Minimum FullScreen Height + fullScreenOffsetContainer:"", // Size for FullScreen Slider minimising Calculated on the Container sizes + fullScreenOffset:"0", // Size for FullScreen Slider minimising + dottedOverlay:"none", //twoxtwo, threexthree, twoxtwowhite, threexthreewhite + + forceFullWidth:"off", // Force The FullWidth + + spinner:"spinner0", + + swipe_treshold : 75, // The number of pixels that the user must move their finger by before it is considered a swipe. + swipe_min_touches : 1, // Min Finger (touch) used for swipe + drag_block_vertical:false, // Prevent Vertical Scroll during Swipe + isJoomla:false, + parallax:"off", + parallaxLevels: [10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85], + parallaxBgFreeze: "off", + parallaxOpacity:"on", + parallaxDisableOnMobile:"off", + panZoomDisableOnMobile:"off", + simplifyAll:"on", + minHeight:0, + nextSlideOnWindowFocus:"off", + + startDelay:0 // Delay before the first Animation starts. + + + }; + + options = jQuery.extend({}, defaults, options); + + return this.each(function() { + + + // REPORT SOME IMPORTAN INFORMATION ABOUT THE SLIDER + if (window.tplogs==true) + try{ + console.groupCollapsed("Slider Revolution 4.6.3 Initialisation on "+jQuery(this).attr('id')); + console.groupCollapsed("Used Options:"); + console.info(options); + console.groupEnd(); + console.groupCollapsed("Tween Engine:") + } catch(e) {} + + // CHECK IF TweenLite IS LOADED AT ALL + if (punchgs.TweenLite==undefined) { + if (window.tplogs==true) + try{ console.error("GreenSock Engine Does not Exist!"); + } catch(e) {} + return false; + } + + punchgs.force3D = true; + + if (window.tplogs==true) + try{ console.info("GreenSock Engine Version in Slider Revolution:"+punchgs.TweenLite.version); + } catch(e) { + + } + + if (options.simplifyAll=="on") { + + } else { + punchgs.TweenLite.lagSmoothing(1000,16); + punchgs.force3D = "true"; + } + + if (window.tplogs==true) + try{ + console.groupEnd(); + console.groupEnd(); + } catch(e) {} + + + initSlider(jQuery(this),options) + + + }) + }, + + + // METHODE PAUSE + revscroll: function(oy) { + return this.each(function() { + var container=jQuery(this); + if (container!=undefined && container.length>0 && jQuery('body').find('#'+container.attr('id')).length>0) + jQuery('body,html').animate({scrollTop:(container.offset().top+(container.find('>ul >li').height())-oy)+"px"},{duration:400}); + }) + }, + + // METHODE PAUSE + revredraw: function(oy) { + return this.each(function() { + var container=jQuery(this); + if (container!=undefined && container.length>0 && jQuery('body').find('#'+container.attr('id')).length>0) { + var bt = container.parent().find('.tp-bannertimer'); + var opt = bt.data('opt'); + containerResized(container,opt); + } + }) + }, + // METHODE PAUSE + revkill: function(oy) { + + var self = this, + container=jQuery(this); + + if (container!=undefined && container.length>0 && jQuery('body').find('#'+container.attr('id')).length>0) { + + container.data('conthover',1); + container.data('conthover-changed',1); + container.trigger('revolution.slide.onpause'); + var bt = container.parent().find('.tp-bannertimer'); + var opt = bt.data('opt'); + opt.bannertimeronpause = true; + container.trigger('stoptimer'); + + punchgs.TweenLite.killTweensOf(container.find('*'),false); + punchgs.TweenLite.killTweensOf(container,false); + container.unbind('hover, mouseover, mouseenter,mouseleave, resize'); + var resizid = "resize.revslider-"+container.attr('id'); + jQuery(window).off(resizid); + container.find('*').each(function() { + var el = jQuery(this); + + el.unbind('on, hover, mouseenter,mouseleave,mouseover, resize,restarttimer, stoptimer'); + el.off('on, hover, mouseenter,mouseleave,mouseover, resize'); + el.data('mySplitText',null); + el.data('ctl',null); + if (el.data('tween')!=undefined) + el.data('tween').kill(); + if (el.data('kenburn')!=undefined) + el.data('kenburn').kill(); + el.remove(); + el.empty(); + el=null; + }) + + + punchgs.TweenLite.killTweensOf(container.find('*'),false); + punchgs.TweenLite.killTweensOf(container,false); + bt.remove(); + try{container.closest('.forcefullwidth_wrapper_tp_banner').remove();} catch(e) {} + try{container.closest('.rev_slider_wrapper').remove()} catch(e) {} + try{container.remove();} catch(e) {} + container.empty(); + container.html(); + container = null; + + opt = null; + delete(self.container); + delete(self.opt); + + return true; + } else { + return false; + } + + + }, + + // METHODE PAUSE + revpause: function(options) { + + return this.each(function() { + var container=jQuery(this); + if (container!=undefined && container.length>0 && jQuery('body').find('#'+container.attr('id')).length>0) { + container.data('conthover',1); + container.data('conthover-changed',1); + container.trigger('revolution.slide.onpause'); + var bt = container.parent().find('.tp-bannertimer'); + var opt = bt.data('opt'); + opt.bannertimeronpause = true; + container.trigger('stoptimer'); + } + }) + + + }, + + // METHODE RESUME + revresume: function(options) { + return this.each(function() { + var container=jQuery(this); + if (container!=undefined && container.length>0 && jQuery('body').find('#'+container.attr('id')).length>0) { + container.data('conthover',0); + container.data('conthover-changed',1); + container.trigger('revolution.slide.onresume'); + var bt = container.parent().find('.tp-bannertimer'); + var opt = bt.data('opt'); + opt.bannertimeronpause = false; + container.trigger('starttimer'); + } + }) + + }, + + // METHODE NEXT + revnext: function(options) { + return this.each(function() { + + // CATCH THE CONTAINER + var container=jQuery(this); + if (container!=undefined && container.length>0 && jQuery('body').find('#'+container.attr('id')).length>0) + container.parent().find('.tp-rightarrow').click(); + + + }) + + }, + + // METHODE RESUME + revprev: function(options) { + return this.each(function() { + // CATCH THE CONTAINER + var container=jQuery(this); + if (container!=undefined && container.length>0 && jQuery('body').find('#'+container.attr('id')).length>0) + container.parent().find('.tp-leftarrow').click(); + }) + + }, + + // METHODE LENGTH + revmaxslide: function(options) { + // CATCH THE CONTAINER + return jQuery(this).find('>ul:first-child >li').length; + }, + + + // METHODE CURRENT + revcurrentslide: function(options) { + // CATCH THE CONTAINER + var container=jQuery(this); + if (container!=undefined && container.length>0 && jQuery('body').find('#'+container.attr('id')).length>0) { + var bt = container.parent().find('.tp-bannertimer'); + var opt = bt.data('opt'); + return opt.act; + } + }, + + // METHODE CURRENT + revlastslide: function(options) { + // CATCH THE CONTAINER + var container=jQuery(this); + if (container!=undefined && container.length>0 && jQuery('body').find('#'+container.attr('id')).length>0) { + var bt = container.parent().find('.tp-bannertimer'); + var opt = bt.data('opt'); + return opt.lastslide; + } + }, + + + // METHODE JUMP TO SLIDE + revshowslide: function(slide) { + return this.each(function() { + // CATCH THE CONTAINER + var container=jQuery(this); + if (container!=undefined && container.length>0 && jQuery('body').find('#'+container.attr('id')).length>0) { + container.data('showus',slide); + container.parent().find('.tp-rightarrow').click(); + } + }) + + } + + +}) + /******************************************* + - IS IOS VERSION OLDER THAN 5 ?? - + *******************************************/ + + function iOSVersion() { + var oldios = false; + if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) { + if (navigator.userAgent.match(/OS 4_\d like Mac OS X/i)) { + oldios = true; + } + } else { + oldios = false; + } + return oldios; + } + + function initSlider(container,opt) { + if (container==undefined) return false; + + if (container.data('aimg')!=undefined) { + if ((container.data('aie8')=="enabled" && isIE(8)) || (container.data('amobile')=="enabled" && is_mobile())) + container.html(''); + } + // PREPARE FALL BACK SETTINGS + if (opt.navigationStyle=="preview1" || opt.navigationStyle=="preview3" || opt.navigationStyle=="preview4") { + opt.soloArrowLeftHalign="left"; + opt.soloArrowLeftValign="center"; + opt.soloArrowLeftHOffset=0; + opt.soloArrowLeftVOffset=0; + opt.soloArrowRightHalign="right"; + opt.soloArrowRightValign="center"; + opt.soloArrowRightHOffset=0; + opt.soloArrowRightVOffset=0; + opt.navigationArrows="solo"; + } + + + // SIMPLIFY ANIMATIONS ON OLD IOS AND IE8 IF NEEDED + if (opt.simplifyAll=="on" && (isIE(8) || iOSVersion())) { + container.find('.tp-caption').each(function() { + var tc = jQuery(this); + tc.removeClass("customin").removeClass("customout").addClass("fadein").addClass("fadeout"); + tc.data('splitin',""); + tc.data('speed',400); + }) + container.find('>ul>li').each(function() { + var li= jQuery(this); + li.data('transition',"fade"); + li.data('masterspeed',500); + li.data('slotamount',1); + var img = li.find('>img').first(); + img.data('kenburns',"off"); + }); + } + + + + + + opt.desktop = !navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i); + + if (opt.fullWidth!="on" && opt.fullScreen!="on") opt.autoHeight = "off"; + if (opt.fullScreen=="on") opt.autoHeight = "on"; + if (opt.fullWidth!="on" && opt.fullScreen!="on") forceFulWidth="off"; + + if (opt.fullWidth=="on" && opt.autoHeight=="off") + container.css({maxHeight:opt.startheight+"px"}); + + if (is_mobile() && opt.hideThumbsOnMobile=="on" && opt.navigationType=="thumb") + opt.navigationType = "none" + + if (is_mobile() && opt.hideBulletsOnMobile=="on" && opt.navigationType=="bullet") + opt.navigationType = "none" + + if (is_mobile() && opt.hideBulletsOnMobile=="on" && opt.navigationType=="both") + opt.navigationType = "none" + + if (is_mobile() && opt.hideArrowsOnMobile=="on") + opt.navigationArrows = "none" + + if (opt.forceFullWidth=="on" && container.closest('.forcefullwidth_wrapper_tp_banner').length==0) { + + var loff = container.parent().offset().left; + var mb = container.parent().css('marginBottom'); + var mt = container.parent().css('marginTop'); + if (mb==undefined) mb=0; + if (mt==undefined) mt=0; + + container.parent().wrap('
'); + container.closest('.forcefullwidth_wrapper_tp_banner').append('
'); + container.css({'backgroundColor':container.parent().css('backgroundColor'),'backgroundImage':container.parent().css('backgroundImage')}); + //container.parent().css({'position':'absolute','width':jQuery(window).width()}); + container.parent().css({'left':(0-loff)+"px",position:'absolute','width':jQuery(window).width()}); + opt.width=jQuery(window).width(); + } + + // HIDE THUMBS UNDER RESOLUTION + try{ + if (opt.hideThumbsUnderResolution>jQuery(window).width() && opt.hideThumbsUnderResolution!=0) { + container.parent().find('.tp-bullets.tp-thumbs').css({display:"none"}); + } else { + container.parent().find('.tp-bullets.tp-thumbs').css({display:"block"}); + } + } catch(e) {} + + if (!container.hasClass("revslider-initialised")) { + + container.addClass("revslider-initialised"); + if (container.attr('id')==undefined) container.attr('id',"revslider-"+Math.round(Math.random()*1000+5)); + + // CHECK IF FIREFOX 13 IS ON WAY.. IT HAS A STRANGE BUG, CSS ANIMATE SHOULD NOT BE USED + + + + opt.firefox13 = false; + opt.ie = !jQuery.support.opacity; + opt.ie9 = (document.documentMode == 9); + + opt.origcd=opt.delay; + + // CHECK THE jQUERY VERSION + var version = jQuery.fn.jquery.split('.'), + versionTop = parseFloat(version[0]), + versionMinor = parseFloat(version[1]), + versionIncrement = parseFloat(version[2] || '0'); + + if (versionTop==1 && versionMinor < 7) { + container.html('
The Current Version of jQuery:'+version+'
Please update your jQuery Version to min. 1.7 in Case you wish to use the Revolution Slider Plugin
'); + } + + if (versionTop>1) opt.ie=false; + + + // Delegate .transition() calls to .animate() + // if the browser can't do CSS transitions. + if (!jQuery.support.transition) + jQuery.fn.transition = jQuery.fn.animate; + + // CATCH THE CONTAINER + + + // LOAD THE YOUTUBE API IF NECESSARY + + container.find('.caption').each(function() { jQuery(this).addClass('tp-caption')}); + + if (is_mobile()) { + container.find('.tp-caption').each(function() { + var nextcaption = jQuery(this); + if (nextcaption.data('autoplayonlyfirsttime') == true || nextcaption.data('autoplayonlyfirsttime')=="true") + nextcaption.data('autoplayonlyfirsttime',"false"); + if (nextcaption.data('autoplay')==true || nextcaption.data('autoplay')=="true") + nextcaption.data('autoplay',false); + + }) + } + + + var addedyt=0; + var addedvim=0; + var addedvid=0; + var httpprefix = "http"; + + if (location.protocol === 'https:') { + httpprefix = "https"; + } + container.find('.tp-caption').each(function(i) { + // IF SRC EXIST, RESET SRC'S since WE DONT NEED THEM !! + + try { + + if ((jQuery(this).data('ytid')!=undefined || jQuery(this).find('iframe').attr('src').toLowerCase().indexOf('youtube')>0) && addedyt==0) { + addedyt=1; + var s = document.createElement("script"); + var httpprefix2 = "https"; + s.src = httpprefix2+"://www.youtube.com/iframe_api"; /* Load Player API*/ + + var before = document.getElementsByTagName("script")[0]; + var loadit = true; + jQuery('head').find('*').each(function(){ + if (jQuery(this).attr('src') == httpprefix2+"://www.youtube.com/iframe_api") + loadit = false; + }); + if (loadit) { + before.parentNode.insertBefore(s, before); + + + } + } + } catch(e) {} + + try{ + if ((jQuery(this).data('vimeoid')!=undefined || jQuery(this).find('iframe').attr('src').toLowerCase().indexOf('vimeo')>0) && addedvim==0) { + addedvim=1; + var f = document.createElement("script"); + f.src = httpprefix+"://a.vimeocdn.com/js/froogaloop2.min.js"; /* Load Player API*/ + var before = document.getElementsByTagName("script")[0]; + + var loadit = true; + jQuery('head').find('*').each(function(){ + if (jQuery(this).attr('src') == httpprefix+"://a.vimeocdn.com/js/froogaloop2.min.js") + loadit = false; + }); + if (loadit) + before.parentNode.insertBefore(f, before); + } + } catch(e) {} + + try{ + if ((jQuery(this).data('videomp4')!=undefined || jQuery(this).data('videowebm')!=undefined)) { + + } + } catch(e) {} + }); + + + + + // REMOVE ANY VIDEO JS SETTINGS OF THE VIDEO IF NEEDED + container.find('.tp-caption video').each(function(i) { + jQuery(this).removeClass("video-js").removeClass("vjs-default-skin"); + jQuery(this).attr("preload",""); + jQuery(this).css({display:"none"}); + }); + + container.find('>ul:first-child >li').each(function() { + var t = jQuery(this); + t.data('origindex',t.index()); + }) + + // SHUFFLE MODE + if (opt.shuffle=="on") { + var fsa = new Object, + fli = container.find('>ul:first-child >li:first-child') + + fsa.fstransition = fli.data('fstransition'); + fsa.fsmasterspeed = fli.data('fsmasterspeed'); + fsa.fsslotamount = fli.data('fsslotamount'); + + + + for (var u=0;uul:first-child >li').length;u++) { + var it = Math.round(Math.random()*container.find('>ul:first-child >li').length); + container.find('>ul:first-child >li:eq('+it+')').prependTo(container.find('>ul:first-child')); + } + + var newfli = container.find('>ul:first-child >li:first-child'); + newfli.data('fstransition',fsa.fstransition); + newfli.data('fsmasterspeed',fsa.fsmasterspeed); + newfli.data('fsslotamount',fsa.fsslotamount); + } + + + // CREATE SOME DEFAULT OPTIONS FOR LATER + opt.slots=4; + opt.act=-1; + opt.next=0; + + // IF START SLIDE IS SET + if (opt.startWithSlide !=undefined) opt.next=opt.startWithSlide; + + // IF DEEPLINK HAS BEEN SET + var deeplink = getUrlVars("#")[0]; + if (deeplink.length<9) { + if (deeplink.split('slide').length>1) { + var dslide=parseInt(deeplink.split('slide')[1],0); + if (dslide<1) dslide=1; + if (dslide>container.find('>ul:first >li').length) dslide=container.find('>ul:first >li').length; + opt.next=dslide-1; + } + } + + + opt.firststart=1; + + // BASIC OFFSET POSITIONS OF THE BULLETS + if (opt.navigationHOffset==undefined) opt.navOffsetHorizontal=0; + if (opt.navigationVOffset==undefined) opt.navOffsetVertical=0; + + + + container.append('
'+ + '
'+ + '
'+ + '
'+ + '
'+ + '
'+ + '
'); + + // RESET THE TIMER + if (container.find('.tp-bannertimer').length==0) container.append(''); + var bt=container.find('.tp-bannertimer'); + if (bt.length>0) { + bt.css({'width':'0%'}); + }; + + + // WE NEED TO ADD A BASIC CLASS FOR SETTINGS.CSS + container.addClass("tp-simpleresponsive"); + opt.container=container; + + //if (container.height()==0) container.height(opt.startheight); + + // AMOUNT OF THE SLIDES + opt.slideamount = container.find('>ul:first >li').length; + + + // A BASIC GRID MUST BE DEFINED. IF NO DEFAULT GRID EXIST THAN WE NEED A DEFAULT VALUE, ACTUAL SIZE OF CONAINER + if (container.height()==0) container.height(opt.startheight); + if (opt.startwidth==undefined || opt.startwidth==0) opt.startwidth=container.width(); + if (opt.startheight==undefined || opt.startheight==0) opt.startheight=container.height(); + + // OPT WIDTH && HEIGHT SHOULD BE SET + opt.width=container.width(); + opt.height=container.height(); + + + // DEFAULT DEPENDECIES + opt.bw= opt.startwidth / container.width(); + opt.bh = opt.startheight / container.height(); + + // IF THE ITEM ALREADY IN A RESIZED FORM + if (opt.width!=opt.startwidth) { + + opt.height = Math.round(opt.startheight * (opt.width/opt.startwidth)); + + container.height(opt.height); + + } + + // LETS SEE IF THERE IS ANY SHADOW + if (opt.shadow!=0) { + container.parent().append('
'); + var loff=0; + if (opt.forceFullWidth=="on") + loff = 0-opt.container.parent().offset().left; + container.parent().find('.tp-bannershadow').css({'width':opt.width,'left':loff}); + } + + + container.find('ul').css({'display':'none'}); + + var fliparent = container; + + + // PREPARE THE SLIDES + container.find('ul').css({'display':'block'}); + prepareSlides(container,opt); + if (opt.parallax!="off") checkForParallax(container,opt); + + // CREATE BULLETS + if (opt.slideamount >1) createBullets(container,opt); + + if (opt.slideamount >1 && opt.navigationType=="thumb") createThumbs(container,opt); + if (opt.slideamount >1) createArrows(container,opt); + if (opt.keyboardNavigation=="on") createKeyboard(container,opt); + + + swipeAction(container,opt); + + + if (opt.hideThumbs>0) hideThumbs(container,opt); + setTimeout(function() { + swapSlide(container,opt); + },opt.startDelay); + opt.startDelay=0; + // START COUNTDOWN + if (opt.slideamount >1) countDown(container,opt); + setTimeout(function() { + container.trigger('revolution.slide.onloaded'); + },500); + + + + /****************************** + - FULLSCREEN CHANGE - + ********************************/ + // FULLSCREEN MODE TESTING + jQuery("body").data('rs-fullScreenMode',false); + jQuery(window).on ('mozfullscreenchange webkitfullscreenchange fullscreenchange',function(){ + jQuery("body").data('rs-fullScreenMode',!jQuery("body").data('rs-fullScreenMode')); + if (jQuery("body").data('rs-fullScreenMode')) { + setTimeout(function() { + jQuery(window).trigger("resize"); + + },200); + } + }) + + + var resizid = "resize.revslider-"+container.attr('id'); + + // IF RESIZED, NEED TO STOP ACTUAL TRANSITION AND RESIZE ACTUAL IMAGES + jQuery(window).on(resizid,function() { + if (container==undefined) return false; + if (jQuery('body').find(container)!=0) + if (opt.forceFullWidth=="on" ) { + + var loff = opt.container.closest('.forcefullwidth_wrapper_tp_banner').offset().left; + //opt.container.parent().css({'width':jQuery(window).width()}); + opt.container.parent().css({'left':(0-loff)+"px",'width':jQuery(window).width()}); + } + + if (container.outerWidth(true)!=opt.width || container.is(":hidden")) { + containerResized(container,opt); + } + + + + + }); + + // HIDE THUMBS UNDER SIZE... + try{ + if (opt.hideThumbsUnderResoluition!=0 && opt.navigationType=="thumb") { + if (opt.hideThumbsUnderResoluition>jQuery(window).width()) + jQuery('.tp-bullets').css({display:"none"}); + else + jQuery('.tp-bullets').css({display:"block"}); + } + } catch(e) {} + + + + // CHECK IF THE CAPTION IS A "SCROLL ME TO POSITION" CAPTION IS + //if (opt.fullScreen=="on") { + container.find('.tp-scrollbelowslider').on('click',function() { + var off=0; + try{ + off = jQuery('body').find(opt.fullScreenOffsetContainer).height(); + } catch(e) {} + try{ + off = off - parseInt(jQuery(this).data('scrolloffset'),0); + } catch(e) {} + + + jQuery('body,html').animate( + {scrollTop:(container.offset().top+(container.find('>ul >li').height())-off)+"px"},{duration:400}); + }); + //} + + + // FIRST TIME STOP/START HIDE / SHOW SLIDER + //REMOVE AND SHOW SLIDER ON DEMAND + var contpar= container.parent(); + if (jQuery(window).width()jQuery(window).width()) + jQuery('.tp-bullets').css({display:"none"}); + else + jQuery('.tp-bullets').css({display:"block"}); + } + } catch(e) {} + + + + container.find('.defaultimg').each(function(i) { + setSize(jQuery(this),opt); + }); + + + //REMOVE AND SHOW SLIDER ON DEMAND + var contpar= container.parent(); + if (jQuery(window).width()ul >li:eq('+opt.act+') .slotholder'); + var nextsh = container.find('>ul >li:eq('+opt.next+') .slotholder'); + removeSlots(container,opt,container); + punchgs.TweenLite.set(nextsh.find('.defaultimg'),{opacity:0}); + actsh.find('.defaultimg').css({'opacity':1}); + + nextsh.find('.defaultimg').each(function() { + var dimg = jQuery(this); + + if (opt.panZoomDisableOnMobile == "on") { + // NO KEN BURNS ON MOBILE DEVICES + + } else { + if (dimg.data('kenburn')!=undefined) { + dimg.data('kenburn').restart(); + startKenBurn(container,opt,true) + } + } + }); + + var nextli = container.find('>ul >li:eq('+opt.next+')'); + + + + var arr = container.parent().find('.tparrows'); + if (arr.hasClass("preview2")) + arr.css({width:(parseInt(arr.css('minWidth'),0))}); + + + animateTheCaptions(nextli, opt,true); + //restartBannerTimer(opt,container); + setBulPos(container,opt); + + } + + + + + /********************************* + - CHECK IF BROWSER IS IE - + ********************************/ + var isIE = function( version, comparison ){ + var $div = jQuery('
').appendTo(jQuery('body')); + $div.html(''); + var ieTest = $div.find('a').length; + $div.remove(); + return ieTest; + } + + + + var callingNewSlide = function(opt,container) { + // CHECK THE LOOPS !! + if (opt.next==container.find('>ul >li').length-1) { + opt.looptogo=opt.looptogo-1; + if (opt.looptogo<=0) + opt.stopLoop="on"; + } + swapSlide(container,opt); + + } + + + + + + + //////////////////////////////// + // - CREATE THE BULLETS - // + //////////////////////////////// + var createBullets = function(container,opt) { + var starthidebullets = "hidebullets"; + if (opt.hideThumbs==0) starthidebullets = ""; + + if (opt.navigationType=="bullet" || opt.navigationType=="both") { + container.parent().append('
'); + } + + var bullets = container.parent().find('.tp-bullets'); + container.find('>ul:first >li').each(function(i) { + var src=container.find(">ul:first >li:eq("+i+") img:first").attr('src'); + bullets.append('
'); + var bullet= bullets.find('.bullet:first'); + }); + // ADD THE BULLET CLICK FUNCTION HERE + bullets.find('.bullet').each(function(i) { + var bul = jQuery(this); + if (i==opt.slideamount-1) bul.addClass('last'); + if (i==0) bul.addClass('first'); + + bul.click(function() { + var sameslide = false, + buli = bul.index(); + + if (opt.navigationArrows=="withbullet" || opt.navigationArrows=="nexttobullets") + buli = bul.index()-1; + + if (buli == opt.act) sameslide=true; + + if (opt.transition==0 && !sameslide) { + opt.next = buli; + callingNewSlide(opt,container); + } + }); + + }); + bullets.append('
'); + setBulPos(container,opt); + } + + ////////////////////// + // CREATE ARROWS // + ///////////////////// + var createArrows = function(container,opt) { + var bullets = container.find('.tp-bullets'), + hidden="", + starthidearrows = "hidearrows", + arst= opt.navigationStyle; + + if (opt.hideThumbs==0) starthidearrows = ""; + + + if (opt.navigationArrows=="none") hidden="visibility:hidden;display:none"; + opt.soloArrowStyle = "default"+" "+opt.navigationStyle; + + if (opt.navigationArrows!="none" && opt.navigationArrows!="nexttobullets") arst = opt.soloArrowStyle; + + function aArrow(dir) { + container.parent().append('
'); + } + aArrow("left"); + aArrow("right"); + + // THE LEFT / RIGHT BUTTON CLICK ! // + container.parent().find('.tp-rightarrow').click(function() { + if (opt.transition==0) { + if (container.data('showus') !=undefined && container.data('showus') != -1) + opt.next = container.data('showus')-1; + else + opt.next = opt.next+1; + container.data('showus',-1); + if (opt.next >= opt.slideamount) opt.next=0; + if (opt.next<0) opt.next=0; + + if (opt.act !=opt.next) + callingNewSlide(opt,container); + } + }); + + container.parent().find('.tp-leftarrow').click(function() { + if (opt.transition==0) { + opt.next = opt.next-1; + opt.leftarrowpressed=1; + if (opt.next < 0) opt.next=opt.slideamount-1; + callingNewSlide(opt,container); + } + }); + + setBulPos(container,opt); + + } + + ////////////////////////////////// + // ENABLE KEYBOARD INTERACTION // + ////////////////////////////////// + var createKeyboard = function(container,opt) { + // THE LEFT / RIGHT BUTTON CLICK ! // + jQuery(document).keydown(function(e){ + if (opt.transition==0 && e.keyCode == 39) { + if (container.data('showus') !=undefined && container.data('showus') != -1) + opt.next = container.data('showus')-1; + else + opt.next = opt.next+1; + container.data('showus',-1); + if (opt.next >= opt.slideamount) opt.next=0; + if (opt.next<0) opt.next=0; + if (opt.act !=opt.next) + callingNewSlide(opt,container); + } + + if (opt.transition==0 && e.keyCode == 37) { + opt.next = opt.next-1; + opt.leftarrowpressed=1; + if (opt.next < 0) opt.next=opt.slideamount-1; + callingNewSlide(opt,container); + } + }); + + setBulPos(container,opt); + + } + + //////////////////////////// + // SET THE SWIPE FUNCTION // + //////////////////////////// + var swipeAction = function(container,opt) { + // TOUCH ENABLED SCROLL + var aps = "vertical"; + + if (opt.touchenabled=="on") { + if (opt.drag_block_vertical == true) + aps = "none"; + + container.swipe({ + allowPageScroll:aps, + fingers:opt.swipe_min_touches, + treshold:opt.swipe_treshold, + swipe:function(event,direction,distance,duration,fingerCount,fingerData) { + switch (direction) { + case "left": + if (opt.transition==0) { + opt.next = opt.next+1; + if (opt.next == opt.slideamount) opt.next=0; + callingNewSlide(opt,container); + } + break; + case "right": + if (opt.transition==0) { + opt.next = opt.next-1; + opt.leftarrowpressed=1; + if (opt.next < 0) opt.next=opt.slideamount-1; + callingNewSlide(opt,container); + } + break; + case "up": + if (aps=="none") + jQuery("html, body").animate({scrollTop:(container.offset().top + container.height())+"px"}); + break; + case "down": + if (aps=="none") + jQuery("html, body").animate({scrollTop:(container.offset().top - jQuery(window).height())+"px"}); + break; + } + } + }) + + } + + } + + + + + //////////////////////////////////////////////////////////////// + // SHOW AND HIDE THE THUMBS IF MOUE GOES OUT OF THE BANNER /// + ////////////////////////////////////////////////////////////// + var hideThumbs = function(container,opt) { + + var bullets = container.parent().find('.tp-bullets'), + ca = container.parent().find('.tparrows'); + + if (bullets==null) { + container.append('
'); + var bullets = container.parent().find('.tp-bullets'); + } + + if (ca==null) { + container.append('
'); + var ca = container.parent().find('.tparrows'); + } + + + //var bp = (thumbs.parent().outerHeight(true) - opt.height)/2; + + // ADD THUMBNAIL IMAGES FOR THE BULLETS // + container.data('hideThumbs',opt.hideThumbs); + + bullets.addClass("hidebullets"); + ca.addClass("hidearrows"); + + if (is_mobile()) { + try{ + container.hammer().on('touch', function() { + container.addClass("hovered"); + if (opt.onHoverStop=="on") + container.trigger('stoptimer'); + clearTimeout(container.data('hideThumbs')); + bullets.removeClass("hidebullets"); + ca.removeClass("hidearrows"); + + + }); + + container.hammer().on('release', function() { + container.removeClass("hovered"); + container.trigger('starttimer'); + if (!container.hasClass("hovered") && !bullets.hasClass("hovered")) + container.data('hideThumbs', setTimeout(function() { + bullets.addClass("hidebullets"); + ca.addClass("hidearrows"); + container.trigger('starttimer'); + },opt.hideNavDelayOnMobile)); + }); + } catch(e) {} + + } else { + bullets.hover(function() { + opt.overnav = true; + if (opt.onHoverStop=="on") + container.trigger('stoptimer'); + bullets.addClass("hovered"); + clearTimeout(container.data('hideThumbs')); + bullets.removeClass("hidebullets"); + ca.removeClass("hidearrows"); + }, + function() { + opt.overnav = false; + container.trigger('starttimer'); + bullets.removeClass("hovered"); + if (!container.hasClass("hovered") && !bullets.hasClass("hovered")) + container.data('hideThumbs', setTimeout(function() { + bullets.addClass("hidebullets"); + ca.addClass("hidearrows"); + },opt.hideThumbs)); + }); + + + ca.hover(function() { + opt.overnav = true; + if (opt.onHoverStop=="on") + container.trigger('stoptimer'); + bullets.addClass("hovered"); + clearTimeout(container.data('hideThumbs')); + bullets.removeClass("hidebullets"); + ca.removeClass("hidearrows"); + + }, + function() { + opt.overnav = false; + container.trigger('starttimer'); + bullets.removeClass("hovered"); + }); + + + + container.on('mouseenter', function() { + container.addClass("hovered"); + if (opt.onHoverStop=="on") + container.trigger('stoptimer'); + clearTimeout(container.data('hideThumbs')); + bullets.removeClass("hidebullets"); + ca.removeClass("hidearrows"); + + + }); + + container.on('mouseleave', function() { + container.removeClass("hovered"); + container.trigger('starttimer'); + if (!container.hasClass("hovered") && !bullets.hasClass("hovered")) + container.data('hideThumbs', setTimeout(function() { + bullets.addClass("hidebullets"); + ca.addClass("hidearrows"); + },opt.hideThumbs)); + }); + } + + + } + + + ////////////////////////////// + // SET POSITION OF BULLETS // + ////////////////////////////// + var setBulPos = function(container,opt) { + var topcont=container.parent(); + var bullets=topcont.find('.tp-bullets'); + + if (opt.navigationType=="thumb") { + bullets.find('.thumb').each(function(i) { + var thumb = jQuery(this); + + thumb.css({'width':opt.thumbWidth * opt.bw+"px", 'height':opt.thumbHeight*opt.bh+"px"}); + + }) + var bup = bullets.find('.tp-mask'); + + bup.width(opt.thumbWidth*opt.thumbAmount * opt.bw); + bup.height(opt.thumbHeight * opt.bh); + bup.parent().width(opt.thumbWidth*opt.thumbAmount * opt.bw); + bup.parent().height(opt.thumbHeight * opt.bh); + } + + + var tl = topcont.find('.tp-leftarrow'); + var tr = topcont.find('.tp-rightarrow'); + + if (opt.navigationType=="thumb" && opt.navigationArrows=="nexttobullets") opt.navigationArrows="solo"; + // IM CASE WE HAVE NAVIGATION BULLETS TOGETHER WITH ARROWS + if (opt.navigationArrows=="nexttobullets") { + tl.prependTo(bullets).css({'float':'left'}); + tr.insertBefore(bullets.find('.tpclear')).css({'float':'left'}); + } + var loff=0; + if (opt.forceFullWidth=="on") + loff = 0-opt.container.parent().offset().left; + + var gridposX = 0, + gridposY = 0; + + if (opt.navigationInGrid=="on") { + gridposX = container.width()>opt.startwidth ? (container.width() - opt.startwidth)/2 : 0, + gridposY = container.height()>opt.startheight ? (container.height() - opt.startheight)/2 : 0; + } + + + + if (opt.navigationArrows!="none" && opt.navigationArrows!="nexttobullets") { + var lv = opt.soloArrowLeftValign, + lh = opt.soloArrowLeftHalign, + rv = opt.soloArrowRightValign, + rh = opt.soloArrowRightHalign, + lvo = opt.soloArrowLeftVOffset, + lho = opt.soloArrowLeftHOffset, + rvo = opt.soloArrowRightVOffset, + rho = opt.soloArrowRightHOffset; + + tl.css({'position':'absolute'}); + tr.css({'position':'absolute'}); + + if (lv=="center") tl.css({'top':'50%','marginTop':(lvo-Math.round(tl.innerHeight()/2))+"px"}) + else + if (lv=="bottom") tl.css({'top':'auto','bottom':(0+lvo)+"px"}) + else + if (lv=="top") tl.css({'bottom':'auto','top':(0+lvo)+"px"}); + + if (lh=="center") tl.css({'left':'50%','marginLeft':(loff+lho-Math.round(tl.innerWidth()/2))+"px"}) + else + if (lh=="left") tl.css({'left':(gridposX+lho+loff)+"px"}) + else + if (lh=="right") tl.css({'right':(gridposX+lho-loff)+"px"}); + + if (rv=="center") tr.css({'top':'50%','marginTop':(rvo-Math.round(tr.innerHeight()/2))+"px"}) + else + if (rv=="bottom") tr.css({'top':'auto','bottom':(0+rvo)+"px"}) + else + if (rv=="top") tr.css({'bottom':'auto','top':(0+rvo)+"px"}) + + if (rh=="center") tr.css({'left':'50%','marginLeft':(loff+rho-Math.round(tr.innerWidth()/2))+"px"}) + else + if (rh=="left") tr.css({'left':(gridposX+rho+loff)+"px"}) + else + if (rh=="right") tr.css({'right':(gridposX+rho-loff)+"px"}) + + + if (tl.position()!=null) + tl.css({'top':Math.round(parseInt(tl.position().top,0))+"px"}); + + if (tr.position()!=null) + tr.css({'top':Math.round(parseInt(tr.position().top,0))+"px"}); + } + + if (opt.navigationArrows=="none") { + tl.css({'visibility':'hidden'}); + tr.css({'visibility':'hidden'}); + } + + // SET THE POSITIONS OF THE BULLETS // THUMBNAILS + var nv = opt.navigationVAlign, + nh = opt.navigationHAlign, + nvo = opt.navigationVOffset * opt.bh, + nho = opt.navigationHOffset * opt.bw; + + if (nv=="center") bullets.css({'top':'50%','marginTop':(nvo-Math.round(bullets.innerHeight()/2))+"px"}); + if (nv=="bottom") bullets.css({'bottom':(0+nvo)+"px"}); + if (nv=="top") bullets.css({'top':(0+nvo)+"px"}); + + if (nh=="center") bullets.css({'left':'50%','marginLeft':(loff+nho-Math.round(bullets.innerWidth()/2))+"px"}); + if (nh=="left") bullets.css({'left':(0+nho+loff)+"px"}); + if (nh=="right") bullets.css({'right':(0+nho-loff)+"px"}); + } + + + /******************************************************* + - HANDLING OF PREVIEWS AND CUSTOM PREVIEWS - + *******************************************************/ + + var handleSpecialPreviews = function(opt) { + + var container= opt.container; + // FILL WITH INFOS THE NAVIGATION ARROWS + opt.beforli = opt.next-1; + opt.comingli = opt.next+1; + + if (opt.beforli<0) opt.beforli = opt.slideamount-1; + if (opt.comingli>=opt.slideamount) opt.comingli = 0; + + var comingli = container.find('>ul:first-child >li:eq('+opt.comingli+')'), + beforli = container.find('>ul:first-child >li:eq('+opt.beforli+')'), + previmgsrc = beforli.find('.defaultimg').attr('src'), + nextimgsrc = comingli.find('.defaultimg').attr('src'); + + // SAVE REFERENCES + if (opt.arr == undefined) { + opt.arr = container.parent().find('.tparrows'), + opt.rar = container.parent().find('.tp-rightarrow'), + opt.lar = container.parent().find('.tp-leftarrow'), + opt.raimg = opt.rar.find('.tp-arr-imgholder'), + opt.laimg = opt.lar.find('.tp-arr-imgholder'), + opt.raimg_b = opt.rar.find('.tp-arr-imgholder2'), + opt.laimg_b = opt.lar.find('.tp-arr-imgholder2'), + opt.ratit = opt.rar.find('.tp-arr-titleholder'), + opt.latit = opt.lar.find('.tp-arr-titleholder'); + } + + // READ REFERENCES + var arr = opt.arr, + rar = opt.rar, + lar = opt.lar, + raimg = opt.raimg, + laimg = opt.laimg, + raimg_b = opt.raimg_b, + laimg_b = opt.laimg_b, + ratit = opt.ratit, + latit = opt.latit; + + + if (comingli.data('title') != undefined) ratit.html(comingli.data('title')); + if (beforli.data('title') != undefined) latit.html(beforli.data('title')); + + + if (rar.hasClass("itishovered")) { + rar.width(ratit.outerWidth(true)+parseInt(rar.css('minWidth'),0)); + } + + if (lar.hasClass("itishovered")) { + lar.width(latit.outerWidth(true)+parseInt(lar.css('minWidth'),0)); + } + + if (arr.hasClass("preview2") && !arr.hasClass("hashoveralready")) { + + arr.addClass("hashoveralready"); + + if (!is_mobile()) + arr.hover(function() { + + var arr = jQuery(this), + th = arr.find('.tp-arr-titleholder'); + if (jQuery(window).width()>767) + arr.width(th.outerWidth(true)+parseInt(arr.css('minWidth'),0)); + arr.addClass("itishovered"); + },function() { + var arr = jQuery(this), + th = arr.find('.tp-arr-titleholder'); + arr.css({width:parseInt(arr.css('minWidth'),0)}); + arr.removeClass("itishovered"); + }); + else { + var arr = jQuery(this), + th = arr.find('.tp-arr-titleholder'); + th.addClass("alwayshidden"); + punchgs.TweenLite.set(th,{autoAlpha:0}); + } + + } + + if (beforli.data('thumb')!=undefined) previmgsrc = beforli.data('thumb'); + if (comingli.data('thumb')!=undefined) nextimgsrc = comingli.data('thumb') + + + // CHANGE THE IMAGE SOURCE (AND ANIMATE IF PREVIEW4 MODE IS ON + if (!arr.hasClass("preview4")) { + + punchgs.TweenLite.to(raimg,0.5,{autoAlpha:0,onComplete:function() { + raimg.css({'backgroundImage':'url('+nextimgsrc+')'}); + laimg.css({'backgroundImage':'url('+previmgsrc+')'}); + }}); + punchgs.TweenLite.to(laimg,0.5,{autoAlpha:0,onComplete:function() { + punchgs.TweenLite.to(raimg,0.5,{autoAlpha:1,delay:0.2}); + punchgs.TweenLite.to(laimg,0.5,{autoAlpha:1,delay:0.2}); + }}); + } else { + + raimg_b.css({'backgroundImage':'url('+nextimgsrc+')'}); + laimg_b.css({'backgroundImage':'url('+previmgsrc+')'}); + + punchgs.TweenLite.fromTo(raimg_b,0.8,{force3D:punchgs.force3d,x:0},{x:-raimg.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function() { + raimg.css({'backgroundImage':'url('+nextimgsrc+')'}); + punchgs.TweenLite.set(raimg_b,{x:0}); + }}); + punchgs.TweenLite.fromTo(laimg_b,0.8,{force3D:punchgs.force3d,x:0},{x:raimg.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function() { + laimg.css({'backgroundImage':'url('+previmgsrc+')'}); + punchgs.TweenLite.set(laimg_b,{x:0}); + }}); + + + + punchgs.TweenLite.fromTo(raimg,0.8,{x:0},{force3D:punchgs.force3d,x:-raimg.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function() { + punchgs.TweenLite.set(raimg,{x:0}); + }}); + punchgs.TweenLite.fromTo(laimg,0.8,{x:0},{force3D:punchgs.force3d,x:raimg.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function() { + punchgs.TweenLite.set(laimg,{x:0}); + }}); + } + + // HOVER EFFECTS ARE SPECIAL ON PREVIEW4 + if (rar.hasClass("preview4") && !rar.hasClass("hashoveralready")) { + + rar.addClass("hashoveralready"); + rar.hover(function() { + var iw = jQuery(this).find('.tp-arr-iwrapper'); + var all = jQuery(this).find('.tp-arr-allwrapper'); + punchgs.TweenLite.fromTo(iw,0.4,{x:iw.width()},{x:0,delay:0.3,ease:punchgs.Power3.easeOut,overwrite:"all"}); + punchgs.TweenLite.to(all,0.2,{autoAlpha:1,overwrite:"all"}); + + },function() { + var iw = jQuery(this).find('.tp-arr-iwrapper'); + var all = jQuery(this).find('.tp-arr-allwrapper'); + punchgs.TweenLite.to(iw,0.4,{x:iw.width(),ease:punchgs.Power3.easeOut,delay:0.2,overwrite:"all"}); + punchgs.TweenLite.to(all,0.2,{delay:0.6,autoAlpha:0,overwrite:"all"}); + }); + + + lar.hover(function() { + var iw = jQuery(this).find('.tp-arr-iwrapper'); + var all = jQuery(this).find('.tp-arr-allwrapper'); + punchgs.TweenLite.fromTo(iw,0.4,{x:(0-iw.width())},{x:0,delay:0.3,ease:punchgs.Power3.easeOut,overwrite:"all"}); + punchgs.TweenLite.to(all,0.2,{autoAlpha:1,overwrite:"all"}); + + },function() { + var iw = jQuery(this).find('.tp-arr-iwrapper'); + var all = jQuery(this).find('.tp-arr-allwrapper'); + punchgs.TweenLite.to(iw,0.4,{x:(0-iw.width()),ease:punchgs.Power3.easeOut,delay:0.2,overwrite:"all"}); + punchgs.TweenLite.to(all,0.2,{delay:0.6,autoAlpha:0,overwrite:"all"}); + }); + + } + // END OF NAVIGATION ARROW CONTENT FILLING + + } + ////////////////////////////////////////////////////////// + // - SET THE IMAGE SIZE TO FIT INTO THE CONTIANER - // + //////////////////////////////////////////////////////// + var setSize = function(img,opt) { + + + opt.container.closest('.forcefullwidth_wrapper_tp_banner').find('.tp-fullwidth-forcer').css({'height':opt.container.height()}); + opt.container.closest('.rev_slider_wrapper').css({'height':opt.container.height()}); + + + opt.width=parseInt(opt.container.width(),0); + opt.height=parseInt(opt.container.height(),0); + + + + opt.bw= (opt.width / opt.startwidth); + opt.bh = (opt.height / opt.startheight); + + if (opt.bh>opt.bw) opt.bh=opt.bw; + if (opt.bh1) { opt.bw=1; opt.bh=1; } + if (opt.bw>1) {opt.bw=1; opt.bh=1; } + + + //opt.height= opt.startheight * opt.bh; + opt.height = Math.round(opt.startheight * (opt.width/opt.startwidth)); + + + if (opt.height>opt.startheight && opt.autoHeight!="on") opt.height=opt.startheight; + + + if (opt.fullScreen=="on") { + opt.height = opt.bw * opt.startheight; + var cow = opt.container.parent().width(); + var coh = jQuery(window).height(); + + if (opt.fullScreenOffsetContainer!=undefined) { + try{ + var offcontainers = opt.fullScreenOffsetContainer.split(","); + jQuery.each(offcontainers,function(index,searchedcont) { + coh = coh - jQuery(searchedcont).outerHeight(true); + if (coh1 && opt.fullScreenOffset!=undefined && opt.fullScreenOffset.length>0) { + + coh = coh - (jQuery(window).height()* parseInt(opt.fullScreenOffset,0)/100); + } else { + if (opt.fullScreenOffset!=undefined && opt.fullScreenOffset.length>0) + coh = coh - parseInt(opt.fullScreenOffset,0); + } + + + if (cohul:first').css({overflow:'hidden',width:'100%',height:'100%',padding:'0px',maxHeight:container.parent().css('maxHeight')}).addClass("tp-revslider-mainul"); + if (opt.autoHeight=="on") { + container.find('>ul:first').css({overflow:'hidden',width:'100%',height:'100%',maxHeight:"none"}); + container.css({'maxHeight':'none'}); + container.parent().css({'maxHeight':'none'}); + } + + container.find('>ul:first >li').each(function(j) { + var li=jQuery(this); + li.addClass("tp-revslider-slidesli"); + + // MAKE LI OVERFLOW HIDDEN FOR FURTHER ISSUES + li.css({'width':'100%','height':'100%','overflow':'hidden'}); + + // IF LINK ON SLIDE EXISTS, NEED TO CREATE A PROPER LAYER FOR IT. + if (li.data('link')!=undefined) { + var link = li.data('link'); + var target="_self"; + var zindex=60; + if (li.data('slideindex')=="back") zindex=0; + var linktoslide=checksl = li.data('linktoslide'); + if (linktoslide != undefined) { + if (linktoslide!="next" && linktoslide!="prev") + container.find('>ul:first-child >li').each(function() { + var t = jQuery(this); + if (t.data('origindex')+1==checksl) linktoslide = t.index()+1; + }); + } + if (li.data('target')!=undefined) target=li.data('target'); + if (link!="slide") linktoslide="no"; + var apptxt = ''; + + li.append(apptxt); + } + }); + + // RESOLVE OVERFLOW HIDDEN OF MAIN CONTAINER + container.parent().css({'overflow':'visible'}); + + + container.find('>ul:first >li >img').each(function(j) { + + var img=jQuery(this); + + img.addClass('defaultimg'); + if (img.data('lazyload')!=undefined && img.data('lazydone') != 1) { + + } else { + setSize(img,opt); + } + + if (isIE(8)) { + img.data('kenburns',"off"); + } + + // TURN OF KEN BURNS IF WE ARE ON MOBILE AND IT IS WISHED SO + if (opt.panZoomDisableOnMobile == "on" && is_mobile()) { + img.data('kenburns',"off"); + img.data('bgfit',"cover"); + } + + img.wrap('
'); + + if (opt.dottedOverlay!="none" && opt.dottedOverlay!=undefined) + img.closest('.slotholder').append('
'); + + var src=img.attr('src'), + ll = img.data('lazyload'), + bgfit = img.data('bgfit'), + bgrepeat = img.data('bgrepeat'), + bgposition = img.data('bgposition'); + + + if (bgfit==undefined) bgfit="cover"; + if (bgrepeat==undefined) bgrepeat="no-repeat"; + if (bgposition==undefined) bgposition="center center" + + + var pari = img.closest('.slotholder'); + img.replaceWith('
'); + + if (isIE(8)) { + pari.find('.tp-bgimg').css({backgroundImage:"none",'background-image':'none'}); + pari.find('.tp-bgimg').append(''); + } + + img.css({'opacity':0}); + img.data('li-id',j); + + }); + } + + + /////////////////////// + // PREPARE THE SLIDE // + ////////////////////// + var prepareOneSlide = function(slotholder,opt,visible,vorh) { + + var sh=slotholder, + img = sh.find('.defaultimg'), + scalestart = sh.data('zoomstart'), + rotatestart = sh.data('rotationstart'); + + if (img.data('currotate')!=undefined) + rotatestart = img.data('currotate'); + if (img.data('curscale')!=undefined && vorh=="box") + scalestart = img.data('curscale')*100; + else + if (img.data('curscale')!=undefined) + scalestart = img.data('curscale'); + + setSize(img,opt) + + var src = img.data('src'), + bgcolor=img.css('backgroundColor'), + w = opt.width, + h = opt.height, + fulloff = img.data("fxof"), + fullyoff=0; + + if (opt.autoHeight=="on") h = opt.container.height(); + if (fulloff==undefined) fulloff=0; + + + + var off=0, + bgfit = img.data('bgfit'), + bgrepeat = img.data('bgrepeat'), + bgposition = img.data('bgposition'); + + if (bgfit==undefined) bgfit="cover"; + if (bgrepeat==undefined) bgrepeat="no-repeat"; + if (bgposition==undefined) bgposition="center center"; + + if (isIE(8)) { + sh.data('kenburns',"off"); + var imgsrc=src; + src=""; + } + + switch (vorh) { + // BOX ANIMATION PREPARING + case "box": + // SET THE MINIMAL SIZE OF A BOX + var basicsize = 0, + x = 0, + y = 0; + + if (opt.sloth>opt.slotw) + basicsize=opt.sloth + else + basicsize=opt.slotw; + + if (!visible) { + var off=0-basicsize; + } + + opt.slotw = basicsize; + opt.sloth = basicsize; + var x=0; + var y=0; + + if (sh.data('kenburns')=="on") { + bgfit=scalestart; + if (bgfit.toString().length<4) + bgfit = calculateKenBurnScales(bgfit,sh,opt); + } + + for (var j=0;j'+ + + '
'+ + + '
'+ + '
'); + y=y+basicsize; + + if (isIE(8)) { + + sh.find('.slot ').last().find('.slotslide').append(''); + ieimgposition(sh,opt); + } + + if (scalestart!=undefined && rotatestart!=undefined) + punchgs.TweenLite.set(sh.find('.slot').last(),{rotationZ:rotatestart}); + } + x=x+basicsize; + } + break; + + // SLOT ANIMATION PREPARING + case "vertical": + case "horizontal": + if (sh.data('kenburns')=="on") { + bgfit=scalestart; + if (bgfit.toString().length<4) + bgfit = calculateKenBurnScales(bgfit,sh,opt); + } + if (vorh == "horizontal") { + if (!visible) var off=0-opt.slotw; + for (var i=0;i'+ + '
'+ + '
'+ + '
'); + if (scalestart!=undefined && rotatestart!=undefined) + punchgs.TweenLite.set(sh.find('.slot').last(),{rotationZ:rotatestart}); + if (isIE(8)) { + sh.find('.slot ').last().find('.slotslide').append(''); + ieimgposition(sh,opt); + } + } + } else { + if (!visible) var off=0-opt.sloth; + for (var i=0;i'+ + + '
'+ + '
'+ + + '
'); + if (scalestart!=undefined && rotatestart!=undefined) + punchgs.TweenLite.set(sh.find('.slot').last(),{rotationZ:rotatestart}); + if (isIE(8)) { + sh.find('.slot ').last().find('.slotslide').append(''); + ieimgposition(sh,opt); + } + } + } + break; + } + } + + /*********************************************** + - MOVE IE8 IMAGE IN RIGHT POSITION - + ***********************************************/ + + var ieimgposition = function(nextsh,opt) { + + if (isIE(8)) { + + var ie8img = nextsh.find('.ieeightfallbackimage'); + + var ie8w = ie8img.width(), + ie8h = ie8img.height(); + + + + if (opt.startwidth/opt.startheight 0) + loadAllPrepared(element,found); + else { + clearInterval(inter); + if (call!=undefined) + call(); + } + + },100) + } + + + ////////////////////////////// + // - SWAP THE SLIDES - // + //////////////////////////// + var swapSlide = function(container,opt) { + + try{ + var actli =container.find('>ul:first-child >li:eq('+opt.act+')'); + } catch(e) { + var actli=container.find('>ul:first-child >li:eq(1)'); + } + opt.lastslide=opt.act; + var nextli = container.find('>ul:first-child >li:eq('+opt.next+')'); + + var defimg= nextli.find('.defaultimg'); + + + opt.bannertimeronpause = true; + container.trigger('stoptimer'); + opt.cd=0; + + if (defimg.data('lazyload') !=undefined && defimg.data('lazyload') !="undefined" && defimg.data('lazydone') !=1 ) { + + if (!isIE(8)) + defimg.css({backgroundImage:'url("'+nextli.find('.defaultimg').data('lazyload')+'")'}); + else { + defimg.attr('src',nextli.find('.defaultimg').data('lazyload')); + } + + defimg.data('src',nextli.find('.defaultimg').data('lazyload')); + defimg.data('lazydone',1); + defimg.data('orgw',0); + nextli.data('loadeddone',1); + + container.find('.tp-loader').css({display:"block"}); + waitForLoads(container.find('.tp-static-layers'),function() { + waitForLoads(nextli,function() { + var nextsh = nextli.find('.slotholder'); + if (nextsh.data('kenburns')=="on") { + var waitfordimension = setInterval(function() { + var ow = nextsh.data('owidth'); + if (ow>=0) { + clearInterval(waitfordimension); + swapSlideCall(opt,defimg,container) + } + },10) + } else + swapSlideCall(opt,defimg,container) + },opt); + },opt); + + } else { + + if (nextli.data('loadeddone')===undefined) { + nextli.data('loadeddone',1); + waitForLoads(nextli,function() { + swapSlideCall(opt,defimg,container) + },opt); + } else + + swapSlideCall(opt,defimg,container) + } + + } + + var swapSlideCall = function(opt,defimg,container) { + opt.bannertimeronpause = false; + opt.cd=0; + container.trigger('nulltimer'); + container.find('.tp-loader').css({display:"none"}); + setSize(defimg,opt); + setBulPos(container,opt); + setSize(defimg,opt); + swapSlideProgress(container,opt); + + } + + /****************************** + - SWAP SLIDE PROGRESS - + ********************************/ + /*!SWAP SLIDE*/ + var swapSlideProgress = function(container,opt) { + + + container.trigger('revolution.slide.onbeforeswap'); + + opt.transition = 1; + opt.videoplaying = false; + //konsole.log("VideoPlay set to False due swapSlideProgress"); + + try{ + var actli = container.find('>ul:first-child >li:eq('+opt.act+')'); + } catch(e) { + var actli=container.find('>ul:first-child >li:eq(1)'); + } + + opt.lastslide=opt.act; + + var nextli = container.find('>ul:first-child >li:eq('+opt.next+')'); + + setTimeout(function() { + handleSpecialPreviews(opt); + },200); + + var actsh = actli.find('.slotholder'), + nextsh = nextli.find('.slotholder'); + + if (nextsh.data('kenburns')=="on" || actsh.data('kenburns')=="on") { + stopKenBurn(container,opt); + container.find('.kenburnimg').remove(); + } + + + // IF DELAY HAS BEEN SET VIA THE SLIDE, WE TAKE THE NEW VALUE, OTHER WAY THE OLD ONE... + if (nextli.data('delay')!=undefined) { + opt.cd=0; + opt.delay=nextli.data('delay'); + } else { + opt.delay=opt.origcd; + } + + + if (opt.firststart==1) + punchgs.TweenLite.set(actli,{autoAlpha:0}); + + punchgs.TweenLite.set(actli,{zIndex:18}); + punchgs.TweenLite.set(nextli,{autoAlpha:0,zIndex:20}); + + /////////////////////////// + // REMOVE THE CAPTIONS // + /////////////////////////// + var removetime = 0; + if (actli.index() != nextli.index() && opt.firststart!=1) { + removetime = removeTheCaptions(actli,opt); + + } + + if (actli.data('saveperformance')!="on") removetime = 0; + + setTimeout(function() { + //opt.cd=0; + //container.trigger('nulltimer'); + container.trigger('restarttimer'); + slideAnimation(container,opt,nextli,actli,actsh,nextsh); + },removetime) + + } + + + /****************************************** + - START THE LAYER ANIMATION - + *******************************************/ + + var slideAnimation = function(container,opt,nextli,actli,actsh,nextsh) { + + // IF THERE IS AN OTHER FIRST SLIDE START HAS BEED SELECTED + if (nextli.data('differentissplayed') =='prepared') { + nextli.data('differentissplayed','done'); + nextli.data('transition',nextli.data('savedtransition')); + nextli.data('slotamount',nextli.data('savedslotamount')); + nextli.data('masterspeed',nextli.data('savedmasterspeed')); + } + + + if (nextli.data('fstransition') != undefined && nextli.data('differentissplayed') !="done") { + nextli.data('savedtransition',nextli.data('transition')); + nextli.data('savedslotamount',nextli.data('slotamount')); + nextli.data('savedmasterspeed',nextli.data('masterspeed')); + + nextli.data('transition',nextli.data('fstransition')); + nextli.data('slotamount',nextli.data('fsslotamount')); + nextli.data('masterspeed',nextli.data('fsmasterspeed')); + + nextli.data('differentissplayed','prepared'); + } + + container.find('.active-revslide').removeClass('.active-revslide'); + nextli.addClass("active-revslide"); + + /////////////////////////////////////// + // TRANSITION CHOOSE - RANDOM EFFECTS// + /////////////////////////////////////// + + + if (nextli.data('transition')==undefined) nextli.data('transition',"random"); + + var nexttrans = 0, + transtext = nextli.data('transition').split(","), + curtransid = nextli.data('nexttransid') == undefined ? -1 : nextli.data('nexttransid'); + + if (nextli.data('randomtransition')=="on") + curtransid = Math.round(Math.random()*transtext.length); + else + curtransid=curtransid+1; + + if (curtransid==transtext.length) curtransid=0; + nextli.data('nexttransid',curtransid); + + + + var comingtransition = transtext[curtransid]; + + if (opt.ie) { + if (comingtransition=="boxfade") comingtransition = "boxslide"; + if (comingtransition=="slotfade-vertical") comingtransition = "slotzoom-vertical"; + if (comingtransition=="slotfade-horizontal") comingtransition = "slotzoom-horizontal"; + } + + if (isIE(8)) { + comingtransition = 11; + } + + + var specials = 0; + + if (opt.parallax=="scroll" && opt.parallaxFirstGo==undefined) { + opt.parallaxFirstGo = true; + scrollParallax(container,opt); + setTimeout(function() { + scrollParallax(container,opt); + },210); + setTimeout(function() { + scrollParallax(container,opt); + },420); + + } + + + + + /* if (opt.ffnn == undefined) opt.ffnn=0; + comingtransition=opt.ffnn; + + if ( direction==1) + opt.ffnn=opt.ffnn-1; + else + opt.ffnn=opt.ffnn+1; + + if (opt.ffnn>46) opt.ffnn=0; + if (opt.ffnn<0) opt.ffnn = 46; + + jQuery('.logo').html('Next Anim:'+comingtransition); + + + if (comingtransition=="boxslide" || comingtransition == "boxfade" || comingtransition == "papercut" || + comingtransition==0 || comingtransition == 1 || comingtransition == 16) + comingtransition = 9;*/ + + + /* Transition Name , + Transition Code, + Transition Sub Code, + Max Slots, + MasterSpeed Delays, + Preparing Slots (box,slideh, slidev), + Call on nextsh (null = no, true/false for visibility first preparing), + Call on actsh (null = no, true/false for visibility first preparing), + */ + + + + if (comingtransition=="slidehorizontal") { + comingtransition = "slideleft" + if (opt.leftarrowpressed==1) + comingtransition = "slideright" + } + + if (comingtransition=="slidevertical") { + comingtransition = "slideup" + if (opt.leftarrowpressed==1) + comingtransition = "slidedown" + } + + if (comingtransition=="parallaxhorizontal") { + comingtransition = "parallaxtoleft" + if (opt.leftarrowpressed==1) + comingtransition = "parallaxtoright" + } + + + if (comingtransition=="parallaxvertical") { + comingtransition = "parallaxtotop" + if (opt.leftarrowpressed==1) + comingtransition = "parallaxtobottom" + } + + + + + var transitionsArray = [ ['boxslide' , 0, 1, 10, 0,'box',false,null,0], + ['boxfade', 1, 0, 10, 0,'box',false,null,1], + ['slotslide-horizontal', 2, 0, 0, 200,'horizontal',true,false,2], + ['slotslide-vertical', 3, 0,0,200,'vertical',true,false,3], + ['curtain-1', 4, 3,0,0,'horizontal',true,true,4], + ['curtain-2', 5, 3,0,0,'horizontal',true,true,5], + ['curtain-3', 6, 3,25,0,'horizontal',true,true,6], + ['slotzoom-horizontal', 7, 0,0,400,'horizontal',true,true,7], + ['slotzoom-vertical', 8, 0,0,0,'vertical',true,true,8], + ['slotfade-horizontal', 9, 0,0,500,'horizontal',true,null,9], + ['slotfade-vertical', 10, 0,0 ,500,'vertical',true,null,10], + ['fade', 11, 0, 1 ,300,'horizontal',true,null,11], + ['slideleft', 12, 0,1,0,'horizontal',true,true,12], + ['slideup', 13, 0,1,0,'horizontal',true,true,13], + ['slidedown', 14, 0,1,0,'horizontal',true,true,14], + ['slideright', 15, 0,1,0,'horizontal',true,true,15], + ['papercut', 16, 0,0,600,'',null,null,16], + ['3dcurtain-horizontal', 17, 0,20,100,'vertical',false,true,17], + ['3dcurtain-vertical', 18, 0,10,100,'horizontal',false,true,18], + ['cubic', 19, 0,20,600,'horizontal',false,true,19], + ['cube',19,0,20,600,'horizontal',false,true,20], + ['flyin', 20, 0,4,600,'vertical',false,true,21], + ['turnoff', 21, 0,1,1600,'horizontal',false,true,22], + ['incube', 22, 0,20,200,'horizontal',false,true,23], + ['cubic-horizontal', 23, 0,20,500,'vertical',false,true,24], + ['cube-horizontal', 23, 0,20,500,'vertical',false,true,25], + ['incube-horizontal', 24, 0,20,500,'vertical',false,true,26], + ['turnoff-vertical', 25, 0,1,200,'horizontal',false,true,27], + ['fadefromright', 12, 1,1,0,'horizontal',true,true,28], + ['fadefromleft', 15, 1,1,0,'horizontal',true,true,29], + ['fadefromtop', 14, 1,1,0,'horizontal',true,true,30], + ['fadefrombottom', 13, 1,1,0,'horizontal',true,true,31], + ['fadetoleftfadefromright', 12, 2,1,0,'horizontal',true,true,32], + ['fadetorightfadetoleft', 15, 2,1,0,'horizontal',true,true,33], + ['fadetobottomfadefromtop', 14, 2,1,0,'horizontal',true,true,34], + ['fadetotopfadefrombottom', 13, 2,1,0,'horizontal',true,true,35], + ['parallaxtoright', 12, 3,1,0,'horizontal',true,true,36], + ['parallaxtoleft', 15, 3,1,0,'horizontal',true,true,37], + ['parallaxtotop', 14, 3,1,0,'horizontal',true,true,38], + ['parallaxtobottom', 13, 3,1,0,'horizontal',true,true,39], + ['scaledownfromright', 12, 4,1,0,'horizontal',true,true,40], + ['scaledownfromleft', 15, 4,1,0,'horizontal',true,true,41], + ['scaledownfromtop', 14, 4,1,0,'horizontal',true,true,42], + ['scaledownfrombottom', 13, 4,1,0,'horizontal',true,true,43], + ['zoomout', 13, 5,1,0,'horizontal',true,true,44], + ['zoomin', 13, 6,1,0,'horizontal',true,true,45], + ['notransition',26,0,1,0,'horizontal',true,null,46] + ]; + + + var flatTransitions = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45]; + var premiumTransitions = [16,17,18,19,20,21,22,23,24,25,26,27] + + var nexttrans =0; + var specials = 1; + var STAindex = 0; + var indexcounter =0; + var STA = new Array; + + //START THE KEN BURN PAN ZOOM ANIMATION + if (nextsh.data('kenburns')=="on") { + if (comingtransition == "boxslide" || comingtransition==0 || + comingtransition == "boxfade" || comingtransition==1 || + comingtransition == "papercut" || comingtransition==16 + ) + comingtransition = 11; + + startKenBurn(container,opt,true,true); + } + + + + // RANDOM TRANSITIONS + if (comingtransition == "random") { + comingtransition = Math.round(Math.random()*transitionsArray.length-1); + if (comingtransition>transitionsArray.length-1) comingtransition=transitionsArray.length-1; + } + + // RANDOM FLAT TRANSITIONS + if (comingtransition == "random-static") { + comingtransition = Math.round(Math.random()*flatTransitions.length-1); + if (comingtransition>flatTransitions.length-1) comingtransition=flatTransitions.length-1; + comingtransition = flatTransitions[comingtransition]; + } + + // RANDOM PREMIUM TRANSITIONS + if (comingtransition == "random-premium") { + comingtransition = Math.round(Math.random()*premiumTransitions.length-1); + if (comingtransition>premiumTransitions.length-1) comingtransition=premiumTransitions.length-1; + comingtransition = premiumTransitions[comingtransition]; + } + + //joomla only change: avoid problematic transitions that don't compatible with mootools + var problematicTransitions = [12,13,14,15,16,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45]; + if(opt.isJoomla == true && window.MooTools != undefined && problematicTransitions.indexOf(comingtransition) != -1){ + + var newTransIndex = Math.round(Math.random() * (premiumTransitions.length-2) ) + 1; + + //some limits fix + if (newTransIndex > premiumTransitions.length-1) + newTransIndex = premiumTransitions.length-1; + + if(newTransIndex == 0) + newTransIndex = 1; + + comingtransition = premiumTransitions[newTransIndex]; + } + + + + function findTransition() { + // FIND THE RIGHT TRANSITION PARAMETERS HERE + jQuery.each(transitionsArray,function(inde,trans) { + if (trans[0] == comingtransition || trans[8] == comingtransition) { + nexttrans = trans[1]; + specials = trans[2]; + STAindex = indexcounter; + } + indexcounter = indexcounter+1; + }) + } + + findTransition(); + + // CHECK IF WE HAVE IE8 AND THAN FALL BACK ON FLAT TRANSITIONS + if (isIE(8) && nexttrans>15 && nexttrans<28) { + comingtransition = Math.round(Math.random()*flatTransitions.length-1); + if (comingtransition>flatTransitions.length-1) comingtransition=flatTransitions.length-1; + comingtransition = flatTransitions[comingtransition]; + indexcounter =0; + findTransition(); + } + + + + + // WHICH DIRECTION DID WE HAD ? + var direction=-1; + if (opt.leftarrowpressed==1 || opt.act>opt.next) direction=1; + + + + opt.leftarrowpressed=0; + + if (nexttrans>26) nexttrans = 26; + if (nexttrans<0) nexttrans = 0; + + + // DEFINE THE MASTERSPEED FOR THE SLIDE // + var masterspeed=300; + if (nextli.data('masterspeed')!=undefined && nextli.data('masterspeed')>99 && nextli.data('masterspeed')opt.delay) + masterspeed = opt.delay; + + // PREPARED DEFAULT SETTINGS PER TRANSITION + STA = transitionsArray[STAindex]; + + ///////////////////////////////////////////// + // SET THE BULLETS SELECTED OR UNSELECTED // + ///////////////////////////////////////////// + container.parent().find(".bullet").each(function() { + var bul = jQuery(this), + buli = bul.index(); + bul.removeClass("selected"); + + if (opt.navigationArrows=="withbullet" || opt.navigationArrows=="nexttobullets") + buli = bul.index()-1; + + if (buli == opt.next) bul.addClass('selected'); + + }); + + /////////////////////////////// + // MAIN TIMELINE DEFINITION // + /////////////////////////////// + + var mtl = new punchgs.TimelineLite({onComplete:function() { + letItFree(container,opt,nextsh,actsh,nextli,actli,mtl); + }}); + //SET DEFAULT IMG UNVISIBLE AT START + mtl.add(punchgs.TweenLite.set(nextsh.find('.defaultimg'),{opacity:0})); + mtl.pause(); + + + + + ///////////////////////////////////////////// + // SET THE ACTUAL AMOUNT OF SLIDES !! // + // SET A RANDOM AMOUNT OF SLOTS // + /////////////////////////////////////////// + if (nextli.data('slotamount')==undefined || nextli.data('slotamount')<1) { + opt.slots=Math.round(Math.random()*12+4); + if (comingtransition=="boxslide") + opt.slots=Math.round(Math.random()*6+3); + else + if (comingtransition=="flyin") + opt.slots=Math.round(Math.random()*4+1); + } else { + opt.slots=nextli.data('slotamount'); + + } + + ///////////////////////////////////////////// + // SET THE ACTUAL AMOUNT OF SLIDES !! // + // SET A RANDOM AMOUNT OF SLOTS // + /////////////////////////////////////////// + if (nextli.data('rotate')==undefined) + opt.rotate = 0 + else + if (nextli.data('rotate')==999) + opt.rotate=Math.round(Math.random()*360); + else + opt.rotate=nextli.data('rotate'); + if (!jQuery.support.transition || opt.ie || opt.ie9) opt.rotate=0; + + + + + ////////////////////////////// + // FIRST START // + ////////////////////////////// + if (opt.firststart==1) opt.firststart=0; + + + // ADJUST MASTERSPEED + masterspeed = masterspeed + STA[4]; + + if ((nexttrans==4 || nexttrans==5 || nexttrans==6) && opt.slots<3 ) opt.slots=3; + + // ADJUST SLOTS + if (STA[3] != 0) opt.slots = Math.min(opt.slots,STA[3]); + if (nexttrans==9) opt.slots = opt.width/20; + if (nexttrans==10) opt.slots = opt.height/20; + + // prepareOneSlide + + if (STA[7] !=null) prepareOneSlide(actsh,opt,STA[7],STA[5]); + if (STA[6] !=null) prepareOneSlide(nextsh,opt,STA[6],STA[5]); + + + ///////////////////////////////////// + // THE SLOTSLIDE - TRANSITION I. // + //////////////////////////////////// + if (nexttrans==0) { // BOXSLIDE + + + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT + var maxz = Math.ceil(opt.height/opt.sloth); + var curz = 0; + nextsh.find('.slotslide').each(function(j) { + var ss=jQuery(this); + curz=curz+1; + if (curz==maxz) curz=0; + + mtl.add(punchgs.TweenLite.from(ss,(masterspeed)/600, + {opacity:0,top:(0-opt.sloth),left:(0-opt.slotw),rotation:opt.rotate,force3D:"auto",ease:punchgs.Power2.easeOut}),((j*15) + ((curz)*30))/1500); + }); + } + ///////////////////////////////////// + // THE SLOTSLIDE - TRANSITION I. // + //////////////////////////////////// + if (nexttrans==1) { + + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT + var maxtime, + maxj = 0; + + nextsh.find('.slotslide').each(function(j) { + var ss=jQuery(this), + rand=Math.random()*masterspeed+300, + rand2=Math.random()*500+200; + if (rand+rand2>maxtime) { + maxtime = rand2+rand2; + maxj = j; + } + mtl.add(punchgs.TweenLite.from(ss,rand/1000, + {autoAlpha:0, force3D:"auto",rotation:opt.rotate,ease:punchgs.Power2.easeInOut}),rand2/1000); + }); + } + + + ///////////////////////////////////// + // THE SLOTSLIDE - TRANSITION I. // + //////////////////////////////////// + if (nexttrans==2) { + + var subtl = new punchgs.TimelineLite(); + // ALL OLD SLOTS SHOULD BE SLIDED TO THE RIGHT + actsh.find('.slotslide').each(function() { + var ss=jQuery(this); + subtl.add(punchgs.TweenLite.to(ss,masterspeed/1000,{left:opt.slotw, force3D:"auto",rotation:(0-opt.rotate)}),0); + mtl.add(subtl,0); + }); + + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT + nextsh.find('.slotslide').each(function() { + var ss=jQuery(this); + subtl.add(punchgs.TweenLite.from(ss,masterspeed/1000,{left:0-opt.slotw, force3D:"auto",rotation:opt.rotate}),0); + mtl.add(subtl,0); + }); + } + + + + ///////////////////////////////////// + // THE SLOTSLIDE - TRANSITION I. // + //////////////////////////////////// + if (nexttrans==3) { + var subtl = new punchgs.TimelineLite(); + + // ALL OLD SLOTS SHOULD BE SLIDED TO THE RIGHT + actsh.find('.slotslide').each(function() { + var ss=jQuery(this); + subtl.add(punchgs.TweenLite.to(ss,masterspeed/1000,{top:opt.sloth,rotation:opt.rotate,force3D:"auto",transformPerspective:600}),0); + mtl.add(subtl,0); + + }); + + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT + nextsh.find('.slotslide').each(function() { + var ss=jQuery(this); + subtl.add(punchgs.TweenLite.from(ss,masterspeed/1000,{top:0-opt.sloth,rotation:opt.rotate,ease:punchgs.Power2.easeOut,force3D:"auto",transformPerspective:600}),0); + mtl.add(subtl,0); + }); + } + + + + ///////////////////////////////////// + // THE SLOTSLIDE - TRANSITION I. // + //////////////////////////////////// + if (nexttrans==4 || nexttrans==5) { + + setTimeout(function() { + actsh.find('.defaultimg').css({opacity:0}); + },100); + + + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT + var cspeed = (masterspeed)/1000, + ticker = cspeed, + subtl = new punchgs.TimelineLite(); + + actsh.find('.slotslide').each(function(i) { + var ss=jQuery(this); + var del = (i*cspeed)/opt.slots; + if (nexttrans==5) del = ((opt.slots-i-1)*cspeed)/(opt.slots)/1.5; + subtl.add(punchgs.TweenLite.to(ss,cspeed*3,{transformPerspective:600,force3D:"auto",top:0+opt.height,opacity:0.5,rotation:opt.rotate,ease:punchgs.Power2.easeInOut,delay:del}),0); + mtl.add(subtl,0); + }); + + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT + nextsh.find('.slotslide').each(function(i) { + var ss=jQuery(this); + var del = (i*cspeed)/opt.slots; + if (nexttrans==5) del = ((opt.slots-i-1)*cspeed)/(opt.slots)/1.5; + subtl.add(punchgs.TweenLite.from(ss,cspeed*3, + {top:(0-opt.height),opacity:0.5,rotation:opt.rotate,force3D:"auto",ease:punchgs.Power2.easeInOut,delay:del}),0); + mtl.add(subtl,0); + + }); + + + } + + ///////////////////////////////////// + // THE SLOTSLIDE - TRANSITION I. // + //////////////////////////////////// + if (nexttrans==6) { + + + if (opt.slots<2) opt.slots=2; + if (opt.slots % 2) opt.slots = opt.slots+1; + + var subtl = new punchgs.TimelineLite(); + + //SET DEFAULT IMG UNVISIBLE + setTimeout(function() { + actsh.find('.defaultimg').css({opacity:0}); + },100); + + actsh.find('.slotslide').each(function(i) { + var ss=jQuery(this); + if (i+1opt.delay) masterspeed=opt.delay; + var subtl = new punchgs.TimelineLite(); + + //SET DEFAULT IMG UNVISIBLE + setTimeout(function() { + actsh.find('.defaultimg').css({opacity:0}); + },100); + + // ALL OLD SLOTS SHOULD BE SLIDED TO THE RIGHT + actsh.find('.slotslide').each(function() { + var ss=jQuery(this).find('div'); + subtl.add(punchgs.TweenLite.to(ss,masterspeed/1000,{ + left:(0-opt.slotw/2)+'px', + top:(0-opt.height/2)+'px', + width:(opt.slotw*2)+"px", + height:(opt.height*2)+"px", + opacity:0, + rotation:opt.rotate, + force3D:"auto", + ease:punchgs.Power2.easeOut}),0); + mtl.add(subtl,0); + + }); + + ////////////////////////////////////////////////////////////// + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT // + /////////////////////////////////////////////////////////////// + nextsh.find('.slotslide').each(function(i) { + var ss=jQuery(this).find('div'); + + subtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, + {left:0,top:0,opacity:0,transformPerspective:600}, + {left:(0-i*opt.slotw)+'px', + ease:punchgs.Power2.easeOut, + force3D:"auto", + top:(0)+'px', + width:opt.width, + height:opt.height, + opacity:1,rotation:0, + delay:0.1}),0); + mtl.add(subtl,0); + }); + } + + + + + //////////////////////////////////// + // THE SLOTSZOOM - TRANSITION II. // + //////////////////////////////////// + if (nexttrans==8) { + + masterspeed = masterspeed * 3; + if (masterspeed>opt.delay) masterspeed=opt.delay; + var subtl = new punchgs.TimelineLite(); + + + + // ALL OLD SLOTS SHOULD BE SLIDED TO THE RIGHT + actsh.find('.slotslide').each(function() { + var ss=jQuery(this).find('div'); + subtl.add(punchgs.TweenLite.to(ss,masterspeed/1000, + {left:(0-opt.width/2)+'px', + top:(0-opt.sloth/2)+'px', + width:(opt.width*2)+"px", + height:(opt.sloth*2)+"px", + force3D:"auto", + opacity:0,rotation:opt.rotate}),0); + mtl.add(subtl,0); + + }); + + + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT // + /////////////////////////////////////////////////////////////// + nextsh.find('.slotslide').each(function(i) { + var ss=jQuery(this).find('div'); + + subtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, + {left:0, top:0,opacity:0,force3D:"auto"}, + {'left':(0)+'px', + 'top':(0-i*opt.sloth)+'px', + 'width':(nextsh.find('.defaultimg').data('neww'))+"px", + 'height':(nextsh.find('.defaultimg').data('newh'))+"px", + opacity:1,rotation:0, + }),0); + mtl.add(subtl,0); + }); + } + + + //////////////////////////////////////// + // THE SLOTSFADE - TRANSITION III. // + ////////////////////////////////////// + if (nexttrans==9 || nexttrans==10) { + var ssamount=0; + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT + nextsh.find('.slotslide').each(function(i) { + var ss=jQuery(this); + ssamount++; + mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000,{autoAlpha:0,force3D:"auto",transformPerspective:600}, + {autoAlpha:1,ease:punchgs.Power2.easeInOut,delay:(i*5)/1000}),0); + + }); + } + + /////////////////////////// + // SIMPLE FADE ANIMATION // + /////////////////////////// + if (nexttrans==11 || nexttrans==26) { + + + var ssamount=0; + if (nexttrans==26) masterspeed=0; + + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT + nextsh.find('.slotslide').each(function(i) { + var ss=jQuery(this); + mtl.add(punchgs.TweenLite.from(ss,masterspeed/1000,{autoAlpha:0,force3D:"auto",ease:punchgs.Power2.easeInOut}),0); + }); + } + + if (nexttrans==12 || nexttrans==13 || nexttrans==14 || nexttrans==15) { + masterspeed = masterspeed; + if (masterspeed>opt.delay) masterspeed=opt.delay; + //masterspeed = 1000; + + setTimeout(function() { + punchgs.TweenLite.set(actsh.find('.defaultimg'),{autoAlpha:0}); + + },100); + + var oow = opt.width, + ooh = opt.height, + ssn=nextsh.find('.slotslide'), + twx = 0, + twy = 0, + op = 1, + scal = 1, + fromscale = 1, + easeitout = punchgs.Power2.easeInOut, + easeitin = punchgs.Power2.easeInOut, + speedy = masterspeed/1000, + speedy2 = speedy; + + + if (opt.fullWidth=="on" || opt.fullScreen=="on") { + oow=ssn.width(); + ooh=ssn.height(); + } + + if (nexttrans==12) + twx = oow; + else + if (nexttrans==15) + twx = 0-oow; + else + if (nexttrans==13) + twy = ooh; + else + if (nexttrans==14) + twy = 0-ooh; + + + // DEPENDING ON EXTENDED SPECIALS, DIFFERENT SCALE AND OPACITY FUNCTIONS NEED TO BE ADDED + if (specials == 1) op = 0; + if (specials == 2) op = 0; + if (specials == 3) { + easeitout = punchgs.Power2.easeInOut; + easeitin = punchgs.Power1.easeInOut; + speedy = masterspeed / 1200; + } + + if (specials==4 || specials==5) + scal=0.6; + if (specials==6 ) + scal=1.4; + + + if (specials==5 || specials==6) { + fromscale=1.4; + op=0; + oow=0; + ooh=0;twx=0;twy=0; + } + if (specials==6) fromscale=0.6; + var dd = 0; + + mtl.add(punchgs.TweenLite.from(ssn,speedy, + {left:twx, top:twy, scale:fromscale, opacity:op,rotation:opt.rotate,ease:easeitin,force3D:"auto"}),0); + + var ssa=actsh.find('.slotslide'); + + if (specials==4 || specials==5) { + oow = 0; ooh=0; + } + + if (specials!=1) + switch (nexttrans) { + case 12: + mtl.add(punchgs.TweenLite.to(ssa,speedy2,{'left':(0-oow)+'px',force3D:"auto",scale:scal,opacity:op,rotation:opt.rotate,ease:easeitout}),0); + break; + case 15: + mtl.add(punchgs.TweenLite.to(ssa,speedy2,{'left':(oow)+'px',force3D:"auto",scale:scal,opacity:op,rotation:opt.rotate,ease:easeitout}),0); + break; + case 13: + mtl.add(punchgs.TweenLite.to(ssa,speedy2,{'top':(0-ooh)+'px',force3D:"auto",scale:scal,opacity:op,rotation:opt.rotate,ease:easeitout}),0); + break; + case 14: + mtl.add(punchgs.TweenLite.to(ssa,speedy2,{'top':(ooh)+'px',force3D:"auto",scale:scal,opacity:op,rotation:opt.rotate,ease:easeitout}),0); + break; + } + + } + + ////////////////////////////////////// + // THE SLOTSLIDE - TRANSITION XVI. // + ////////////////////////////////////// + if (nexttrans==16) { // PAPERCUT + + + var subtl = new punchgs.TimelineLite(); + mtl.add(punchgs.TweenLite.set(actli,{'position':'absolute','z-index':20}),0); + mtl.add(punchgs.TweenLite.set(nextli,{'position':'absolute','z-index':15}),0); + + + // PREPARE THE CUTS + actli.wrapInner('
'); + + actli.find('.tp-half-one').clone(true).appendTo(actli).addClass("tp-half-two"); + actli.find('.tp-half-two').removeClass('tp-half-one'); + + var oow = opt.width, + ooh = opt.height; + if (opt.autoHeight=="on") + ooh = container.height(); + + + actli.find('.tp-half-one .defaultimg').wrap('
') + actli.find('.tp-half-two .defaultimg').wrap('
') + actli.find('.tp-half-two .defaultimg').css({position:'absolute',top:'-50%'}); + actli.find('.tp-half-two .tp-caption').wrapAll('
'); + + mtl.add(punchgs.TweenLite.set(actli.find('.tp-half-two'), + {width:oow,height:ooh,overflow:'hidden',zIndex:15,position:'absolute',top:ooh/2,left:'0px',transformPerspective:600,transformOrigin:"center bottom"}),0); + + mtl.add(punchgs.TweenLite.set(actli.find('.tp-half-one'), + {width:oow,height:ooh/2,overflow:'visible',zIndex:10,position:'absolute',top:'0px',left:'0px',transformPerspective:600,transformOrigin:"center top"}),0); + + // ANIMATE THE CUTS + var img=actli.find('.defaultimg'), + ro1=Math.round(Math.random()*20-10), + ro2=Math.round(Math.random()*20-10), + ro3=Math.round(Math.random()*20-10), + xof = Math.random()*0.4-0.2, + yof = Math.random()*0.4-0.2, + sc1=Math.random()*1+1, + sc2=Math.random()*1+1, + sc3=Math.random()*0.3+0.3; + + mtl.add(punchgs.TweenLite.set(actli.find('.tp-half-one'),{overflow:'hidden'}),0); + mtl.add(punchgs.TweenLite.fromTo(actli.find('.tp-half-one'),masterspeed/800, + {width:oow,height:ooh/2,position:'absolute',top:'0px',left:'0px',force3D:"auto",transformOrigin:"center top"}, + {scale:sc1,rotation:ro1,y:(0-ooh-ooh/4),autoAlpha:0,ease:punchgs.Power2.easeInOut}),0); + mtl.add(punchgs.TweenLite.fromTo(actli.find('.tp-half-two'),masterspeed/800, + {width:oow,height:ooh,overflow:'hidden',position:'absolute',top:ooh/2,left:'0px',force3D:"auto",transformOrigin:"center bottom"}, + {scale:sc2,rotation:ro2,y:ooh+ooh/4,ease:punchgs.Power2.easeInOut,autoAlpha:0,onComplete:function() { + // CLEAN UP + punchgs.TweenLite.set(actli,{'position':'absolute','z-index':15}); + punchgs.TweenLite.set(nextli,{'position':'absolute','z-index':20}); + if (actli.find('.tp-half-one').length>0) { + actli.find('.tp-half-one .defaultimg').unwrap(); + actli.find('.tp-half-one .slotholder').unwrap(); + } + actli.find('.tp-half-two').remove(); + }}),0); + + subtl.add(punchgs.TweenLite.set(nextsh.find('.defaultimg'),{autoAlpha:1}),0); + + if (actli.html()!=null) + mtl.add(punchgs.TweenLite.fromTo(nextli,(masterspeed-200)/1000, + {scale:sc3,x:(opt.width/4)*xof, y:(ooh/4)*yof,rotation:ro3,force3D:"auto",transformOrigin:"center center",ease:punchgs.Power2.easeOut}, + {autoAlpha:1,scale:1,x:0,y:0,rotation:0}),0); + + mtl.add(subtl,0); + + + } + + //////////////////////////////////////// + // THE SLOTSLIDE - TRANSITION XVII. // + /////////////////////////////////////// + if (nexttrans==17) { // 3D CURTAIN HORIZONTAL + + + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT + + nextsh.find('.slotslide').each(function(j) { + var ss=jQuery(this); + + mtl.add(punchgs.TweenLite.fromTo(ss,(masterspeed)/800, + {opacity:0,rotationY:0,scale:0.9,rotationX:-110,force3D:"auto",transformPerspective:600,transformOrigin:"center center"}, + {opacity:1,top:0,left:0,scale:1,rotation:0,rotationX:0,force3D:"auto",rotationY:0,ease:punchgs.Power3.easeOut,delay:j*0.06}),0); + + }); + } + + + + //////////////////////////////////////// + // THE SLOTSLIDE - TRANSITION XVIII. // + /////////////////////////////////////// + if (nexttrans==18) { // 3D CURTAIN VERTICAL + + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT + nextsh.find('.slotslide').each(function(j) { + var ss=jQuery(this); + + mtl.add(punchgs.TweenLite.fromTo(ss,(masterspeed)/500, + {autoAlpha:0,rotationY:310,scale:0.9,rotationX:10,force3D:"auto",transformPerspective:600,transformOrigin:"center center"}, + {autoAlpha:1,top:0,left:0,scale:1,rotation:0,rotationX:0,force3D:"auto",rotationY:0,ease:punchgs.Power3.easeOut,delay:j*0.06}),0); + }); + + + + } + + + //////////////////////////////////////// + // THE SLOTSLIDE - TRANSITION XIX. // + /////////////////////////////////////// + if (nexttrans==19 || nexttrans==22) { // IN CUBE + + var subtl = new punchgs.TimelineLite(); + //SET DEFAULT IMG UNVISIBLE + + mtl.add(punchgs.TweenLite.set(actli,{zIndex:20}),0); + mtl.add(punchgs.TweenLite.set(nextli,{zIndex:20}),0); + setTimeout(function() { + actsh.find('.defaultimg').css({opacity:0}); + },100); + var chix=nextli.css('z-index'), + chix2=actli.css('z-index'), + rot = 90, + op = 1, + torig ="center center "; + + if (direction==1) rot = -90; + + if (nexttrans==19) { + torig = torig+"-"+opt.height/2; + op=0; + + } else { + torig = torig+opt.height/2; + } + + // ALL NEW SLOTS SHOULD BE SLIDED FROM THE LEFT TO THE RIGHT + punchgs.TweenLite.set(container,{transformStyle:"flat",backfaceVisibility:"hidden",transformPerspective:600}); + + nextsh.find('.slotslide').each(function(j) { + var ss=jQuery(this); + + subtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, + {transformStyle:"flat",backfaceVisibility:"hidden",left:0,rotationY:opt.rotate,z:10,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:torig,rotationX:rot}, + {left:0,rotationY:0,top:0,z:0, scale:1,force3D:"auto",rotationX:0, delay:(j*50)/1000,ease:punchgs.Power2.easeInOut}),0); + subtl.add(punchgs.TweenLite.to(ss,0.1,{autoAlpha:1,delay:(j*50)/1000}),0); + mtl.add(subtl); + }); + + actsh.find('.slotslide').each(function(j) { + var ss=jQuery(this); + var rot = -90; + if (direction==1) rot = 90; + + subtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, + {transformStyle:"flat",backfaceVisibility:"hidden",autoAlpha:1,rotationY:0,top:0,z:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:torig, rotationX:0}, + {autoAlpha:1,rotationY:opt.rotate,top:0,z:10, scale:1,rotationX:rot, delay:(j*50)/1000,force3D:"auto",ease:punchgs.Power2.easeInOut}),0); + + mtl.add(subtl); + }); + } + + + + + //////////////////////////////////////// + // THE SLOTSLIDE - TRANSITION XX. // + /////////////////////////////////////// + if (nexttrans==20 ) { // FLYIN + + + setTimeout(function() { + actsh.find('.defaultimg').css({opacity:0}); + },100); + var chix=nextli.css('z-index'), + chix2=actli.css('z-index'); + + if (direction==1) { + var ofx = -opt.width + var rot =70; + var torig = "left center -"+opt.height/2; + } else { + var ofx = opt.width; + var rot = -70; + var torig = "right center -"+opt.height/2; + } + + + nextsh.find('.slotslide').each(function(j) { + var ss=jQuery(this); + + mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1500, + {left:ofx,rotationX:40,z:-600, opacity:op,top:0,force3D:"auto",transformPerspective:600,transformOrigin:torig,rotationY:rot}, + {left:0, delay:(j*50)/1000,ease:punchgs.Power2.easeInOut}),0); + + mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, + {rotationX:40,z:-600, opacity:op,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:torig,rotationY:rot}, + {rotationX:0,opacity:1,top:0,z:0, scale:1,rotationY:0, delay:(j*50)/1000,ease:punchgs.Power2.easeInOut}),0); + + mtl.add(punchgs.TweenLite.to(ss,0.1,{opacity:1,force3D:"auto",delay:(j*50)/1000+masterspeed/2000}),0); + + }); + actsh.find('.slotslide').each(function(j) { + var ss=jQuery(this); + + if (direction!=1) { + var ofx = -opt.width + var rot =70; + var torig = "left center -"+opt.height/2; + } else { + var ofx = opt.width; + var rot = -70; + var torig = "right center -"+opt.height/2; + } + mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, + {opacity:1,rotationX:0,top:0,z:0,scale:1,left:0, force3D:"auto",transformPerspective:600,transformOrigin:torig, rotationY:0}, + {opacity:1,rotationX:40,top:0, z:-600, left:ofx, force3D:"auto",scale:0.8,rotationY:rot, delay:(j*50)/1000,ease:punchgs.Power2.easeInOut}),0); + mtl.add(punchgs.TweenLite.to(ss,0.1,{force3D:"auto",opacity:0,delay:(j*50)/1000+(masterspeed/1000 - (masterspeed/10000))}),0); + }); + } + + //////////////////////////////////////// + // THE SLOTSLIDE - TRANSITION XX. // + /////////////////////////////////////// + if (nexttrans==21 || nexttrans==25) { // TURNOFF + + + //SET DEFAULT IMG UNVISIBLE + + setTimeout(function() { + actsh.find('.defaultimg').css({opacity:0}); + },100); + var chix=nextli.css('z-index'), + chix2=actli.css('z-index'), + rot = 90, + ofx = -opt.width, + rot2 = -rot; + + if (direction==1) { + if (nexttrans==25) { + var torig = "center top 0"; + rot = opt.rotate; + } else { + var torig = "left center 0"; + rot2 = opt.rotate; + } + + } else { + ofx = opt.width; + rot = -90; + if (nexttrans==25) { + var torig = "center bottom 0" + rot2 = -rot; + rot = opt.rotate; + } else { + var torig = "right center 0"; + rot2 = opt.rotate; + } + } + + nextsh.find('.slotslide').each(function(j) { + var ss=jQuery(this); + + + mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, + {left:0,transformStyle:"flat",rotationX:rot2,z:0, autoAlpha:0,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:torig,rotationY:rot}, + {left:0,rotationX:0,top:0,z:0, autoAlpha:1,scale:1,rotationY:0,force3D:"auto", ease:punchgs.Power3.easeInOut}),0); + }); + + + if (direction!=1) { + ofx = -opt.width + rot = 90; + + if (nexttrans==25) { + torig = "center top 0" + rot2 = -rot; + rot = opt.rotate; + } else { + torig = "left center 0"; + rot2 = opt.rotate; + } + + } else { + ofx = opt.width; + rot = -90; + if (nexttrans==25) { + torig = "center bottom 0" + rot2 = -rot; + rot = opt.rotate; + } else { + torig = "right center 0"; + rot2 = opt.rotate; + } + } + + actsh.find('.slotslide').each(function(j) { + var ss=jQuery(this); + mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, + {left:0,transformStyle:"flat",rotationX:0,z:0, autoAlpha:1,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:torig,rotationY:0}, + {left:0,rotationX:rot2,top:0,z:0,autoAlpha:1,force3D:"auto", scale:1,rotationY:rot,ease:punchgs.Power1.easeInOut}),0); + }); + } + + + + //////////////////////////////////////// + // THE SLOTSLIDE - TRANSITION XX. // + /////////////////////////////////////// + if (nexttrans==23 || nexttrans == 24) { // cube-horizontal - inboxhorizontal + + + //SET DEFAULT IMG UNVISIBLE + setTimeout(function() { + actsh.find('.defaultimg').css({opacity:0}); + },100); + var chix=nextli.css('z-index'), + chix2=actli.css('z-index'), + rot = -90, + op = 1, + opx=0; + + if (direction==1) rot = 90; + if (nexttrans==23) { + var torig = "center center -"+opt.width/2; + op=0; + } else + var torig = "center center "+opt.width/2; + + punchgs.TweenLite.set(container,{transformStyle:"preserve-3d",backfaceVisibility:"hidden",perspective:2500}); + nextsh.find('.slotslide').each(function(j) { + var ss=jQuery(this); + mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, + {left:opx,rotationX:opt.rotate,force3D:"auto",opacity:op,top:0,scale:1,transformPerspective:600,transformOrigin:torig,rotationY:rot}, + {left:0,rotationX:0,autoAlpha:1,top:0,z:0, scale:1,rotationY:0, delay:(j*50)/500,ease:punchgs.Power2.easeInOut}),0); + }); + + rot = 90; + if (direction==1) rot = -90; + + actsh.find('.slotslide').each(function(j) { + var ss=jQuery(this); + mtl.add(punchgs.TweenLite.fromTo(ss,masterspeed/1000, + {left:0,autoAlpha:1,rotationX:0,top:0,z:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:torig, rotationY:0}, + {left:opx,autoAlpha:1,rotationX:opt.rotate,top:0, scale:1,rotationY:rot, delay:(j*50)/500,ease:punchgs.Power2.easeInOut}),0); + + + + }); + } + + + // SHOW FIRST LI && ANIMATE THE CAPTIONS + mtl.pause(); + animateTheCaptions(nextli, opt,null,mtl); + punchgs.TweenLite.to(nextli,0.001,{autoAlpha:1}); + + var data={}; + data.slideIndex=opt.next+1; + data.slide = nextli; + container.trigger('revolution.slide.onchange',data); + setTimeout(function() { container.trigger('revolution.slide.onafterswap'); },masterspeed); + container.trigger('revolution.slide.onvideostop'); + + } + + + + + + + /************************************** + - GIVE FREE THE TRANSITIOSN - + **************************************/ + var letItFree = function(container,opt,nextsh,actsh,nextli,actli,mtl) { + punchgs.TweenLite.to(nextsh.find('.defaultimg'),0.001,{autoAlpha:1,onComplete:function() { + removeSlots(container,opt,nextli); + }}); + if (nextli.index()!=actli.index()) { + punchgs.TweenLite.to(actli,0.2,{autoAlpha:0,onComplete:function() { + removeSlots(container,opt,actli); + }}); + } + opt.act=opt.next; + if (opt.navigationType=="thumb") moveSelectedThumb(container); + if (nextsh.data('kenburns')=="on") { + startKenBurn(container,opt); + } + container.find('.current-sr-slide-visible').removeClass("current-sr-slide-visible"); + nextli.addClass("current-sr-slide-visible"); + if (opt.parallax=="scroll" || opt.parallax=="scroll+mouse" || opt.parallax=="mouse+scroll") { + scrollParallax(container,opt); + } + + mtl.clear(); + + } + + + ////////////////////////////////////////// + // CHANG THE YOUTUBE PLAYER STATE HERE // + //////////////////////////////////////// + var onPlayerStateChange = function(event) { + + var embedCode = event.target.getVideoEmbedCode(); + var ytcont = jQuery('#'+embedCode.split('id="')[1].split('"')[0]) + var container = ytcont.closest('.tp-simpleresponsive'); + var player = ytcont.parent().data('player'); + + if (event.data == YT.PlayerState.PLAYING) { + + var bt = container.find('.tp-bannertimer'); + var opt = bt.data('opt'); + + + if (ytcont.closest('.tp-caption').data('volume')=="mute") + player.mute(); + + opt.videoplaying=true; + container.trigger('stoptimer'); + container.trigger('revolution.slide.onvideoplay'); + + } else { + + var bt = container.find('.tp-bannertimer'); + var opt = bt.data('opt'); + + if ((event.data!=-1 && event.data!=3)) { + + opt.videoplaying=false; + container.trigger('starttimer'); + container.trigger('revolution.slide.onvideostop'); + + } + + if (event.data==0 && opt.nextslideatend==true) + opt.container.revnext(); + else { + + opt.videoplaying=false; + container.trigger('starttimer'); + container.trigger('revolution.slide.onvideostop'); + } + + } + + + } + + + + //////////////////////// + // VIMEO ADD EVENT ///// + //////////////////////// + var addEvent = function(element, eventName, callback) { + + if (element.addEventListener) + element.addEventListener(eventName, callback, false); + else + element.attachEvent(eventName, callback, false); + } + + + + + + ///////////////////////////////////// + // EVENT HANDLING FOR VIMEO VIDEOS // + ///////////////////////////////////// + + var vimeoready_auto = function(player_id,autoplay) { + + var froogaloop = $f(player_id), + vimcont = jQuery('#'+player_id), + container = vimcont.closest('.tp-simpleresponsive'), + nextcaption = vimcont.closest('.tp-caption'); + + setTimeout(function() { + froogaloop.addEvent('ready', function(data) { + if(autoplay) froogaloop.api('play'); + + + froogaloop.addEvent('play', function(data) { + var bt = container.find('.tp-bannertimer'); + var opt = bt.data('opt'); + + opt.videoplaying=true; + container.trigger('stoptimer'); + if (nextcaption.data('volume')=="mute") + froogaloop.api('setVolume',"0"); + }); + + froogaloop.addEvent('finish', function(data) { + var bt = container.find('.tp-bannertimer'); + var opt = bt.data('opt'); + opt.videoplaying=false; + container.trigger('starttimer'); + + container.trigger('revolution.slide.onvideoplay'); //opt.videostartednow=1; + if (opt.nextslideatend==true) + opt.container.revnext(); + + }); + + froogaloop.addEvent('pause', function(data) { + var bt = container.find('.tp-bannertimer'); + var opt = bt.data('opt'); + opt.videoplaying=false; + container.trigger('starttimer'); + container.trigger('revolution.slide.onvideostop'); //opt.videostoppednow=1; + }); + + // PLAY VIDEO IF THUMBNAIL HAS BEEN CLICKED + nextcaption.find('.tp-thumb-image').click(function() { + punchgs.TweenLite.to(jQuery(this),0.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut}) + froogaloop.api("play"); + }) + }); + },150); + } + + + + ///////////////////////////////////// + // RESIZE HTML5VIDEO FOR FULLSCREEN// + ///////////////////////////////////// + var updateHTML5Size = function(pc,container) { + var windowW = container.width(); + var windowH = container.height(); + var mediaAspect = pc.data('mediaAspect'); + if (mediaAspect == undefined) mediaAspect = 1; + + + var windowAspect = windowW/windowH; + + pc.css({position:"absolute"}); + var video = pc.find('video'); + + + if (windowAspect < mediaAspect) { + // taller + punchgs.TweenLite.to(pc,0.0001,{width:windowH*mediaAspect,force3D:"auto",top:0, + left:0-(windowH*mediaAspect-windowW)/2, + height:windowH}); + + } else { + // wider + punchgs.TweenLite.to(pc,0.0001,{width:windowW,force3D:"auto",top:0-(windowW/mediaAspect-windowH)/2, + left:0, + height:windowW/mediaAspect}); + } + } + + + + ///////////////////////////////////// + // - CREATE ANIMATION OBJECT - // + ///////////////////////////////////// + var newAnimObject = function() { + var a = new Object(); + a.x=0; + a.y=0; + a.rotationX = 0; + a.rotationY = 0; + a.rotationZ = 0; + a.scale = 1; + a.scaleX = 1; + a.scaleY = 1; + a.skewX = 0; + a.skewY = 0; + a.opacity=0; + a.transformOrigin = "center, center"; + a.transformPerspective = 400; + a.rotation = 0; + return a; + } + + /////////////////////////////////////////////////// + // ANALYSE AND READ OUT DATAS FROM HTML CAPTIONS // + /////////////////////////////////////////////////// + var getAnimDatas = function(frm,data) { + + var customarray = data.split(';'); + jQuery.each(customarray,function(index,param) { + + param = param.split(":") + + var w = param[0], + v = param[1]; + if (w=="rotationX") frm.rotationX = parseInt(v,0); + if (w=="rotationY") frm.rotationY = parseInt(v,0); + if (w=="rotationZ") frm.rotationZ = parseInt(v,0); + if (w=="rotationZ") frm.rotation = parseInt(v,0); + if (w=="scaleX") frm.scaleX = parseFloat(v); + if (w=="scaleY") frm.scaleY = parseFloat(v); + if (w=="opacity") frm.opacity = parseFloat(v); + if (w=="skewX") frm.skewX = parseInt(v,0); + if (w=="skewY") frm.skewY = parseInt(v,0); + if (w=="x") frm.x = parseInt(v,0); + if (w=="y") frm.y = parseInt(v,0); + if (w=="z") frm.z = parseInt(v,0); + if (w=="transformOrigin") frm.transformOrigin = v.toString(); + if (w=="transformPerspective") frm.transformPerspective=parseInt(v,0); + }) + + return frm; + } + /////////////////////////////////////////////////////////////////// + // ANALYSE AND READ OUT DATAS FROM HTML CAPTIONS ANIMATION STEPS // + /////////////////////////////////////////////////////////////////// + var getAnimSteps = function(data) { + + var paramarray = data.split("animation:"); + var params = new Object(); + + params.animation = getAnimDatas(newAnimObject(),paramarray[1]); + var customarray = paramarray[0].split(';'); + + jQuery.each(customarray,function(index,param) { + param = param.split(":") + var w = param[0], + v = param[1]; + if (w=="typ") params.typ = v; + if (w=="speed") params.speed = parseInt(v,0)/1000; + if (w=="start") params.start = parseInt(v,0)/1000; + if (w=="elementdelay") params.elementdelay = parseFloat(v); + if (w=="ease") params.ease = v; + }) + + return params; + } + + + + + //////////////////////// + // SHOW THE CAPTION // + /////////////////////// + var animateTheCaptions = function(nextli, opt,recalled,mtl) { + + // MAKE SURE THE ANIMATION ENDS WITH A CLEANING ON MOZ TRANSFORMS + function animcompleted() { + } + + function tlstart() { + } + + if (nextli.data('ctl')==undefined) { + nextli.data('ctl',new punchgs.TimelineLite()); + } + + var ctl = nextli.data('ctl'), + offsetx=0, + offsety=0, + allcaptions = nextli.find('.tp-caption'), + allstaticcaptions = opt.container.find('.tp-static-layers').find('.tp-caption'); + + + ctl.pause(); + + jQuery.each(allstaticcaptions, function(index,staticcapt) { + allcaptions.push(staticcapt); + }); + + allcaptions.each(function(i) { + var internrecalled = recalled, + staticdirection = -1, // 1 -> In, 2-> Out 0-> Ignore -1-> Not Static + nextcaption=jQuery(this); + + if (nextcaption.hasClass("tp-static-layer")) { + var nss = nextcaption.data('startslide'), + nes = nextcaption.data('endslide'); + + if ( nss == -1 || nss == "-1") + nextcaption.data('startslide',0); + + if ( nes== -1 || nes == "-1") + nextcaption.data('endslide',opt.slideamount); + + if (nss==0 && nes==opt.slideamount-1) + nextcaption.data('endslide',opt.slideamount+1); + + + // RESET SETTIGNS AFTER SETTING THEM AGAIN + nss = nextcaption.data('startslide'), + nes = nextcaption.data('endslide'); + + + // IF STATIC ITEM CURRENTLY NOT VISIBLE + if (!nextcaption.hasClass("tp-is-shown")) { + // IF ITEM SHOULD BECOME VISIBLE + + + if ((nss<=opt.next && nes>=opt.next) || + (nss == opt.next) || (nes == opt.next)){ + + nextcaption.addClass("tp-is-shown"); + staticdirection = 1; + } else { + + staticdirection = 0; + } + // IF STATIC ITEM ALREADY VISIBLE + } else { + if ((nes==opt.next) || + (nss > opt.next) || + (nes < opt.next)) { + + staticdirection = 2; + //nextcaption.removeClass("tp-is-shown"); + } else { + staticdirection = 0; + } + + } + + //if (staticdirection==2) staticdirection = 0; + + } + + offsetx = opt.width/2 - (opt.startwidth*opt.bw)/2; + + var xbw = opt.bw; + var xbh = opt.bh; + + if (opt.fullScreen=="on") + offsety = opt.height/2 - (opt.startheight*opt.bh)/2; + + if (opt.autoHeight=="on" || (opt.minHeight!=undefined && opt.minHeight>0)) + offsety = opt.container.height()/2 - (opt.startheight*opt.bh)/2;; + + + if (offsety<0) offsety=0; + + + + var handlecaption=0; + + // HIDE CAPTION IF RESOLUTION IS TOO LOW + if (opt.width0 || nextcaption.find('video').length>0 ) { + + // YOUTUBE AND VIMEO LISTENRES INITIALISATION + var frameID = "iframe"+Math.round(Math.random()*100000+1), + vidw = nextcaption.data("videowidth"), + vidh = nextcaption.data("videoheight"), + vida = nextcaption.data("videoattributes"), + vidytid = nextcaption.data('ytid'), + vimeoid = nextcaption.data('vimeoid'), + videopreload = nextcaption.data('videpreload'), + videomp = nextcaption.data('videomp4'), + videowebm = nextcaption.data('videowebm'), + videoogv = nextcaption.data('videoogv'), + videocontrols = nextcaption.data('videocontrols'), + httpprefix = "http", + videoloop = nextcaption.data('videoloop')=="loop" ? "loop" : nextcaption.data('videoloop')=="loopandnoslidestop" ? "loop" : ""; + + if (nextcaption.data('thumbimage')!=undefined && nextcaption.data('videoposter')==undefined) + nextcaption.data('videoposter',nextcaption.data('thumbimage')) + + // ADD YOUTUBE IFRAME IF NEEDED + if (vidytid!=undefined && String(vidytid).length>1 && nextcaption.find('iframe').length==0) { + httpprefix = "https"; + + if (videocontrols=="none") { + vida = vida.replace("controls=1","controls=0"); + if (vida.toLowerCase().indexOf('controls')==-1) + vida = vida+"&controls=0"; + } + nextcaption.append(''); + } + + // ADD VIMEO IFRAME IF NEEDED + if (vimeoid!=undefined && String(vimeoid).length>1 && nextcaption.find('iframe').length==0) { + if (location.protocol === 'https:') + httpprefix = "https"; + + nextcaption.append(''); + } + + // ADD HTML5 VIDEO IF NEEDED + if ((videomp!=undefined || videowebm!=undefined) && nextcaption.find('video').length==0) { + + if (videocontrols!="controls") videocontrols=""; + var apptxt = ''; + nextcaption.append(apptxt);*/ + + if (nextcaption.data('videoposter')!=undefined) + if (nextcaption.data('videoposter') != undefined) apptxt = apptxt + 'poster="'+nextcaption.data('videoposter')+'">'; + if (videowebm!=undefined && get_browser().toLowerCase()=="firefox") apptxt = apptxt + ''; + if (videomp!=undefined) apptxt = apptxt + ''; + if (videoogv!=undefined) apptxt = apptxt + ''; + apptxt = apptxt + ''; + nextcaption.append(apptxt); + + if (videocontrols=="controls") + nextcaption.append('
'+ + '
'+ + '
'+ + '
'+ + '
'+ + '
'+ + '
'); + } + + // RESET DEFAULTS + var autoplaywason = false; + if (nextcaption.data('autoplayonlyfirsttime') == true || nextcaption.data('autoplayonlyfirsttime')=="true" || nextcaption.data('autoplay')==true) { + nextcaption.data('autoplay',true); + autoplaywason = true; + } + + + nextcaption.find('iframe').each(function() { + var ifr=jQuery(this); + + punchgs.TweenLite.to(ifr,0.1,{autoAlpha:1, zIndex:0, transformStyle:"preserve-3d",z:0,rotationX:0,force3D:"auto"}); + if (is_mobile()) { + var oldsrc = ifr.attr('src'); + ifr.attr('src',""); + ifr.attr('src',oldsrc); + } + + + // START YOUTUBE HANDLING + opt.nextslideatend = nextcaption.data('nextslideatend'); + + // IF VIDEOPOSTER EXISTING + if (nextcaption.data('videoposter')!=undefined && nextcaption.data('videoposter').length>2 && nextcaption.data('autoplay')!=true && !internrecalled) { + if (nextcaption.find('.tp-thumb-image').length==0) + nextcaption.append('
'); + else + punchgs.TweenLite.set(nextcaption.find('.tp-thumb-image'),{autoAlpha:1}); + } + + // IF IFRAME IS A YOUTUBE FRAME + if (ifr.attr('src').toLowerCase().indexOf('youtube')>=0) { + + // IF LISTENER DOES NOT EXIST YET + if (!ifr.hasClass("HasListener")) { + try { + ifr.attr('id',frameID); + var player; + var ytint = setInterval(function() { + if (YT !=undefined) + if (typeof YT.Player != undefined && typeof YT.Player !="undefined") { + player = new YT.Player(frameID, { + events: { + "onStateChange": onPlayerStateChange, + 'onReady': function(event) { + var embedCode = event.target.getVideoEmbedCode(), + ytcont = jQuery('#'+embedCode.split('id="')[1].split('"')[0]), + nextcaption = ytcont.closest('.tp-caption'), + videorate = nextcaption.data('videorate'), + videostart = nextcaption.data('videostart'); + + + if (videorate!=undefined) + event.target.setPlaybackRate(parseFloat(videorate)); + + /*if (nextcaption.data('autoplay')==true || autoplaywason) + event.target.playVideo();*/ + + if (!is_mobile() && nextcaption.data('autoplay')==true || autoplaywason) { + nextcaption.data('timerplay',setTimeout(function() { + event.target.playVideo(); + },nextcaption.data('start'))); + } + + // PLAY VIDEO IF THUMBNAIL HAS BEEN CLICKED + nextcaption.find('.tp-thumb-image').click(function() { + punchgs.TweenLite.to(jQuery(this),0.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut}) + if (!is_mobile()) { + player.playVideo(); + } + }) + + } + } + }); + } + ifr.addClass("HasListener"); + nextcaption.data('player',player); + clearInterval(ytint); + }, 100) + } catch(e) {} + } else { + if (!recalled) { + var player=nextcaption.data('player'); + if (nextcaption.data('forcerewind')=="on" && !is_mobile()) + player.seekTo(0); + + if (!is_mobile() && nextcaption.data('autoplay')==true || autoplaywason) { + nextcaption.data('timerplay',setTimeout(function() { + player.playVideo(); + },nextcaption.data('start'))); + } + } + } // END YOUTUBE HANDLING + + + } else + + // START VIMEO HANDLING + if (ifr.attr('src').toLowerCase().indexOf('vimeo')>=0) { + if (!ifr.hasClass("HasListener")) { + ifr.addClass("HasListener"); + ifr.attr('id',frameID); + var isrc = ifr.attr('src'); + var queryParameters = {}, queryString = isrc, + re = /([^&=]+)=([^&]*)/g, m; + // Creates a map with the query string parameters + while (m = re.exec(queryString)) { + queryParameters[decodeURIComponent(m[1])] = decodeURIComponent(m[2]); + } + + if (queryParameters['player_id']!=undefined) + isrc = isrc.replace(queryParameters['player_id'],frameID); + else + isrc=isrc+"&player_id="+frameID; + + try{ isrc = isrc.replace('api=0','api=1'); } catch(e) {} + + isrc=isrc+"&api=1"; + + ifr.attr('src',isrc); + var player = nextcaption.find('iframe')[0]; + var vimint = setInterval(function() { + if ($f !=undefined){ + if (typeof $f(frameID).api != undefined && typeof $f(frameID).api !="undefined") { + + $f(player).addEvent('ready', function(){ + vimeoready_auto(frameID,autoplaywason) + }); + clearInterval(vimint); + } + } + },100); + + } else { + if (!recalled) { + if (!is_mobile() && (nextcaption.data('autoplay')==true || nextcaption.data('forcerewind')=="on")) { + + var ifr = nextcaption.find('iframe'); + var id = ifr.attr('id'); + var froogaloop = $f(id); + if (nextcaption.data('forcerewind')=="on") + froogaloop.api("seekTo",0); + nextcaption.data('timerplay',setTimeout(function() { + if (nextcaption.data('autoplay')==true) + froogaloop.api("play"); + },nextcaption.data('start'))); + } + } + }// END HAS LISTENER HANDLING + } // END OF VIMEO HANDLING + }); // END OF LOOP THROUGH IFRAMES + + + + // START OF HTML5 VIDEOS + if ((is_mobile() && nextcaption.data('disablevideoonmobile')==1) ||isIE(8)) nextcaption.find('video').remove(); + //if (is_mobile() && jQuery(window).width()<569) nextcaption.find('video').remove() + + if (nextcaption.find('video').length>0) { + nextcaption.find('video').each(function(i) { + + var video = this, + jvideo = jQuery(this); + + + if (!jvideo.parent().hasClass("html5vid")) + jvideo.wrap('
'); + + var html5vid = jvideo.parent(); + + // WAITING FOR META DATAS + + addEvent(video,'loadedmetadata',function(html5vid) { + html5vid.data('metaloaded',1); + }(html5vid)); + + + clearInterval(html5vid.data('interval')); + html5vid.data('interval',setInterval(function() { + if (html5vid.data('metaloaded')==1 || video.duration!=NaN) { + clearInterval(html5vid.data('interval')); + // FIRST TIME LOADED THE HTML5 VIDEO + if (!html5vid.hasClass("HasListener")) { + html5vid.addClass("HasListener"); + + if (nextcaption.data('dottedoverlay')!="none" && nextcaption.data('dottedoverlay')!=undefined) + if (nextcaption.find('.tp-dottedoverlay').length!=1) + html5vid.append('
'); + + if (jvideo.attr('control') == undefined ) { + if (html5vid.find('.tp-video-play-button').length==0) + html5vid.append('
'); + html5vid.find('video, .tp-poster, .tp-video-play-button').click(function() { + if (html5vid.hasClass("videoisplaying")) + video.pause(); + else + video.play(); + }) + } + + if (nextcaption.data('forcecover')==1 || nextcaption.hasClass('fullscreenvideo')) { + if (nextcaption.data('forcecover')==1) { + updateHTML5Size(html5vid,opt.container); + html5vid.addClass("fullcoveredvideo"); + nextcaption.addClass("fullcoveredvideo"); + } + html5vid.css({width:"100%", height:"100%"}); + } + + + + var playButton = nextcaption.find('.tp-vid-play-pause')[0], + muteButton = nextcaption.find('.tp-vid-mute')[0], + fullScreenButton = nextcaption.find('.tp-vid-full-screen')[0], + seekBar = nextcaption.find('.tp-seek-bar')[0], + volumeBar = nextcaption.find('.tp-volume-bar')[0]; + + if (playButton!=undefined) { + // Event listener for the play/pause button + addEvent(playButton,"click", function() { + if (video.paused == true) + // Play the video + video.play(); + else + // Pause the video + video.pause(); + }); + + // Event listener for the mute button + addEvent(muteButton,"click", function() { + if (video.muted == false) { + // Mute the video + video.muted = true; + + // Update the button text + muteButton.innerHTML = "Unmute"; + } else { + // Unmute the video + video.muted = false; + + // Update the button text + muteButton.innerHTML = "Mute"; + } + }); + + // Event listener for the full-screen button + addEvent(fullScreenButton,"click", function() { + if (video.requestFullscreen) { + video.requestFullscreen(); + } else if (video.mozRequestFullScreen) { + video.mozRequestFullScreen(); // Firefox + } else if (video.webkitRequestFullscreen) { + video.webkitRequestFullscreen(); // Chrome and Safari + } + }); + + + // Event listener for the seek bar + addEvent(seekBar,"change", function() { + // Calculate the new time + var time = video.duration * (seekBar.value / 100); + // Update the video time + video.currentTime = time; + }); + + + // Update the seek bar as the video plays + addEvent(video,"timeupdate", function() { + // Calculate the slider value + var value = (100 / video.duration) * video.currentTime; + + // Update the slider value + seekBar.value = value; + }); + + // Pause the video when the seek handle is being dragged + addEvent(seekBar,"mousedown", function() { + video.pause(); + }); + + // Play the video when the seek handle is dropped + addEvent(seekBar,"mouseup", function() { + video.play(); + }); + + // Event listener for the volume bar + addEvent(volumeBar,"change", function() { + // Update the video volume + video.volume = volumeBar.value; + }); + } + + + // VIDEO EVENT LISTENER FOR "PLAY" + addEvent(video,"play",function() { + if (nextcaption.data('volume')=="mute") + video.muted=true; + + html5vid.addClass("videoisplaying"); + + if (nextcaption.data('videoloop')=="loopandnoslidestop") { + opt.videoplaying=false; + opt.container.trigger('starttimer'); + opt.container.trigger('revolution.slide.onvideostop'); + } else { + + opt.videoplaying=true; + opt.container.trigger('stoptimer'); + opt.container.trigger('revolution.slide.onvideoplay'); + } + + var playButton = nextcaption.find('.tp-vid-play-pause')[0], + muteButton = nextcaption.find('.tp-vid-mute')[0]; + if (playButton!=undefined) + playButton.innerHTML = "Pause"; + if (muteButton!=undefined && video.muted) + muteButton.innerHTML = "Unmute"; + }); + + // VIDEO EVENT LISTENER FOR "PAUSE" + addEvent(video,"pause",function() { + html5vid.removeClass("videoisplaying"); + opt.videoplaying=false; + opt.container.trigger('starttimer'); + opt.container.trigger('revolution.slide.onvideostop'); + var playButton = nextcaption.find('.tp-vid-play-pause')[0]; + if (playButton!=undefined) + playButton.innerHTML = "Play"; + + }); + + // VIDEO EVENT LISTENER FOR "END" + addEvent(video,"ended",function() { + html5vid.removeClass("videoisplaying"); + opt.videoplaying=false; + opt.container.trigger('starttimer'); + opt.container.trigger('revolution.slide.onvideostop'); + if (opt.nextslideatend==true) + opt.container.revnext(); + }); + + } // END OF LISTENER DECLARATION + + var autoplaywason = false; + if (nextcaption.data('autoplayonlyfirsttime') == true || nextcaption.data('autoplayonlyfirsttime')=="true") + autoplaywason = true; + + var mediaaspect=16/9; + if (nextcaption.data('aspectratio')=="4:3") mediaaspect=4/3; + html5vid.data('mediaAspect',mediaaspect); + + if (html5vid.closest('.tp-caption').data('forcecover')==1) { + updateHTML5Size(html5vid,opt.container); + html5vid.addClass("fullcoveredvideo"); + } + + jvideo.css({display:"block"}); + opt.nextslideatend = nextcaption.data('nextslideatend'); + + // IF VIDEO SHOULD BE AUTOPLAYED + if (nextcaption.data('autoplay')==true || autoplaywason==true) { + + + if (nextcaption.data('videoloop')=="loopandnoslidestop") { + opt.videoplaying=false; + opt.container.trigger('starttimer'); + opt.container.trigger('revolution.slide.onvideostop'); + } else { + opt.videoplaying=true; + opt.container.trigger('stoptimer'); + opt.container.trigger('revolution.slide.onvideoplay'); + } + + + if (nextcaption.data('forcerewind')=="on" && !html5vid.hasClass("videoisplaying")) + if (video.currentTime>0) video.currentTime=0; + + if (nextcaption.data('volume')=="mute") + video.muted = true; + + html5vid.data('timerplay',setTimeout(function() { + + if (nextcaption.data('forcerewind')=="on" && !html5vid.hasClass("videoisplaying")) + if (video.currentTime>0) video.currentTime=0; + + if (nextcaption.data('volume')=="mute") + video.muted = true; + + + video.play(); + },10+nextcaption.data('start'))); + } + + if (html5vid.data('ww') == undefined) html5vid.data('ww',jvideo.attr('width')); + if (html5vid.data('hh') == undefined) html5vid.data('hh',jvideo.attr('height')); + + if (!nextcaption.hasClass("fullscreenvideo") && nextcaption.data('forcecover')==1) { + try{ + html5vid.width(html5vid.data('ww')*opt.bw); + html5vid.height(html5vid.data('hh')*opt.bh); + } catch(e) {} + } + + clearInterval(html5vid.data('interval')); + } + }),100); // END OF SET INTERVAL + + }); + } // END OF HTML5 VIDEO FUNCTIONS + + // IF AUTOPLAY IS ON, WE NEED SOME STOP FUNCTION ON + if (nextcaption.data('autoplay')==true) { + setTimeout(function() { + + if (nextcaption.data('videoloop')!="loopandnoslidestop") { + opt.videoplaying=true; + opt.container.trigger('stoptimer'); + } + },200) + if (nextcaption.data('videoloop')!="loopandnoslidestop") { + opt.videoplaying=true; + opt.container.trigger('stoptimer'); + } + + if (nextcaption.data('autoplayonlyfirsttime') == true || nextcaption.data('autoplayonlyfirsttime')=="true" ) { + nextcaption.data('autoplay',false); + nextcaption.data('autoplayonlyfirsttime',false); + } + } + } + + + + + // NEW ENGINE + //if (nextcaption.hasClass("randomrotate") && (opt.ie || opt.ie9)) nextcaption.removeClass("randomrotate").addClass("sfb"); + // nextcaption.removeClass('noFilterClass'); + + + + var imw =0; + var imh = 0; + + if (nextcaption.find('img').length>0) { + var im = nextcaption.find('img'); + if (im.width()==0) im.css({width:"auto"}); + if (im.height()==0) im.css({height:"auto"}); + + if (im.data('ww') == undefined && im.width()>0) im.data('ww',im.width()); + if (im.data('hh') == undefined && im.height()>0) im.data('hh',im.height()); + + var ww = im.data('ww'); + var hh = im.data('hh'); + + if (ww==undefined) ww=0; + if (hh==undefined) hh=0; + + im.width(ww*opt.bw); + im.height(hh*opt.bh); + imw = im.width(); + imh = im.height(); + } else { + + if (nextcaption.find('iframe').length>0 || nextcaption.find('video').length>0) { + + var html5vid = false, + im = nextcaption.find('iframe'); + if (im.length==0) { + im = nextcaption.find('video'); + html5vid = true; + } + im.css({display:"block"}); + + if (nextcaption.data('ww') == undefined) nextcaption.data('ww',im.width()); + if (nextcaption.data('hh') == undefined) nextcaption.data('hh',im.height()); + + var ww = nextcaption.data('ww'), + hh = nextcaption.data('hh'); + + var nc =nextcaption; + if (nc.data('fsize') == undefined) nc.data('fsize',parseInt(nc.css('font-size'),0) || 0); + if (nc.data('pt') == undefined) nc.data('pt',parseInt(nc.css('paddingTop'),0) || 0); + if (nc.data('pb') == undefined) nc.data('pb',parseInt(nc.css('paddingBottom'),0) || 0); + if (nc.data('pl') == undefined) nc.data('pl',parseInt(nc.css('paddingLeft'),0) || 0); + if (nc.data('pr') == undefined) nc.data('pr',parseInt(nc.css('paddingRight'),0) || 0); + + if (nc.data('mt') == undefined) nc.data('mt',parseInt(nc.css('marginTop'),0) || 0); + if (nc.data('mb') == undefined) nc.data('mb',parseInt(nc.css('marginBottom'),0) || 0); + if (nc.data('ml') == undefined) nc.data('ml',parseInt(nc.css('marginLeft'),0) || 0); + if (nc.data('mr') == undefined) nc.data('mr',parseInt(nc.css('marginRight'),0) || 0); + + if (nc.data('bt') == undefined) nc.data('bt',parseInt(nc.css('borderTop'),0) || 0); + if (nc.data('bb') == undefined) nc.data('bb',parseInt(nc.css('borderBottom'),0) || 0); + if (nc.data('bl') == undefined) nc.data('bl',parseInt(nc.css('borderLeft'),0) || 0); + if (nc.data('br') == undefined) nc.data('br',parseInt(nc.css('borderRight'),0) || 0); + + if (nc.data('lh') == undefined) nc.data('lh',parseInt(nc.css('lineHeight'),0) || 0); + + // IE8 FIX FOR AUTO LINEHEIGHT + if (nc.data('lh')=="auto") nc.data('lh',nc.data('fsize')+4); + + var fvwidth=opt.width, + fvheight=opt.height; + if (fvwidth>opt.startwidth) fvwidth=opt.startwidth; + if (fvheight>opt.startheight) fvheight=opt.startheight; + + if (!nextcaption.hasClass('fullscreenvideo')) + nextcaption.css({ + + 'font-size': (nc.data('fsize') * opt.bw)+"px", + + 'padding-top': (nc.data('pt') * opt.bh) + "px", + 'padding-bottom': (nc.data('pb') * opt.bh) + "px", + 'padding-left': (nc.data('pl') * opt.bw) + "px", + 'padding-right': (nc.data('pr') * opt.bw) + "px", + + 'margin-top': (nc.data('mt') * opt.bh) + "px", + 'margin-bottom': (nc.data('mb') * opt.bh) + "px", + 'margin-left': (nc.data('ml') * opt.bw) + "px", + 'margin-right': (nc.data('mr') * opt.bw) + "px", + + 'border-top': (nc.data('bt') * opt.bh) + "px", + 'border-bottom': (nc.data('bb') * opt.bh) + "px", + 'border-left': (nc.data('bl') * opt.bw) + "px", + 'border-right': (nc.data('br') * opt.bw) + "px", + + 'line-height': (nc.data('lh') * opt.bh) + "px", + 'height':(hh*opt.bh)+'px' + }); + else { + + offsetx=0; offsety=0; + nextcaption.data('x',0) + nextcaption.data('y',0) + + var ovhh = opt.height + if (opt.autoHeight=="on") + ovhh = opt.container.height() + nextcaption.css({ + + 'width':opt.width, + 'height':ovhh + }); + } + + if (html5vid == false) { + im.width(ww*opt.bw); + im.height(hh*opt.bh); + } + + else + + if (nextcaption.data('forcecover')!=1 && !nextcaption.hasClass('fullscreenvideo')) { + im.width(ww*opt.bw); + im.height(hh*opt.bh); + } + + + imw = im.width(); + imh = im.height(); + } + + else { + + + nextcaption.find('.tp-resizeme, .tp-resizeme *').each(function() { + calcCaptionResponsive(jQuery(this),opt); + }); + + if (nextcaption.hasClass("tp-resizeme")) { + nextcaption.find('*').each(function() { + calcCaptionResponsive(jQuery(this),opt); + }); + } + + calcCaptionResponsive(nextcaption,opt); + + imh=nextcaption.outerHeight(true); + imw=nextcaption.outerWidth(true); + + // NEXTCAPTION FRONTCORNER CHANGES + var ncch = nextcaption.outerHeight(); + var bgcol = nextcaption.css('backgroundColor'); + nextcaption.find('.frontcorner').css({ + 'borderWidth':ncch+"px", + 'left':(0-ncch)+'px', + 'borderRight':'0px solid transparent', + 'borderTopColor':bgcol + }); + + nextcaption.find('.frontcornertop').css({ + 'borderWidth':ncch+"px", + 'left':(0-ncch)+'px', + 'borderRight':'0px solid transparent', + 'borderBottomColor':bgcol + }); + + // NEXTCAPTION BACKCORNER CHANGES + nextcaption.find('.backcorner').css({ + 'borderWidth':ncch+"px", + 'right':(0-ncch)+'px', + 'borderLeft':'0px solid transparent', + 'borderBottomColor':bgcol + }); + + // NEXTCAPTION BACKCORNER CHANGES + nextcaption.find('.backcornertop').css({ + 'borderWidth':ncch+"px", + 'right':(0-ncch)+'px', + 'borderLeft':'0px solid transparent', + 'borderTopColor':bgcol + }); + + } + + + } + + if (opt.fullScreenAlignForce == "on") { + //xbw = 1; + //xbh = 1; + offsetx=0; + offsety=0; + } + + + + if (nextcaption.data('voffset')==undefined) nextcaption.data('voffset',0); + if (nextcaption.data('hoffset')==undefined) nextcaption.data('hoffset',0); + + var vofs= nextcaption.data('voffset')*xbw; + var hofs= nextcaption.data('hoffset')*xbw; + + var crw = opt.startwidth*xbw; + var crh = opt.startheight*xbw; + + if (opt.fullScreenAlignForce == "on") { + crw = opt.container.width(); + crh = opt.container.height(); + } + + + + // CENTER THE CAPTION HORIZONTALLY + if (nextcaption.data('x')=="center" || nextcaption.data('xcenter')=='center') { + nextcaption.data('xcenter','center'); + //nextcaption.data('x',(crw/2 - nextcaption.outerWidth(true)/2)/xbw+ hofs); + nextcaption.data('x',(crw/2 - nextcaption.outerWidth(true)/2) + hofs); + + + } + + // ALIGN LEFT THE CAPTION HORIZONTALLY + if (nextcaption.data('x')=="left" || nextcaption.data('xleft')=='left') { + nextcaption.data('xleft','left'); + + nextcaption.data('x',(0)/xbw+hofs); + + } + + // ALIGN RIGHT THE CAPTION HORIZONTALLY + if (nextcaption.data('x')=="right" || nextcaption.data('xright')=='right') { + nextcaption.data('xright','right'); + nextcaption.data('x',((crw - nextcaption.outerWidth(true))+hofs)/xbw); + //konsole.log("crw:"+crw+" width:"+nextcaption.outerWidth(true)+" xbw:"+xbw); + //konsole.log("x-pos:"+nextcaption.data('x')) + } + + + // CENTER THE CAPTION VERTICALLY + if (nextcaption.data('y')=="center" || nextcaption.data('ycenter')=='center') { + nextcaption.data('ycenter','center'); + nextcaption.data('y',(crh/2 - nextcaption.outerHeight(true)/2) + vofs); + } + + // ALIGN TOP THE CAPTION VERTICALLY + if (nextcaption.data('y')=="top" || nextcaption.data('ytop')=='top') { + nextcaption.data('ytop','top'); + nextcaption.data('y',(0)/opt.bh+vofs); + + } + + // ALIGN BOTTOM THE CAPTION VERTICALLY + if (nextcaption.data('y')=="bottom" || nextcaption.data('ybottom')=='bottom') { + nextcaption.data('ybottom','bottom'); + nextcaption.data('y',((crh - nextcaption.outerHeight(true))+vofs)/xbw); + + } + + + + // THE TRANSITIONS OF CAPTIONS + // MDELAY AND MSPEED + if (nextcaption.data('start') == undefined) nextcaption.data('start',1000); + + + + var easedata=nextcaption.data('easing'); + if (easedata==undefined) easedata="punchgs.Power1.easeOut"; + + + var mdelay = nextcaption.data('start')/1000, + mspeed = nextcaption.data('speed')/1000; + + + if (nextcaption.data('x')=="center" || nextcaption.data('xcenter')=='center') + var calcx = (nextcaption.data('x')+offsetx); + else { + + var calcx = (xbw*nextcaption.data('x')+offsetx); + } + + + if (nextcaption.data('y')=="center" || nextcaption.data('ycenter')=='center') + var calcy = (nextcaption.data('y')+offsety); + else { + //if (opt.fullScreenAlignForce == "on" && (nextcaption.data('y')=="bottom" || nextcaption.data('ybottom')=='bottom')) + // opt.bh = 1; + + var calcy = (opt.bh*nextcaption.data('y')+offsety); + } + + + punchgs.TweenLite.set(nextcaption,{top:calcy,left:calcx,overwrite:"auto"}); + + if (staticdirection == 0) + internrecalled = true; + + if (nextcaption.data('timeline')!=undefined && !internrecalled) { + if (staticdirection!=2) + nextcaption.data('timeline').gotoAndPlay(0); + internrecalled = true; + } + + if (!internrecalled) { + + + + // CLEAR THE TIMELINE, SINCE IT CAN BE DAMAGED, OR PAUSED AT A FEW PART + if (nextcaption.data('timeline')!=undefined) { + //nextcaption.data('timeline').clear(); + } + + var tl = new punchgs.TimelineLite({smoothChildTiming:true,onStart:tlstart}); + tl.pause(); + + + if (opt.fullScreenAlignForce == "on") { + //calcy = nextcaption.data('y')+offsety; + } + + var animobject = nextcaption; + if (nextcaption.data('mySplitText') !=undefined) nextcaption.data('mySplitText').revert(); + + + if (nextcaption.data('splitin') == "chars" || nextcaption.data('splitin') == "words" || nextcaption.data('splitin') == "lines" || nextcaption.data('splitout') == "chars" || nextcaption.data('splitout') == "words" || nextcaption.data('splitout') == "lines") { + if (nextcaption.find('a').length>0) + nextcaption.data('mySplitText',new punchgs.SplitText(nextcaption.find('a'),{type:"lines,words,chars",charsClass:"tp-splitted",wordsClass:"tp-splitted",linesClass:"tp-splitted"})); + else + if (nextcaption.find('.tp-layer-inner-rotation').length>0) + nextcaption.data('mySplitText',new punchgs.SplitText(nextcaption.find('.tp-layer-inner-rotation'),{type:"lines,words,chars",charsClass:"tp-splitted",wordsClass:"tp-splitted",linesClass:"tp-splitted"})); + else + nextcaption.data('mySplitText',new punchgs.SplitText(nextcaption,{type:"lines,words,chars",charsClass:"tp-splitted",wordsClass:"tp-splitted",linesClass:"tp-splitted"})); + + nextcaption.addClass("splitted"); + } + + if (nextcaption.data('splitin') == "chars") + animobject = nextcaption.data('mySplitText').chars; + + + if (nextcaption.data('splitin') == "words") + animobject = nextcaption.data('mySplitText').words; + + + if (nextcaption.data('splitin') == "lines") + animobject = nextcaption.data('mySplitText').lines; + + + + var frm = newAnimObject(); + var endfrm = newAnimObject(); + + + if (nextcaption.data('repeat')!=undefined) repeatV = nextcaption.data('repeat'); + if (nextcaption.data('yoyo')!=undefined) yoyoV = nextcaption.data('yoyo'); + if (nextcaption.data('repeatdelay')!=undefined) repeatdelayV = nextcaption.data('repeatdelay'); + + var ncc = nextcaption.attr('class'); + + // WHICH ANIMATION TYPE SHOULD BE USED + if (ncc.match("customin")) frm = getAnimDatas(frm,nextcaption.data('customin')); + else + if (ncc.match("randomrotate")) { + + frm.scale = Math.random()*3+1; + frm.rotation = Math.round(Math.random()*200-100); + frm.x = Math.round(Math.random()*200-100); + frm.y = Math.round(Math.random()*200-100); + } + else + if (ncc.match('lfr') || ncc.match('skewfromright')) frm.x = 15+opt.width; + else + if (ncc.match('lfl') || ncc.match('skewfromleft')) frm.x = -15-imw; + else + if (ncc.match('sfl') || ncc.match('skewfromleftshort')) frm.x = -50; + else + if (ncc.match('sfr') || ncc.match('skewfromrightshort')) frm.x = 50; + else + if (ncc.match('lft')) frm.y = -25 - imh; + else + if (ncc.match('lfb')) frm.y = 25 + opt.height; + else + if (ncc.match('sft')) frm.y = -50; + else + if (ncc.match('sfb')) frm.y = 50; + + + if (ncc.match('skewfromright') || nextcaption.hasClass('skewfromrightshort')) frm.skewX = -85 + else + if (ncc.match('skewfromleft') || nextcaption.hasClass('skewfromleftshort')) frm.skewX = 85 + + + if (ncc.match("fade") || ncc.match('sft') || ncc.match('sfl') || ncc.match('sfb') || ncc.match('skewfromleftshort') || ncc.match('sfr') || ncc.match('skewfromrightshort')) + frm.opacity = 0; + + // FOR SAFARI WE NEED TO REMOVE 3D ROTATIONS + if (get_browser().toLowerCase()=="safari") { + //frm.rotationX=0;frm.rotationY=0; + } + + var elemdelay = (nextcaption.data('elementdelay') == undefined) ? 0 : nextcaption.data('elementdelay'); + endfrm.ease = frm.ease = (nextcaption.data('easing') == undefined) ? punchgs.Power1.easeInOut : nextcaption.data('easing'); + + + // DISTANCES SHOULD BE RESIZED ALSO + + frm.data = new Object(); + frm.data.oldx = frm.x; + frm.data.oldy = frm.y; + + endfrm.data = new Object(); + endfrm.data.oldx = endfrm.x; + endfrm.data.oldy = endfrm.y; + + frm.x = frm.x * xbw; + frm.y = frm.y * xbw; + + var newtl = new punchgs.TimelineLite(); + + + if (staticdirection != 2) { + + // CHANGE to punchgs.TweenLite. if Yoyo and Repeat is used. Dont forget to laod the Right Tools for it !! + if (ncc.match("customin")) { + if (animobject != nextcaption) + tl.add(punchgs.TweenLite.set(nextcaption, { force3D:"auto",opacity:1,scaleX:1,scaleY:1,rotationX:0,rotationY:0,rotationZ:0,skewX:0,skewY:0,z:0,x:0,y:0,visibility:'visible',delay:0,overwrite:"all"})); + frm.visibility = "hidden"; + endfrm.visibility = "visible"; + endfrm.overwrite = "all"; + endfrm.opacity = 1; + endfrm.onComplete = animcompleted(); + endfrm.delay = mdelay; + endfrm.force3D="auto" + + tl.add(newtl.staggerFromTo(animobject,mspeed,frm,endfrm,elemdelay),"frame0"); + + } else { + + frm.visibility = "visible"; + frm.transformPerspective = 600; + if (animobject != nextcaption) + tl.add(punchgs.TweenLite.set(nextcaption, { force3D:"auto",opacity:1,scaleX:1,scaleY:1,rotationX:0,rotationY:0,rotationZ:0,skewX:0,skewY:0,z:0,x:0,y:0,visibility:'visible',delay:0,overwrite:"all"})); + + endfrm.visibility = "visible"; + endfrm.delay = mdelay; + endfrm.onComplete = animcompleted(); + endfrm.opacity = 1; + endfrm.force3D="auto"; + if (ncc.match("randomrotate") && animobject != nextcaption) { + + for (var i=0;i0) { + var params = getAnimSteps(spframe); + + addMoveCaption(nextcaption,opt,params,"frame"+(index+10),xbw) + + } + }) + } // END OF ANIMATION STEPS + + tl = nextcaption.data('timeline'); + // IF THERE IS ANY EXIT ANIM DEFINED + // For Static Layers -> 1 -> In, 2-> Out 0-> Ignore -1-> Not Static + if ((nextcaption.data('end')!=undefined) && (staticdirection==-1 || staticdirection==2)) { + endMoveCaption(nextcaption,opt,nextcaption.data('end')/1000,frm,"frame99",xbw); + } else { + if (staticdirection==-1 || staticdirection==2) + endMoveCaption(nextcaption,opt,999999,frm,"frame99",xbw); + else + endMoveCaption(nextcaption,opt,200,frm,"frame99",xbw); + } + + // SAVE THE TIMELINE IN DOM ELEMENT + tl = nextcaption.data('timeline'); + nextcaption.data('timeline',tl); + callCaptionLoops(nextcaption,xbw); + tl.resume(); + } + } + + if (internrecalled) { + killCaptionLoops(nextcaption); + callCaptionLoops(nextcaption,xbw); + + if (nextcaption.data('timeline') != undefined) { + var tweens = nextcaption.data('timeline').getTweensOf(); + jQuery.each(tweens,function(index,tween) { + if (tween.vars.data != undefined) { + var newx = tween.vars.data.oldx * xbw; + var newy = tween.vars.data.oldy * xbw; + if (tween.progress() !=1 && tween.progress()!=0) { + try{ + //tween.updateTo({x:newx, y:newy},true); + tween.vars.x = newx; + tween.vary.y = newy; + } catch(e) { + + } + } else { + if (tween.progress()==1) { + punchgs.TweenLite.set(tween.target,{x:newx,y:newy}); + } + } + } + }) + } + } + + }) + + var bt=jQuery('body').find('#'+opt.container.attr('id')).find('.tp-bannertimer'); + bt.data('opt',opt); + + + + if (mtl != undefined) setTimeout(function() { + mtl.resume(); + },30); + + } + + + var get_browser = function(){ + var N=navigator.appName, ua=navigator.userAgent, tem; + var M=ua.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i); + if(M && (tem= ua.match(/version\/([\.\d]+)/i))!= null) M[2]= tem[1]; + M=M? [M[1], M[2]]: [N, navigator.appVersion, '-?']; + return M[0]; + } + var get_browser_version = function(){ + var N=navigator.appName, ua=navigator.userAgent, tem; + var M=ua.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i); + if(M && (tem= ua.match(/version\/([\.\d]+)/i))!= null) M[2]= tem[1]; + M=M? [M[1], M[2]]: [N, navigator.appVersion, '-?']; + return M[1]; + } + + ///////////////////////////////////////////////////////////////// + // - CALCULATE THE RESPONSIVE SIZES OF THE CAPTIONS - // + ///////////////////////////////////////////////////////////////// + var calcCaptionResponsive = function(nc,opt) { + if (nc.data('fsize') == undefined) nc.data('fsize',parseInt(nc.css('font-size'),0) || 0); + if (nc.data('pt') == undefined) nc.data('pt',parseInt(nc.css('paddingTop'),0) || 0); + if (nc.data('pb') == undefined) nc.data('pb',parseInt(nc.css('paddingBottom'),0) || 0); + if (nc.data('pl') == undefined) nc.data('pl',parseInt(nc.css('paddingLeft'),0) || 0); + if (nc.data('pr') == undefined) nc.data('pr',parseInt(nc.css('paddingRight'),0) || 0); + + if (nc.data('mt') == undefined) nc.data('mt',parseInt(nc.css('marginTop'),0) || 0); + if (nc.data('mb') == undefined) nc.data('mb',parseInt(nc.css('marginBottom'),0) || 0); + if (nc.data('ml') == undefined) nc.data('ml',parseInt(nc.css('marginLeft'),0) || 0); + if (nc.data('mr') == undefined) nc.data('mr',parseInt(nc.css('marginRight'),0) || 0); + + if (nc.data('bt') == undefined) nc.data('bt',parseInt(nc.css('borderTopWidth'),0) || 0); + if (nc.data('bb') == undefined) nc.data('bb',parseInt(nc.css('borderBottomWidth'),0) || 0); + if (nc.data('bl') == undefined) nc.data('bl',parseInt(nc.css('borderLeftWidth'),0) || 0); + if (nc.data('br') == undefined) nc.data('br',parseInt(nc.css('borderRightWidth'),0) || 0); + + if (nc.data('ls') == undefined) nc.data('ls',parseInt(nc.css('letterSpacing'),0) || 0); + + if (nc.data('lh') == undefined) nc.data('lh',parseInt(nc.css('lineHeight'),0) || "auto"); + if (nc.data('minwidth') == undefined) nc.data('minwidth',parseInt(nc.css('minWidth'),0) || 0); + if (nc.data('minheight') == undefined) nc.data('minheight',parseInt(nc.css('minHeight'),0) || 0); + if (nc.data('maxwidth') == undefined) nc.data('maxwidth',parseInt(nc.css('maxWidth'),0) || "none"); + if (nc.data('maxheight') == undefined) nc.data('maxheight',parseInt(nc.css('maxHeight'),0) || "none"); + if (nc.data('wii') == undefined) nc.data('wii',parseInt(nc.css('width'),0) || 0); + if (nc.data('hii') == undefined) nc.data('hii',parseInt(nc.css('height'),0) || 0); + + if (nc.data('wan') == undefined) nc.data('wan',nc.css("-webkit-transition")); + if (nc.data('moan') == undefined) nc.data('moan',nc.css("-moz-animation-transition")); + if (nc.data('man') == undefined) nc.data('man',nc.css("-ms-animation-transition")); + if (nc.data('ani') == undefined) nc.data('ani',nc.css("transition")); + + // IE8 FIX FOR AUTO LINEHEIGHT + if (nc.data('lh')=="auto") nc.data('lh',nc.data('fsize')+4); + + + + + if (!nc.hasClass("tp-splitted")) { + + + nc.css("-webkit-transition", "none"); + nc.css("-moz-transition", "none"); + nc.css("-ms-transition", "none"); + nc.css("transition", "none"); + + punchgs.TweenLite.set(nc,{ + fontSize: Math.round((nc.data('fsize') * opt.bw))+"px", + + letterSpacing:Math.floor((nc.data('ls') * opt.bw))+"px", + + paddingTop: Math.round((nc.data('pt') * opt.bh)) + "px", + paddingBottom: Math.round((nc.data('pb') * opt.bh)) + "px", + paddingLeft: Math.round((nc.data('pl') * opt.bw)) + "px", + paddingRight: Math.round((nc.data('pr') * opt.bw)) + "px", + + marginTop: (nc.data('mt') * opt.bh) + "px", + marginBottom: (nc.data('mb') * opt.bh) + "px", + marginLeft: (nc.data('ml') * opt.bw) + "px", + marginRight: (nc.data('mr') * opt.bw) + "px", + + borderTopWidth: Math.round((nc.data('bt') * opt.bh)) + "px", + borderBottomWidth: Math.round((nc.data('bb') * opt.bh)) + "px", + borderLeftWidth: Math.round((nc.data('bl') * opt.bw)) + "px", + borderRightWidth: Math.round((nc.data('br') * opt.bw)) + "px", + + lineHeight: Math.round((nc.data('lh') * opt.bh)) + "px", + minWidth:(nc.data('minwidth') * opt.bw) + "px", + minHeight:(nc.data('minheight') * opt.bh) + "px", + + /* width:(nc.data('wii') * opt.bw) + "px", + height:(nc.data('hii') * opt.bh) + "px", */ + + overwrite:"auto" + }); + setTimeout(function() { + nc.css("-webkit-transition", nc.data('wan')); + nc.css("-moz-transition", nc.data('moan')); + nc.css("-ms-transition", nc.data('man')); + nc.css("transition", nc.data('ani')); + + },30); + + //konsole.log(nc.data('maxwidth')+" "+nc.data('maxheight')); + if (nc.data('maxheight')!='none') + nc.css({'maxHeight':(nc.data('maxheight') * opt.bh) + "px"}); + + + if (nc.data('maxwidth')!='none') + nc.css({'maxWidth':(nc.data('maxwidth') * opt.bw) + "px"}); + } + } + + + /****************************** + - CAPTION LOOPS - + ********************************/ + + + var callCaptionLoops = function(nextcaption,factor) { + + // SOME LOOPING ANIMATION ON INTERNAL ELEMENTS + nextcaption.find('.rs-pendulum').each(function() { + var el = jQuery(this); + if (el.data('timeline')==undefined) { + el.data('timeline',new punchgs.TimelineLite); + var startdeg = el.data('startdeg')==undefined ? -20 : el.data('startdeg'), + enddeg = el.data('enddeg')==undefined ? 20 : el.data('enddeg'), + speed = el.data('speed')==undefined ? 2 : el.data('speed'), + origin = el.data('origin')==undefined ? "50% 50%" : el.data('origin'), + easing = el.data('easing')==undefined ? punchgs.Power2.easeInOut : el.data('ease'); + + startdeg = startdeg * factor; + enddeg = enddeg * factor; + + el.data('timeline').append(new punchgs.TweenLite.fromTo(el,speed,{force3D:"auto",rotation:startdeg,transformOrigin:origin},{rotation:enddeg,ease:easing})); + el.data('timeline').append(new punchgs.TweenLite.fromTo(el,speed,{force3D:"auto",rotation:enddeg,transformOrigin:origin},{rotation:startdeg,ease:easing,onComplete:function() { + el.data('timeline').restart(); + }})); + } + + }) + + // SOME LOOPING ANIMATION ON INTERNAL ELEMENTS + nextcaption.find('.rs-rotate').each(function() { + var el = jQuery(this); + if (el.data('timeline')==undefined) { + el.data('timeline',new punchgs.TimelineLite); + var startdeg = el.data('startdeg')==undefined ? 0 : el.data('startdeg'), + enddeg = el.data('enddeg')==undefined ? 360 : el.data('enddeg'); + speed = el.data('speed')==undefined ? 2 : el.data('speed'), + origin = el.data('origin')==undefined ? "50% 50%" : el.data('origin'), + easing = el.data('easing')==undefined ? punchgs.Power2.easeInOut : el.data('easing'); + + startdeg = startdeg * factor; + enddeg = enddeg * factor; + + el.data('timeline').append(new punchgs.TweenLite.fromTo(el,speed,{force3D:"auto",rotation:startdeg,transformOrigin:origin},{rotation:enddeg,ease:easing,onComplete:function() { + el.data('timeline').restart(); + }})); + } + + }) + + // SOME LOOPING ANIMATION ON INTERNAL ELEMENTS + nextcaption.find('.rs-slideloop').each(function() { + var el = jQuery(this); + if (el.data('timeline')==undefined) { + el.data('timeline',new punchgs.TimelineLite); + var xs = el.data('xs')==undefined ? 0 : el.data('xs'), + ys = el.data('ys')==undefined ? 0 : el.data('ys'), + xe = el.data('xe')==undefined ? 0 : el.data('xe'), + ye = el.data('ye')==undefined ? 0 : el.data('ye'), + speed = el.data('speed')==undefined ? 2 : el.data('speed'), + easing = el.data('easing')==undefined ? punchgs.Power2.easeInOut : el.data('easing'); + + xs = xs * factor; + ys = ys * factor; + xe = xe * factor; + ye = ye * factor; + + el.data('timeline').append(new punchgs.TweenLite.fromTo(el,speed,{force3D:"auto",x:xs,y:ys},{x:xe,y:ye,ease:easing})); + el.data('timeline').append(new punchgs.TweenLite.fromTo(el,speed,{force3D:"auto",x:xe,y:ye},{x:xs,y:ys,onComplete:function() { + el.data('timeline').restart(); + }})); + } + + }) + + // SOME LOOPING ANIMATION ON INTERNAL ELEMENTS + nextcaption.find('.rs-pulse').each(function() { + var el = jQuery(this); + if (el.data('timeline')==undefined) { + el.data('timeline',new punchgs.TimelineLite); + var zoomstart = el.data('zoomstart')==undefined ? 0 : el.data('zoomstart'), + zoomend = el.data('zoomend')==undefined ? 0 : el.data('zoomend'), + speed = el.data('speed')==undefined ? 2 : el.data('speed'), + easing = el.data('easing')==undefined ? punchgs.Power2.easeInOut : el.data('easing'); + + el.data('timeline').append(new punchgs.TweenLite.fromTo(el,speed,{force3D:"auto",scale:zoomstart},{scale:zoomend,ease:easing})); + el.data('timeline').append(new punchgs.TweenLite.fromTo(el,speed,{force3D:"auto",scale:zoomend},{scale:zoomstart,onComplete:function() { + el.data('timeline').restart(); + }})); + } + + }) + + nextcaption.find('.rs-wave').each(function() { + var el = jQuery(this); + if (el.data('timeline')==undefined) { + el.data('timeline',new punchgs.TimelineLite); + + var angle= el.data('angle')==undefined ? 10 : el.data('angle'), + radius = el.data('radius')==undefined ? 10 : el.data('radius'), + speed = el.data('speed')==undefined ? -20 : el.data('speed'), + origin = el.data('origin')==undefined ? -20 : el.data('origin'); + + angle = angle*factor; + radius = radius * factor; + + var angobj = {a:0, ang : angle, element:el, unit:radius}; + + + el.data('timeline').append(new punchgs.TweenLite.fromTo(angobj,speed, + { a:360 }, + { a:0, + force3D:"auto", + ease:punchgs.Linear.easeNone, + onUpdate:function() { + + var rad = angobj.a * (Math.PI / 180); + punchgs.TweenLite.to(angobj.element,0.1,{force3D:"auto",x:Math.cos(rad) * angobj.unit, y:angobj.unit * (1 - Math.sin(rad))}); + + }, + onComplete:function() { + el.data('timeline').restart(); + } + } + )); + } + + }) + } + + var killCaptionLoops = function(nextcaption) { + // SOME LOOPING ANIMATION ON INTERNAL ELEMENTS + nextcaption.find('.rs-pendulum, .rs-slideloop, .rs-pulse, .rs-wave').each(function() { + var el = jQuery(this); + if (el.data('timeline')!=undefined) { + el.data('timeline').pause(); + el.data('timeline',null); + } + }); + } + + ////////////////////////// + // REMOVE THE CAPTIONS // + ///////////////////////// + var removeTheCaptions = function(actli,opt) { + + var removetime = 0; + + var allcaptions = actli.find('.tp-caption'), + allstaticcaptions = opt.container.find('.tp-static-layers').find('.tp-caption'); + + + jQuery.each(allstaticcaptions, function(index,staticcapt) { + allcaptions.push(staticcapt); + }); + + allcaptions.each(function(i) { + + + + var staticdirection = -1; // 1 -> In, 2-> Out 0-> Ignore -1-> Not Static + + var nextcaption=jQuery(this); + if (nextcaption.hasClass("tp-static-layer")) { + + if (nextcaption.data('startslide') == -1 || nextcaption.data('startslide') == "-1") + nextcaption.data('startslide',0); + + if (nextcaption.data('endslide') == -1 || nextcaption.data('endslide') == "-1") + nextcaption.data('endslide',opt.slideamount); + + + + // IF STATIC ITEM CURRENTLY NOT VISIBLE + if (nextcaption.hasClass("tp-is-shown")) { + + if ((nextcaption.data('startslide') > opt.next) || + (nextcaption.data('endslide') < opt.next)) { + + staticdirection = 2; + nextcaption.removeClass("tp-is-shown"); + } else { + staticdirection = 0; + } + } else { + staticdirection = 2; + } + + + + } + + + + if (staticdirection != 0 ) { + + killCaptionLoops(nextcaption); + + if (nextcaption.find('iframe').length>0) { + // VIMEO VIDEO PAUSE + //if (nextcaption.data('vimeoid')!=undefined && String(nextcaption.data('vimeoid')).length>0) + punchgs.TweenLite.to(nextcaption.find('iframe'),0.2,{autoAlpha:0}); + if (is_mobile()) nextcaption.find('iframe').remove(); + try { + var ifr = nextcaption.find('iframe'); + var id = ifr.attr('id'); + var froogaloop = $f(id); + froogaloop.api("pause"); + clearTimeout(nextcaption.data('timerplay')); + } catch(e) {} + + try { + var player=nextcaption.data('player'); + player.stopVideo(); + clearTimeout(nextcaption.data('timerplay')); + } catch(e) {} + } + + // IF HTML5 VIDEO IS EMBEDED + if (nextcaption.find('video').length>0) { + try{ + nextcaption.find('video').each(function(i) { + var html5vid = jQuery(this).parent(); + var videoID =html5vid.attr('id'); + clearTimeout(html5vid.data('timerplay')); + var video = this; + video.pause(); + }) + }catch(e) {} + } // END OF VIDEO JS FUNCTIONS + try { + + //var tl = punchgs.TimelineLite.exportRoot(); + var tl = nextcaption.data('timeline'); + var endstarts = tl.getLabelTime("frame99"); + var curtime = tl.time(); + if (endstarts>curtime) { + + // WE NEED TO STOP ALL OTHER NIMATIONS + var tweens = tl.getTweensOf(nextcaption); + jQuery.each(tweens,function(index,tw) { + + if (index!=0) + tw.pause(); + }); + if (nextcaption.css('opacity')!=0) { + var spp = nextcaption.data('endspeed') == undefined ? nextcaption.data('speed') : nextcaption.data('endspeed'); + if (spp>removetime) removetime =spp; + tl.play("frame99"); + } else + tl.progress(1,false); + } + + } catch(e) {} + + } + + }); + + return removetime; + } + + ////////////////////////////// + // MOVE THE CAPTIONS // + //////////////////////////// + var addMoveCaption = function(nextcaption,opt,params,frame,downscale) { + var tl = nextcaption.data('timeline'); + + var newtl = new punchgs.TimelineLite(); + + var animobject = nextcaption; + + if (params.typ == "chars") animobject = nextcaption.data('mySplitText').chars; + else + if (params.typ == "words") animobject = nextcaption.data('mySplitText').words; + else + if (params.typ == "lines") animobject = nextcaption.data('mySplitText').lines; + params.animation.ease = params.ease; + + if (params.animation.rotationZ !=undefined) params.animation.rotation = params.animation.rotationZ; + params.animation.data = new Object(); + params.animation.data.oldx = params.animation.x; + params.animation.data.oldy = params.animation.y; + + params.animation.x = params.animation.x * downscale; + params.animation.y = params.animation.y * downscale; + + + tl.add(newtl.staggerTo(animobject,params.speed,params.animation,params.elementdelay),params.start); + tl.addLabel(frame,params.start); + + nextcaption.data('timeline',tl); + + } + ////////////////////////////// + // MOVE OUT THE CAPTIONS // + //////////////////////////// + var endMoveCaption = function(nextcaption,opt,mdelay,backwards,frame,downscale) { + + var tl = nextcaption.data('timeline'), + newtl = new punchgs.TimelineLite(); + + var frm = newAnimObject(), + mspeed= (nextcaption.data('endspeed') == undefined) ? nextcaption.data('speed') : nextcaption.data('endspeed'), + ncc = nextcaption.attr('class'); + + frm.ease = (nextcaption.data('endeasing') == undefined) ? punchgs.Power1.easeInOut : nextcaption.data('endeasing'); + + mspeed = mspeed/1000; + + + + if (ncc.match('ltr') || + ncc.match('ltl') || + ncc.match('str') || + ncc.match('stl') || + ncc.match('ltt') || + ncc.match('ltb') || + ncc.match('stt') || + ncc.match('stb') || + ncc.match('skewtoright') || + ncc.match('skewtorightshort') || + ncc.match('skewtoleft') || + ncc.match('skewtoleftshort') || + ncc.match('fadeout') || + ncc.match("randomrotateout")) + { + + if (ncc.match('skewtoright') || ncc.match('skewtorightshort')) frm.skewX = 35 + else + if (ncc.match('skewtoleft') || ncc.match('skewtoleftshort')) frm.skewX = -35 + + + if (ncc.match('ltr') || ncc.match('skewtoright')) + frm.x=opt.width+60; + else if (ncc.match('ltl') || ncc.match('skewtoleft')) + frm.x=0-(opt.width+60); + else if (ncc.match('ltt')) + frm.y=0-(opt.height+60); + else if (ncc.match('ltb')) + frm.y=opt.height+60; + else if (ncc.match('str') || ncc.match('skewtorightshort')) { + frm.x=50;frm.opacity=0; + } else if (ncc.match('stl') || ncc.match('skewtoleftshort')) { + frm.x=-50;frm.opacity=0; + } else if (ncc.match('stt')) { + frm.y=-50;frm.opacity=0; + } else if (ncc.match('stb')) { + frm.y=50;frm.opacity=0; + } else if (ncc.match("randomrotateout")) { + frm.x = Math.random()*opt.width; + frm.y = Math.random()*opt.height; + frm.scale = Math.random()*2+0.3; + frm.rotation = Math.random()*360-180; + frm.opacity = 0; + } else if (ncc.match('fadeout')) { + frm.opacity = 0; + } + + if (ncc.match('skewtorightshort')) frm.x = 270; + else + if (ncc.match('skewtoleftshort')) frm.x = -270 + frm.data = new Object(); + frm.data.oldx = frm.x; + frm.data.oldy = frm.y; + frm.x = frm.x * downscale; + frm.y = frm.y * downscale; + + frm.overwrite="auto"; + var animobject = nextcaption; + var animobject = nextcaption; + if (nextcaption.data('splitout') == "chars") animobject = nextcaption.data('mySplitText').chars; + else + if (nextcaption.data('splitout') == "words") animobject = nextcaption.data('mySplitText').words; + else + if (nextcaption.data('splitout') == "lines") animobject = nextcaption.data('mySplitText').lines; + var elemdelay = (nextcaption.data('endelementdelay') == undefined) ? 0 : nextcaption.data('endelementdelay'); + //tl.add(punchgs.TweenLite.to(nextcaption,mspeed,frm),mdelay); + tl.add(newtl.staggerTo(animobject,mspeed,frm,elemdelay),mdelay); + + } + + else + + if (nextcaption.hasClass("customout")) { + + frm = getAnimDatas(frm,nextcaption.data('customout')); + var animobject = nextcaption; + if (nextcaption.data('splitout') == "chars") animobject = nextcaption.data('mySplitText').chars; + else + if (nextcaption.data('splitout') == "words") animobject = nextcaption.data('mySplitText').words; + else + if (nextcaption.data('splitout') == "lines") animobject = nextcaption.data('mySplitText').lines; + + var elemdelay = (nextcaption.data('endelementdelay') == undefined) ? 0 : nextcaption.data('endelementdelay'); + frm.onStart = function() { + + punchgs.TweenLite.set(nextcaption,{ + transformPerspective:frm.transformPerspective, + transformOrigin:frm.transformOrigin, + overwrite:"auto" + }); + } + + frm.data = new Object(); + frm.data.oldx = frm.x; + frm.data.oldy = frm.y; + + frm.x = frm.x * downscale; + frm.y = frm.y * downscale; + + tl.add(newtl.staggerTo(animobject,mspeed,frm,elemdelay),mdelay); + } + + else { + backwards.delay = 0; + tl.add(punchgs.TweenLite.to(nextcaption,mspeed,backwards),mdelay); + } + + + tl.addLabel(frame,mdelay); + + nextcaption.data('timeline',tl); + } + + /////////////////////////// + // REMOVE THE LISTENERS // + /////////////////////////// + var removeAllListeners = function(container,opt) { + container.children().each(function() { + try{ jQuery(this).die('click'); } catch(e) {} + try{ jQuery(this).die('mouseenter');} catch(e) {} + try{ jQuery(this).die('mouseleave');} catch(e) {} + try{ jQuery(this).unbind('hover');} catch(e) {} + }) + try{ container.die('click','mouseenter','mouseleave');} catch(e) {} + clearInterval(opt.cdint); + container=null; + } + + /////////////////////////// + // - countDown - // + ///////////////////////// + var countDown = function(container,opt) { + opt.cd=0; + opt.loop=0; + if (opt.stopAfterLoops!=undefined && opt.stopAfterLoops>-1) + opt.looptogo=opt.stopAfterLoops; + else + opt.looptogo=9999999; + + if (opt.stopAtSlide!=undefined && opt.stopAtSlide>-1) + opt.lastslidetoshow=opt.stopAtSlide; + else + opt.lastslidetoshow=999; + + opt.stopLoop="off"; + + if (opt.looptogo==0) opt.stopLoop="on"; + + + if (opt.slideamount >1 && !(opt.stopAfterLoops==0 && opt.stopAtSlide==1) ) { + var bt=container.find('.tp-bannertimer'); + + + // LISTENERS //container.trigger('stoptimer'); + container.on('stoptimer',function() { + var bt = jQuery(this).find('.tp-bannertimer'); + bt.data('tween').pause(); + if (opt.hideTimerBar=="on") bt.css({visibility:"hidden"}); + }); + container.on('starttimer',function() { + + if (opt.conthover!=1 && opt.videoplaying!=true && opt.width>opt.hideSliderAtLimit && opt.bannertimeronpause != true && opt.overnav !=true) + if ((opt.stopLoop=="on" && opt.next==opt.lastslidetoshow-1) || opt.noloopanymore == 1) + opt.noloopanymore = 1; + else { + + bt.css({visibility:"visible"}); + bt.data('tween').resume(); + } + + if (opt.hideTimerBar=="on") bt.css({visibility:"hidden"}); + }); + container.on('restarttimer',function() { + var bt = jQuery(this).find('.tp-bannertimer'); + if ((opt.stopLoop=="on" && opt.next==opt.lastslidetoshow-1) || opt.noloopanymore == 1) + opt.noloopanymore = 1; + else { + + bt.css({visibility:"visible"}); + bt.data('tween').kill(); + bt.data('tween',punchgs.TweenLite.fromTo(bt,opt.delay/1000,{width:"0%"},{force3D:"auto",width:"100%",ease:punchgs.Linear.easeNone,onComplete:countDownNext,delay:1})); + + } + if (opt.hideTimerBar=="on") bt.css({visibility:"hidden"}); + }); + + container.on('nulltimer',function() { + bt.data('tween').pause(0); + if (opt.hideTimerBar=="on") bt.css({visibility:"hidden"}); + }); + + + + var countDownNext = function() { + if (jQuery('body').find(container).length==0) { + removeAllListeners(container,opt); + clearInterval(opt.cdint); + } + + container.trigger("revolution.slide.slideatend"); + + //STATE OF API CHANGED -> MOVE TO AIP BETTER + if (container.data('conthover-changed') == 1) { + opt.conthover= container.data('conthover'); + container.data('conthover-changed',0); + } + + // SWAP TO NEXT BANNER + opt.act=opt.next; + opt.next=opt.next+1; + + if (opt.next>container.find('>ul >li').length-1) { + opt.next=0; + opt.looptogo=opt.looptogo-1; + + if (opt.looptogo<=0) { + opt.stopLoop="on"; + + } + } + + // STOP TIMER IF NO LOOP NO MORE NEEDED. + + if (opt.stopLoop=="on" && opt.next==opt.lastslidetoshow-1) { + container.find('.tp-bannertimer').css({'visibility':'hidden'}); + container.trigger('revolution.slide.onstop'); + opt.noloopanymore = 1; + } else { + bt.data('tween').restart(); + } + + // SWAP THE SLIDES + swapSlide(container,opt); + + } + + bt.data('tween',punchgs.TweenLite.fromTo(bt,opt.delay/1000,{width:"0%"},{force3D:"auto",width:"100%",ease:punchgs.Linear.easeNone,onComplete:countDownNext,delay:1})); + bt.data('opt',opt); + + + container.hover( + function() { + + if (opt.onHoverStop=="on" && (!is_mobile())) { + container.trigger('stoptimer'); + + container.trigger('revolution.slide.onpause'); + var nextsh = container.find('>ul >li:eq('+opt.next+') .slotholder'); + nextsh.find('.defaultimg').each(function() { + var dimg = jQuery(this); + if (dimg.data('kenburn')!=undefined) { + dimg.data('kenburn').pause(); + } + }); + } + }, + function() { + if (container.data('conthover')!=1) { + container.trigger('revolution.slide.onresume'); + container.trigger('starttimer'); + + var nextsh = container.find('>ul >li:eq('+opt.next+') .slotholder'); + nextsh.find('.defaultimg').each(function() { + var dimg = jQuery(this); + if (dimg.data('kenburn')!=undefined) { + dimg.data('kenburn').play(); + } + }); + } + }); + } + } + + + ////////////////// + // IS MOBILE ?? // + ////////////////// + var is_mobile = function() { + var agents = ['android', 'webos', 'iphone', 'ipad', 'blackberry','Android', 'webos', ,'iPod', 'iPhone', 'iPad', 'Blackberry', 'BlackBerry']; + var ismobile=false; + for(var i in agents) { + + if (navigator.userAgent.split(agents[i]).length>1) { + ismobile = true; + + } + } + return ismobile; + } + + + +/************************************************************************** + * Revolution Slider - PAN ZOOM MODULE + * @version: 1.0 (03.06.2013) + * @author ThemePunch +**************************************************************************/ + + /*********************************************** + - KEN BURN BACKGROUND FIT CALCULATOR - + ***********************************************/ + var calculateKenBurnScales = function(proc,sloth,opt) { + var ow = sloth.data('owidth'); + var oh = sloth.data('oheight'); + + if (ow / oh > opt.width / opt.height) { + var factor = (opt.container.width() /ow); + var nheight = oh * factor; + var hfactor = (nheight / opt.container.height())*proc; + proc = proc * (100/hfactor); + hfactor = 100; + proc = proc; + return (proc+"% "+hfactor+"%"+" 1"); + } else { + var factor = (opt.container.width() /ow); + var nheight = oh * factor; + var hfactor = (nheight / opt.container.height())*proc; + return (proc+"% "+hfactor+"%"); + } + } + + + + /****************************** + - startKenBurn - + ********************************/ + var startKenBurn = function(container,opt,recalc,prepareonly) { + + try{ + var actli = container.find('>ul:first-child >li:eq('+opt.act+')'); + } catch(e) { + var actli=container.find('>ul:first-child >li:eq(1)'); + } + + opt.lastslide=opt.act; + + + var nextli = container.find('>ul:first-child >li:eq('+opt.next+')'), + nextsh = nextli.find('.slotholder'), + bgps = nextsh.data('bgposition'), + bgpe = nextsh.data('bgpositionend'), + zos = nextsh.data('zoomstart')/100, + zoe = nextsh.data('zoomend')/100, + ros = nextsh.data('rotationstart'), + roe = nextsh.data('rotationend'), + bgfs = nextsh.data('bgfit'), + bgfe = nextsh.data('bgfitend'), + easeme = nextsh.data('easeme'), + dur = nextsh.data('duration')/1000, + bgfb = 100; + + + if (bgfs==undefined) bgfs=100; + if (bgfe==undefined) bgfe=100; + var obgfs = bgfs, + obgfe = bgfe; + + bgfs = calculateKenBurnScales(bgfs,nextsh,opt); + bgfe = calculateKenBurnScales(bgfe,nextsh,opt); + bgfb = calculateKenBurnScales(100,nextsh,opt); + + + if (zos==undefined) zos=1; + if (zoe==undefined) zoe=1; + if (ros==undefined) ros=0; + if (roe==undefined) roe=0; + + if (zos<1) zos=1; + if (zoe<1) zoe=1; + + + var imgobj = new Object(); + imgobj.w = parseInt(bgfb.split(" ")[0],0), + imgobj.h = parseInt(bgfb.split(" ")[1],0); + + var turned = false; + if (bgfb.split(" ")[2] == "1") { + turned = true; + } + + nextsh.find('.defaultimg').each(function() { + var defimg = jQuery(this); + if (nextsh.find('.kenburnimg').length==0) + nextsh.append('
'); + else { + nextsh.find('.kenburnimg img').css({width:imgobj.w+'%',height:imgobj.h+'%'}); + } + + + + var kbimg = nextsh.find('.kenburnimg img'); + + + var imgs = calculateKenBurnImgPos(opt,bgps,bgfs,kbimg,turned), + imge = calculateKenBurnImgPos(opt,bgpe,bgfe,kbimg,turned); + + if (turned) { + imgs.w = obgfs/100; + imge.w = obgfe/100; + } + + + + if (prepareonly) { + + punchgs.TweenLite.set(kbimg,{autoAlpha:0, + transformPerspective:1200, + transformOrigin:"0% 0%", + top:0,left:0, + scale:imgs.w, + x:imgs.x, + y:imgs.y}); + var sx = imgs.w, + ww = (sx * kbimg.width()) - opt.width, + hh = (sx * kbimg.height()) - opt.height, + hor = Math.abs((imgs.x / ww)*100), + ver = Math.abs((imgs.y / hh)*100); + if (hh==0) ver =0; + if (ww == 0) hor = 0; + defimg.data('bgposition',hor+"% "+ver+"%"); + if (!isIE(8)) defimg.data('currotate',getRotationDegrees(kbimg)); + if (!isIE(8)) defimg.data('curscale',(imgobj.w*sx)+"% "+(imgobj.h*sx+"%")); + + nextsh.find('.kenburnimg').remove(); + } + else + defimg.data('kenburn',punchgs.TweenLite.fromTo(kbimg,dur,{autoAlpha:1, force3D:punchgs.force3d, transformOrigin:"0% 0%", top:0,left:0, scale:imgs.w, x:imgs.x, y:imgs.y},{autoAlpha:1,rotationZ:roe,ease:easeme, x:imge.x, y:imge.y,scale:imge.w,onUpdate:function() { + var sx = kbimg[0]._gsTransform.scaleX; + var ww = (sx * kbimg.width()) - opt.width, + hh = (sx * kbimg.height()) - opt.height, + hor = Math.abs((kbimg[0]._gsTransform.x / ww)*100), + ver = Math.abs((kbimg[0]._gsTransform.y / hh)*100); + if (hh==0) ver =0; + if (ww == 0) hor = 0; + + defimg.data('bgposition',hor+"% "+ver+"%"); + + if (!isIE(8)) defimg.data('currotate',getRotationDegrees(kbimg)); + if (!isIE(8)) defimg.data('curscale',(imgobj.w*sx)+"% "+(imgobj.h*sx+"%")); + //punchgs.TweenLite.set(defimg,{rotation:defimg.data('currotate'), backgroundPosition:defimg.data('bgposition'), backgroundSize:defimg.data('curscale')}); + }})); + }) + } + + /************************************************* + - CALCULATE KENBURNS IMAGE POSITIONS - + **************************************************/ + + var calculateKenBurnImgPos = function(opt,bgp,bgf,img,turned) { + var imgobj = new Object; + + if (!turned) + imgobj.w = parseInt(bgf.split(" ")[0],0) / 100; + else + imgobj.w = parseInt(bgf.split(" ")[1],0) / 100; + + switch(bgp) { + case "left top": + case "top left": + imgobj.x = 0; + imgobj.y = 0; + break; + case "center top": + case "top center": + imgobj.x = (((0-img.width()) * imgobj.w) + parseInt(opt.width,0))/2; + imgobj.y = 0; + break; + case "top right": + case "right top": + imgobj.x = ((0-img.width()) * imgobj.w) + parseInt(opt.width,0); + imgobj.y = 0; + + break; + case "center left": + case "left center": + imgobj.x = 0; + imgobj.y = (((0-img.height()) * imgobj.w) + parseInt(opt.height,0)) / 2; + break; + case "center center": + imgobj.x = (((0-img.width()) * imgobj.w) + parseInt(opt.width,0))/2; + imgobj.y = (((0-img.height()) * imgobj.w) + parseInt(opt.height,0)) / 2; + + break; + case "center right": + case "right center": + imgobj.x = ((0-img.width()) * imgobj.w) + parseInt(opt.width,0); + imgobj.y = (((0-img.height()) * imgobj.w) + parseInt(opt.height,0)) / 2; + + break; + case "bottom left": + case "left bottom": + imgobj.x =0; + imgobj.y = ((0-img.height()) * imgobj.w) + parseInt(opt.height,0); + + break; + case "bottom center": + case "center bottom": + imgobj.x = (((0-img.width()) * imgobj.w) + parseInt(opt.width,0))/2; + imgobj.y = ((0-img.height()) * imgobj.w) + parseInt(opt.height,0); + break; + case "bottom right": + case "right bottom": + imgobj.x = ((0-img.width()) * imgobj.w) + parseInt(opt.width,0); + imgobj.y = ((0-img.height()) * imgobj.w) + parseInt(opt.height,0); + break; + } + + + + return imgobj; + } + + /****************************** + - GET ROTATION DEGREES - + ********************************/ + var getRotationDegrees = function(obj) { + var matrix = obj.css("-webkit-transform") || + obj.css("-moz-transform") || + obj.css("-ms-transform") || + obj.css("-o-transform") || + obj.css("transform"); + if(matrix !== 'none') { + var values = matrix.split('(')[1].split(')')[0].split(','); + var a = values[0]; + var b = values[1]; + var angle = Math.round(Math.atan2(b, a) * (180/Math.PI)); + } else { var angle = 0; } + return (angle < 0) ? angle +=360 : angle; + } + + + /****************************** + - STOP KEN BURN - + ********************************/ + var stopKenBurn = function(container,opt) { + + try{ + var actli = container.find('>ul:first-child >li:eq('+opt.act+')'); + } catch(e) { + var actli=container.find('>ul:first-child >li:eq(1)'); + } + + opt.lastslide=opt.act; + + var nextli = container.find('>ul:first-child >li:eq('+opt.next+')'); + + + var actsh = actli.find('.slotholder'); + var nextsh = nextli.find('.slotholder'); + + container.find('.defaultimg').each(function() { + var defimg = jQuery(this); + punchgs.TweenLite.killTweensOf(defimg,false); + punchgs.TweenLite.set(defimg,{scale:1,rotationZ:0}); + punchgs.TweenLite.killTweensOf(defimg.data('kenburn img'),false); + if (defimg.data('kenburn') != undefined) { + defimg.data('kenburn').pause(); + } + if (defimg.data('currotate') != undefined && defimg.data('bgposition') !=undefined && defimg.data('curscale') != undefined) + punchgs.TweenLite.set(defimg,{rotation:defimg.data('currotate'), backgroundPosition:defimg.data('bgposition'), backgroundSize:defimg.data('curscale')}); + if (defimg!= undefined && defimg.data('kenburn img') != undefined && defimg.data('kenburn img').length>0) punchgs.TweenLite.set(defimg.data('kenburn img'),{autoAlpha:0}); + + }); + } + +//// END OF KENBURNS EXTNESION + + + + +/************************************************************************** + * Revolution Slider - PARALLAX MODULE + * @version: 1.1 (23.06.2013) + * @author ThemePunch +**************************************************************************/ + + /****************************** + - PARALLAX EFFECT - + ********************************/ + var checkForParallax = function(container,opt) { + if (is_mobile() && opt.parallaxDisableOnMobile=="on") return false; + + container.find('>ul:first-child >li').each(function() { + var li = jQuery(this); + for (var i = 1; i<=10;i++) + li.find('.rs-parallaxlevel-'+i).each(function() { + var pw = jQuery(this); + pw.wrap('
'); + }); + }) + + + + if (opt.parallax=="mouse" || opt.parallax=="scroll+mouse" || opt.parallax=="mouse+scroll") { + + container.mouseenter(function(event) { + var currslide = container.find('.current-sr-slide-visible'); + var t = container.offset().top, + l = container.offset().left, + ex = (event.pageX-l), + ey = (event.pageY-t); + currslide.data("enterx",ex); + currslide.data("entery",ey); + + }) + + container.on('mousemove.hoverdir, mouseleave.hoverdir',function(event) { + var currslide = container.find('.current-sr-slide-visible'); + switch (event.type) { + + case "mousemove": + + var t = container.offset().top, + l = container.offset().left, + mh = currslide.data("enterx"), + mv = currslide.data("entery"), + diffh = (mh - (event.pageX - l)), + diffv = (mv - (event.pageY - t)); + + currslide.find(".tp-parallax-container").each(function() { + var pc = jQuery(this), + pl = parseInt(pc.data('parallaxlevel'),0)/100, + offsh = diffh * pl, + offsv = diffv * pl; + if (opt.parallax=="scroll+mouse" || opt.parallax=="mouse+scroll") + punchgs.TweenLite.to(pc,0.4,{force3D:"auto",x:offsh,ease:punchgs.Power3.easeOut,overwrite:"all"}); + else + punchgs.TweenLite.to(pc,0.4,{force3D:"auto",x:offsh,y:offsv,ease:punchgs.Power3.easeOut,overwrite:"all"}); + }) + + break; + case "mouseleave": + currslide.find(".tp-parallax-container").each(function() { + var pc = jQuery(this); + if (opt.parallax=="scroll+mouse" || opt.parallax=="mouse+scroll") + punchgs.TweenLite.to(pc,1.5,{force3D:"auto",x:0,ease:punchgs.Power3.easeOut}); + else + punchgs.TweenLite.to(pc,1.5,{force3D:"auto",x:0,y:0,ease:punchgs.Power3.easeOut}); + }) + break; + } + }); + + if (is_mobile()) + window.ondeviceorientation = function(event) { + var y = Math.round(event.beta || 0), + x = Math.round(event.gamma || 0); + + var currslide = container.find('.current-sr-slide-visible'); + + + if (jQuery(window).width() > jQuery(window).height()){ + var xx = x; + x = y; + y = xx; + + } + + var curh = 360/container.width() * x, + curv = 180/container.height() * y; + + + + + currslide.find(".tp-parallax-container").each(function() { + var pc = jQuery(this), + pl = parseInt(pc.data('parallaxlevel'),0)/100, + offsh = curh * pl, + offsv = curv * pl; + punchgs.TweenLite.to(pc,0.2,{force3D:"auto",x:offsh,y:offsv,ease:punchgs.Power3.easeOut}); + }) + + // y: -90 -> +90, x:-180 -> +180 + + //jQuery('.logo-container').html("h:"+curh+" v:"+curv); + } + } + if (opt.parallax=="scroll" || opt.parallax=="scroll+mouse" || opt.parallax=="mouse+scroll") { + + jQuery(window).on('scroll',function(event) { + scrollParallax(container,opt); + }); + } + } + + /*************************************** + - SET POST OF SCROLL PARALLAX - + ***************************************/ + var scrollParallax = function(container,opt) { + if (is_mobile() && opt.parallaxDisableOnMobile=="on") return false; + var t = container.offset().top, + st = jQuery(window).scrollTop(), + dist = t+container.height()/2, + mv = t+container.height()/2 - st, + wh = jQuery(window).height()/2, + diffv= wh - mv; + + if (dist
'); + } + var bullets = cap.find('.tp-bullets.tp-thumbs .tp-mask .tp-thumbcontainer'); + var bup = bullets.parent(); + + bup.width(opt.thumbWidth*opt.thumbAmount); + bup.height(opt.thumbHeight); + bup.parent().width(opt.thumbWidth*opt.thumbAmount); + bup.parent().height(opt.thumbHeight); + + container.find('>ul:first >li').each(function(i) { + var li= container.find(">ul:first >li:eq("+i+")"); + var bgcolor = li.find(".defaultimg").css("backgroundColor"); + if (li.data('thumb') !=undefined) + var src= li.data('thumb') + else + var src=li.find("img:first").attr('src'); + + + bullets.append('
'); + var bullet= bullets.find('.bullet:first'); + }); + //bullets.append('
'); + var minwidth=10; + + + // ADD THE BULLET CLICK FUNCTION HERE + bullets.find('.bullet').each(function(i) { + var bul = jQuery(this); + + if (i==opt.slideamount-1) bul.addClass('last'); + if (i==0) bul.addClass('first'); + bul.width(opt.thumbWidth); + bul.height(opt.thumbHeight); + + if (minwidthul:first >li').length; + + var thumbconwidth=bullets.parent().width(); + opt.thumbWidth = minwidth; + + + + //////////////////////// + // SLIDE TO POSITION // + //////////////////////// + if (thumbconwidthul:first >li').length, + diff=(max- thumbconwidth)+15, + steps = diff / thumbconwidth; + + $this.addClass("over"); + x=x-30; + + //ANIMATE TO POSITION + var pos=(0-((x)*steps)); + if (pos>0) pos =0; + if (pos<0-max+thumbconwidth) pos=0-max+thumbconwidth; + moveThumbSliderToPosition($this,pos,200); + }); + + bullets.parent().mousemove(function() { + + var $this=jQuery(this), + offset = $this.offset(), + x = jQuery('body').data('mousex')-offset.left, + thumbconwidth=$this.width(), + minwidth=$this.find('.bullet:first').outerWidth(true), + max=minwidth*container.find('>ul:first >li').length-1, + diff=(max- thumbconwidth)+15, + steps = diff / thumbconwidth; + + x=x-3; + if (x<6) x=0; + if (x+3>thumbconwidth-6) x=thumbconwidth; + + //ANIMATE TO POSITION + var pos=(0-((x)*steps)); + if (pos>0) pos =0; + if (pos<0-max+thumbconwidth) pos=0-max+thumbconwidth; + moveThumbSliderToPosition($this,pos,0); + + }); + + bullets.parent().mouseleave(function() { + var $this=jQuery(this); + $this.removeClass("over"); + moveSelectedThumb(container); + }); + } + + + } + + + /////////////////////////////// + // SelectedThumbInPosition // + ////////////////////////////// + var moveSelectedThumb = function(container) { + + var bullets=container.parent().find('.tp-bullets.tp-thumbs .tp-mask .tp-thumbcontainer'), + $this=bullets.parent(), + offset = $this.offset(), + minwidth=$this.find('.bullet:first').outerWidth(true), + x = $this.find('.bullet.selected').index() * minwidth, + thumbconwidth=$this.width(), + minwidth=$this.find('.bullet:first').outerWidth(true), + max=minwidth*container.find('>ul:first >li').length, + diff=(max- thumbconwidth), + steps = diff / thumbconwidth, + pos=0-x; + + if (pos>0) pos =0; + if (pos<0-max+thumbconwidth) pos=0-max+thumbconwidth; + if (!$this.hasClass("over")) { + moveThumbSliderToPosition($this,pos,200); + } + } + + + //////////////////////////////////// + // MOVE THUMB SLIDER TO POSITION // + /////////////////////////////////// + var moveThumbSliderToPosition = function($this,pos,speed) { + punchgs.TweenLite.to($this.find('.tp-thumbcontainer'),0.2,{force3D:"auto",left:pos,ease:punchgs.Power3.easeOut,overwrite:"auto"}); + } +})(jQuery); + + + +/// END OF THUMBNAIL EXTNESIONS + + + + + + +// SOME ERROR MESSAGES IN CASE THE PLUGIN CAN NOT BE LOADED +function revslider_showDoubleJqueryError(sliderID) { + var errorMessage = "Revolution Slider Error: You have some jquery.js library include that comes after the revolution files js include."; + errorMessage += "
This includes make eliminates the revolution slider libraries, and make it not work."; + errorMessage += "

To fix it you can:
    1. In the Slider Settings -> Troubleshooting set option: Put JS Includes To Body option to true."; + errorMessage += "
    2. Find the double jquery.js include and remove it."; + errorMessage = "" + errorMessage + "" + jQuery(sliderID).show().html(errorMessage); +} + + diff --git a/arches/app/media/plugins/revolution-slider/rs-plugin/js/jquery.themepunch.revolution.min.js b/arches/app/media/plugins/revolution-slider/rs-plugin/js/jquery.themepunch.revolution.min.js index 44c7896aaf9..e30b465528a 100644 --- a/arches/app/media/plugins/revolution-slider/rs-plugin/js/jquery.themepunch.revolution.min.js +++ b/arches/app/media/plugins/revolution-slider/rs-plugin/js/jquery.themepunch.revolution.min.js @@ -1,9 +1,9 @@ -/************************************************************************** - * jquery.themepunch.revolution.js - jQuery Plugin for Revolution Slider - * @version: 4.6.4 (26.11.2014) - * @requires jQuery v1.7 or later (tested on 1.9) - * @author ThemePunch -**************************************************************************/ - - +/************************************************************************** + * jquery.themepunch.revolution.js - jQuery Plugin for Revolution Slider + * @version: 4.6.4 (26.11.2014) + * @requires jQuery v1.7 or later (tested on 1.9) + * @author ThemePunch +**************************************************************************/ + + function revslider_showDoubleJqueryError(e){var t="Revolution Slider Error: You have some jquery.js library include that comes after the revolution files js include.";t+="
This includes make eliminates the revolution slider libraries, and make it not work.";t+="

To fix it you can:
    1. In the Slider Settings -> Troubleshooting set option: Put JS Includes To Body option to true.";t+="
    2. Find the double jquery.js include and remove it.";t=""+t+"";jQuery(e).show().html(t)}(function(e,t){function n(){var e=false;if(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/iPad/i)){if(navigator.userAgent.match(/OS 4_\d like Mac OS X/i)){e=true}}else{e=false}return e}function r(r,i){if(r==t)return false;if(r.data("aimg")!=t){if(r.data("aie8")=="enabled"&&a(8)||r.data("amobile")=="enabled"&&J())r.html('')}if(i.navigationStyle=="preview1"||i.navigationStyle=="preview3"||i.navigationStyle=="preview4"){i.soloArrowLeftHalign="left";i.soloArrowLeftValign="center";i.soloArrowLeftHOffset=0;i.soloArrowLeftVOffset=0;i.soloArrowRightHalign="right";i.soloArrowRightValign="center";i.soloArrowRightHOffset=0;i.soloArrowRightVOffset=0;i.navigationArrows="solo"}if(i.simplifyAll=="on"&&(a(8)||n())){r.find(".tp-caption").each(function(){var t=e(this);t.removeClass("customin").removeClass("customout").addClass("fadein").addClass("fadeout");t.data("splitin","");t.data("speed",400)});r.find(">ul>li").each(function(){var t=e(this);t.data("transition","fade");t.data("masterspeed",500);t.data("slotamount",1);var n=t.find(">img").first();n.data("kenburns","off")})}i.desktop=!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i);if(i.fullWidth!="on"&&i.fullScreen!="on")i.autoHeight="off";if(i.fullScreen=="on")i.autoHeight="on";if(i.fullWidth!="on"&&i.fullScreen!="on")forceFulWidth="off";if(i.fullWidth=="on"&&i.autoHeight=="off")r.css({maxHeight:i.startheight+"px"});if(J()&&i.hideThumbsOnMobile=="on"&&i.navigationType=="thumb")i.navigationType="none";if(J()&&i.hideBulletsOnMobile=="on"&&i.navigationType=="bullet")i.navigationType="none";if(J()&&i.hideBulletsOnMobile=="on"&&i.navigationType=="both")i.navigationType="none";if(J()&&i.hideArrowsOnMobile=="on")i.navigationArrows="none";if(i.forceFullWidth=="on"&&r.closest(".forcefullwidth_wrapper_tp_banner").length==0){var f=r.parent().offset().left;var v=r.parent().css("marginBottom");var m=r.parent().css("marginTop");if(v==t)v=0;if(m==t)m=0;r.parent().wrap('
');r.closest(".forcefullwidth_wrapper_tp_banner").append('
');r.css({backgroundColor:r.parent().css("backgroundColor"),backgroundImage:r.parent().css("backgroundImage")});r.parent().css({left:0-f+"px",position:"absolute",width:e(window).width()});i.width=e(window).width()}try{if(i.hideThumbsUnderResolution>e(window).width()&&i.hideThumbsUnderResolution!=0){r.parent().find(".tp-bullets.tp-thumbs").css({display:"none"})}else{r.parent().find(".tp-bullets.tp-thumbs").css({display:"block"})}}catch(g){}if(!r.hasClass("revslider-initialised")){r.addClass("revslider-initialised");if(r.attr("id")==t)r.attr("id","revslider-"+Math.round(Math.random()*1e3+5));i.firefox13=false;i.ie=!e.support.opacity;i.ie9=document.documentMode==9;i.origcd=i.delay;var b=e.fn.jquery.split("."),w=parseFloat(b[0]),E=parseFloat(b[1]),S=parseFloat(b[2]||"0");if(w==1&&E<7){r.html('
The Current Version of jQuery:'+b+"
Please update your jQuery Version to min. 1.7 in Case you wish to use the Revolution Slider Plugin
")}if(w>1)i.ie=false;if(!e.support.transition)e.fn.transition=e.fn.animate;r.find(".caption").each(function(){e(this).addClass("tp-caption")});if(J()){r.find(".tp-caption").each(function(){var t=e(this);if(t.data("autoplayonlyfirsttime")==true||t.data("autoplayonlyfirsttime")=="true")t.data("autoplayonlyfirsttime","false");if(t.data("autoplay")==true||t.data("autoplay")=="true")t.data("autoplay",false)})}var x=0;var T=0;var C=0;var k="http";if(location.protocol==="https:"){k="https"}r.find(".tp-caption").each(function(n){try{if((e(this).data("ytid")!=t||e(this).find("iframe").attr("src").toLowerCase().indexOf("youtube")>0)&&x==0){x=1;var r=document.createElement("script");var i="https";r.src=i+"://www.youtube.com/iframe_api";var s=document.getElementsByTagName("script")[0];var o=true;e("head").find("*").each(function(){if(e(this).attr("src")==i+"://www.youtube.com/iframe_api")o=false});if(o){s.parentNode.insertBefore(r,s)}}}catch(u){}try{if((e(this).data("vimeoid")!=t||e(this).find("iframe").attr("src").toLowerCase().indexOf("vimeo")>0)&&T==0){T=1;var a=document.createElement("script");a.src=k+"://a.vimeocdn.com/js/froogaloop2.min.js";var s=document.getElementsByTagName("script")[0];var o=true;e("head").find("*").each(function(){if(e(this).attr("src")==k+"://a.vimeocdn.com/js/froogaloop2.min.js")o=false});if(o)s.parentNode.insertBefore(a,s)}}catch(u){}try{if(e(this).data("videomp4")!=t||e(this).data("videowebm")!=t){}}catch(u){}});r.find(".tp-caption video").each(function(t){e(this).removeClass("video-js").removeClass("vjs-default-skin");e(this).attr("preload","");e(this).css({display:"none"})});r.find(">ul:first-child >li").each(function(){var t=e(this);t.data("origindex",t.index())});if(i.shuffle=="on"){var L=new Object,A=r.find(">ul:first-child >li:first-child");L.fstransition=A.data("fstransition");L.fsmasterspeed=A.data("fsmasterspeed");L.fsslotamount=A.data("fsslotamount");for(var O=0;Oul:first-child >li").length;O++){var M=Math.round(Math.random()*r.find(">ul:first-child >li").length);r.find(">ul:first-child >li:eq("+M+")").prependTo(r.find(">ul:first-child"))}var _=r.find(">ul:first-child >li:first-child");_.data("fstransition",L.fstransition);_.data("fsmasterspeed",L.fsmasterspeed);_.data("fsslotamount",L.fsslotamount)}i.slots=4;i.act=-1;i.next=0;if(i.startWithSlide!=t)i.next=i.startWithSlide;var D=o("#")[0];if(D.length<9){if(D.split("slide").length>1){var P=parseInt(D.split("slide")[1],0);if(P<1)P=1;if(P>r.find(">ul:first >li").length)P=r.find(">ul:first >li").length;i.next=P-1}}i.firststart=1;if(i.navigationHOffset==t)i.navOffsetHorizontal=0;if(i.navigationVOffset==t)i.navOffsetVertical=0;r.append('
'+'
'+'
'+'
'+'
'+'
'+"
");if(r.find(".tp-bannertimer").length==0)r.append('');var H=r.find(".tp-bannertimer");if(H.length>0){H.css({width:"0%"})}r.addClass("tp-simpleresponsive");i.container=r;i.slideamount=r.find(">ul:first >li").length;if(r.height()==0)r.height(i.startheight);if(i.startwidth==t||i.startwidth==0)i.startwidth=r.width();if(i.startheight==t||i.startheight==0)i.startheight=r.height();i.width=r.width();i.height=r.height();i.bw=i.startwidth/r.width();i.bh=i.startheight/r.height();if(i.width!=i.startwidth){i.height=Math.round(i.startheight*(i.width/i.startwidth));r.height(i.height)}if(i.shadow!=0){r.parent().append('
');var f=0;if(i.forceFullWidth=="on")f=0-i.container.parent().offset().left;r.parent().find(".tp-bannershadow").css({width:i.width,left:f})}r.find("ul").css({display:"none"});var B=r;r.find("ul").css({display:"block"});y(r,i);if(i.parallax!="off")et(r,i);if(i.slideamount>1)l(r,i);if(i.slideamount>1&&i.navigationType=="thumb")nt(r,i);if(i.slideamount>1)c(r,i);if(i.keyboardNavigation=="on")h(r,i);p(r,i);if(i.hideThumbs>0)d(r,i);setTimeout(function(){N(r,i)},i.startDelay);i.startDelay=0;if(i.slideamount>1)$(r,i);setTimeout(function(){r.trigger("revolution.slide.onloaded")},500);e("body").data("rs-fullScreenMode",false);e(window).on("mozfullscreenchange webkitfullscreenchange fullscreenchange",function(){e("body").data("rs-fullScreenMode",!e("body").data("rs-fullScreenMode"));if(e("body").data("rs-fullScreenMode")){setTimeout(function(){e(window).trigger("resize")},200)}});var j="resize.revslider-"+r.attr("id");e(window).on(j,function(){if(r==t)return false;if(e("body").find(r)!=0)if(i.forceFullWidth=="on"){var n=i.container.closest(".forcefullwidth_wrapper_tp_banner").offset().left;i.container.parent().css({left:0-n+"px",width:e(window).width()})}if(r.outerWidth(true)!=i.width||r.is(":hidden")){u(r,i)}});try{if(i.hideThumbsUnderResoluition!=0&&i.navigationType=="thumb"){if(i.hideThumbsUnderResoluition>e(window).width())e(".tp-bullets").css({display:"none"});else e(".tp-bullets").css({display:"block"})}}catch(g){}r.find(".tp-scrollbelowslider").on("click",function(){var t=0;try{t=e("body").find(i.fullScreenOffsetContainer).height()}catch(n){}try{t=t-parseInt(e(this).data("scrolloffset"),0)}catch(n){}e("body,html").animate({scrollTop:r.offset().top+r.find(">ul >li").height()-t+"px"},{duration:400})});var F=r.parent();if(e(window).width()0&&e("body").find("#"+r.attr("id")).length>0)e("body,html").animate({scrollTop:r.offset().top+r.find(">ul >li").height()-n+"px"},{duration:400})})},revredraw:function(n){return this.each(function(){var n=e(this);if(n!=t&&n.length>0&&e("body").find("#"+n.attr("id")).length>0){var r=n.parent().find(".tp-bannertimer");var i=r.data("opt");u(n,i)}})},revkill:function(n){var r=this,i=e(this);if(i!=t&&i.length>0&&e("body").find("#"+i.attr("id")).length>0){i.data("conthover",1);i.data("conthover-changed",1);i.trigger("revolution.slide.onpause");var s=i.parent().find(".tp-bannertimer");var o=s.data("opt");o.bannertimeronpause=true;i.trigger("stoptimer");punchgs.TweenLite.killTweensOf(i.find("*"),false);punchgs.TweenLite.killTweensOf(i,false);i.unbind("hover, mouseover, mouseenter,mouseleave, resize");var u="resize.revslider-"+i.attr("id");e(window).off(u);i.find("*").each(function(){var n=e(this);n.unbind("on, hover, mouseenter,mouseleave,mouseover, resize,restarttimer, stoptimer");n.off("on, hover, mouseenter,mouseleave,mouseover, resize");n.data("mySplitText",null);n.data("ctl",null);if(n.data("tween")!=t)n.data("tween").kill();if(n.data("kenburn")!=t)n.data("kenburn").kill();n.remove();n.empty();n=null});punchgs.TweenLite.killTweensOf(i.find("*"),false);punchgs.TweenLite.killTweensOf(i,false);s.remove();try{i.closest(".forcefullwidth_wrapper_tp_banner").remove()}catch(a){}try{i.closest(".rev_slider_wrapper").remove()}catch(a){}try{i.remove()}catch(a){}i.empty();i.html();i=null;o=null;delete r.container;delete r.opt;return true}else{return false}},revpause:function(n){return this.each(function(){var n=e(this);if(n!=t&&n.length>0&&e("body").find("#"+n.attr("id")).length>0){n.data("conthover",1);n.data("conthover-changed",1);n.trigger("revolution.slide.onpause");var r=n.parent().find(".tp-bannertimer");var i=r.data("opt");i.bannertimeronpause=true;n.trigger("stoptimer")}})},revresume:function(n){return this.each(function(){var n=e(this);if(n!=t&&n.length>0&&e("body").find("#"+n.attr("id")).length>0){n.data("conthover",0);n.data("conthover-changed",1);n.trigger("revolution.slide.onresume");var r=n.parent().find(".tp-bannertimer");var i=r.data("opt");i.bannertimeronpause=false;n.trigger("starttimer")}})},revnext:function(n){return this.each(function(){var n=e(this);if(n!=t&&n.length>0&&e("body").find("#"+n.attr("id")).length>0)n.parent().find(".tp-rightarrow").click()})},revprev:function(n){return this.each(function(){var n=e(this);if(n!=t&&n.length>0&&e("body").find("#"+n.attr("id")).length>0)n.parent().find(".tp-leftarrow").click()})},revmaxslide:function(t){return e(this).find(">ul:first-child >li").length},revcurrentslide:function(n){var r=e(this);if(r!=t&&r.length>0&&e("body").find("#"+r.attr("id")).length>0){var i=r.parent().find(".tp-bannertimer");var s=i.data("opt");return s.act}},revlastslide:function(n){var r=e(this);if(r!=t&&r.length>0&&e("body").find("#"+r.attr("id")).length>0){var i=r.parent().find(".tp-bannertimer");var s=i.data("opt");return s.lastslide}},revshowslide:function(n){return this.each(function(){var r=e(this);if(r!=t&&r.length>0&&e("body").find("#"+r.attr("id")).length>0){r.data("showus",n);r.parent().find(".tp-rightarrow").click()}})}});var i=function(){var e,t,n={hidden:"visibilitychange",webkitHidden:"webkitvisibilitychange",mozHidden:"mozvisibilitychange",msHidden:"msvisibilitychange"};for(e in n){if(e in document){t=n[e];break}}return function(n){if(n)document.addEventListener(t,n);return!document[e]}}();var s=function(n,r){var i=document.documentMode===t,s=window.chrome;if(i&&!s){e(window).on("focusin",function(){if(n==t)return false;setTimeout(function(){if(r.nextSlideOnWindowFocus=="on")n.revnext();n.revredraw()},300)}).on("focusout",function(){})}else{if(window.addEventListener){window.addEventListener("focus",function(e){if(n==t)return false;setTimeout(function(){if(r.nextSlideOnWindowFocus=="on")n.revnext();n.revredraw()},300)},false);window.addEventListener("blur",function(e){},false)}else{window.attachEvent("focus",function(e){setTimeout(function(){if(n==t)return false;if(r.nextSlideOnWindowFocus=="on")n.revnext();n.revredraw()},300)});window.attachEvent("blur",function(e){})}}};var o=function(e){var t=[],n;var r=window.location.href.slice(window.location.href.indexOf(e)+1).split("_");for(var i=0;ie(window).width())e(".tp-bullets").css({display:"none"});else e(".tp-bullets").css({display:"block"})}}catch(i){}n.find(".defaultimg").each(function(t){g(e(this),r)});var s=n.parent();if(e(window).width()ul >li:eq("+r.act+") .slotholder");var f=n.find(">ul >li:eq("+r.next+") .slotholder");E(n,r,n);punchgs.TweenLite.set(f.find(".defaultimg"),{opacity:0});a.find(".defaultimg").css({opacity:1});f.find(".defaultimg").each(function(){var i=e(this);if(r.panZoomDisableOnMobile=="on"){}else{if(i.data("kenburn")!=t){i.data("kenburn").restart();Q(n,r,true)}}});var l=n.find(">ul >li:eq("+r.next+")");var c=n.parent().find(".tparrows");if(c.hasClass("preview2"))c.css({width:parseInt(c.css("minWidth"),0)});j(l,r,true);v(n,r)};var a=function(t,n){var r=e('
').appendTo(e("body"));r.html("");var i=r.find("a").length;r.remove();return i};var f=function(e,t){if(e.next==t.find(">ul >li").length-1){e.looptogo=e.looptogo-1;if(e.looptogo<=0)e.stopLoop="on"}N(t,e)};var l=function(t,n){var r="hidebullets";if(n.hideThumbs==0)r="";if(n.navigationType=="bullet"||n.navigationType=="both"){t.parent().append('
')}var i=t.parent().find(".tp-bullets");t.find(">ul:first >li").each(function(e){var n=t.find(">ul:first >li:eq("+e+") img:first").attr("src");i.append('
');var r=i.find(".bullet:first")});i.find(".bullet").each(function(r){var i=e(this);if(r==n.slideamount-1)i.addClass("last");if(r==0)i.addClass("first");i.click(function(){var e=false,r=i.index();if(n.navigationArrows=="withbullet"||n.navigationArrows=="nexttobullets")r=i.index()-1;if(r==n.act)e=true;if(n.transition==0&&!e){n.next=r;f(n,t)}})});i.append('
');v(t,n)};var c=function(e,n){function u(t){e.parent().append('
')}var r=e.find(".tp-bullets"),i="",s="hidearrows",o=n.navigationStyle;if(n.hideThumbs==0)s="";if(n.navigationArrows=="none")i="visibility:hidden;display:none";n.soloArrowStyle="default"+" "+n.navigationStyle;if(n.navigationArrows!="none"&&n.navigationArrows!="nexttobullets")o=n.soloArrowStyle;u("left");u("right");e.parent().find(".tp-rightarrow").click(function(){if(n.transition==0){if(e.data("showus")!=t&&e.data("showus")!=-1)n.next=e.data("showus")-1;else n.next=n.next+1;e.data("showus",-1);if(n.next>=n.slideamount)n.next=0;if(n.next<0)n.next=0;if(n.act!=n.next)f(n,e)}});e.parent().find(".tp-leftarrow").click(function(){if(n.transition==0){n.next=n.next-1;n.leftarrowpressed=1;if(n.next<0)n.next=n.slideamount-1;f(n,e)}});v(e,n)};var h=function(n,r){e(document).keydown(function(e){if(r.transition==0&&e.keyCode==39){if(n.data("showus")!=t&&n.data("showus")!=-1)r.next=n.data("showus")-1;else r.next=r.next+1;n.data("showus",-1);if(r.next>=r.slideamount)r.next=0;if(r.next<0)r.next=0;if(r.act!=r.next)f(r,n)}if(r.transition==0&&e.keyCode==37){r.next=r.next-1;r.leftarrowpressed=1;if(r.next<0)r.next=r.slideamount-1;f(r,n)}});v(n,r)};var p=function(t,n){var r="vertical";if(n.touchenabled=="on"){if(n.drag_block_vertical==true)r="none";t.swipe({allowPageScroll:r,fingers:n.swipe_min_touches,treshold:n.swipe_treshold,swipe:function(i,s,o,u,a,l){switch(s){case"left":if(n.transition==0){n.next=n.next+1;if(n.next==n.slideamount)n.next=0;f(n,t)}break;case"right":if(n.transition==0){n.next=n.next-1;n.leftarrowpressed=1;if(n.next<0)n.next=n.slideamount-1;f(n,t)}break;case"up":if(r=="none")e("html, body").animate({scrollTop:t.offset().top+t.height()+"px"});break;case"down":if(r=="none")e("html, body").animate({scrollTop:t.offset().top-e(window).height()+"px"});break}}})}};var d=function(e,t){var n=e.parent().find(".tp-bullets"),r=e.parent().find(".tparrows");if(n==null){e.append('
');var n=e.parent().find(".tp-bullets")}if(r==null){e.append('
');var r=e.parent().find(".tparrows")}e.data("hideThumbs",t.hideThumbs);n.addClass("hidebullets");r.addClass("hidearrows");if(J()){try{e.hammer().on("touch",function(){e.addClass("hovered");if(t.onHoverStop=="on")e.trigger("stoptimer");clearTimeout(e.data("hideThumbs"));n.removeClass("hidebullets");r.removeClass("hidearrows")});e.hammer().on("release",function(){e.removeClass("hovered");e.trigger("starttimer");if(!e.hasClass("hovered")&&!n.hasClass("hovered"))e.data("hideThumbs",setTimeout(function(){n.addClass("hidebullets");r.addClass("hidearrows");e.trigger("starttimer")},t.hideNavDelayOnMobile))})}catch(i){}}else{n.hover(function(){t.overnav=true;if(t.onHoverStop=="on")e.trigger("stoptimer");n.addClass("hovered");clearTimeout(e.data("hideThumbs"));n.removeClass("hidebullets");r.removeClass("hidearrows")},function(){t.overnav=false;e.trigger("starttimer");n.removeClass("hovered");if(!e.hasClass("hovered")&&!n.hasClass("hovered"))e.data("hideThumbs",setTimeout(function(){n.addClass("hidebullets");r.addClass("hidearrows")},t.hideThumbs))});r.hover(function(){t.overnav=true;if(t.onHoverStop=="on")e.trigger("stoptimer");n.addClass("hovered");clearTimeout(e.data("hideThumbs"));n.removeClass("hidebullets");r.removeClass("hidearrows")},function(){t.overnav=false;e.trigger("starttimer");n.removeClass("hovered")});e.on("mouseenter",function(){e.addClass("hovered");if(t.onHoverStop=="on")e.trigger("stoptimer");clearTimeout(e.data("hideThumbs"));n.removeClass("hidebullets");r.removeClass("hidearrows")});e.on("mouseleave",function(){e.removeClass("hovered");e.trigger("starttimer");if(!e.hasClass("hovered")&&!n.hasClass("hovered"))e.data("hideThumbs",setTimeout(function(){n.addClass("hidebullets");r.addClass("hidearrows")},t.hideThumbs))})}};var v=function(t,n){var r=t.parent();var i=r.find(".tp-bullets");if(n.navigationType=="thumb"){i.find(".thumb").each(function(t){var r=e(this);r.css({width:n.thumbWidth*n.bw+"px",height:n.thumbHeight*n.bh+"px"})});var s=i.find(".tp-mask");s.width(n.thumbWidth*n.thumbAmount*n.bw);s.height(n.thumbHeight*n.bh);s.parent().width(n.thumbWidth*n.thumbAmount*n.bw);s.parent().height(n.thumbHeight*n.bh)}var o=r.find(".tp-leftarrow");var u=r.find(".tp-rightarrow");if(n.navigationType=="thumb"&&n.navigationArrows=="nexttobullets")n.navigationArrows="solo";if(n.navigationArrows=="nexttobullets"){o.prependTo(i).css({"float":"left"});u.insertBefore(i.find(".tpclear")).css({"float":"left"})}var a=0;if(n.forceFullWidth=="on")a=0-n.container.parent().offset().left;var f=0,l=0;if(n.navigationInGrid=="on"){f=t.width()>n.startwidth?(t.width()-n.startwidth)/2:0,l=t.height()>n.startheight?(t.height()-n.startheight)/2:0}if(n.navigationArrows!="none"&&n.navigationArrows!="nexttobullets"){var c=n.soloArrowLeftValign,h=n.soloArrowLeftHalign,p=n.soloArrowRightValign,d=n.soloArrowRightHalign,v=n.soloArrowLeftVOffset,m=n.soloArrowLeftHOffset,g=n.soloArrowRightVOffset,y=n.soloArrowRightHOffset;o.css({position:"absolute"});u.css({position:"absolute"});if(c=="center")o.css({top:"50%",marginTop:v-Math.round(o.innerHeight()/2)+"px"});else if(c=="bottom")o.css({top:"auto",bottom:0+v+"px"});else if(c=="top")o.css({bottom:"auto",top:0+v+"px"});if(h=="center")o.css({left:"50%",marginLeft:a+m-Math.round(o.innerWidth()/2)+"px"});else if(h=="left")o.css({left:f+m+a+"px"});else if(h=="right")o.css({right:f+m-a+"px"});if(p=="center")u.css({top:"50%",marginTop:g-Math.round(u.innerHeight()/2)+"px"});else if(p=="bottom")u.css({top:"auto",bottom:0+g+"px"});else if(p=="top")u.css({bottom:"auto",top:0+g+"px"});if(d=="center")u.css({left:"50%",marginLeft:a+y-Math.round(u.innerWidth()/2)+"px"});else if(d=="left")u.css({left:f+y+a+"px"});else if(d=="right")u.css({right:f+y-a+"px"});if(o.position()!=null)o.css({top:Math.round(parseInt(o.position().top,0))+"px"});if(u.position()!=null)u.css({top:Math.round(parseInt(u.position().top,0))+"px"})}if(n.navigationArrows=="none"){o.css({visibility:"hidden"});u.css({visibility:"hidden"})}var b=n.navigationVAlign,w=n.navigationHAlign,E=n.navigationVOffset*n.bh,S=n.navigationHOffset*n.bw;if(b=="center")i.css({top:"50%",marginTop:E-Math.round(i.innerHeight()/2)+"px"});if(b=="bottom")i.css({bottom:0+E+"px"});if(b=="top")i.css({top:0+E+"px"});if(w=="center")i.css({left:"50%",marginLeft:a+S-Math.round(i.innerWidth()/2)+"px"});if(w=="left")i.css({left:0+S+a+"px"});if(w=="right")i.css({right:0+S-a+"px"})};var m=function(n){var r=n.container;n.beforli=n.next-1;n.comingli=n.next+1;if(n.beforli<0)n.beforli=n.slideamount-1;if(n.comingli>=n.slideamount)n.comingli=0;var i=r.find(">ul:first-child >li:eq("+n.comingli+")"),s=r.find(">ul:first-child >li:eq("+n.beforli+")"),o=s.find(".defaultimg").attr("src"),u=i.find(".defaultimg").attr("src");if(n.arr==t){n.arr=r.parent().find(".tparrows"),n.rar=r.parent().find(".tp-rightarrow"),n.lar=r.parent().find(".tp-leftarrow"),n.raimg=n.rar.find(".tp-arr-imgholder"),n.laimg=n.lar.find(".tp-arr-imgholder"),n.raimg_b=n.rar.find(".tp-arr-imgholder2"),n.laimg_b=n.lar.find(".tp-arr-imgholder2"),n.ratit=n.rar.find(".tp-arr-titleholder"),n.latit=n.lar.find(".tp-arr-titleholder")}var a=n.arr,f=n.rar,l=n.lar,c=n.raimg,h=n.laimg,p=n.raimg_b,d=n.laimg_b,v=n.ratit,m=n.latit;if(i.data("title")!=t)v.html(i.data("title"));if(s.data("title")!=t)m.html(s.data("title"));if(f.hasClass("itishovered")){f.width(v.outerWidth(true)+parseInt(f.css("minWidth"),0))}if(l.hasClass("itishovered")){l.width(m.outerWidth(true)+parseInt(l.css("minWidth"),0))}if(a.hasClass("preview2")&&!a.hasClass("hashoveralready")){a.addClass("hashoveralready");if(!J())a.hover(function(){var t=e(this),n=t.find(".tp-arr-titleholder");if(e(window).width()>767)t.width(n.outerWidth(true)+parseInt(t.css("minWidth"),0));t.addClass("itishovered")},function(){var t=e(this),n=t.find(".tp-arr-titleholder");t.css({width:parseInt(t.css("minWidth"),0)});t.removeClass("itishovered")});else{var a=e(this),g=a.find(".tp-arr-titleholder");g.addClass("alwayshidden");punchgs.TweenLite.set(g,{autoAlpha:0})}}if(s.data("thumb")!=t)o=s.data("thumb");if(i.data("thumb")!=t)u=i.data("thumb");if(!a.hasClass("preview4")){punchgs.TweenLite.to(c,.5,{autoAlpha:0,onComplete:function(){c.css({backgroundImage:"url("+u+")"});h.css({backgroundImage:"url("+o+")"})}});punchgs.TweenLite.to(h,.5,{autoAlpha:0,onComplete:function(){punchgs.TweenLite.to(c,.5,{autoAlpha:1,delay:.2});punchgs.TweenLite.to(h,.5,{autoAlpha:1,delay:.2})}})}else{p.css({backgroundImage:"url("+u+")"});d.css({backgroundImage:"url("+o+")"});punchgs.TweenLite.fromTo(p,.8,{force3D:punchgs.force3d,x:0},{x:-c.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function(){c.css({backgroundImage:"url("+u+")"});punchgs.TweenLite.set(p,{x:0})}});punchgs.TweenLite.fromTo(d,.8,{force3D:punchgs.force3d,x:0},{x:c.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function(){h.css({backgroundImage:"url("+o+")"});punchgs.TweenLite.set(d,{x:0})}});punchgs.TweenLite.fromTo(c,.8,{x:0},{force3D:punchgs.force3d,x:-c.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function(){punchgs.TweenLite.set(c,{x:0})}});punchgs.TweenLite.fromTo(h,.8,{x:0},{force3D:punchgs.force3d,x:c.width(),ease:punchgs.Power3.easeOut,delay:1,onComplete:function(){punchgs.TweenLite.set(h,{x:0})}})}if(f.hasClass("preview4")&&!f.hasClass("hashoveralready")){f.addClass("hashoveralready");f.hover(function(){var t=e(this).find(".tp-arr-iwrapper");var n=e(this).find(".tp-arr-allwrapper");punchgs.TweenLite.fromTo(t,.4,{x:t.width()},{x:0,delay:.3,ease:punchgs.Power3.easeOut,overwrite:"all"});punchgs.TweenLite.to(n,.2,{autoAlpha:1,overwrite:"all"})},function(){var t=e(this).find(".tp-arr-iwrapper");var n=e(this).find(".tp-arr-allwrapper");punchgs.TweenLite.to(t,.4,{x:t.width(),ease:punchgs.Power3.easeOut,delay:.2,overwrite:"all"});punchgs.TweenLite.to(n,.2,{delay:.6,autoAlpha:0,overwrite:"all"})});l.hover(function(){var t=e(this).find(".tp-arr-iwrapper");var n=e(this).find(".tp-arr-allwrapper");punchgs.TweenLite.fromTo(t,.4,{x:0-t.width()},{x:0,delay:.3,ease:punchgs.Power3.easeOut,overwrite:"all"});punchgs.TweenLite.to(n,.2,{autoAlpha:1,overwrite:"all"})},function(){var t=e(this).find(".tp-arr-iwrapper");var n=e(this).find(".tp-arr-allwrapper");punchgs.TweenLite.to(t,.4,{x:0-t.width(),ease:punchgs.Power3.easeOut,delay:.2,overwrite:"all"});punchgs.TweenLite.to(n,.2,{delay:.6,autoAlpha:0,overwrite:"all"})})}};var g=function(n,r){r.container.closest(".forcefullwidth_wrapper_tp_banner").find(".tp-fullwidth-forcer").css({height:r.container.height()});r.container.closest(".rev_slider_wrapper").css({height:r.container.height()});r.width=parseInt(r.container.width(),0);r.height=parseInt(r.container.height(),0);r.bw=r.width/r.startwidth;r.bh=r.height/r.startheight;if(r.bh>r.bw)r.bh=r.bw;if(r.bh1){r.bw=1;r.bh=1}if(r.bw>1){r.bw=1;r.bh=1}r.height=Math.round(r.startheight*(r.width/r.startwidth));if(r.height>r.startheight&&r.autoHeight!="on")r.height=r.startheight;if(r.fullScreen=="on"){r.height=r.bw*r.startheight;var i=r.container.parent().width();var s=e(window).height();if(r.fullScreenOffsetContainer!=t){try{var o=r.fullScreenOffsetContainer.split(",");e.each(o,function(t,n){s=s-e(n).outerHeight(true);if(s1&&r.fullScreenOffset!=t&&r.fullScreenOffset.length>0){s=s-e(window).height()*parseInt(r.fullScreenOffset,0)/100}else{if(r.fullScreenOffset!=t&&r.fullScreenOffset.length>0)s=s-parseInt(r.fullScreenOffset,0)}if(sul:first").css({overflow:"hidden",width:"100%",height:"100%",padding:"0px",maxHeight:n.parent().css("maxHeight")}).addClass("tp-revslider-mainul");if(r.autoHeight=="on"){n.find(">ul:first").css({overflow:"hidden",width:"100%",height:"100%",maxHeight:"none"});n.css({maxHeight:"none"});n.parent().css({maxHeight:"none"})}n.find(">ul:first >li").each(function(r){var i=e(this);i.addClass("tp-revslider-slidesli");i.css({width:"100%",height:"100%",overflow:"hidden"});if(i.data("link")!=t){var s=i.data("link");var o="_self";var u=60;if(i.data("slideindex")=="back")u=0;var a=checksl=i.data("linktoslide");if(a!=t){if(a!="next"&&a!="prev")n.find(">ul:first-child >li").each(function(){var t=e(this);if(t.data("origindex")+1==checksl)a=t.index()+1})}if(i.data("target")!=t)o=i.data("target");if(s!="slide")a="no";var f='';i.append(f)}});n.parent().css({overflow:"visible"});n.find(">ul:first >li >img").each(function(n){var i=e(this);i.addClass("defaultimg");if(i.data("lazyload")!=t&&i.data("lazydone")!=1){}else{g(i,r)}if(a(8)){i.data("kenburns","off")}if(r.panZoomDisableOnMobile=="on"&&J()){i.data("kenburns","off");i.data("bgfit","cover")}i.wrap('
");if(r.dottedOverlay!="none"&&r.dottedOverlay!=t)i.closest(".slotholder").append('
');var s=i.attr("src"),o=i.data("lazyload"),u=i.data("bgfit"),f=i.data("bgrepeat"),l=i.data("bgposition");if(u==t)u="cover";if(f==t)f="no-repeat";if(l==t)l="center center";var c=i.closest(".slotholder");i.replaceWith('
');if(a(8)){c.find(".tp-bgimg").css({backgroundImage:"none","background-image":"none"});c.find(".tp-bgimg").append('')}i.css({opacity:0});i.data("li-id",n)})};var b=function(e,n,r,i){var s=e,o=s.find(".defaultimg"),u=s.data("zoomstart"),f=s.data("rotationstart");if(o.data("currotate")!=t)f=o.data("currotate");if(o.data("curscale")!=t&&i=="box")u=o.data("curscale")*100;else if(o.data("curscale")!=t)u=o.data("curscale");g(o,n);var l=o.data("src"),c=o.css("backgroundColor"),h=n.width,p=n.height,d=o.data("fxof"),v=0;if(n.autoHeight=="on")p=n.container.height();if(d==t)d=0;var m=0,y=o.data("bgfit"),b=o.data("bgrepeat"),E=o.data("bgposition");if(y==t)y="cover";if(b==t)b="no-repeat";if(E==t)E="center center";if(a(8)){s.data("kenburns","off");var S=l;l=""}switch(i){case"box":var x=0,T=0,N=0;if(n.sloth>n.slotw)x=n.sloth;else x=n.slotw;if(!r){var m=0-x}n.slotw=x;n.sloth=x;var T=0;var N=0;if(s.data("kenburns")=="on"){y=u;if(y.toString().length<4)y=K(y,s,n)}for(var C=0;C'+'
'+'
'+"
");N=N+x;if(a(8)){s.find(".slot ").last().find(".slotslide").append('');w(s,n)}if(u!=t&&f!=t)punchgs.TweenLite.set(s.find(".slot").last(),{rotationZ:f})}T=T+x}break;case"vertical":case"horizontal":if(s.data("kenburns")=="on"){y=u;if(y.toString().length<4)y=K(y,s,n)}if(i=="horizontal"){if(!r)var m=0-n.slotw;for(var k=0;k'+'
'+'
'+"
");if(u!=t&&f!=t)punchgs.TweenLite.set(s.find(".slot").last(),{rotationZ:f});if(a(8)){s.find(".slot ").last().find(".slotslide").append('');w(s,n)}}}else{if(!r)var m=0-n.sloth;for(var k=0;k'+'
'+'
'+"
");if(u!=t&&f!=t)punchgs.TweenLite.set(s.find(".slot").last(),{rotationZ:f});if(a(8)){s.find(".slot ").last().find(".slotslide").append('');w(s,n)}}}break}};var w=function(e,t){if(a(8)){var n=e.find(".ieeightfallbackimage");var r=n.width(),i=n.height();if(t.startwidth/t.startheight0)S(n,o);else{clearInterval(s);if(r!=t)r()}},100)};var N=function(e,n){try{var r=e.find(">ul:first-child >li:eq("+n.act+")")}catch(i){var r=e.find(">ul:first-child >li:eq(1)")}n.lastslide=n.act;var s=e.find(">ul:first-child >li:eq("+n.next+")");var o=s.find(".defaultimg");n.bannertimeronpause=true;e.trigger("stoptimer");n.cd=0;if(o.data("lazyload")!=t&&o.data("lazyload")!="undefined"&&o.data("lazydone")!=1){if(!a(8))o.css({backgroundImage:'url("'+s.find(".defaultimg").data("lazyload")+'")'});else{o.attr("src",s.find(".defaultimg").data("lazyload"))}o.data("src",s.find(".defaultimg").data("lazyload"));o.data("lazydone",1);o.data("orgw",0);s.data("loadeddone",1);e.find(".tp-loader").css({display:"block"});T(e.find(".tp-static-layers"),function(){T(s,function(){var t=s.find(".slotholder");if(t.data("kenburns")=="on"){var r=setInterval(function(){var i=t.data("owidth");if(i>=0){clearInterval(r);C(n,o,e)}},10)}else C(n,o,e)},n)},n)}else{if(s.data("loadeddone")===t){s.data("loadeddone",1);T(s,function(){C(n,o,e)},n)}else C(n,o,e)}};var C=function(e,t,n){e.bannertimeronpause=false;e.cd=0;n.trigger("nulltimer");n.find(".tp-loader").css({display:"none"});g(t,e);v(n,e);g(t,e);k(n,e)};var k=function(e,n){e.trigger("revolution.slide.onbeforeswap");n.transition=1;n.videoplaying=false;try{var r=e.find(">ul:first-child >li:eq("+n.act+")")}catch(i){var r=e.find(">ul:first-child >li:eq(1)")}n.lastslide=n.act;var s=e.find(">ul:first-child >li:eq("+n.next+")");setTimeout(function(){m(n)},200);var o=r.find(".slotholder"),u=s.find(".slotholder");if(u.data("kenburns")=="on"||o.data("kenburns")=="on"){Z(e,n);e.find(".kenburnimg").remove()}if(s.data("delay")!=t){n.cd=0;n.delay=s.data("delay")}else{n.delay=n.origcd}if(n.firststart==1)punchgs.TweenLite.set(r,{autoAlpha:0});punchgs.TweenLite.set(r,{zIndex:18});punchgs.TweenLite.set(s,{autoAlpha:0,zIndex:20});var a=0;if(r.index()!=s.index()&&n.firststart!=1){a=z(r,n)}if(r.data("saveperformance")!="on")a=0;setTimeout(function(){e.trigger("restarttimer");L(e,n,s,r,o,u)},a)};var L=function(n,r,i,s,o,u){function x(){e.each(d,function(e,t){if(t[0]==h||t[8]==h){f=t[1];p=t[2];g=y}y=y+1})}if(i.data("differentissplayed")=="prepared"){i.data("differentissplayed","done");i.data("transition",i.data("savedtransition"));i.data("slotamount",i.data("savedslotamount"));i.data("masterspeed",i.data("savedmasterspeed"))}if(i.data("fstransition")!=t&&i.data("differentissplayed")!="done"){i.data("savedtransition",i.data("transition"));i.data("savedslotamount",i.data("slotamount"));i.data("savedmasterspeed",i.data("masterspeed"));i.data("transition",i.data("fstransition"));i.data("slotamount",i.data("fsslotamount"));i.data("masterspeed",i.data("fsmasterspeed"));i.data("differentissplayed","prepared")}n.find(".active-revslide").removeClass(".active-revslide");i.addClass("active-revslide");if(i.data("transition")==t)i.data("transition","random");var f=0,l=i.data("transition").split(","),c=i.data("nexttransid")==t?-1:i.data("nexttransid");if(i.data("randomtransition")=="on")c=Math.round(Math.random()*l.length);else c=c+1;if(c==l.length)c=0;i.data("nexttransid",c);var h=l[c];if(r.ie){if(h=="boxfade")h="boxslide";if(h=="slotfade-vertical")h="slotzoom-vertical";if(h=="slotfade-horizontal")h="slotzoom-horizontal"}if(a(8)){h=11}var p=0;if(r.parallax=="scroll"&&r.parallaxFirstGo==t){r.parallaxFirstGo=true;tt(n,r);setTimeout(function(){tt(n,r)},210);setTimeout(function(){tt(n,r)},420)}if(h=="slidehorizontal"){h="slideleft";if(r.leftarrowpressed==1)h="slideright"}if(h=="slidevertical"){h="slideup";if(r.leftarrowpressed==1)h="slidedown"}if(h=="parallaxhorizontal"){h="parallaxtoleft";if(r.leftarrowpressed==1)h="parallaxtoright"}if(h=="parallaxvertical"){h="parallaxtotop";if(r.leftarrowpressed==1)h="parallaxtobottom"}var d=[["boxslide",0,1,10,0,"box",false,null,0],["boxfade",1,0,10,0,"box",false,null,1],["slotslide-horizontal",2,0,0,200,"horizontal",true,false,2],["slotslide-vertical",3,0,0,200,"vertical",true,false,3],["curtain-1",4,3,0,0,"horizontal",true,true,4],["curtain-2",5,3,0,0,"horizontal",true,true,5],["curtain-3",6,3,25,0,"horizontal",true,true,6],["slotzoom-horizontal",7,0,0,400,"horizontal",true,true,7],["slotzoom-vertical",8,0,0,0,"vertical",true,true,8],["slotfade-horizontal",9,0,0,500,"horizontal",true,null,9],["slotfade-vertical",10,0,0,500,"vertical",true,null,10],["fade",11,0,1,300,"horizontal",true,null,11],["slideleft",12,0,1,0,"horizontal",true,true,12],["slideup",13,0,1,0,"horizontal",true,true,13],["slidedown",14,0,1,0,"horizontal",true,true,14],["slideright",15,0,1,0,"horizontal",true,true,15],["papercut",16,0,0,600,"",null,null,16],["3dcurtain-horizontal",17,0,20,100,"vertical",false,true,17],["3dcurtain-vertical",18,0,10,100,"horizontal",false,true,18],["cubic",19,0,20,600,"horizontal",false,true,19],["cube",19,0,20,600,"horizontal",false,true,20],["flyin",20,0,4,600,"vertical",false,true,21],["turnoff",21,0,1,1600,"horizontal",false,true,22],["incube",22,0,20,200,"horizontal",false,true,23],["cubic-horizontal",23,0,20,500,"vertical",false,true,24],["cube-horizontal",23,0,20,500,"vertical",false,true,25],["incube-horizontal",24,0,20,500,"vertical",false,true,26],["turnoff-vertical",25,0,1,200,"horizontal",false,true,27],["fadefromright",12,1,1,0,"horizontal",true,true,28],["fadefromleft",15,1,1,0,"horizontal",true,true,29],["fadefromtop",14,1,1,0,"horizontal",true,true,30],["fadefrombottom",13,1,1,0,"horizontal",true,true,31],["fadetoleftfadefromright",12,2,1,0,"horizontal",true,true,32],["fadetorightfadetoleft",15,2,1,0,"horizontal",true,true,33],["fadetobottomfadefromtop",14,2,1,0,"horizontal",true,true,34],["fadetotopfadefrombottom",13,2,1,0,"horizontal",true,true,35],["parallaxtoright",12,3,1,0,"horizontal",true,true,36],["parallaxtoleft",15,3,1,0,"horizontal",true,true,37],["parallaxtotop",14,3,1,0,"horizontal",true,true,38],["parallaxtobottom",13,3,1,0,"horizontal",true,true,39],["scaledownfromright",12,4,1,0,"horizontal",true,true,40],["scaledownfromleft",15,4,1,0,"horizontal",true,true,41],["scaledownfromtop",14,4,1,0,"horizontal",true,true,42],["scaledownfrombottom",13,4,1,0,"horizontal",true,true,43],["zoomout",13,5,1,0,"horizontal",true,true,44],["zoomin",13,6,1,0,"horizontal",true,true,45],["notransition",26,0,1,0,"horizontal",true,null,46]];var v=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45];var m=[16,17,18,19,20,21,22,23,24,25,26,27];var f=0;var p=1;var g=0;var y=0;var w=new Array;if(u.data("kenburns")=="on"){if(h=="boxslide"||h==0||h=="boxfade"||h==1||h=="papercut"||h==16)h=11;Q(n,r,true,true)}if(h=="random"){h=Math.round(Math.random()*d.length-1);if(h>d.length-1)h=d.length-1}if(h=="random-static"){h=Math.round(Math.random()*v.length-1);if(h>v.length-1)h=v.length-1;h=v[h]}if(h=="random-premium"){h=Math.round(Math.random()*m.length-1);if(h>m.length-1)h=m.length-1;h=m[h]}var E=[12,13,14,15,16,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45];if(r.isJoomla==true&&window.MooTools!=t&&E.indexOf(h)!=-1){var S=Math.round(Math.random()*(m.length-2))+1;if(S>m.length-1)S=m.length-1;if(S==0)S=1;h=m[S]}x();if(a(8)&&f>15&&f<28){h=Math.round(Math.random()*v.length-1);if(h>v.length-1)h=v.length-1;h=v[h];y=0;x()}var T=-1;if(r.leftarrowpressed==1||r.act>r.next)T=1;r.leftarrowpressed=0;if(f>26)f=26;if(f<0)f=0;var N=300;if(i.data("masterspeed")!=t&&i.data("masterspeed")>99&&i.data("masterspeed")r.delay)N=r.delay;w=d[g];n.parent().find(".bullet").each(function(){var t=e(this),n=t.index();t.removeClass("selected");if(r.navigationArrows=="withbullet"||r.navigationArrows=="nexttobullets")n=t.index()-1;if(n==r.next)t.addClass("selected")});var C=new punchgs.TimelineLite({onComplete:function(){A(n,r,u,o,i,s,C)}});C.add(punchgs.TweenLite.set(u.find(".defaultimg"),{opacity:0}));C.pause();if(i.data("slotamount")==t||i.data("slotamount")<1){r.slots=Math.round(Math.random()*12+4);if(h=="boxslide")r.slots=Math.round(Math.random()*6+3);else if(h=="flyin")r.slots=Math.round(Math.random()*4+1)}else{r.slots=i.data("slotamount")}if(i.data("rotate")==t)r.rotate=0;else if(i.data("rotate")==999)r.rotate=Math.round(Math.random()*360);else r.rotate=i.data("rotate");if(!e.support.transition||r.ie||r.ie9)r.rotate=0;if(r.firststart==1)r.firststart=0;N=N+w[4];if((f==4||f==5||f==6)&&r.slots<3)r.slots=3;if(w[3]!=0)r.slots=Math.min(r.slots,w[3]);if(f==9)r.slots=r.width/20;if(f==10)r.slots=r.height/20;if(w[7]!=null)b(o,r,w[7],w[5]);if(w[6]!=null)b(u,r,w[6],w[5]);if(f==0){var k=Math.ceil(r.height/r.sloth);var L=0;u.find(".slotslide").each(function(t){var n=e(this);L=L+1;if(L==k)L=0;C.add(punchgs.TweenLite.from(n,N/600,{opacity:0,top:0-r.sloth,left:0-r.slotw,rotation:r.rotate,force3D:"auto",ease:punchgs.Power2.easeOut}),(t*15+L*30)/1500)})}if(f==1){var O,M=0;u.find(".slotslide").each(function(t){var n=e(this),i=Math.random()*N+300,s=Math.random()*500+200;if(i+s>O){O=s+s;M=t}C.add(punchgs.TweenLite.from(n,i/1e3,{autoAlpha:0,force3D:"auto",rotation:r.rotate,ease:punchgs.Power2.easeInOut}),s/1e3)})}if(f==2){var _=new punchgs.TimelineLite;o.find(".slotslide").each(function(){var t=e(this);_.add(punchgs.TweenLite.to(t,N/1e3,{left:r.slotw,force3D:"auto",rotation:0-r.rotate}),0);C.add(_,0)});u.find(".slotslide").each(function(){var t=e(this);_.add(punchgs.TweenLite.from(t,N/1e3,{left:0-r.slotw,force3D:"auto",rotation:r.rotate}),0);C.add(_,0)})}if(f==3){var _=new punchgs.TimelineLite;o.find(".slotslide").each(function(){var t=e(this);_.add(punchgs.TweenLite.to(t,N/1e3,{top:r.sloth,rotation:r.rotate,force3D:"auto",transformPerspective:600}),0);C.add(_,0)});u.find(".slotslide").each(function(){var t=e(this);_.add(punchgs.TweenLite.from(t,N/1e3,{top:0-r.sloth,rotation:r.rotate,ease:punchgs.Power2.easeOut,force3D:"auto",transformPerspective:600}),0);C.add(_,0)})}if(f==4||f==5){setTimeout(function(){o.find(".defaultimg").css({opacity:0})},100);var D=N/1e3,P=D,_=new punchgs.TimelineLite;o.find(".slotslide").each(function(t){var n=e(this);var i=t*D/r.slots;if(f==5)i=(r.slots-t-1)*D/r.slots/1.5;_.add(punchgs.TweenLite.to(n,D*3,{transformPerspective:600,force3D:"auto",top:0+r.height,opacity:.5,rotation:r.rotate,ease:punchgs.Power2.easeInOut,delay:i}),0);C.add(_,0)});u.find(".slotslide").each(function(t){var n=e(this);var i=t*D/r.slots;if(f==5)i=(r.slots-t-1)*D/r.slots/1.5;_.add(punchgs.TweenLite.from(n,D*3,{top:0-r.height,opacity:.5,rotation:r.rotate,force3D:"auto",ease:punchgs.Power2.easeInOut,delay:i}),0);C.add(_,0)})}if(f==6){if(r.slots<2)r.slots=2;if(r.slots%2)r.slots=r.slots+1;var _=new punchgs.TimelineLite;setTimeout(function(){o.find(".defaultimg").css({opacity:0})},100);o.find(".slotslide").each(function(t){var n=e(this);if(t+1r.delay)N=r.delay;var _=new punchgs.TimelineLite;setTimeout(function(){o.find(".defaultimg").css({opacity:0})},100);o.find(".slotslide").each(function(){var t=e(this).find("div");_.add(punchgs.TweenLite.to(t,N/1e3,{left:0-r.slotw/2+"px",top:0-r.height/2+"px",width:r.slotw*2+"px",height:r.height*2+"px",opacity:0,rotation:r.rotate,force3D:"auto",ease:punchgs.Power2.easeOut}),0);C.add(_,0)});u.find(".slotslide").each(function(t){var n=e(this).find("div");_.add(punchgs.TweenLite.fromTo(n,N/1e3,{left:0,top:0,opacity:0,transformPerspective:600},{left:0-t*r.slotw+"px",ease:punchgs.Power2.easeOut,force3D:"auto",top:0+"px",width:r.width,height:r.height,opacity:1,rotation:0,delay:.1}),0);C.add(_,0)})}if(f==8){N=N*3;if(N>r.delay)N=r.delay;var _=new punchgs.TimelineLite;o.find(".slotslide").each(function(){var t=e(this).find("div");_.add(punchgs.TweenLite.to(t,N/1e3,{left:0-r.width/2+"px",top:0-r.sloth/2+"px",width:r.width*2+"px",height:r.sloth*2+"px",force3D:"auto",opacity:0,rotation:r.rotate}),0);C.add(_,0)});u.find(".slotslide").each(function(t){var n=e(this).find("div");_.add(punchgs.TweenLite.fromTo(n,N/1e3,{left:0,top:0,opacity:0,force3D:"auto"},{left:0+"px",top:0-t*r.sloth+"px",width:u.find(".defaultimg").data("neww")+"px",height:u.find(".defaultimg").data("newh")+"px",opacity:1,rotation:0}),0);C.add(_,0)})}if(f==9||f==10){var H=0;u.find(".slotslide").each(function(t){var n=e(this);H++;C.add(punchgs.TweenLite.fromTo(n,N/1e3,{autoAlpha:0,force3D:"auto",transformPerspective:600},{autoAlpha:1,ease:punchgs.Power2.easeInOut,delay:t*5/1e3}),0)})}if(f==11||f==26){var H=0;if(f==26)N=0;u.find(".slotslide").each(function(t){var n=e(this);C.add(punchgs.TweenLite.from(n,N/1e3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power2.easeInOut}),0)})}if(f==12||f==13||f==14||f==15){N=N;if(N>r.delay)N=r.delay;setTimeout(function(){punchgs.TweenLite.set(o.find(".defaultimg"),{autoAlpha:0})},100);var B=r.width,F=r.height,I=u.find(".slotslide"),q=0,R=0,U=1,z=1,W=1,X=punchgs.Power2.easeInOut,V=punchgs.Power2.easeInOut,$=N/1e3,J=$;if(r.fullWidth=="on"||r.fullScreen=="on"){B=I.width();F=I.height()}if(f==12)q=B;else if(f==15)q=0-B;else if(f==13)R=F;else if(f==14)R=0-F;if(p==1)U=0;if(p==2)U=0;if(p==3){X=punchgs.Power2.easeInOut;V=punchgs.Power1.easeInOut;$=N/1200}if(p==4||p==5)z=.6;if(p==6)z=1.4;if(p==5||p==6){W=1.4;U=0;B=0;F=0;q=0;R=0}if(p==6)W=.6;var K=0;C.add(punchgs.TweenLite.from(I,$,{left:q,top:R,scale:W,opacity:U,rotation:r.rotate,ease:V,force3D:"auto"}),0);var G=o.find(".slotslide");if(p==4||p==5){B=0;F=0}if(p!=1)switch(f){case 12:C.add(punchgs.TweenLite.to(G,J,{left:0-B+"px",force3D:"auto",scale:z,opacity:U,rotation:r.rotate,ease:X}),0);break;case 15:C.add(punchgs.TweenLite.to(G,J,{left:B+"px",force3D:"auto",scale:z,opacity:U,rotation:r.rotate,ease:X}),0);break;case 13:C.add(punchgs.TweenLite.to(G,J,{top:0-F+"px",force3D:"auto",scale:z,opacity:U,rotation:r.rotate,ease:X}),0);break;case 14:C.add(punchgs.TweenLite.to(G,J,{top:F+"px",force3D:"auto",scale:z,opacity:U,rotation:r.rotate,ease:X}),0);break}}if(f==16){var _=new punchgs.TimelineLite;C.add(punchgs.TweenLite.set(s,{position:"absolute","z-index":20}),0);C.add(punchgs.TweenLite.set(i,{position:"absolute","z-index":15}),0);s.wrapInner('
');s.find(".tp-half-one").clone(true).appendTo(s).addClass("tp-half-two");s.find(".tp-half-two").removeClass("tp-half-one");var B=r.width,F=r.height;if(r.autoHeight=="on")F=n.height();s.find(".tp-half-one .defaultimg").wrap('
');s.find(".tp-half-two .defaultimg").wrap('
');s.find(".tp-half-two .defaultimg").css({position:"absolute",top:"-50%"});s.find(".tp-half-two .tp-caption").wrapAll('
');C.add(punchgs.TweenLite.set(s.find(".tp-half-two"),{width:B,height:F,overflow:"hidden",zIndex:15,position:"absolute",top:F/2,left:"0px",transformPerspective:600,transformOrigin:"center bottom"}),0);C.add(punchgs.TweenLite.set(s.find(".tp-half-one"),{width:B,height:F/2,overflow:"visible",zIndex:10,position:"absolute",top:"0px",left:"0px",transformPerspective:600,transformOrigin:"center top"}),0);var Y=s.find(".defaultimg"),Z=Math.round(Math.random()*20-10),et=Math.round(Math.random()*20-10),nt=Math.round(Math.random()*20-10),rt=Math.random()*.4-.2,it=Math.random()*.4-.2,st=Math.random()*1+1,ot=Math.random()*1+1,ut=Math.random()*.3+.3;C.add(punchgs.TweenLite.set(s.find(".tp-half-one"),{overflow:"hidden"}),0);C.add(punchgs.TweenLite.fromTo(s.find(".tp-half-one"),N/800,{width:B,height:F/2,position:"absolute",top:"0px",left:"0px",force3D:"auto",transformOrigin:"center top"},{scale:st,rotation:Z,y:0-F-F/4,autoAlpha:0,ease:punchgs.Power2.easeInOut}),0);C.add(punchgs.TweenLite.fromTo(s.find(".tp-half-two"),N/800,{width:B,height:F,overflow:"hidden",position:"absolute",top:F/2,left:"0px",force3D:"auto",transformOrigin:"center bottom"},{scale:ot,rotation:et,y:F+F/4,ease:punchgs.Power2.easeInOut,autoAlpha:0,onComplete:function(){punchgs.TweenLite.set(s,{position:"absolute","z-index":15});punchgs.TweenLite.set(i,{position:"absolute","z-index":20});if(s.find(".tp-half-one").length>0){s.find(".tp-half-one .defaultimg").unwrap();s.find(".tp-half-one .slotholder").unwrap()}s.find(".tp-half-two").remove()}}),0);_.add(punchgs.TweenLite.set(u.find(".defaultimg"),{autoAlpha:1}),0);if(s.html()!=null)C.add(punchgs.TweenLite.fromTo(i,(N-200)/1e3,{scale:ut,x:r.width/4*rt,y:F/4*it,rotation:nt,force3D:"auto",transformOrigin:"center center",ease:punchgs.Power2.easeOut},{autoAlpha:1,scale:1,x:0,y:0,rotation:0}),0);C.add(_,0)}if(f==17){u.find(".slotslide").each(function(t){var n=e(this);C.add(punchgs.TweenLite.fromTo(n,N/800,{opacity:0,rotationY:0,scale:.9,rotationX:-110,force3D:"auto",transformPerspective:600,transformOrigin:"center center"},{opacity:1,top:0,left:0,scale:1,rotation:0,rotationX:0,force3D:"auto",rotationY:0,ease:punchgs.Power3.easeOut,delay:t*.06}),0)})}if(f==18){u.find(".slotslide").each(function(t){var n=e(this);C.add(punchgs.TweenLite.fromTo(n,N/500,{autoAlpha:0,rotationY:310,scale:.9,rotationX:10,force3D:"auto",transformPerspective:600,transformOrigin:"center center"},{autoAlpha:1,top:0,left:0,scale:1,rotation:0,rotationX:0,force3D:"auto",rotationY:0,ease:punchgs.Power3.easeOut,delay:t*.06}),0)})}if(f==19||f==22){var _=new punchgs.TimelineLite;C.add(punchgs.TweenLite.set(s,{zIndex:20}),0);C.add(punchgs.TweenLite.set(i,{zIndex:20}),0);setTimeout(function(){o.find(".defaultimg").css({opacity:0})},100);var at=i.css("z-index"),ft=s.css("z-index"),lt=90,U=1,ct="center center ";if(T==1)lt=-90;if(f==19){ct=ct+"-"+r.height/2;U=0}else{ct=ct+r.height/2}punchgs.TweenLite.set(n,{transformStyle:"flat",backfaceVisibility:"hidden",transformPerspective:600});u.find(".slotslide").each(function(t){var n=e(this);_.add(punchgs.TweenLite.fromTo(n,N/1e3,{transformStyle:"flat",backfaceVisibility:"hidden",left:0,rotationY:r.rotate,z:10,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:ct,rotationX:lt},{left:0,rotationY:0,top:0,z:0,scale:1,force3D:"auto",rotationX:0,delay:t*50/1e3,ease:punchgs.Power2.easeInOut}),0);_.add(punchgs.TweenLite.to(n,.1,{autoAlpha:1,delay:t*50/1e3}),0);C.add(_)});o.find(".slotslide").each(function(t){var n=e(this);var i=-90;if(T==1)i=90;_.add(punchgs.TweenLite.fromTo(n,N/1e3,{transformStyle:"flat",backfaceVisibility:"hidden",autoAlpha:1,rotationY:0,top:0,z:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:ct,rotationX:0},{autoAlpha:1,rotationY:r.rotate,top:0,z:10,scale:1,rotationX:i,delay:t*50/1e3,force3D:"auto",ease:punchgs.Power2.easeInOut}),0);C.add(_)})}if(f==20){setTimeout(function(){o.find(".defaultimg").css({opacity:0})},100);var at=i.css("z-index"),ft=s.css("z-index");if(T==1){var ht=-r.width;var lt=70;var ct="left center -"+r.height/2}else{var ht=r.width;var lt=-70;var ct="right center -"+r.height/2}u.find(".slotslide").each(function(t){var n=e(this);C.add(punchgs.TweenLite.fromTo(n,N/1500,{left:ht,rotationX:40,z:-600,opacity:U,top:0,force3D:"auto",transformPerspective:600,transformOrigin:ct,rotationY:lt},{left:0,delay:t*50/1e3,ease:punchgs.Power2.easeInOut}),0);C.add(punchgs.TweenLite.fromTo(n,N/1e3,{rotationX:40,z:-600,opacity:U,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:ct,rotationY:lt},{rotationX:0,opacity:1,top:0,z:0,scale:1,rotationY:0,delay:t*50/1e3,ease:punchgs.Power2.easeInOut}),0);C.add(punchgs.TweenLite.to(n,.1,{opacity:1,force3D:"auto",delay:t*50/1e3+N/2e3}),0)});o.find(".slotslide").each(function(t){var n=e(this);if(T!=1){var i=-r.width;var s=70;var o="left center -"+r.height/2}else{var i=r.width;var s=-70;var o="right center -"+r.height/2}C.add(punchgs.TweenLite.fromTo(n,N/1e3,{opacity:1,rotationX:0,top:0,z:0,scale:1,left:0,force3D:"auto",transformPerspective:600,transformOrigin:o,rotationY:0},{opacity:1,rotationX:40,top:0,z:-600,left:i,force3D:"auto",scale:.8,rotationY:s,delay:t*50/1e3,ease:punchgs.Power2.easeInOut}),0);C.add(punchgs.TweenLite.to(n,.1,{force3D:"auto",opacity:0,delay:t*50/1e3+(N/1e3-N/1e4)}),0)})}if(f==21||f==25){setTimeout(function(){o.find(".defaultimg").css({opacity:0})},100);var at=i.css("z-index"),ft=s.css("z-index"),lt=90,ht=-r.width,pt=-lt;if(T==1){if(f==25){var ct="center top 0";lt=r.rotate}else{var ct="left center 0";pt=r.rotate}}else{ht=r.width;lt=-90;if(f==25){var ct="center bottom 0";pt=-lt;lt=r.rotate}else{var ct="right center 0";pt=r.rotate}}u.find(".slotslide").each(function(t){var n=e(this);C.add(punchgs.TweenLite.fromTo(n,N/1e3,{left:0,transformStyle:"flat",rotationX:pt,z:0,autoAlpha:0,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:ct,rotationY:lt},{left:0,rotationX:0,top:0,z:0,autoAlpha:1,scale:1,rotationY:0,force3D:"auto",ease:punchgs.Power3.easeInOut}),0)});if(T!=1){ht=-r.width;lt=90;if(f==25){ct="center top 0";pt=-lt;lt=r.rotate}else{ct="left center 0";pt=r.rotate}}else{ht=r.width;lt=-90;if(f==25){ct="center bottom 0";pt=-lt;lt=r.rotate}else{ct="right center 0";pt=r.rotate}}o.find(".slotslide").each(function(t){var n=e(this);C.add(punchgs.TweenLite.fromTo(n,N/1e3,{left:0,transformStyle:"flat",rotationX:0,z:0,autoAlpha:1,top:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:ct,rotationY:0},{left:0,rotationX:pt,top:0,z:0,autoAlpha:1,force3D:"auto",scale:1,rotationY:lt,ease:punchgs.Power1.easeInOut}),0)})}if(f==23||f==24){setTimeout(function(){o.find(".defaultimg").css({opacity:0})},100);var at=i.css("z-index"),ft=s.css("z-index"),lt=-90,U=1,dt=0;if(T==1)lt=90;if(f==23){var ct="center center -"+r.width/2;U=0}else var ct="center center "+r.width/2;punchgs.TweenLite.set(n,{transformStyle:"preserve-3d",backfaceVisibility:"hidden",perspective:2500});u.find(".slotslide").each(function(t){var n=e(this);C.add(punchgs.TweenLite.fromTo(n,N/1e3,{left:dt,rotationX:r.rotate,force3D:"auto",opacity:U,top:0,scale:1,transformPerspective:600,transformOrigin:ct,rotationY:lt},{left:0,rotationX:0,autoAlpha:1,top:0,z:0,scale:1,rotationY:0,delay:t*50/500,ease:punchgs.Power2.easeInOut}),0)});lt=90;if(T==1)lt=-90;o.find(".slotslide").each(function(t){var n=e(this);C.add(punchgs.TweenLite.fromTo(n,N/1e3,{left:0,autoAlpha:1,rotationX:0,top:0,z:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:ct,rotationY:0},{left:dt,autoAlpha:1,rotationX:r.rotate,top:0,scale:1,rotationY:lt,delay:t*50/500,ease:punchgs.Power2.easeInOut}),0)})}C.pause();j(i,r,null,C);punchgs.TweenLite.to(i,.001,{autoAlpha:1});var vt={};vt.slideIndex=r.next+1;vt.slide=i;n.trigger("revolution.slide.onchange",vt);setTimeout(function(){n.trigger("revolution.slide.onafterswap")},N);n.trigger("revolution.slide.onvideostop")};var A=function(e,t,n,r,i,s,o){punchgs.TweenLite.to(n.find(".defaultimg"),.001,{autoAlpha:1,onComplete:function(){E(e,t,i)}});if(i.index()!=s.index()){punchgs.TweenLite.to(s,.2,{autoAlpha:0,onComplete:function(){E(e,t,s)}})}t.act=t.next;if(t.navigationType=="thumb")rt(e);if(n.data("kenburns")=="on"){Q(e,t)}e.find(".current-sr-slide-visible").removeClass("current-sr-slide-visible");i.addClass("current-sr-slide-visible");if(t.parallax=="scroll"||t.parallax=="scroll+mouse"||t.parallax=="mouse+scroll"){tt(e,t)}o.clear()};var O=function(t){var n=t.target.getVideoEmbedCode();var r=e("#"+n.split('id="')[1].split('"')[0]);var i=r.closest(".tp-simpleresponsive");var s=r.parent().data("player");if(t.data==YT.PlayerState.PLAYING){var o=i.find(".tp-bannertimer");var u=o.data("opt");if(r.closest(".tp-caption").data("volume")=="mute")s.mute();u.videoplaying=true;i.trigger("stoptimer");i.trigger("revolution.slide.onvideoplay")}else{var o=i.find(".tp-bannertimer");var u=o.data("opt");if(t.data!=-1&&t.data!=3){u.videoplaying=false;i.trigger("starttimer");i.trigger("revolution.slide.onvideostop")}if(t.data==0&&u.nextslideatend==true)u.container.revnext();else{u.videoplaying=false;i.trigger("starttimer");i.trigger("revolution.slide.onvideostop")}}};var M=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,false);else e.attachEvent(t,n,false)};var _=function(t,n){var r=$f(t),i=e("#"+t),s=i.closest(".tp-simpleresponsive"),o=i.closest(".tp-caption");setTimeout(function(){r.addEvent("ready",function(t){if(n)r.api("play");r.addEvent("play",function(e){var t=s.find(".tp-bannertimer");var n=t.data("opt");n.videoplaying=true;s.trigger("stoptimer");if(o.data("volume")=="mute")r.api("setVolume","0")});r.addEvent("finish",function(e){var t=s.find(".tp-bannertimer");var n=t.data("opt");n.videoplaying=false;s.trigger("starttimer");s.trigger("revolution.slide.onvideoplay");if(n.nextslideatend==true)n.container.revnext()});r.addEvent("pause",function(e){var t=s.find(".tp-bannertimer");var n=t.data("opt");n.videoplaying=false;s.trigger("starttimer");s.trigger("revolution.slide.onvideostop")});o.find(".tp-thumb-image").click(function(){punchgs.TweenLite.to(e(this),.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut});r.api("play")})})},150)};var D=function(e,n){var r=n.width();var i=n.height();var s=e.data("mediaAspect");if(s==t)s=1;var o=r/i;e.css({position:"absolute"});var u=e.find("video");if(o=r.next||p==r.next||d==r.next){h.addClass("tp-is-shown");f=1}else{f=0}}else{if(d==r.next||p>r.next||d0)c=r.container.height()/2-r.startheight*r.bh/2;if(c<0)c=0;var g=0;if(r.width0||h.find("video").length>0){var y="iframe"+Math.round(Math.random()*1e5+1),b=h.data("videowidth"),w=h.data("videoheight"),E=h.data("videoattributes"),S=h.data("ytid"),x=h.data("vimeoid"),T=h.data("videpreload"),N=h.data("videomp4"),C=h.data("videowebm"),k=h.data("videoogv"),L=h.data("videocontrols"),A="http",j=h.data("videoloop")=="loop"?"loop":h.data("videoloop")=="loopandnoslidestop"?"loop":"";if(h.data("thumbimage")!=t&&h.data("videoposter")==t)h.data("videoposter",h.data("thumbimage"));if(S!=t&&String(S).length>1&&h.find("iframe").length==0){A="https";if(L=="none"){E=E.replace("controls=1","controls=0");if(E.toLowerCase().indexOf("controls")==-1)E=E+"&controls=0"}h.append('')}if(x!=t&&String(x).length>1&&h.find("iframe").length==0){if(location.protocol==="https:")A="https";h.append('')}if((N!=t||C!=t)&&h.find("video").length==0){if(L!="controls")L="";var I='";h.append(I);if(L=="controls")h.append('
'+'
'+'
'+'
'+'
'+'
'+"
")}var z=false;if(h.data("autoplayonlyfirsttime")==true||h.data("autoplayonlyfirsttime")=="true"||h.data("autoplay")==true){h.data("autoplay",true);z=true}h.find("iframe").each(function(){var n=e(this);punchgs.TweenLite.to(n,.1,{autoAlpha:1,zIndex:0,transformStyle:"preserve-3d",z:0,rotationX:0,force3D:"auto"});if(J()){var o=n.attr("src");n.attr("src","");n.attr("src",o)}r.nextslideatend=h.data("nextslideatend");if(h.data("videoposter")!=t&&h.data("videoposter").length>2&&h.data("autoplay")!=true&&!s){if(h.find(".tp-thumb-image").length==0)h.append('
');else punchgs.TweenLite.set(h.find(".tp-thumb-image"),{autoAlpha:1})}if(n.attr("src").toLowerCase().indexOf("youtube")>=0){if(!n.hasClass("HasListener")){try{n.attr("id",y);var u;var a=setInterval(function(){if(YT!=t)if(typeof YT.Player!=t&&typeof YT.Player!="undefined"){u=new YT.Player(y,{events:{onStateChange:O,onReady:function(n){var r=n.target.getVideoEmbedCode(),i=e("#"+r.split('id="')[1].split('"')[0]),s=i.closest(".tp-caption"),o=s.data("videorate"),a=s.data("videostart");if(o!=t)n.target.setPlaybackRate(parseFloat(o));if(!J()&&s.data("autoplay")==true||z){s.data("timerplay",setTimeout(function(){n.target.playVideo()},s.data("start")))}s.find(".tp-thumb-image").click(function(){punchgs.TweenLite.to(e(this),.3,{autoAlpha:0,force3D:"auto",ease:punchgs.Power3.easeInOut});if(!J()){u.playVideo()}})}}})}n.addClass("HasListener");h.data("player",u);clearInterval(a)},100)}catch(f){}}else{if(!i){var u=h.data("player");if(h.data("forcerewind")=="on"&&!J())u.seekTo(0);if(!J()&&h.data("autoplay")==true||z){h.data("timerplay",setTimeout(function(){u.playVideo()},h.data("start")))}}}}else if(n.attr("src").toLowerCase().indexOf("vimeo")>=0){if(!n.hasClass("HasListener")){n.addClass("HasListener");n.attr("id",y);var l=n.attr("src");var c={},p=l,d=/([^&=]+)=([^&]*)/g,v;while(v=d.exec(p)){c[decodeURIComponent(v[1])]=decodeURIComponent(v[2])}if(c["player_id"]!=t)l=l.replace(c["player_id"],y);else l=l+"&player_id="+y;try{l=l.replace("api=0","api=1")}catch(f){}l=l+"&api=1";n.attr("src",l);var u=h.find("iframe")[0];var m=setInterval(function(){if($f!=t){if(typeof $f(y).api!=t&&typeof $f(y).api!="undefined"){$f(u).addEvent("ready",function(){_(y,z)});clearInterval(m)}}},100)}else{if(!i){if(!J()&&(h.data("autoplay")==true||h.data("forcerewind")=="on")){var n=h.find("iframe");var g=n.attr("id");var b=$f(g);if(h.data("forcerewind")=="on")b.api("seekTo",0);h.data("timerplay",setTimeout(function(){if(h.data("autoplay")==true)b.api("play")},h.data("start")))}}}}});if(J()&&h.data("disablevideoonmobile")==1||a(8))h.find("video").remove();if(h.find("video").length>0){h.find("video").each(function(n){var i=this,s=e(this);if(!s.parent().hasClass("html5vid"))s.wrap('
');var o=s.parent();M(i,"loadedmetadata",function(e){e.data("metaloaded",1)}(o));clearInterval(o.data("interval"));o.data("interval",setInterval(function(){if(o.data("metaloaded")==1||i.duration!=NaN){clearInterval(o.data("interval"));if(!o.hasClass("HasListener")){o.addClass("HasListener");if(h.data("dottedoverlay")!="none"&&h.data("dottedoverlay")!=t)if(h.find(".tp-dottedoverlay").length!=1)o.append('
');if(s.attr("control")==t){if(o.find(".tp-video-play-button").length==0)o.append('
');o.find("video, .tp-poster, .tp-video-play-button").click(function(){if(o.hasClass("videoisplaying"))i.pause();else i.play()})}if(h.data("forcecover")==1||h.hasClass("fullscreenvideo")){if(h.data("forcecover")==1){D(o,r.container);o.addClass("fullcoveredvideo");h.addClass("fullcoveredvideo")}o.css({width:"100%",height:"100%"})}var e=h.find(".tp-vid-play-pause")[0],n=h.find(".tp-vid-mute")[0],u=h.find(".tp-vid-full-screen")[0],a=h.find(".tp-seek-bar")[0],f=h.find(".tp-volume-bar")[0];if(e!=t){M(e,"click",function(){if(i.paused==true)i.play();else i.pause()});M(n,"click",function(){if(i.muted==false){i.muted=true;n.innerHTML="Unmute"}else{i.muted=false;n.innerHTML="Mute"}});M(u,"click",function(){if(i.requestFullscreen){i.requestFullscreen()}else if(i.mozRequestFullScreen){i.mozRequestFullScreen()}else if(i.webkitRequestFullscreen){i.webkitRequestFullscreen()}});M(a,"change",function(){var e=i.duration*(a.value/100);i.currentTime=e});M(i,"timeupdate",function(){var e=100/i.duration*i.currentTime;a.value=e});M(a,"mousedown",function(){i.pause()});M(a,"mouseup",function(){i.play()});M(f,"change",function(){i.volume=f.value})}M(i,"play",function(){if(h.data("volume")=="mute")i.muted=true;o.addClass("videoisplaying");if(h.data("videoloop")=="loopandnoslidestop"){r.videoplaying=false;r.container.trigger("starttimer");r.container.trigger("revolution.slide.onvideostop")}else{r.videoplaying=true;r.container.trigger("stoptimer");r.container.trigger("revolution.slide.onvideoplay")}var e=h.find(".tp-vid-play-pause")[0],n=h.find(".tp-vid-mute")[0];if(e!=t)e.innerHTML="Pause";if(n!=t&&i.muted)n.innerHTML="Unmute"});M(i,"pause",function(){o.removeClass("videoisplaying");r.videoplaying=false;r.container.trigger("starttimer");r.container.trigger("revolution.slide.onvideostop");var e=h.find(".tp-vid-play-pause")[0];if(e!=t)e.innerHTML="Play"});M(i,"ended",function(){o.removeClass("videoisplaying");r.videoplaying=false;r.container.trigger("starttimer");r.container.trigger("revolution.slide.onvideostop");if(r.nextslideatend==true)r.container.revnext()})}var l=false;if(h.data("autoplayonlyfirsttime")==true||h.data("autoplayonlyfirsttime")=="true")l=true;var c=16/9;if(h.data("aspectratio")=="4:3")c=4/3;o.data("mediaAspect",c);if(o.closest(".tp-caption").data("forcecover")==1){D(o,r.container);o.addClass("fullcoveredvideo")}s.css({display:"block"});r.nextslideatend=h.data("nextslideatend");if(h.data("autoplay")==true||l==true){if(h.data("videoloop")=="loopandnoslidestop"){r.videoplaying=false;r.container.trigger("starttimer");r.container.trigger("revolution.slide.onvideostop")}else{r.videoplaying=true;r.container.trigger("stoptimer");r.container.trigger("revolution.slide.onvideoplay")}if(h.data("forcerewind")=="on"&&!o.hasClass("videoisplaying"))if(i.currentTime>0)i.currentTime=0;if(h.data("volume")=="mute")i.muted=true;o.data("timerplay",setTimeout(function(){if(h.data("forcerewind")=="on"&&!o.hasClass("videoisplaying"))if(i.currentTime>0)i.currentTime=0;if(h.data("volume")=="mute")i.muted=true;i.play()},10+h.data("start")))}if(o.data("ww")==t)o.data("ww",s.attr("width"));if(o.data("hh")==t)o.data("hh",s.attr("height"));if(!h.hasClass("fullscreenvideo")&&h.data("forcecover")==1){try{o.width(o.data("ww")*r.bw);o.height(o.data("hh")*r.bh)}catch(p){}}clearInterval(o.data("interval"))}}),100)})}if(h.data("autoplay")==true){setTimeout(function(){if(h.data("videoloop")!="loopandnoslidestop"){r.videoplaying=true;r.container.trigger("stoptimer")}},200);if(h.data("videoloop")!="loopandnoslidestop"){r.videoplaying=true;r.container.trigger("stoptimer")}if(h.data("autoplayonlyfirsttime")==true||h.data("autoplayonlyfirsttime")=="true"){h.data("autoplay",false);h.data("autoplayonlyfirsttime",false)}}}var V=0;var $=0;if(h.find("img").length>0){var K=h.find("img");if(K.width()==0)K.css({width:"auto"});if(K.height()==0)K.css({height:"auto"});if(K.data("ww")==t&&K.width()>0)K.data("ww",K.width());if(K.data("hh")==t&&K.height()>0)K.data("hh",K.height());var Q=K.data("ww");var G=K.data("hh");if(Q==t)Q=0;if(G==t)G=0;K.width(Q*r.bw);K.height(G*r.bh);V=K.width();$=K.height()}else{if(h.find("iframe").length>0||h.find("video").length>0){var Y=false,K=h.find("iframe");if(K.length==0){K=h.find("video");Y=true}K.css({display:"block"});if(h.data("ww")==t)h.data("ww",K.width());if(h.data("hh")==t)h.data("hh",K.height());var Q=h.data("ww"),G=h.data("hh");var Z=h;if(Z.data("fsize")==t)Z.data("fsize",parseInt(Z.css("font-size"),0)||0);if(Z.data("pt")==t)Z.data("pt",parseInt(Z.css("paddingTop"),0)||0);if(Z.data("pb")==t)Z.data("pb",parseInt(Z.css("paddingBottom"),0)||0);if(Z.data("pl")==t)Z.data("pl",parseInt(Z.css("paddingLeft"),0)||0);if(Z.data("pr")==t)Z.data("pr",parseInt(Z.css("paddingRight"),0)||0);if(Z.data("mt")==t)Z.data("mt",parseInt(Z.css("marginTop"),0)||0);if(Z.data("mb")==t)Z.data("mb",parseInt(Z.css("marginBottom"),0)||0);if(Z.data("ml")==t)Z.data("ml",parseInt(Z.css("marginLeft"),0)||0);if(Z.data("mr")==t)Z.data("mr",parseInt(Z.css("marginRight"),0)||0);if(Z.data("bt")==t)Z.data("bt",parseInt(Z.css("borderTop"),0)||0);if(Z.data("bb")==t)Z.data("bb",parseInt(Z.css("borderBottom"),0)||0);if(Z.data("bl")==t)Z.data("bl",parseInt(Z.css("borderLeft"),0)||0);if(Z.data("br")==t)Z.data("br",parseInt(Z.css("borderRight"),0)||0);if(Z.data("lh")==t)Z.data("lh",parseInt(Z.css("lineHeight"),0)||0);if(Z.data("lh")=="auto")Z.data("lh",Z.data("fsize")+4);var et=r.width,tt=r.height;if(et>r.startwidth)et=r.startwidth;if(tt>r.startheight)tt=r.startheight;if(!h.hasClass("fullscreenvideo"))h.css({"font-size":Z.data("fsize")*r.bw+"px","padding-top":Z.data("pt")*r.bh+"px","padding-bottom":Z.data("pb")*r.bh+"px","padding-left":Z.data("pl")*r.bw+"px","padding-right":Z.data("pr")*r.bw+"px","margin-top":Z.data("mt")*r.bh+"px","margin-bottom":Z.data("mb")*r.bh+"px","margin-left":Z.data("ml")*r.bw+"px","margin-right":Z.data("mr")*r.bw+"px","border-top":Z.data("bt")*r.bh+"px","border-bottom":Z.data("bb")*r.bh+"px","border-left":Z.data("bl")*r.bw+"px","border-right":Z.data("br")*r.bw+"px","line-height":Z.data("lh")*r.bh+"px",height:G*r.bh+"px"});else{l=0;c=0;h.data("x",0);h.data("y",0);var nt=r.height;if(r.autoHeight=="on")nt=r.container.height();h.css({width:r.width,height:nt})}if(Y==false){K.width(Q*r.bw);K.height(G*r.bh)}else if(h.data("forcecover")!=1&&!h.hasClass("fullscreenvideo")){K.width(Q*r.bw);K.height(G*r.bh)}V=K.width();$=K.height()}else{h.find(".tp-resizeme, .tp-resizeme *").each(function(){q(e(this),r)});if(h.hasClass("tp-resizeme")){h.find("*").each(function(){q(e(this),r)})}q(h,r);$=h.outerHeight(true);V=h.outerWidth(true);var rt=h.outerHeight();var it=h.css("backgroundColor");h.find(".frontcorner").css({borderWidth:rt+"px",left:0-rt+"px",borderRight:"0px solid transparent",borderTopColor:it});h.find(".frontcornertop").css({borderWidth:rt+"px",left:0-rt+"px",borderRight:"0px solid transparent",borderBottomColor:it});h.find(".backcorner").css({borderWidth:rt+"px",right:0-rt+"px",borderLeft:"0px solid transparent",borderBottomColor:it});h.find(".backcornertop").css({borderWidth:rt+"px",right:0-rt+"px",borderLeft:"0px solid transparent",borderTopColor:it})}}if(r.fullScreenAlignForce=="on"){l=0;c=0}if(h.data("voffset")==t)h.data("voffset",0);if(h.data("hoffset")==t)h.data("hoffset",0);var st=h.data("voffset")*v;var ot=h.data("hoffset")*v;var ut=r.startwidth*v;var at=r.startheight*v;if(r.fullScreenAlignForce=="on"){ut=r.container.width();at=r.container.height()}if(h.data("x")=="center"||h.data("xcenter")=="center"){h.data("xcenter","center");h.data("x",ut/2-h.outerWidth(true)/2+ot)}if(h.data("x")=="left"||h.data("xleft")=="left"){h.data("xleft","left");h.data("x",0/v+ot)}if(h.data("x")=="right"||h.data("xright")=="right"){h.data("xright","right");h.data("x",(ut-h.outerWidth(true)+ot)/v)}if(h.data("y")=="center"||h.data("ycenter")=="center"){h.data("ycenter","center");h.data("y",at/2-h.outerHeight(true)/2+st)}if(h.data("y")=="top"||h.data("ytop")=="top"){h.data("ytop","top");h.data("y",0/r.bh+st)}if(h.data("y")=="bottom"||h.data("ybottom")=="bottom"){h.data("ybottom","bottom");h.data("y",(at-h.outerHeight(true)+st)/v)}if(h.data("start")==t)h.data("start",1e3);var ft=h.data("easing");if(ft==t)ft="punchgs.Power1.easeOut";var lt=h.data("start")/1e3,ct=h.data("speed")/1e3;if(h.data("x")=="center"||h.data("xcenter")=="center")var ht=h.data("x")+l;else{var ht=v*h.data("x")+l}if(h.data("y")=="center"||h.data("ycenter")=="center")var pt=h.data("y")+c;else{var pt=r.bh*h.data("y")+c}punchgs.TweenLite.set(h,{top:pt,left:ht,overwrite:"auto"});if(f==0)s=true;if(h.data("timeline")!=t&&!s){if(f!=2)h.data("timeline").gotoAndPlay(0);s=true}if(!s){if(h.data("timeline")!=t){}var dt=new punchgs.TimelineLite({smoothChildTiming:true,onStart:u});dt.pause();if(r.fullScreenAlignForce=="on"){}var vt=h;if(h.data("mySplitText")!=t)h.data("mySplitText").revert();if(h.data("splitin")=="chars"||h.data("splitin")=="words"||h.data("splitin")=="lines"||h.data("splitout")=="chars"||h.data("splitout")=="words"||h.data("splitout")=="lines"){if(h.find("a").length>0)h.data("mySplitText",new punchgs.SplitText(h.find("a"),{type:"lines,words,chars",charsClass:"tp-splitted",wordsClass:"tp-splitted",linesClass:"tp-splitted"}));else if(h.find(".tp-layer-inner-rotation").length>0)h.data("mySplitText",new punchgs.SplitText(h.find(".tp-layer-inner-rotation"),{type:"lines,words,chars",charsClass:"tp-splitted",wordsClass:"tp-splitted",linesClass:"tp-splitted"}));else h.data("mySplitText",new punchgs.SplitText(h,{type:"lines,words,chars",charsClass:"tp-splitted",wordsClass:"tp-splitted",linesClass:"tp-splitted"}));h.addClass("splitted")}if(h.data("splitin")=="chars")vt=h.data("mySplitText").chars;if(h.data("splitin")=="words")vt=h.data("mySplitText").words;if(h.data("splitin")=="lines")vt=h.data("mySplitText").lines;var mt=P();var gt=P();if(h.data("repeat")!=t)repeatV=h.data("repeat");if(h.data("yoyo")!=t)yoyoV=h.data("yoyo");if(h.data("repeatdelay")!=t)repeatdelayV=h.data("repeatdelay");var yt=h.attr("class");if(yt.match("customin"))mt=H(mt,h.data("customin"));else if(yt.match("randomrotate")){mt.scale=Math.random()*3+1;mt.rotation=Math.round(Math.random()*200-100);mt.x=Math.round(Math.random()*200-100);mt.y=Math.round(Math.random()*200-100)}else if(yt.match("lfr")||yt.match("skewfromright"))mt.x=15+r.width;else if(yt.match("lfl")||yt.match("skewfromleft"))mt.x=-15-V;else if(yt.match("sfl")||yt.match("skewfromleftshort"))mt.x=-50;else if(yt.match("sfr")||yt.match("skewfromrightshort"))mt.x=50;else if(yt.match("lft"))mt.y=-25-$;else if(yt.match("lfb"))mt.y=25+r.height;else if(yt.match("sft"))mt.y=-50;else if(yt.match("sfb"))mt.y=50;if(yt.match("skewfromright")||h.hasClass("skewfromrightshort"))mt.skewX=-85;else if(yt.match("skewfromleft")||h.hasClass("skewfromleftshort"))mt.skewX=85;if(yt.match("fade")||yt.match("sft")||yt.match("sfl")||yt.match("sfb")||yt.match("skewfromleftshort")||yt.match("sfr")||yt.match("skewfromrightshort"))mt.opacity=0;if(F().toLowerCase()=="safari"){}var bt=h.data("elementdelay")==t?0:h.data("elementdelay");gt.ease=mt.ease=h.data("easing")==t?punchgs.Power1.easeInOut:h.data("easing");mt.data=new Object;mt.data.oldx=mt.x;mt.data.oldy=mt.y;gt.data=new Object;gt.data.oldx=gt.x;gt.data.oldy=gt.y;mt.x=mt.x*v;mt.y=mt.y*v;var wt=new punchgs.TimelineLite;if(f!=2){if(yt.match("customin")){if(vt!=h)dt.add(punchgs.TweenLite.set(h,{force3D:"auto",opacity:1,scaleX:1,scaleY:1,rotationX:0,rotationY:0,rotationZ:0,skewX:0,skewY:0,z:0,x:0,y:0,visibility:"visible",delay:0,overwrite:"all"}));mt.visibility="hidden";gt.visibility="visible";gt.overwrite="all";gt.opacity=1;gt.onComplete=o();gt.delay=lt;gt.force3D="auto";dt.add(wt.staggerFromTo(vt,ct,mt,gt,bt),"frame0")}else{mt.visibility="visible";mt.transformPerspective=600;if(vt!=h)dt.add(punchgs.TweenLite.set(h,{force3D:"auto",opacity:1,scaleX:1,scaleY:1,rotationX:0,rotationY:0,rotationZ:0,skewX:0,skewY:0,z:0,x:0,y:0,visibility:"visible",delay:0,overwrite:"all"}));gt.visibility="visible";gt.delay=lt;gt.onComplete=o();gt.opacity=1;gt.force3D="auto";if(yt.match("randomrotate")&&vt!=h){for(var n=0;n0){var n=B(t);W(h,r,n,"frame"+(e+10),v)}})}dt=h.data("timeline");if(h.data("end")!=t&&(f==-1||f==2)){X(h,r,h.data("end")/1e3,mt,"frame99",v)}else{if(f==-1||f==2)X(h,r,999999,mt,"frame99",v);else X(h,r,200,mt,"frame99",v)}dt=h.data("timeline");h.data("timeline",dt);R(h,v);dt.resume()}}if(s){U(h);R(h,v);if(h.data("timeline")!=t){var Ct=h.data("timeline").getTweensOf();e.each(Ct,function(e,n){if(n.vars.data!=t){var r=n.vars.data.oldx*v;var i=n.vars.data.oldy*v;if(n.progress()!=1&&n.progress()!=0){try{n.vars.x=r;n.vary.y=i}catch(s){}}else{if(n.progress()==1){punchgs.TweenLite.set(n.target,{x:r,y:i})}}}})}}});var d=e("body").find("#"+r.container.attr("id")).find(".tp-bannertimer");d.data("opt",r);if(s!=t)setTimeout(function(){s.resume()},30)};var F=function(){var e=navigator.appName,t=navigator.userAgent,n;var r=t.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);if(r&&(n=t.match(/version\/([\.\d]+)/i))!=null)r[2]=n[1];r=r?[r[1],r[2]]:[e,navigator.appVersion,"-?"];return r[0]};var I=function(){var e=navigator.appName,t=navigator.userAgent,n;var r=t.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);if(r&&(n=t.match(/version\/([\.\d]+)/i))!=null)r[2]=n[1];r=r?[r[1],r[2]]:[e,navigator.appVersion,"-?"];return r[1]};var q=function(e,n){if(e.data("fsize")==t)e.data("fsize",parseInt(e.css("font-size"),0)||0);if(e.data("pt")==t)e.data("pt",parseInt(e.css("paddingTop"),0)||0);if(e.data("pb")==t)e.data("pb",parseInt(e.css("paddingBottom"),0)||0);if(e.data("pl")==t)e.data("pl",parseInt(e.css("paddingLeft"),0)||0);if(e.data("pr")==t)e.data("pr",parseInt(e.css("paddingRight"),0)||0);if(e.data("mt")==t)e.data("mt",parseInt(e.css("marginTop"),0)||0);if(e.data("mb")==t)e.data("mb",parseInt(e.css("marginBottom"),0)||0);if(e.data("ml")==t)e.data("ml",parseInt(e.css("marginLeft"),0)||0);if(e.data("mr")==t)e.data("mr",parseInt(e.css("marginRight"),0)||0);if(e.data("bt")==t)e.data("bt",parseInt(e.css("borderTopWidth"),0)||0);if(e.data("bb")==t)e.data("bb",parseInt(e.css("borderBottomWidth"),0)||0);if(e.data("bl")==t)e.data("bl",parseInt(e.css("borderLeftWidth"),0)||0);if(e.data("br")==t)e.data("br",parseInt(e.css("borderRightWidth"),0)||0);if(e.data("ls")==t)e.data("ls",parseInt(e.css("letterSpacing"),0)||0);if(e.data("lh")==t)e.data("lh",parseInt(e.css("lineHeight"),0)||"auto");if(e.data("minwidth")==t)e.data("minwidth",parseInt(e.css("minWidth"),0)||0);if(e.data("minheight")==t)e.data("minheight",parseInt(e.css("minHeight"),0)||0);if(e.data("maxwidth")==t)e.data("maxwidth",parseInt(e.css("maxWidth"),0)||"none");if(e.data("maxheight")==t)e.data("maxheight",parseInt(e.css("maxHeight"),0)||"none");if(e.data("wii")==t)e.data("wii",parseInt(e.css("width"),0)||0);if(e.data("hii")==t)e.data("hii",parseInt(e.css("height"),0)||0);if(e.data("wan")==t)e.data("wan",e.css("-webkit-transition"));if(e.data("moan")==t)e.data("moan",e.css("-moz-animation-transition"));if(e.data("man")==t)e.data("man",e.css("-ms-animation-transition"));if(e.data("ani")==t)e.data("ani",e.css("transition"));if(e.data("lh")=="auto")e.data("lh",e.data("fsize")+4);if(!e.hasClass("tp-splitted")){e.css("-webkit-transition","none");e.css("-moz-transition","none");e.css("-ms-transition","none");e.css("transition","none");punchgs.TweenLite.set(e,{fontSize:Math.round(e.data("fsize")*n.bw)+"px",letterSpacing:Math.floor(e.data("ls")*n.bw)+"px",paddingTop:Math.round(e.data("pt")*n.bh)+"px",paddingBottom:Math.round(e.data("pb")*n.bh)+"px",paddingLeft:Math.round(e.data("pl")*n.bw)+"px",paddingRight:Math.round(e.data("pr")*n.bw)+"px",marginTop:e.data("mt")*n.bh+"px",marginBottom:e.data("mb")*n.bh+"px",marginLeft:e.data("ml")*n.bw+"px",marginRight:e.data("mr")*n.bw+"px",borderTopWidth:Math.round(e.data("bt")*n.bh)+"px",borderBottomWidth:Math.round(e.data("bb")*n.bh)+"px",borderLeftWidth:Math.round(e.data("bl")*n.bw)+"px",borderRightWidth:Math.round(e.data("br")*n.bw)+"px",lineHeight:Math.round(e.data("lh")*n.bh)+"px",minWidth:e.data("minwidth")*n.bw+"px",minHeight:e.data("minheight")*n.bh+"px",overwrite:"auto"});setTimeout(function(){e.css("-webkit-transition",e.data("wan"));e.css("-moz-transition",e.data("moan"));e.css("-ms-transition",e.data("man"));e.css("transition",e.data("ani"))},30);if(e.data("maxheight")!="none")e.css({maxHeight:e.data("maxheight")*n.bh+"px"});if(e.data("maxwidth")!="none")e.css({maxWidth:e.data("maxwidth")*n.bw+"px"})}};var R=function(n,r){n.find(".rs-pendulum").each(function(){var n=e(this);if(n.data("timeline")==t){n.data("timeline",new punchgs.TimelineLite);var i=n.data("startdeg")==t?-20:n.data("startdeg"),s=n.data("enddeg")==t?20:n.data("enddeg"),o=n.data("speed")==t?2:n.data("speed"),u=n.data("origin")==t?"50% 50%":n.data("origin"),a=n.data("easing")==t?punchgs.Power2.easeInOut:n.data("ease");i=i*r;s=s*r;n.data("timeline").append(new punchgs.TweenLite.fromTo(n,o,{force3D:"auto",rotation:i,transformOrigin:u},{rotation:s,ease:a}));n.data("timeline").append(new punchgs.TweenLite.fromTo(n,o,{force3D:"auto",rotation:s,transformOrigin:u},{rotation:i,ease:a,onComplete:function(){n.data("timeline").restart()}}))}});n.find(".rs-rotate").each(function(){var n=e(this);if(n.data("timeline")==t){n.data("timeline",new punchgs.TimelineLite);var i=n.data("startdeg")==t?0:n.data("startdeg"),s=n.data("enddeg")==t?360:n.data("enddeg");speed=n.data("speed")==t?2:n.data("speed"),origin=n.data("origin")==t?"50% 50%":n.data("origin"),easing=n.data("easing")==t?punchgs.Power2.easeInOut:n.data("easing");i=i*r;s=s*r;n.data("timeline").append(new punchgs.TweenLite.fromTo(n,speed,{force3D:"auto",rotation:i,transformOrigin:origin},{rotation:s,ease:easing,onComplete:function(){n.data("timeline").restart()}}))}});n.find(".rs-slideloop").each(function(){var n=e(this);if(n.data("timeline")==t){n.data("timeline",new punchgs.TimelineLite);var i=n.data("xs")==t?0:n.data("xs"),s=n.data("ys")==t?0:n.data("ys"),o=n.data("xe")==t?0:n.data("xe"),u=n.data("ye")==t?0:n.data("ye"),a=n.data("speed")==t?2:n.data("speed"),f=n.data("easing")==t?punchgs.Power2.easeInOut:n.data("easing");i=i*r;s=s*r;o=o*r;u=u*r;n.data("timeline").append(new punchgs.TweenLite.fromTo(n,a,{force3D:"auto",x:i,y:s},{x:o,y:u,ease:f}));n.data("timeline").append(new punchgs.TweenLite.fromTo(n,a,{force3D:"auto",x:o,y:u},{x:i,y:s,onComplete:function(){n.data("timeline").restart()}}))}});n.find(".rs-pulse").each(function(){var n=e(this);if(n.data("timeline")==t){n.data("timeline",new punchgs.TimelineLite);var r=n.data("zoomstart")==t?0:n.data("zoomstart"),i=n.data("zoomend")==t?0:n.data("zoomend"),s=n.data("speed")==t?2:n.data("speed"),o=n.data("easing")==t?punchgs.Power2.easeInOut:n.data("easing");n.data("timeline").append(new punchgs.TweenLite.fromTo(n,s,{force3D:"auto",scale:r},{scale:i,ease:o}));n.data("timeline").append(new punchgs.TweenLite.fromTo(n,s,{force3D:"auto",scale:i},{scale:r,onComplete:function(){n.data("timeline").restart()}}))}});n.find(".rs-wave").each(function(){var n=e(this);if(n.data("timeline")==t){n.data("timeline",new punchgs.TimelineLite);var i=n.data("angle")==t?10:n.data("angle"),s=n.data("radius")==t?10:n.data("radius"),o=n.data("speed")==t?-20:n.data("speed"),u=n.data("origin")==t?-20:n.data("origin");i=i*r;s=s*r;var a={a:0,ang:i,element:n,unit:s};n.data("timeline").append(new punchgs.TweenLite.fromTo(a,o,{a:360},{a:0,force3D:"auto",ease:punchgs.Linear.easeNone,onUpdate:function(){var e=a.a*(Math.PI/180);punchgs.TweenLite.to(a.element,.1,{force3D:"auto",x:Math.cos(e)*a.unit,y:a.unit*(1-Math.sin(e))})},onComplete:function(){n.data("timeline").restart()}}))}})};var U=function(n){n.find(".rs-pendulum, .rs-slideloop, .rs-pulse, .rs-wave").each(function(){var n=e(this);if(n.data("timeline")!=t){n.data("timeline").pause();n.data("timeline",null)}})};var z=function(n,r){var i=0;var s=n.find(".tp-caption"),o=r.container.find(".tp-static-layers").find(".tp-caption");e.each(o,function(e,t){s.push(t)});s.each(function(n){var s=-1;var o=e(this);if(o.hasClass("tp-static-layer")){if(o.data("startslide")==-1||o.data("startslide")=="-1")o.data("startslide",0);if(o.data("endslide")==-1||o.data("endslide")=="-1")o.data("endslide",r.slideamount);if(o.hasClass("tp-is-shown")){if(o.data("startslide")>r.next||o.data("endslide")0){punchgs.TweenLite.to(o.find("iframe"),.2,{autoAlpha:0});if(J())o.find("iframe").remove();try{var u=o.find("iframe");var a=u.attr("id");var f=$f(a);f.api("pause");clearTimeout(o.data("timerplay"))}catch(l){}try{var c=o.data("player");c.stopVideo();clearTimeout(o.data("timerplay"))}catch(l){}}if(o.find("video").length>0){try{o.find("video").each(function(t){var n=e(this).parent();var r=n.attr("id");clearTimeout(n.data("timerplay"));var i=this;i.pause()})}catch(l){}}try{var h=o.data("timeline");var p=h.getLabelTime("frame99");var d=h.time();if(p>d){var v=h.getTweensOf(o);e.each(v,function(e,t){if(e!=0)t.pause()});if(o.css("opacity")!=0){var m=o.data("endspeed")==t?o.data("speed"):o.data("endspeed");if(m>i)i=m;h.play("frame99")}else h.progress(1,false)}}catch(l){}}});return i};var W=function(e,n,r,i,s){var o=e.data("timeline");var u=new punchgs.TimelineLite;var a=e;if(r.typ=="chars")a=e.data("mySplitText").chars;else if(r.typ=="words")a=e.data("mySplitText").words;else if(r.typ=="lines")a=e.data("mySplitText").lines;r.animation.ease=r.ease;if(r.animation.rotationZ!=t)r.animation.rotation=r.animation.rotationZ;r.animation.data=new Object;r.animation.data.oldx=r.animation.x;r.animation.data.oldy=r.animation.y;r.animation.x=r.animation.x*s;r.animation.y=r.animation.y*s;o.add(u.staggerTo(a,r.speed,r.animation,r.elementdelay),r.start);o.addLabel(i,r.start);e.data("timeline",o)};var X=function(e,n,r,i,s,o){var u=e.data("timeline"),a=new punchgs.TimelineLite;var f=P(),l=e.data("endspeed")==t?e.data("speed"):e.data("endspeed"),c=e.attr("class");f.ease=e.data("endeasing")==t?punchgs.Power1.easeInOut:e.data("endeasing");l=l/1e3;if(c.match("ltr")||c.match("ltl")||c.match("str")||c.match("stl")||c.match("ltt")||c.match("ltb")||c.match("stt")||c.match("stb")||c.match("skewtoright")||c.match("skewtorightshort")||c.match("skewtoleft")||c.match("skewtoleftshort")||c.match("fadeout")||c.match("randomrotateout")){if(c.match("skewtoright")||c.match("skewtorightshort"))f.skewX=35;else if(c.match("skewtoleft")||c.match("skewtoleftshort"))f.skewX=-35;if(c.match("ltr")||c.match("skewtoright"))f.x=n.width+60;else if(c.match("ltl")||c.match("skewtoleft"))f.x=0-(n.width+60);else if(c.match("ltt"))f.y=0-(n.height+60);else if(c.match("ltb"))f.y=n.height+60;else if(c.match("str")||c.match("skewtorightshort")){f.x=50;f.opacity=0}else if(c.match("stl")||c.match("skewtoleftshort")){f.x=-50;f.opacity=0}else if(c.match("stt")){f.y=-50;f.opacity=0}else if(c.match("stb")){f.y=50;f.opacity=0}else if(c.match("randomrotateout")){f.x=Math.random()*n.width;f.y=Math.random()*n.height;f.scale=Math.random()*2+.3;f.rotation=Math.random()*360-180;f.opacity=0}else if(c.match("fadeout")){f.opacity=0}if(c.match("skewtorightshort"))f.x=270;else if(c.match("skewtoleftshort"))f.x=-270;f.data=new Object;f.data.oldx=f.x;f.data.oldy=f.y;f.x=f.x*o;f.y=f.y*o;f.overwrite="auto";var h=e;var h=e;if(e.data("splitout")=="chars")h=e.data("mySplitText").chars;else if(e.data("splitout")=="words")h=e.data("mySplitText").words;else if(e.data("splitout")=="lines")h=e.data("mySplitText").lines;var p=e.data("endelementdelay")==t?0:e.data("endelementdelay");u.add(a.staggerTo(h,l,f,p),r)}else if(e.hasClass("customout")){f=H(f,e.data("customout"));var h=e;if(e.data("splitout")=="chars")h=e.data("mySplitText").chars;else if(e.data("splitout")=="words")h=e.data("mySplitText").words;else if(e.data("splitout")=="lines")h=e.data("mySplitText").lines;var p=e.data("endelementdelay")==t?0:e.data("endelementdelay");f.onStart=function(){punchgs.TweenLite.set(e,{transformPerspective:f.transformPerspective,transformOrigin:f.transformOrigin,overwrite:"auto"})};f.data=new Object;f.data.oldx=f.x;f.data.oldy=f.y;f.x=f.x*o;f.y=f.y*o;u.add(a.staggerTo(h,l,f,p),r)}else{i.delay=0;u.add(punchgs.TweenLite.to(e,l,i),r)}u.addLabel(s,r);e.data("timeline",u)};var V=function(t,n){t.children().each(function(){try{e(this).die("click")}catch(t){}try{e(this).die("mouseenter")}catch(t){}try{e(this).die("mouseleave")}catch(t){}try{e(this).unbind("hover")}catch(t){}});try{t.die("click","mouseenter","mouseleave")}catch(r){}clearInterval(n.cdint);t=null};var $=function(n,r){r.cd=0;r.loop=0;if(r.stopAfterLoops!=t&&r.stopAfterLoops>-1)r.looptogo=r.stopAfterLoops;else r.looptogo=9999999;if(r.stopAtSlide!=t&&r.stopAtSlide>-1)r.lastslidetoshow=r.stopAtSlide;else r.lastslidetoshow=999;r.stopLoop="off";if(r.looptogo==0)r.stopLoop="on";if(r.slideamount>1&&!(r.stopAfterLoops==0&&r.stopAtSlide==1)){var i=n.find(".tp-bannertimer");n.on("stoptimer",function(){var t=e(this).find(".tp-bannertimer");t.data("tween").pause();if(r.hideTimerBar=="on")t.css({visibility:"hidden"})});n.on("starttimer",function(){if(r.conthover!=1&&r.videoplaying!=true&&r.width>r.hideSliderAtLimit&&r.bannertimeronpause!=true&&r.overnav!=true)if(r.stopLoop=="on"&&r.next==r.lastslidetoshow-1||r.noloopanymore==1)r.noloopanymore=1;else{i.css({visibility:"visible"});i.data("tween").resume()}if(r.hideTimerBar=="on")i.css({visibility:"hidden"})});n.on("restarttimer",function(){var t=e(this).find(".tp-bannertimer");if(r.stopLoop=="on"&&r.next==r.lastslidetoshow-1||r.noloopanymore==1)r.noloopanymore=1;else{t.css({visibility:"visible"});t.data("tween").kill();t.data("tween",punchgs.TweenLite.fromTo(t,r.delay/1e3,{width:"0%"},{force3D:"auto",width:"100%",ease:punchgs.Linear.easeNone,onComplete:s,delay:1}))}if(r.hideTimerBar=="on")t.css({visibility:"hidden"})});n.on("nulltimer",function(){i.data("tween").pause(0);if(r.hideTimerBar=="on")i.css({visibility:"hidden"})});var s=function(){if(e("body").find(n).length==0){V(n,r);clearInterval(r.cdint)}n.trigger("revolution.slide.slideatend");if(n.data("conthover-changed")==1){r.conthover=n.data("conthover");n.data("conthover-changed",0)}r.act=r.next;r.next=r.next+1;if(r.next>n.find(">ul >li").length-1){r.next=0;r.looptogo=r.looptogo-1;if(r.looptogo<=0){r.stopLoop="on"}}if(r.stopLoop=="on"&&r.next==r.lastslidetoshow-1){n.find(".tp-bannertimer").css({visibility:"hidden"});n.trigger("revolution.slide.onstop");r.noloopanymore=1}else{i.data("tween").restart()}N(n,r)};i.data("tween",punchgs.TweenLite.fromTo(i,r.delay/1e3,{width:"0%"},{force3D:"auto",width:"100%",ease:punchgs.Linear.easeNone,onComplete:s,delay:1}));i.data("opt",r);n.hover(function(){if(r.onHoverStop=="on"&&!J()){n.trigger("stoptimer");n.trigger("revolution.slide.onpause");var i=n.find(">ul >li:eq("+r.next+") .slotholder");i.find(".defaultimg").each(function(){var n=e(this);if(n.data("kenburn")!=t){n.data("kenburn").pause()}})}},function(){if(n.data("conthover")!=1){n.trigger("revolution.slide.onresume");n.trigger("starttimer");var i=n.find(">ul >li:eq("+r.next+") .slotholder");i.find(".defaultimg").each(function(){var n=e(this);if(n.data("kenburn")!=t){n.data("kenburn").play()}})}})}};var J=function(){var e=["android","webos","iphone","ipad","blackberry","Android","webos",,"iPod","iPhone","iPad","Blackberry","BlackBerry"];var t=false;for(var n in e){if(navigator.userAgent.split(e[n]).length>1){t=true}}return t};var K=function(e,t,n){var r=t.data("owidth");var i=t.data("oheight");if(r/i>n.width/n.height){var s=n.container.width()/r;var o=i*s;var u=o/n.container.height()*e;e=e*(100/u);u=100;e=e;return e+"% "+u+"%"+" 1"}else{var s=n.container.width()/r;var o=i*s;var u=o/n.container.height()*e;return e+"% "+u+"%"}};var Q=function(n,r,i,s){try{var o=n.find(">ul:first-child >li:eq("+r.act+")")}catch(u){var o=n.find(">ul:first-child >li:eq(1)")}r.lastslide=r.act;var f=n.find(">ul:first-child >li:eq("+r.next+")"),l=f.find(".slotholder"),c=l.data("bgposition"),h=l.data("bgpositionend"),p=l.data("zoomstart")/100,d=l.data("zoomend")/100,v=l.data("rotationstart"),m=l.data("rotationend"),g=l.data("bgfit"),y=l.data("bgfitend"),b=l.data("easeme"),w=l.data("duration")/1e3,E=100;if(g==t)g=100;if(y==t)y=100;var S=g,x=y;g=K(g,l,r);y=K(y,l,r);E=K(100,l,r);if(p==t)p=1;if(d==t)d=1;if(v==t)v=0;if(m==t)m=0;if(p<1)p=1;if(d<1)d=1;var T=new Object;T.w=parseInt(E.split(" ")[0],0),T.h=parseInt(E.split(" ")[1],0);var N=false;if(E.split(" ")[2]=="1"){N=true}l.find(".defaultimg").each(function(){var t=e(this);if(l.find(".kenburnimg").length==0)l.append('
');else{l.find(".kenburnimg img").css({width:T.w+"%",height:T.h+"%"})}var n=l.find(".kenburnimg img");var i=G(r,c,g,n,N),o=G(r,h,y,n,N);if(N){i.w=S/100;o.w=x/100}if(s){punchgs.TweenLite.set(n,{autoAlpha:0,transformPerspective:1200,transformOrigin:"0% 0%",top:0,left:0,scale:i.w,x:i.x,y:i.y});var u=i.w,f=u*n.width()-r.width,p=u*n.height()-r.height,d=Math.abs(i.x/f*100),v=Math.abs(i.y/p*100);if(p==0)v=0;if(f==0)d=0;t.data("bgposition",d+"% "+v+"%");if(!a(8))t.data("currotate",Y(n));if(!a(8))t.data("curscale",T.w*u+"% "+(T.h*u+"%"));l.find(".kenburnimg").remove()}else t.data("kenburn",punchgs.TweenLite.fromTo(n,w,{autoAlpha:1,force3D:punchgs.force3d,transformOrigin:"0% 0%",top:0,left:0,scale:i.w,x:i.x,y:i.y},{autoAlpha:1,rotationZ:m,ease:b,x:o.x,y:o.y,scale:o.w,onUpdate:function(){var e=n[0]._gsTransform.scaleX;var i=e*n.width()-r.width,s=e*n.height()-r.height,o=Math.abs(n[0]._gsTransform.x/i*100),u=Math.abs(n[0]._gsTransform.y/s*100);if(s==0)u=0;if(i==0)o=0;t.data("bgposition",o+"% "+u+"%");if(!a(8))t.data("currotate",Y(n));if(!a(8))t.data("curscale",T.w*e+"% "+(T.h*e+"%"))}}))})};var G=function(e,t,n,r,i){var s=new Object;if(!i)s.w=parseInt(n.split(" ")[0],0)/100;else s.w=parseInt(n.split(" ")[1],0)/100;switch(t){case"left top":case"top left":s.x=0;s.y=0;break;case"center top":case"top center":s.x=((0-r.width())*s.w+parseInt(e.width,0))/2;s.y=0;break;case"top right":case"right top":s.x=(0-r.width())*s.w+parseInt(e.width,0);s.y=0;break;case"center left":case"left center":s.x=0;s.y=((0-r.height())*s.w+parseInt(e.height,0))/2;break;case"center center":s.x=((0-r.width())*s.w+parseInt(e.width,0))/2;s.y=((0-r.height())*s.w+parseInt(e.height,0))/2;break;case"center right":case"right center":s.x=(0-r.width())*s.w+parseInt(e.width,0);s.y=((0-r.height())*s.w+parseInt(e.height,0))/2;break;case"bottom left":case"left bottom":s.x=0;s.y=(0-r.height())*s.w+parseInt(e.height,0);break;case"bottom center":case"center bottom":s.x=((0-r.width())*s.w+parseInt(e.width,0))/2;s.y=(0-r.height())*s.w+parseInt(e.height,0);break;case"bottom right":case"right bottom":s.x=(0-r.width())*s.w+parseInt(e.width,0);s.y=(0-r.height())*s.w+parseInt(e.height,0);break}return s};var Y=function(e){var t=e.css("-webkit-transform")||e.css("-moz-transform")||e.css("-ms-transform")||e.css("-o-transform")||e.css("transform");if(t!=="none"){var n=t.split("(")[1].split(")")[0].split(",");var r=n[0];var i=n[1];var s=Math.round(Math.atan2(i,r)*(180/Math.PI))}else{var s=0}return s<0?s+=360:s};var Z=function(n,r){try{var i=n.find(">ul:first-child >li:eq("+r.act+")")}catch(s){var i=n.find(">ul:first-child >li:eq(1)")}r.lastslide=r.act;var o=n.find(">ul:first-child >li:eq("+r.next+")");var u=i.find(".slotholder");var a=o.find(".slotholder");n.find(".defaultimg").each(function(){var n=e(this);punchgs.TweenLite.killTweensOf(n,false);punchgs.TweenLite.set(n,{scale:1,rotationZ:0});punchgs.TweenLite.killTweensOf(n.data("kenburn img"),false);if(n.data("kenburn")!=t){n.data("kenburn").pause()}if(n.data("currotate")!=t&&n.data("bgposition")!=t&&n.data("curscale")!=t)punchgs.TweenLite.set(n,{rotation:n.data("currotate"),backgroundPosition:n.data("bgposition"),backgroundSize:n.data("curscale")});if(n!=t&&n.data("kenburn img")!=t&&n.data("kenburn img").length>0)punchgs.TweenLite.set(n.data("kenburn img"),{autoAlpha:0})})};var et=function(t,n){if(J()&&n.parallaxDisableOnMobile=="on")return false;t.find(">ul:first-child >li").each(function(){var t=e(this);for(var r=1;r<=10;r++)t.find(".rs-parallaxlevel-"+r).each(function(){var t=e(this);t.wrap('
')})});if(n.parallax=="mouse"||n.parallax=="scroll+mouse"||n.parallax=="mouse+scroll"){t.mouseenter(function(e){var n=t.find(".current-sr-slide-visible");var r=t.offset().top,i=t.offset().left,s=e.pageX-i,o=e.pageY-r;n.data("enterx",s);n.data("entery",o)});t.on("mousemove.hoverdir, mouseleave.hoverdir",function(r){var i=t.find(".current-sr-slide-visible");switch(r.type){case"mousemove":var s=t.offset().top,o=t.offset().left,u=i.data("enterx"),a=i.data("entery"),f=u-(r.pageX-o),l=a-(r.pageY-s);i.find(".tp-parallax-container").each(function(){var t=e(this),r=parseInt(t.data("parallaxlevel"),0)/100,i=f*r,s=l*r;if(n.parallax=="scroll+mouse"||n.parallax=="mouse+scroll")punchgs.TweenLite.to(t,.4,{force3D:"auto",x:i,ease:punchgs.Power3.easeOut,overwrite:"all"});else punchgs.TweenLite.to(t,.4,{force3D:"auto",x:i,y:s,ease:punchgs.Power3.easeOut,overwrite:"all"})});break;case"mouseleave":i.find(".tp-parallax-container").each(function(){var t=e(this);if(n.parallax=="scroll+mouse"||n.parallax=="mouse+scroll")punchgs.TweenLite.to(t,1.5,{force3D:"auto",x:0,ease:punchgs.Power3.easeOut});else punchgs.TweenLite.to(t,1.5,{force3D:"auto",x:0,y:0,ease:punchgs.Power3.easeOut})});break}});if(J())window.ondeviceorientation=function(n){var r=Math.round(n.beta||0),i=Math.round(n.gamma||0);var s=t.find(".current-sr-slide-visible");if(e(window).width()>e(window).height()){var o=i;i=r;r=o}var u=360/t.width()*i,a=180/t.height()*r;s.find(".tp-parallax-container").each(function(){var t=e(this),n=parseInt(t.data("parallaxlevel"),0)/100,r=u*n,i=a*n;punchgs.TweenLite.to(t,.2,{force3D:"auto",x:r,y:i,ease:punchgs.Power3.easeOut})})}}if(n.parallax=="scroll"||n.parallax=="scroll+mouse"||n.parallax=="mouse+scroll"){e(window).on("scroll",function(e){tt(t,n)})}};var tt=function(t,n){if(J()&&n.parallaxDisableOnMobile=="on")return false;var r=t.offset().top,i=e(window).scrollTop(),s=r+t.height()/2,o=r+t.height()/2-i,u=e(window).height()/2,a=u-o;if(s
')}var s=i.find(".tp-bullets.tp-thumbs .tp-mask .tp-thumbcontainer");var o=s.parent();o.width(r.thumbWidth*r.thumbAmount);o.height(r.thumbHeight);o.parent().width(r.thumbWidth*r.thumbAmount);o.parent().height(r.thumbHeight);n.find(">ul:first >li").each(function(e){var i=n.find(">ul:first >li:eq("+e+")");var o=i.find(".defaultimg").css("backgroundColor");if(i.data("thumb")!=t)var u=i.data("thumb");else var u=i.find("img:first").attr("src");s.append('
');var a=s.find(".bullet:first")});var u=10;s.find(".bullet").each(function(t){var i=e(this);if(t==r.slideamount-1)i.addClass("last");if(t==0)i.addClass("first");i.width(r.thumbWidth);i.height(r.thumbHeight);if(uul:first >li").length;var l=s.parent().width();r.thumbWidth=u;if(lul:first >li").length,a=u-s+15,f=a/s;t.addClass("over");i=i-30;var l=0-i*f;if(l>0)l=0;if(l<0-u+s)l=0-u+s;it(t,l,200)});s.parent().mousemove(function(){var t=e(this),r=t.offset(),i=e("body").data("mousex")-r.left,s=t.width(),o=t.find(".bullet:first").outerWidth(true),u=o*n.find(">ul:first >li").length-1,a=u-s+15,f=a/s;i=i-3;if(i<6)i=0;if(i+3>s-6)i=s;var l=0-i*f;if(l>0)l=0;if(l<0-u+s)l=0-u+s;it(t,l,0)});s.parent().mouseleave(function(){var t=e(this);t.removeClass("over");rt(n)})}};var rt=function(e){var t=e.parent().find(".tp-bullets.tp-thumbs .tp-mask .tp-thumbcontainer"),n=t.parent(),r=n.offset(),i=n.find(".bullet:first").outerWidth(true),s=n.find(".bullet.selected").index()*i,o=n.width(),i=n.find(".bullet:first").outerWidth(true),u=i*e.find(">ul:first >li").length,a=u-o,f=a/o,l=0-s;if(l>0)l=0;if(l<0-u+o)l=0-u+o;if(!n.hasClass("over")){it(n,l,200)}};var it=function(e,t,n){punchgs.TweenLite.to(e.find(".tp-thumbcontainer"),.2,{force3D:"auto",left:t,ease:punchgs.Power3.easeOut,overwrite:"auto"})}})(jQuery) \ No newline at end of file diff --git a/arches/app/media/plugins/revolution-slider/rs-plugin/js/jquery.themepunch.tools.min.js b/arches/app/media/plugins/revolution-slider/rs-plugin/js/jquery.themepunch.tools.min.js index bb98ea771c0..2b13a235e1a 100644 --- a/arches/app/media/plugins/revolution-slider/rs-plugin/js/jquery.themepunch.tools.min.js +++ b/arches/app/media/plugins/revolution-slider/rs-plugin/js/jquery.themepunch.tools.min.js @@ -1,142 +1,142 @@ - - -/******************************************** - - THEMEPUNCH TOOLS Ver. 1.0 - - Last Update of Tools 17.11.2014 -*********************************************/ - - -/* -* @fileOverview TouchSwipe - jQuery Plugin -* @version 1.6.6 -* -* @author Matt Bryson http://www.github.com/mattbryson -* @see https://github.com/mattbryson/TouchSwipe-Jquery-Plugin -* @see http://labs.skinkers.com/touchSwipe/ -* @see http://plugins.jquery.com/project/touchSwipe -* -* Copyright (c) 2010 Matt Bryson -* Dual licensed under the MIT or GPL Version 2 licenses. -* -*/ -(function(a){if(typeof define==="function"&&define.amd&&define.amd.jQuery){define(["jquery"],a)}else{a(jQuery)}}(function(f){var p="left",o="right",e="up",x="down",c="in",z="out",m="none",s="auto",l="swipe",t="pinch",A="tap",j="doubletap",b="longtap",y="hold",D="horizontal",u="vertical",i="all",r=10,g="start",k="move",h="end",q="cancel",a="ontouchstart" in window,v=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled,d=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,B="TouchSwipe";var n={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:true,triggerOnTouchLeave:false,allowPageScroll:"auto",fallbackToMouseEvents:true,excludedElements:"label, button, input, select, textarea, a, .noSwipe"};f.fn.swipe=function(G){var F=f(this),E=F.data(B);if(E&&typeof G==="string"){if(E[G]){return E[G].apply(this,Array.prototype.slice.call(arguments,1))}else{f.error("Method "+G+" does not exist on jQuery.swipe")}}else{if(!E&&(typeof G==="object"||!G)){return w.apply(this,arguments)}}return F};f.fn.swipe.defaults=n;f.fn.swipe.phases={PHASE_START:g,PHASE_MOVE:k,PHASE_END:h,PHASE_CANCEL:q};f.fn.swipe.directions={LEFT:p,RIGHT:o,UP:e,DOWN:x,IN:c,OUT:z};f.fn.swipe.pageScroll={NONE:m,HORIZONTAL:D,VERTICAL:u,AUTO:s};f.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,ALL:i};function w(E){if(E&&(E.allowPageScroll===undefined&&(E.swipe!==undefined||E.swipeStatus!==undefined))){E.allowPageScroll=m}if(E.click!==undefined&&E.tap===undefined){E.tap=E.click}if(!E){E={}}E=f.extend({},f.fn.swipe.defaults,E);return this.each(function(){var G=f(this);var F=G.data(B);if(!F){F=new C(this,E);G.data(B,F)}})}function C(a4,av){var az=(a||d||!av.fallbackToMouseEvents),J=az?(d?(v?"MSPointerDown":"pointerdown"):"touchstart"):"mousedown",ay=az?(d?(v?"MSPointerMove":"pointermove"):"touchmove"):"mousemove",U=az?(d?(v?"MSPointerUp":"pointerup"):"touchend"):"mouseup",S=az?null:"mouseleave",aD=(d?(v?"MSPointerCancel":"pointercancel"):"touchcancel");var ag=0,aP=null,ab=0,a1=0,aZ=0,G=1,aq=0,aJ=0,M=null;var aR=f(a4);var Z="start";var W=0;var aQ=null;var T=0,a2=0,a5=0,ad=0,N=0;var aW=null,af=null;try{aR.bind(J,aN);aR.bind(aD,a9)}catch(ak){f.error("events not supported "+J+","+aD+" on jQuery.swipe")}this.enable=function(){aR.bind(J,aN);aR.bind(aD,a9);return aR};this.disable=function(){aK();return aR};this.destroy=function(){aK();aR.data(B,null);return aR};this.option=function(bc,bb){if(av[bc]!==undefined){if(bb===undefined){return av[bc]}else{av[bc]=bb}}else{f.error("Option "+bc+" does not exist on jQuery.swipe.options")}return null};function aN(bd){if(aB()){return}if(f(bd.target).closest(av.excludedElements,aR).length>0){return}var be=bd.originalEvent?bd.originalEvent:bd;var bc,bb=a?be.touches[0]:be;Z=g;if(a){W=be.touches.length}else{bd.preventDefault()}ag=0;aP=null;aJ=null;ab=0;a1=0;aZ=0;G=1;aq=0;aQ=aj();M=aa();R();if(!a||(W===av.fingers||av.fingers===i)||aX()){ai(0,bb);T=at();if(W==2){ai(1,be.touches[1]);a1=aZ=au(aQ[0].start,aQ[1].start)}if(av.swipeStatus||av.pinchStatus){bc=O(be,Z)}}else{bc=false}if(bc===false){Z=q;O(be,Z);return bc}else{if(av.hold){af=setTimeout(f.proxy(function(){aR.trigger("hold",[be.target]);if(av.hold){bc=av.hold.call(aR,be,be.target)}},this),av.longTapThreshold)}ao(true)}return null}function a3(be){var bh=be.originalEvent?be.originalEvent:be;if(Z===h||Z===q||am()){return}var bd,bc=a?bh.touches[0]:bh;var bf=aH(bc);a2=at();if(a){W=bh.touches.length}if(av.hold){clearTimeout(af)}Z=k;if(W==2){if(a1==0){ai(1,bh.touches[1]);a1=aZ=au(aQ[0].start,aQ[1].start)}else{aH(bh.touches[1]);aZ=au(aQ[0].end,aQ[1].end);aJ=ar(aQ[0].end,aQ[1].end)}G=a7(a1,aZ);aq=Math.abs(a1-aZ)}if((W===av.fingers||av.fingers===i)||!a||aX()){aP=aL(bf.start,bf.end);al(be,aP);ag=aS(bf.start,bf.end);ab=aM();aI(aP,ag);if(av.swipeStatus||av.pinchStatus){bd=O(bh,Z)}if(!av.triggerOnTouchEnd||av.triggerOnTouchLeave){var bb=true;if(av.triggerOnTouchLeave){var bg=aY(this);bb=E(bf.end,bg)}if(!av.triggerOnTouchEnd&&bb){Z=aC(k)}else{if(av.triggerOnTouchLeave&&!bb){Z=aC(h)}}if(Z==q||Z==h){O(bh,Z)}}}else{Z=q;O(bh,Z)}if(bd===false){Z=q;O(bh,Z)}}function L(bb){var bc=bb.originalEvent;if(a){if(bc.touches.length>0){F();return true}}if(am()){W=ad}a2=at();ab=aM();if(ba()||!an()){Z=q;O(bc,Z)}else{if(av.triggerOnTouchEnd||(av.triggerOnTouchEnd==false&&Z===k)){bb.preventDefault();Z=h;O(bc,Z)}else{if(!av.triggerOnTouchEnd&&a6()){Z=h;aF(bc,Z,A)}else{if(Z===k){Z=q;O(bc,Z)}}}}ao(false);return null}function a9(){W=0;a2=0;T=0;a1=0;aZ=0;G=1;R();ao(false)}function K(bb){var bc=bb.originalEvent;if(av.triggerOnTouchLeave){Z=aC(h);O(bc,Z)}}function aK(){aR.unbind(J,aN);aR.unbind(aD,a9);aR.unbind(ay,a3);aR.unbind(U,L);if(S){aR.unbind(S,K)}ao(false)}function aC(bf){var be=bf;var bd=aA();var bc=an();var bb=ba();if(!bd||bb){be=q}else{if(bc&&bf==k&&(!av.triggerOnTouchEnd||av.triggerOnTouchLeave)){be=h}else{if(!bc&&bf==h&&av.triggerOnTouchLeave){be=q}}}return be}function O(bd,bb){var bc=undefined;if(I()||V()){bc=aF(bd,bb,l)}else{if((P()||aX())&&bc!==false){bc=aF(bd,bb,t)}}if(aG()&&bc!==false){bc=aF(bd,bb,j)}else{if(ap()&&bc!==false){bc=aF(bd,bb,b)}else{if(ah()&&bc!==false){bc=aF(bd,bb,A)}}}if(bb===q){a9(bd)}if(bb===h){if(a){if(bd.touches.length==0){a9(bd)}}else{a9(bd)}}return bc}function aF(be,bb,bd){var bc=undefined;if(bd==l){aR.trigger("swipeStatus",[bb,aP||null,ag||0,ab||0,W,aQ]);if(av.swipeStatus){bc=av.swipeStatus.call(aR,be,bb,aP||null,ag||0,ab||0,W,aQ);if(bc===false){return false}}if(bb==h&&aV()){aR.trigger("swipe",[aP,ag,ab,W,aQ]);if(av.swipe){bc=av.swipe.call(aR,be,aP,ag,ab,W,aQ);if(bc===false){return false}}switch(aP){case p:aR.trigger("swipeLeft",[aP,ag,ab,W,aQ]);if(av.swipeLeft){bc=av.swipeLeft.call(aR,be,aP,ag,ab,W,aQ)}break;case o:aR.trigger("swipeRight",[aP,ag,ab,W,aQ]);if(av.swipeRight){bc=av.swipeRight.call(aR,be,aP,ag,ab,W,aQ)}break;case e:aR.trigger("swipeUp",[aP,ag,ab,W,aQ]);if(av.swipeUp){bc=av.swipeUp.call(aR,be,aP,ag,ab,W,aQ)}break;case x:aR.trigger("swipeDown",[aP,ag,ab,W,aQ]);if(av.swipeDown){bc=av.swipeDown.call(aR,be,aP,ag,ab,W,aQ)}break}}}if(bd==t){aR.trigger("pinchStatus",[bb,aJ||null,aq||0,ab||0,W,G,aQ]);if(av.pinchStatus){bc=av.pinchStatus.call(aR,be,bb,aJ||null,aq||0,ab||0,W,G,aQ);if(bc===false){return false}}if(bb==h&&a8()){switch(aJ){case c:aR.trigger("pinchIn",[aJ||null,aq||0,ab||0,W,G,aQ]);if(av.pinchIn){bc=av.pinchIn.call(aR,be,aJ||null,aq||0,ab||0,W,G,aQ)}break;case z:aR.trigger("pinchOut",[aJ||null,aq||0,ab||0,W,G,aQ]);if(av.pinchOut){bc=av.pinchOut.call(aR,be,aJ||null,aq||0,ab||0,W,G,aQ)}break}}}if(bd==A){if(bb===q||bb===h){clearTimeout(aW);clearTimeout(af);if(Y()&&!H()){N=at();aW=setTimeout(f.proxy(function(){N=null;aR.trigger("tap",[be.target]);if(av.tap){bc=av.tap.call(aR,be,be.target)}},this),av.doubleTapThreshold)}else{N=null;aR.trigger("tap",[be.target]);if(av.tap){bc=av.tap.call(aR,be,be.target)}}}}else{if(bd==j){if(bb===q||bb===h){clearTimeout(aW);N=null;aR.trigger("doubletap",[be.target]);if(av.doubleTap){bc=av.doubleTap.call(aR,be,be.target)}}}else{if(bd==b){if(bb===q||bb===h){clearTimeout(aW);N=null;aR.trigger("longtap",[be.target]);if(av.longTap){bc=av.longTap.call(aR,be,be.target)}}}}}return bc}function an(){var bb=true;if(av.threshold!==null){bb=ag>=av.threshold}return bb}function ba(){var bb=false;if(av.cancelThreshold!==null&&aP!==null){bb=(aT(aP)-ag)>=av.cancelThreshold}return bb}function ae(){if(av.pinchThreshold!==null){return aq>=av.pinchThreshold}return true}function aA(){var bb;if(av.maxTimeThreshold){if(ab>=av.maxTimeThreshold){bb=false}else{bb=true}}else{bb=true}return bb}function al(bb,bc){if(av.allowPageScroll===m||aX()){bb.preventDefault()}else{var bd=av.allowPageScroll===s;switch(bc){case p:if((av.swipeLeft&&bd)||(!bd&&av.allowPageScroll!=D)){bb.preventDefault()}break;case o:if((av.swipeRight&&bd)||(!bd&&av.allowPageScroll!=D)){bb.preventDefault()}break;case e:if((av.swipeUp&&bd)||(!bd&&av.allowPageScroll!=u)){bb.preventDefault()}break;case x:if((av.swipeDown&&bd)||(!bd&&av.allowPageScroll!=u)){bb.preventDefault()}break}}}function a8(){var bc=aO();var bb=X();var bd=ae();return bc&&bb&&bd}function aX(){return !!(av.pinchStatus||av.pinchIn||av.pinchOut)}function P(){return !!(a8()&&aX())}function aV(){var be=aA();var bg=an();var bd=aO();var bb=X();var bc=ba();var bf=!bc&&bb&&bd&&bg&&be;return bf}function V(){return !!(av.swipe||av.swipeStatus||av.swipeLeft||av.swipeRight||av.swipeUp||av.swipeDown)}function I(){return !!(aV()&&V())}function aO(){return((W===av.fingers||av.fingers===i)||!a)}function X(){return aQ[0].end.x!==0}function a6(){return !!(av.tap)}function Y(){return !!(av.doubleTap)}function aU(){return !!(av.longTap)}function Q(){if(N==null){return false}var bb=at();return(Y()&&((bb-N)<=av.doubleTapThreshold))}function H(){return Q()}function ax(){return((W===1||!a)&&(isNaN(ag)||agav.longTapThreshold)&&(ag=0)){return p}else{if((bd<=360)&&(bd>=315)){return p}else{if((bd>=135)&&(bd<=225)){return o}else{if((bd>45)&&(bd<135)){return x}else{return e}}}}}function at(){var bb=new Date();return bb.getTime()}function aY(bb){bb=f(bb);var bd=bb.offset();var bc={left:bd.left,right:bd.left+bb.outerWidth(),top:bd.top,bottom:bd.top+bb.outerHeight()};return bc}function E(bb,bc){return(bb.x>bc.left&&bb.xbc.top&&bb.ye;e++)r[s[e]]=r=r[s[e]]||{};return r},h=l("com.greensock"),_=1e-10,u=function(t){var e,i=[],s=t.length;for(e=0;e!==s;i.push(t[e++]));return i},m=function(){},f=function(){var t=Object.prototype.toString,e=t.call([]);return function(i){return null!=i&&(i instanceof Array||"object"==typeof i&&!!i.push&&t.call(i)===e)}}(),c={},p=function(s,r,n,a){this.sc=c[s]?c[s].sc:[],c[s]=this,this.gsClass=null,this.func=n;var o=[];this.check=function(h){for(var _,u,m,f,d=r.length,v=d;--d>-1;)(_=c[r[d]]||new p(r[d],[])).gsClass?(o[d]=_.gsClass,v--):h&&_.sc.push(this);if(0===v&&n)for(u=("com.greensock."+s).split("."),m=u.pop(),f=l(u.join("."))[m]=this.gsClass=n.apply(n,o),a&&(i[m]=f,"function"==typeof define&&define.amd?define((t.GreenSockAMDPath?t.GreenSockAMDPath+"/":"")+s.split(".").pop(),[],function(){return f}):s===e&&"undefined"!=typeof module&&module.exports&&(module.exports=f)),d=0;this.sc.length>d;d++)this.sc[d].check()},this.check(!0)},d=t._gsDefine=function(t,e,i,s){return new p(t,e,i,s)},v=h._class=function(t,e,i){return e=e||function(){},d(t,[],function(){return e},i),e};d.globals=i;var g=[0,0,1,1],T=[],y=v("easing.Ease",function(t,e,i,s){this._func=t,this._type=i||0,this._power=s||0,this._params=e?g.concat(e):g},!0),w=y.map={},P=y.register=function(t,e,i,s){for(var r,n,a,o,l=e.split(","),_=l.length,u=(i||"easeIn,easeOut,easeInOut").split(",");--_>-1;)for(n=l[_],r=s?v("easing."+n,null,!0):h.easing[n]||{},a=u.length;--a>-1;)o=u[a],w[n+"."+o]=w[o+n]=r[o]=t.getRatio?t:t[o]||new t};for(n=y.prototype,n._calcEnd=!1,n.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,s=1===e?1-t:2===e?t:.5>t?2*t:2*(1-t);return 1===i?s*=s:2===i?s*=s*s:3===i?s*=s*s*s:4===i&&(s*=s*s*s*s),1===e?1-s:2===e?s:.5>t?s/2:1-s/2},s=["Linear","Quad","Cubic","Quart","Quint,Strong"],r=s.length;--r>-1;)n=s[r]+",Power"+r,P(new y(null,null,1,r),n,"easeOut",!0),P(new y(null,null,2,r),n,"easeIn"+(0===r?",easeNone":"")),P(new y(null,null,3,r),n,"easeInOut");w.linear=h.easing.Linear.easeIn,w.swing=h.easing.Quad.easeInOut;var b=v("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});n=b.prototype,n.addEventListener=function(t,e,i,s,r){r=r||0;var n,l,h=this._listeners[t],_=0;for(null==h&&(this._listeners[t]=h=[]),l=h.length;--l>-1;)n=h[l],n.c===e&&n.s===i?h.splice(l,1):0===_&&r>n.pr&&(_=l+1);h.splice(_,0,{c:e,s:i,up:s,pr:r}),this!==a||o||a.wake()},n.removeEventListener=function(t,e){var i,s=this._listeners[t];if(s)for(i=s.length;--i>-1;)if(s[i].c===e)return s.splice(i,1),void 0},n.dispatchEvent=function(t){var e,i,s,r=this._listeners[t];if(r)for(e=r.length,i=this._eventTarget;--e>-1;)s=r[e],s&&(s.up?s.c.call(s.s||i,{type:t,target:i}):s.c.call(s.s||i))};var k=t.requestAnimationFrame,A=t.cancelAnimationFrame,S=Date.now||function(){return(new Date).getTime()},x=S();for(s=["ms","moz","webkit","o"],r=s.length;--r>-1&&!k;)k=t[s[r]+"RequestAnimationFrame"],A=t[s[r]+"CancelAnimationFrame"]||t[s[r]+"CancelRequestAnimationFrame"];v("Ticker",function(t,e){var i,s,r,n,l,h=this,u=S(),f=e!==!1&&k,c=500,p=33,d=function(t){var e,a,o=S()-x;o>c&&(u+=o-p),x+=o,h.time=(x-u)/1e3,e=h.time-l,(!i||e>0||t===!0)&&(h.frame++,l+=e+(e>=n?.004:n-e),a=!0),t!==!0&&(r=s(d)),a&&h.dispatchEvent("tick")};b.call(h),h.time=h.frame=0,h.tick=function(){d(!0)},h.lagSmoothing=function(t,e){c=t||1/_,p=Math.min(e,c,0)},h.sleep=function(){null!=r&&(f&&A?A(r):clearTimeout(r),s=m,r=null,h===a&&(o=!1))},h.wake=function(){null!==r?h.sleep():h.frame>10&&(x=S()-c+5),s=0===i?m:f&&k?k:function(t){return setTimeout(t,0|1e3*(l-h.time)+1)},h===a&&(o=!0),d(2)},h.fps=function(t){return arguments.length?(i=t,n=1/(i||60),l=this.time+n,h.wake(),void 0):i},h.useRAF=function(t){return arguments.length?(h.sleep(),f=t,h.fps(i),void 0):f},h.fps(t),setTimeout(function(){f&&(!r||5>h.frame)&&h.useRAF(!1)},1500)}),n=h.Ticker.prototype=new h.events.EventDispatcher,n.constructor=h.Ticker;var R=v("core.Animation",function(t,e){if(this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=e.immediateRender===!0,this.data=e.data,this._reversed=e.reversed===!0,B){o||a.wake();var i=this.vars.useFrames?q:B;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});a=R.ticker=new h.Ticker,n=R.prototype,n._dirty=n._gc=n._initted=n._paused=!1,n._totalTime=n._time=0,n._rawPrevTime=-1,n._next=n._last=n._onUpdate=n._timeline=n.timeline=null,n._paused=!1;var C=function(){o&&S()-x>2e3&&a.wake(),setTimeout(C,2e3)};C(),n.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},n.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},n.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},n.seek=function(t,e){return this.totalTime(Number(t),e!==!1)},n.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,e!==!1,!0)},n.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},n.render=function(){},n.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},n.isActive=function(){var t,e=this._timeline,i=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime())>=i&&i+this.totalDuration()/this._timeScale>t},n._enabled=function(t,e){return o||a.wake(),this._gc=!t,this._active=this.isActive(),e!==!0&&(t&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},n._kill=function(){return this._enabled(!1,!1)},n.kill=function(t,e){return this._kill(t,e),this},n._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},n._swapSelfInParams=function(t){for(var e=t.length,i=t.concat();--e>-1;)"{self}"===t[e]&&(i[e]=this);return i},n.eventCallback=function(t,e,i,s){if("on"===(t||"").substr(0,2)){var r=this.vars;if(1===arguments.length)return r[t];null==e?delete r[t]:(r[t]=e,r[t+"Params"]=f(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,r[t+"Scope"]=s),"onUpdate"===t&&(this._onUpdate=e)}return this},n.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},n.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._timethis._duration?this._duration:t,e)):this._time},n.totalTime=function(t,e,i){if(o||a.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>t&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var s=this._totalDuration,r=this._timeline;if(t>s&&!i&&(t=s),this._startTime=(this._paused?this._pauseTime:r._time)-(this._reversed?s-t:t)/this._timeScale,r._dirty||this._uncache(!1),r._timeline)for(;r._timeline;)r._timeline._time!==(r._startTime+r._totalTime)/r._timeScale&&r.totalTime(r._totalTime,!0),r=r._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==t||0===this._duration)&&(this.render(t,e,!1),z.length&&M())}return this},n.progress=n.totalProgress=function(t,e){return arguments.length?this.totalTime(this.duration()*t,e):this._time/this.duration()},n.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay)),this):this._startTime},n.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},n.timeScale=function(t){if(!arguments.length)return this._timeScale;if(t=t||_,this._timeline&&this._timeline.smoothChildTiming){var e=this._pauseTime,i=e||0===e?e:this._timeline.totalTime();this._startTime=i-(i-this._startTime)*this._timeScale/t}return this._timeScale=t,this._uncache(!1)},n.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},n.paused=function(t){if(!arguments.length)return this._paused;if(t!=this._paused&&this._timeline){o||t||a.wake();var e=this._timeline,i=e.rawTime(),s=i-this._pauseTime;!t&&e.smoothChildTiming&&(this._startTime+=s,this._uncache(!1)),this._pauseTime=t?i:null,this._paused=t,this._active=this.isActive(),!t&&0!==s&&this._initted&&this.duration()&&this.render(e.smoothChildTiming?this._totalTime:(i-this._startTime)/this._timeScale,!0,!0)}return this._gc&&!t&&this._enabled(!0,!1),this};var D=v("core.SimpleTimeline",function(t){R.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});n=D.prototype=new R,n.constructor=D,n.kill()._gc=!1,n._first=n._last=n._recent=null,n._sortChildren=!1,n.add=n.insert=function(t,e){var i,s;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=t._startTime+(this.rawTime()-t._startTime)/t._timeScale),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),i=this._last,this._sortChildren)for(s=t._startTime;i&&i._startTime>s;)i=i._prev;return i?(t._next=i._next,i._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=i,this._recent=t,this._timeline&&this._uncache(!0),this},n._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},n.render=function(t,e,i){var s,r=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;r;)s=r._next,(r._active||t>=r._startTime&&!r._paused)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=s},n.rawTime=function(){return o||a.wake(),this._totalTime};var I=v("TweenLite",function(e,i,s){if(R.call(this,i,s),this.render=I.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:I.selector(e)||e;var r,n,a,o=e.jquery||e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType),l=this.vars.overwrite;if(this._overwrite=l=null==l?Q[I.defaultOverwrite]:"number"==typeof l?l>>0:Q[l],(o||e instanceof Array||e.push&&f(e))&&"number"!=typeof e[0])for(this._targets=a=u(e),this._propLookup=[],this._siblings=[],r=0;a.length>r;r++)n=a[r],n?"string"!=typeof n?n.length&&n!==t&&n[0]&&(n[0]===t||n[0].nodeType&&n[0].style&&!n.nodeType)?(a.splice(r--,1),this._targets=a=a.concat(u(n))):(this._siblings[r]=$(n,this,!1),1===l&&this._siblings[r].length>1&&H(n,this,null,1,this._siblings[r])):(n=a[r--]=I.selector(n),"string"==typeof n&&a.splice(r+1,1)):a.splice(r--,1);else this._propLookup={},this._siblings=$(e,this,!1),1===l&&this._siblings.length>1&&H(e,this,null,1,this._siblings);(this.vars.immediateRender||0===i&&0===this._delay&&this.vars.immediateRender!==!1)&&(this._time=-_,this.render(-this._delay))},!0),E=function(e){return e&&e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType)},O=function(t,e){var i,s={};for(i in t)G[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!U[i]||U[i]&&U[i]._autoCSS)||(s[i]=t[i],delete t[i]);t.css=s};n=I.prototype=new R,n.constructor=I,n.kill()._gc=!1,n.ratio=0,n._firstPT=n._targets=n._overwrittenProps=n._startAt=null,n._notifyPluginsOfEnabled=n._lazy=!1,I.version="1.14.2",I.defaultEase=n._ease=new y(null,null,1,1),I.defaultOverwrite="auto",I.ticker=a,I.autoSleep=!0,I.lagSmoothing=function(t,e){a.lagSmoothing(t,e)},I.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(I.selector=i,i(e)):"undefined"==typeof document?e:document.querySelectorAll?document.querySelectorAll(e):document.getElementById("#"===e.charAt(0)?e.substr(1):e)};var z=[],L={},N=I._internals={isArray:f,isSelector:E,lazyTweens:z},U=I._plugins={},F=N.tweenLookup={},j=0,G=N.reservedProps={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,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1},Q={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},q=R._rootFramesTimeline=new D,B=R._rootTimeline=new D,M=N.lazyRender=function(){var t,e=z.length;for(L={};--e>-1;)t=z[e],t&&t._lazy!==!1&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);z.length=0};B._startTime=a.time,q._startTime=a.frame,B._active=q._active=!0,setTimeout(M,1),R._updateRoot=I.render=function(){var t,e,i;if(z.length&&M(),B.render((a.time-B._startTime)*B._timeScale,!1,!1),q.render((a.frame-q._startTime)*q._timeScale,!1,!1),z.length&&M(),!(a.frame%120)){for(i in F){for(e=F[i].tweens,t=e.length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete F[i]}if(i=B._first,(!i||i._paused)&&I.autoSleep&&!q._first&&1===a._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||a.sleep()}}},a.addEventListener("tick",R._updateRoot);var $=function(t,e,i){var s,r,n=t._gsTweenID;if(F[n||(t._gsTweenID=n="t"+j++)]||(F[n]={target:t,tweens:[]}),e&&(s=F[n].tweens,s[r=s.length]=e,i))for(;--r>-1;)s[r]===e&&s.splice(r,1);return F[n].tweens},K=function(t,e,i,s){var r,n,a=t.vars.onOverwrite;return a&&(r=a(t,e,i,s)),a=I.onOverwrite,a&&(n=a(t,e,i,s)),r!==!1&&n!==!1},H=function(t,e,i,s,r){var n,a,o,l;if(1===s||s>=4){for(l=r.length,n=0;l>n;n++)if((o=r[n])!==e)o._gc||K(o,e)&&o._enabled(!1,!1)&&(a=!0);else if(5===s)break;return a}var h,u=e._startTime+_,m=[],f=0,c=0===e._duration;for(n=r.length;--n>-1;)(o=r[n])===e||o._gc||o._paused||(o._timeline!==e._timeline?(h=h||J(e,0,c),0===J(o,h,c)&&(m[f++]=o)):u>=o._startTime&&o._startTime+o.totalDuration()/o._timeScale>u&&((c||!o._initted)&&2e-10>=u-o._startTime||(m[f++]=o)));for(n=f;--n>-1;)if(o=m[n],2===s&&o._kill(i,t,e)&&(a=!0),2!==s||!o._firstPT&&o._initted){if(2!==s&&!K(o,e))continue;o._enabled(!1,!1)&&(a=!0)}return a},J=function(t,e,i){for(var s=t._timeline,r=s._timeScale,n=t._startTime;s._timeline;){if(n+=s._startTime,r*=s._timeScale,s._paused)return-100;s=s._timeline}return n/=r,n>e?n-e:i&&n===e||!t._initted&&2*_>n-e?_:(n+=t.totalDuration()/t._timeScale/r)>e+_?0:n-e-_};n._init=function(){var t,e,i,s,r,n=this.vars,a=this._overwrittenProps,o=this._duration,l=!!n.immediateRender,h=n.ease;if(n.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),r={};for(s in n.startAt)r[s]=n.startAt[s];if(r.overwrite=!1,r.immediateRender=!0,r.lazy=l&&n.lazy!==!1,r.startAt=r.delay=null,this._startAt=I.to(this.target,0,r),l)if(this._time>0)this._startAt=null;else if(0!==o)return}else if(n.runBackwards&&0!==o)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{0!==this._time&&(l=!1),i={};for(s in n)G[s]&&"autoCSS"!==s||(i[s]=n[s]);if(i.overwrite=0,i.data="isFromStart",i.lazy=l&&n.lazy!==!1,i.immediateRender=l,this._startAt=I.to(this.target,0,i),l){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=h=h?h instanceof y?h:"function"==typeof h?new y(h,n.easeParams):w[h]||I.defaultEase:I.defaultEase,n.easeParams instanceof Array&&h.config&&(this._ease=h.config.apply(h,n.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(t=this._targets.length;--t>-1;)this._initProps(this._targets[t],this._propLookup[t]={},this._siblings[t],a?a[t]:null)&&(e=!0);else e=this._initProps(this.target,this._propLookup,this._siblings,a);if(e&&I._onPluginEvent("_onInitAllProps",this),a&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),n.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=n.onUpdate,this._initted=!0},n._initProps=function(e,i,s,r){var n,a,o,l,h,_;if(null==e)return!1;L[e._gsTweenID]&&M(),this.vars.css||e.style&&e!==t&&e.nodeType&&U.css&&this.vars.autoCSS!==!1&&O(this.vars,e);for(n in this.vars){if(_=this.vars[n],G[n])_&&(_ instanceof Array||_.push&&f(_))&&-1!==_.join("").indexOf("{self}")&&(this.vars[n]=_=this._swapSelfInParams(_,this));else if(U[n]&&(l=new U[n])._onInitTween(e,this.vars[n],this)){for(this._firstPT=h={_next:this._firstPT,t:l,p:"setRatio",s:0,c:1,f:!0,n:n,pg:!0,pr:l._priority},a=l._overwriteProps.length;--a>-1;)i[l._overwriteProps[a]]=this._firstPT;(l._priority||l._onInitAllProps)&&(o=!0),(l._onDisable||l._onEnable)&&(this._notifyPluginsOfEnabled=!0)}else this._firstPT=i[n]=h={_next:this._firstPT,t:e,p:n,f:"function"==typeof e[n],n:n,pg:!1,pr:0},h.s=h.f?e[n.indexOf("set")||"function"!=typeof e["get"+n.substr(3)]?n:"get"+n.substr(3)]():parseFloat(e[n]),h.c="string"==typeof _&&"="===_.charAt(1)?parseInt(_.charAt(0)+"1",10)*Number(_.substr(2)):Number(_)-h.s||0;h&&h._next&&(h._next._prev=h)}return r&&this._kill(r,e)?this._initProps(e,i,s,r):this._overwrite>1&&this._firstPT&&s.length>1&&H(e,this,i,this._overwrite,s)?(this._kill(i,e),this._initProps(e,i,s,r)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(L[e._gsTweenID]=!0),o)},n.render=function(t,e,i){var s,r,n,a,o=this._time,l=this._duration,h=this._rawPrevTime;if(t>=l)this._totalTime=this._time=l,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(s=!0,r="onComplete"),0===l&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(0===t||0>h||h===_)&&h!==t&&(i=!0,h>_&&(r="onReverseComplete")),this._rawPrevTime=a=!e||t||h===t?t:_);else if(1e-7>t)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==o||0===l&&h>0&&h!==_)&&(r="onReverseComplete",s=this._reversed),0>t&&(this._active=!1,0===l&&(this._initted||!this.vars.lazy||i)&&(h>=0&&(i=!0),this._rawPrevTime=a=!e||t||h===t?t:_)),this._initted||(i=!0);else if(this._totalTime=this._time=t,this._easeType){var u=t/l,m=this._easeType,f=this._easePower;(1===m||3===m&&u>=.5)&&(u=1-u),3===m&&(u*=2),1===f?u*=u:2===f?u*=u*u:3===f?u*=u*u*u:4===f&&(u*=u*u*u*u),this.ratio=1===m?1-u:2===m?u:.5>t/l?u/2:1-u/2}else this.ratio=this._ease.getRatio(t/l);if(this._time!==o||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=o,this._rawPrevTime=h,z.push(this),this._lazy=[t,e],void 0;this._time&&!s?this.ratio=this._ease.getRatio(this._time/l):s&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==o&&t>=0&&(this._active=!0),0===o&&(this._startAt&&(t>=0?this._startAt.render(t,e,i):r||(r="_dummyGS")),this.vars.onStart&&(0!==this._time||0===l)&&(e||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||T))),n=this._firstPT;n;)n.f?n.t[n.p](n.c*this.ratio+n.s):n.t[n.p]=n.c*this.ratio+n.s,n=n._next;this._onUpdate&&(0>t&&this._startAt&&t!==-1e-4&&this._startAt.render(t,e,i),e||(this._time!==o||s)&&this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||T)),r&&(!this._gc||i)&&(0>t&&this._startAt&&!this._onUpdate&&t!==-1e-4&&this._startAt.render(t,e,i),s&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[r]&&this.vars[r].apply(this.vars[r+"Scope"]||this,this.vars[r+"Params"]||T),0===l&&this._rawPrevTime===_&&a!==_&&(this._rawPrevTime=0))}},n._kill=function(t,e,i){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:I.selector(e)||e;var s,r,n,a,o,l,h,_,u;if((f(e)||E(e))&&"number"!=typeof e[0])for(s=e.length;--s>-1;)this._kill(t,e[s])&&(l=!0);else{if(this._targets){for(s=this._targets.length;--s>-1;)if(e===this._targets[s]){o=this._propLookup[s]||{},this._overwrittenProps=this._overwrittenProps||[],r=this._overwrittenProps[s]=t?this._overwrittenProps[s]||{}:"all";break}}else{if(e!==this.target)return!1;o=this._propLookup,r=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(o){if(h=t||o,_=t!==r&&"all"!==r&&t!==o&&("object"!=typeof t||!t._tempKill),i&&(I.onOverwrite||this.vars.onOverwrite)){for(n in h)o[n]&&(u||(u=[]),u.push(n));if(!K(this,i,e,u))return!1}for(n in h)(a=o[n])&&(a.pg&&a.t._kill(h)&&(l=!0),a.pg&&0!==a.t._overwriteProps.length||(a._prev?a._prev._next=a._next:a===this._firstPT&&(this._firstPT=a._next),a._next&&(a._next._prev=a._prev),a._next=a._prev=null),delete o[n]),_&&(r[n]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return l},n.invalidate=function(){return this._notifyPluginsOfEnabled&&I._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],R.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-_,this.render(-this._delay)),this},n._enabled=function(t,e){if(o||a.wake(),t&&this._gc){var i,s=this._targets;if(s)for(i=s.length;--i>-1;)this._siblings[i]=$(s[i],this,!0);else this._siblings=$(this.target,this,!0)}return R.prototype._enabled.call(this,t,e),this._notifyPluginsOfEnabled&&this._firstPT?I._onPluginEvent(t?"_onEnable":"_onDisable",this):!1},I.to=function(t,e,i){return new I(t,e,i)},I.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new I(t,e,i)},I.fromTo=function(t,e,i,s){return s.startAt=i,s.immediateRender=0!=s.immediateRender&&0!=i.immediateRender,new I(t,e,s)},I.delayedCall=function(t,e,i,s,r){return new I(e,0,{delay:t,onComplete:e,onCompleteParams:i,onCompleteScope:s,onReverseComplete:e,onReverseCompleteParams:i,onReverseCompleteScope:s,immediateRender:!1,useFrames:r,overwrite:0})},I.set=function(t,e){return new I(t,0,e)},I.getTweensOf=function(t,e){if(null==t)return[];t="string"!=typeof t?t:I.selector(t)||t;var i,s,r,n;if((f(t)||E(t))&&"number"!=typeof t[0]){for(i=t.length,s=[];--i>-1;)s=s.concat(I.getTweensOf(t[i],e));for(i=s.length;--i>-1;)for(n=s[i],r=i;--r>-1;)n===s[r]&&s.splice(i,1)}else for(s=$(t).concat(),i=s.length;--i>-1;)(s[i]._gc||e&&!s[i].isActive())&&s.splice(i,1);return s},I.killTweensOf=I.killDelayedCallsTo=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var s=I.getTweensOf(t,e),r=s.length;--r>-1;)s[r]._kill(i,t)};var V=v("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=V.prototype},!0);if(n=V.prototype,V.version="1.10.1",V.API=2,n._firstPT=null,n._addTween=function(t,e,i,s,r,n){var a,o;return null!=s&&(a="number"==typeof s||"="!==s.charAt(1)?Number(s)-i:parseInt(s.charAt(0)+"1",10)*Number(s.substr(2)))?(this._firstPT=o={_next:this._firstPT,t:t,p:e,s:i,c:a,f:"function"==typeof t[e],n:r||e,r:n},o._next&&(o._next._prev=o),o):void 0},n.setRatio=function(t){for(var e,i=this._firstPT,s=1e-6;i;)e=i.c*t+i.s,i.r?e=Math.round(e):s>e&&e>-s&&(e=0),i.f?i.t[i.p](e):i.t[i.p]=e,i=i._next},n._kill=function(t){var e,i=this._overwriteProps,s=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=i.length;--e>-1;)null!=t[i[e]]&&i.splice(e,1);for(;s;)null!=t[s.n]&&(s._next&&(s._next._prev=s._prev),s._prev?(s._prev._next=s._next,s._prev=null):this._firstPT===s&&(this._firstPT=s._next)),s=s._next;return!1},n._roundProps=function(t,e){for(var i=this._firstPT;i;)(t[this._propName]||null!=i.n&&t[i.n.split(this._propName+"_").join("")])&&(i.r=e),i=i._next},I._onPluginEvent=function(t,e){var i,s,r,n,a,o=e._firstPT;if("_onInitAllProps"===t){for(;o;){for(a=o._next,s=r;s&&s.pr>o.pr;)s=s._next;(o._prev=s?s._prev:n)?o._prev._next=o:r=o,(o._next=s)?s._prev=o:n=o,o=a}o=e._firstPT=r}for(;o;)o.pg&&"function"==typeof o.t[t]&&o.t[t]()&&(i=!0),o=o._next;return i},V.activate=function(t){for(var e=t.length;--e>-1;)t[e].API===V.API&&(U[(new t[e])._propName]=t[e]);return!0},d.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,i=t.propName,s=t.priority||0,r=t.overwriteProps,n={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_roundProps",initAll:"_onInitAllProps"},a=v("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",function(){V.call(this,i,s),this._overwriteProps=r||[]},t.global===!0),o=a.prototype=new V(i);o.constructor=a,a.API=t.API;for(e in n)"function"==typeof t[e]&&(o[n[e]]=t[e]);return a.version=t.version,V.activate([a]),a},s=t._gsQueue){for(r=0;s.length>r;r++)s[r]();for(n in c)c[n].func||t.console.log("GSAP encountered missing dependency: com.greensock."+n)}o=!1}})("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenLite"); - -/*! - * VERSION: 1.14.2 - * DATE: 2014-10-18 - * UPDATES AND DOCS AT: http://www.greensock.com - * - * @license Copyright (c) 2008-2014, GreenSock. All rights reserved. - * This work is subject to the terms at http://www.greensock.com/terms_of_use.html or for - * Club GreenSock members, the software agreement that was issued with your membership. - * - * @author: Jack Doyle, jack@greensock.com - */ -var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(t,e,i){var s=function(t){e.call(this,t),this._labels={},this.autoRemoveChildren=this.vars.autoRemoveChildren===!0,this.smoothChildTiming=this.vars.smoothChildTiming===!0,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var i,s,r=this.vars;for(s in r)i=r[s],o(i)&&-1!==i.join("").indexOf("{self}")&&(r[s]=this._swapSelfInParams(i));o(r.tweens)&&this.add(r.tweens,0,r.align,r.stagger)},r=1e-10,n=i._internals,a=n.isSelector,o=n.isArray,h=n.lazyTweens,l=n.lazyRender,_=[],u=_gsScope._gsDefine.globals,c=function(t){var e,i={};for(e in t)i[e]=t[e];return i},p=function(t,e,i,s){var r=t._timeline._totalTime;(e||!this._forcingPlayhead)&&(t._timeline.pause(t._startTime),e&&e.apply(s||t._timeline,i||_),this._forcingPlayhead&&t._timeline.seek(r))},f=function(t){var e,i=[],s=t.length;for(e=0;e!==s;i.push(t[e++]));return i},m=s.prototype=new e;return s.version="1.14.2",m.constructor=s,m.kill()._gc=m._forcingPlayhead=!1,m.to=function(t,e,s,r){var n=s.repeat&&u.TweenMax||i;return e?this.add(new n(t,e,s),r):this.set(t,s,r)},m.from=function(t,e,s,r){return this.add((s.repeat&&u.TweenMax||i).from(t,e,s),r)},m.fromTo=function(t,e,s,r,n){var a=r.repeat&&u.TweenMax||i;return e?this.add(a.fromTo(t,e,s,r),n):this.set(t,r,n)},m.staggerTo=function(t,e,r,n,o,h,l,_){var u,p=new s({onComplete:h,onCompleteParams:l,onCompleteScope:_,smoothChildTiming:this.smoothChildTiming});for("string"==typeof t&&(t=i.selector(t)||t),t=t||[],a(t)&&(t=f(t)),n=n||0,0>n&&(t=f(t),t.reverse(),n*=-1),u=0;t.length>u;u++)r.startAt&&(r.startAt=c(r.startAt)),p.to(t[u],e,c(r),u*n);return this.add(p,o)},m.staggerFrom=function(t,e,i,s,r,n,a,o){return i.immediateRender=0!=i.immediateRender,i.runBackwards=!0,this.staggerTo(t,e,i,s,r,n,a,o)},m.staggerFromTo=function(t,e,i,s,r,n,a,o,h){return s.startAt=i,s.immediateRender=0!=s.immediateRender&&0!=i.immediateRender,this.staggerTo(t,e,s,r,n,a,o,h)},m.call=function(t,e,s,r){return this.add(i.delayedCall(0,t,e,s),r)},m.set=function(t,e,s){return s=this._parseTimeOrLabel(s,0,!0),null==e.immediateRender&&(e.immediateRender=s===this._time&&!this._paused),this.add(new i(t,0,e),s)},s.exportRoot=function(t,e){t=t||{},null==t.smoothChildTiming&&(t.smoothChildTiming=!0);var r,n,a=new s(t),o=a._timeline;for(null==e&&(e=!0),o._remove(a,!0),a._startTime=0,a._rawPrevTime=a._time=a._totalTime=o._time,r=o._first;r;)n=r._next,e&&r instanceof i&&r.target===r.vars.onComplete||a.add(r,r._startTime-r._delay),r=n;return o.add(a,0),a},m.add=function(r,n,a,h){var l,_,u,c,p,f;if("number"!=typeof n&&(n=this._parseTimeOrLabel(n,0,!0,r)),!(r instanceof t)){if(r instanceof Array||r&&r.push&&o(r)){for(a=a||"normal",h=h||0,l=n,_=r.length,u=0;_>u;u++)o(c=r[u])&&(c=new s({tweens:c})),this.add(c,l),"string"!=typeof c&&"function"!=typeof c&&("sequence"===a?l=c._startTime+c.totalDuration()/c._timeScale:"start"===a&&(c._startTime-=c.delay())),l+=h;return this._uncache(!0)}if("string"==typeof r)return this.addLabel(r,n);if("function"!=typeof r)throw"Cannot add "+r+" into the timeline; it is not a tween, timeline, function, or string.";r=i.delayedCall(0,r)}if(e.prototype.add.call(this,r,n),(this._gc||this._time===this._duration)&&!this._paused&&this._durationr._startTime;p._timeline;)f&&p._timeline.smoothChildTiming?p.totalTime(p._totalTime,!0):p._gc&&p._enabled(!0,!1),p=p._timeline;return this},m.remove=function(e){if(e instanceof t)return this._remove(e,!1);if(e instanceof Array||e&&e.push&&o(e)){for(var i=e.length;--i>-1;)this.remove(e[i]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},m._remove=function(t,i){e.prototype._remove.call(this,t,i);var s=this._last;return s?this._time>s._startTime+s._totalDuration/s._timeScale&&(this._time=this.duration(),this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},m.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},m.insert=m.insertMultiple=function(t,e,i,s){return this.add(t,e||0,i,s)},m.appendMultiple=function(t,e,i,s){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,s)},m.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},m.addPause=function(t,e,i,s){return this.call(p,["{self}",e,i,s],this,t)},m.removeLabel=function(t){return delete this._labels[t],this},m.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},m._parseTimeOrLabel=function(e,i,s,r){var n;if(r instanceof t&&r.timeline===this)this.remove(r);else if(r&&(r instanceof Array||r.push&&o(r)))for(n=r.length;--n>-1;)r[n]instanceof t&&r[n].timeline===this&&this.remove(r[n]);if("string"==typeof i)return this._parseTimeOrLabel(i,s&&"number"==typeof e&&null==this._labels[i]?e-this.duration():0,s);if(i=i||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=this.duration());else{if(n=e.indexOf("="),-1===n)return null==this._labels[e]?s?this._labels[e]=this.duration()+i:i:this._labels[e]+i;i=parseInt(e.charAt(n-1)+"1",10)*Number(e.substr(n+1)),e=n>1?this._parseTimeOrLabel(e.substr(0,n-1),0,s):this.duration()}return Number(e)+i},m.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),e!==!1)},m.stop=function(){return this.paused(!0)},m.gotoAndPlay=function(t,e){return this.play(t,e)},m.gotoAndStop=function(t,e){return this.pause(t,e)},m.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var s,n,a,o,u,c=this._dirty?this.totalDuration():this._totalDuration,p=this._time,f=this._startTime,m=this._timeScale,d=this._paused;if(t>=c?(this._totalTime=this._time=c,this._reversed||this._hasPausedChild()||(n=!0,o="onComplete",0===this._duration&&(0===t||0>this._rawPrevTime||this._rawPrevTime===r)&&this._rawPrevTime!==t&&this._first&&(u=!0,this._rawPrevTime>r&&(o="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,t=c+1e-4):1e-7>t?(this._totalTime=this._time=0,(0!==p||0===this._duration&&this._rawPrevTime!==r&&(this._rawPrevTime>0||0>t&&this._rawPrevTime>=0))&&(o="onReverseComplete",n=this._reversed),0>t?(this._active=!1,this._rawPrevTime>=0&&this._first&&(u=!0),this._rawPrevTime=t):(this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,t=0,this._initted||(u=!0))):this._totalTime=this._time=this._rawPrevTime=t,this._time!==p&&this._first||i||u){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==p&&t>0&&(this._active=!0),0===p&&this.vars.onStart&&0!==this._time&&(e||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||_)),this._time>=p)for(s=this._first;s&&(a=s._next,!this._paused||d);)(s._active||s._startTime<=this._time&&!s._paused&&!s._gc)&&(s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(t-s._startTime)*s._timeScale,e,i):s.render((t-s._startTime)*s._timeScale,e,i)),s=a;else for(s=this._last;s&&(a=s._prev,!this._paused||d);)(s._active||p>=s._startTime&&!s._paused&&!s._gc)&&(s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(t-s._startTime)*s._timeScale,e,i):s.render((t-s._startTime)*s._timeScale,e,i)),s=a;this._onUpdate&&(e||(h.length&&l(),this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||_))),o&&(this._gc||(f===this._startTime||m!==this._timeScale)&&(0===this._time||c>=this.totalDuration())&&(n&&(h.length&&l(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[o]&&this.vars[o].apply(this.vars[o+"Scope"]||this,this.vars[o+"Params"]||_)))}},m._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof s&&t._hasPausedChild())return!0;t=t._next}return!1},m.getChildren=function(t,e,s,r){r=r||-9999999999;for(var n=[],a=this._first,o=0;a;)r>a._startTime||(a instanceof i?e!==!1&&(n[o++]=a):(s!==!1&&(n[o++]=a),t!==!1&&(n=n.concat(a.getChildren(!0,e,s)),o=n.length))),a=a._next;return n},m.getTweensOf=function(t,e){var s,r,n=this._gc,a=[],o=0;for(n&&this._enabled(!0,!0),s=i.getTweensOf(t),r=s.length;--r>-1;)(s[r].timeline===this||e&&this._contains(s[r]))&&(a[o++]=s[r]);return n&&this._enabled(!1,!0),a},m.recent=function(){return this._recent},m._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},m.shiftChildren=function(t,e,i){i=i||0;for(var s,r=this._first,n=this._labels;r;)r._startTime>=i&&(r._startTime+=t),r=r._next;if(e)for(s in n)n[s]>=i&&(n[s]+=t);return this._uncache(!0)},m._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),s=i.length,r=!1;--s>-1;)i[s]._kill(t,e)&&(r=!0);return r},m.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;--i>-1;)e[i]._enabled(!1,!1);return t!==!1&&(this._labels={}),this._uncache(!0)},m.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},m._enabled=function(t,i){if(t===this._gc)for(var s=this._first;s;)s._enabled(t,!0),s=s._next;return e.prototype._enabled.call(this,t,i)},m.totalTime=function(){this._forcingPlayhead=!0;var e=t.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,e},m.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},m.totalDuration=function(t){if(!arguments.length){if(this._dirty){for(var e,i,s=0,r=this._last,n=999999999999;r;)e=r._prev,r._dirty&&r.totalDuration(),r._startTime>n&&this._sortChildren&&!r._paused?this.add(r,r._startTime-r._delay):n=r._startTime,0>r._startTime&&!r._paused&&(s-=r._startTime,this._timeline.smoothChildTiming&&(this._startTime+=r._startTime/this._timeScale),this.shiftChildren(-r._startTime,!1,-9999999999),n=0),i=r._startTime+r._totalDuration/r._timeScale,i>s&&(s=i),r=e;this._duration=this._totalDuration=s,this._dirty=!1}return this._totalDuration}return 0!==this.totalDuration()&&0!==t&&this.timeScale(this._totalDuration/t),this},m.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===t._rootFramesTimeline},m.rawTime=function(){return this._paused?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale},s},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope)[t]};"function"==typeof define&&define.amd?define(["TweenLite"],e):"undefined"!=typeof module&&module.exports&&(require("./TweenLite.js"),module.exports=e())}("TimelineLite"); - -/*! - * VERSION: beta 1.9.4 - * DATE: 2014-07-17 - * UPDATES AND DOCS AT: http://www.greensock.com - * - * @license Copyright (c) 2008-2014, GreenSock. All rights reserved. - * This work is subject to the terms at http://www.greensock.com/terms_of_use.html or for - * Club GreenSock members, the software agreement that was issued with your membership. - * - * @author: Jack Doyle, jack@greensock.com - **/ -var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("easing.Back",["easing.Ease"],function(t){var e,i,s,r=_gsScope.GreenSockGlobals||_gsScope,n=r.com.greensock,a=2*Math.PI,o=Math.PI/2,h=n._class,l=function(e,i){var s=h("easing."+e,function(){},!0),r=s.prototype=new t;return r.constructor=s,r.getRatio=i,s},_=t.register||function(){},u=function(t,e,i,s){var r=h("easing."+t,{easeOut:new e,easeIn:new i,easeInOut:new s},!0);return _(r,t),r},c=function(t,e,i){this.t=t,this.v=e,i&&(this.next=i,i.prev=this,this.c=i.v-e,this.gap=i.t-t)},p=function(e,i){var s=h("easing."+e,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),r=s.prototype=new t;return r.constructor=s,r.getRatio=i,r.config=function(t){return new s(t)},s},f=u("Back",p("BackOut",function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1}),p("BackIn",function(t){return t*t*((this._p1+1)*t-this._p1)}),p("BackInOut",function(t){return 1>(t*=2)?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)})),m=h("easing.SlowMo",function(t,e,i){e=e||0===e?e:.7,null==t?t=.7:t>1&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcEnd=i===!0},!0),d=m.prototype=new t;return d.constructor=m,d.getRatio=function(t){var e=t+(.5-t)*this._p;return this._p1>t?this._calcEnd?1-(t=1-t/this._p1)*t:e-(t=1-t/this._p1)*t*t*t*e:t>this._p3?this._calcEnd?1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:e},m.ease=new m(.7,.7),d.config=m.config=function(t,e,i){return new m(t,e,i)},e=h("easing.SteppedEase",function(t){t=t||1,this._p1=1/t,this._p2=t+1},!0),d=e.prototype=new t,d.constructor=e,d.getRatio=function(t){return 0>t?t=0:t>=1&&(t=.999999999),(this._p2*t>>0)*this._p1},d.config=e.config=function(t){return new e(t)},i=h("easing.RoughEase",function(e){e=e||{};for(var i,s,r,n,a,o,h=e.taper||"none",l=[],_=0,u=0|(e.points||20),p=u,f=e.randomize!==!1,m=e.clamp===!0,d=e.template instanceof t?e.template:null,g="number"==typeof e.strength?.4*e.strength:.4;--p>-1;)i=f?Math.random():1/u*p,s=d?d.getRatio(i):i,"none"===h?r=g:"out"===h?(n=1-i,r=n*n*g):"in"===h?r=i*i*g:.5>i?(n=2*i,r=.5*n*n*g):(n=2*(1-i),r=.5*n*n*g),f?s+=Math.random()*r-.5*r:p%2?s+=.5*r:s-=.5*r,m&&(s>1?s=1:0>s&&(s=0)),l[_++]={x:i,y:s};for(l.sort(function(t,e){return t.x-e.x}),o=new c(1,1,null),p=u;--p>-1;)a=l[p],o=new c(a.x,a.y,o);this._prev=new c(0,0,0!==o.t?o:o.next)},!0),d=i.prototype=new t,d.constructor=i,d.getRatio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&e.t>=t;)e=e.prev;return this._prev=e,e.v+(t-e.t)/e.gap*e.c},d.config=function(t){return new i(t)},i.ease=new i,u("Bounce",l("BounceOut",function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}),l("BounceIn",function(t){return 1/2.75>(t=1-t)?1-7.5625*t*t:2/2.75>t?1-(7.5625*(t-=1.5/2.75)*t+.75):2.5/2.75>t?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}),l("BounceInOut",function(t){var e=.5>t;return t=e?1-2*t:2*t-1,t=1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5})),u("Circ",l("CircOut",function(t){return Math.sqrt(1-(t-=1)*t)}),l("CircIn",function(t){return-(Math.sqrt(1-t*t)-1)}),l("CircInOut",function(t){return 1>(t*=2)?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)})),s=function(e,i,s){var r=h("easing."+e,function(t,e){this._p1=t||1,this._p2=e||s,this._p3=this._p2/a*(Math.asin(1/this._p1)||0)},!0),n=r.prototype=new t;return n.constructor=r,n.getRatio=i,n.config=function(t,e){return new r(t,e)},r},u("Elastic",s("ElasticOut",function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*a/this._p2)+1},.3),s("ElasticIn",function(t){return-(this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*a/this._p2))},.3),s("ElasticInOut",function(t){return 1>(t*=2)?-.5*this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*a/this._p2):.5*this._p1*Math.pow(2,-10*(t-=1))*Math.sin((t-this._p3)*a/this._p2)+1},.45)),u("Expo",l("ExpoOut",function(t){return 1-Math.pow(2,-10*t)}),l("ExpoIn",function(t){return Math.pow(2,10*(t-1))-.001}),l("ExpoInOut",function(t){return 1>(t*=2)?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))})),u("Sine",l("SineOut",function(t){return Math.sin(t*o)}),l("SineIn",function(t){return-Math.cos(t*o)+1}),l("SineInOut",function(t){return-.5*(Math.cos(Math.PI*t)-1)})),h("easing.EaseLookup",{find:function(e){return t.map[e]}},!0),_(r.SlowMo,"SlowMo","ease,"),_(i,"RoughEase","ease,"),_(e,"SteppedEase","ease,"),f},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(); - -/*! - * VERSION: 1.14.2 - * DATE: 2014-10-28 - * UPDATES AND DOCS AT: http://www.greensock.com - * - * @license Copyright (c) 2008-2014, GreenSock. All rights reserved. - * This work is subject to the terms at http://www.greensock.com/terms_of_use.html or for - * Club GreenSock members, the software agreement that was issued with your membership. - * - * @author: Jack Doyle, jack@greensock.com - */ -var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(t,e){var i,r,s,n,a=function(){t.call(this,"css"),this._overwriteProps.length=0,this.setRatio=a.prototype.setRatio},o={},l=a.prototype=new t("css");l.constructor=a,a.version="1.14.2",a.API=2,a.defaultTransformPerspective=0,a.defaultSkewType="compensated",l="px",a.suffixMap={top:l,right:l,bottom:l,left:l,width:l,height:l,fontSize:l,padding:l,margin:l,perspective:l,lineHeight:""};var h,u,f,p,_,c,d=/(?:\d|\-\d|\.\d|\-\.\d)+/g,m=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,g=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,v=/(?![+-]?\d*\.?\d+|e[+-]\d+)[^0-9]/g,y=/(?:\d|\-|\+|=|#|\.)*/g,x=/opacity *= *([^)]*)/i,T=/opacity:([^;]*)/i,w=/alpha\(opacity *=.+?\)/i,b=/^(rgb|hsl)/,P=/([A-Z])/g,S=/-([a-z])/gi,R=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,C=function(t,e){return e.toUpperCase()},k=/(?:Left|Right|Width)/i,O=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,A=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,D=/,(?=[^\)]*(?:\(|$))/gi,M=Math.PI/180,L=180/Math.PI,N={},z=document,X=z.createElement("div"),I=z.createElement("img"),E=a._internals={_specialProps:o},F=navigator.userAgent,Y=function(){var t,e=F.indexOf("Android"),i=z.createElement("div");return f=-1!==F.indexOf("Safari")&&-1===F.indexOf("Chrome")&&(-1===e||Number(F.substr(e+8,1))>3),_=f&&6>Number(F.substr(F.indexOf("Version/")+8,1)),p=-1!==F.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(F)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(F))&&(c=parseFloat(RegExp.$1)),i.innerHTML="a",t=i.getElementsByTagName("a")[0],t?/^0.55/.test(t.style.opacity):!1}(),B=function(t){return x.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1},U=function(t){window.console&&console.log(t)},j="",W="",V=function(t,e){e=e||X;var i,r,s=e.style;if(void 0!==s[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),i=["O","Moz","ms","Ms","Webkit"],r=5;--r>-1&&void 0===s[i[r]+t];);return r>=0?(W=3===r?"ms":i[r],j="-"+W.toLowerCase()+"-",W+t):null},q=z.defaultView?z.defaultView.getComputedStyle:function(){},H=a.getStyle=function(t,e,i,r,s){var n;return Y||"opacity"!==e?(!r&&t.style[e]?n=t.style[e]:(i=i||q(t))?n=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(P,"-$1").toLowerCase()):t.currentStyle&&(n=t.currentStyle[e]),null==s||n&&"none"!==n&&"auto"!==n&&"auto auto"!==n?n:s):B(t)},G=E.convertToPixels=function(t,i,r,s,n){if("px"===s||!s)return r;if("auto"===s||!r)return 0;var o,l,h,u=k.test(i),f=t,p=X.style,_=0>r;if(_&&(r=-r),"%"===s&&-1!==i.indexOf("border"))o=r/100*(u?t.clientWidth:t.clientHeight);else{if(p.cssText="border:0 solid red;position:"+H(t,"position")+";line-height:0;","%"!==s&&f.appendChild)p[u?"borderLeftWidth":"borderTopWidth"]=r+s;else{if(f=t.parentNode||z.body,l=f._gsCache,h=e.ticker.frame,l&&u&&l.time===h)return l.width*r/100;p[u?"width":"height"]=r+s}f.appendChild(X),o=parseFloat(X[u?"offsetWidth":"offsetHeight"]),f.removeChild(X),u&&"%"===s&&a.cacheWidths!==!1&&(l=f._gsCache=f._gsCache||{},l.time=h,l.width=100*(o/r)),0!==o||n||(o=G(t,i,r,s,!0))}return _?-o:o},Q=E.calculateOffset=function(t,e,i){if("absolute"!==H(t,"position",i))return 0;var r="left"===e?"Left":"Top",s=H(t,"margin"+r,i);return t["offset"+r]-(G(t,e,parseFloat(s),s.replace(y,""))||0)},Z=function(t,e){var i,r,s={};if(e=e||q(t,null))if(i=e.length)for(;--i>-1;)s[e[i].replace(S,C)]=e.getPropertyValue(e[i]);else for(i in e)s[i]=e[i];else if(e=t.currentStyle||t.style)for(i in e)"string"==typeof i&&void 0===s[i]&&(s[i.replace(S,C)]=e[i]);return Y||(s.opacity=B(t)),r=Ae(t,e,!1),s.rotation=r.rotation,s.skewX=r.skewX,s.scaleX=r.scaleX,s.scaleY=r.scaleY,s.x=r.x,s.y=r.y,be&&(s.z=r.z,s.rotationX=r.rotationX,s.rotationY=r.rotationY,s.scaleZ=r.scaleZ),s.filters&&delete s.filters,s},$=function(t,e,i,r,s){var n,a,o,l={},h=t.style;for(a in i)"cssText"!==a&&"length"!==a&&isNaN(a)&&(e[a]!==(n=i[a])||s&&s[a])&&-1===a.indexOf("Origin")&&("number"==typeof n||"string"==typeof n)&&(l[a]="auto"!==n||"left"!==a&&"top"!==a?""!==n&&"auto"!==n&&"none"!==n||"string"!=typeof e[a]||""===e[a].replace(v,"")?n:0:Q(t,a),void 0!==h[a]&&(o=new fe(h,a,h[a],o)));if(r)for(a in r)"className"!==a&&(l[a]=r[a]);return{difs:l,firstMPT:o}},K={width:["Left","Right"],height:["Top","Bottom"]},J=["marginLeft","marginRight","marginTop","marginBottom"],te=function(t,e,i){var r=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),s=K[e],n=s.length;for(i=i||q(t,null);--n>-1;)r-=parseFloat(H(t,"padding"+s[n],i,!0))||0,r-=parseFloat(H(t,"border"+s[n]+"Width",i,!0))||0;return r},ee=function(t,e){(null==t||""===t||"auto"===t||"auto auto"===t)&&(t="0 0");var i=t.split(" "),r=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":i[0],s=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":i[1];return null==s?s="0":"center"===s&&(s="50%"),("center"===r||isNaN(parseFloat(r))&&-1===(r+"").indexOf("="))&&(r="50%"),e&&(e.oxp=-1!==r.indexOf("%"),e.oyp=-1!==s.indexOf("%"),e.oxr="="===r.charAt(1),e.oyr="="===s.charAt(1),e.ox=parseFloat(r.replace(v,"")),e.oy=parseFloat(s.replace(v,""))),r+" "+s+(i.length>2?" "+i[2]:"")},ie=function(t,e){return"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)},re=function(t,e){return null==t?e:"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)},se=function(t,e,i,r){var s,n,a,o,l=1e-6;return null==t?o=e:"number"==typeof t?o=t:(s=360,n=t.split("_"),a=Number(n[0].replace(v,""))*(-1===t.indexOf("rad")?1:L)-("="===t.charAt(1)?0:e),n.length&&(r&&(r[i]=e+a),-1!==t.indexOf("short")&&(a%=s,a!==a%(s/2)&&(a=0>a?a+s:a-s)),-1!==t.indexOf("_cw")&&0>a?a=(a+9999999999*s)%s-(0|a/s)*s:-1!==t.indexOf("ccw")&&a>0&&(a=(a-9999999999*s)%s-(0|a/s)*s)),o=e+a),l>o&&o>-l&&(o=0),o},ne={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]},ae=function(t,e,i){return t=0>t?t+1:t>1?t-1:t,0|255*(1>6*t?e+6*(i-e)*t:.5>t?i:2>3*t?e+6*(i-e)*(2/3-t):e)+.5},oe=a.parseColor=function(t){var e,i,r,s,n,a;return t&&""!==t?"number"==typeof t?[t>>16,255&t>>8,255&t]:(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),ne[t]?ne[t]:"#"===t.charAt(0)?(4===t.length&&(e=t.charAt(1),i=t.charAt(2),r=t.charAt(3),t="#"+e+e+i+i+r+r),t=parseInt(t.substr(1),16),[t>>16,255&t>>8,255&t]):"hsl"===t.substr(0,3)?(t=t.match(d),s=Number(t[0])%360/360,n=Number(t[1])/100,a=Number(t[2])/100,i=.5>=a?a*(n+1):a+n-a*n,e=2*a-i,t.length>3&&(t[3]=Number(t[3])),t[0]=ae(s+1/3,e,i),t[1]=ae(s,e,i),t[2]=ae(s-1/3,e,i),t):(t=t.match(d)||ne.transparent,t[0]=Number(t[0]),t[1]=Number(t[1]),t[2]=Number(t[2]),t.length>3&&(t[3]=Number(t[3])),t)):ne.black},le="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#.+?\\b";for(l in ne)le+="|"+l+"\\b";le=RegExp(le+")","gi");var he=function(t,e,i,r){if(null==t)return function(t){return t};var s,n=e?(t.match(le)||[""])[0]:"",a=t.split(n).join("").match(g)||[],o=t.substr(0,t.indexOf(a[0])),l=")"===t.charAt(t.length-1)?")":"",h=-1!==t.indexOf(" ")?" ":",",u=a.length,f=u>0?a[0].replace(d,""):"";return u?s=e?function(t){var e,p,_,c;if("number"==typeof t)t+=f;else if(r&&D.test(t)){for(c=t.replace(D,"|").split("|"),_=0;c.length>_;_++)c[_]=s(c[_]);return c.join(",")}if(e=(t.match(le)||[n])[0],p=t.split(e).join("").match(g)||[],_=p.length,u>_--)for(;u>++_;)p[_]=i?p[0|(_-1)/2]:a[_];return o+p.join(h)+h+e+l+(-1!==t.indexOf("inset")?" inset":"")}:function(t){var e,n,p;if("number"==typeof t)t+=f;else if(r&&D.test(t)){for(n=t.replace(D,"|").split("|"),p=0;n.length>p;p++)n[p]=s(n[p]);return n.join(",")}if(e=t.match(g)||[],p=e.length,u>p--)for(;u>++p;)e[p]=i?e[0|(p-1)/2]:a[p];return o+e.join(h)+l}:function(t){return t}},ue=function(t){return t=t.split(","),function(e,i,r,s,n,a,o){var l,h=(i+"").split(" ");for(o={},l=0;4>l;l++)o[t[l]]=h[l]=h[l]||h[(l-1)/2>>0];return s.parse(e,o,n,a)}},fe=(E._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,i,r,s,n=this.data,a=n.proxy,o=n.firstMPT,l=1e-6;o;)e=a[o.v],o.r?e=Math.round(e):l>e&&e>-l&&(e=0),o.t[o.p]=e,o=o._next;if(n.autoRotate&&(n.autoRotate.rotation=a.rotation),1===t)for(o=n.firstMPT;o;){if(i=o.t,i.type){if(1===i.type){for(s=i.xs0+i.s+i.xs1,r=1;i.l>r;r++)s+=i["xn"+r]+i["xs"+(r+1)];i.e=s}}else i.e=i.s+i.xs0;o=o._next}},function(t,e,i,r,s){this.t=t,this.p=e,this.v=i,this.r=s,r&&(r._prev=this,this._next=r)}),pe=(E._parseToProxy=function(t,e,i,r,s,n){var a,o,l,h,u,f=r,p={},_={},c=i._transform,d=N;for(i._transform=null,N=e,r=u=i.parse(t,e,r,s),N=d,n&&(i._transform=c,f&&(f._prev=null,f._prev&&(f._prev._next=null)));r&&r!==f;){if(1>=r.type&&(o=r.p,_[o]=r.s+r.c,p[o]=r.s,n||(h=new fe(r,"s",o,h,r.r),r.c=0),1===r.type))for(a=r.l;--a>0;)l="xn"+a,o=r.p+"_"+l,_[o]=r.data[l],p[o]=r[l],n||(h=new fe(r,l,o,h,r.rxp[l]));r=r._next}return{proxy:p,end:_,firstMPT:h,pt:u}},E.CSSPropTween=function(t,e,r,s,a,o,l,h,u,f,p){this.t=t,this.p=e,this.s=r,this.c=s,this.n=l||e,t instanceof pe||n.push(this.n),this.r=h,this.type=o||0,u&&(this.pr=u,i=!0),this.b=void 0===f?r:f,this.e=void 0===p?r+s:p,a&&(this._next=a,a._prev=this)}),_e=a.parseComplex=function(t,e,i,r,s,n,a,o,l,u){i=i||n||"",a=new pe(t,e,0,0,a,u?2:1,null,!1,o,i,r),r+="";var f,p,_,c,g,v,y,x,T,w,P,S,R=i.split(", ").join(",").split(" "),C=r.split(", ").join(",").split(" "),k=R.length,O=h!==!1;for((-1!==r.indexOf(",")||-1!==i.indexOf(","))&&(R=R.join(" ").replace(D,", ").split(" "),C=C.join(" ").replace(D,", ").split(" "),k=R.length),k!==C.length&&(R=(n||"").split(" "),k=R.length),a.plugin=l,a.setRatio=u,f=0;k>f;f++)if(c=R[f],g=C[f],x=parseFloat(c),x||0===x)a.appendXtra("",x,ie(g,x),g.replace(m,""),O&&-1!==g.indexOf("px"),!0);else if(s&&("#"===c.charAt(0)||ne[c]||b.test(c)))S=","===g.charAt(g.length-1)?"),":")",c=oe(c),g=oe(g),T=c.length+g.length>6,T&&!Y&&0===g[3]?(a["xs"+a.l]+=a.l?" transparent":"transparent",a.e=a.e.split(C[f]).join("transparent")):(Y||(T=!1),a.appendXtra(T?"rgba(":"rgb(",c[0],g[0]-c[0],",",!0,!0).appendXtra("",c[1],g[1]-c[1],",",!0).appendXtra("",c[2],g[2]-c[2],T?",":S,!0),T&&(c=4>c.length?1:c[3],a.appendXtra("",c,(4>g.length?1:g[3])-c,S,!1)));else if(v=c.match(d)){if(y=g.match(m),!y||y.length!==v.length)return a;for(_=0,p=0;v.length>p;p++)P=v[p],w=c.indexOf(P,_),a.appendXtra(c.substr(_,w-_),Number(P),ie(y[p],P),"",O&&"px"===c.substr(w+P.length,2),0===p),_=w+P.length;a["xs"+a.l]+=c.substr(_)}else a["xs"+a.l]+=a.l?" "+c:c;if(-1!==r.indexOf("=")&&a.data){for(S=a.xs0+a.data.s,f=1;a.l>f;f++)S+=a["xs"+f]+a.data["xn"+f];a.e=S+a["xs"+f]}return a.l||(a.type=-1,a.xs0=a.e),a.xfirst||a},ce=9;for(l=pe.prototype,l.l=l.pr=0;--ce>0;)l["xn"+ce]=0,l["xs"+ce]="";l.xs0="",l._next=l._prev=l.xfirst=l.data=l.plugin=l.setRatio=l.rxp=null,l.appendXtra=function(t,e,i,r,s,n){var a=this,o=a.l;return a["xs"+o]+=n&&o?" "+t:t||"",i||0===o||a.plugin?(a.l++,a.type=a.setRatio?2:1,a["xs"+a.l]=r||"",o>0?(a.data["xn"+o]=e+i,a.rxp["xn"+o]=s,a["xn"+o]=e,a.plugin||(a.xfirst=new pe(a,"xn"+o,e,i,a.xfirst||a,0,a.n,s,a.pr),a.xfirst.xs0=0),a):(a.data={s:e+i},a.rxp={},a.s=e,a.c=i,a.r=s,a)):(a["xs"+o]+=e+(r||""),a)};var de=function(t,e){e=e||{},this.p=e.prefix?V(t)||t:t,o[t]=o[this.p]=this,this.format=e.formatter||he(e.defaultValue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultValue,this.pr=e.priority||0},me=E._registerComplexSpecialProp=function(t,e,i){"object"!=typeof e&&(e={parser:i});var r,s,n=t.split(","),a=e.defaultValue;for(i=i||[a],r=0;n.length>r;r++)e.prefix=0===r&&e.prefix,e.defaultValue=i[r]||a,s=new de(n[r],e)},ge=function(t){if(!o[t]){var e=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin";me(t,{parser:function(t,i,r,s,n,a,l){var h=(_gsScope.GreenSockGlobals||_gsScope).com.greensock.plugins[e];return h?(h._cssRegister(),o[r].parse(t,i,r,s,n,a,l)):(U("Error: "+e+" js file not loaded."),n)}})}};l=de.prototype,l.parseComplex=function(t,e,i,r,s,n){var a,o,l,h,u,f,p=this.keyword;if(this.multi&&(D.test(i)||D.test(e)?(o=e.replace(D,"|").split("|"),l=i.replace(D,"|").split("|")):p&&(o=[e],l=[i])),l){for(h=l.length>o.length?l.length:o.length,a=0;h>a;a++)e=o[a]=o[a]||this.dflt,i=l[a]=l[a]||this.dflt,p&&(u=e.indexOf(p),f=i.indexOf(p),u!==f&&(i=-1===f?l:o,i[a]+=" "+p));e=o.join(", "),i=l.join(", ")}return _e(t,this.p,e,i,this.clrs,this.dflt,r,this.pr,s,n)},l.parse=function(t,e,i,r,n,a){return this.parseComplex(t.style,this.format(H(t,this.p,s,!1,this.dflt)),this.format(e),n,a)},a.registerSpecialProp=function(t,e,i){me(t,{parser:function(t,r,s,n,a,o){var l=new pe(t,s,0,0,a,2,s,!1,i);return l.plugin=o,l.setRatio=e(t,r,n._tween,s),l},priority:i})};var ve,ye="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),xe=V("transform"),Te=j+"transform",we=V("transformOrigin"),be=null!==V("perspective"),Pe=E.Transform=function(){this.skewY=0},Se=window.SVGElement,Re=function(t,e,i){var r,s=z.createElementNS("http://www.w3.org/2000/svg",t),n=/([a-z])([A-Z])/g;for(r in i)s.setAttributeNS(null,r.replace(n,"$1-$2").toLowerCase(),i[r]);return e.appendChild(s),s},Ce=document.documentElement,ke=function(){var t,e,i,r=c||/Android/i.test(F)&&!window.chrome;return z.createElementNS&&!r&&(t=Re("svg",Ce),e=Re("rect",t,{width:100,height:50,x:100}),i=e.getBoundingClientRect().left,e.style[we]="50% 50%",e.style[xe]="scale(0.5,0.5)",r=i===e.getBoundingClientRect().left,Ce.removeChild(t)),r}(),Oe=function(t,e,i){var r=t.getBBox();e=ee(e).split(" "),i.xOrigin=(-1!==e[0].indexOf("%")?parseFloat(e[0])/100*r.width:parseFloat(e[0]))+r.x,i.yOrigin=(-1!==e[1].indexOf("%")?parseFloat(e[1])/100*r.height:parseFloat(e[1]))+r.y},Ae=E.getTransform=function(t,e,i,r){if(t._gsTransform&&i&&!r)return t._gsTransform;var n,o,l,h,u,f,p,_,c,d,m,g,v,y=i?t._gsTransform||new Pe:new Pe,x=0>y.scaleX,T=2e-5,w=1e5,b=179.99,P=b*M,S=be?parseFloat(H(t,we,e,!1,"0 0 0").split(" ")[2])||y.zOrigin||0:0,R=parseFloat(a.defaultTransformPerspective)||0;if(xe?n=H(t,Te,e,!0):t.currentStyle&&(n=t.currentStyle.filter.match(O),n=n&&4===n.length?[n[0].substr(4),Number(n[2].substr(4)),Number(n[1].substr(4)),n[3].substr(4),y.x||0,y.y||0].join(","):""),n&&"none"!==n&&"matrix(1, 0, 0, 1, 0, 0)"!==n){for(o=(n||"").match(/(?:\-|\b)[\d\-\.e]+\b/gi)||[],l=o.length;--l>-1;)h=Number(o[l]),o[l]=(u=h-(h|=0))?(0|u*w+(0>u?-.5:.5))/w+h:h;if(16===o.length){var C=o[8],k=o[9],A=o[10],D=o[12],N=o[13],z=o[14];if(y.zOrigin&&(z=-y.zOrigin,D=C*z-o[12],N=k*z-o[13],z=A*z+y.zOrigin-o[14]),!i||r||null==y.rotationX){var X,I,E,F,Y,B,U,j=o[0],W=o[1],V=o[2],q=o[3],G=o[4],Q=o[5],Z=o[6],$=o[7],K=o[11],J=Math.atan2(Z,A),te=-P>J||J>P;y.rotationX=J*L,J&&(F=Math.cos(-J),Y=Math.sin(-J),X=G*F+C*Y,I=Q*F+k*Y,E=Z*F+A*Y,C=G*-Y+C*F,k=Q*-Y+k*F,A=Z*-Y+A*F,K=$*-Y+K*F,G=X,Q=I,Z=E),J=Math.atan2(C,j),y.rotationY=J*L,J&&(B=-P>J||J>P,F=Math.cos(-J),Y=Math.sin(-J),X=j*F-C*Y,I=W*F-k*Y,E=V*F-A*Y,k=W*Y+k*F,A=V*Y+A*F,K=q*Y+K*F,j=X,W=I,V=E),J=Math.atan2(W,Q),y.rotation=J*L,J&&(U=-P>J||J>P,F=Math.cos(-J),Y=Math.sin(-J),j=j*F+G*Y,I=W*F+Q*Y,Q=W*-Y+Q*F,Z=V*-Y+Z*F,W=I),U&&te?y.rotation=y.rotationX=0:U&&B?y.rotation=y.rotationY=0:B&&te&&(y.rotationY=y.rotationX=0),y.scaleX=(0|Math.sqrt(j*j+W*W)*w+.5)/w,y.scaleY=(0|Math.sqrt(Q*Q+k*k)*w+.5)/w,y.scaleZ=(0|Math.sqrt(Z*Z+A*A)*w+.5)/w,y.skewX=0,y.perspective=K?1/(0>K?-K:K):0,y.x=D,y.y=N,y.z=z}}else if(!(be&&!r&&o.length&&y.x===o[4]&&y.y===o[5]&&(y.rotationX||y.rotationY)||void 0!==y.x&&"none"===H(t,"display",e))){var ee=o.length>=6,ie=ee?o[0]:1,re=o[1]||0,se=o[2]||0,ne=ee?o[3]:1;y.x=o[4]||0,y.y=o[5]||0,f=Math.sqrt(ie*ie+re*re),p=Math.sqrt(ne*ne+se*se),_=ie||re?Math.atan2(re,ie)*L:y.rotation||0,c=se||ne?Math.atan2(se,ne)*L+_:y.skewX||0,d=f-Math.abs(y.scaleX||0),m=p-Math.abs(y.scaleY||0),Math.abs(c)>90&&270>Math.abs(c)&&(x?(f*=-1,c+=0>=_?180:-180,_+=0>=_?180:-180):(p*=-1,c+=0>=c?180:-180)),g=(_-y.rotation)%180,v=(c-y.skewX)%180,(void 0===y.skewX||d>T||-T>d||m>T||-T>m||g>-b&&b>g&&false|g*w||v>-b&&b>v&&false|v*w)&&(y.scaleX=f,y.scaleY=p,y.rotation=_,y.skewX=c),be&&(y.rotationX=y.rotationY=y.z=0,y.perspective=R,y.scaleZ=1)}y.zOrigin=S;for(l in y)T>y[l]&&y[l]>-T&&(y[l]=0)}else y={x:0,y:0,z:0,scaleX:1,scaleY:1,scaleZ:1,skewX:0,skewY:0,perspective:R,rotation:0,rotationX:0,rotationY:0,zOrigin:0};return i&&(t._gsTransform=y),y.svg=Se&&t instanceof Se&&t.parentNode instanceof Se,y.svg&&(Oe(t,H(t,we,s,!1,"50% 50%")+"",y),ve=a.useSVGTransformAttr||ke),y.xPercent=y.yPercent=0,y},De=function(t){var e,i,r=this.data,s=-r.rotation*M,n=s+r.skewX*M,a=1e5,o=(0|Math.cos(s)*r.scaleX*a)/a,l=(0|Math.sin(s)*r.scaleX*a)/a,h=(0|Math.sin(n)*-r.scaleY*a)/a,u=(0|Math.cos(n)*r.scaleY*a)/a,f=this.t.style,p=this.t.currentStyle;if(p){i=l,l=-h,h=-i,e=p.filter,f.filter="";var _,d,m=this.t.offsetWidth,g=this.t.offsetHeight,v="absolute"!==p.position,T="progid:DXImageTransform.Microsoft.Matrix(M11="+o+", M12="+l+", M21="+h+", M22="+u,w=r.x+m*r.xPercent/100,b=r.y+g*r.yPercent/100;if(null!=r.ox&&(_=(r.oxp?.01*m*r.ox:r.ox)-m/2,d=(r.oyp?.01*g*r.oy:r.oy)-g/2,w+=_-(_*o+d*l),b+=d-(_*h+d*u)),v?(_=m/2,d=g/2,T+=", Dx="+(_-(_*o+d*l)+w)+", Dy="+(d-(_*h+d*u)+b)+")"):T+=", sizingMethod='auto expand')",f.filter=-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?e.replace(A,T):T+" "+e,(0===t||1===t)&&1===o&&0===l&&0===h&&1===u&&(v&&-1===T.indexOf("Dx=0, Dy=0")||x.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf("gradient("&&e.indexOf("Alpha"))&&f.removeAttribute("filter")),!v){var P,S,R,C=8>c?1:-1;for(_=r.ieOffsetX||0,d=r.ieOffsetY||0,r.ieOffsetX=Math.round((m-((0>o?-o:o)*m+(0>l?-l:l)*g))/2+w),r.ieOffsetY=Math.round((g-((0>u?-u:u)*g+(0>h?-h:h)*m))/2+b),ce=0;4>ce;ce++)S=J[ce],P=p[S],i=-1!==P.indexOf("px")?parseFloat(P):G(this.t,S,parseFloat(P),P.replace(y,""))||0,R=i!==r[S]?2>ce?-r.ieOffsetX:-r.ieOffsetY:2>ce?_-r.ieOffsetX:d-r.ieOffsetY,f[S]=(r[S]=Math.round(i-R*(0===ce||2===ce?1:C)))+"px"}}},Me=E.set3DTransformRatio=function(t){var e,i,r,s,n,a,o,l,h,u,f,_,c,d,m,g,v,y,x,T,w,b,P,S=this.data,R=this.t.style,C=S.rotation*M,k=S.scaleX,O=S.scaleY,A=S.scaleZ,D=S.x,L=S.y,N=S.z,z=S.perspective;if(!(1!==t&&0!==t||"auto"!==S.force3D||S.rotationY||S.rotationX||1!==A||z||N))return Le.call(this,t),void 0;if(p){var X=1e-4;X>k&&k>-X&&(k=A=2e-5),X>O&&O>-X&&(O=A=2e-5),!z||S.z||S.rotationX||S.rotationY||(z=0)}if(C||S.skewX)y=Math.cos(C),x=Math.sin(C),e=y,n=x,S.skewX&&(C-=S.skewX*M,y=Math.cos(C),x=Math.sin(C),"simple"===S.skewType&&(T=Math.tan(S.skewX*M),T=Math.sqrt(1+T*T),y*=T,x*=T)),i=-x,a=y;else{if(!(S.rotationY||S.rotationX||1!==A||z||S.svg))return R[xe]=(S.xPercent||S.yPercent?"translate("+S.xPercent+"%,"+S.yPercent+"%) translate3d(":"translate3d(")+D+"px,"+L+"px,"+N+"px)"+(1!==k||1!==O?" scale("+k+","+O+")":""),void 0;e=a=1,i=n=0}f=1,r=s=o=l=h=u=_=c=d=0,m=z?-1/z:0,g=S.zOrigin,v=1e5,C=S.rotationY*M,C&&(y=Math.cos(C),x=Math.sin(C),h=f*-x,c=m*-x,r=e*x,o=n*x,f*=y,m*=y,e*=y,n*=y),C=S.rotationX*M,C&&(y=Math.cos(C),x=Math.sin(C),T=i*y+r*x,w=a*y+o*x,b=u*y+f*x,P=d*y+m*x,r=i*-x+r*y,o=a*-x+o*y,f=u*-x+f*y,m=d*-x+m*y,i=T,a=w,u=b,d=P),1!==A&&(r*=A,o*=A,f*=A,m*=A),1!==O&&(i*=O,a*=O,u*=O,d*=O),1!==k&&(e*=k,n*=k,h*=k,c*=k),g&&(_-=g,s=r*_,l=o*_,_=f*_+g),S.svg&&(s+=S.xOrigin-(S.xOrigin*e+S.yOrigin*i),l+=S.yOrigin-(S.xOrigin*n+S.yOrigin*a)),s=(T=(s+=D)-(s|=0))?(0|T*v+(0>T?-.5:.5))/v+s:s,l=(T=(l+=L)-(l|=0))?(0|T*v+(0>T?-.5:.5))/v+l:l,_=(T=(_+=N)-(_|=0))?(0|T*v+(0>T?-.5:.5))/v+_:_,R[xe]=(S.xPercent||S.yPercent?"translate("+S.xPercent+"%,"+S.yPercent+"%) matrix3d(":"matrix3d(")+[(0|e*v)/v,(0|n*v)/v,(0|h*v)/v,(0|c*v)/v,(0|i*v)/v,(0|a*v)/v,(0|u*v)/v,(0|d*v)/v,(0|r*v)/v,(0|o*v)/v,(0|f*v)/v,(0|m*v)/v,s,l,_,z?1+-_/z:1].join(",")+")"},Le=E.set2DTransformRatio=function(t){var e,i,r,s,n,a,o,l,h,u,f,p=this.data,_=this.t,c=_.style,d=p.x,m=p.y;return!(p.rotationX||p.rotationY||p.z||p.force3D===!0||"auto"===p.force3D&&1!==t&&0!==t)||p.svg&&ve||!be?(s=p.scaleX,n=p.scaleY,p.rotation||p.skewX||p.svg?(e=p.rotation*M,i=e-p.skewX*M,r=1e5,a=Math.cos(e)*s,o=Math.sin(e)*s,l=Math.sin(i)*-n,h=Math.cos(i)*n,p.svg&&(d+=p.xOrigin-(p.xOrigin*a+p.yOrigin*l),m+=p.yOrigin-(p.xOrigin*o+p.yOrigin*h),f=1e-6,f>d&&d>-f&&(d=0),f>m&&m>-f&&(m=0)),u=(0|a*r)/r+","+(0|o*r)/r+","+(0|l*r)/r+","+(0|h*r)/r+","+d+","+m+")",p.svg&&ve?_.setAttribute("transform","matrix("+u):c[xe]=(p.xPercent||p.yPercent?"translate("+p.xPercent+"%,"+p.yPercent+"%) matrix(":"matrix(")+u):c[xe]=(p.xPercent||p.yPercent?"translate("+p.xPercent+"%,"+p.yPercent+"%) matrix(":"matrix(")+s+",0,0,"+n+","+d+","+m+")",void 0):(this.setRatio=Me,Me.call(this,t),void 0)};me("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent",{parser:function(t,e,i,r,n,o,l){if(r._transform)return n;var h,u,f,p,_,c,d,m=r._transform=Ae(t,s,!0,l.parseTransform),g=t.style,v=1e-6,y=ye.length,x=l,T={};if("string"==typeof x.transform&&xe)f=X.style,f[xe]=x.transform,f.display="block",f.position="absolute",z.body.appendChild(X),h=Ae(X,null,!1),z.body.removeChild(X);else if("object"==typeof x){if(h={scaleX:re(null!=x.scaleX?x.scaleX:x.scale,m.scaleX),scaleY:re(null!=x.scaleY?x.scaleY:x.scale,m.scaleY),scaleZ:re(x.scaleZ,m.scaleZ),x:re(x.x,m.x),y:re(x.y,m.y),z:re(x.z,m.z),xPercent:re(x.xPercent,m.xPercent),yPercent:re(x.yPercent,m.yPercent),perspective:re(x.transformPerspective,m.perspective)},d=x.directionalRotation,null!=d)if("object"==typeof d)for(f in d)x[f]=d[f];else x.rotation=d;"string"==typeof x.x&&-1!==x.x.indexOf("%")&&(h.x=0,h.xPercent=re(x.x,m.xPercent)),"string"==typeof x.y&&-1!==x.y.indexOf("%")&&(h.y=0,h.yPercent=re(x.y,m.yPercent)),h.rotation=se("rotation"in x?x.rotation:"shortRotation"in x?x.shortRotation+"_short":"rotationZ"in x?x.rotationZ:m.rotation,m.rotation,"rotation",T),be&&(h.rotationX=se("rotationX"in x?x.rotationX:"shortRotationX"in x?x.shortRotationX+"_short":m.rotationX||0,m.rotationX,"rotationX",T),h.rotationY=se("rotationY"in x?x.rotationY:"shortRotationY"in x?x.shortRotationY+"_short":m.rotationY||0,m.rotationY,"rotationY",T)),h.skewX=null==x.skewX?m.skewX:se(x.skewX,m.skewX),h.skewY=null==x.skewY?m.skewY:se(x.skewY,m.skewY),(u=h.skewY-m.skewY)&&(h.skewX+=u,h.rotation+=u)}for(be&&null!=x.force3D&&(m.force3D=x.force3D,c=!0),m.skewType=x.skewType||m.skewType||a.defaultSkewType,_=m.force3D||m.z||m.rotationX||m.rotationY||h.z||h.rotationX||h.rotationY||h.perspective,_||null==x.scale||(h.scaleZ=1);--y>-1;)i=ye[y],p=h[i]-m[i],(p>v||-v>p||null!=x[i]||null!=N[i])&&(c=!0,n=new pe(m,i,m[i],p,n),i in T&&(n.e=T[i]),n.xs0=0,n.plugin=o,r._overwriteProps.push(n.n));return p=x.transformOrigin,p&&m.svg&&(Oe(t,p,h),n=new pe(m,"xOrigin",m.xOrigin,h.xOrigin-m.xOrigin,n,-1,"transformOrigin"),n.b=m.xOrigin,n.e=n.xs0=h.xOrigin,n=new pe(m,"yOrigin",m.yOrigin,h.yOrigin-m.yOrigin,n,-1,"transformOrigin"),n.b=m.yOrigin,n.e=n.xs0=h.yOrigin,p="0px 0px"),(p||be&&_&&m.zOrigin)&&(xe?(c=!0,i=we,p=(p||H(t,i,s,!1,"50% 50%"))+"",n=new pe(g,i,0,0,n,-1,"transformOrigin"),n.b=g[i],n.plugin=o,be?(f=m.zOrigin,p=p.split(" "),m.zOrigin=(p.length>2&&(0===f||"0px"!==p[2])?parseFloat(p[2]):f)||0,n.xs0=n.e=p[0]+" "+(p[1]||"50%")+" 0px",n=new pe(m,"zOrigin",0,0,n,-1,n.n),n.b=f,n.xs0=n.e=m.zOrigin):n.xs0=n.e=p):ee(p+"",m)),c&&(r._transformType=m.svg&&ve||!_&&3!==this._transformType?2:3),n},prefix:!0}),me("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),me("borderRadius",{defaultValue:"0px",parser:function(t,e,i,n,a){e=this.format(e);var o,l,h,u,f,p,_,c,d,m,g,v,y,x,T,w,b=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],P=t.style;for(d=parseFloat(t.offsetWidth),m=parseFloat(t.offsetHeight),o=e.split(" "),l=0;b.length>l;l++)this.p.indexOf("border")&&(b[l]=V(b[l])),f=u=H(t,b[l],s,!1,"0px"),-1!==f.indexOf(" ")&&(u=f.split(" "),f=u[0],u=u[1]),p=h=o[l],_=parseFloat(f),v=f.substr((_+"").length),y="="===p.charAt(1),y?(c=parseInt(p.charAt(0)+"1",10),p=p.substr(2),c*=parseFloat(p),g=p.substr((c+"").length-(0>c?1:0))||""):(c=parseFloat(p),g=p.substr((c+"").length)),""===g&&(g=r[i]||v),g!==v&&(x=G(t,"borderLeft",_,v),T=G(t,"borderTop",_,v),"%"===g?(f=100*(x/d)+"%",u=100*(T/m)+"%"):"em"===g?(w=G(t,"borderLeft",1,"em"),f=x/w+"em",u=T/w+"em"):(f=x+"px",u=T+"px"),y&&(p=parseFloat(f)+c+g,h=parseFloat(u)+c+g)),a=_e(P,b[l],f+" "+u,p+" "+h,!1,"0px",a);return a},prefix:!0,formatter:he("0px 0px 0px 0px",!1,!0)}),me("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,i,r,n,a){var o,l,h,u,f,p,_="background-position",d=s||q(t,null),m=this.format((d?c?d.getPropertyValue(_+"-x")+" "+d.getPropertyValue(_+"-y"):d.getPropertyValue(_):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),g=this.format(e);if(-1!==m.indexOf("%")!=(-1!==g.indexOf("%"))&&(p=H(t,"backgroundImage").replace(R,""),p&&"none"!==p)){for(o=m.split(" "),l=g.split(" "),I.setAttribute("src",p),h=2;--h>-1;)m=o[h],u=-1!==m.indexOf("%"),u!==(-1!==l[h].indexOf("%"))&&(f=0===h?t.offsetWidth-I.width:t.offsetHeight-I.height,o[h]=u?parseFloat(m)/100*f+"px":100*(parseFloat(m)/f)+"%");m=o.join(" ")}return this.parseComplex(t.style,m,g,n,a)},formatter:ee}),me("backgroundSize",{defaultValue:"0 0",formatter:ee}),me("perspective",{defaultValue:"0px",prefix:!0}),me("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),me("transformStyle",{prefix:!0}),me("backfaceVisibility",{prefix:!0}),me("userSelect",{prefix:!0}),me("margin",{parser:ue("marginTop,marginRight,marginBottom,marginLeft")}),me("padding",{parser:ue("paddingTop,paddingRight,paddingBottom,paddingLeft")}),me("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,r,n,a){var o,l,h;return 9>c?(l=t.currentStyle,h=8>c?" ":",",o="rect("+l.clipTop+h+l.clipRight+h+l.clipBottom+h+l.clipLeft+")",e=this.format(e).split(",").join(h)):(o=this.format(H(t,this.p,s,!1,this.dflt)),e=this.format(e)),this.parseComplex(t.style,o,e,n,a)}}),me("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),me("autoRound,strictUnits",{parser:function(t,e,i,r,s){return s}}),me("border",{defaultValue:"0px solid #000",parser:function(t,e,i,r,n,a){return this.parseComplex(t.style,this.format(H(t,"borderTopWidth",s,!1,"0px")+" "+H(t,"borderTopStyle",s,!1,"solid")+" "+H(t,"borderTopColor",s,!1,"#000")),this.format(e),n,a)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(le)||["#000"])[0]}}),me("borderWidth",{parser:ue("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),me("float,cssFloat,styleFloat",{parser:function(t,e,i,r,s){var n=t.style,a="cssFloat"in n?"cssFloat":"styleFloat";return new pe(n,a,0,0,s,-1,i,!1,0,n[a],e)}});var Ne=function(t){var e,i=this.t,r=i.filter||H(this.data,"filter")||"",s=0|this.s+this.c*t;100===s&&(-1===r.indexOf("atrix(")&&-1===r.indexOf("radient(")&&-1===r.indexOf("oader(")?(i.removeAttribute("filter"),e=!H(this.data,"filter")):(i.filter=r.replace(w,""),e=!0)),e||(this.xn1&&(i.filter=r=r||"alpha(opacity="+s+")"),-1===r.indexOf("pacity")?0===s&&this.xn1||(i.filter=r+" alpha(opacity="+s+")"):i.filter=r.replace(x,"opacity="+s))};me("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,r,n,a){var o=parseFloat(H(t,"opacity",s,!1,"1")),l=t.style,h="autoAlpha"===i;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+o),h&&1===o&&"hidden"===H(t,"visibility",s)&&0!==e&&(o=0),Y?n=new pe(l,"opacity",o,e-o,n):(n=new pe(l,"opacity",100*o,100*(e-o),n),n.xn1=h?1:0,l.zoom=1,n.type=2,n.b="alpha(opacity="+n.s+")",n.e="alpha(opacity="+(n.s+n.c)+")",n.data=t,n.plugin=a,n.setRatio=Ne),h&&(n=new pe(l,"visibility",0,0,n,-1,null,!1,0,0!==o?"inherit":"hidden",0===e?"hidden":"inherit"),n.xs0="inherit",r._overwriteProps.push(n.n),r._overwriteProps.push(i)),n}});var ze=function(t,e){e&&(t.removeProperty?("ms"===e.substr(0,2)&&(e="M"+e.substr(1)),t.removeProperty(e.replace(P,"-$1").toLowerCase())):t.removeAttribute(e))},Xe=function(t){if(this.t._gsClassPT=this,1===t||0===t){this.t.setAttribute("class",0===t?this.b:this.e);for(var e=this.data,i=this.t.style;e;)e.v?i[e.p]=e.v:ze(i,e.p),e=e._next;1===t&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};me("className",{parser:function(t,e,r,n,a,o,l){var h,u,f,p,_,c=t.getAttribute("class")||"",d=t.style.cssText;if(a=n._classNamePT=new pe(t,r,0,0,a,2),a.setRatio=Xe,a.pr=-11,i=!0,a.b=c,u=Z(t,s),f=t._gsClassPT){for(p={},_=f.data;_;)p[_.p]=1,_=_._next;f.setRatio(1)}return t._gsClassPT=a,a.e="="!==e.charAt(1)?e:c.replace(RegExp("\\s*\\b"+e.substr(2)+"\\b"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),n._tween._duration&&(t.setAttribute("class",a.e),h=$(t,u,Z(t),l,p),t.setAttribute("class",c),a.data=h.firstMPT,t.style.cssText=d,a=a.xfirst=n.parse(t,h.difs,a,o)),a}});var Ie=function(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,i,r,s,n=this.t.style,a=o.transform.parse;if("all"===this.e)n.cssText="",s=!0;else for(e=this.e.split(" ").join("").split(","),r=e.length;--r>-1;)i=e[r],o[i]&&(o[i].parse===a?s=!0:i="transformOrigin"===i?we:o[i].p),ze(n,i);s&&(ze(n,xe),this.t._gsTransform&&delete this.t._gsTransform)}};for(me("clearProps",{parser:function(t,e,r,s,n){return n=new pe(t,r,0,0,n,2),n.setRatio=Ie,n.e=e,n.pr=-10,n.data=s._tween,i=!0,n}}),l="bezier,throwProps,physicsProps,physics2D".split(","),ce=l.length;ce--;)ge(l[ce]);l=a.prototype,l._firstPT=null,l._onInitTween=function(t,e,o){if(!t.nodeType)return!1;this._target=t,this._tween=o,this._vars=e,h=e.autoRound,i=!1,r=e.suffixMap||a.suffixMap,s=q(t,""),n=this._overwriteProps;var l,p,c,d,m,g,v,y,x,w=t.style;if(u&&""===w.zIndex&&(l=H(t,"zIndex",s),("auto"===l||""===l)&&this._addLazySet(w,"zIndex",0)),"string"==typeof e&&(d=w.cssText,l=Z(t,s),w.cssText=d+";"+e,l=$(t,l,Z(t)).difs,!Y&&T.test(e)&&(l.opacity=parseFloat(RegExp.$1)),e=l,w.cssText=d),this._firstPT=p=this.parse(t,e,null),this._transformType){for(x=3===this._transformType,xe?f&&(u=!0,""===w.zIndex&&(v=H(t,"zIndex",s),("auto"===v||""===v)&&this._addLazySet(w,"zIndex",0)),_&&this._addLazySet(w,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(x?"visible":"hidden"))):w.zoom=1,c=p;c&&c._next;)c=c._next;y=new pe(t,"transform",0,0,null,2),this._linkCSSP(y,null,c),y.setRatio=x&&be?Me:xe?Le:De,y.data=this._transform||Ae(t,s,!0),n.pop()}if(i){for(;p;){for(g=p._next,c=d;c&&c.pr>p.pr;)c=c._next;(p._prev=c?c._prev:m)?p._prev._next=p:d=p,(p._next=c)?c._prev=p:m=p,p=g}this._firstPT=d}return!0},l.parse=function(t,e,i,n){var a,l,u,f,p,_,c,d,m,g,v=t.style;for(a in e)_=e[a],l=o[a],l?i=l.parse(t,_,a,this,i,n,e):(p=H(t,a,s)+"",m="string"==typeof _,"color"===a||"fill"===a||"stroke"===a||-1!==a.indexOf("Color")||m&&b.test(_)?(m||(_=oe(_),_=(_.length>3?"rgba(":"rgb(")+_.join(",")+")"),i=_e(v,a,p,_,!0,"transparent",i,0,n)):!m||-1===_.indexOf(" ")&&-1===_.indexOf(",")?(u=parseFloat(p),c=u||0===u?p.substr((u+"").length):"",(""===p||"auto"===p)&&("width"===a||"height"===a?(u=te(t,a,s),c="px"):"left"===a||"top"===a?(u=Q(t,a,s),c="px"):(u="opacity"!==a?0:1,c="")),g=m&&"="===_.charAt(1),g?(f=parseInt(_.charAt(0)+"1",10),_=_.substr(2),f*=parseFloat(_),d=_.replace(y,"")):(f=parseFloat(_),d=m?_.substr((f+"").length)||"":""),""===d&&(d=a in r?r[a]:c),_=f||0===f?(g?f+u:f)+d:e[a],c!==d&&""!==d&&(f||0===f)&&u&&(u=G(t,a,u,c),"%"===d?(u/=G(t,a,100,"%")/100,e.strictUnits!==!0&&(p=u+"%")):"em"===d?u/=G(t,a,1,"em"):"px"!==d&&(f=G(t,a,f,d),d="px"),g&&(f||0===f)&&(_=f+u+d)),g&&(f+=u),!u&&0!==u||!f&&0!==f?void 0!==v[a]&&(_||"NaN"!=_+""&&null!=_)?(i=new pe(v,a,f||u||0,0,i,-1,a,!1,0,p,_),i.xs0="none"!==_||"display"!==a&&-1===a.indexOf("Style")?_:p):U("invalid "+a+" tween value: "+e[a]):(i=new pe(v,a,u,f-u,i,0,a,h!==!1&&("px"===d||"zIndex"===a),0,p,_),i.xs0=d)):i=_e(v,a,p,_,!0,null,i,0,n)),n&&i&&!i.plugin&&(i.plugin=n); -return i},l.setRatio=function(t){var e,i,r,s=this._firstPT,n=1e-6;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawPrevTime===-1e-6)for(;s;){if(e=s.c*t+s.s,s.r?e=Math.round(e):n>e&&e>-n&&(e=0),s.type)if(1===s.type)if(r=s.l,2===r)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2;else if(3===r)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3;else if(4===r)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3+s.xn3+s.xs4;else if(5===r)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3+s.xn3+s.xs4+s.xn4+s.xs5;else{for(i=s.xs0+e+s.xs1,r=1;s.l>r;r++)i+=s["xn"+r]+s["xs"+(r+1)];s.t[s.p]=i}else-1===s.type?s.t[s.p]=s.xs0:s.setRatio&&s.setRatio(t);else s.t[s.p]=e+s.xs0;s=s._next}else for(;s;)2!==s.type?s.t[s.p]=s.b:s.setRatio(t),s=s._next;else for(;s;)2!==s.type?s.t[s.p]=s.e:s.setRatio(t),s=s._next},l._enableTransforms=function(t){this._transform=this._transform||Ae(this._target,s,!0),this._transformType=this._transform.svg&&ve||!t&&3!==this._transformType?2:3};var Ee=function(){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};l._addLazySet=function(t,e,i){var r=this._firstPT=new pe(t,e,0,0,this._firstPT,2);r.e=i,r.setRatio=Ee,r.data=this},l._linkCSSP=function(t,e,i,r){return t&&(e&&(e._prev=t),t._next&&(t._next._prev=t._prev),t._prev?t._prev._next=t._next:this._firstPT===t&&(this._firstPT=t._next,r=!0),i?i._next=t:r||null!==this._firstPT||(this._firstPT=t),t._next=e,t._prev=i),t},l._kill=function(e){var i,r,s,n=e;if(e.autoAlpha||e.alpha){n={};for(r in e)n[r]=e[r];n.opacity=1,n.autoAlpha&&(n.visibility=1)}return e.className&&(i=this._classNamePT)&&(s=i.xfirst,s&&s._prev?this._linkCSSP(s._prev,i._next,s._prev._prev):s===this._firstPT&&(this._firstPT=i._next),i._next&&this._linkCSSP(i._next,i._next._next,s._prev),this._classNamePT=null),t.prototype._kill.call(this,n)};var Fe=function(t,e,i){var r,s,n,a;if(t.slice)for(s=t.length;--s>-1;)Fe(t[s],e,i);else for(r=t.childNodes,s=r.length;--s>-1;)n=r[s],a=n.type,n.style&&(e.push(Z(n)),i&&i.push(n)),1!==a&&9!==a&&11!==a||!n.childNodes.length||Fe(n,e,i)};return a.cascadeTo=function(t,i,r){var s,n,a,o=e.to(t,i,r),l=[o],h=[],u=[],f=[],p=e._internals.reservedProps;for(t=o._targets||o.target,Fe(t,h,f),o.render(i,!0),Fe(t,u),o.render(0,!0),o._enabled(!0),s=f.length;--s>-1;)if(n=$(f[s],h[s],u[s]),n.firstMPT){n=n.difs;for(a in r)p[a]&&(n[a]=r[a]);l.push(e.to(f[s],i,n))}return l},t.activate([a]),a},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope)[t]};"function"==typeof define&&define.amd?define(["TweenLite"],e):"undefined"!=typeof module&&module.exports&&(require("../TweenLite.js"),module.exports=e())}("CSSPlugin"); - -/*! - * VERSION: beta 0.3.3 - * DATE: 2014-10-29 - * UPDATES AND DOCS AT: http://www.greensock.com - * - * @license Copyright (c) 2008-2014, GreenSock. All rights reserved. - * SplitText is a Club GreenSock membership benefit; You must have a valid membership to use - * this code without violating the terms of use. Visit http://www.greensock.com/club/ to sign up or get more details. - * This work is subject to the software agreement that was issued with your membership. - * - * @author: Jack Doyle, jack@greensock.com - */ -var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(function(t){"use strict";var e=t.GreenSockGlobals||t,i=function(t){var i,s=t.split("."),r=e;for(i=0;s.length>i;i++)r[s[i]]=r=r[s[i]]||{};return r},s=i("com.greensock.utils"),r=function(t){var e=t.nodeType,i="";if(1===e||9===e||11===e){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=r(t)}else if(3===e||4===e)return t.nodeValue;return i},n=document,a=n.defaultView?n.defaultView.getComputedStyle:function(){},o=/([A-Z])/g,h=function(t,e,i,s){var r;return(i=i||a(t,null))?(t=i.getPropertyValue(e.replace(o,"-$1").toLowerCase()),r=t||i.length?t:i[e]):t.currentStyle&&(i=t.currentStyle,r=i[e]),s?r:parseInt(r,10)||0},l=function(t){return t.length&&t[0]&&(t[0].nodeType&&t[0].style&&!t.nodeType||t[0].length&&t[0][0])?!0:!1},_=function(t){var e,i,s,r=[],n=t.length;for(e=0;n>e;e++)if(i=t[e],l(i))for(s=i.length,s=0;i.length>s;s++)r.push(i[s]);else r.push(i);return r},u=")eefec303079ad17405c",c=/(?:
||
)/gi,p=n.all&&!n.addEventListener,f="
":">")}},d=s.SplitText=e.SplitText=function(t,e){if("string"==typeof t&&(t=d.selector(t)),!t)throw"cannot split a null element.";this.elements=l(t)?_(t):[t],this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=e||{},this.split(e)},g=function(t,e,i){var s=t.nodeType;if(1===s||9===s||11===s)for(t=t.firstChild;t;t=t.nextSibling)g(t,e,i);else(3===s||4===s)&&(t.nodeValue=t.nodeValue.split(e).join(i))},v=function(t,e){for(var i=e.length;--i>-1;)t.push(e[i])},y=function(t,e,i,s,o){c.test(t.innerHTML)&&(t.innerHTML=t.innerHTML.replace(c,u));var l,_,p,f,d,y,T,w,b,x,P,S,C,k,R=r(t),A=e.type||e.split||"chars,words,lines",O=-1!==A.indexOf("lines")?[]:null,D=-1!==A.indexOf("words"),M=-1!==A.indexOf("chars"),L="absolute"===e.position||e.absolute===!0,z=L?"­ ":" ",I=-999,E=a(t),N=h(t,"paddingLeft",E),F=h(t,"borderBottomWidth",E)+h(t,"borderTopWidth",E),X=h(t,"borderLeftWidth",E)+h(t,"borderRightWidth",E),U=h(t,"paddingTop",E)+h(t,"paddingBottom",E),B=h(t,"paddingLeft",E)+h(t,"paddingRight",E),j=h(t,"textAlign",E,!0),Y=t.clientHeight,q=t.clientWidth,G="
",V=m(e.wordsClass),Q=m(e.charsClass),W=-1!==(e.linesClass||"").indexOf("++"),H=e.linesClass,Z=-1!==R.indexOf("<"),$=!0,K=[],J=[],te=[];for(W&&(H=H.split("++").join("")),Z&&(R=R.split("<").join("{{LT}}")),l=R.length,f=V(),d=0;l>d;d++)if(T=R.charAt(d),")"===T&&R.substr(d,20)===u)f+=($?G:"")+"
",$=!1,d!==l-20&&R.substr(d+20,20)!==u&&(f+=" "+V(),$=!0),d+=19;else if(" "===T&&" "!==R.charAt(d-1)&&d!==l-1&&R.substr(d-20,20)!==u){for(f+=$?G:"",$=!1;" "===R.charAt(d+1);)f+=z,d++;(")"!==R.charAt(d+1)||R.substr(d+1,20)!==u)&&(f+=z+V(),$=!0)}else f+=M&&" "!==T?Q()+T+"":T;for(t.innerHTML=f+($?G:""),Z&&g(t,"{{LT}}","<"),y=t.getElementsByTagName("*"),l=y.length,w=[],d=0;l>d;d++)w[d]=y[d];if(O||L)for(d=0;l>d;d++)b=w[d],p=b.parentNode===t,(p||L||M&&!D)&&(x=b.offsetTop,O&&p&&x!==I&&"BR"!==b.nodeName&&(_=[],O.push(_),I=x),L&&(b._x=b.offsetLeft,b._y=x,b._w=b.offsetWidth,b._h=b.offsetHeight),O&&(D!==p&&M||(_.push(b),b._x-=N),p&&d&&(w[d-1]._wordEnd=!0),"BR"===b.nodeName&&b.nextSibling&&"BR"===b.nextSibling.nodeName&&O.push([])));for(d=0;l>d;d++)b=w[d],p=b.parentNode===t,"BR"!==b.nodeName?(L&&(S=b.style,D||p||(b._x+=b.parentNode._x,b._y+=b.parentNode._y),S.left=b._x+"px",S.top=b._y+"px",S.position="absolute",S.display="block",S.width=b._w+1+"px",S.height=b._h+"px"),D?p&&""!==b.innerHTML?J.push(b):M&&K.push(b):p?(t.removeChild(b),w.splice(d--,1),l--):!p&&M&&(x=!O&&!L&&b.nextSibling,t.appendChild(b),x||t.appendChild(n.createTextNode(" ")),K.push(b))):O||L?(t.removeChild(b),w.splice(d--,1),l--):D||t.appendChild(b);if(O){for(L&&(P=n.createElement("div"),t.appendChild(P),C=P.offsetWidth+"px",x=P.offsetParent===t?0:t.offsetLeft,t.removeChild(P)),S=t.style.cssText,t.style.cssText="display:none;";t.firstChild;)t.removeChild(t.firstChild);for(k=!L||!D&&!M,d=0;O.length>d;d++){for(_=O[d],P=n.createElement("div"),P.style.cssText="display:block;text-align:"+j+";position:"+(L?"absolute;":"relative;"),H&&(P.className=H+(W?d+1:"")),te.push(P),l=_.length,y=0;l>y;y++)"BR"!==_[y].nodeName&&(b=_[y],P.appendChild(b),k&&(b._wordEnd||D)&&P.appendChild(n.createTextNode(" ")),L&&(0===y&&(P.style.top=b._y+"px",P.style.left=N+x+"px"),b.style.top="0px",x&&(b.style.left=b._x-x+"px")));0===l&&(P.innerHTML=" "),D||M||(P.innerHTML=r(P).split(String.fromCharCode(160)).join(" ")),L&&(P.style.width=C,P.style.height=b._h+"px"),t.appendChild(P)}t.style.cssText=S}L&&(Y>t.clientHeight&&(t.style.height=Y-U+"px",Y>t.clientHeight&&(t.style.height=Y+F+"px")),q>t.clientWidth&&(t.style.width=q-B+"px",q>t.clientWidth&&(t.style.width=q+X+"px"))),v(i,K),v(s,J),v(o,te)},T=d.prototype;T.split=function(t){this.isSplit&&this.revert(),this.vars=t||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var e=this.elements.length;--e>-1;)this._originals[e]=this.elements[e].innerHTML,y(this.elements[e],this.vars,this.chars,this.words,this.lines);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},T.revert=function(){if(!this._originals)throw"revert() call wasn't scoped properly.";for(var t=this._originals.length;--t>-1;)this.elements[t].innerHTML=this._originals[t];return this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},d.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(d.selector=i,i(e)):"undefined"==typeof document?e:document.querySelectorAll?document.querySelectorAll(e):document.getElementById("#"===e.charAt(0)?e.substr(1):e)},d.version="0.3.3"})(_gsScope),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope)[t]};"function"==typeof define&&define.amd?define(["TweenLite"],e):"undefined"!=typeof module&&module.exports&&(module.exports=e())}("SplitText"); - - -try{ - window.GreenSockGlobals = null; - window._gsQueue = null; - window._gsDefine = null; - - delete(window.GreenSockGlobals); - delete(window._gsQueue); - delete(window._gsDefine); - } catch(e) {} - -try{ - window.GreenSockGlobals = oldgs; - window._gsQueue = oldgs_queue; - } catch(e) {} - -if (window.tplogs==true) - try { - console.groupEnd(); - } catch(e) {} - - - - - -(function(e,t){ - e.waitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage"]};e.expr[":"].uncached=function(t){var n=document.createElement("img");n.src=t.src;return e(t).is('img[src!=""]')&&!n.complete};e.fn.waitForImages=function(t,n,r){if(e.isPlainObject(arguments[0])){n=t.each;r=t.waitForAll;t=t.finished}t=t||e.noop;n=n||e.noop;r=!!r;if(!e.isFunction(t)||!e.isFunction(n)){throw new TypeError("An invalid callback was supplied.")}return this.each(function(){var i=e(this),s=[];if(r){var o=e.waitForImages.hasImageProperties||[],u=/url\((['"]?)(.*?)\1\)/g;i.find("*").each(function(){var t=e(this);if(t.is("img:uncached")){s.push({src:t.attr("src"),element:t[0]})}e.each(o,function(e,n){var r=t.css(n);if(!r){return true}var i;while(i=u.exec(r)){s.push({src:i[2],element:t[0]})}})})}else{i.find("img:uncached").each(function(){s.push({src:this.src,element:this})})}var f=s.length,l=0;if(f==0){t.call(i[0])}e.each(s,function(r,s){var o=new Image;e(o).bind("load error",function(e){l++;n.call(s.element,l,f,e.type=="load");if(l==f){t.call(i[0]);return false}});o.src=s.src})})}; -})(jQuery) + + +/******************************************** + - THEMEPUNCH TOOLS Ver. 1.0 - + Last Update of Tools 17.11.2014 +*********************************************/ + + +/* +* @fileOverview TouchSwipe - jQuery Plugin +* @version 1.6.6 +* +* @author Matt Bryson http://www.github.com/mattbryson +* @see https://github.com/mattbryson/TouchSwipe-Jquery-Plugin +* @see http://labs.skinkers.com/touchSwipe/ +* @see http://plugins.jquery.com/project/touchSwipe +* +* Copyright (c) 2010 Matt Bryson +* Dual licensed under the MIT or GPL Version 2 licenses. +* +*/ +(function(a){if(typeof define==="function"&&define.amd&&define.amd.jQuery){define(["jquery"],a)}else{a(jQuery)}}(function(f){var p="left",o="right",e="up",x="down",c="in",z="out",m="none",s="auto",l="swipe",t="pinch",A="tap",j="doubletap",b="longtap",y="hold",D="horizontal",u="vertical",i="all",r=10,g="start",k="move",h="end",q="cancel",a="ontouchstart" in window,v=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled,d=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,B="TouchSwipe";var n={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:true,triggerOnTouchLeave:false,allowPageScroll:"auto",fallbackToMouseEvents:true,excludedElements:"label, button, input, select, textarea, a, .noSwipe"};f.fn.swipe=function(G){var F=f(this),E=F.data(B);if(E&&typeof G==="string"){if(E[G]){return E[G].apply(this,Array.prototype.slice.call(arguments,1))}else{f.error("Method "+G+" does not exist on jQuery.swipe")}}else{if(!E&&(typeof G==="object"||!G)){return w.apply(this,arguments)}}return F};f.fn.swipe.defaults=n;f.fn.swipe.phases={PHASE_START:g,PHASE_MOVE:k,PHASE_END:h,PHASE_CANCEL:q};f.fn.swipe.directions={LEFT:p,RIGHT:o,UP:e,DOWN:x,IN:c,OUT:z};f.fn.swipe.pageScroll={NONE:m,HORIZONTAL:D,VERTICAL:u,AUTO:s};f.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,ALL:i};function w(E){if(E&&(E.allowPageScroll===undefined&&(E.swipe!==undefined||E.swipeStatus!==undefined))){E.allowPageScroll=m}if(E.click!==undefined&&E.tap===undefined){E.tap=E.click}if(!E){E={}}E=f.extend({},f.fn.swipe.defaults,E);return this.each(function(){var G=f(this);var F=G.data(B);if(!F){F=new C(this,E);G.data(B,F)}})}function C(a4,av){var az=(a||d||!av.fallbackToMouseEvents),J=az?(d?(v?"MSPointerDown":"pointerdown"):"touchstart"):"mousedown",ay=az?(d?(v?"MSPointerMove":"pointermove"):"touchmove"):"mousemove",U=az?(d?(v?"MSPointerUp":"pointerup"):"touchend"):"mouseup",S=az?null:"mouseleave",aD=(d?(v?"MSPointerCancel":"pointercancel"):"touchcancel");var ag=0,aP=null,ab=0,a1=0,aZ=0,G=1,aq=0,aJ=0,M=null;var aR=f(a4);var Z="start";var W=0;var aQ=null;var T=0,a2=0,a5=0,ad=0,N=0;var aW=null,af=null;try{aR.bind(J,aN);aR.bind(aD,a9)}catch(ak){f.error("events not supported "+J+","+aD+" on jQuery.swipe")}this.enable=function(){aR.bind(J,aN);aR.bind(aD,a9);return aR};this.disable=function(){aK();return aR};this.destroy=function(){aK();aR.data(B,null);return aR};this.option=function(bc,bb){if(av[bc]!==undefined){if(bb===undefined){return av[bc]}else{av[bc]=bb}}else{f.error("Option "+bc+" does not exist on jQuery.swipe.options")}return null};function aN(bd){if(aB()){return}if(f(bd.target).closest(av.excludedElements,aR).length>0){return}var be=bd.originalEvent?bd.originalEvent:bd;var bc,bb=a?be.touches[0]:be;Z=g;if(a){W=be.touches.length}else{bd.preventDefault()}ag=0;aP=null;aJ=null;ab=0;a1=0;aZ=0;G=1;aq=0;aQ=aj();M=aa();R();if(!a||(W===av.fingers||av.fingers===i)||aX()){ai(0,bb);T=at();if(W==2){ai(1,be.touches[1]);a1=aZ=au(aQ[0].start,aQ[1].start)}if(av.swipeStatus||av.pinchStatus){bc=O(be,Z)}}else{bc=false}if(bc===false){Z=q;O(be,Z);return bc}else{if(av.hold){af=setTimeout(f.proxy(function(){aR.trigger("hold",[be.target]);if(av.hold){bc=av.hold.call(aR,be,be.target)}},this),av.longTapThreshold)}ao(true)}return null}function a3(be){var bh=be.originalEvent?be.originalEvent:be;if(Z===h||Z===q||am()){return}var bd,bc=a?bh.touches[0]:bh;var bf=aH(bc);a2=at();if(a){W=bh.touches.length}if(av.hold){clearTimeout(af)}Z=k;if(W==2){if(a1==0){ai(1,bh.touches[1]);a1=aZ=au(aQ[0].start,aQ[1].start)}else{aH(bh.touches[1]);aZ=au(aQ[0].end,aQ[1].end);aJ=ar(aQ[0].end,aQ[1].end)}G=a7(a1,aZ);aq=Math.abs(a1-aZ)}if((W===av.fingers||av.fingers===i)||!a||aX()){aP=aL(bf.start,bf.end);al(be,aP);ag=aS(bf.start,bf.end);ab=aM();aI(aP,ag);if(av.swipeStatus||av.pinchStatus){bd=O(bh,Z)}if(!av.triggerOnTouchEnd||av.triggerOnTouchLeave){var bb=true;if(av.triggerOnTouchLeave){var bg=aY(this);bb=E(bf.end,bg)}if(!av.triggerOnTouchEnd&&bb){Z=aC(k)}else{if(av.triggerOnTouchLeave&&!bb){Z=aC(h)}}if(Z==q||Z==h){O(bh,Z)}}}else{Z=q;O(bh,Z)}if(bd===false){Z=q;O(bh,Z)}}function L(bb){var bc=bb.originalEvent;if(a){if(bc.touches.length>0){F();return true}}if(am()){W=ad}a2=at();ab=aM();if(ba()||!an()){Z=q;O(bc,Z)}else{if(av.triggerOnTouchEnd||(av.triggerOnTouchEnd==false&&Z===k)){bb.preventDefault();Z=h;O(bc,Z)}else{if(!av.triggerOnTouchEnd&&a6()){Z=h;aF(bc,Z,A)}else{if(Z===k){Z=q;O(bc,Z)}}}}ao(false);return null}function a9(){W=0;a2=0;T=0;a1=0;aZ=0;G=1;R();ao(false)}function K(bb){var bc=bb.originalEvent;if(av.triggerOnTouchLeave){Z=aC(h);O(bc,Z)}}function aK(){aR.unbind(J,aN);aR.unbind(aD,a9);aR.unbind(ay,a3);aR.unbind(U,L);if(S){aR.unbind(S,K)}ao(false)}function aC(bf){var be=bf;var bd=aA();var bc=an();var bb=ba();if(!bd||bb){be=q}else{if(bc&&bf==k&&(!av.triggerOnTouchEnd||av.triggerOnTouchLeave)){be=h}else{if(!bc&&bf==h&&av.triggerOnTouchLeave){be=q}}}return be}function O(bd,bb){var bc=undefined;if(I()||V()){bc=aF(bd,bb,l)}else{if((P()||aX())&&bc!==false){bc=aF(bd,bb,t)}}if(aG()&&bc!==false){bc=aF(bd,bb,j)}else{if(ap()&&bc!==false){bc=aF(bd,bb,b)}else{if(ah()&&bc!==false){bc=aF(bd,bb,A)}}}if(bb===q){a9(bd)}if(bb===h){if(a){if(bd.touches.length==0){a9(bd)}}else{a9(bd)}}return bc}function aF(be,bb,bd){var bc=undefined;if(bd==l){aR.trigger("swipeStatus",[bb,aP||null,ag||0,ab||0,W,aQ]);if(av.swipeStatus){bc=av.swipeStatus.call(aR,be,bb,aP||null,ag||0,ab||0,W,aQ);if(bc===false){return false}}if(bb==h&&aV()){aR.trigger("swipe",[aP,ag,ab,W,aQ]);if(av.swipe){bc=av.swipe.call(aR,be,aP,ag,ab,W,aQ);if(bc===false){return false}}switch(aP){case p:aR.trigger("swipeLeft",[aP,ag,ab,W,aQ]);if(av.swipeLeft){bc=av.swipeLeft.call(aR,be,aP,ag,ab,W,aQ)}break;case o:aR.trigger("swipeRight",[aP,ag,ab,W,aQ]);if(av.swipeRight){bc=av.swipeRight.call(aR,be,aP,ag,ab,W,aQ)}break;case e:aR.trigger("swipeUp",[aP,ag,ab,W,aQ]);if(av.swipeUp){bc=av.swipeUp.call(aR,be,aP,ag,ab,W,aQ)}break;case x:aR.trigger("swipeDown",[aP,ag,ab,W,aQ]);if(av.swipeDown){bc=av.swipeDown.call(aR,be,aP,ag,ab,W,aQ)}break}}}if(bd==t){aR.trigger("pinchStatus",[bb,aJ||null,aq||0,ab||0,W,G,aQ]);if(av.pinchStatus){bc=av.pinchStatus.call(aR,be,bb,aJ||null,aq||0,ab||0,W,G,aQ);if(bc===false){return false}}if(bb==h&&a8()){switch(aJ){case c:aR.trigger("pinchIn",[aJ||null,aq||0,ab||0,W,G,aQ]);if(av.pinchIn){bc=av.pinchIn.call(aR,be,aJ||null,aq||0,ab||0,W,G,aQ)}break;case z:aR.trigger("pinchOut",[aJ||null,aq||0,ab||0,W,G,aQ]);if(av.pinchOut){bc=av.pinchOut.call(aR,be,aJ||null,aq||0,ab||0,W,G,aQ)}break}}}if(bd==A){if(bb===q||bb===h){clearTimeout(aW);clearTimeout(af);if(Y()&&!H()){N=at();aW=setTimeout(f.proxy(function(){N=null;aR.trigger("tap",[be.target]);if(av.tap){bc=av.tap.call(aR,be,be.target)}},this),av.doubleTapThreshold)}else{N=null;aR.trigger("tap",[be.target]);if(av.tap){bc=av.tap.call(aR,be,be.target)}}}}else{if(bd==j){if(bb===q||bb===h){clearTimeout(aW);N=null;aR.trigger("doubletap",[be.target]);if(av.doubleTap){bc=av.doubleTap.call(aR,be,be.target)}}}else{if(bd==b){if(bb===q||bb===h){clearTimeout(aW);N=null;aR.trigger("longtap",[be.target]);if(av.longTap){bc=av.longTap.call(aR,be,be.target)}}}}}return bc}function an(){var bb=true;if(av.threshold!==null){bb=ag>=av.threshold}return bb}function ba(){var bb=false;if(av.cancelThreshold!==null&&aP!==null){bb=(aT(aP)-ag)>=av.cancelThreshold}return bb}function ae(){if(av.pinchThreshold!==null){return aq>=av.pinchThreshold}return true}function aA(){var bb;if(av.maxTimeThreshold){if(ab>=av.maxTimeThreshold){bb=false}else{bb=true}}else{bb=true}return bb}function al(bb,bc){if(av.allowPageScroll===m||aX()){bb.preventDefault()}else{var bd=av.allowPageScroll===s;switch(bc){case p:if((av.swipeLeft&&bd)||(!bd&&av.allowPageScroll!=D)){bb.preventDefault()}break;case o:if((av.swipeRight&&bd)||(!bd&&av.allowPageScroll!=D)){bb.preventDefault()}break;case e:if((av.swipeUp&&bd)||(!bd&&av.allowPageScroll!=u)){bb.preventDefault()}break;case x:if((av.swipeDown&&bd)||(!bd&&av.allowPageScroll!=u)){bb.preventDefault()}break}}}function a8(){var bc=aO();var bb=X();var bd=ae();return bc&&bb&&bd}function aX(){return !!(av.pinchStatus||av.pinchIn||av.pinchOut)}function P(){return !!(a8()&&aX())}function aV(){var be=aA();var bg=an();var bd=aO();var bb=X();var bc=ba();var bf=!bc&&bb&&bd&&bg&&be;return bf}function V(){return !!(av.swipe||av.swipeStatus||av.swipeLeft||av.swipeRight||av.swipeUp||av.swipeDown)}function I(){return !!(aV()&&V())}function aO(){return((W===av.fingers||av.fingers===i)||!a)}function X(){return aQ[0].end.x!==0}function a6(){return !!(av.tap)}function Y(){return !!(av.doubleTap)}function aU(){return !!(av.longTap)}function Q(){if(N==null){return false}var bb=at();return(Y()&&((bb-N)<=av.doubleTapThreshold))}function H(){return Q()}function ax(){return((W===1||!a)&&(isNaN(ag)||agav.longTapThreshold)&&(ag=0)){return p}else{if((bd<=360)&&(bd>=315)){return p}else{if((bd>=135)&&(bd<=225)){return o}else{if((bd>45)&&(bd<135)){return x}else{return e}}}}}function at(){var bb=new Date();return bb.getTime()}function aY(bb){bb=f(bb);var bd=bb.offset();var bc={left:bd.left,right:bd.left+bb.outerWidth(),top:bd.top,bottom:bd.top+bb.outerHeight()};return bc}function E(bb,bc){return(bb.x>bc.left&&bb.xbc.top&&bb.ye;e++)r[s[e]]=r=r[s[e]]||{};return r},h=l("com.greensock"),_=1e-10,u=function(t){var e,i=[],s=t.length;for(e=0;e!==s;i.push(t[e++]));return i},m=function(){},f=function(){var t=Object.prototype.toString,e=t.call([]);return function(i){return null!=i&&(i instanceof Array||"object"==typeof i&&!!i.push&&t.call(i)===e)}}(),c={},p=function(s,r,n,a){this.sc=c[s]?c[s].sc:[],c[s]=this,this.gsClass=null,this.func=n;var o=[];this.check=function(h){for(var _,u,m,f,d=r.length,v=d;--d>-1;)(_=c[r[d]]||new p(r[d],[])).gsClass?(o[d]=_.gsClass,v--):h&&_.sc.push(this);if(0===v&&n)for(u=("com.greensock."+s).split("."),m=u.pop(),f=l(u.join("."))[m]=this.gsClass=n.apply(n,o),a&&(i[m]=f,"function"==typeof define&&define.amd?define((t.GreenSockAMDPath?t.GreenSockAMDPath+"/":"")+s.split(".").pop(),[],function(){return f}):s===e&&"undefined"!=typeof module&&module.exports&&(module.exports=f)),d=0;this.sc.length>d;d++)this.sc[d].check()},this.check(!0)},d=t._gsDefine=function(t,e,i,s){return new p(t,e,i,s)},v=h._class=function(t,e,i){return e=e||function(){},d(t,[],function(){return e},i),e};d.globals=i;var g=[0,0,1,1],T=[],y=v("easing.Ease",function(t,e,i,s){this._func=t,this._type=i||0,this._power=s||0,this._params=e?g.concat(e):g},!0),w=y.map={},P=y.register=function(t,e,i,s){for(var r,n,a,o,l=e.split(","),_=l.length,u=(i||"easeIn,easeOut,easeInOut").split(",");--_>-1;)for(n=l[_],r=s?v("easing."+n,null,!0):h.easing[n]||{},a=u.length;--a>-1;)o=u[a],w[n+"."+o]=w[o+n]=r[o]=t.getRatio?t:t[o]||new t};for(n=y.prototype,n._calcEnd=!1,n.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,s=1===e?1-t:2===e?t:.5>t?2*t:2*(1-t);return 1===i?s*=s:2===i?s*=s*s:3===i?s*=s*s*s:4===i&&(s*=s*s*s*s),1===e?1-s:2===e?s:.5>t?s/2:1-s/2},s=["Linear","Quad","Cubic","Quart","Quint,Strong"],r=s.length;--r>-1;)n=s[r]+",Power"+r,P(new y(null,null,1,r),n,"easeOut",!0),P(new y(null,null,2,r),n,"easeIn"+(0===r?",easeNone":"")),P(new y(null,null,3,r),n,"easeInOut");w.linear=h.easing.Linear.easeIn,w.swing=h.easing.Quad.easeInOut;var b=v("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});n=b.prototype,n.addEventListener=function(t,e,i,s,r){r=r||0;var n,l,h=this._listeners[t],_=0;for(null==h&&(this._listeners[t]=h=[]),l=h.length;--l>-1;)n=h[l],n.c===e&&n.s===i?h.splice(l,1):0===_&&r>n.pr&&(_=l+1);h.splice(_,0,{c:e,s:i,up:s,pr:r}),this!==a||o||a.wake()},n.removeEventListener=function(t,e){var i,s=this._listeners[t];if(s)for(i=s.length;--i>-1;)if(s[i].c===e)return s.splice(i,1),void 0},n.dispatchEvent=function(t){var e,i,s,r=this._listeners[t];if(r)for(e=r.length,i=this._eventTarget;--e>-1;)s=r[e],s&&(s.up?s.c.call(s.s||i,{type:t,target:i}):s.c.call(s.s||i))};var k=t.requestAnimationFrame,A=t.cancelAnimationFrame,S=Date.now||function(){return(new Date).getTime()},x=S();for(s=["ms","moz","webkit","o"],r=s.length;--r>-1&&!k;)k=t[s[r]+"RequestAnimationFrame"],A=t[s[r]+"CancelAnimationFrame"]||t[s[r]+"CancelRequestAnimationFrame"];v("Ticker",function(t,e){var i,s,r,n,l,h=this,u=S(),f=e!==!1&&k,c=500,p=33,d=function(t){var e,a,o=S()-x;o>c&&(u+=o-p),x+=o,h.time=(x-u)/1e3,e=h.time-l,(!i||e>0||t===!0)&&(h.frame++,l+=e+(e>=n?.004:n-e),a=!0),t!==!0&&(r=s(d)),a&&h.dispatchEvent("tick")};b.call(h),h.time=h.frame=0,h.tick=function(){d(!0)},h.lagSmoothing=function(t,e){c=t||1/_,p=Math.min(e,c,0)},h.sleep=function(){null!=r&&(f&&A?A(r):clearTimeout(r),s=m,r=null,h===a&&(o=!1))},h.wake=function(){null!==r?h.sleep():h.frame>10&&(x=S()-c+5),s=0===i?m:f&&k?k:function(t){return setTimeout(t,0|1e3*(l-h.time)+1)},h===a&&(o=!0),d(2)},h.fps=function(t){return arguments.length?(i=t,n=1/(i||60),l=this.time+n,h.wake(),void 0):i},h.useRAF=function(t){return arguments.length?(h.sleep(),f=t,h.fps(i),void 0):f},h.fps(t),setTimeout(function(){f&&(!r||5>h.frame)&&h.useRAF(!1)},1500)}),n=h.Ticker.prototype=new h.events.EventDispatcher,n.constructor=h.Ticker;var R=v("core.Animation",function(t,e){if(this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=e.immediateRender===!0,this.data=e.data,this._reversed=e.reversed===!0,B){o||a.wake();var i=this.vars.useFrames?q:B;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});a=R.ticker=new h.Ticker,n=R.prototype,n._dirty=n._gc=n._initted=n._paused=!1,n._totalTime=n._time=0,n._rawPrevTime=-1,n._next=n._last=n._onUpdate=n._timeline=n.timeline=null,n._paused=!1;var C=function(){o&&S()-x>2e3&&a.wake(),setTimeout(C,2e3)};C(),n.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},n.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},n.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},n.seek=function(t,e){return this.totalTime(Number(t),e!==!1)},n.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,e!==!1,!0)},n.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},n.render=function(){},n.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},n.isActive=function(){var t,e=this._timeline,i=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime())>=i&&i+this.totalDuration()/this._timeScale>t},n._enabled=function(t,e){return o||a.wake(),this._gc=!t,this._active=this.isActive(),e!==!0&&(t&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},n._kill=function(){return this._enabled(!1,!1)},n.kill=function(t,e){return this._kill(t,e),this},n._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},n._swapSelfInParams=function(t){for(var e=t.length,i=t.concat();--e>-1;)"{self}"===t[e]&&(i[e]=this);return i},n.eventCallback=function(t,e,i,s){if("on"===(t||"").substr(0,2)){var r=this.vars;if(1===arguments.length)return r[t];null==e?delete r[t]:(r[t]=e,r[t+"Params"]=f(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,r[t+"Scope"]=s),"onUpdate"===t&&(this._onUpdate=e)}return this},n.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},n.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._timethis._duration?this._duration:t,e)):this._time},n.totalTime=function(t,e,i){if(o||a.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>t&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var s=this._totalDuration,r=this._timeline;if(t>s&&!i&&(t=s),this._startTime=(this._paused?this._pauseTime:r._time)-(this._reversed?s-t:t)/this._timeScale,r._dirty||this._uncache(!1),r._timeline)for(;r._timeline;)r._timeline._time!==(r._startTime+r._totalTime)/r._timeScale&&r.totalTime(r._totalTime,!0),r=r._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==t||0===this._duration)&&(this.render(t,e,!1),z.length&&M())}return this},n.progress=n.totalProgress=function(t,e){return arguments.length?this.totalTime(this.duration()*t,e):this._time/this.duration()},n.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay)),this):this._startTime},n.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},n.timeScale=function(t){if(!arguments.length)return this._timeScale;if(t=t||_,this._timeline&&this._timeline.smoothChildTiming){var e=this._pauseTime,i=e||0===e?e:this._timeline.totalTime();this._startTime=i-(i-this._startTime)*this._timeScale/t}return this._timeScale=t,this._uncache(!1)},n.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},n.paused=function(t){if(!arguments.length)return this._paused;if(t!=this._paused&&this._timeline){o||t||a.wake();var e=this._timeline,i=e.rawTime(),s=i-this._pauseTime;!t&&e.smoothChildTiming&&(this._startTime+=s,this._uncache(!1)),this._pauseTime=t?i:null,this._paused=t,this._active=this.isActive(),!t&&0!==s&&this._initted&&this.duration()&&this.render(e.smoothChildTiming?this._totalTime:(i-this._startTime)/this._timeScale,!0,!0)}return this._gc&&!t&&this._enabled(!0,!1),this};var D=v("core.SimpleTimeline",function(t){R.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});n=D.prototype=new R,n.constructor=D,n.kill()._gc=!1,n._first=n._last=n._recent=null,n._sortChildren=!1,n.add=n.insert=function(t,e){var i,s;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=t._startTime+(this.rawTime()-t._startTime)/t._timeScale),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),i=this._last,this._sortChildren)for(s=t._startTime;i&&i._startTime>s;)i=i._prev;return i?(t._next=i._next,i._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=i,this._recent=t,this._timeline&&this._uncache(!0),this},n._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},n.render=function(t,e,i){var s,r=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;r;)s=r._next,(r._active||t>=r._startTime&&!r._paused)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=s},n.rawTime=function(){return o||a.wake(),this._totalTime};var I=v("TweenLite",function(e,i,s){if(R.call(this,i,s),this.render=I.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:I.selector(e)||e;var r,n,a,o=e.jquery||e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType),l=this.vars.overwrite;if(this._overwrite=l=null==l?Q[I.defaultOverwrite]:"number"==typeof l?l>>0:Q[l],(o||e instanceof Array||e.push&&f(e))&&"number"!=typeof e[0])for(this._targets=a=u(e),this._propLookup=[],this._siblings=[],r=0;a.length>r;r++)n=a[r],n?"string"!=typeof n?n.length&&n!==t&&n[0]&&(n[0]===t||n[0].nodeType&&n[0].style&&!n.nodeType)?(a.splice(r--,1),this._targets=a=a.concat(u(n))):(this._siblings[r]=$(n,this,!1),1===l&&this._siblings[r].length>1&&H(n,this,null,1,this._siblings[r])):(n=a[r--]=I.selector(n),"string"==typeof n&&a.splice(r+1,1)):a.splice(r--,1);else this._propLookup={},this._siblings=$(e,this,!1),1===l&&this._siblings.length>1&&H(e,this,null,1,this._siblings);(this.vars.immediateRender||0===i&&0===this._delay&&this.vars.immediateRender!==!1)&&(this._time=-_,this.render(-this._delay))},!0),E=function(e){return e&&e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType)},O=function(t,e){var i,s={};for(i in t)G[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!U[i]||U[i]&&U[i]._autoCSS)||(s[i]=t[i],delete t[i]);t.css=s};n=I.prototype=new R,n.constructor=I,n.kill()._gc=!1,n.ratio=0,n._firstPT=n._targets=n._overwrittenProps=n._startAt=null,n._notifyPluginsOfEnabled=n._lazy=!1,I.version="1.14.2",I.defaultEase=n._ease=new y(null,null,1,1),I.defaultOverwrite="auto",I.ticker=a,I.autoSleep=!0,I.lagSmoothing=function(t,e){a.lagSmoothing(t,e)},I.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(I.selector=i,i(e)):"undefined"==typeof document?e:document.querySelectorAll?document.querySelectorAll(e):document.getElementById("#"===e.charAt(0)?e.substr(1):e)};var z=[],L={},N=I._internals={isArray:f,isSelector:E,lazyTweens:z},U=I._plugins={},F=N.tweenLookup={},j=0,G=N.reservedProps={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,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1},Q={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},q=R._rootFramesTimeline=new D,B=R._rootTimeline=new D,M=N.lazyRender=function(){var t,e=z.length;for(L={};--e>-1;)t=z[e],t&&t._lazy!==!1&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);z.length=0};B._startTime=a.time,q._startTime=a.frame,B._active=q._active=!0,setTimeout(M,1),R._updateRoot=I.render=function(){var t,e,i;if(z.length&&M(),B.render((a.time-B._startTime)*B._timeScale,!1,!1),q.render((a.frame-q._startTime)*q._timeScale,!1,!1),z.length&&M(),!(a.frame%120)){for(i in F){for(e=F[i].tweens,t=e.length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete F[i]}if(i=B._first,(!i||i._paused)&&I.autoSleep&&!q._first&&1===a._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||a.sleep()}}},a.addEventListener("tick",R._updateRoot);var $=function(t,e,i){var s,r,n=t._gsTweenID;if(F[n||(t._gsTweenID=n="t"+j++)]||(F[n]={target:t,tweens:[]}),e&&(s=F[n].tweens,s[r=s.length]=e,i))for(;--r>-1;)s[r]===e&&s.splice(r,1);return F[n].tweens},K=function(t,e,i,s){var r,n,a=t.vars.onOverwrite;return a&&(r=a(t,e,i,s)),a=I.onOverwrite,a&&(n=a(t,e,i,s)),r!==!1&&n!==!1},H=function(t,e,i,s,r){var n,a,o,l;if(1===s||s>=4){for(l=r.length,n=0;l>n;n++)if((o=r[n])!==e)o._gc||K(o,e)&&o._enabled(!1,!1)&&(a=!0);else if(5===s)break;return a}var h,u=e._startTime+_,m=[],f=0,c=0===e._duration;for(n=r.length;--n>-1;)(o=r[n])===e||o._gc||o._paused||(o._timeline!==e._timeline?(h=h||J(e,0,c),0===J(o,h,c)&&(m[f++]=o)):u>=o._startTime&&o._startTime+o.totalDuration()/o._timeScale>u&&((c||!o._initted)&&2e-10>=u-o._startTime||(m[f++]=o)));for(n=f;--n>-1;)if(o=m[n],2===s&&o._kill(i,t,e)&&(a=!0),2!==s||!o._firstPT&&o._initted){if(2!==s&&!K(o,e))continue;o._enabled(!1,!1)&&(a=!0)}return a},J=function(t,e,i){for(var s=t._timeline,r=s._timeScale,n=t._startTime;s._timeline;){if(n+=s._startTime,r*=s._timeScale,s._paused)return-100;s=s._timeline}return n/=r,n>e?n-e:i&&n===e||!t._initted&&2*_>n-e?_:(n+=t.totalDuration()/t._timeScale/r)>e+_?0:n-e-_};n._init=function(){var t,e,i,s,r,n=this.vars,a=this._overwrittenProps,o=this._duration,l=!!n.immediateRender,h=n.ease;if(n.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),r={};for(s in n.startAt)r[s]=n.startAt[s];if(r.overwrite=!1,r.immediateRender=!0,r.lazy=l&&n.lazy!==!1,r.startAt=r.delay=null,this._startAt=I.to(this.target,0,r),l)if(this._time>0)this._startAt=null;else if(0!==o)return}else if(n.runBackwards&&0!==o)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{0!==this._time&&(l=!1),i={};for(s in n)G[s]&&"autoCSS"!==s||(i[s]=n[s]);if(i.overwrite=0,i.data="isFromStart",i.lazy=l&&n.lazy!==!1,i.immediateRender=l,this._startAt=I.to(this.target,0,i),l){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=h=h?h instanceof y?h:"function"==typeof h?new y(h,n.easeParams):w[h]||I.defaultEase:I.defaultEase,n.easeParams instanceof Array&&h.config&&(this._ease=h.config.apply(h,n.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(t=this._targets.length;--t>-1;)this._initProps(this._targets[t],this._propLookup[t]={},this._siblings[t],a?a[t]:null)&&(e=!0);else e=this._initProps(this.target,this._propLookup,this._siblings,a);if(e&&I._onPluginEvent("_onInitAllProps",this),a&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),n.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=n.onUpdate,this._initted=!0},n._initProps=function(e,i,s,r){var n,a,o,l,h,_;if(null==e)return!1;L[e._gsTweenID]&&M(),this.vars.css||e.style&&e!==t&&e.nodeType&&U.css&&this.vars.autoCSS!==!1&&O(this.vars,e);for(n in this.vars){if(_=this.vars[n],G[n])_&&(_ instanceof Array||_.push&&f(_))&&-1!==_.join("").indexOf("{self}")&&(this.vars[n]=_=this._swapSelfInParams(_,this));else if(U[n]&&(l=new U[n])._onInitTween(e,this.vars[n],this)){for(this._firstPT=h={_next:this._firstPT,t:l,p:"setRatio",s:0,c:1,f:!0,n:n,pg:!0,pr:l._priority},a=l._overwriteProps.length;--a>-1;)i[l._overwriteProps[a]]=this._firstPT;(l._priority||l._onInitAllProps)&&(o=!0),(l._onDisable||l._onEnable)&&(this._notifyPluginsOfEnabled=!0)}else this._firstPT=i[n]=h={_next:this._firstPT,t:e,p:n,f:"function"==typeof e[n],n:n,pg:!1,pr:0},h.s=h.f?e[n.indexOf("set")||"function"!=typeof e["get"+n.substr(3)]?n:"get"+n.substr(3)]():parseFloat(e[n]),h.c="string"==typeof _&&"="===_.charAt(1)?parseInt(_.charAt(0)+"1",10)*Number(_.substr(2)):Number(_)-h.s||0;h&&h._next&&(h._next._prev=h)}return r&&this._kill(r,e)?this._initProps(e,i,s,r):this._overwrite>1&&this._firstPT&&s.length>1&&H(e,this,i,this._overwrite,s)?(this._kill(i,e),this._initProps(e,i,s,r)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(L[e._gsTweenID]=!0),o)},n.render=function(t,e,i){var s,r,n,a,o=this._time,l=this._duration,h=this._rawPrevTime;if(t>=l)this._totalTime=this._time=l,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(s=!0,r="onComplete"),0===l&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(0===t||0>h||h===_)&&h!==t&&(i=!0,h>_&&(r="onReverseComplete")),this._rawPrevTime=a=!e||t||h===t?t:_);else if(1e-7>t)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==o||0===l&&h>0&&h!==_)&&(r="onReverseComplete",s=this._reversed),0>t&&(this._active=!1,0===l&&(this._initted||!this.vars.lazy||i)&&(h>=0&&(i=!0),this._rawPrevTime=a=!e||t||h===t?t:_)),this._initted||(i=!0);else if(this._totalTime=this._time=t,this._easeType){var u=t/l,m=this._easeType,f=this._easePower;(1===m||3===m&&u>=.5)&&(u=1-u),3===m&&(u*=2),1===f?u*=u:2===f?u*=u*u:3===f?u*=u*u*u:4===f&&(u*=u*u*u*u),this.ratio=1===m?1-u:2===m?u:.5>t/l?u/2:1-u/2}else this.ratio=this._ease.getRatio(t/l);if(this._time!==o||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=o,this._rawPrevTime=h,z.push(this),this._lazy=[t,e],void 0;this._time&&!s?this.ratio=this._ease.getRatio(this._time/l):s&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==o&&t>=0&&(this._active=!0),0===o&&(this._startAt&&(t>=0?this._startAt.render(t,e,i):r||(r="_dummyGS")),this.vars.onStart&&(0!==this._time||0===l)&&(e||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||T))),n=this._firstPT;n;)n.f?n.t[n.p](n.c*this.ratio+n.s):n.t[n.p]=n.c*this.ratio+n.s,n=n._next;this._onUpdate&&(0>t&&this._startAt&&t!==-1e-4&&this._startAt.render(t,e,i),e||(this._time!==o||s)&&this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||T)),r&&(!this._gc||i)&&(0>t&&this._startAt&&!this._onUpdate&&t!==-1e-4&&this._startAt.render(t,e,i),s&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[r]&&this.vars[r].apply(this.vars[r+"Scope"]||this,this.vars[r+"Params"]||T),0===l&&this._rawPrevTime===_&&a!==_&&(this._rawPrevTime=0))}},n._kill=function(t,e,i){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:I.selector(e)||e;var s,r,n,a,o,l,h,_,u;if((f(e)||E(e))&&"number"!=typeof e[0])for(s=e.length;--s>-1;)this._kill(t,e[s])&&(l=!0);else{if(this._targets){for(s=this._targets.length;--s>-1;)if(e===this._targets[s]){o=this._propLookup[s]||{},this._overwrittenProps=this._overwrittenProps||[],r=this._overwrittenProps[s]=t?this._overwrittenProps[s]||{}:"all";break}}else{if(e!==this.target)return!1;o=this._propLookup,r=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(o){if(h=t||o,_=t!==r&&"all"!==r&&t!==o&&("object"!=typeof t||!t._tempKill),i&&(I.onOverwrite||this.vars.onOverwrite)){for(n in h)o[n]&&(u||(u=[]),u.push(n));if(!K(this,i,e,u))return!1}for(n in h)(a=o[n])&&(a.pg&&a.t._kill(h)&&(l=!0),a.pg&&0!==a.t._overwriteProps.length||(a._prev?a._prev._next=a._next:a===this._firstPT&&(this._firstPT=a._next),a._next&&(a._next._prev=a._prev),a._next=a._prev=null),delete o[n]),_&&(r[n]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return l},n.invalidate=function(){return this._notifyPluginsOfEnabled&&I._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],R.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-_,this.render(-this._delay)),this},n._enabled=function(t,e){if(o||a.wake(),t&&this._gc){var i,s=this._targets;if(s)for(i=s.length;--i>-1;)this._siblings[i]=$(s[i],this,!0);else this._siblings=$(this.target,this,!0)}return R.prototype._enabled.call(this,t,e),this._notifyPluginsOfEnabled&&this._firstPT?I._onPluginEvent(t?"_onEnable":"_onDisable",this):!1},I.to=function(t,e,i){return new I(t,e,i)},I.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new I(t,e,i)},I.fromTo=function(t,e,i,s){return s.startAt=i,s.immediateRender=0!=s.immediateRender&&0!=i.immediateRender,new I(t,e,s)},I.delayedCall=function(t,e,i,s,r){return new I(e,0,{delay:t,onComplete:e,onCompleteParams:i,onCompleteScope:s,onReverseComplete:e,onReverseCompleteParams:i,onReverseCompleteScope:s,immediateRender:!1,useFrames:r,overwrite:0})},I.set=function(t,e){return new I(t,0,e)},I.getTweensOf=function(t,e){if(null==t)return[];t="string"!=typeof t?t:I.selector(t)||t;var i,s,r,n;if((f(t)||E(t))&&"number"!=typeof t[0]){for(i=t.length,s=[];--i>-1;)s=s.concat(I.getTweensOf(t[i],e));for(i=s.length;--i>-1;)for(n=s[i],r=i;--r>-1;)n===s[r]&&s.splice(i,1)}else for(s=$(t).concat(),i=s.length;--i>-1;)(s[i]._gc||e&&!s[i].isActive())&&s.splice(i,1);return s},I.killTweensOf=I.killDelayedCallsTo=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var s=I.getTweensOf(t,e),r=s.length;--r>-1;)s[r]._kill(i,t)};var V=v("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=V.prototype},!0);if(n=V.prototype,V.version="1.10.1",V.API=2,n._firstPT=null,n._addTween=function(t,e,i,s,r,n){var a,o;return null!=s&&(a="number"==typeof s||"="!==s.charAt(1)?Number(s)-i:parseInt(s.charAt(0)+"1",10)*Number(s.substr(2)))?(this._firstPT=o={_next:this._firstPT,t:t,p:e,s:i,c:a,f:"function"==typeof t[e],n:r||e,r:n},o._next&&(o._next._prev=o),o):void 0},n.setRatio=function(t){for(var e,i=this._firstPT,s=1e-6;i;)e=i.c*t+i.s,i.r?e=Math.round(e):s>e&&e>-s&&(e=0),i.f?i.t[i.p](e):i.t[i.p]=e,i=i._next},n._kill=function(t){var e,i=this._overwriteProps,s=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=i.length;--e>-1;)null!=t[i[e]]&&i.splice(e,1);for(;s;)null!=t[s.n]&&(s._next&&(s._next._prev=s._prev),s._prev?(s._prev._next=s._next,s._prev=null):this._firstPT===s&&(this._firstPT=s._next)),s=s._next;return!1},n._roundProps=function(t,e){for(var i=this._firstPT;i;)(t[this._propName]||null!=i.n&&t[i.n.split(this._propName+"_").join("")])&&(i.r=e),i=i._next},I._onPluginEvent=function(t,e){var i,s,r,n,a,o=e._firstPT;if("_onInitAllProps"===t){for(;o;){for(a=o._next,s=r;s&&s.pr>o.pr;)s=s._next;(o._prev=s?s._prev:n)?o._prev._next=o:r=o,(o._next=s)?s._prev=o:n=o,o=a}o=e._firstPT=r}for(;o;)o.pg&&"function"==typeof o.t[t]&&o.t[t]()&&(i=!0),o=o._next;return i},V.activate=function(t){for(var e=t.length;--e>-1;)t[e].API===V.API&&(U[(new t[e])._propName]=t[e]);return!0},d.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,i=t.propName,s=t.priority||0,r=t.overwriteProps,n={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_roundProps",initAll:"_onInitAllProps"},a=v("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",function(){V.call(this,i,s),this._overwriteProps=r||[]},t.global===!0),o=a.prototype=new V(i);o.constructor=a,a.API=t.API;for(e in n)"function"==typeof t[e]&&(o[n[e]]=t[e]);return a.version=t.version,V.activate([a]),a},s=t._gsQueue){for(r=0;s.length>r;r++)s[r]();for(n in c)c[n].func||t.console.log("GSAP encountered missing dependency: com.greensock."+n)}o=!1}})("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenLite"); + +/*! + * VERSION: 1.14.2 + * DATE: 2014-10-18 + * UPDATES AND DOCS AT: http://www.greensock.com + * + * @license Copyright (c) 2008-2014, GreenSock. All rights reserved. + * This work is subject to the terms at http://www.greensock.com/terms_of_use.html or for + * Club GreenSock members, the software agreement that was issued with your membership. + * + * @author: Jack Doyle, jack@greensock.com + */ +var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(t,e,i){var s=function(t){e.call(this,t),this._labels={},this.autoRemoveChildren=this.vars.autoRemoveChildren===!0,this.smoothChildTiming=this.vars.smoothChildTiming===!0,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var i,s,r=this.vars;for(s in r)i=r[s],o(i)&&-1!==i.join("").indexOf("{self}")&&(r[s]=this._swapSelfInParams(i));o(r.tweens)&&this.add(r.tweens,0,r.align,r.stagger)},r=1e-10,n=i._internals,a=n.isSelector,o=n.isArray,h=n.lazyTweens,l=n.lazyRender,_=[],u=_gsScope._gsDefine.globals,c=function(t){var e,i={};for(e in t)i[e]=t[e];return i},p=function(t,e,i,s){var r=t._timeline._totalTime;(e||!this._forcingPlayhead)&&(t._timeline.pause(t._startTime),e&&e.apply(s||t._timeline,i||_),this._forcingPlayhead&&t._timeline.seek(r))},f=function(t){var e,i=[],s=t.length;for(e=0;e!==s;i.push(t[e++]));return i},m=s.prototype=new e;return s.version="1.14.2",m.constructor=s,m.kill()._gc=m._forcingPlayhead=!1,m.to=function(t,e,s,r){var n=s.repeat&&u.TweenMax||i;return e?this.add(new n(t,e,s),r):this.set(t,s,r)},m.from=function(t,e,s,r){return this.add((s.repeat&&u.TweenMax||i).from(t,e,s),r)},m.fromTo=function(t,e,s,r,n){var a=r.repeat&&u.TweenMax||i;return e?this.add(a.fromTo(t,e,s,r),n):this.set(t,r,n)},m.staggerTo=function(t,e,r,n,o,h,l,_){var u,p=new s({onComplete:h,onCompleteParams:l,onCompleteScope:_,smoothChildTiming:this.smoothChildTiming});for("string"==typeof t&&(t=i.selector(t)||t),t=t||[],a(t)&&(t=f(t)),n=n||0,0>n&&(t=f(t),t.reverse(),n*=-1),u=0;t.length>u;u++)r.startAt&&(r.startAt=c(r.startAt)),p.to(t[u],e,c(r),u*n);return this.add(p,o)},m.staggerFrom=function(t,e,i,s,r,n,a,o){return i.immediateRender=0!=i.immediateRender,i.runBackwards=!0,this.staggerTo(t,e,i,s,r,n,a,o)},m.staggerFromTo=function(t,e,i,s,r,n,a,o,h){return s.startAt=i,s.immediateRender=0!=s.immediateRender&&0!=i.immediateRender,this.staggerTo(t,e,s,r,n,a,o,h)},m.call=function(t,e,s,r){return this.add(i.delayedCall(0,t,e,s),r)},m.set=function(t,e,s){return s=this._parseTimeOrLabel(s,0,!0),null==e.immediateRender&&(e.immediateRender=s===this._time&&!this._paused),this.add(new i(t,0,e),s)},s.exportRoot=function(t,e){t=t||{},null==t.smoothChildTiming&&(t.smoothChildTiming=!0);var r,n,a=new s(t),o=a._timeline;for(null==e&&(e=!0),o._remove(a,!0),a._startTime=0,a._rawPrevTime=a._time=a._totalTime=o._time,r=o._first;r;)n=r._next,e&&r instanceof i&&r.target===r.vars.onComplete||a.add(r,r._startTime-r._delay),r=n;return o.add(a,0),a},m.add=function(r,n,a,h){var l,_,u,c,p,f;if("number"!=typeof n&&(n=this._parseTimeOrLabel(n,0,!0,r)),!(r instanceof t)){if(r instanceof Array||r&&r.push&&o(r)){for(a=a||"normal",h=h||0,l=n,_=r.length,u=0;_>u;u++)o(c=r[u])&&(c=new s({tweens:c})),this.add(c,l),"string"!=typeof c&&"function"!=typeof c&&("sequence"===a?l=c._startTime+c.totalDuration()/c._timeScale:"start"===a&&(c._startTime-=c.delay())),l+=h;return this._uncache(!0)}if("string"==typeof r)return this.addLabel(r,n);if("function"!=typeof r)throw"Cannot add "+r+" into the timeline; it is not a tween, timeline, function, or string.";r=i.delayedCall(0,r)}if(e.prototype.add.call(this,r,n),(this._gc||this._time===this._duration)&&!this._paused&&this._durationr._startTime;p._timeline;)f&&p._timeline.smoothChildTiming?p.totalTime(p._totalTime,!0):p._gc&&p._enabled(!0,!1),p=p._timeline;return this},m.remove=function(e){if(e instanceof t)return this._remove(e,!1);if(e instanceof Array||e&&e.push&&o(e)){for(var i=e.length;--i>-1;)this.remove(e[i]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},m._remove=function(t,i){e.prototype._remove.call(this,t,i);var s=this._last;return s?this._time>s._startTime+s._totalDuration/s._timeScale&&(this._time=this.duration(),this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},m.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},m.insert=m.insertMultiple=function(t,e,i,s){return this.add(t,e||0,i,s)},m.appendMultiple=function(t,e,i,s){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,s)},m.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},m.addPause=function(t,e,i,s){return this.call(p,["{self}",e,i,s],this,t)},m.removeLabel=function(t){return delete this._labels[t],this},m.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},m._parseTimeOrLabel=function(e,i,s,r){var n;if(r instanceof t&&r.timeline===this)this.remove(r);else if(r&&(r instanceof Array||r.push&&o(r)))for(n=r.length;--n>-1;)r[n]instanceof t&&r[n].timeline===this&&this.remove(r[n]);if("string"==typeof i)return this._parseTimeOrLabel(i,s&&"number"==typeof e&&null==this._labels[i]?e-this.duration():0,s);if(i=i||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=this.duration());else{if(n=e.indexOf("="),-1===n)return null==this._labels[e]?s?this._labels[e]=this.duration()+i:i:this._labels[e]+i;i=parseInt(e.charAt(n-1)+"1",10)*Number(e.substr(n+1)),e=n>1?this._parseTimeOrLabel(e.substr(0,n-1),0,s):this.duration()}return Number(e)+i},m.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),e!==!1)},m.stop=function(){return this.paused(!0)},m.gotoAndPlay=function(t,e){return this.play(t,e)},m.gotoAndStop=function(t,e){return this.pause(t,e)},m.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var s,n,a,o,u,c=this._dirty?this.totalDuration():this._totalDuration,p=this._time,f=this._startTime,m=this._timeScale,d=this._paused;if(t>=c?(this._totalTime=this._time=c,this._reversed||this._hasPausedChild()||(n=!0,o="onComplete",0===this._duration&&(0===t||0>this._rawPrevTime||this._rawPrevTime===r)&&this._rawPrevTime!==t&&this._first&&(u=!0,this._rawPrevTime>r&&(o="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,t=c+1e-4):1e-7>t?(this._totalTime=this._time=0,(0!==p||0===this._duration&&this._rawPrevTime!==r&&(this._rawPrevTime>0||0>t&&this._rawPrevTime>=0))&&(o="onReverseComplete",n=this._reversed),0>t?(this._active=!1,this._rawPrevTime>=0&&this._first&&(u=!0),this._rawPrevTime=t):(this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:r,t=0,this._initted||(u=!0))):this._totalTime=this._time=this._rawPrevTime=t,this._time!==p&&this._first||i||u){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==p&&t>0&&(this._active=!0),0===p&&this.vars.onStart&&0!==this._time&&(e||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||_)),this._time>=p)for(s=this._first;s&&(a=s._next,!this._paused||d);)(s._active||s._startTime<=this._time&&!s._paused&&!s._gc)&&(s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(t-s._startTime)*s._timeScale,e,i):s.render((t-s._startTime)*s._timeScale,e,i)),s=a;else for(s=this._last;s&&(a=s._prev,!this._paused||d);)(s._active||p>=s._startTime&&!s._paused&&!s._gc)&&(s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(t-s._startTime)*s._timeScale,e,i):s.render((t-s._startTime)*s._timeScale,e,i)),s=a;this._onUpdate&&(e||(h.length&&l(),this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||_))),o&&(this._gc||(f===this._startTime||m!==this._timeScale)&&(0===this._time||c>=this.totalDuration())&&(n&&(h.length&&l(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[o]&&this.vars[o].apply(this.vars[o+"Scope"]||this,this.vars[o+"Params"]||_)))}},m._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof s&&t._hasPausedChild())return!0;t=t._next}return!1},m.getChildren=function(t,e,s,r){r=r||-9999999999;for(var n=[],a=this._first,o=0;a;)r>a._startTime||(a instanceof i?e!==!1&&(n[o++]=a):(s!==!1&&(n[o++]=a),t!==!1&&(n=n.concat(a.getChildren(!0,e,s)),o=n.length))),a=a._next;return n},m.getTweensOf=function(t,e){var s,r,n=this._gc,a=[],o=0;for(n&&this._enabled(!0,!0),s=i.getTweensOf(t),r=s.length;--r>-1;)(s[r].timeline===this||e&&this._contains(s[r]))&&(a[o++]=s[r]);return n&&this._enabled(!1,!0),a},m.recent=function(){return this._recent},m._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},m.shiftChildren=function(t,e,i){i=i||0;for(var s,r=this._first,n=this._labels;r;)r._startTime>=i&&(r._startTime+=t),r=r._next;if(e)for(s in n)n[s]>=i&&(n[s]+=t);return this._uncache(!0)},m._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),s=i.length,r=!1;--s>-1;)i[s]._kill(t,e)&&(r=!0);return r},m.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;--i>-1;)e[i]._enabled(!1,!1);return t!==!1&&(this._labels={}),this._uncache(!0)},m.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},m._enabled=function(t,i){if(t===this._gc)for(var s=this._first;s;)s._enabled(t,!0),s=s._next;return e.prototype._enabled.call(this,t,i)},m.totalTime=function(){this._forcingPlayhead=!0;var e=t.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,e},m.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},m.totalDuration=function(t){if(!arguments.length){if(this._dirty){for(var e,i,s=0,r=this._last,n=999999999999;r;)e=r._prev,r._dirty&&r.totalDuration(),r._startTime>n&&this._sortChildren&&!r._paused?this.add(r,r._startTime-r._delay):n=r._startTime,0>r._startTime&&!r._paused&&(s-=r._startTime,this._timeline.smoothChildTiming&&(this._startTime+=r._startTime/this._timeScale),this.shiftChildren(-r._startTime,!1,-9999999999),n=0),i=r._startTime+r._totalDuration/r._timeScale,i>s&&(s=i),r=e;this._duration=this._totalDuration=s,this._dirty=!1}return this._totalDuration}return 0!==this.totalDuration()&&0!==t&&this.timeScale(this._totalDuration/t),this},m.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===t._rootFramesTimeline},m.rawTime=function(){return this._paused?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale},s},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope)[t]};"function"==typeof define&&define.amd?define(["TweenLite"],e):"undefined"!=typeof module&&module.exports&&(require("./TweenLite.js"),module.exports=e())}("TimelineLite"); + +/*! + * VERSION: beta 1.9.4 + * DATE: 2014-07-17 + * UPDATES AND DOCS AT: http://www.greensock.com + * + * @license Copyright (c) 2008-2014, GreenSock. All rights reserved. + * This work is subject to the terms at http://www.greensock.com/terms_of_use.html or for + * Club GreenSock members, the software agreement that was issued with your membership. + * + * @author: Jack Doyle, jack@greensock.com + **/ +var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("easing.Back",["easing.Ease"],function(t){var e,i,s,r=_gsScope.GreenSockGlobals||_gsScope,n=r.com.greensock,a=2*Math.PI,o=Math.PI/2,h=n._class,l=function(e,i){var s=h("easing."+e,function(){},!0),r=s.prototype=new t;return r.constructor=s,r.getRatio=i,s},_=t.register||function(){},u=function(t,e,i,s){var r=h("easing."+t,{easeOut:new e,easeIn:new i,easeInOut:new s},!0);return _(r,t),r},c=function(t,e,i){this.t=t,this.v=e,i&&(this.next=i,i.prev=this,this.c=i.v-e,this.gap=i.t-t)},p=function(e,i){var s=h("easing."+e,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),r=s.prototype=new t;return r.constructor=s,r.getRatio=i,r.config=function(t){return new s(t)},s},f=u("Back",p("BackOut",function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1}),p("BackIn",function(t){return t*t*((this._p1+1)*t-this._p1)}),p("BackInOut",function(t){return 1>(t*=2)?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)})),m=h("easing.SlowMo",function(t,e,i){e=e||0===e?e:.7,null==t?t=.7:t>1&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcEnd=i===!0},!0),d=m.prototype=new t;return d.constructor=m,d.getRatio=function(t){var e=t+(.5-t)*this._p;return this._p1>t?this._calcEnd?1-(t=1-t/this._p1)*t:e-(t=1-t/this._p1)*t*t*t*e:t>this._p3?this._calcEnd?1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:e},m.ease=new m(.7,.7),d.config=m.config=function(t,e,i){return new m(t,e,i)},e=h("easing.SteppedEase",function(t){t=t||1,this._p1=1/t,this._p2=t+1},!0),d=e.prototype=new t,d.constructor=e,d.getRatio=function(t){return 0>t?t=0:t>=1&&(t=.999999999),(this._p2*t>>0)*this._p1},d.config=e.config=function(t){return new e(t)},i=h("easing.RoughEase",function(e){e=e||{};for(var i,s,r,n,a,o,h=e.taper||"none",l=[],_=0,u=0|(e.points||20),p=u,f=e.randomize!==!1,m=e.clamp===!0,d=e.template instanceof t?e.template:null,g="number"==typeof e.strength?.4*e.strength:.4;--p>-1;)i=f?Math.random():1/u*p,s=d?d.getRatio(i):i,"none"===h?r=g:"out"===h?(n=1-i,r=n*n*g):"in"===h?r=i*i*g:.5>i?(n=2*i,r=.5*n*n*g):(n=2*(1-i),r=.5*n*n*g),f?s+=Math.random()*r-.5*r:p%2?s+=.5*r:s-=.5*r,m&&(s>1?s=1:0>s&&(s=0)),l[_++]={x:i,y:s};for(l.sort(function(t,e){return t.x-e.x}),o=new c(1,1,null),p=u;--p>-1;)a=l[p],o=new c(a.x,a.y,o);this._prev=new c(0,0,0!==o.t?o:o.next)},!0),d=i.prototype=new t,d.constructor=i,d.getRatio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&e.t>=t;)e=e.prev;return this._prev=e,e.v+(t-e.t)/e.gap*e.c},d.config=function(t){return new i(t)},i.ease=new i,u("Bounce",l("BounceOut",function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}),l("BounceIn",function(t){return 1/2.75>(t=1-t)?1-7.5625*t*t:2/2.75>t?1-(7.5625*(t-=1.5/2.75)*t+.75):2.5/2.75>t?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}),l("BounceInOut",function(t){var e=.5>t;return t=e?1-2*t:2*t-1,t=1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5})),u("Circ",l("CircOut",function(t){return Math.sqrt(1-(t-=1)*t)}),l("CircIn",function(t){return-(Math.sqrt(1-t*t)-1)}),l("CircInOut",function(t){return 1>(t*=2)?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)})),s=function(e,i,s){var r=h("easing."+e,function(t,e){this._p1=t||1,this._p2=e||s,this._p3=this._p2/a*(Math.asin(1/this._p1)||0)},!0),n=r.prototype=new t;return n.constructor=r,n.getRatio=i,n.config=function(t,e){return new r(t,e)},r},u("Elastic",s("ElasticOut",function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*a/this._p2)+1},.3),s("ElasticIn",function(t){return-(this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*a/this._p2))},.3),s("ElasticInOut",function(t){return 1>(t*=2)?-.5*this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*a/this._p2):.5*this._p1*Math.pow(2,-10*(t-=1))*Math.sin((t-this._p3)*a/this._p2)+1},.45)),u("Expo",l("ExpoOut",function(t){return 1-Math.pow(2,-10*t)}),l("ExpoIn",function(t){return Math.pow(2,10*(t-1))-.001}),l("ExpoInOut",function(t){return 1>(t*=2)?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))})),u("Sine",l("SineOut",function(t){return Math.sin(t*o)}),l("SineIn",function(t){return-Math.cos(t*o)+1}),l("SineInOut",function(t){return-.5*(Math.cos(Math.PI*t)-1)})),h("easing.EaseLookup",{find:function(e){return t.map[e]}},!0),_(r.SlowMo,"SlowMo","ease,"),_(i,"RoughEase","ease,"),_(e,"SteppedEase","ease,"),f},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(); + +/*! + * VERSION: 1.14.2 + * DATE: 2014-10-28 + * UPDATES AND DOCS AT: http://www.greensock.com + * + * @license Copyright (c) 2008-2014, GreenSock. All rights reserved. + * This work is subject to the terms at http://www.greensock.com/terms_of_use.html or for + * Club GreenSock members, the software agreement that was issued with your membership. + * + * @author: Jack Doyle, jack@greensock.com + */ +var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(t,e){var i,r,s,n,a=function(){t.call(this,"css"),this._overwriteProps.length=0,this.setRatio=a.prototype.setRatio},o={},l=a.prototype=new t("css");l.constructor=a,a.version="1.14.2",a.API=2,a.defaultTransformPerspective=0,a.defaultSkewType="compensated",l="px",a.suffixMap={top:l,right:l,bottom:l,left:l,width:l,height:l,fontSize:l,padding:l,margin:l,perspective:l,lineHeight:""};var h,u,f,p,_,c,d=/(?:\d|\-\d|\.\d|\-\.\d)+/g,m=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,g=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,v=/(?![+-]?\d*\.?\d+|e[+-]\d+)[^0-9]/g,y=/(?:\d|\-|\+|=|#|\.)*/g,x=/opacity *= *([^)]*)/i,T=/opacity:([^;]*)/i,w=/alpha\(opacity *=.+?\)/i,b=/^(rgb|hsl)/,P=/([A-Z])/g,S=/-([a-z])/gi,R=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,C=function(t,e){return e.toUpperCase()},k=/(?:Left|Right|Width)/i,O=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,A=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,D=/,(?=[^\)]*(?:\(|$))/gi,M=Math.PI/180,L=180/Math.PI,N={},z=document,X=z.createElement("div"),I=z.createElement("img"),E=a._internals={_specialProps:o},F=navigator.userAgent,Y=function(){var t,e=F.indexOf("Android"),i=z.createElement("div");return f=-1!==F.indexOf("Safari")&&-1===F.indexOf("Chrome")&&(-1===e||Number(F.substr(e+8,1))>3),_=f&&6>Number(F.substr(F.indexOf("Version/")+8,1)),p=-1!==F.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(F)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(F))&&(c=parseFloat(RegExp.$1)),i.innerHTML="a",t=i.getElementsByTagName("a")[0],t?/^0.55/.test(t.style.opacity):!1}(),B=function(t){return x.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1},U=function(t){window.console&&console.log(t)},j="",W="",V=function(t,e){e=e||X;var i,r,s=e.style;if(void 0!==s[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),i=["O","Moz","ms","Ms","Webkit"],r=5;--r>-1&&void 0===s[i[r]+t];);return r>=0?(W=3===r?"ms":i[r],j="-"+W.toLowerCase()+"-",W+t):null},q=z.defaultView?z.defaultView.getComputedStyle:function(){},H=a.getStyle=function(t,e,i,r,s){var n;return Y||"opacity"!==e?(!r&&t.style[e]?n=t.style[e]:(i=i||q(t))?n=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(P,"-$1").toLowerCase()):t.currentStyle&&(n=t.currentStyle[e]),null==s||n&&"none"!==n&&"auto"!==n&&"auto auto"!==n?n:s):B(t)},G=E.convertToPixels=function(t,i,r,s,n){if("px"===s||!s)return r;if("auto"===s||!r)return 0;var o,l,h,u=k.test(i),f=t,p=X.style,_=0>r;if(_&&(r=-r),"%"===s&&-1!==i.indexOf("border"))o=r/100*(u?t.clientWidth:t.clientHeight);else{if(p.cssText="border:0 solid red;position:"+H(t,"position")+";line-height:0;","%"!==s&&f.appendChild)p[u?"borderLeftWidth":"borderTopWidth"]=r+s;else{if(f=t.parentNode||z.body,l=f._gsCache,h=e.ticker.frame,l&&u&&l.time===h)return l.width*r/100;p[u?"width":"height"]=r+s}f.appendChild(X),o=parseFloat(X[u?"offsetWidth":"offsetHeight"]),f.removeChild(X),u&&"%"===s&&a.cacheWidths!==!1&&(l=f._gsCache=f._gsCache||{},l.time=h,l.width=100*(o/r)),0!==o||n||(o=G(t,i,r,s,!0))}return _?-o:o},Q=E.calculateOffset=function(t,e,i){if("absolute"!==H(t,"position",i))return 0;var r="left"===e?"Left":"Top",s=H(t,"margin"+r,i);return t["offset"+r]-(G(t,e,parseFloat(s),s.replace(y,""))||0)},Z=function(t,e){var i,r,s={};if(e=e||q(t,null))if(i=e.length)for(;--i>-1;)s[e[i].replace(S,C)]=e.getPropertyValue(e[i]);else for(i in e)s[i]=e[i];else if(e=t.currentStyle||t.style)for(i in e)"string"==typeof i&&void 0===s[i]&&(s[i.replace(S,C)]=e[i]);return Y||(s.opacity=B(t)),r=Ae(t,e,!1),s.rotation=r.rotation,s.skewX=r.skewX,s.scaleX=r.scaleX,s.scaleY=r.scaleY,s.x=r.x,s.y=r.y,be&&(s.z=r.z,s.rotationX=r.rotationX,s.rotationY=r.rotationY,s.scaleZ=r.scaleZ),s.filters&&delete s.filters,s},$=function(t,e,i,r,s){var n,a,o,l={},h=t.style;for(a in i)"cssText"!==a&&"length"!==a&&isNaN(a)&&(e[a]!==(n=i[a])||s&&s[a])&&-1===a.indexOf("Origin")&&("number"==typeof n||"string"==typeof n)&&(l[a]="auto"!==n||"left"!==a&&"top"!==a?""!==n&&"auto"!==n&&"none"!==n||"string"!=typeof e[a]||""===e[a].replace(v,"")?n:0:Q(t,a),void 0!==h[a]&&(o=new fe(h,a,h[a],o)));if(r)for(a in r)"className"!==a&&(l[a]=r[a]);return{difs:l,firstMPT:o}},K={width:["Left","Right"],height:["Top","Bottom"]},J=["marginLeft","marginRight","marginTop","marginBottom"],te=function(t,e,i){var r=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),s=K[e],n=s.length;for(i=i||q(t,null);--n>-1;)r-=parseFloat(H(t,"padding"+s[n],i,!0))||0,r-=parseFloat(H(t,"border"+s[n]+"Width",i,!0))||0;return r},ee=function(t,e){(null==t||""===t||"auto"===t||"auto auto"===t)&&(t="0 0");var i=t.split(" "),r=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":i[0],s=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":i[1];return null==s?s="0":"center"===s&&(s="50%"),("center"===r||isNaN(parseFloat(r))&&-1===(r+"").indexOf("="))&&(r="50%"),e&&(e.oxp=-1!==r.indexOf("%"),e.oyp=-1!==s.indexOf("%"),e.oxr="="===r.charAt(1),e.oyr="="===s.charAt(1),e.ox=parseFloat(r.replace(v,"")),e.oy=parseFloat(s.replace(v,""))),r+" "+s+(i.length>2?" "+i[2]:"")},ie=function(t,e){return"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)},re=function(t,e){return null==t?e:"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)},se=function(t,e,i,r){var s,n,a,o,l=1e-6;return null==t?o=e:"number"==typeof t?o=t:(s=360,n=t.split("_"),a=Number(n[0].replace(v,""))*(-1===t.indexOf("rad")?1:L)-("="===t.charAt(1)?0:e),n.length&&(r&&(r[i]=e+a),-1!==t.indexOf("short")&&(a%=s,a!==a%(s/2)&&(a=0>a?a+s:a-s)),-1!==t.indexOf("_cw")&&0>a?a=(a+9999999999*s)%s-(0|a/s)*s:-1!==t.indexOf("ccw")&&a>0&&(a=(a-9999999999*s)%s-(0|a/s)*s)),o=e+a),l>o&&o>-l&&(o=0),o},ne={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]},ae=function(t,e,i){return t=0>t?t+1:t>1?t-1:t,0|255*(1>6*t?e+6*(i-e)*t:.5>t?i:2>3*t?e+6*(i-e)*(2/3-t):e)+.5},oe=a.parseColor=function(t){var e,i,r,s,n,a;return t&&""!==t?"number"==typeof t?[t>>16,255&t>>8,255&t]:(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),ne[t]?ne[t]:"#"===t.charAt(0)?(4===t.length&&(e=t.charAt(1),i=t.charAt(2),r=t.charAt(3),t="#"+e+e+i+i+r+r),t=parseInt(t.substr(1),16),[t>>16,255&t>>8,255&t]):"hsl"===t.substr(0,3)?(t=t.match(d),s=Number(t[0])%360/360,n=Number(t[1])/100,a=Number(t[2])/100,i=.5>=a?a*(n+1):a+n-a*n,e=2*a-i,t.length>3&&(t[3]=Number(t[3])),t[0]=ae(s+1/3,e,i),t[1]=ae(s,e,i),t[2]=ae(s-1/3,e,i),t):(t=t.match(d)||ne.transparent,t[0]=Number(t[0]),t[1]=Number(t[1]),t[2]=Number(t[2]),t.length>3&&(t[3]=Number(t[3])),t)):ne.black},le="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#.+?\\b";for(l in ne)le+="|"+l+"\\b";le=RegExp(le+")","gi");var he=function(t,e,i,r){if(null==t)return function(t){return t};var s,n=e?(t.match(le)||[""])[0]:"",a=t.split(n).join("").match(g)||[],o=t.substr(0,t.indexOf(a[0])),l=")"===t.charAt(t.length-1)?")":"",h=-1!==t.indexOf(" ")?" ":",",u=a.length,f=u>0?a[0].replace(d,""):"";return u?s=e?function(t){var e,p,_,c;if("number"==typeof t)t+=f;else if(r&&D.test(t)){for(c=t.replace(D,"|").split("|"),_=0;c.length>_;_++)c[_]=s(c[_]);return c.join(",")}if(e=(t.match(le)||[n])[0],p=t.split(e).join("").match(g)||[],_=p.length,u>_--)for(;u>++_;)p[_]=i?p[0|(_-1)/2]:a[_];return o+p.join(h)+h+e+l+(-1!==t.indexOf("inset")?" inset":"")}:function(t){var e,n,p;if("number"==typeof t)t+=f;else if(r&&D.test(t)){for(n=t.replace(D,"|").split("|"),p=0;n.length>p;p++)n[p]=s(n[p]);return n.join(",")}if(e=t.match(g)||[],p=e.length,u>p--)for(;u>++p;)e[p]=i?e[0|(p-1)/2]:a[p];return o+e.join(h)+l}:function(t){return t}},ue=function(t){return t=t.split(","),function(e,i,r,s,n,a,o){var l,h=(i+"").split(" ");for(o={},l=0;4>l;l++)o[t[l]]=h[l]=h[l]||h[(l-1)/2>>0];return s.parse(e,o,n,a)}},fe=(E._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,i,r,s,n=this.data,a=n.proxy,o=n.firstMPT,l=1e-6;o;)e=a[o.v],o.r?e=Math.round(e):l>e&&e>-l&&(e=0),o.t[o.p]=e,o=o._next;if(n.autoRotate&&(n.autoRotate.rotation=a.rotation),1===t)for(o=n.firstMPT;o;){if(i=o.t,i.type){if(1===i.type){for(s=i.xs0+i.s+i.xs1,r=1;i.l>r;r++)s+=i["xn"+r]+i["xs"+(r+1)];i.e=s}}else i.e=i.s+i.xs0;o=o._next}},function(t,e,i,r,s){this.t=t,this.p=e,this.v=i,this.r=s,r&&(r._prev=this,this._next=r)}),pe=(E._parseToProxy=function(t,e,i,r,s,n){var a,o,l,h,u,f=r,p={},_={},c=i._transform,d=N;for(i._transform=null,N=e,r=u=i.parse(t,e,r,s),N=d,n&&(i._transform=c,f&&(f._prev=null,f._prev&&(f._prev._next=null)));r&&r!==f;){if(1>=r.type&&(o=r.p,_[o]=r.s+r.c,p[o]=r.s,n||(h=new fe(r,"s",o,h,r.r),r.c=0),1===r.type))for(a=r.l;--a>0;)l="xn"+a,o=r.p+"_"+l,_[o]=r.data[l],p[o]=r[l],n||(h=new fe(r,l,o,h,r.rxp[l]));r=r._next}return{proxy:p,end:_,firstMPT:h,pt:u}},E.CSSPropTween=function(t,e,r,s,a,o,l,h,u,f,p){this.t=t,this.p=e,this.s=r,this.c=s,this.n=l||e,t instanceof pe||n.push(this.n),this.r=h,this.type=o||0,u&&(this.pr=u,i=!0),this.b=void 0===f?r:f,this.e=void 0===p?r+s:p,a&&(this._next=a,a._prev=this)}),_e=a.parseComplex=function(t,e,i,r,s,n,a,o,l,u){i=i||n||"",a=new pe(t,e,0,0,a,u?2:1,null,!1,o,i,r),r+="";var f,p,_,c,g,v,y,x,T,w,P,S,R=i.split(", ").join(",").split(" "),C=r.split(", ").join(",").split(" "),k=R.length,O=h!==!1;for((-1!==r.indexOf(",")||-1!==i.indexOf(","))&&(R=R.join(" ").replace(D,", ").split(" "),C=C.join(" ").replace(D,", ").split(" "),k=R.length),k!==C.length&&(R=(n||"").split(" "),k=R.length),a.plugin=l,a.setRatio=u,f=0;k>f;f++)if(c=R[f],g=C[f],x=parseFloat(c),x||0===x)a.appendXtra("",x,ie(g,x),g.replace(m,""),O&&-1!==g.indexOf("px"),!0);else if(s&&("#"===c.charAt(0)||ne[c]||b.test(c)))S=","===g.charAt(g.length-1)?"),":")",c=oe(c),g=oe(g),T=c.length+g.length>6,T&&!Y&&0===g[3]?(a["xs"+a.l]+=a.l?" transparent":"transparent",a.e=a.e.split(C[f]).join("transparent")):(Y||(T=!1),a.appendXtra(T?"rgba(":"rgb(",c[0],g[0]-c[0],",",!0,!0).appendXtra("",c[1],g[1]-c[1],",",!0).appendXtra("",c[2],g[2]-c[2],T?",":S,!0),T&&(c=4>c.length?1:c[3],a.appendXtra("",c,(4>g.length?1:g[3])-c,S,!1)));else if(v=c.match(d)){if(y=g.match(m),!y||y.length!==v.length)return a;for(_=0,p=0;v.length>p;p++)P=v[p],w=c.indexOf(P,_),a.appendXtra(c.substr(_,w-_),Number(P),ie(y[p],P),"",O&&"px"===c.substr(w+P.length,2),0===p),_=w+P.length;a["xs"+a.l]+=c.substr(_)}else a["xs"+a.l]+=a.l?" "+c:c;if(-1!==r.indexOf("=")&&a.data){for(S=a.xs0+a.data.s,f=1;a.l>f;f++)S+=a["xs"+f]+a.data["xn"+f];a.e=S+a["xs"+f]}return a.l||(a.type=-1,a.xs0=a.e),a.xfirst||a},ce=9;for(l=pe.prototype,l.l=l.pr=0;--ce>0;)l["xn"+ce]=0,l["xs"+ce]="";l.xs0="",l._next=l._prev=l.xfirst=l.data=l.plugin=l.setRatio=l.rxp=null,l.appendXtra=function(t,e,i,r,s,n){var a=this,o=a.l;return a["xs"+o]+=n&&o?" "+t:t||"",i||0===o||a.plugin?(a.l++,a.type=a.setRatio?2:1,a["xs"+a.l]=r||"",o>0?(a.data["xn"+o]=e+i,a.rxp["xn"+o]=s,a["xn"+o]=e,a.plugin||(a.xfirst=new pe(a,"xn"+o,e,i,a.xfirst||a,0,a.n,s,a.pr),a.xfirst.xs0=0),a):(a.data={s:e+i},a.rxp={},a.s=e,a.c=i,a.r=s,a)):(a["xs"+o]+=e+(r||""),a)};var de=function(t,e){e=e||{},this.p=e.prefix?V(t)||t:t,o[t]=o[this.p]=this,this.format=e.formatter||he(e.defaultValue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultValue,this.pr=e.priority||0},me=E._registerComplexSpecialProp=function(t,e,i){"object"!=typeof e&&(e={parser:i});var r,s,n=t.split(","),a=e.defaultValue;for(i=i||[a],r=0;n.length>r;r++)e.prefix=0===r&&e.prefix,e.defaultValue=i[r]||a,s=new de(n[r],e)},ge=function(t){if(!o[t]){var e=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin";me(t,{parser:function(t,i,r,s,n,a,l){var h=(_gsScope.GreenSockGlobals||_gsScope).com.greensock.plugins[e];return h?(h._cssRegister(),o[r].parse(t,i,r,s,n,a,l)):(U("Error: "+e+" js file not loaded."),n)}})}};l=de.prototype,l.parseComplex=function(t,e,i,r,s,n){var a,o,l,h,u,f,p=this.keyword;if(this.multi&&(D.test(i)||D.test(e)?(o=e.replace(D,"|").split("|"),l=i.replace(D,"|").split("|")):p&&(o=[e],l=[i])),l){for(h=l.length>o.length?l.length:o.length,a=0;h>a;a++)e=o[a]=o[a]||this.dflt,i=l[a]=l[a]||this.dflt,p&&(u=e.indexOf(p),f=i.indexOf(p),u!==f&&(i=-1===f?l:o,i[a]+=" "+p));e=o.join(", "),i=l.join(", ")}return _e(t,this.p,e,i,this.clrs,this.dflt,r,this.pr,s,n)},l.parse=function(t,e,i,r,n,a){return this.parseComplex(t.style,this.format(H(t,this.p,s,!1,this.dflt)),this.format(e),n,a)},a.registerSpecialProp=function(t,e,i){me(t,{parser:function(t,r,s,n,a,o){var l=new pe(t,s,0,0,a,2,s,!1,i);return l.plugin=o,l.setRatio=e(t,r,n._tween,s),l},priority:i})};var ve,ye="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),xe=V("transform"),Te=j+"transform",we=V("transformOrigin"),be=null!==V("perspective"),Pe=E.Transform=function(){this.skewY=0},Se=window.SVGElement,Re=function(t,e,i){var r,s=z.createElementNS("http://www.w3.org/2000/svg",t),n=/([a-z])([A-Z])/g;for(r in i)s.setAttributeNS(null,r.replace(n,"$1-$2").toLowerCase(),i[r]);return e.appendChild(s),s},Ce=document.documentElement,ke=function(){var t,e,i,r=c||/Android/i.test(F)&&!window.chrome;return z.createElementNS&&!r&&(t=Re("svg",Ce),e=Re("rect",t,{width:100,height:50,x:100}),i=e.getBoundingClientRect().left,e.style[we]="50% 50%",e.style[xe]="scale(0.5,0.5)",r=i===e.getBoundingClientRect().left,Ce.removeChild(t)),r}(),Oe=function(t,e,i){var r=t.getBBox();e=ee(e).split(" "),i.xOrigin=(-1!==e[0].indexOf("%")?parseFloat(e[0])/100*r.width:parseFloat(e[0]))+r.x,i.yOrigin=(-1!==e[1].indexOf("%")?parseFloat(e[1])/100*r.height:parseFloat(e[1]))+r.y},Ae=E.getTransform=function(t,e,i,r){if(t._gsTransform&&i&&!r)return t._gsTransform;var n,o,l,h,u,f,p,_,c,d,m,g,v,y=i?t._gsTransform||new Pe:new Pe,x=0>y.scaleX,T=2e-5,w=1e5,b=179.99,P=b*M,S=be?parseFloat(H(t,we,e,!1,"0 0 0").split(" ")[2])||y.zOrigin||0:0,R=parseFloat(a.defaultTransformPerspective)||0;if(xe?n=H(t,Te,e,!0):t.currentStyle&&(n=t.currentStyle.filter.match(O),n=n&&4===n.length?[n[0].substr(4),Number(n[2].substr(4)),Number(n[1].substr(4)),n[3].substr(4),y.x||0,y.y||0].join(","):""),n&&"none"!==n&&"matrix(1, 0, 0, 1, 0, 0)"!==n){for(o=(n||"").match(/(?:\-|\b)[\d\-\.e]+\b/gi)||[],l=o.length;--l>-1;)h=Number(o[l]),o[l]=(u=h-(h|=0))?(0|u*w+(0>u?-.5:.5))/w+h:h;if(16===o.length){var C=o[8],k=o[9],A=o[10],D=o[12],N=o[13],z=o[14];if(y.zOrigin&&(z=-y.zOrigin,D=C*z-o[12],N=k*z-o[13],z=A*z+y.zOrigin-o[14]),!i||r||null==y.rotationX){var X,I,E,F,Y,B,U,j=o[0],W=o[1],V=o[2],q=o[3],G=o[4],Q=o[5],Z=o[6],$=o[7],K=o[11],J=Math.atan2(Z,A),te=-P>J||J>P;y.rotationX=J*L,J&&(F=Math.cos(-J),Y=Math.sin(-J),X=G*F+C*Y,I=Q*F+k*Y,E=Z*F+A*Y,C=G*-Y+C*F,k=Q*-Y+k*F,A=Z*-Y+A*F,K=$*-Y+K*F,G=X,Q=I,Z=E),J=Math.atan2(C,j),y.rotationY=J*L,J&&(B=-P>J||J>P,F=Math.cos(-J),Y=Math.sin(-J),X=j*F-C*Y,I=W*F-k*Y,E=V*F-A*Y,k=W*Y+k*F,A=V*Y+A*F,K=q*Y+K*F,j=X,W=I,V=E),J=Math.atan2(W,Q),y.rotation=J*L,J&&(U=-P>J||J>P,F=Math.cos(-J),Y=Math.sin(-J),j=j*F+G*Y,I=W*F+Q*Y,Q=W*-Y+Q*F,Z=V*-Y+Z*F,W=I),U&&te?y.rotation=y.rotationX=0:U&&B?y.rotation=y.rotationY=0:B&&te&&(y.rotationY=y.rotationX=0),y.scaleX=(0|Math.sqrt(j*j+W*W)*w+.5)/w,y.scaleY=(0|Math.sqrt(Q*Q+k*k)*w+.5)/w,y.scaleZ=(0|Math.sqrt(Z*Z+A*A)*w+.5)/w,y.skewX=0,y.perspective=K?1/(0>K?-K:K):0,y.x=D,y.y=N,y.z=z}}else if(!(be&&!r&&o.length&&y.x===o[4]&&y.y===o[5]&&(y.rotationX||y.rotationY)||void 0!==y.x&&"none"===H(t,"display",e))){var ee=o.length>=6,ie=ee?o[0]:1,re=o[1]||0,se=o[2]||0,ne=ee?o[3]:1;y.x=o[4]||0,y.y=o[5]||0,f=Math.sqrt(ie*ie+re*re),p=Math.sqrt(ne*ne+se*se),_=ie||re?Math.atan2(re,ie)*L:y.rotation||0,c=se||ne?Math.atan2(se,ne)*L+_:y.skewX||0,d=f-Math.abs(y.scaleX||0),m=p-Math.abs(y.scaleY||0),Math.abs(c)>90&&270>Math.abs(c)&&(x?(f*=-1,c+=0>=_?180:-180,_+=0>=_?180:-180):(p*=-1,c+=0>=c?180:-180)),g=(_-y.rotation)%180,v=(c-y.skewX)%180,(void 0===y.skewX||d>T||-T>d||m>T||-T>m||g>-b&&b>g&&false|g*w||v>-b&&b>v&&false|v*w)&&(y.scaleX=f,y.scaleY=p,y.rotation=_,y.skewX=c),be&&(y.rotationX=y.rotationY=y.z=0,y.perspective=R,y.scaleZ=1)}y.zOrigin=S;for(l in y)T>y[l]&&y[l]>-T&&(y[l]=0)}else y={x:0,y:0,z:0,scaleX:1,scaleY:1,scaleZ:1,skewX:0,skewY:0,perspective:R,rotation:0,rotationX:0,rotationY:0,zOrigin:0};return i&&(t._gsTransform=y),y.svg=Se&&t instanceof Se&&t.parentNode instanceof Se,y.svg&&(Oe(t,H(t,we,s,!1,"50% 50%")+"",y),ve=a.useSVGTransformAttr||ke),y.xPercent=y.yPercent=0,y},De=function(t){var e,i,r=this.data,s=-r.rotation*M,n=s+r.skewX*M,a=1e5,o=(0|Math.cos(s)*r.scaleX*a)/a,l=(0|Math.sin(s)*r.scaleX*a)/a,h=(0|Math.sin(n)*-r.scaleY*a)/a,u=(0|Math.cos(n)*r.scaleY*a)/a,f=this.t.style,p=this.t.currentStyle;if(p){i=l,l=-h,h=-i,e=p.filter,f.filter="";var _,d,m=this.t.offsetWidth,g=this.t.offsetHeight,v="absolute"!==p.position,T="progid:DXImageTransform.Microsoft.Matrix(M11="+o+", M12="+l+", M21="+h+", M22="+u,w=r.x+m*r.xPercent/100,b=r.y+g*r.yPercent/100;if(null!=r.ox&&(_=(r.oxp?.01*m*r.ox:r.ox)-m/2,d=(r.oyp?.01*g*r.oy:r.oy)-g/2,w+=_-(_*o+d*l),b+=d-(_*h+d*u)),v?(_=m/2,d=g/2,T+=", Dx="+(_-(_*o+d*l)+w)+", Dy="+(d-(_*h+d*u)+b)+")"):T+=", sizingMethod='auto expand')",f.filter=-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?e.replace(A,T):T+" "+e,(0===t||1===t)&&1===o&&0===l&&0===h&&1===u&&(v&&-1===T.indexOf("Dx=0, Dy=0")||x.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf("gradient("&&e.indexOf("Alpha"))&&f.removeAttribute("filter")),!v){var P,S,R,C=8>c?1:-1;for(_=r.ieOffsetX||0,d=r.ieOffsetY||0,r.ieOffsetX=Math.round((m-((0>o?-o:o)*m+(0>l?-l:l)*g))/2+w),r.ieOffsetY=Math.round((g-((0>u?-u:u)*g+(0>h?-h:h)*m))/2+b),ce=0;4>ce;ce++)S=J[ce],P=p[S],i=-1!==P.indexOf("px")?parseFloat(P):G(this.t,S,parseFloat(P),P.replace(y,""))||0,R=i!==r[S]?2>ce?-r.ieOffsetX:-r.ieOffsetY:2>ce?_-r.ieOffsetX:d-r.ieOffsetY,f[S]=(r[S]=Math.round(i-R*(0===ce||2===ce?1:C)))+"px"}}},Me=E.set3DTransformRatio=function(t){var e,i,r,s,n,a,o,l,h,u,f,_,c,d,m,g,v,y,x,T,w,b,P,S=this.data,R=this.t.style,C=S.rotation*M,k=S.scaleX,O=S.scaleY,A=S.scaleZ,D=S.x,L=S.y,N=S.z,z=S.perspective;if(!(1!==t&&0!==t||"auto"!==S.force3D||S.rotationY||S.rotationX||1!==A||z||N))return Le.call(this,t),void 0;if(p){var X=1e-4;X>k&&k>-X&&(k=A=2e-5),X>O&&O>-X&&(O=A=2e-5),!z||S.z||S.rotationX||S.rotationY||(z=0)}if(C||S.skewX)y=Math.cos(C),x=Math.sin(C),e=y,n=x,S.skewX&&(C-=S.skewX*M,y=Math.cos(C),x=Math.sin(C),"simple"===S.skewType&&(T=Math.tan(S.skewX*M),T=Math.sqrt(1+T*T),y*=T,x*=T)),i=-x,a=y;else{if(!(S.rotationY||S.rotationX||1!==A||z||S.svg))return R[xe]=(S.xPercent||S.yPercent?"translate("+S.xPercent+"%,"+S.yPercent+"%) translate3d(":"translate3d(")+D+"px,"+L+"px,"+N+"px)"+(1!==k||1!==O?" scale("+k+","+O+")":""),void 0;e=a=1,i=n=0}f=1,r=s=o=l=h=u=_=c=d=0,m=z?-1/z:0,g=S.zOrigin,v=1e5,C=S.rotationY*M,C&&(y=Math.cos(C),x=Math.sin(C),h=f*-x,c=m*-x,r=e*x,o=n*x,f*=y,m*=y,e*=y,n*=y),C=S.rotationX*M,C&&(y=Math.cos(C),x=Math.sin(C),T=i*y+r*x,w=a*y+o*x,b=u*y+f*x,P=d*y+m*x,r=i*-x+r*y,o=a*-x+o*y,f=u*-x+f*y,m=d*-x+m*y,i=T,a=w,u=b,d=P),1!==A&&(r*=A,o*=A,f*=A,m*=A),1!==O&&(i*=O,a*=O,u*=O,d*=O),1!==k&&(e*=k,n*=k,h*=k,c*=k),g&&(_-=g,s=r*_,l=o*_,_=f*_+g),S.svg&&(s+=S.xOrigin-(S.xOrigin*e+S.yOrigin*i),l+=S.yOrigin-(S.xOrigin*n+S.yOrigin*a)),s=(T=(s+=D)-(s|=0))?(0|T*v+(0>T?-.5:.5))/v+s:s,l=(T=(l+=L)-(l|=0))?(0|T*v+(0>T?-.5:.5))/v+l:l,_=(T=(_+=N)-(_|=0))?(0|T*v+(0>T?-.5:.5))/v+_:_,R[xe]=(S.xPercent||S.yPercent?"translate("+S.xPercent+"%,"+S.yPercent+"%) matrix3d(":"matrix3d(")+[(0|e*v)/v,(0|n*v)/v,(0|h*v)/v,(0|c*v)/v,(0|i*v)/v,(0|a*v)/v,(0|u*v)/v,(0|d*v)/v,(0|r*v)/v,(0|o*v)/v,(0|f*v)/v,(0|m*v)/v,s,l,_,z?1+-_/z:1].join(",")+")"},Le=E.set2DTransformRatio=function(t){var e,i,r,s,n,a,o,l,h,u,f,p=this.data,_=this.t,c=_.style,d=p.x,m=p.y;return!(p.rotationX||p.rotationY||p.z||p.force3D===!0||"auto"===p.force3D&&1!==t&&0!==t)||p.svg&&ve||!be?(s=p.scaleX,n=p.scaleY,p.rotation||p.skewX||p.svg?(e=p.rotation*M,i=e-p.skewX*M,r=1e5,a=Math.cos(e)*s,o=Math.sin(e)*s,l=Math.sin(i)*-n,h=Math.cos(i)*n,p.svg&&(d+=p.xOrigin-(p.xOrigin*a+p.yOrigin*l),m+=p.yOrigin-(p.xOrigin*o+p.yOrigin*h),f=1e-6,f>d&&d>-f&&(d=0),f>m&&m>-f&&(m=0)),u=(0|a*r)/r+","+(0|o*r)/r+","+(0|l*r)/r+","+(0|h*r)/r+","+d+","+m+")",p.svg&&ve?_.setAttribute("transform","matrix("+u):c[xe]=(p.xPercent||p.yPercent?"translate("+p.xPercent+"%,"+p.yPercent+"%) matrix(":"matrix(")+u):c[xe]=(p.xPercent||p.yPercent?"translate("+p.xPercent+"%,"+p.yPercent+"%) matrix(":"matrix(")+s+",0,0,"+n+","+d+","+m+")",void 0):(this.setRatio=Me,Me.call(this,t),void 0)};me("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent",{parser:function(t,e,i,r,n,o,l){if(r._transform)return n;var h,u,f,p,_,c,d,m=r._transform=Ae(t,s,!0,l.parseTransform),g=t.style,v=1e-6,y=ye.length,x=l,T={};if("string"==typeof x.transform&&xe)f=X.style,f[xe]=x.transform,f.display="block",f.position="absolute",z.body.appendChild(X),h=Ae(X,null,!1),z.body.removeChild(X);else if("object"==typeof x){if(h={scaleX:re(null!=x.scaleX?x.scaleX:x.scale,m.scaleX),scaleY:re(null!=x.scaleY?x.scaleY:x.scale,m.scaleY),scaleZ:re(x.scaleZ,m.scaleZ),x:re(x.x,m.x),y:re(x.y,m.y),z:re(x.z,m.z),xPercent:re(x.xPercent,m.xPercent),yPercent:re(x.yPercent,m.yPercent),perspective:re(x.transformPerspective,m.perspective)},d=x.directionalRotation,null!=d)if("object"==typeof d)for(f in d)x[f]=d[f];else x.rotation=d;"string"==typeof x.x&&-1!==x.x.indexOf("%")&&(h.x=0,h.xPercent=re(x.x,m.xPercent)),"string"==typeof x.y&&-1!==x.y.indexOf("%")&&(h.y=0,h.yPercent=re(x.y,m.yPercent)),h.rotation=se("rotation"in x?x.rotation:"shortRotation"in x?x.shortRotation+"_short":"rotationZ"in x?x.rotationZ:m.rotation,m.rotation,"rotation",T),be&&(h.rotationX=se("rotationX"in x?x.rotationX:"shortRotationX"in x?x.shortRotationX+"_short":m.rotationX||0,m.rotationX,"rotationX",T),h.rotationY=se("rotationY"in x?x.rotationY:"shortRotationY"in x?x.shortRotationY+"_short":m.rotationY||0,m.rotationY,"rotationY",T)),h.skewX=null==x.skewX?m.skewX:se(x.skewX,m.skewX),h.skewY=null==x.skewY?m.skewY:se(x.skewY,m.skewY),(u=h.skewY-m.skewY)&&(h.skewX+=u,h.rotation+=u)}for(be&&null!=x.force3D&&(m.force3D=x.force3D,c=!0),m.skewType=x.skewType||m.skewType||a.defaultSkewType,_=m.force3D||m.z||m.rotationX||m.rotationY||h.z||h.rotationX||h.rotationY||h.perspective,_||null==x.scale||(h.scaleZ=1);--y>-1;)i=ye[y],p=h[i]-m[i],(p>v||-v>p||null!=x[i]||null!=N[i])&&(c=!0,n=new pe(m,i,m[i],p,n),i in T&&(n.e=T[i]),n.xs0=0,n.plugin=o,r._overwriteProps.push(n.n));return p=x.transformOrigin,p&&m.svg&&(Oe(t,p,h),n=new pe(m,"xOrigin",m.xOrigin,h.xOrigin-m.xOrigin,n,-1,"transformOrigin"),n.b=m.xOrigin,n.e=n.xs0=h.xOrigin,n=new pe(m,"yOrigin",m.yOrigin,h.yOrigin-m.yOrigin,n,-1,"transformOrigin"),n.b=m.yOrigin,n.e=n.xs0=h.yOrigin,p="0px 0px"),(p||be&&_&&m.zOrigin)&&(xe?(c=!0,i=we,p=(p||H(t,i,s,!1,"50% 50%"))+"",n=new pe(g,i,0,0,n,-1,"transformOrigin"),n.b=g[i],n.plugin=o,be?(f=m.zOrigin,p=p.split(" "),m.zOrigin=(p.length>2&&(0===f||"0px"!==p[2])?parseFloat(p[2]):f)||0,n.xs0=n.e=p[0]+" "+(p[1]||"50%")+" 0px",n=new pe(m,"zOrigin",0,0,n,-1,n.n),n.b=f,n.xs0=n.e=m.zOrigin):n.xs0=n.e=p):ee(p+"",m)),c&&(r._transformType=m.svg&&ve||!_&&3!==this._transformType?2:3),n},prefix:!0}),me("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),me("borderRadius",{defaultValue:"0px",parser:function(t,e,i,n,a){e=this.format(e);var o,l,h,u,f,p,_,c,d,m,g,v,y,x,T,w,b=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],P=t.style;for(d=parseFloat(t.offsetWidth),m=parseFloat(t.offsetHeight),o=e.split(" "),l=0;b.length>l;l++)this.p.indexOf("border")&&(b[l]=V(b[l])),f=u=H(t,b[l],s,!1,"0px"),-1!==f.indexOf(" ")&&(u=f.split(" "),f=u[0],u=u[1]),p=h=o[l],_=parseFloat(f),v=f.substr((_+"").length),y="="===p.charAt(1),y?(c=parseInt(p.charAt(0)+"1",10),p=p.substr(2),c*=parseFloat(p),g=p.substr((c+"").length-(0>c?1:0))||""):(c=parseFloat(p),g=p.substr((c+"").length)),""===g&&(g=r[i]||v),g!==v&&(x=G(t,"borderLeft",_,v),T=G(t,"borderTop",_,v),"%"===g?(f=100*(x/d)+"%",u=100*(T/m)+"%"):"em"===g?(w=G(t,"borderLeft",1,"em"),f=x/w+"em",u=T/w+"em"):(f=x+"px",u=T+"px"),y&&(p=parseFloat(f)+c+g,h=parseFloat(u)+c+g)),a=_e(P,b[l],f+" "+u,p+" "+h,!1,"0px",a);return a},prefix:!0,formatter:he("0px 0px 0px 0px",!1,!0)}),me("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,i,r,n,a){var o,l,h,u,f,p,_="background-position",d=s||q(t,null),m=this.format((d?c?d.getPropertyValue(_+"-x")+" "+d.getPropertyValue(_+"-y"):d.getPropertyValue(_):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),g=this.format(e);if(-1!==m.indexOf("%")!=(-1!==g.indexOf("%"))&&(p=H(t,"backgroundImage").replace(R,""),p&&"none"!==p)){for(o=m.split(" "),l=g.split(" "),I.setAttribute("src",p),h=2;--h>-1;)m=o[h],u=-1!==m.indexOf("%"),u!==(-1!==l[h].indexOf("%"))&&(f=0===h?t.offsetWidth-I.width:t.offsetHeight-I.height,o[h]=u?parseFloat(m)/100*f+"px":100*(parseFloat(m)/f)+"%");m=o.join(" ")}return this.parseComplex(t.style,m,g,n,a)},formatter:ee}),me("backgroundSize",{defaultValue:"0 0",formatter:ee}),me("perspective",{defaultValue:"0px",prefix:!0}),me("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),me("transformStyle",{prefix:!0}),me("backfaceVisibility",{prefix:!0}),me("userSelect",{prefix:!0}),me("margin",{parser:ue("marginTop,marginRight,marginBottom,marginLeft")}),me("padding",{parser:ue("paddingTop,paddingRight,paddingBottom,paddingLeft")}),me("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,r,n,a){var o,l,h;return 9>c?(l=t.currentStyle,h=8>c?" ":",",o="rect("+l.clipTop+h+l.clipRight+h+l.clipBottom+h+l.clipLeft+")",e=this.format(e).split(",").join(h)):(o=this.format(H(t,this.p,s,!1,this.dflt)),e=this.format(e)),this.parseComplex(t.style,o,e,n,a)}}),me("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),me("autoRound,strictUnits",{parser:function(t,e,i,r,s){return s}}),me("border",{defaultValue:"0px solid #000",parser:function(t,e,i,r,n,a){return this.parseComplex(t.style,this.format(H(t,"borderTopWidth",s,!1,"0px")+" "+H(t,"borderTopStyle",s,!1,"solid")+" "+H(t,"borderTopColor",s,!1,"#000")),this.format(e),n,a)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(le)||["#000"])[0]}}),me("borderWidth",{parser:ue("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),me("float,cssFloat,styleFloat",{parser:function(t,e,i,r,s){var n=t.style,a="cssFloat"in n?"cssFloat":"styleFloat";return new pe(n,a,0,0,s,-1,i,!1,0,n[a],e)}});var Ne=function(t){var e,i=this.t,r=i.filter||H(this.data,"filter")||"",s=0|this.s+this.c*t;100===s&&(-1===r.indexOf("atrix(")&&-1===r.indexOf("radient(")&&-1===r.indexOf("oader(")?(i.removeAttribute("filter"),e=!H(this.data,"filter")):(i.filter=r.replace(w,""),e=!0)),e||(this.xn1&&(i.filter=r=r||"alpha(opacity="+s+")"),-1===r.indexOf("pacity")?0===s&&this.xn1||(i.filter=r+" alpha(opacity="+s+")"):i.filter=r.replace(x,"opacity="+s))};me("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,r,n,a){var o=parseFloat(H(t,"opacity",s,!1,"1")),l=t.style,h="autoAlpha"===i;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+o),h&&1===o&&"hidden"===H(t,"visibility",s)&&0!==e&&(o=0),Y?n=new pe(l,"opacity",o,e-o,n):(n=new pe(l,"opacity",100*o,100*(e-o),n),n.xn1=h?1:0,l.zoom=1,n.type=2,n.b="alpha(opacity="+n.s+")",n.e="alpha(opacity="+(n.s+n.c)+")",n.data=t,n.plugin=a,n.setRatio=Ne),h&&(n=new pe(l,"visibility",0,0,n,-1,null,!1,0,0!==o?"inherit":"hidden",0===e?"hidden":"inherit"),n.xs0="inherit",r._overwriteProps.push(n.n),r._overwriteProps.push(i)),n}});var ze=function(t,e){e&&(t.removeProperty?("ms"===e.substr(0,2)&&(e="M"+e.substr(1)),t.removeProperty(e.replace(P,"-$1").toLowerCase())):t.removeAttribute(e))},Xe=function(t){if(this.t._gsClassPT=this,1===t||0===t){this.t.setAttribute("class",0===t?this.b:this.e);for(var e=this.data,i=this.t.style;e;)e.v?i[e.p]=e.v:ze(i,e.p),e=e._next;1===t&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};me("className",{parser:function(t,e,r,n,a,o,l){var h,u,f,p,_,c=t.getAttribute("class")||"",d=t.style.cssText;if(a=n._classNamePT=new pe(t,r,0,0,a,2),a.setRatio=Xe,a.pr=-11,i=!0,a.b=c,u=Z(t,s),f=t._gsClassPT){for(p={},_=f.data;_;)p[_.p]=1,_=_._next;f.setRatio(1)}return t._gsClassPT=a,a.e="="!==e.charAt(1)?e:c.replace(RegExp("\\s*\\b"+e.substr(2)+"\\b"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),n._tween._duration&&(t.setAttribute("class",a.e),h=$(t,u,Z(t),l,p),t.setAttribute("class",c),a.data=h.firstMPT,t.style.cssText=d,a=a.xfirst=n.parse(t,h.difs,a,o)),a}});var Ie=function(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,i,r,s,n=this.t.style,a=o.transform.parse;if("all"===this.e)n.cssText="",s=!0;else for(e=this.e.split(" ").join("").split(","),r=e.length;--r>-1;)i=e[r],o[i]&&(o[i].parse===a?s=!0:i="transformOrigin"===i?we:o[i].p),ze(n,i);s&&(ze(n,xe),this.t._gsTransform&&delete this.t._gsTransform)}};for(me("clearProps",{parser:function(t,e,r,s,n){return n=new pe(t,r,0,0,n,2),n.setRatio=Ie,n.e=e,n.pr=-10,n.data=s._tween,i=!0,n}}),l="bezier,throwProps,physicsProps,physics2D".split(","),ce=l.length;ce--;)ge(l[ce]);l=a.prototype,l._firstPT=null,l._onInitTween=function(t,e,o){if(!t.nodeType)return!1;this._target=t,this._tween=o,this._vars=e,h=e.autoRound,i=!1,r=e.suffixMap||a.suffixMap,s=q(t,""),n=this._overwriteProps;var l,p,c,d,m,g,v,y,x,w=t.style;if(u&&""===w.zIndex&&(l=H(t,"zIndex",s),("auto"===l||""===l)&&this._addLazySet(w,"zIndex",0)),"string"==typeof e&&(d=w.cssText,l=Z(t,s),w.cssText=d+";"+e,l=$(t,l,Z(t)).difs,!Y&&T.test(e)&&(l.opacity=parseFloat(RegExp.$1)),e=l,w.cssText=d),this._firstPT=p=this.parse(t,e,null),this._transformType){for(x=3===this._transformType,xe?f&&(u=!0,""===w.zIndex&&(v=H(t,"zIndex",s),("auto"===v||""===v)&&this._addLazySet(w,"zIndex",0)),_&&this._addLazySet(w,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(x?"visible":"hidden"))):w.zoom=1,c=p;c&&c._next;)c=c._next;y=new pe(t,"transform",0,0,null,2),this._linkCSSP(y,null,c),y.setRatio=x&&be?Me:xe?Le:De,y.data=this._transform||Ae(t,s,!0),n.pop()}if(i){for(;p;){for(g=p._next,c=d;c&&c.pr>p.pr;)c=c._next;(p._prev=c?c._prev:m)?p._prev._next=p:d=p,(p._next=c)?c._prev=p:m=p,p=g}this._firstPT=d}return!0},l.parse=function(t,e,i,n){var a,l,u,f,p,_,c,d,m,g,v=t.style;for(a in e)_=e[a],l=o[a],l?i=l.parse(t,_,a,this,i,n,e):(p=H(t,a,s)+"",m="string"==typeof _,"color"===a||"fill"===a||"stroke"===a||-1!==a.indexOf("Color")||m&&b.test(_)?(m||(_=oe(_),_=(_.length>3?"rgba(":"rgb(")+_.join(",")+")"),i=_e(v,a,p,_,!0,"transparent",i,0,n)):!m||-1===_.indexOf(" ")&&-1===_.indexOf(",")?(u=parseFloat(p),c=u||0===u?p.substr((u+"").length):"",(""===p||"auto"===p)&&("width"===a||"height"===a?(u=te(t,a,s),c="px"):"left"===a||"top"===a?(u=Q(t,a,s),c="px"):(u="opacity"!==a?0:1,c="")),g=m&&"="===_.charAt(1),g?(f=parseInt(_.charAt(0)+"1",10),_=_.substr(2),f*=parseFloat(_),d=_.replace(y,"")):(f=parseFloat(_),d=m?_.substr((f+"").length)||"":""),""===d&&(d=a in r?r[a]:c),_=f||0===f?(g?f+u:f)+d:e[a],c!==d&&""!==d&&(f||0===f)&&u&&(u=G(t,a,u,c),"%"===d?(u/=G(t,a,100,"%")/100,e.strictUnits!==!0&&(p=u+"%")):"em"===d?u/=G(t,a,1,"em"):"px"!==d&&(f=G(t,a,f,d),d="px"),g&&(f||0===f)&&(_=f+u+d)),g&&(f+=u),!u&&0!==u||!f&&0!==f?void 0!==v[a]&&(_||"NaN"!=_+""&&null!=_)?(i=new pe(v,a,f||u||0,0,i,-1,a,!1,0,p,_),i.xs0="none"!==_||"display"!==a&&-1===a.indexOf("Style")?_:p):U("invalid "+a+" tween value: "+e[a]):(i=new pe(v,a,u,f-u,i,0,a,h!==!1&&("px"===d||"zIndex"===a),0,p,_),i.xs0=d)):i=_e(v,a,p,_,!0,null,i,0,n)),n&&i&&!i.plugin&&(i.plugin=n); +return i},l.setRatio=function(t){var e,i,r,s=this._firstPT,n=1e-6;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawPrevTime===-1e-6)for(;s;){if(e=s.c*t+s.s,s.r?e=Math.round(e):n>e&&e>-n&&(e=0),s.type)if(1===s.type)if(r=s.l,2===r)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2;else if(3===r)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3;else if(4===r)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3+s.xn3+s.xs4;else if(5===r)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3+s.xn3+s.xs4+s.xn4+s.xs5;else{for(i=s.xs0+e+s.xs1,r=1;s.l>r;r++)i+=s["xn"+r]+s["xs"+(r+1)];s.t[s.p]=i}else-1===s.type?s.t[s.p]=s.xs0:s.setRatio&&s.setRatio(t);else s.t[s.p]=e+s.xs0;s=s._next}else for(;s;)2!==s.type?s.t[s.p]=s.b:s.setRatio(t),s=s._next;else for(;s;)2!==s.type?s.t[s.p]=s.e:s.setRatio(t),s=s._next},l._enableTransforms=function(t){this._transform=this._transform||Ae(this._target,s,!0),this._transformType=this._transform.svg&&ve||!t&&3!==this._transformType?2:3};var Ee=function(){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};l._addLazySet=function(t,e,i){var r=this._firstPT=new pe(t,e,0,0,this._firstPT,2);r.e=i,r.setRatio=Ee,r.data=this},l._linkCSSP=function(t,e,i,r){return t&&(e&&(e._prev=t),t._next&&(t._next._prev=t._prev),t._prev?t._prev._next=t._next:this._firstPT===t&&(this._firstPT=t._next,r=!0),i?i._next=t:r||null!==this._firstPT||(this._firstPT=t),t._next=e,t._prev=i),t},l._kill=function(e){var i,r,s,n=e;if(e.autoAlpha||e.alpha){n={};for(r in e)n[r]=e[r];n.opacity=1,n.autoAlpha&&(n.visibility=1)}return e.className&&(i=this._classNamePT)&&(s=i.xfirst,s&&s._prev?this._linkCSSP(s._prev,i._next,s._prev._prev):s===this._firstPT&&(this._firstPT=i._next),i._next&&this._linkCSSP(i._next,i._next._next,s._prev),this._classNamePT=null),t.prototype._kill.call(this,n)};var Fe=function(t,e,i){var r,s,n,a;if(t.slice)for(s=t.length;--s>-1;)Fe(t[s],e,i);else for(r=t.childNodes,s=r.length;--s>-1;)n=r[s],a=n.type,n.style&&(e.push(Z(n)),i&&i.push(n)),1!==a&&9!==a&&11!==a||!n.childNodes.length||Fe(n,e,i)};return a.cascadeTo=function(t,i,r){var s,n,a,o=e.to(t,i,r),l=[o],h=[],u=[],f=[],p=e._internals.reservedProps;for(t=o._targets||o.target,Fe(t,h,f),o.render(i,!0),Fe(t,u),o.render(0,!0),o._enabled(!0),s=f.length;--s>-1;)if(n=$(f[s],h[s],u[s]),n.firstMPT){n=n.difs;for(a in r)p[a]&&(n[a]=r[a]);l.push(e.to(f[s],i,n))}return l},t.activate([a]),a},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope)[t]};"function"==typeof define&&define.amd?define(["TweenLite"],e):"undefined"!=typeof module&&module.exports&&(require("../TweenLite.js"),module.exports=e())}("CSSPlugin"); + +/*! + * VERSION: beta 0.3.3 + * DATE: 2014-10-29 + * UPDATES AND DOCS AT: http://www.greensock.com + * + * @license Copyright (c) 2008-2014, GreenSock. All rights reserved. + * SplitText is a Club GreenSock membership benefit; You must have a valid membership to use + * this code without violating the terms of use. Visit http://www.greensock.com/club/ to sign up or get more details. + * This work is subject to the software agreement that was issued with your membership. + * + * @author: Jack Doyle, jack@greensock.com + */ +var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(function(t){"use strict";var e=t.GreenSockGlobals||t,i=function(t){var i,s=t.split("."),r=e;for(i=0;s.length>i;i++)r[s[i]]=r=r[s[i]]||{};return r},s=i("com.greensock.utils"),r=function(t){var e=t.nodeType,i="";if(1===e||9===e||11===e){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=r(t)}else if(3===e||4===e)return t.nodeValue;return i},n=document,a=n.defaultView?n.defaultView.getComputedStyle:function(){},o=/([A-Z])/g,h=function(t,e,i,s){var r;return(i=i||a(t,null))?(t=i.getPropertyValue(e.replace(o,"-$1").toLowerCase()),r=t||i.length?t:i[e]):t.currentStyle&&(i=t.currentStyle,r=i[e]),s?r:parseInt(r,10)||0},l=function(t){return t.length&&t[0]&&(t[0].nodeType&&t[0].style&&!t.nodeType||t[0].length&&t[0][0])?!0:!1},_=function(t){var e,i,s,r=[],n=t.length;for(e=0;n>e;e++)if(i=t[e],l(i))for(s=i.length,s=0;i.length>s;s++)r.push(i[s]);else r.push(i);return r},u=")eefec303079ad17405c",c=/(?:
||
)/gi,p=n.all&&!n.addEventListener,f="
":">")}},d=s.SplitText=e.SplitText=function(t,e){if("string"==typeof t&&(t=d.selector(t)),!t)throw"cannot split a null element.";this.elements=l(t)?_(t):[t],this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=e||{},this.split(e)},g=function(t,e,i){var s=t.nodeType;if(1===s||9===s||11===s)for(t=t.firstChild;t;t=t.nextSibling)g(t,e,i);else(3===s||4===s)&&(t.nodeValue=t.nodeValue.split(e).join(i))},v=function(t,e){for(var i=e.length;--i>-1;)t.push(e[i])},y=function(t,e,i,s,o){c.test(t.innerHTML)&&(t.innerHTML=t.innerHTML.replace(c,u));var l,_,p,f,d,y,T,w,b,x,P,S,C,k,R=r(t),A=e.type||e.split||"chars,words,lines",O=-1!==A.indexOf("lines")?[]:null,D=-1!==A.indexOf("words"),M=-1!==A.indexOf("chars"),L="absolute"===e.position||e.absolute===!0,z=L?"­ ":" ",I=-999,E=a(t),N=h(t,"paddingLeft",E),F=h(t,"borderBottomWidth",E)+h(t,"borderTopWidth",E),X=h(t,"borderLeftWidth",E)+h(t,"borderRightWidth",E),U=h(t,"paddingTop",E)+h(t,"paddingBottom",E),B=h(t,"paddingLeft",E)+h(t,"paddingRight",E),j=h(t,"textAlign",E,!0),Y=t.clientHeight,q=t.clientWidth,G="
",V=m(e.wordsClass),Q=m(e.charsClass),W=-1!==(e.linesClass||"").indexOf("++"),H=e.linesClass,Z=-1!==R.indexOf("<"),$=!0,K=[],J=[],te=[];for(W&&(H=H.split("++").join("")),Z&&(R=R.split("<").join("{{LT}}")),l=R.length,f=V(),d=0;l>d;d++)if(T=R.charAt(d),")"===T&&R.substr(d,20)===u)f+=($?G:"")+"
",$=!1,d!==l-20&&R.substr(d+20,20)!==u&&(f+=" "+V(),$=!0),d+=19;else if(" "===T&&" "!==R.charAt(d-1)&&d!==l-1&&R.substr(d-20,20)!==u){for(f+=$?G:"",$=!1;" "===R.charAt(d+1);)f+=z,d++;(")"!==R.charAt(d+1)||R.substr(d+1,20)!==u)&&(f+=z+V(),$=!0)}else f+=M&&" "!==T?Q()+T+"":T;for(t.innerHTML=f+($?G:""),Z&&g(t,"{{LT}}","<"),y=t.getElementsByTagName("*"),l=y.length,w=[],d=0;l>d;d++)w[d]=y[d];if(O||L)for(d=0;l>d;d++)b=w[d],p=b.parentNode===t,(p||L||M&&!D)&&(x=b.offsetTop,O&&p&&x!==I&&"BR"!==b.nodeName&&(_=[],O.push(_),I=x),L&&(b._x=b.offsetLeft,b._y=x,b._w=b.offsetWidth,b._h=b.offsetHeight),O&&(D!==p&&M||(_.push(b),b._x-=N),p&&d&&(w[d-1]._wordEnd=!0),"BR"===b.nodeName&&b.nextSibling&&"BR"===b.nextSibling.nodeName&&O.push([])));for(d=0;l>d;d++)b=w[d],p=b.parentNode===t,"BR"!==b.nodeName?(L&&(S=b.style,D||p||(b._x+=b.parentNode._x,b._y+=b.parentNode._y),S.left=b._x+"px",S.top=b._y+"px",S.position="absolute",S.display="block",S.width=b._w+1+"px",S.height=b._h+"px"),D?p&&""!==b.innerHTML?J.push(b):M&&K.push(b):p?(t.removeChild(b),w.splice(d--,1),l--):!p&&M&&(x=!O&&!L&&b.nextSibling,t.appendChild(b),x||t.appendChild(n.createTextNode(" ")),K.push(b))):O||L?(t.removeChild(b),w.splice(d--,1),l--):D||t.appendChild(b);if(O){for(L&&(P=n.createElement("div"),t.appendChild(P),C=P.offsetWidth+"px",x=P.offsetParent===t?0:t.offsetLeft,t.removeChild(P)),S=t.style.cssText,t.style.cssText="display:none;";t.firstChild;)t.removeChild(t.firstChild);for(k=!L||!D&&!M,d=0;O.length>d;d++){for(_=O[d],P=n.createElement("div"),P.style.cssText="display:block;text-align:"+j+";position:"+(L?"absolute;":"relative;"),H&&(P.className=H+(W?d+1:"")),te.push(P),l=_.length,y=0;l>y;y++)"BR"!==_[y].nodeName&&(b=_[y],P.appendChild(b),k&&(b._wordEnd||D)&&P.appendChild(n.createTextNode(" ")),L&&(0===y&&(P.style.top=b._y+"px",P.style.left=N+x+"px"),b.style.top="0px",x&&(b.style.left=b._x-x+"px")));0===l&&(P.innerHTML=" "),D||M||(P.innerHTML=r(P).split(String.fromCharCode(160)).join(" ")),L&&(P.style.width=C,P.style.height=b._h+"px"),t.appendChild(P)}t.style.cssText=S}L&&(Y>t.clientHeight&&(t.style.height=Y-U+"px",Y>t.clientHeight&&(t.style.height=Y+F+"px")),q>t.clientWidth&&(t.style.width=q-B+"px",q>t.clientWidth&&(t.style.width=q+X+"px"))),v(i,K),v(s,J),v(o,te)},T=d.prototype;T.split=function(t){this.isSplit&&this.revert(),this.vars=t||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var e=this.elements.length;--e>-1;)this._originals[e]=this.elements[e].innerHTML,y(this.elements[e],this.vars,this.chars,this.words,this.lines);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},T.revert=function(){if(!this._originals)throw"revert() call wasn't scoped properly.";for(var t=this._originals.length;--t>-1;)this.elements[t].innerHTML=this._originals[t];return this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},d.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(d.selector=i,i(e)):"undefined"==typeof document?e:document.querySelectorAll?document.querySelectorAll(e):document.getElementById("#"===e.charAt(0)?e.substr(1):e)},d.version="0.3.3"})(_gsScope),function(t){"use strict";var e=function(){return(_gsScope.GreenSockGlobals||_gsScope)[t]};"function"==typeof define&&define.amd?define(["TweenLite"],e):"undefined"!=typeof module&&module.exports&&(module.exports=e())}("SplitText"); + + +try{ + window.GreenSockGlobals = null; + window._gsQueue = null; + window._gsDefine = null; + + delete(window.GreenSockGlobals); + delete(window._gsQueue); + delete(window._gsDefine); + } catch(e) {} + +try{ + window.GreenSockGlobals = oldgs; + window._gsQueue = oldgs_queue; + } catch(e) {} + +if (window.tplogs==true) + try { + console.groupEnd(); + } catch(e) {} + + + + + +(function(e,t){ + e.waitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage"]};e.expr[":"].uncached=function(t){var n=document.createElement("img");n.src=t.src;return e(t).is('img[src!=""]')&&!n.complete};e.fn.waitForImages=function(t,n,r){if(e.isPlainObject(arguments[0])){n=t.each;r=t.waitForAll;t=t.finished}t=t||e.noop;n=n||e.noop;r=!!r;if(!e.isFunction(t)||!e.isFunction(n)){throw new TypeError("An invalid callback was supplied.")}return this.each(function(){var i=e(this),s=[];if(r){var o=e.waitForImages.hasImageProperties||[],u=/url\((['"]?)(.*?)\1\)/g;i.find("*").each(function(){var t=e(this);if(t.is("img:uncached")){s.push({src:t.attr("src"),element:t[0]})}e.each(o,function(e,n){var r=t.css(n);if(!r){return true}var i;while(i=u.exec(r)){s.push({src:i[2],element:t[0]})}})})}else{i.find("img:uncached").each(function(){s.push({src:this.src,element:this})})}var f=s.length,l=0;if(f==0){t.call(i[0])}e.each(s,function(r,s){var o=new Image;e(o).bind("load error",function(e){l++;n.call(s.element,l,f,e.type=="load");if(l==f){t.call(i[0]);return false}});o.src=s.src})})}; +})(jQuery) diff --git a/arches/app/media/plugins/revolution-slider/rs-plugin/js/jquery2.2.3/jquery.min.js b/arches/app/media/plugins/revolution-slider/rs-plugin/js/jquery2.2.3/jquery.min.js index 1677970db6d..b8c4187de18 100644 --- a/arches/app/media/plugins/revolution-slider/rs-plugin/js/jquery2.2.3/jquery.min.js +++ b/arches/app/media/plugins/revolution-slider/rs-plugin/js/jquery2.2.3/jquery.min.js @@ -1,4 +1,4 @@ -/*! jQuery v2.2.3 | (c) jQuery Foundation | jquery.org/license */ -!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k=i.hasOwnProperty,l={},m="2.2.3",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return e.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:e.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a){return n.each(this,a)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(e.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:g,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(n.isPlainObject(d)||(e=n.isArray(d)))?(e?(e=!1,f=c&&n.isArray(c)?c:[]):f=c&&n.isPlainObject(c)?c:{},g[b]=n.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){var b=a&&a.toString();return!n.isArray(a)&&b-parseFloat(b)+1>=0},isPlainObject:function(a){var b;if("object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;if(a.constructor&&!k.call(a,"constructor")&&!k.call(a.constructor.prototype||{},"isPrototypeOf"))return!1;for(b in a);return void 0===b||k.call(a,b)},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?i[j.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=n.trim(a),a&&(1===a.indexOf("use strict")?(b=d.createElement("script"),b.text=a,d.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b){var c,d=0;if(s(a)){for(c=a.length;c>d;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):g.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:h.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,e,g=0,h=[];if(s(a))for(d=a.length;d>g;g++)e=b(a[g],g,c),null!=e&&h.push(e);else for(g in a)e=b(a[g],g,c),null!=e&&h.push(e);return f.apply([],h)},guid:1,proxy:function(a,b){var c,d,f;return"string"==typeof b&&(c=a[b],b=a,a=c),n.isFunction(a)?(d=e.call(arguments,2),f=function(){return a.apply(b||this,d.concat(e.call(arguments)))},f.guid=a.guid=a.guid||n.guid++,f):void 0},now:Date.now,support:l}),"function"==typeof Symbol&&(n.fn[Symbol.iterator]=c[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){i["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=!!a&&"length"in a&&a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ga(),z=ga(),A=ga(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+L+"*\\]",O=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",P=new RegExp(L+"+","g"),Q=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),R=new RegExp("^"+L+"*,"+L+"*"),S=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),T=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),U=new RegExp(O),V=new RegExp("^"+M+"$"),W={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_=/[+~]/,aa=/'|\\/g,ba=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ca=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},da=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(ea){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fa(a,b,d,e){var f,h,j,k,l,o,r,s,w=b&&b.ownerDocument,x=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==x&&9!==x&&11!==x)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==x&&(o=$.exec(a)))if(f=o[1]){if(9===x){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(w&&(j=w.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(o[2])return H.apply(d,b.getElementsByTagName(a)),d;if((f=o[3])&&c.getElementsByClassName&&b.getElementsByClassName)return H.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==x)w=b,s=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(aa,"\\$&"):b.setAttribute("id",k=u),r=g(a),h=r.length,l=V.test(k)?"#"+k:"[id='"+k+"']";while(h--)r[h]=l+" "+qa(r[h]);s=r.join(","),w=_.test(a)&&oa(b.parentNode)||b}if(s)try{return H.apply(d,w.querySelectorAll(s)),d}catch(y){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(Q,"$1"),b,d,e)}function ga(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ha(a){return a[u]=!0,a}function ia(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ja(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function ka(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function la(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function na(a){return ha(function(b){return b=+b,ha(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function oa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=fa.support={},f=fa.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fa.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ia(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ia(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Z.test(n.getElementsByClassName),c.getById=ia(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return"undefined"!=typeof b.getElementsByClassName&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=Z.test(n.querySelectorAll))&&(ia(function(a){o.appendChild(a).innerHTML="",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ia(function(a){var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Z.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ia(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",O)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Z.test(o.compareDocumentPosition),t=b||Z.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return ka(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?ka(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},fa.matches=function(a,b){return fa(a,null,null,b)},fa.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(T,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fa(b,n,null,[a]).length>0},fa.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fa.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fa.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fa.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fa.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fa.selectors={cacheLength:50,createPseudo:ha,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ba,ca),a[3]=(a[3]||a[4]||a[5]||"").replace(ba,ca),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fa.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&fa.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return W.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&U.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ba,ca).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fa.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(P," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fa.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ha(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ha(function(a){var b=[],c=[],d=h(a.replace(Q,"$1"));return d[u]?ha(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ha(function(a){return function(b){return fa(a,b).length>0}}),contains:ha(function(a){return a=a.replace(ba,ca),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ha(function(a){return V.test(a||"")||fa.error("unsupported lang: "+a),a=a.replace(ba,ca).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Y.test(a.nodeName)},input:function(a){return X.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:na(function(){return[0]}),last:na(function(a,b){return[b-1]}),eq:na(function(a,b,c){return[0>c?c+b:c]}),even:na(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:na(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:na(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:na(function(a,b,c){for(var d=0>c?c+b:c;++db;b++)d+=a[b].value;return d}function ra(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j,k=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(j=b[u]||(b[u]={}),i=j[b.uniqueID]||(j[b.uniqueID]={}),(h=i[d])&&h[0]===w&&h[1]===f)return k[2]=h[2];if(i[d]=k,k[2]=a(b,c,g))return!0}}}function sa(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ta(a,b,c){for(var d=0,e=b.length;e>d;d++)fa(a,b[d],c);return c}function ua(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function va(a,b,c,d,e,f){return d&&!d[u]&&(d=va(d)),e&&!e[u]&&(e=va(e,f)),ha(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ta(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ua(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ua(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ua(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function wa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ra(function(a){return a===b},h,!0),l=ra(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[ra(sa(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return va(i>1&&sa(m),i>1&&qa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(Q,"$1"),c,e>i&&wa(a.slice(i,e)),f>e&&wa(a=a.slice(e)),f>e&&qa(a))}m.push(c)}return sa(m)}function xa(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=F.call(i));u=ua(u)}H.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&fa.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ha(f):f}return h=fa.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xa(e,d)),f.selector=a}return f},i=fa.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ba,ca),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=W.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ba,ca),_.test(j[0].type)&&oa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qa(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,!b||_.test(a)&&oa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ia(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ia(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||ja("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ia(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ja("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ia(function(a){return null==a.getAttribute("disabled")})||ja(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),fa}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.uniqueSort=n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},v=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},w=n.expr.match.needsContext,x=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,y=/^.[^:#\[\.,]*$/;function z(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(y.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return h.call(b,a)>-1!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;c>b;b++)if(n.contains(e[b],this))return!0}));for(b=0;c>b;b++)n.find(a,e[b],d);return d=this.pushStack(c>1?n.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(z(this,a||[],!1))},not:function(a){return this.pushStack(z(this,a||[],!0))},is:function(a){return!!z(this,"string"==typeof a&&w.test(a)?n(a):a||[],!1).length}});var A,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=n.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||A,"string"==typeof a){if(e="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:B.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),x.test(e[1])&&n.isPlainObject(b))for(e in b)n.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}return f=d.getElementById(e[2]),f&&f.parentNode&&(this.length=1,this[0]=f),this.context=d,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?void 0!==c.ready?c.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};C.prototype=n.fn,A=n(d);var D=/^(?:parents|prev(?:Until|All))/,E={children:!0,contents:!0,next:!0,prev:!0};n.fn.extend({has:function(a){var b=n(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(n.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=w.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?h.call(n(a),this[0]):h.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.uniqueSort(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function F(a,b){while((a=a[b])&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return u(a,"parentNode")},parentsUntil:function(a,b,c){return u(a,"parentNode",c)},next:function(a){return F(a,"nextSibling")},prev:function(a){return F(a,"previousSibling")},nextAll:function(a){return u(a,"nextSibling")},prevAll:function(a){return u(a,"previousSibling")},nextUntil:function(a,b,c){return u(a,"nextSibling",c)},prevUntil:function(a,b,c){return u(a,"previousSibling",c)},siblings:function(a){return v((a.parentNode||{}).firstChild,a)},children:function(a){return v(a.firstChild)},contents:function(a){return a.contentDocument||n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(E[a]||n.uniqueSort(e),D.test(a)&&e.reverse()),this.pushStack(e)}});var G=/\S+/g;function H(a){var b={};return n.each(a.match(G)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?H(a):n.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h-1)f.splice(c,1),h>=c&&h--}),this},has:function(a){return a?n.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=g=[],c||(f=c=""),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().progress(c.notify).done(c.resolve).fail(c.reject):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=e.call(arguments),d=c.length,f=1!==d||a&&n.isFunction(a.promise)?d:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?e.call(arguments):d,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(d>1)for(i=new Array(d),j=new Array(d),k=new Array(d);d>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().progress(h(b,j,i)).done(h(b,k,c)).fail(g.reject):--f;return f||g.resolveWith(k,c),g.promise()}});var I;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(I.resolveWith(d,[n]),n.fn.triggerHandler&&(n(d).triggerHandler("ready"),n(d).off("ready"))))}});function J(){d.removeEventListener("DOMContentLoaded",J),a.removeEventListener("load",J),n.ready()}n.ready.promise=function(b){return I||(I=n.Deferred(),"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll?a.setTimeout(n.ready):(d.addEventListener("DOMContentLoaded",J),a.addEventListener("load",J))),I.promise(b)},n.ready.promise();var K=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)K(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},L=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function M(){this.expando=n.expando+M.uid++}M.uid=1,M.prototype={register:function(a,b){var c=b||{};return a.nodeType?a[this.expando]=c:Object.defineProperty(a,this.expando,{value:c,writable:!0,configurable:!0}),a[this.expando]},cache:function(a){if(!L(a))return{};var b=a[this.expando];return b||(b={},L(a)&&(a.nodeType?a[this.expando]=b:Object.defineProperty(a,this.expando,{value:b,configurable:!0}))),b},set:function(a,b,c){var d,e=this.cache(a);if("string"==typeof b)e[b]=c;else for(d in b)e[d]=b[d];return e},get:function(a,b){return void 0===b?this.cache(a):a[this.expando]&&a[this.expando][b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,n.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=a[this.expando];if(void 0!==f){if(void 0===b)this.register(a);else{n.isArray(b)?d=b.concat(b.map(n.camelCase)):(e=n.camelCase(b),b in f?d=[b,e]:(d=e,d=d in f?[d]:d.match(G)||[])),c=d.length;while(c--)delete f[d[c]]}(void 0===b||n.isEmptyObject(f))&&(a.nodeType?a[this.expando]=void 0:delete a[this.expando])}},hasData:function(a){var b=a[this.expando];return void 0!==b&&!n.isEmptyObject(b)}};var N=new M,O=new M,P=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Q=/[A-Z]/g;function R(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(Q,"-$&").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:P.test(c)?n.parseJSON(c):c; -}catch(e){}O.set(a,b,c)}else c=void 0;return c}n.extend({hasData:function(a){return O.hasData(a)||N.hasData(a)},data:function(a,b,c){return O.access(a,b,c)},removeData:function(a,b){O.remove(a,b)},_data:function(a,b,c){return N.access(a,b,c)},_removeData:function(a,b){N.remove(a,b)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=O.get(f),1===f.nodeType&&!N.get(f,"hasDataAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),R(f,d,e[d])));N.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){O.set(this,a)}):K(this,function(b){var c,d;if(f&&void 0===b){if(c=O.get(f,a)||O.get(f,a.replace(Q,"-$&").toLowerCase()),void 0!==c)return c;if(d=n.camelCase(a),c=O.get(f,d),void 0!==c)return c;if(c=R(f,d,void 0),void 0!==c)return c}else d=n.camelCase(a),this.each(function(){var c=O.get(this,d);O.set(this,d,b),a.indexOf("-")>-1&&void 0!==c&&O.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){O.remove(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=N.get(a,b),c&&(!d||n.isArray(c)?d=N.access(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return N.get(a,c)||N.access(a,c,{empty:n.Callbacks("once memory").add(function(){N.remove(a,[b+"queue",c])})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length",""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};$.optgroup=$.option,$.tbody=$.tfoot=$.colgroup=$.caption=$.thead,$.th=$.td;function _(a,b){var c="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&n.nodeName(a,b)?n.merge([a],c):c}function aa(a,b){for(var c=0,d=a.length;d>c;c++)N.set(a[c],"globalEval",!b||N.get(b[c],"globalEval"))}var ba=/<|&#?\w+;/;function ca(a,b,c,d,e){for(var f,g,h,i,j,k,l=b.createDocumentFragment(),m=[],o=0,p=a.length;p>o;o++)if(f=a[o],f||0===f)if("object"===n.type(f))n.merge(m,f.nodeType?[f]:f);else if(ba.test(f)){g=g||l.appendChild(b.createElement("div")),h=(Y.exec(f)||["",""])[1].toLowerCase(),i=$[h]||$._default,g.innerHTML=i[1]+n.htmlPrefilter(f)+i[2],k=i[0];while(k--)g=g.lastChild;n.merge(m,g.childNodes),g=l.firstChild,g.textContent=""}else m.push(b.createTextNode(f));l.textContent="",o=0;while(f=m[o++])if(d&&n.inArray(f,d)>-1)e&&e.push(f);else if(j=n.contains(f.ownerDocument,f),g=_(l.appendChild(f),"script"),j&&aa(g),c){k=0;while(f=g[k++])Z.test(f.type||"")&&c.push(f)}return l}!function(){var a=d.createDocumentFragment(),b=a.appendChild(d.createElement("div")),c=d.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),l.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="",l.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var da=/^key/,ea=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,fa=/^([^.]*)(?:\.(.+)|)/;function ga(){return!0}function ha(){return!1}function ia(){try{return d.activeElement}catch(a){}}function ja(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)ja(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=ha;else if(!e)return a;return 1===f&&(g=e,e=function(a){return n().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=n.guid++)),a.each(function(){n.event.add(this,b,e,d,c)})}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=N.get(a);if(r){c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=n.guid++),(i=r.events)||(i=r.events={}),(g=r.handle)||(g=r.handle=function(b){return"undefined"!=typeof n&&n.event.triggered!==b.type?n.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(G)||[""],j=b.length;while(j--)h=fa.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o&&(l=n.event.special[o]||{},o=(e?l.delegateType:l.bindType)||o,l=n.event.special[o]||{},k=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},f),(m=i[o])||(m=i[o]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,p,g)!==!1||a.addEventListener&&a.addEventListener(o,g)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),n.event.global[o]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=N.hasData(a)&&N.get(a);if(r&&(i=r.events)){b=(b||"").match(G)||[""],j=b.length;while(j--)if(h=fa.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=i[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&q!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete i[o])}else for(o in i)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(i)&&N.remove(a,"handle events")}},dispatch:function(a){a=n.event.fix(a);var b,c,d,f,g,h=[],i=e.call(arguments),j=(N.get(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())a.rnamespace&&!a.rnamespace.test(g.namespace)||(a.handleObj=g,a.data=g.data,d=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==d&&(a.result=d)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&("click"!==a.type||isNaN(a.button)||a.button<1))for(;i!==this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>-1:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h]*)\/>/gi,la=/\s*$/g;function pa(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function qa(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function ra(a){var b=na.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function sa(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(N.hasData(a)&&(f=N.access(a),g=N.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)n.event.add(b,e,j[e][c])}O.hasData(a)&&(h=O.access(a),i=n.extend({},h),O.set(b,i))}}function ta(a,b){var c=b.nodeName.toLowerCase();"input"===c&&X.test(a.type)?b.checked=a.checked:"input"!==c&&"textarea"!==c||(b.defaultValue=a.defaultValue)}function ua(a,b,c,d){b=f.apply([],b);var e,g,h,i,j,k,m=0,o=a.length,p=o-1,q=b[0],r=n.isFunction(q);if(r||o>1&&"string"==typeof q&&!l.checkClone&&ma.test(q))return a.each(function(e){var f=a.eq(e);r&&(b[0]=q.call(this,e,f.html())),ua(f,b,c,d)});if(o&&(e=ca(b,a[0].ownerDocument,!1,a,d),g=e.firstChild,1===e.childNodes.length&&(e=g),g||d)){for(h=n.map(_(e,"script"),qa),i=h.length;o>m;m++)j=e,m!==p&&(j=n.clone(j,!0,!0),i&&n.merge(h,_(j,"script"))),c.call(a[m],j,m);if(i)for(k=h[h.length-1].ownerDocument,n.map(h,ra),m=0;i>m;m++)j=h[m],Z.test(j.type||"")&&!N.access(j,"globalEval")&&n.contains(k,j)&&(j.src?n._evalUrl&&n._evalUrl(j.src):n.globalEval(j.textContent.replace(oa,"")))}return a}function va(a,b,c){for(var d,e=b?n.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||n.cleanData(_(d)),d.parentNode&&(c&&n.contains(d.ownerDocument,d)&&aa(_(d,"script")),d.parentNode.removeChild(d));return a}n.extend({htmlPrefilter:function(a){return a.replace(ka,"<$1>")},clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=n.contains(a.ownerDocument,a);if(!(l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(g=_(h),f=_(a),d=0,e=f.length;e>d;d++)ta(f[d],g[d]);if(b)if(c)for(f=f||_(a),g=g||_(h),d=0,e=f.length;e>d;d++)sa(f[d],g[d]);else sa(a,h);return g=_(h,"script"),g.length>0&&aa(g,!i&&_(a,"script")),h},cleanData:function(a){for(var b,c,d,e=n.event.special,f=0;void 0!==(c=a[f]);f++)if(L(c)){if(b=c[N.expando]){if(b.events)for(d in b.events)e[d]?n.event.remove(c,d):n.removeEvent(c,d,b.handle);c[N.expando]=void 0}c[O.expando]&&(c[O.expando]=void 0)}}}),n.fn.extend({domManip:ua,detach:function(a){return va(this,a,!0)},remove:function(a){return va(this,a)},text:function(a){return K(this,function(a){return void 0===a?n.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=a)})},null,a,arguments.length)},append:function(){return ua(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=pa(this,a);b.appendChild(a)}})},prepend:function(){return ua(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=pa(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return ua(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return ua(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(n.cleanData(_(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return K(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!la.test(a)&&!$[(Y.exec(a)||["",""])[1].toLowerCase()]){a=n.htmlPrefilter(a);try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(_(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return ua(this,arguments,function(b){var c=this.parentNode;n.inArray(this,a)<0&&(n.cleanData(_(this)),c&&c.replaceChild(b,this))},a)}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=[],e=n(a),f=e.length-1,h=0;f>=h;h++)c=h===f?this:this.clone(!0),n(e[h])[b](c),g.apply(d,c.get());return this.pushStack(d)}});var wa,xa={HTML:"block",BODY:"block"};function ya(a,b){var c=n(b.createElement(a)).appendTo(b.body),d=n.css(c[0],"display");return c.detach(),d}function za(a){var b=d,c=xa[a];return c||(c=ya(a,b),"none"!==c&&c||(wa=(wa||n("