diff --git a/.env b/.env new file mode 100644 index 0000000..ccbed2b --- /dev/null +++ b/.env @@ -0,0 +1,71 @@ +CONTAINER_PORT=62100 +UID=1000 +#-------------------------------------------------------------------- +# Example Environment Configuration file +# +# This file can be used as a starting point for your own +# custom .env files, and contains most of the possible settings +# available in a default install. +# +# By default, all of the settings are commented out. If you want +# to override the setting, you must un-comment it by removing the '#' +# at the beginning of the line. +#-------------------------------------------------------------------- + +#-------------------------------------------------------------------- +# ENVIRONMENT +#-------------------------------------------------------------------- + +# CI_ENVIRONMENT = production + +#-------------------------------------------------------------------- +# APP +#-------------------------------------------------------------------- + +# app.baseURL = '' +# If you have trouble with `.`, you could also use `_`. +# app_baseURL = '' +# app.forceGlobalSecureRequests = false +# app.CSPEnabled = false + +#-------------------------------------------------------------------- +# DATABASE +#-------------------------------------------------------------------- + +# database.default.hostname = localhost +# database.default.database = ci4 +# database.default.username = root +# database.default.password = root +# database.default.DBDriver = MySQLi +# database.default.DBPrefix = +# database.default.port = 3306 + +# If you use MySQLi as tests, first update the values of Config\Database::$tests. +# database.tests.hostname = localhost +# database.tests.database = ci4_test +# database.tests.username = root +# database.tests.password = root +# database.tests.DBDriver = MySQLi +# database.tests.DBPrefix = +# database.tests.charset = utf8mb4 +# database.tests.DBCollat = utf8mb4_general_ci +# database.tests.port = 3306 + +#-------------------------------------------------------------------- +# ENCRYPTION +#-------------------------------------------------------------------- + +# encryption.key = + +#-------------------------------------------------------------------- +# SESSION +#-------------------------------------------------------------------- + +# session.driver = 'CodeIgniter\Session\Handlers\FileHandler' +# session.savePath = null + +#-------------------------------------------------------------------- +# LOGGER +#-------------------------------------------------------------------- + +# logger.threshold = 4 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3d5641e --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.idea +apache_log diff --git a/app/Config/Routes.php b/app/Config/Routes.php index fc4914a..3941057 100644 --- a/app/Config/Routes.php +++ b/app/Config/Routes.php @@ -6,3 +6,5 @@ use CodeIgniter\Router\RouteCollection; * @var RouteCollection $routes */ $routes->get('/', 'Home::index'); +$routes->get('/about-us', 'Home::aboutUs'); +$routes->get('/contacts', 'Home::contacts'); \ No newline at end of file diff --git a/app/Controllers/Home.php b/app/Controllers/Home.php index 5934333..69925cc 100644 --- a/app/Controllers/Home.php +++ b/app/Controllers/Home.php @@ -6,6 +6,13 @@ class Home extends BaseController { public function index(): string { - return view('welcome_message'); + return view('home'); + } + public function aboutUs(): string + { + return view('about-us'); + } + public function contacts():string { + return view('contacts'); } } diff --git a/app/Views/about-us.php b/app/Views/about-us.php new file mode 100644 index 0000000..7a606e7 --- /dev/null +++ b/app/Views/about-us.php @@ -0,0 +1,48 @@ +extend('layouts/master') ?> + +section('content') ?> + + +
+ +

About Us

+

+ + We belief in mental health of an individual with the focus on prevention and treatment as parts of our mission because living a holistic life is our primary concern. For examples; cigarette smoking can worsen the heart condition, High blood sufferers should reduce sodium consumption, anxiety can shorten your life, and worry is an enemy of peace. Alcohol and drug abuse can kill you early or damage your liver, heart and messed up your brain, etc. + + Secondly, mental health education is way to make client aware of their infirmities, and how vulnerable their lives can be to other sicknesses, so they take precaution. Our goal is to motivate them to commit to mental health program and ask them to take necessary action to better their lives. We offer HIV/AIDS and other sexually transmitted diseases. We believe that you can be made whole, if you will take the first step to contact us/call us for help today. + + +

+
+

Services We Offer

+

+ • Alcohol and addiction therapy + • Marital problem counseling + • Group and individual counseling + • Psycho-education about prevention + • Depression and anxiety therapy + • Adolescent opposition defiant therapy + • Career and financial counseling + • Spirituality and holistic lifestyles + • Homelessness, joblessness and mental health issues + + +

+
+

Treatment Available

+

+ + I Care Mental Health will like to help you overcome your alcohol and addiction problems. We want to help you overcome your fear, anxiety and depression and motivate you to live a normal life again. Your marriage relationships can be restored to meet your expectations. Your children can do better in school if you seek therapeutic help for them. You can be informed about how to choose a better career regardless of the economic woes. I Care Agency is the right place for you, don’t hesitate just call for help before is too late. + + +

+ + +
+
+ +endSection() ?> + diff --git a/app/Views/contacts.php b/app/Views/contacts.php new file mode 100644 index 0000000..9c42b0f --- /dev/null +++ b/app/Views/contacts.php @@ -0,0 +1,58 @@ +extend('layouts/master') ?> +section('content') ?> + +
+

Contacts

+ + + +
+ +

Send Us Mail - Email: icarementalhealth@gmail.com

+ +
+
+
+
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+ +
+
+ + +
+
+
+
+ +
+ +
+
+endSection() ?> + diff --git a/app/Views/home.php b/app/Views/home.php new file mode 100644 index 0000000..c64a362 --- /dev/null +++ b/app/Views/home.php @@ -0,0 +1,58 @@ +extend('layouts/master') ?> + +section('content') ?> +
+
+ + + + + +
+
+
+ +
+
+ +
Welcome
+
+ +

+ We belief in mental health of an individual with the focus on prevention and treatment as parts of our mission because living a holistic life is our primary concern. more.... +

+
+ +
+ + +

+ • Alcohol and addiction therapy • Marital problem counseling • Group and individual counseling • Psycho-education about prevention • Depression and anxiety therapy.more.... +

+
+ +
+ + +

+ I Care Mental Health will like to help you overcome your alcohol and addiction problems. We want to help you overcome your fear, anxiety and depression and motivate you to live a normal life again.more.... +

+
+ + +
+ + + + + +
+ +
+endSection() ?> \ No newline at end of file diff --git a/app/Views/layouts/master.php b/app/Views/layouts/master.php new file mode 100644 index 0000000..915943e --- /dev/null +++ b/app/Views/layouts/master.php @@ -0,0 +1,160 @@ + + + iCare + + + + + + + + + + + + + +
+ + + + +
+ + + +
+ +
+

+ For additional information call: +404-721-0184 or Schedule a call +

+
+
+ + + +
+
+ + + + + + renderSection('content') ?> + +
+ + + +
+ + + +
+ + + + + +
+ + + +
+ + + + +
+ + + +
+ + +
+ +
+ + + + + + diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..a58fd59 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,25 @@ +version: '3' +services: + mermshosted-icare: + build: + context: . + dockerfile: docker/apache/Dockerfile + args: + uid: ${UID} + environment: + - APACHE_RUN_USER=#${UID} + - APACHE_RUN_GROUP=#${UID} + #- CI_ENV + - CI_CONFIG + restart: unless-stopped + volumes: + - ./:/var/www/html + - ./apache_log:/var/log/apache2 + ports: + - "${CONTAINER_PORT}:80" + extra_hosts: + - "host.docker.internal:host-gateway" + - oameye.works.wrenchboard.com:10.20.30.27 + - oameye.work.wrenchboard.com:10.10.33.15 +volumes: + src: diff --git a/docker/apache/000-default.conf b/docker/apache/000-default.conf new file mode 100644 index 0000000..613ea1f --- /dev/null +++ b/docker/apache/000-default.conf @@ -0,0 +1,11 @@ + + ServerAdmin works@chiefsoft.com + ServerName oameye.works.wrenchboard.com + DocumentRoot /var/www/html/public + + + Options Indexes FollowSymLinks + AllowOverride All + Require all granted + + \ No newline at end of file diff --git a/docker/apache/Dockerfile b/docker/apache/Dockerfile new file mode 100644 index 0000000..b90fed8 --- /dev/null +++ b/docker/apache/Dockerfile @@ -0,0 +1,56 @@ +# Use an official PHP runtime as a base image +FROM php:8.1-apache + +RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf +#RUN apt-get update + +RUN apt-get update && \ + apt-get install --yes --force-yes \ + cron g++ gettext libicu-dev openssl \ + libc-client-dev libkrb5-dev \ + libxml2-dev libfreetype6-dev \ + libgd-dev libmcrypt-dev bzip2 \ + libbz2-dev libtidy-dev libcurl4-openssl-dev \ + libz-dev libmemcached-dev libxslt-dev git-core libpq-dev \ + libzip4 libzip-dev libwebp-dev + + +# PHP Configuration +RUN docker-php-ext-install bcmath bz2 calendar dba exif gettext iconv intl soap tidy xsl zip&&\ + docker-php-ext-install mysqli pgsql pdo pdo_mysql pdo_pgsql &&\ + docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp &&\ + docker-php-ext-install gd &&\ + docker-php-ext-configure imap --with-kerberos --with-imap-ssl &&\ + docker-php-ext-install imap &&\ + docker-php-ext-configure hash --with-mhash &&\ + pecl install xdebug && docker-php-ext-enable xdebug &&\ + pecl install mongodb && docker-php-ext-enable mongodb &&\ + pecl install redis && docker-php-ext-enable redis + +# 2. set up document root for apache +COPY docker/apache/000-default.conf /etc/apache2/sites-available/000-default.conf + +# 3. mod_rewrite for URL rewrite and mod_headers for .htaccess extra headers like Access-Control-Allow-Origin- +RUN a2enmod rewrite headers + +# 4. start with base php config, then add extensions +RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini" + +# 5. Composer +RUN curl -sS https://getcomposer.org/installer | php +RUN mv composer.phar /usr/local/bin/composer +RUN chmod +x /usr/local/bin/composer +RUN composer self-update + +COPY / /var/www/html/ +# 6. we need a user with the same UID/GID with host user +# so when we execute CLI commands, all the host file's ownership remains intact +# otherwise command from inside container will create root-owned files and directories +ARG uid=1000 +RUN useradd -G www-data,root -u $uid -d /home/devuser devuser +RUN mkdir -p /home/devuser/.composer && \ + chown -R devuser:devuser /home/devuser + +RUN composer install + +EXPOSE 80 \ No newline at end of file diff --git a/public/assets/ajax-loader.gif b/public/assets/ajax-loader.gif new file mode 100644 index 0000000..d93974f Binary files /dev/null and b/public/assets/ajax-loader.gif differ diff --git a/public/assets/error.gif b/public/assets/error.gif new file mode 100644 index 0000000..ea0e139 Binary files /dev/null and b/public/assets/error.gif differ diff --git a/public/assets/success.gif b/public/assets/success.gif new file mode 100644 index 0000000..bcdbad1 Binary files /dev/null and b/public/assets/success.gif differ diff --git a/public/fancybox/blank.gif b/public/fancybox/blank.gif new file mode 100644 index 0000000..35d42e8 Binary files /dev/null and b/public/fancybox/blank.gif differ diff --git a/public/fancybox/fancybox_loading.gif b/public/fancybox/fancybox_loading.gif new file mode 100644 index 0000000..742131f Binary files /dev/null and b/public/fancybox/fancybox_loading.gif differ diff --git a/public/fancybox/fancybox_sprite.png b/public/fancybox/fancybox_sprite.png new file mode 100644 index 0000000..753021b Binary files /dev/null and b/public/fancybox/fancybox_sprite.png differ diff --git a/public/fancybox/helpers/fancybox_buttons.png b/public/fancybox/helpers/fancybox_buttons.png new file mode 100644 index 0000000..e0e1ea8 Binary files /dev/null and b/public/fancybox/helpers/fancybox_buttons.png differ diff --git a/public/fancybox/helpers/jquery.fancybox-buttons.css b/public/fancybox/helpers/jquery.fancybox-buttons.css new file mode 100644 index 0000000..1e83200 --- /dev/null +++ b/public/fancybox/helpers/jquery.fancybox-buttons.css @@ -0,0 +1,85 @@ +#fancybox-buttons { + position: fixed; + left: 0; + width: 100%; + z-index: 1005; +} + +#fancybox-buttons.top { + top: 10px; +} + +#fancybox-buttons.bottom { + bottom: 10px; +} + +#fancybox-buttons ul { + display: block; + width: 170px; + height: 30px; + margin: 0 auto; + padding: 0; + list-style: none; + background: #111; + -webkit-box-shadow: 0 1px 3px #000,0 0 0 1px rgba(0,0,0,.7),inset 0 0 0 1px rgba(255,255,255,.05); + -moz-box-shadow: 0 1px 3px #000,0 0 0 1px rgba(0,0,0,.7),inset 0 0 0 1px rgba(255,255,255,.05); + background: #111 -webkit-gradient(linear,0% 0%,0% 100%,from(rgba(255,255,255,.2)),color-stop(.5,rgba(255,255,255,.15)),color-stop(.5,rgba(255,255,255,.1)),to(rgba(255,255,255,.15))); + background: #111 -moz-linear-gradient(top,rgba(255,255,255,.2) 0%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.1) 50%,rgba(255,255,255,.15) 100%); + border-radius: 3px; +} + +#fancybox-buttons ul li { + float: left; + margin: 0; + padding: 0; +} + +#fancybox-buttons a { + display: block; + width: 30px; + height: 30px; + text-indent: -9999px; + background-image: url('fancybox_buttons.png'); + background-repeat: no-repeat; + outline: none; +} + +#fancybox-buttons a.btnPrev { + width: 32px; + background-position: 6px 0; +} + +#fancybox-buttons a.btnNext { + background-position: -33px 0; + border-right: 1px solid #3e3e3e; +} + +#fancybox-buttons a.btnPlay { + background-position: 0 -30px; +} + +#fancybox-buttons a.btnPlayOn { + background-position: -30px -30px; +} + +#fancybox-buttons a.btnToggle { + background-position: 3px -60px; + border-left: 1px solid #111; + border-right: 1px solid #3e3e3e; + width: 35px +} + +#fancybox-buttons a.btnToggleOn { + background-position: -27px -60px; +} + +#fancybox-buttons a.btnClose { + border-left: 1px solid #111; + width: 38px; + background-position: -57px 0px; +} + +#fancybox-buttons a.btnDisabled { + opacity : 0.5; + cursor: default; +} \ No newline at end of file diff --git a/public/fancybox/helpers/jquery.fancybox-buttons.js b/public/fancybox/helpers/jquery.fancybox-buttons.js new file mode 100644 index 0000000..e116e38 --- /dev/null +++ b/public/fancybox/helpers/jquery.fancybox-buttons.js @@ -0,0 +1,115 @@ + /*! + * Buttons helper for fancyBox + * version: 1.0.2 + * @requires fancyBox v2.0 or later + * + * Usage: + * $(".fancybox").fancybox({ + * buttons: { + * position : 'top' + * } + * }); + * + * Options: + * tpl - HTML template + * position - 'top' or 'bottom' + * + */ +(function ($) { + //Shortcut for fancyBox object + var F = $.fancybox; + + //Add helper object + F.helpers.buttons = { + tpl: '
', + list: null, + buttons: {}, + + update: function () { + var toggle = this.buttons.toggle.removeClass('btnDisabled btnToggleOn'); + + //Size toggle button + if (F.current.canShrink) { + toggle.addClass('btnToggleOn'); + + } else if (!F.current.canExpand) { + toggle.addClass('btnDisabled'); + } + }, + + beforeLoad: function (opts) { + //Remove self if gallery do not have at least two items + if (F.group.length < 2) { + F.coming.helpers.buttons = false; + F.coming.closeBtn = true; + + return; + } + + //Increase top margin to give space for buttons + F.coming.margin[ opts.position === 'bottom' ? 2 : 0 ] += 30; + }, + + onPlayStart: function () { + if (this.list) { + this.buttons.play.attr('title', 'Pause slideshow').addClass('btnPlayOn'); + } + }, + + onPlayEnd: function () { + if (this.list) { + this.buttons.play.attr('title', 'Start slideshow').removeClass('btnPlayOn'); + } + }, + + afterShow: function (opts) { + var buttons; + + if (!this.list) { + this.list = $(opts.tpl || this.tpl).addClass(opts.position || 'top').appendTo('body'); + + this.buttons = { + prev : this.list.find('.btnPrev').click( F.prev ), + next : this.list.find('.btnNext').click( F.next ), + play : this.list.find('.btnPlay').click( F.play ), + toggle : this.list.find('.btnToggle').click( F.toggle ) + } + } + + buttons = this.buttons; + + //Prev + if (F.current.index > 0 || F.current.loop) { + buttons.prev.removeClass('btnDisabled'); + } else { + buttons.prev.addClass('btnDisabled'); + } + + //Next / Play + if (F.current.loop || F.current.index < F.group.length - 1) { + buttons.next.removeClass('btnDisabled'); + buttons.play.removeClass('btnDisabled'); + + } else { + buttons.next.addClass('btnDisabled'); + buttons.play.addClass('btnDisabled'); + } + + this.update(); + }, + + onUpdate: function () { + this.update(); + }, + + beforeClose: function () { + if (this.list) { + this.list.remove(); + } + + this.list = null; + this.buttons = {}; + } + }; + +}(jQuery)); \ No newline at end of file diff --git a/public/fancybox/helpers/jquery.fancybox-thumbs.css b/public/fancybox/helpers/jquery.fancybox-thumbs.css new file mode 100644 index 0000000..aadfb73 --- /dev/null +++ b/public/fancybox/helpers/jquery.fancybox-thumbs.css @@ -0,0 +1,54 @@ +#fancybox-thumbs { + position: fixed; + left: 0px; + width: 100%; + overflow: hidden; + z-index: 1005; +} + +#fancybox-thumbs.bottom { + bottom: 2px; +} + +#fancybox-thumbs.top { + top: 2px; +} + +#fancybox-thumbs ul { + position: relative; + list-style: none; + margin: 0; + padding: 0; +} + +#fancybox-thumbs ul li { + float: left; + padding: 1px; + opacity: 0.5; +} + +#fancybox-thumbs ul li.active { + opacity: 0.75; + padding: 0; + border: 1px solid #fff; +} + +#fancybox-thumbs ul li:hover { + opacity: 1; +} + +#fancybox-thumbs ul li a { + display: block; + position: relative; + overflow: hidden; + border: 1px solid #222; + background: #111; + outline: none; +} + +#fancybox-thumbs ul li img { + display: block; + position: relative; + border: 0; + padding: 0; +} \ No newline at end of file diff --git a/public/fancybox/helpers/jquery.fancybox-thumbs.js b/public/fancybox/helpers/jquery.fancybox-thumbs.js new file mode 100644 index 0000000..7b03755 --- /dev/null +++ b/public/fancybox/helpers/jquery.fancybox-thumbs.js @@ -0,0 +1,151 @@ + /*! + * Thumbnail helper for fancyBox + * version: 1.0.2 + * @requires fancyBox v2.0 or later + * + * Usage: + * $(".fancybox").fancybox({ + * thumbs: { + * width : 50, + * height : 50 + * } + * }); + * + * Options: + * width - thumbnail width + * height - thumbnail height + * source - function to obtain the URL of the thumbnail image + * position - 'top' or 'bottom' + * + */ +(function ($) { + //Shortcut for fancyBox object + var F = $.fancybox; + + //Add helper object + F.helpers.thumbs = { + wrap: null, + list: null, + width: 0, + + //Default function to obtain the URL of the thumbnail image + source: function (el) { + var img = $(el).find('img'); + + return img.length ? img.attr('src') : el.href; + }, + + init: function (opts) { + var that = this, + list, + thumbWidth = opts.width || 50, + thumbHeight = opts.height || 50, + thumbSource = opts.source || this.source; + + //Build list structure + list = ''; + + for (var n = 0; n < F.group.length; n++) { + list += '
  • '; + } + + this.wrap = $('
    ').addClass(opts.position || 'bottom').appendTo('body'); + this.list = $('').appendTo(this.wrap); + + //Load each thumbnail + $.each(F.group, function (i) { + $("").load(function () { + var width = this.width, + height = this.height, + widthRatio, heightRatio, parent; + + if (!that.list || !width || !height) { + return; + } + + //Calculate thumbnail width/height and center it + widthRatio = width / thumbWidth; + heightRatio = height / thumbHeight; + parent = that.list.children().eq(i).find('a'); + + if (widthRatio >= 1 && heightRatio >= 1) { + if (widthRatio > heightRatio) { + width = Math.floor(width / heightRatio); + height = thumbHeight; + + } else { + width = thumbWidth; + height = Math.floor(height / widthRatio); + } + } + + $(this).css({ + width: width, + height: height, + top: Math.floor(thumbHeight / 2 - height / 2), + left: Math.floor(thumbWidth / 2 - width / 2) + }); + + parent.width(thumbWidth).height(thumbHeight); + + $(this).hide().appendTo(parent).fadeIn(300); + + }).attr('src', thumbSource(this)); + }); + + //Set initial width + this.width = this.list.children().eq(0).outerWidth(); + + this.list.width(this.width * (F.group.length + 1)).css('left', Math.floor($(window).width() * 0.5 - (F.current.index * this.width + this.width * 0.5))); + }, + + //Center list + update: function (opts) { + if (this.list) { + this.list.stop(true).animate({ + 'left': Math.floor($(window).width() * 0.5 - (F.current.index * this.width + this.width * 0.5)) + }, 150); + } + }, + + beforeLoad: function (opts) { + //Remove self if gallery do not have at least two items + if (F.group.length < 2) { + F.coming.helpers.thumbs = false; + + return; + } + + //Increase bottom margin to give space for thumbs + F.coming.margin[ opts.position === 'top' ? 0 : 2 ] = opts.height + 30; + }, + + afterShow: function (opts) { + //Check if exists and create or update list + if (this.list) { + this.update(opts); + + } else { + this.init(opts); + } + + //Set active element + this.list.children().removeClass('active').eq(F.current.index).addClass('active'); + }, + + onUpdate: function () { + this.update(); + }, + + beforeClose: function () { + if (this.wrap) { + this.wrap.remove(); + } + + this.wrap = null; + this.list = null; + this.width = 0; + } + } + +}(jQuery)); \ No newline at end of file diff --git a/public/fancybox/jquery.fancybox.css b/public/fancybox/jquery.fancybox.css new file mode 100644 index 0000000..fa9ab43 --- /dev/null +++ b/public/fancybox/jquery.fancybox.css @@ -0,0 +1,222 @@ +/*! fancyBox v2.0.5 fancyapps.com | fancyapps.com/fancybox/#license */ +.fancybox-tmp iframe, .fancybox-tmp object { + vertical-align: top; + padding: 0; + margin: 0; +} + +.fancybox-wrap { + position: absolute; + top: 0; + left: 0; + z-index: 1002; +} + +.fancybox-outer { + position: relative; + padding: 0; + margin: 0; + background: #f9f9f9; + color: #444; + text-shadow: none; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; +} + +.fancybox-opened { + z-index: 1003; +} + +.fancybox-opened .fancybox-outer { + -webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); + -moz-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); + box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); +} + +.fancybox-inner { + width: 100%; + height: 100%; + padding: 0; + margin: 0; + position: relative; + outline: none; + overflow: hidden; +} + +.fancybox-error { + color: #444; + font: 14px/20px "Helvetica Neue",Helvetica,Arial,sans-serif; + margin: 0; + padding: 10px; +} + +.fancybox-image, .fancybox-iframe { + display: block; + width: 100%; + height: 100%; + border: 0; + padding: 0; + margin: 0; + vertical-align: top; +} + +.fancybox-image { + max-width: 100%; + max-height: 100%; +} + +#fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span { + background-image: url('fancybox_sprite.png'); +} + +#fancybox-loading { + position: fixed; + top: 50%; + left: 50%; + margin-top: -22px; + margin-left: -22px; + background-position: 0 -108px; + opacity: 0.8; + cursor: pointer; + z-index: 1010; +} + +#fancybox-loading div { + width: 44px; + height: 44px; + background: url('fancybox_loading.gif') center center no-repeat; +} + +.fancybox-close { + position: absolute; + top: -18px; + right: -18px; + width: 36px; + height: 36px; + cursor: pointer; + z-index: 1004; +} + +.fancybox-nav { + position: absolute; + top: 0; + width: 40%; + height: 100%; + cursor: pointer; + background: transparent url('blank.gif'); /* helps IE */ + z-index: 1003; +} + +.fancybox-prev { + left: 0; +} + +.fancybox-next { + right: 0; +} + +.fancybox-nav span { + position: absolute; + top: 50%; + width: 36px; + height: 36px; + margin-top: -18px; + cursor: pointer; + z-index: 1003; + visibility: hidden; +} + +.fancybox-prev span { + left: 20px; + background-position: 0 -36px; +} + +.fancybox-next span { + right: 20px; + background-position: 0 -72px; +} + +.fancybox-nav:hover span { + visibility: visible; +} + +.fancybox-tmp { + position: absolute; + top: -9999px; + left: -9999px; + padding: 0; + overflow: visible; + visibility: hidden; +} + +/* Overlay helper */ + +#fancybox-overlay { + position: absolute; + top: 0; + left: 0; + overflow: hidden; + display: none; + z-index: 1001; + background: #000; +} + +/* Title helper */ + +.fancybox-title { + visibility: hidden; + font: normal 13px/20px "Helvetica Neue",Helvetica,Arial,sans-serif; + position: relative; + text-shadow: none; + z-index: 1005; +} + +.fancybox-opened .fancybox-title { + visibility: visible; +} + +.fancybox-title-float-wrap { + position: absolute; + bottom: 0; + right: 50%; + margin-bottom: -35px; + z-index: 1003; + text-align: center; +} + +.fancybox-title-float-wrap .child { + display: inline-block; + margin-right: -100%; + padding: 2px 20px; + background: transparent; /* Fallback for web browsers that doesn't support RGBa */ + background: rgba(0, 0, 0, 0.8); + -webkit-border-radius: 15px; + -moz-border-radius: 15px; + border-radius: 15px; + text-shadow: 0 1px 2px #222; + color: #FFF; + font-weight: bold; + line-height: 24px; + white-space: nowrap; +} + +.fancybox-title-outside-wrap { + position: relative; + margin-top: 10px; + color: #fff; +} + +.fancybox-title-inside-wrap { + margin-top: 10px; +} + +.fancybox-title-over-wrap { + position: absolute; + bottom: 0; + left: 0; + color: #fff; + padding: 10px; + background: #000; + background: rgba(0, 0, 0, .8); +} \ No newline at end of file diff --git a/public/fancybox/jquery.fancybox.js b/public/fancybox/jquery.fancybox.js new file mode 100644 index 0000000..c8003a4 --- /dev/null +++ b/public/fancybox/jquery.fancybox.js @@ -0,0 +1,1414 @@ + /*! + * fancyBox - jQuery Plugin + * version: 2.0.5 (21/02/2012) + * @requires jQuery v1.6 or later + * + * Examples at http://fancyapps.com/fancybox/ + * License: www.fancyapps.com/fancybox/#license + * + * Copyright 2012 Janis Skarnelis - janis@fancyapps.com + * + */ +(function (window, document, $) { + var W = $(window), + D = $(document), + F = $.fancybox = function () { + F.open.apply( this, arguments ); + }, + didResize = false, + resizeTimer = null, + isMobile = typeof document.createTouch !== "undefined"; + + $.extend(F, { + // The current version of fancyBox + version: '2.0.5', + + defaults: { + padding: 15, + margin: 20, + + width: 800, + height: 600, + minWidth: 100, + minHeight: 100, + maxWidth: 9999, + maxHeight: 9999, + + autoSize: true, + autoResize: !isMobile, + autoCenter : !isMobile, + fitToView: true, + aspectRatio: false, + topRatio: 0.5, + + fixed: !($.browser.msie && $.browser.version <= 6) && !isMobile, + scrolling: 'auto', // 'auto', 'yes' or 'no' + wrapCSS: 'fancybox-default', + + arrows: true, + closeBtn: true, + closeClick: false, + nextClick : false, + mouseWheel: true, + autoPlay: false, + playSpeed: 3000, + preload : 3, + + modal: false, + loop: true, + ajax: { dataType: 'html', headers: { 'X-fancyBox': true } }, + keys: { + next: [13, 32, 34, 39, 40], // enter, space, page down, right arrow, down arrow + prev: [8, 33, 37, 38], // backspace, page up, left arrow, up arrow + close: [27] // escape key + }, + + // Override some properties + index: 0, + type: null, + href: null, + content: null, + title: null, + + // HTML templates + tpl: { + wrap: '
    ', + image: '', + iframe: '', + swf: '', + error: '

    The requested content cannot be loaded.
    Please try again later.

    ', + closeBtn: '
    ', + next: '', + prev: '' + }, + + // Properties for each animation type + // Opening fancyBox + openEffect: 'fade', // 'elastic', 'fade' or 'none' + openSpeed: 250, + openEasing: 'swing', + openOpacity: true, + openMethod: 'zoomIn', + + // Closing fancyBox + closeEffect: 'fade', // 'elastic', 'fade' or 'none' + closeSpeed: 250, + closeEasing: 'swing', + closeOpacity: true, + closeMethod: 'zoomOut', + + // Changing next gallery item + nextEffect: 'elastic', // 'elastic', 'fade' or 'none' + nextSpeed: 300, + nextEasing: 'swing', + nextMethod: 'changeIn', + + // Changing previous gallery item + prevEffect: 'elastic', // 'elastic', 'fade' or 'none' + prevSpeed: 300, + prevEasing: 'swing', + prevMethod: 'changeOut', + + // Enabled helpers + helpers: { + overlay: { + speedIn: 0, + speedOut: 300, + opacity: 0.8, + css: { + cursor: 'pointer' + }, + closeClick: true + }, + title: { + type: 'float' // 'float', 'inside', 'outside' or 'over' + } + }, + + // Callbacks + onCancel: $.noop, // If canceling + beforeLoad: $.noop, // Before loading + afterLoad: $.noop, // After loading + beforeShow: $.noop, // Before changing in current item + afterShow: $.noop, // After opening + beforeClose: $.noop, // Before closing + afterClose: $.noop // After closing + }, + + //Current state + group: {}, // Selected group + opts: {}, // Group options + coming: null, // Element being loaded + current: null, // Currently loaded element + isOpen: false, // Is currently open + isOpened: false, // Have been fully opened at least once + wrap: null, + outer: null, + inner: null, + + player: { + timer: null, + isActive: false + }, + + // Loaders + ajaxLoad: null, + imgPreload: null, + + // Some collections + transitions: {}, + helpers: {}, + + /* + * Static methods + */ + + open: function (group, opts) { + //Kill existing instances + F.close(true); + + //Normalize group + if (group && !$.isArray(group)) { + group = group instanceof $ ? $(group).get() : [group]; + } + + F.isActive = true; + + //Extend the defaults + F.opts = $.extend(true, {}, F.defaults, opts); + + //All options are merged recursive except keys + if ($.isPlainObject(opts) && typeof opts.keys !== 'undefined') { + F.opts.keys = opts.keys ? $.extend({}, F.defaults.keys, opts.keys) : false; + } + + F.group = group; + + F._start(F.opts.index || 0); + }, + + cancel: function () { + if (F.coming && false === F.trigger('onCancel')) { + return; + } + + F.coming = null; + + F.hideLoading(); + + if (F.ajaxLoad) { + F.ajaxLoad.abort(); + } + + F.ajaxLoad = null; + + if (F.imgPreload) { + F.imgPreload.onload = F.imgPreload.onabort = F.imgPreload.onerror = null; + } + }, + + close: function (a) { + F.cancel(); + + if (!F.current || false === F.trigger('beforeClose')) { + return; + } + + F.unbindEvents(); + + //If forced or is still opening then remove immediately + if (!F.isOpen || (a && a[0] === true)) { + $(".fancybox-wrap").stop().trigger('onReset').remove(); + + F._afterZoomOut(); + + } else { + F.isOpen = F.isOpened = false; + + $(".fancybox-item, .fancybox-nav").remove(); + + F.wrap.stop(true).removeClass('fancybox-opened'); + F.inner.css('overflow', 'hidden'); + + F.transitions[F.current.closeMethod](); + } + }, + + // Start/stop slideshow + play: function (a) { + var clear = function () { + clearTimeout(F.player.timer); + }, + set = function () { + clear(); + + if (F.current && F.player.isActive) { + F.player.timer = setTimeout(F.next, F.current.playSpeed); + } + }, + stop = function () { + clear(); + + $('body').unbind('.player'); + + F.player.isActive = false; + + F.trigger('onPlayEnd'); + }, + start = function () { + if (F.current && (F.current.loop || F.current.index < F.group.length - 1)) { + F.player.isActive = true; + + $('body').bind({ + 'afterShow.player onUpdate.player': set, + 'onCancel.player beforeClose.player': stop, + 'beforeLoad.player': clear + }); + + set(); + + F.trigger('onPlayStart'); + } + }; + + if (F.player.isActive || (a && a[0] === false)) { + stop(); + } else { + start(); + } + }, + + next: function () { + if (F.current) { + F.jumpto(F.current.index + 1); + } + }, + + prev: function () { + if (F.current) { + F.jumpto(F.current.index - 1); + } + }, + + jumpto: function (index) { + if (!F.current) { + return; + } + + index = parseInt(index, 10); + + if (F.group.length > 1 && F.current.loop) { + if (index >= F.group.length) { + index = 0; + + } else if (index < 0) { + index = F.group.length - 1; + } + } + + if (typeof F.group[index] !== 'undefined') { + F.cancel(); + + F._start(index); + } + }, + + reposition: function (a) { + if (F.isOpen) { + F.wrap.css(F._getPosition(a)); + } + }, + + update: function (e) { + if (F.isOpen) { + // It's a very bad idea to attach handlers to the window scroll event, run this code after a delay + if (!didResize) { + resizeTimer = setTimeout(function () { + var current = F.current; + + if (didResize) { + didResize = false; + + if (current) { + if (current.autoResize || (e && e.type === 'orientationchange')) { + if (current.autoSize) { + F.inner.height('auto'); + current.height = F.inner.height(); + } + + F._setDimension(); + + if (current.canGrow) { + F.inner.height('auto'); + } + } + + if (current.autoCenter) { + F.reposition(); + } + + F.trigger('onUpdate'); + } + } + }, 100); + } + + didResize = true; + } + }, + + toggle: function () { + if (F.isOpen) { + F.current.fitToView = !F.current.fitToView; + + F.update(); + } + }, + + hideLoading: function () { + $("#fancybox-loading").remove(); + }, + + showLoading: function () { + F.hideLoading(); + + $('
    ').click(F.cancel).appendTo('body'); + }, + + getViewport: function () { + return { + x: W.scrollLeft(), + y: W.scrollTop(), + w: W.width(), + h: W.height() + }; + }, + + // Unbind the keyboard / clicking actions + unbindEvents: function () { + if (F.wrap) { + F.wrap.unbind('.fb'); + } + + D.unbind('.fb'); + W.unbind('.fb'); + }, + + bindEvents: function () { + var current = F.current, + keys = current.keys; + + if (!current) { + return; + } + + W.bind('resize.fb, orientationchange.fb', F.update); + + if (keys) { + D.bind('keydown.fb', function (e) { + var code; + + // Ignore key combinations and key events within form elements + if (!e.ctrlKey && !e.altKey && !e.shiftKey && !e.metaKey && $.inArray(e.target.tagName.toLowerCase(), ['input', 'textarea', 'select', 'button']) < 0) { + code = e.keyCode; + + if ($.inArray(code, keys.close) > -1) { + F.close(); + e.preventDefault(); + + } else if ($.inArray(code, keys.next) > -1) { + F.next(); + e.preventDefault(); + + } else if ($.inArray(code, keys.prev) > -1) { + F.prev(); + e.preventDefault(); + } + } + }); + } + + if ($.fn.mousewheel && current.mouseWheel && F.group.length > 1) { + F.wrap.bind('mousewheel.fb', function (e, delta) { + var target = $(e.target).get(0); + + if (target.clientHeight === 0 || (target.scrollHeight === target.clientHeight && target.scrollWidth === target.clientWidth)) { + e.preventDefault(); + + F[delta > 0 ? 'prev' : 'next'](); + } + }); + } + }, + + trigger: function (event) { + var ret, obj = F[ $.inArray(event, ['onCancel', 'beforeLoad', 'afterLoad']) > -1 ? 'coming' : 'current' ]; + + if (!obj) { + return; + } + + if ($.isFunction( obj[event] )) { + ret = obj[event].apply(obj, Array.prototype.slice.call(arguments, 1)); + } + + if (ret === false) { + return false; + } + + if (obj.helpers) { + $.each(obj.helpers, function (helper, opts) { + if (opts && typeof F.helpers[helper] !== 'undefined' && $.isFunction(F.helpers[helper][event])) { + F.helpers[helper][event](opts, obj); + } + }); + } + + $.event.trigger(event + '.fb'); + }, + + isImage: function (str) { + return str && str.match(/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i); + }, + + isSWF: function (str) { + return str && str.match(/\.(swf)(.*)?$/i); + }, + + _start: function (index) { + var coming = {}, + element = F.group[index] || null, + isDom, + href, + type, + rez; + + if (element && (element.nodeType || element instanceof $)) { + isDom = true; + + if ($.metadata) { + coming = $(element).metadata(); + } + } + + coming = $.extend(true, {}, F.opts, {index : index, element : element}, ($.isPlainObject(element) ? element : coming)); + + // Re-check overridable options + $.each(['href', 'title', 'content', 'type'], function(i,v) { + coming[v] = F.opts[ v ] || (isDom && $(element).attr( v )) || coming[ v ] || null; + }); + + // Convert margin property to array - top, right, bottom, left + if (typeof coming.margin === 'number') { + coming.margin = [coming.margin, coming.margin, coming.margin, coming.margin]; + } + + // 'modal' propery is just a shortcut + if (coming.modal) { + $.extend(true, coming, { + closeBtn : false, + closeClick: false, + nextClick : false, + arrows : false, + mouseWheel : false, + keys : null, + helpers: { + overlay : { + css: { + cursor : 'auto' + }, + closeClick : false + } + } + }); + } + + //Give a chance for callback or helpers to update coming item (type, title, etc) + F.coming = coming; + + if (false === F.trigger('beforeLoad')) { + F.coming = null; + return; + } + + type = coming.type; + href = coming.href || element; + + ///Check if content type is set, if not, try to get + if (!type) { + if (isDom) { + rez = $(element).data('fancybox-type'); + + if (!rez && element.className) { + rez = element.className.match(/fancybox\.(\w+)/); + type = rez ? rez[1] : null; + } + } + + if (!type && $.type(href) === "string") { + if (F.isImage(href)) { + type = 'image'; + + } else if (F.isSWF(href)) { + type = 'swf'; + + } else if (href.match(/^#/)) { + type = 'inline'; + } + } + + // ...if not - display element itself + if (!type) { + type = isDom ? 'inline' : 'html'; + } + + coming.type = type; + } + + // Check before try to load; 'inline' and 'html' types need content, others - href + if (type === 'inline' || type === 'html') { + if (!coming.content) { + if (type === 'inline') { + coming.content = $( $.type(href) === "string" ? href.replace(/.*(?=#[^\s]+$)/, '') : href ); //strip for ie7 + + } else { + coming.content = element; + } + } + + if (!coming.content || !coming.content.length) { + type = null; + } + + } else if (!href) { + type = null; + } + + /* + Add reference to the group, so it`s possible to access from callbacks, example: + + afterLoad : function() { + this.title = 'Image ' + (this.index + 1) + ' of ' + this.group.length + (this.title ? ' - ' + this.title : ''); + } + + */ + + coming.group = F.group; + coming.isDom = isDom; + coming.href = href; + + if (type === 'image') { + F._loadImage(); + + } else if (type === 'ajax') { + F._loadAjax(); + + } else if (type) { + F._afterLoad(); + + } else { + F._error( 'type' ); + } + }, + + _error: function ( type ) { + F.hideLoading(); + + $.extend(F.coming, { + type : 'html', + autoSize : true, + minHeight : 0, + hasError : type, + content : F.coming.tpl.error + }); + + F._afterLoad(); + }, + + _loadImage: function () { + // Reset preload image so it is later possible to check "complete" property + F.imgPreload = new Image(); + + F.imgPreload.onload = function () { + this.onload = this.onerror = null; + + F.coming.width = this.width; + F.coming.height = this.height; + + F._afterLoad(); + }; + + F.imgPreload.onerror = function () { + this.onload = this.onerror = null; + + F._error( 'image' ); + }; + + F.imgPreload.src = F.coming.href; + + if (!F.imgPreload.width) { + F.showLoading(); + } + }, + + _loadAjax: function () { + F.showLoading(); + + F.ajaxLoad = $.ajax($.extend({}, F.coming.ajax, { + url: F.coming.href, + error: function (jqXHR, textStatus) { + if (textStatus !== 'abort') { + F._error( 'ajax', jqXHR ); + + } else { + F.hideLoading(); + } + }, + success: function (data, textStatus) { + if (textStatus === 'success') { + F.coming.content = data; + + F._afterLoad(); + } + } + })); + }, + + _preloadImages: function() { + var group = F.group, + current = F.current, + len = group.length, + item, + href; + + if (!current.preload || group.length < 2) { + return; + } + + for (var i = 1; i <= Math.min(current.preload, len - 1); i++) { + item = group[ (current.index + i ) % len ]; + href = $( item ).attr('href') || item; + + if (href) { + new Image().src = href; + } + } + }, + + _afterLoad: function () { + F.hideLoading(); + + if (!F.coming || false === F.trigger('afterLoad', F.current)) { + F.coming = false; + + return; + } + + if (F.isOpened) { + $(".fancybox-item").remove(); + + F.wrap.stop(true).removeClass('fancybox-opened'); + F.inner.css('overflow', 'hidden'); + + F.transitions[F.current.prevMethod](); + + } else { + $(".fancybox-wrap").stop().trigger('onReset').remove(); + + F.trigger('afterClose'); + } + + F.unbindEvents(); + + F.isOpen = false; + F.current = F.coming; + + //Build the neccessary markup + F.wrap = $(F.current.tpl.wrap).addClass('fancybox-' + (isMobile ? 'mobile' : 'desktop') + ' fancybox-tmp ' + F.current.wrapCSS).appendTo('body'); + F.outer = $('.fancybox-outer', F.wrap).css('padding', F.current.padding + 'px'); + F.inner = $('.fancybox-inner', F.wrap); + + F._setContent(); + }, + + _setContent: function () { + var content, loadingBay, iframe, current = F.current, type = current.type; + + switch (type) { + case 'inline': + case 'ajax': + case 'html': + content = current.content; + + if (content instanceof $) { + content = content.show().detach(); + + if (content.parent().hasClass('fancybox-inner')) { + content.parents('.fancybox-wrap').trigger('onReset').remove(); + } + + $(F.wrap).bind('onReset', function () { + content.appendTo('body').hide(); + }); + } + + if (current.autoSize) { + loadingBay = $('
    ').appendTo('body').append(content); + current.width = loadingBay.width(); + current.height = loadingBay.height(); + + // Re-check to fix 1px bug in some browsers + loadingBay.width( F.current.width ); + + if (loadingBay.height() > current.height) { + loadingBay.width(current.width + 1); + + current.width = loadingBay.width(); + current.height = loadingBay.height(); + } + + content = loadingBay.contents().detach(); + + loadingBay.remove(); + } + + break; + + case 'image': + content = current.tpl.image.replace('{href}', current.href); + + current.aspectRatio = true; + break; + + case 'swf': + content = current.tpl.swf.replace(/\{width\}/g, current.width).replace(/\{height\}/g, current.height).replace(/\{href\}/g, current.href); + break; + } + + if (type === 'iframe') { + content = $(current.tpl.iframe.replace('{rnd}', new Date().getTime()) ).attr('scrolling', current.scrolling); + + current.scrolling = 'auto'; + + // Set auto height for iframes + if (current.autoSize) { + content.width( current.width ); + + F.showLoading(); + + content.data('ready', false).appendTo(F.inner).bind({ + onCancel : function() { + $(this).unbind(); + + F._afterZoomOut(); + }, + load : function() { + var iframe = $(this), height; + + try { + if (this.contentWindow.document.location) { + height = iframe.contents().find('body').height() + 12; + + iframe.height( height ); + } + + } catch (e) { + current.autoSize = false; + } + + if (iframe.data('ready') === false) { + F.hideLoading(); + + if (height) { + F.current.height = height; + } + + F._beforeShow(); + + iframe.data('ready', true); + + } else if (height) { + F.update(); + } + } + + }).attr('src', current.href); + + return; + + } else { + content.attr('src', current.href); + } + + } else if (type === 'image' || type === 'swf') { + current.autoSize = false; + current.scrolling = 'visible'; + } + + F.inner.append(content); + + F._beforeShow(); + }, + + _beforeShow : function() { + F.coming = null; + + //Give a chance for helpers or callbacks to update elements + F.trigger('beforeShow'); + + //Set initial dimensions and hide + F._setDimension(); + + F.wrap.hide().removeClass('fancybox-tmp'); + + F.bindEvents(); + F._preloadImages(); + + F.transitions[ F.isOpened ? F.current.nextMethod : F.current.openMethod ](); + }, + + _setDimension: function () { + var wrap = F.wrap, + outer = F.outer, + inner = F.inner, + current = F.current, + viewport = F.getViewport(), + margin = current.margin, + padding2 = current.padding * 2, + width = current.width, + height = current.height, + maxWidth = current.maxWidth, + maxHeight = current.maxHeight, + minWidth = current.minWidth, + minHeight = current.minHeight, + ratio, + height_, + space; + + viewport.w -= (margin[1] + margin[3]); + viewport.h -= (margin[0] + margin[2]); + + if (width.toString().indexOf('%') > -1) { + width = (((viewport.w - padding2) * parseFloat(width)) / 100); + } + + if (height.toString().indexOf('%') > -1) { + height = (((viewport.h - padding2) * parseFloat(height)) / 100); + } + + ratio = width / height; + + width += padding2; + height += padding2; + + if (current.fitToView) { + maxWidth = Math.min(viewport.w, maxWidth); + maxHeight = Math.min(viewport.h, maxHeight); + } + + if (current.aspectRatio) { + if (width > maxWidth) { + width = maxWidth; + height = ((width - padding2) / ratio) + padding2; + } + + if (height > maxHeight) { + height = maxHeight; + width = ((height - padding2) * ratio) + padding2; + } + + if (width < minWidth) { + width = minWidth; + height = ((width - padding2) / ratio) + padding2; + } + + if (height < minHeight) { + height = minHeight; + width = ((height - padding2) * ratio) + padding2; + } + + } else { + width = Math.max(minWidth, Math.min(width, maxWidth)); + height = Math.max(minHeight, Math.min(height, maxHeight)); + } + + width = Math.round(width); + height = Math.round(height); + + //Reset dimensions + $(wrap.add(outer).add(inner)).width('auto').height('auto'); + + inner.width(width - padding2).height(height - padding2); + wrap.width(width); + + height_ = wrap.height(); // Real wrap height + + //Fit wrapper inside + if (width > maxWidth || height_ > maxHeight) { + while ((width > maxWidth || height_ > maxHeight) && width > minWidth && height_ > minHeight) { + height = height - 10; + + if (current.aspectRatio) { + width = Math.round(((height - padding2) * ratio) + padding2); + + if (width < minWidth) { + width = minWidth; + height = ((width - padding2) / ratio) + padding2; + } + + } else { + width = width - 10; + } + + inner.width(width - padding2).height(height - padding2); + wrap.width(width); + + height_ = wrap.height(); + } + } + + current.dim = { + width: width, + height: height_ + }; + + current.canGrow = current.autoSize && height > minHeight && height < maxHeight; + current.canShrink = false; + current.canExpand = false; + + if ((width - padding2) < current.width || (height - padding2) < current.height) { + current.canExpand = true; + + } else if ((width > viewport.w || height_ > viewport.h) && width > minWidth && height > minHeight) { + current.canShrink = true; + } + + space = height_ - padding2; + + F.innerSpace = space - inner.height(); + F.outerSpace = space - outer.height(); + }, + + _getPosition: function (a) { + var current = F.current, + viewport = F.getViewport(), + margin = current.margin, + width = F.wrap.width() + margin[1] + margin[3], + height = F.wrap.height() + margin[0] + margin[2], + rez = { + position: 'absolute', + top: margin[0] + viewport.y, + left: margin[3] + viewport.x + }; + + if (current.fixed && (!a || a[0] === false) && height <= viewport.h && width <= viewport.w) { + rez = { + position: 'fixed', + top: margin[0], + left: margin[3] + }; + } + + rez.top = Math.ceil(Math.max(rez.top, rez.top + ((viewport.h - height) * current.topRatio))) + 'px'; + rez.left = Math.ceil(Math.max(rez.left, rez.left + ((viewport.w - width) * 0.5))) + 'px'; + + return rez; + }, + + _afterZoomIn: function () { + var current = F.current, scrolling = current.scrolling; + + F.isOpen = F.isOpened = true; + + F.wrap.addClass('fancybox-opened').css('overflow', 'visible'); + + F.update(); + + F.inner.css('overflow', scrolling === 'yes' ? 'scroll' : (scrolling === 'no' ? 'hidden' : scrolling)); + + //Assign a click event + if (current.closeClick || current.nextClick) { + F.inner.css('cursor', 'pointer').bind('click.fb', current.nextClick ? F.next : F.close); + } + + //Create a close button + if (current.closeBtn) { + $(current.tpl.closeBtn).appendTo(F.outer).bind('click.fb', F.close); + } + + //Create navigation arrows + if (current.arrows && F.group.length > 1) { + if (current.loop || current.index > 0) { + $(current.tpl.prev).appendTo(F.inner).bind('click.fb', F.prev); + } + + if (current.loop || current.index < F.group.length - 1) { + $(current.tpl.next).appendTo(F.inner).bind('click.fb', F.next); + } + } + + F.trigger('afterShow'); + + if (F.opts.autoPlay && !F.player.isActive) { + F.opts.autoPlay = false; + + F.play(); + } + }, + + _afterZoomOut: function () { + F.trigger('afterClose'); + + F.wrap.trigger('onReset').remove(); + + $.extend(F, { + group: {}, + opts: {}, + current: null, + isActive: false, + isOpened: false, + isOpen: false, + wrap: null, + outer: null, + inner: null + }); + } + }); + + /* + * Default transitions + */ + + F.transitions = { + getOrigPosition: function () { + var current = F.current, + element = current.element, + padding = current.padding, + orig = $(current.orig), + pos = {}, + width = 50, + height = 50, + viewport; + + if (!orig.length && current.isDom && $(element).is(':visible')) { + orig = $(element).find('img:first'); + + if (!orig.length) { + orig = $(element); + } + } + + if (orig.length) { + pos = orig.offset(); + + if (orig.is('img')) { + width = orig.outerWidth(); + height = orig.outerHeight(); + } + + } else { + viewport = F.getViewport(); + + pos.top = viewport.y + (viewport.h - height) * 0.5; + pos.left = viewport.x + (viewport.w - width) * 0.5; + } + + pos = { + top: Math.ceil(pos.top - padding) + 'px', + left: Math.ceil(pos.left - padding) + 'px', + width: Math.ceil(width + padding * 2) + 'px', + height: Math.ceil(height + padding * 2) + 'px' + }; + + return pos; + }, + + step: function (now, fx) { + var ratio, innerValue, outerValue; + + if (fx.prop === 'width' || fx.prop === 'height') { + innerValue = outerValue = Math.ceil(now - (F.current.padding * 2)); + + if (fx.prop === 'height') { + ratio = (now - fx.start) / (fx.end - fx.start); + + if (fx.start > fx.end) { + ratio = 1 - ratio; + } + + innerValue -= F.innerSpace * ratio; + outerValue -= F.outerSpace * ratio; + } + + F.inner[fx.prop](innerValue); + F.outer[fx.prop](outerValue); + } + }, + + zoomIn: function () { + var wrap = F.wrap, + current = F.current, + startPos, + endPos, + dim = current.dim; + + if (current.openEffect === 'elastic') { + endPos = $.extend({}, dim, F._getPosition(true)); + + //Remove "position" property + delete endPos.position; + + startPos = this.getOrigPosition(); + + if (current.openOpacity) { + startPos.opacity = 0; + endPos.opacity = 1; + } + + F.outer.add(F.inner).width('auto').height('auto'); + + wrap.css(startPos).show(); + + wrap.animate(endPos, { + duration: current.openSpeed, + easing: current.openEasing, + step: this.step, + complete: F._afterZoomIn + }); + + } else { + wrap.css($.extend({}, dim, F._getPosition())); + + if (current.openEffect === 'fade') { + wrap.fadeIn(current.openSpeed, F._afterZoomIn); + + } else { + wrap.show(); + F._afterZoomIn(); + } + } + }, + + zoomOut: function () { + var wrap = F.wrap, + current = F.current, + endPos; + + if (current.closeEffect === 'elastic') { + if (wrap.css('position') === 'fixed') { + wrap.css(F._getPosition(true)); + } + + endPos = this.getOrigPosition(); + + if (current.closeOpacity) { + endPos.opacity = 0; + } + + wrap.animate(endPos, { + duration: current.closeSpeed, + easing: current.closeEasing, + step: this.step, + complete: F._afterZoomOut + }); + + } else { + wrap.fadeOut(current.closeEffect === 'fade' ? current.closeSpeed : 0, F._afterZoomOut); + } + }, + + changeIn: function () { + var wrap = F.wrap, + current = F.current, + startPos; + + if (current.nextEffect === 'elastic') { + startPos = F._getPosition(true); + startPos.opacity = 0; + startPos.top = (parseInt(startPos.top, 10) - 200) + 'px'; + + wrap.css(startPos).show().animate({ + opacity: 1, + top: '+=200px' + }, { + duration: current.nextSpeed, + easing: current.nextEasing, + complete: F._afterZoomIn + }); + + } else { + wrap.css(F._getPosition()); + + if (current.nextEffect === 'fade') { + wrap.hide().fadeIn(current.nextSpeed, F._afterZoomIn); + + } else { + wrap.show(); + F._afterZoomIn(); + } + } + }, + + changeOut: function () { + var wrap = F.wrap, + current = F.current, + cleanUp = function () { + $(this).trigger('onReset').remove(); + }; + + wrap.removeClass('fancybox-opened'); + + if (current.prevEffect === 'elastic') { + wrap.animate({ + 'opacity': 0, + top: '+=200px' + }, { + duration: current.prevSpeed, + easing: current.prevEasing, + complete: cleanUp + }); + + } else { + wrap.fadeOut(current.prevEffect === 'fade' ? current.prevSpeed : 0, cleanUp); + } + } + }; + + /* + * Overlay helper + */ + + F.helpers.overlay = { + overlay: null, + + update: function () { + var width, scrollWidth, offsetWidth; + + //Reset width/height so it will not mess + this.overlay.width(0).height(0); + + if ($.browser.msie) { + scrollWidth = Math.max(document.documentElement.scrollWidth, document.body.scrollWidth); + offsetWidth = Math.max(document.documentElement.offsetWidth, document.body.offsetWidth); + + width = scrollWidth < offsetWidth ? W.width() : scrollWidth; + + } else { + width = D.width(); + } + + this.overlay.width(width).height(D.height()); + }, + + beforeShow: function (opts) { + if (this.overlay) { + return; + } + + opts = $.extend(true, { + speedIn : 'fast', + closeClick : true, + opacity : 1, + css : { + background: 'black' + } + }, opts); + + this.overlay = $('
    ').css(opts.css).appendTo('body'); + + this.update(); + + if (opts.closeClick) { + this.overlay.bind('click.fb', F.close); + } + + W.bind("resize.fb", $.proxy(this.update, this)); + + this.overlay.fadeTo(opts.speedIn, opts.opacity); + }, + + onUpdate: function () { + //Update as content may change document dimensions + this.update(); + }, + + afterClose: function (opts) { + if (this.overlay) { + + this.overlay.fadeOut(opts.speedOut || 0, function () { + $(this).remove(); + }); + } + + this.overlay = null; + } + }; + + /* + * Title helper + */ + + F.helpers.title = { + beforeShow: function (opts) { + var title, text = F.current.title; + + if (text) { + title = $('
    ' + text + '
    ').appendTo('body'); + + if (opts.type === 'float') { + //This helps for some browsers + title.width(title.width()); + + title.wrapInner(''); + + //Increase bottom margin so this title will also fit into viewport + F.current.margin[2] += Math.abs(parseInt(title.css('margin-bottom'), 10)); + } + + title.appendTo(opts.type === 'over' ? F.inner : (opts.type === 'outside' ? F.wrap : F.outer)); + } + } + }; + + // jQuery plugin initialization + $.fn.fancybox = function (options) { + var that = $(this), + selector = this.selector || '', + index, + run = function(e) { + var what = this, relType = 'rel', relVal = what[ relType ], idx = index; + + if (!(e.ctrlKey || e.altKey || e.shiftKey || e.metaKey)) { + e.preventDefault(); + + if (!relVal) { + relType = 'data-fancybox-group'; + relVal = $(what).attr('data-fancybox-group'); + } + + if (relVal && relVal !== '' && relVal !== 'nofollow') { + what = selector.length ? $(selector) : that; + what = what.filter('[' + relType + '="' + relVal + '"]'); + idx = what.index(this); + } + + options.index = idx; + + F.open(what, options); + } + }; + + options = options || {}; + index = options.index || 0; + + if (selector) { + D.undelegate(selector, 'click.fb-start').delegate(selector, 'click.fb-start', run); + + } else { + that.unbind('click.fb-start').bind('click.fb-start', run); + } + + return this; + }; + +}(window, document, jQuery)); \ No newline at end of file diff --git a/public/fancybox/jquery.fancybox.pack.js b/public/fancybox/jquery.fancybox.pack.js new file mode 100644 index 0000000..828e6ed --- /dev/null +++ b/public/fancybox/jquery.fancybox.pack.js @@ -0,0 +1,34 @@ +/*! fancyBox v2.0.5 fancyapps.com | fancyapps.com/fancybox/#license */ +(function(t,m,e){var l=e(t),q=e(m),a=e.fancybox=function(){a.open.apply(this,arguments)},r=!1,s="undefined"!==typeof m.createTouch;e.extend(a,{version:"2.0.5",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,autoSize:!0,autoResize:!s,autoCenter:!s,fitToView:!0,aspectRatio:!1,topRatio:0.5,fixed:!(e.browser.msie&&6>=e.browser.version)&&!s,scrolling:"auto",wrapCSS:"fancybox-default",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0, +autoPlay:!1,playSpeed:3E3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},keys:{next:[13,32,34,39,40],prev:[8,33,37,38],close:[27]},tpl:{wrap:'
    ',image:'',iframe:'",swf:'', +error:'

    The requested content cannot be loaded.
    Please try again later.

    ',closeBtn:'
    ',next:'',prev:''},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut", +nextEffect:"elastic",nextSpeed:300,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:300,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:{speedIn:0,speedOut:300,opacity:0.8,css:{cursor:"pointer"},closeClick:!0},title:{type:"float"}}},group:{},opts:{},coming:null,current:null,isOpen:!1,isOpened:!1,wrap:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(b,c){a.close(!0);b&&!e.isArray(b)&&(b= +b instanceof e?e(b).get():[b]);a.isActive=!0;a.opts=e.extend(!0,{},a.defaults,c);e.isPlainObject(c)&&"undefined"!==typeof c.keys&&(a.opts.keys=c.keys?e.extend({},a.defaults.keys,c.keys):!1);a.group=b;a._start(a.opts.index||0)},cancel:function(){a.coming&&!1===a.trigger("onCancel")||(a.coming=null,a.hideLoading(),a.ajaxLoad&&a.ajaxLoad.abort(),a.ajaxLoad=null,a.imgPreload&&(a.imgPreload.onload=a.imgPreload.onabort=a.imgPreload.onerror=null))},close:function(b){a.cancel();a.current&&!1!==a.trigger("beforeClose")&& +(a.unbindEvents(),!a.isOpen||b&&!0===b[0]?(e(".fancybox-wrap").stop().trigger("onReset").remove(),a._afterZoomOut()):(a.isOpen=a.isOpened=!1,e(".fancybox-item, .fancybox-nav").remove(),a.wrap.stop(!0).removeClass("fancybox-opened"),a.inner.css("overflow","hidden"),a.transitions[a.current.closeMethod]()))},play:function(b){var c=function(){clearTimeout(a.player.timer)},d=function(){c();a.current&&a.player.isActive&&(a.player.timer=setTimeout(a.next,a.current.playSpeed))},g=function(){c();e("body").unbind(".player"); +a.player.isActive=!1;a.trigger("onPlayEnd")};if(a.player.isActive||b&&!1===b[0])g();else if(a.current&&(a.current.loop||a.current.index=a.group.length?b=0:0>b&&(b=a.group.length-1)),"undefined"!==typeof a.group[b]&&(a.cancel(),a._start(b)))},reposition:function(b){a.isOpen&&a.wrap.css(a._getPosition(b))},update:function(b){a.isOpen&&(r||setTimeout(function(){var c=a.current;if(r&&(r=!1,c)){if(c.autoResize||b&&"orientationchange"===b.type)c.autoSize&&(a.inner.height("auto"),c.height=a.inner.height()),a._setDimension(),c.canGrow&&a.inner.height("auto");c.autoCenter&&a.reposition();a.trigger("onUpdate")}},100),r=!0)},toggle:function(){a.isOpen&& +(a.current.fitToView=!a.current.fitToView,a.update())},hideLoading:function(){e("#fancybox-loading").remove()},showLoading:function(){a.hideLoading();e('
    ').click(a.cancel).appendTo("body")},getViewport:function(){return{x:l.scrollLeft(),y:l.scrollTop(),w:l.width(),h:l.height()}},unbindEvents:function(){a.wrap&&a.wrap.unbind(".fb");q.unbind(".fb");l.unbind(".fb")},bindEvents:function(){var b=a.current,c=b.keys;b&&(l.bind("resize.fb, orientationchange.fb", +a.update),c&&q.bind("keydown.fb",function(b){var g;!b.ctrlKey&&!b.altKey&&!b.shiftKey&&!b.metaKey&&0>e.inArray(b.target.tagName.toLowerCase(),["input","textarea","select","button"])&&(g=b.keyCode,-1b.length))for(var f=1;f<= +Math.min(c.preload,d-1);f++)if(g=b[(c.index+f)%d],g=e(g).attr("href")||g)(new Image).src=g},_afterLoad:function(){a.hideLoading();!a.coming||!1===a.trigger("afterLoad",a.current)?a.coming=!1:(a.isOpened?(e(".fancybox-item").remove(),a.wrap.stop(!0).removeClass("fancybox-opened"),a.inner.css("overflow","hidden"),a.transitions[a.current.prevMethod]()):(e(".fancybox-wrap").stop().trigger("onReset").remove(),a.trigger("afterClose")),a.unbindEvents(),a.isOpen=!1,a.current=a.coming,a.wrap=e(a.current.tpl.wrap).addClass("fancybox-"+ +(s?"mobile":"desktop")+" fancybox-tmp "+a.current.wrapCSS).appendTo("body"),a.outer=e(".fancybox-outer",a.wrap).css("padding",a.current.padding+"px"),a.inner=e(".fancybox-inner",a.wrap),a._setContent())},_setContent:function(){var b,c,d=a.current,g=d.type;switch(g){case "inline":case "ajax":case "html":b=d.content;b instanceof e&&(b=b.show().detach(),b.parent().hasClass("fancybox-inner")&&b.parents(".fancybox-wrap").trigger("onReset").remove(),e(a.wrap).bind("onReset",function(){b.appendTo("body").hide()})); +d.autoSize&&(c=e('
    ').appendTo("body").append(b),d.width=c.width(),d.height=c.height(),c.width(a.current.width),c.height()>d.height&&(c.width(d.width+1),d.width=c.width(),d.height=c.height()),b=c.contents().detach(),c.remove());break;case "image":b=d.tpl.image.replace("{href}",d.href);d.aspectRatio=!0;break;case "swf":b=d.tpl.swf.replace(/\{width\}/g,d.width).replace(/\{height\}/g,d.height).replace(/\{href\}/g,d.href)}if("iframe"===g){b=e(d.tpl.iframe.replace("{rnd}", +(new Date).getTime())).attr("scrolling",d.scrolling);d.scrolling="auto";if(d.autoSize){b.width(d.width);a.showLoading();b.data("ready",!1).appendTo(a.inner).bind({onCancel:function(){e(this).unbind();a._afterZoomOut()},load:function(){var b=e(this),c;try{this.contentWindow.document.location&&(c=b.contents().find("body").height()+12,b.height(c))}catch(g){d.autoSize=!1}!1===b.data("ready")?(a.hideLoading(),c&&(a.current.height=c),a._beforeShow(),b.data("ready",!0)):c&&a.update()}}).attr("src",d.href); +return}b.attr("src",d.href)}else if("image"===g||"swf"===g)d.autoSize=!1,d.scrolling="visible";a.inner.append(b);a._beforeShow()},_beforeShow:function(){a.coming=null;a.trigger("beforeShow");a._setDimension();a.wrap.hide().removeClass("fancybox-tmp");a.bindEvents();a._preloadImages();a.transitions[a.isOpened?a.current.nextMethod:a.current.openMethod]()},_setDimension:function(){var b=a.wrap,c=a.outer,d=a.inner,g=a.current,f=a.getViewport(),k=g.margin,h=2*g.padding,i=g.width,j=g.height,o=g.maxWidth, +l=g.maxHeight,p=g.minWidth,m=g.minHeight,n;f.w-=k[1]+k[3];f.h-=k[0]+k[2];-1o&&(i=o,j=(i-h)/k+h),j>l&&(j=l,i=(j-h)*k+h),io||n>l)for(;(i>o||n>l)&&i>p&&n>m;)j-=10,g.aspectRatio?(i=Math.round((j-h)*k+h),im&&jf.w||n>f.h)&&i>p&&j>m)g.canShrink=!0;b=n-h;a.innerSpace=b-d.height();a.outerSpace=b-c.height()},_getPosition:function(b){var c=a.current,d=a.getViewport(), +e=c.margin,f=a.wrap.width()+e[1]+e[3],k=a.wrap.height()+e[0]+e[2],h={position:"absolute",top:e[0]+d.y,left:e[3]+d.x};if(c.fixed&&(!b||!1===b[0])&&k<=d.h&&f<=d.w)h={position:"fixed",top:e[0],left:e[3]};h.top=Math.ceil(Math.max(h.top,h.top+(d.h-k)*c.topRatio))+"px";h.left=Math.ceil(Math.max(h.left,h.left+0.5*(d.w-f)))+"px";return h},_afterZoomIn:function(){var b=a.current,c=b.scrolling;a.isOpen=a.isOpened=!0;a.wrap.addClass("fancybox-opened").css("overflow","visible");a.update();a.inner.css("overflow", +"yes"===c?"scroll":"no"===c?"hidden":c);if(b.closeClick||b.nextClick)a.inner.css("cursor","pointer").bind("click.fb",b.nextClick?a.next:a.close);b.closeBtn&&e(b.tpl.closeBtn).appendTo(a.outer).bind("click.fb",a.close);b.arrows&&1c.end&&(d=1-d),e-=a.innerSpace*d,f-=a.outerSpace*d),a.inner[c.prop](e),a.outer[c.prop](f)},zoomIn:function(){var b=a.wrap,c=a.current,d,g;d=c.dim;"elastic"===c.openEffect?(g=e.extend({}, +d,a._getPosition(!0)),delete g.position,d=this.getOrigPosition(),c.openOpacity&&(d.opacity=0,g.opacity=1),a.outer.add(a.inner).width("auto").height("auto"),b.css(d).show(),b.animate(g,{duration:c.openSpeed,easing:c.openEasing,step:this.step,complete:a._afterZoomIn})):(b.css(e.extend({},d,a._getPosition())),"fade"===c.openEffect?b.fadeIn(c.openSpeed,a._afterZoomIn):(b.show(),a._afterZoomIn()))},zoomOut:function(){var b=a.wrap,c=a.current,d;"elastic"===c.closeEffect?("fixed"===b.css("position")&&b.css(a._getPosition(!0)), +d=this.getOrigPosition(),c.closeOpacity&&(d.opacity=0),b.animate(d,{duration:c.closeSpeed,easing:c.closeEasing,step:this.step,complete:a._afterZoomOut})):b.fadeOut("fade"===c.closeEffect?c.closeSpeed:0,a._afterZoomOut)},changeIn:function(){var b=a.wrap,c=a.current,d;"elastic"===c.nextEffect?(d=a._getPosition(!0),d.opacity=0,d.top=parseInt(d.top,10)-200+"px",b.css(d).show().animate({opacity:1,top:"+=200px"},{duration:c.nextSpeed,easing:c.nextEasing,complete:a._afterZoomIn})):(b.css(a._getPosition()), +"fade"===c.nextEffect?b.hide().fadeIn(c.nextSpeed,a._afterZoomIn):(b.show(),a._afterZoomIn()))},changeOut:function(){var b=a.wrap,c=a.current,d=function(){e(this).trigger("onReset").remove()};b.removeClass("fancybox-opened");"elastic"===c.prevEffect?b.animate({opacity:0,top:"+=200px"},{duration:c.prevSpeed,easing:c.prevEasing,complete:d}):b.fadeOut("fade"===c.prevEffect?c.prevSpeed:0,d)}};a.helpers.overlay={overlay:null,update:function(){var a,c;this.overlay.width(0).height(0);e.browser.msie?(a=Math.max(m.documentElement.scrollWidth, +m.body.scrollWidth),c=Math.max(m.documentElement.offsetWidth,m.body.offsetWidth),a=a').css(b.css).appendTo("body"),this.update(),b.closeClick&&this.overlay.bind("click.fb",a.close),l.bind("resize.fb",e.proxy(this.update,this)),this.overlay.fadeTo(b.speedIn,b.opacity))}, +onUpdate:function(){this.update()},afterClose:function(a){this.overlay&&this.overlay.fadeOut(a.speedOut||0,function(){e(this).remove()});this.overlay=null}};a.helpers.title={beforeShow:function(b){var c;if(c=a.current.title)c=e('
    '+c+"
    ").appendTo("body"),"float"===b.type&&(c.width(c.width()),c.wrapInner(''),a.current.margin[2]+=Math.abs(parseInt(c.css("margin-bottom"),10))),c.appendTo("over"===b.type?a.inner: +"outside"===b.type?a.wrap:a.outer)}};e.fn.fancybox=function(b){var c=e(this),d=this.selector||"",g,f=function(f){var h=this,i="rel",j=h[i],l=g;!f.ctrlKey&&!f.altKey&&!f.shiftKey&&!f.metaKey&&(f.preventDefault(),j||(i="data-fancybox-group",j=e(h).attr("data-fancybox-group")),j&&""!==j&&"nofollow"!==j&&(h=d.length?e(d):c,h=h.filter("["+i+'="'+j+'"]'),l=h.index(this)),b.index=l,a.open(h,b))},b=b||{};g=b.index||0;d?q.undelegate(d,"click.fb-start").delegate(d,"click.fb-start",f):c.unbind("click.fb-start").bind("click.fb-start", +f);return this}})(window,document,jQuery); \ No newline at end of file diff --git a/public/images/arrow-tweet.png b/public/images/arrow-tweet.png new file mode 100644 index 0000000..2c464f9 Binary files /dev/null and b/public/images/arrow-tweet.png differ diff --git a/public/images/arrow.png b/public/images/arrow.png new file mode 100644 index 0000000..b2f0ee0 Binary files /dev/null and b/public/images/arrow.png differ diff --git a/public/images/avatar.png b/public/images/avatar.png new file mode 100644 index 0000000..049eae7 Binary files /dev/null and b/public/images/avatar.png differ diff --git a/public/images/back-top.png b/public/images/back-top.png new file mode 100644 index 0000000..1635ed8 Binary files /dev/null and b/public/images/back-top.png differ diff --git a/public/images/bg_price.png b/public/images/bg_price.png new file mode 100644 index 0000000..5553a38 Binary files /dev/null and b/public/images/bg_price.png differ diff --git a/public/images/bg_small_price.png b/public/images/bg_small_price.png new file mode 100644 index 0000000..9b57298 Binary files /dev/null and b/public/images/bg_small_price.png differ diff --git a/public/images/bgs/bg-1.jpg b/public/images/bgs/bg-1.jpg new file mode 100644 index 0000000..ca1cefc Binary files /dev/null and b/public/images/bgs/bg-1.jpg differ diff --git a/public/images/bgs/bg-10.jpg b/public/images/bgs/bg-10.jpg new file mode 100644 index 0000000..26bbab6 Binary files /dev/null and b/public/images/bgs/bg-10.jpg differ diff --git a/public/images/bgs/bg-11.jpg b/public/images/bgs/bg-11.jpg new file mode 100644 index 0000000..6259df2 Binary files /dev/null and b/public/images/bgs/bg-11.jpg differ diff --git a/public/images/bgs/bg-12.jpg b/public/images/bgs/bg-12.jpg new file mode 100644 index 0000000..7614e4f Binary files /dev/null and b/public/images/bgs/bg-12.jpg differ diff --git a/public/images/bgs/bg-13.jpg b/public/images/bgs/bg-13.jpg new file mode 100644 index 0000000..65a1c87 Binary files /dev/null and b/public/images/bgs/bg-13.jpg differ diff --git a/public/images/bgs/bg-14.jpg b/public/images/bgs/bg-14.jpg new file mode 100644 index 0000000..7e18200 Binary files /dev/null and b/public/images/bgs/bg-14.jpg differ diff --git a/public/images/bgs/bg-15.jpg b/public/images/bgs/bg-15.jpg new file mode 100644 index 0000000..fe4f6d2 Binary files /dev/null and b/public/images/bgs/bg-15.jpg differ diff --git a/public/images/bgs/bg-2.jpg b/public/images/bgs/bg-2.jpg new file mode 100644 index 0000000..40d7d7a Binary files /dev/null and b/public/images/bgs/bg-2.jpg differ diff --git a/public/images/bgs/bg-3.jpg b/public/images/bgs/bg-3.jpg new file mode 100644 index 0000000..281e2cb Binary files /dev/null and b/public/images/bgs/bg-3.jpg differ diff --git a/public/images/bgs/bg-4.jpg b/public/images/bgs/bg-4.jpg new file mode 100644 index 0000000..5fb514b Binary files /dev/null and b/public/images/bgs/bg-4.jpg differ diff --git a/public/images/bgs/bg-5.jpg b/public/images/bgs/bg-5.jpg new file mode 100644 index 0000000..0fa44b2 Binary files /dev/null and b/public/images/bgs/bg-5.jpg differ diff --git a/public/images/bgs/bg-6.jpg b/public/images/bgs/bg-6.jpg new file mode 100644 index 0000000..22c2c79 Binary files /dev/null and b/public/images/bgs/bg-6.jpg differ diff --git a/public/images/bgs/bg-7.jpg b/public/images/bgs/bg-7.jpg new file mode 100644 index 0000000..88ec9ab Binary files /dev/null and b/public/images/bgs/bg-7.jpg differ diff --git a/public/images/bgs/bg-8.jpg b/public/images/bgs/bg-8.jpg new file mode 100644 index 0000000..b93c08d Binary files /dev/null and b/public/images/bgs/bg-8.jpg differ diff --git a/public/images/bgs/bg-9.jpg b/public/images/bgs/bg-9.jpg new file mode 100644 index 0000000..43c5917 Binary files /dev/null and b/public/images/bgs/bg-9.jpg differ diff --git a/public/images/bgs/pt-1.png b/public/images/bgs/pt-1.png new file mode 100644 index 0000000..e3736af Binary files /dev/null and b/public/images/bgs/pt-1.png differ diff --git a/public/images/bgs/pt-10.png b/public/images/bgs/pt-10.png new file mode 100644 index 0000000..717668c Binary files /dev/null and b/public/images/bgs/pt-10.png differ diff --git a/public/images/bgs/pt-2.png b/public/images/bgs/pt-2.png new file mode 100644 index 0000000..6bfe92b Binary files /dev/null and b/public/images/bgs/pt-2.png differ diff --git a/public/images/bgs/pt-3.png b/public/images/bgs/pt-3.png new file mode 100644 index 0000000..2295060 Binary files /dev/null and b/public/images/bgs/pt-3.png differ diff --git a/public/images/bgs/pt-4.png b/public/images/bgs/pt-4.png new file mode 100644 index 0000000..ca7c310 Binary files /dev/null and b/public/images/bgs/pt-4.png differ diff --git a/public/images/bgs/pt-5.png b/public/images/bgs/pt-5.png new file mode 100644 index 0000000..e496c04 Binary files /dev/null and b/public/images/bgs/pt-5.png differ diff --git a/public/images/bgs/pt-6.png b/public/images/bgs/pt-6.png new file mode 100644 index 0000000..4dcb51e Binary files /dev/null and b/public/images/bgs/pt-6.png differ diff --git a/public/images/bgs/pt-7.png b/public/images/bgs/pt-7.png new file mode 100644 index 0000000..8ef334f Binary files /dev/null and b/public/images/bgs/pt-7.png differ diff --git a/public/images/bgs/pt-8.png b/public/images/bgs/pt-8.png new file mode 100644 index 0000000..7ad55fe Binary files /dev/null and b/public/images/bgs/pt-8.png differ diff --git a/public/images/bgs/pt-9.png b/public/images/bgs/pt-9.png new file mode 100644 index 0000000..75bcf4a Binary files /dev/null and b/public/images/bgs/pt-9.png differ diff --git a/public/images/birds_twitter.png b/public/images/birds_twitter.png new file mode 100644 index 0000000..b9a10c2 Binary files /dev/null and b/public/images/birds_twitter.png differ diff --git a/public/images/buttons.png b/public/images/buttons.png new file mode 100644 index 0000000..240a7f4 Binary files /dev/null and b/public/images/buttons.png differ diff --git a/public/images/close.png b/public/images/close.png new file mode 100644 index 0000000..d559853 Binary files /dev/null and b/public/images/close.png differ diff --git a/public/images/collapse.png b/public/images/collapse.png new file mode 100644 index 0000000..bd88568 Binary files /dev/null and b/public/images/collapse.png differ diff --git a/public/images/comments-icon.png b/public/images/comments-icon.png new file mode 100644 index 0000000..9a310b6 Binary files /dev/null and b/public/images/comments-icon.png differ diff --git a/public/images/dropcap2.png b/public/images/dropcap2.png new file mode 100644 index 0000000..6403762 Binary files /dev/null and b/public/images/dropcap2.png differ diff --git a/public/images/dropcap3.png b/public/images/dropcap3.png new file mode 100644 index 0000000..b05b79d Binary files /dev/null and b/public/images/dropcap3.png differ diff --git a/public/images/error404.png b/public/images/error404.png new file mode 100644 index 0000000..ec29c24 Binary files /dev/null and b/public/images/error404.png differ diff --git a/public/images/gallery/fullscreen/1.jpg b/public/images/gallery/fullscreen/1.jpg new file mode 100644 index 0000000..26acf00 Binary files /dev/null and b/public/images/gallery/fullscreen/1.jpg differ diff --git a/public/images/gallery/fullscreen/2.jpg b/public/images/gallery/fullscreen/2.jpg new file mode 100644 index 0000000..502410f Binary files /dev/null and b/public/images/gallery/fullscreen/2.jpg differ diff --git a/public/images/gallery/fullscreen/3.jpg b/public/images/gallery/fullscreen/3.jpg new file mode 100644 index 0000000..a5dff23 Binary files /dev/null and b/public/images/gallery/fullscreen/3.jpg differ diff --git a/public/images/gallery/fullscreen/4.jpg b/public/images/gallery/fullscreen/4.jpg new file mode 100644 index 0000000..3b1bcb6 Binary files /dev/null and b/public/images/gallery/fullscreen/4.jpg differ diff --git a/public/images/gallery/fullscreen/5.jpg b/public/images/gallery/fullscreen/5.jpg new file mode 100644 index 0000000..a71369e Binary files /dev/null and b/public/images/gallery/fullscreen/5.jpg differ diff --git a/public/images/gallery/fullscreen/6.jpg b/public/images/gallery/fullscreen/6.jpg new file mode 100644 index 0000000..0d9c874 Binary files /dev/null and b/public/images/gallery/fullscreen/6.jpg differ diff --git a/public/images/gallery/fullscreen/7.jpg b/public/images/gallery/fullscreen/7.jpg new file mode 100644 index 0000000..23098a3 Binary files /dev/null and b/public/images/gallery/fullscreen/7.jpg differ diff --git a/public/images/gallery/fullscreen/8.jpg b/public/images/gallery/fullscreen/8.jpg new file mode 100644 index 0000000..4087e51 Binary files /dev/null and b/public/images/gallery/fullscreen/8.jpg differ diff --git a/public/images/gallery/fullscreen/9.jpg b/public/images/gallery/fullscreen/9.jpg new file mode 100644 index 0000000..603342e Binary files /dev/null and b/public/images/gallery/fullscreen/9.jpg differ diff --git a/public/images/gallery/large/gallery_1_1.jpg b/public/images/gallery/large/gallery_1_1.jpg new file mode 100644 index 0000000..8940dfb Binary files /dev/null and b/public/images/gallery/large/gallery_1_1.jpg differ diff --git a/public/images/gallery/large/gallery_1_2.jpg b/public/images/gallery/large/gallery_1_2.jpg new file mode 100644 index 0000000..03fdee1 Binary files /dev/null and b/public/images/gallery/large/gallery_1_2.jpg differ diff --git a/public/images/gallery/large/gallery_1_3.jpg b/public/images/gallery/large/gallery_1_3.jpg new file mode 100644 index 0000000..c25682a Binary files /dev/null and b/public/images/gallery/large/gallery_1_3.jpg differ diff --git a/public/images/gallery/large/gallery_1_4.jpg b/public/images/gallery/large/gallery_1_4.jpg new file mode 100644 index 0000000..a82e2d4 Binary files /dev/null and b/public/images/gallery/large/gallery_1_4.jpg differ diff --git a/public/images/gallery/large/gallery_1_5.jpg b/public/images/gallery/large/gallery_1_5.jpg new file mode 100644 index 0000000..99ad116 Binary files /dev/null and b/public/images/gallery/large/gallery_1_5.jpg differ diff --git a/public/images/gallery/large/gallery_1_6.jpg b/public/images/gallery/large/gallery_1_6.jpg new file mode 100644 index 0000000..b0cb0b8 Binary files /dev/null and b/public/images/gallery/large/gallery_1_6.jpg differ diff --git a/public/images/gallery/large/gallery_1_7.jpg b/public/images/gallery/large/gallery_1_7.jpg new file mode 100644 index 0000000..d1b2f9f Binary files /dev/null and b/public/images/gallery/large/gallery_1_7.jpg differ diff --git a/public/images/gallery/large/gallery_1_8.jpg b/public/images/gallery/large/gallery_1_8.jpg new file mode 100644 index 0000000..a5019fb Binary files /dev/null and b/public/images/gallery/large/gallery_1_8.jpg differ diff --git a/public/images/gallery/thumbs/gallery_img_1.jpg b/public/images/gallery/thumbs/gallery_img_1.jpg new file mode 100644 index 0000000..dededee Binary files /dev/null and b/public/images/gallery/thumbs/gallery_img_1.jpg differ diff --git a/public/images/gallery/thumbs/gallery_img_2.jpg b/public/images/gallery/thumbs/gallery_img_2.jpg new file mode 100644 index 0000000..9673eb0 Binary files /dev/null and b/public/images/gallery/thumbs/gallery_img_2.jpg differ diff --git a/public/images/gallery/thumbs/gallery_img_3.jpg b/public/images/gallery/thumbs/gallery_img_3.jpg new file mode 100644 index 0000000..1072f3d Binary files /dev/null and b/public/images/gallery/thumbs/gallery_img_3.jpg differ diff --git a/public/images/gallery/thumbs/gallery_img_4.jpg b/public/images/gallery/thumbs/gallery_img_4.jpg new file mode 100644 index 0000000..b7b1f83 Binary files /dev/null and b/public/images/gallery/thumbs/gallery_img_4.jpg differ diff --git a/public/images/gallery/thumbs/gallery_img_5.jpg b/public/images/gallery/thumbs/gallery_img_5.jpg new file mode 100644 index 0000000..17532ee Binary files /dev/null and b/public/images/gallery/thumbs/gallery_img_5.jpg differ diff --git a/public/images/gallery/thumbs/gallery_img_6.jpg b/public/images/gallery/thumbs/gallery_img_6.jpg new file mode 100644 index 0000000..b49bfbd Binary files /dev/null and b/public/images/gallery/thumbs/gallery_img_6.jpg differ diff --git a/public/images/gallery/thumbs/gallery_img_7.jpg b/public/images/gallery/thumbs/gallery_img_7.jpg new file mode 100644 index 0000000..eaca7f4 Binary files /dev/null and b/public/images/gallery/thumbs/gallery_img_7.jpg differ diff --git a/public/images/gallery/thumbs/gallery_img_8.jpg b/public/images/gallery/thumbs/gallery_img_8.jpg new file mode 100644 index 0000000..e7d8bf4 Binary files /dev/null and b/public/images/gallery/thumbs/gallery_img_8.jpg differ diff --git a/public/images/gallery/thumbs/portfolio_1_1.jpg b/public/images/gallery/thumbs/portfolio_1_1.jpg new file mode 100644 index 0000000..40ee23f Binary files /dev/null and b/public/images/gallery/thumbs/portfolio_1_1.jpg differ diff --git a/public/images/gallery/thumbs/portfolio_1_2.jpg b/public/images/gallery/thumbs/portfolio_1_2.jpg new file mode 100644 index 0000000..bb4d3e0 Binary files /dev/null and b/public/images/gallery/thumbs/portfolio_1_2.jpg differ diff --git a/public/images/gallery/thumbs/portfolio_1_3.jpg b/public/images/gallery/thumbs/portfolio_1_3.jpg new file mode 100644 index 0000000..9321245 Binary files /dev/null and b/public/images/gallery/thumbs/portfolio_1_3.jpg differ diff --git a/public/images/gallery/thumbs/portfolio_2_1.jpg b/public/images/gallery/thumbs/portfolio_2_1.jpg new file mode 100644 index 0000000..83afe87 Binary files /dev/null and b/public/images/gallery/thumbs/portfolio_2_1.jpg differ diff --git a/public/images/gallery/thumbs/portfolio_2_2.jpg b/public/images/gallery/thumbs/portfolio_2_2.jpg new file mode 100644 index 0000000..bf24b75 Binary files /dev/null and b/public/images/gallery/thumbs/portfolio_2_2.jpg differ diff --git a/public/images/gallery/thumbs/portfolio_2_3.jpg b/public/images/gallery/thumbs/portfolio_2_3.jpg new file mode 100644 index 0000000..58d3aa3 Binary files /dev/null and b/public/images/gallery/thumbs/portfolio_2_3.jpg differ diff --git a/public/images/gallery/thumbs/portfolio_2_4.jpg b/public/images/gallery/thumbs/portfolio_2_4.jpg new file mode 100644 index 0000000..079c9dd Binary files /dev/null and b/public/images/gallery/thumbs/portfolio_2_4.jpg differ diff --git a/public/images/gallery/thumbs/portfolio_2_5.jpg b/public/images/gallery/thumbs/portfolio_2_5.jpg new file mode 100644 index 0000000..a27c246 Binary files /dev/null and b/public/images/gallery/thumbs/portfolio_2_5.jpg differ diff --git a/public/images/gallery/thumbs/portfolio_2_6.jpg b/public/images/gallery/thumbs/portfolio_2_6.jpg new file mode 100644 index 0000000..111a331 Binary files /dev/null and b/public/images/gallery/thumbs/portfolio_2_6.jpg differ diff --git a/public/images/gallery/thumbs/portfolio_3_1.jpg b/public/images/gallery/thumbs/portfolio_3_1.jpg new file mode 100644 index 0000000..e2ac6d6 Binary files /dev/null and b/public/images/gallery/thumbs/portfolio_3_1.jpg differ diff --git a/public/images/gallery/thumbs/portfolio_3_2.jpg b/public/images/gallery/thumbs/portfolio_3_2.jpg new file mode 100644 index 0000000..2659d98 Binary files /dev/null and b/public/images/gallery/thumbs/portfolio_3_2.jpg differ diff --git a/public/images/gallery/thumbs/portfolio_3_3.jpg b/public/images/gallery/thumbs/portfolio_3_3.jpg new file mode 100644 index 0000000..1b05807 Binary files /dev/null and b/public/images/gallery/thumbs/portfolio_3_3.jpg differ diff --git a/public/images/gallery/thumbs/portfolio_3_4.jpg b/public/images/gallery/thumbs/portfolio_3_4.jpg new file mode 100644 index 0000000..6d9a0f7 Binary files /dev/null and b/public/images/gallery/thumbs/portfolio_3_4.jpg differ diff --git a/public/images/gallery/thumbs/portfolio_3_5.jpg b/public/images/gallery/thumbs/portfolio_3_5.jpg new file mode 100644 index 0000000..50a23c5 Binary files /dev/null and b/public/images/gallery/thumbs/portfolio_3_5.jpg differ diff --git a/public/images/gallery/thumbs/portfolio_3_6.jpg b/public/images/gallery/thumbs/portfolio_3_6.jpg new file mode 100644 index 0000000..f63d2aa Binary files /dev/null and b/public/images/gallery/thumbs/portfolio_3_6.jpg differ diff --git a/public/images/gallery/thumbs/portfolio_3_7.jpg b/public/images/gallery/thumbs/portfolio_3_7.jpg new file mode 100644 index 0000000..db7353c Binary files /dev/null and b/public/images/gallery/thumbs/portfolio_3_7.jpg differ diff --git a/public/images/gallery/thumbs/portfolio_3_8.jpg b/public/images/gallery/thumbs/portfolio_3_8.jpg new file mode 100644 index 0000000..b463571 Binary files /dev/null and b/public/images/gallery/thumbs/portfolio_3_8.jpg differ diff --git a/public/images/gallery/thumbs/portfolio_3_9.jpg b/public/images/gallery/thumbs/portfolio_3_9.jpg new file mode 100644 index 0000000..e045ad7 Binary files /dev/null and b/public/images/gallery/thumbs/portfolio_3_9.jpg differ diff --git a/public/images/green-arrow.png b/public/images/green-arrow.png new file mode 100644 index 0000000..b51d0bc Binary files /dev/null and b/public/images/green-arrow.png differ diff --git a/public/images/icons/icon1.png b/public/images/icons/icon1.png new file mode 100644 index 0000000..8c85426 Binary files /dev/null and b/public/images/icons/icon1.png differ diff --git a/public/images/icons/icon10.png b/public/images/icons/icon10.png new file mode 100644 index 0000000..837bc7e Binary files /dev/null and b/public/images/icons/icon10.png differ diff --git a/public/images/icons/icon11.png b/public/images/icons/icon11.png new file mode 100644 index 0000000..99f80fe Binary files /dev/null and b/public/images/icons/icon11.png differ diff --git a/public/images/icons/icon12.png b/public/images/icons/icon12.png new file mode 100644 index 0000000..3e9dd41 Binary files /dev/null and b/public/images/icons/icon12.png differ diff --git a/public/images/icons/icon2.png b/public/images/icons/icon2.png new file mode 100644 index 0000000..11e0627 Binary files /dev/null and b/public/images/icons/icon2.png differ diff --git a/public/images/icons/icon3.png b/public/images/icons/icon3.png new file mode 100644 index 0000000..a66d08d Binary files /dev/null and b/public/images/icons/icon3.png differ diff --git a/public/images/icons/icon4.png b/public/images/icons/icon4.png new file mode 100644 index 0000000..a0feb3c Binary files /dev/null and b/public/images/icons/icon4.png differ diff --git a/public/images/icons/icon5.png b/public/images/icons/icon5.png new file mode 100644 index 0000000..e33048f Binary files /dev/null and b/public/images/icons/icon5.png differ diff --git a/public/images/icons/icon6.png b/public/images/icons/icon6.png new file mode 100644 index 0000000..667f079 Binary files /dev/null and b/public/images/icons/icon6.png differ diff --git a/public/images/icons/icon7.png b/public/images/icons/icon7.png new file mode 100644 index 0000000..4e78e70 Binary files /dev/null and b/public/images/icons/icon7.png differ diff --git a/public/images/icons/icon8.png b/public/images/icons/icon8.png new file mode 100644 index 0000000..6cc9f7e Binary files /dev/null and b/public/images/icons/icon8.png differ diff --git a/public/images/icons/icon9.png b/public/images/icons/icon9.png new file mode 100644 index 0000000..a7698cf Binary files /dev/null and b/public/images/icons/icon9.png differ diff --git a/public/images/icons/middle/error.png b/public/images/icons/middle/error.png new file mode 100644 index 0000000..9aad76c Binary files /dev/null and b/public/images/icons/middle/error.png differ diff --git a/public/images/icons/middle/info.png b/public/images/icons/middle/info.png new file mode 100644 index 0000000..28ba43d Binary files /dev/null and b/public/images/icons/middle/info.png differ diff --git a/public/images/icons/middle/success.png b/public/images/icons/middle/success.png new file mode 100644 index 0000000..8674e83 Binary files /dev/null and b/public/images/icons/middle/success.png differ diff --git a/public/images/icons/middle/warning.png b/public/images/icons/middle/warning.png new file mode 100644 index 0000000..c14cbbf Binary files /dev/null and b/public/images/icons/middle/warning.png differ diff --git a/public/images/icons/small/list-icon1.png b/public/images/icons/small/list-icon1.png new file mode 100644 index 0000000..fa26ed8 Binary files /dev/null and b/public/images/icons/small/list-icon1.png differ diff --git a/public/images/icons/small/list-icon10.png b/public/images/icons/small/list-icon10.png new file mode 100644 index 0000000..9149656 Binary files /dev/null and b/public/images/icons/small/list-icon10.png differ diff --git a/public/images/icons/small/list-icon11.png b/public/images/icons/small/list-icon11.png new file mode 100644 index 0000000..a4de584 Binary files /dev/null and b/public/images/icons/small/list-icon11.png differ diff --git a/public/images/icons/small/list-icon12.png b/public/images/icons/small/list-icon12.png new file mode 100644 index 0000000..7aa1603 Binary files /dev/null and b/public/images/icons/small/list-icon12.png differ diff --git a/public/images/icons/small/list-icon13.png b/public/images/icons/small/list-icon13.png new file mode 100644 index 0000000..a05663b Binary files /dev/null and b/public/images/icons/small/list-icon13.png differ diff --git a/public/images/icons/small/list-icon14.png b/public/images/icons/small/list-icon14.png new file mode 100644 index 0000000..61febea Binary files /dev/null and b/public/images/icons/small/list-icon14.png differ diff --git a/public/images/icons/small/list-icon15.png b/public/images/icons/small/list-icon15.png new file mode 100644 index 0000000..a25b3c1 Binary files /dev/null and b/public/images/icons/small/list-icon15.png differ diff --git a/public/images/icons/small/list-icon16.png b/public/images/icons/small/list-icon16.png new file mode 100644 index 0000000..f3df2b1 Binary files /dev/null and b/public/images/icons/small/list-icon16.png differ diff --git a/public/images/icons/small/list-icon17.png b/public/images/icons/small/list-icon17.png new file mode 100644 index 0000000..3178213 Binary files /dev/null and b/public/images/icons/small/list-icon17.png differ diff --git a/public/images/icons/small/list-icon2.png b/public/images/icons/small/list-icon2.png new file mode 100644 index 0000000..d2d282c Binary files /dev/null and b/public/images/icons/small/list-icon2.png differ diff --git a/public/images/icons/small/list-icon3.png b/public/images/icons/small/list-icon3.png new file mode 100644 index 0000000..967cd3d Binary files /dev/null and b/public/images/icons/small/list-icon3.png differ diff --git a/public/images/icons/small/list-icon4.png b/public/images/icons/small/list-icon4.png new file mode 100644 index 0000000..b2fcc54 Binary files /dev/null and b/public/images/icons/small/list-icon4.png differ diff --git a/public/images/icons/small/list-icon5.png b/public/images/icons/small/list-icon5.png new file mode 100644 index 0000000..e924559 Binary files /dev/null and b/public/images/icons/small/list-icon5.png differ diff --git a/public/images/icons/small/list-icon6.png b/public/images/icons/small/list-icon6.png new file mode 100644 index 0000000..0b1add9 Binary files /dev/null and b/public/images/icons/small/list-icon6.png differ diff --git a/public/images/icons/small/list-icon7.png b/public/images/icons/small/list-icon7.png new file mode 100644 index 0000000..b06f3f6 Binary files /dev/null and b/public/images/icons/small/list-icon7.png differ diff --git a/public/images/icons/small/list-icon8.png b/public/images/icons/small/list-icon8.png new file mode 100644 index 0000000..0908e71 Binary files /dev/null and b/public/images/icons/small/list-icon8.png differ diff --git a/public/images/icons/small/list-icon9.png b/public/images/icons/small/list-icon9.png new file mode 100644 index 0000000..3e1ceef Binary files /dev/null and b/public/images/icons/small/list-icon9.png differ diff --git a/public/images/icons/sprite-icons.png b/public/images/icons/sprite-icons.png new file mode 100644 index 0000000..e7f2c80 Binary files /dev/null and b/public/images/icons/sprite-icons.png differ diff --git a/public/images/ie.png b/public/images/ie.png new file mode 100644 index 0000000..4ab1ca0 Binary files /dev/null and b/public/images/ie.png differ diff --git a/public/images/logo.png b/public/images/logo.png new file mode 100644 index 0000000..77b1d4c Binary files /dev/null and b/public/images/logo.png differ diff --git a/public/images/mask.png b/public/images/mask.png new file mode 100644 index 0000000..a96a72e Binary files /dev/null and b/public/images/mask.png differ diff --git a/public/images/more.png b/public/images/more.png new file mode 100644 index 0000000..9a4c7ab Binary files /dev/null and b/public/images/more.png differ diff --git a/public/images/other-link.png b/public/images/other-link.png new file mode 100644 index 0000000..ae97da9 Binary files /dev/null and b/public/images/other-link.png differ diff --git a/public/images/pattern-dark.png b/public/images/pattern-dark.png new file mode 100644 index 0000000..575f11f Binary files /dev/null and b/public/images/pattern-dark.png differ diff --git a/public/images/pattern.png b/public/images/pattern.png new file mode 100644 index 0000000..d3b90a2 Binary files /dev/null and b/public/images/pattern.png differ diff --git a/public/images/phone.png b/public/images/phone.png new file mode 100644 index 0000000..dc28960 Binary files /dev/null and b/public/images/phone.png differ diff --git a/public/images/plus.png b/public/images/plus.png new file mode 100644 index 0000000..bfa1287 Binary files /dev/null and b/public/images/plus.png differ diff --git a/public/images/round.png b/public/images/round.png new file mode 100644 index 0000000..fe420cb Binary files /dev/null and b/public/images/round.png differ diff --git a/public/images/shadow-sprite.png b/public/images/shadow-sprite.png new file mode 100644 index 0000000..f4ca31b Binary files /dev/null and b/public/images/shadow-sprite.png differ diff --git a/public/images/sliders/img_01.jpg b/public/images/sliders/img_01.jpg new file mode 100644 index 0000000..4b8877c Binary files /dev/null and b/public/images/sliders/img_01.jpg differ diff --git a/public/images/sliders/img_02.jpg b/public/images/sliders/img_02.jpg new file mode 100644 index 0000000..b925f6d Binary files /dev/null and b/public/images/sliders/img_02.jpg differ diff --git a/public/images/sliders/img_03.jpg b/public/images/sliders/img_03.jpg new file mode 100644 index 0000000..e0be62e Binary files /dev/null and b/public/images/sliders/img_03.jpg differ diff --git a/public/images/sliders/img_04.jpg b/public/images/sliders/img_04.jpg new file mode 100644 index 0000000..1568332 Binary files /dev/null and b/public/images/sliders/img_04.jpg differ diff --git a/public/images/sliders/img_05.jpg b/public/images/sliders/img_05.jpg new file mode 100644 index 0000000..1788ddd Binary files /dev/null and b/public/images/sliders/img_05.jpg differ diff --git a/public/images/sliders/thumbs/1.jpg b/public/images/sliders/thumbs/1.jpg new file mode 100644 index 0000000..744378e Binary files /dev/null and b/public/images/sliders/thumbs/1.jpg differ diff --git a/public/images/sliders/thumbs/2.jpg b/public/images/sliders/thumbs/2.jpg new file mode 100644 index 0000000..e0f4903 Binary files /dev/null and b/public/images/sliders/thumbs/2.jpg differ diff --git a/public/images/sliders/thumbs/3.jpg b/public/images/sliders/thumbs/3.jpg new file mode 100644 index 0000000..5b2fdeb Binary files /dev/null and b/public/images/sliders/thumbs/3.jpg differ diff --git a/public/images/sliders/thumbs/4.jpg b/public/images/sliders/thumbs/4.jpg new file mode 100644 index 0000000..73a464d Binary files /dev/null and b/public/images/sliders/thumbs/4.jpg differ diff --git a/public/images/sliders/thumbs/5.jpg b/public/images/sliders/thumbs/5.jpg new file mode 100644 index 0000000..c743ee9 Binary files /dev/null and b/public/images/sliders/thumbs/5.jpg differ diff --git a/public/images/social_icons.png b/public/images/social_icons.png new file mode 100644 index 0000000..9819b73 Binary files /dev/null and b/public/images/social_icons.png differ diff --git a/public/images/submit-search.png b/public/images/submit-search.png new file mode 100644 index 0000000..ac0778b Binary files /dev/null and b/public/images/submit-search.png differ diff --git a/public/images/teaser.png b/public/images/teaser.png new file mode 100644 index 0000000..b60086c Binary files /dev/null and b/public/images/teaser.png differ diff --git a/public/images/temp/222px_1.jpg b/public/images/temp/222px_1.jpg new file mode 100644 index 0000000..fa9fe91 Binary files /dev/null and b/public/images/temp/222px_1.jpg differ diff --git a/public/images/temp/222px_2.jpg b/public/images/temp/222px_2.jpg new file mode 100644 index 0000000..8010e78 Binary files /dev/null and b/public/images/temp/222px_2.jpg differ diff --git a/public/images/temp/450px_1.jpg b/public/images/temp/450px_1.jpg new file mode 100644 index 0000000..83ffb05 Binary files /dev/null and b/public/images/temp/450px_1.jpg differ diff --git a/public/images/temp/450px_2.jpg b/public/images/temp/450px_2.jpg new file mode 100644 index 0000000..bf4cdec Binary files /dev/null and b/public/images/temp/450px_2.jpg differ diff --git a/public/images/temp/blog_img_01.jpg b/public/images/temp/blog_img_01.jpg new file mode 100644 index 0000000..53b37c4 Binary files /dev/null and b/public/images/temp/blog_img_01.jpg differ diff --git a/public/images/temp/blog_img_02.jpg b/public/images/temp/blog_img_02.jpg new file mode 100644 index 0000000..d8efc8d Binary files /dev/null and b/public/images/temp/blog_img_02.jpg differ diff --git a/public/images/temp/blog_img_03.jpg b/public/images/temp/blog_img_03.jpg new file mode 100644 index 0000000..a9b6c6e Binary files /dev/null and b/public/images/temp/blog_img_03.jpg differ diff --git a/public/images/temp/blog_img_04.jpg b/public/images/temp/blog_img_04.jpg new file mode 100644 index 0000000..62d7a28 Binary files /dev/null and b/public/images/temp/blog_img_04.jpg differ diff --git a/public/images/temp/blog_img_05.jpg b/public/images/temp/blog_img_05.jpg new file mode 100644 index 0000000..de18546 Binary files /dev/null and b/public/images/temp/blog_img_05.jpg differ diff --git a/public/images/temp/blog_temp_img_1.jpg b/public/images/temp/blog_temp_img_1.jpg new file mode 100644 index 0000000..914fe3a Binary files /dev/null and b/public/images/temp/blog_temp_img_1.jpg differ diff --git a/public/images/temp/blog_temp_img_2.jpg b/public/images/temp/blog_temp_img_2.jpg new file mode 100644 index 0000000..e75d6b2 Binary files /dev/null and b/public/images/temp/blog_temp_img_2.jpg differ diff --git a/public/images/temp/blog_temp_img_3.jpg b/public/images/temp/blog_temp_img_3.jpg new file mode 100644 index 0000000..f59f917 Binary files /dev/null and b/public/images/temp/blog_temp_img_3.jpg differ diff --git a/public/images/temp/blog_temp_img_4.jpg b/public/images/temp/blog_temp_img_4.jpg new file mode 100644 index 0000000..f8e6785 Binary files /dev/null and b/public/images/temp/blog_temp_img_4.jpg differ diff --git a/public/images/temp/blog_temp_img_5.jpg b/public/images/temp/blog_temp_img_5.jpg new file mode 100644 index 0000000..efc1833 Binary files /dev/null and b/public/images/temp/blog_temp_img_5.jpg differ diff --git a/public/images/temp/blog_temp_img_6.jpg b/public/images/temp/blog_temp_img_6.jpg new file mode 100644 index 0000000..d3143c7 Binary files /dev/null and b/public/images/temp/blog_temp_img_6.jpg differ diff --git a/public/images/temp/blog_temp_img_7.jpg b/public/images/temp/blog_temp_img_7.jpg new file mode 100644 index 0000000..0416357 Binary files /dev/null and b/public/images/temp/blog_temp_img_7.jpg differ diff --git a/public/images/temp/item_img_1.jpg b/public/images/temp/item_img_1.jpg new file mode 100644 index 0000000..1eb339b Binary files /dev/null and b/public/images/temp/item_img_1.jpg differ diff --git a/public/images/temp/item_img_2.jpg b/public/images/temp/item_img_2.jpg new file mode 100644 index 0000000..7fdda4f Binary files /dev/null and b/public/images/temp/item_img_2.jpg differ diff --git a/public/images/temp/item_img_3.jpg b/public/images/temp/item_img_3.jpg new file mode 100644 index 0000000..835ab2b Binary files /dev/null and b/public/images/temp/item_img_3.jpg differ diff --git a/public/images/temp/no_avatar.png b/public/images/temp/no_avatar.png new file mode 100644 index 0000000..8e109ce Binary files /dev/null and b/public/images/temp/no_avatar.png differ diff --git a/public/images/temp/rel_img_1.jpg b/public/images/temp/rel_img_1.jpg new file mode 100644 index 0000000..0eb371a Binary files /dev/null and b/public/images/temp/rel_img_1.jpg differ diff --git a/public/images/temp/rel_img_2.jpg b/public/images/temp/rel_img_2.jpg new file mode 100644 index 0000000..45bd390 Binary files /dev/null and b/public/images/temp/rel_img_2.jpg differ diff --git a/public/images/temp/rel_img_3.jpg b/public/images/temp/rel_img_3.jpg new file mode 100644 index 0000000..d2e99d5 Binary files /dev/null and b/public/images/temp/rel_img_3.jpg differ diff --git a/public/images/temp/rel_img_4.jpg b/public/images/temp/rel_img_4.jpg new file mode 100644 index 0000000..de0dcb4 Binary files /dev/null and b/public/images/temp/rel_img_4.jpg differ diff --git a/public/images/temp/sample-post-1.jpg b/public/images/temp/sample-post-1.jpg new file mode 100644 index 0000000..204ad21 Binary files /dev/null and b/public/images/temp/sample-post-1.jpg differ diff --git a/public/images/temp/sample-post-2.jpg b/public/images/temp/sample-post-2.jpg new file mode 100644 index 0000000..2330999 Binary files /dev/null and b/public/images/temp/sample-post-2.jpg differ diff --git a/public/images/temp/sample-post-3.jpg b/public/images/temp/sample-post-3.jpg new file mode 100644 index 0000000..16309d2 Binary files /dev/null and b/public/images/temp/sample-post-3.jpg differ diff --git a/public/images/temp/team_img_1.jpg b/public/images/temp/team_img_1.jpg new file mode 100644 index 0000000..2df2f5a Binary files /dev/null and b/public/images/temp/team_img_1.jpg differ diff --git a/public/images/temp/team_img_2.jpg b/public/images/temp/team_img_2.jpg new file mode 100644 index 0000000..9575e73 Binary files /dev/null and b/public/images/temp/team_img_2.jpg differ diff --git a/public/images/temp/team_img_3.jpg b/public/images/temp/team_img_3.jpg new file mode 100644 index 0000000..a62f1c8 Binary files /dev/null and b/public/images/temp/team_img_3.jpg differ diff --git a/public/images/temp/temp_img_1.jpg b/public/images/temp/temp_img_1.jpg new file mode 100644 index 0000000..54346e4 Binary files /dev/null and b/public/images/temp/temp_img_1.jpg differ diff --git a/public/images/temp/temp_img_2.jpg b/public/images/temp/temp_img_2.jpg new file mode 100644 index 0000000..d195a06 Binary files /dev/null and b/public/images/temp/temp_img_2.jpg differ diff --git a/public/images/temp/temp_img_3.jpg b/public/images/temp/temp_img_3.jpg new file mode 100644 index 0000000..0a642b8 Binary files /dev/null and b/public/images/temp/temp_img_3.jpg differ diff --git a/public/images/top-arrow.png b/public/images/top-arrow.png new file mode 100644 index 0000000..0919e07 Binary files /dev/null and b/public/images/top-arrow.png differ diff --git a/public/images/zoom.png b/public/images/zoom.png new file mode 100644 index 0000000..9d420c8 Binary files /dev/null and b/public/images/zoom.png differ diff --git a/public/js/PIE.htc b/public/js/PIE.htc new file mode 100644 index 0000000..00b6383 --- /dev/null +++ b/public/js/PIE.htc @@ -0,0 +1,96 @@ + + + + + + + + + diff --git a/public/js/general.js b/public/js/general.js new file mode 100644 index 0000000..5da2d16 --- /dev/null +++ b/public/js/general.js @@ -0,0 +1,436 @@ +if($.browser.mozilla||$.browser.opera ){document.removeEventListener("DOMContentLoaded",jQuery.ready,false);document.addEventListener("DOMContentLoaded",function(){jQuery.ready()},false)} +jQuery.event.remove( window, "load", jQuery.ready ); +jQuery.event.add( window, "load", function(){jQuery.ready();} ); +jQuery.extend({ + includeStates:{}, + include:function(url,callback,dependency){ + if ( typeof callback!='function'&&!dependency){ + dependency = callback; + callback = null; + } + url = url.replace('\n', ''); + jQuery.includeStates[url] = false; + var script = document.createElement('script'); + script.type = 'text/javascript'; + script.onload = function () { + jQuery.includeStates[url] = true; + if ( callback ) + callback.call(script); + }; + script.onreadystatechange = function () { + if ( this.readyState != "complete" && this.readyState != "loaded" ) return; + jQuery.includeStates[url] = true; + if ( callback ) + callback.call(script); + }; + script.src = url; + if ( dependency ) { + if ( dependency.constructor != Array ) + dependency = [dependency]; + setTimeout(function(){ + var valid = true; + $.each(dependency, function(k, v){ + if (! v() ) { + valid = false; + return false; + } + }) + if ( valid ) + document.getElementsByTagName('body')[0].appendChild(script); + else + setTimeout(arguments.callee, 10); + }, 10); + } + else + document.getElementsByTagName('body')[0].appendChild(script); + return function(){ + return jQuery.includeStates[url]; + } + }, + + readyOld: jQuery.ready, + ready: function () { + if (jQuery.isReady) return; + imReady = true; + $.each(jQuery.includeStates, function(url, state) { + if (! state) + return imReady = false; + }); + if (imReady) { + jQuery.readyOld.apply(jQuery, arguments); + } else { + setTimeout(arguments.callee, 10); + } + } +}); + +/************** Include Javascript Files ***************/ + +$.include('js/superfish.js'); + +if($('.testimonials').length || $('.pics').length || $('.pics_single').length || $('.single-pics').length) {$.include('js/jquery.cycle.all.min.js');} +if($('.zoomer').length) {$.include('fancybox/jquery.fancybox.pack.js');} +if($('.workPanelLink').length) {$.include('js/jquery.quicksand.js');} +if($('#jstwitter').length) {$.include('js/twitter.js');} + + +/************* Sliders *************/ + +/* Nivo Slider --> Begin */ +if ($('#imageSlider').length) { + $.include('sliders/nivo-slider/jquery.nivo.slider.js'); + jQuery(window).load(function(){ + jQuery('#imageSlider').nivoSlider({ + effect:'random', + animSpeed:600, + startSlide: 0, + pauseTime:4000, + captionOpacity: 1, + pauseOnHover:true, + directionNav: false, + directionNavHide:false + }); + }); +} +/* Nivo Slider --> End */ + + +/* Elegan Accordion Slider --> Begin */ +if ($('#accordion').length) { + $.include('sliders/elegant-accordion/jquery.elegantAccordion.js'); + jQuery(function() { + jQuery('#accordion').eAccordion({ + easing: 'swing', // Anything other than "linear" or "swing" requires the easing plugin + autoPlay: true, // This turns off the entire FUNCTIONALY, not just if it starts running or not + startStopped: false, // If autoPlay is on, this can force it to start stopped + stopAtEnd: false, // If autoplay is on, it will stop when it reaches the last slide + delay: 3000, // How long between slide transitions in AutoPlay mode + animationTime: 600, // How long the slide transition takes + hashTags: true, // Should links change the hashtag in the URL? + pauseOnHover: false, // If true, and autoPlay is enabled, the show will pause on hover + width: null, // Override the default CSS width + height: null, // Override the default CSS height + expandedWidth: '570px' // Width of the expanded slide + }); + }); +} +/* Elegan Accordion Slider --> End */ + + +/* Circle Navigation Effect Slider --> Begin */ +if($('#cn-slideshow').length) { + $.include('sliders/circle-navigation-effect/jquery.tmpl.min.js'); + $.include('sliders/circle-navigation-effect/jquery.slideshow.js'); + jQuery(function() { + jQuery('#cn-slideshow').slideshow(); + }); +} +/* Circle Navigation Effect Slider --> End */ + + +/* Rama Slider --> Begin */ +if(jQuery('#example').length) { + $('#example').frames_slider({ + width:770, + height:415, + theme:"sport", + timer:6000, + hidetoolbar:60000000000000 + }) + } +/* Rama Slider --> End */ + + +/* Mosaic --> Begin */ +if ($('#sample').length) { + $.include('js/jquery.imjqmosaic.0.1.packed.js'); + jQuery(function() { + $.imJQMosaic({ + image:'images/sliders/img_03.jpg', + target: 'sample', + frameWidth: '755', + frameHeight:'415', + numberOfTilesX: '11', + numberOfTilesY: '6', + tileBorder: '1', + tileBorderColor: '#fff', + tileBorderRadius: '0', + effectIntensity: '0.5', + effectColor: '#c6e346' + }); + }); +} +/* Mosaic --> End */ + + +/* Load Google Fonts --> Begin */ +WebFontConfig = { + google: {families: ['PT+Sans+Narrow::latin','Oswald::latin','Nova+Square::latin','Lobster::latin']} + }; + (function() { + var wf = document.createElement('script'); + wf.src = ('https:' == document.location.protocol ? 'https' : 'http') + + '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js'; + wf.type = 'text/javascript'; + wf.async = 'true'; + var s = document.getElementsByTagName('body')[0]; + s.appendChild(wf, s); + })(); +/* Load Google Fonts --> End */ + + +/*********************** DOM READY --> Begin ****************************/ + +jQuery(document).ready(function(){ + +/* Superfish Menu Plugin --> Begin */ + $('#navigation > ul').superfish({ + animation: {height:'show'}, + delay: 1200 // 1.2 second delay on mouseout + }); +/* Superfish Menu Plugin --> End */ + + +/* Query data-rel to rel --> Begin */ + if ($("a[data-rel]").length) { + $('a[data-rel]').each(function() {$(this).attr('rel', $(this).data('rel'));}); + } +/* Query data-rel to rel --> End */ + + +/* Pics --> Begin */ + if (jQuery(".pics").length) { + jQuery('.pics').cycle({ + fx: 'scrollHorz', + timeout: 0, + next: '.next', + prev: '.prev', + easing: 'easeOutQuint' + }); + } + if (jQuery(".single-pics").length) { + jQuery('.single-pics').cycle({ + fx: 'scrollHorz', + timeout: 0, + next: '.next', + prev: '.prev', + easing: 'easeOutQuint' + }); + } +/* Pics --> End */ + + +/* Tables --> Begin */ + var $table = $('table.feature-table', this); + $('table.feature-table thead tr th:first-child').addClass('leftR'); + $('table.feature-table thead tr th:last-child').addClass('rightR'); + $table.find('tbody tr:odd').addClass('odd'); +/* Tables --> End */ + + +/* Scroll to Top --> Begin */ + $('a[href=#top]').click(function(){ + $('html, body').animate({scrollTop:0}, 'slow'); + return false; + }); +/* Scroll to Top --> End */ + + +/* Testimonials --> Begin */ + if($('.testimonials').length) { + function onAfter(curr, next, opts, fwd) { + var $ht = $(this).height(); + $(this).parent().animate({height: $ht}); + } + $('.testimonials').cycle({ + fx: 'fade', + timeout: 8000, + height: 'auto', + pause: 1, + pager: '.testimonial-pager', + before: onAfter, + cleartypeNoBg: true + }); + } +/* Testimonials --> End */ + + +/* Box close --> Begin */ + $notifications_collection = $('.success, .info, .error, .warning'); + $notifications_collection.append('×').wrap('
    '); + var closeBox = $('.close-box', this); + closeBox.bind('click',function() { + var $this = $(this); + var box = $this.parent().parent('.custom-box-wrap'); + var boxChild = $this.parent('.box'); + box.animate({opacity:'0'},500, function() { + box.animate({height:'0'},500); + boxChild.animate({margin:'0'},400); + }); + }); +/* Box close --> End */ + + +/* To top --> Begin */ + $BackTop = $('#back-top'); + var animating = false; + $(window).scroll(function () { + if ($(this).scrollTop() > 100 && !animating) { + $BackTop.fadeIn(1000); + } else { + $BackTop.fadeOut(1000); + } + }); + + $('#back-top a').click(function () { + $BackTop.fadeOut(400); + animating = true; + $('body,html').animate({ + scrollTop: 0 + }, 800, function() { + animating = false; + }); + return false; + }); +/* To top --> End */ + + +/* Image wrapper --> Begin */ + function handle_image(img) { + var $curtain = $(' '); + img.after($curtain); + } + + $img_collection = $('.zoomer img, .workPanelLink img'); + $img_collection.each(function() { + handle_image($(this)); + }); +/* Image wrapper --> End */ + + +/* Prepare loading fancybox --> Begin */ + if($('.zoomer').length) { + jQuery('.zoomer').fancybox({ + 'overlayShow' : false, + 'transitionIn' : 'elastic', + 'transitionOut' : 'elastic' + }); + } +/* Prepare loading fancybox --> End */ + + +/* Tabs --> Begin */ + var tabs1 = $('.tabs-1'); + var tabs2 = $('.tabs-2'); + var tabs3 = $('.tabs-3'); + + $.fn.tabs = function(link) { + $(link).find("ul.tabs li:first").addClass("active").show(); //Activate first tab + $(link).find(".tab_container .tab_content:first").show(); //Show first tab content + + //On Click Event + $(link).find('ul.tabs li').click(function() { + + $(link).find('ul.tabs li').removeClass("active"); //Remove any "active" class + $(this).addClass("active"); //Add "active" class to selected tab + link.find('.tab_content').hide(); //Hide all tab content + + var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content + $(activeTab).fadeIn('normal'); //Fade in the active ID content + return false; + }); + } + tabs1.tabs(tabs1); + tabs2.tabs(tabs2); + tabs3.tabs(tabs3); +/* Tabs --> End */ + + +/* Toggle --> Begin */ + if($('.toggle_container').length) { + $(".toggle_container").hide(); //Hide (Collapse) the toggle containers on load + //Switch the "Open" and "Close" state per click then slide up/down (depending on open/close state) + $("b.trigger").click(function(){ + $(this).toggleClass("active").next().slideToggle("slow"); + return false; //Prevent the browser jump to the link anchor + }); + } +/* Toggle --> End */ + + +/* Workpanel --> Begin */ +if($('.workPanelLink').length) { + $('.workPanelLink').workPanel(); + var $filterType = $('#filter a'); + var $list = $('#gallery'); + $list.css('height', $(this).height()/2.5); + var $data = $list.clone(); + $filterType.click(function(event) { + if ($(this).attr('data-rel') == 'everyone') { + var $sortedData = $data.find('li'); + } else { + var $sortedData = $data.find('.'+ $(this).attr('data-rel')); + } + + $('#filter li').removeClass('active'); + $(this).parent('li').addClass('active'); + + $list.quicksand($sortedData, { + attribute: 'id', + duration: 500, + easing: 'easeInOutQuad', + adjustHeight: 'auto', + useScaling: 'true' + }, function(){ + $('.image-grid .workPanelLink').workPanel(); + $('.workPanelLink img').each(function() { + handle_image($(this)); + }); + $('.image-grid li').removeClass('last'); + $('.image-grid li:nth-child(3n)').addClass('last'); + }); + return false; + }); +} + +/* Workpanel --> End */ + + +});/************** DOM READY --> End ***********************/ + + +var topPanelHidden=true, topPanelShowing, hasClosed; +if(jQuery) (function($){ + + $.fn.workPanel = function(params){ + var conf = $.extend({ + blockPanel:'#workPanel', + blockHover:'img' + }, params); + return this.each(function(){ + var o=$(this),c=conf,targetPane=o.attr('href'),panel=$(c.blockPanel); + + o.bind('click', function(){ + if(topPanelHidden != true){ + o.removeClass('selected'); + panel.stop().animate({height:'0px',opacity:0},500); + $('.workPanelContent').fadeOut(500); + $('body').scrollTo({top:panel.offset().top, left:0}, 1000, {easing:'easeInOutCubic'}); + hasClosed=true; + } + if(topPanelShowing != targetPane || topPanelHidden == true){ + topPanelShowing=targetPane; + o.addClass('selected'); + $('article'+targetPane).animate({opacity:1}, 500, function(){ + $('article'+targetPane).fadeIn(500); + }); + panel.stop().animate({height:'415px',opacity:1},500); + $('body').scrollTo({top:panel.offset().top, left:0}, 1000, {easing:'easeInOutCubic'}); + hasClosed=false; + } + topPanelHidden = hasClosed; + return false; + }); + }); + } +})(jQuery); \ No newline at end of file diff --git a/public/js/ie.js b/public/js/ie.js new file mode 100644 index 0000000..9b51aa9 --- /dev/null +++ b/public/js/ie.js @@ -0,0 +1,9 @@ + +// Fixs for IE +/************** DOM READY --> Begin ***********************/ + +$(function() { + $('.image-grid li:nth-child(3n)').addClass('last'); +}); + +/************** DOM READY --> END *************************/ \ No newline at end of file diff --git a/public/js/jquery.cycle.all.min.js b/public/js/jquery.cycle.all.min.js new file mode 100644 index 0000000..606a3af --- /dev/null +++ b/public/js/jquery.cycle.all.min.js @@ -0,0 +1,21 @@ +/* + * jQuery Cycle Plugin (with Transition Definitions) + * Examples and documentation at: http://jquery.malsup.com/cycle/ + * Copyright (c) 2007-2010 M. Alsup + * Version: 2.94 (20-DEC-2010) + * Dual licensed under the MIT and GPL licenses. + * http://jquery.malsup.com/license.html + * Requires: jQuery v1.2.6 or later + */ +(function($){var ver="2.94";if($.support==undefined){$.support={opacity:!($.browser.msie)};}function debug(s){if($.fn.cycle.debug){log(s);}}function log(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments," "));}}$.fn.cycle=function(options,arg2){var o={s:this.selector,c:this.context};if(this.length===0&&options!="stop"){if(!$.isReady&&o.s){log("DOM not ready, queuing slideshow");$(function(){$(o.s,o.c).cycle(options,arg2);});return this;}log("terminating; zero elements found by selector"+($.isReady?"":" (DOM not ready)"));return this;}return this.each(function(){var opts=handleArguments(this,options,arg2);if(opts===false){return;}opts.updateActivePagerLink=opts.updateActivePagerLink||$.fn.cycle.updateActivePagerLink;if(this.cycleTimeout){clearTimeout(this.cycleTimeout);}this.cycleTimeout=this.cyclePause=0;var $cont=$(this);var $slides=opts.slideExpr?$(opts.slideExpr,this):$cont.children();var els=$slides.get();if(els.length<2){log("terminating; too few slides: "+els.length);return;}var opts2=buildOptions($cont,$slides,els,opts,o);if(opts2===false){return;}var startTime=opts2.continuous?10:getTimeout(els[opts2.currSlide],els[opts2.nextSlide],opts2,!opts2.backwards);if(startTime){startTime+=(opts2.delay||0);if(startTime<10){startTime=10;}debug("first timeout: "+startTime);this.cycleTimeout=setTimeout(function(){go(els,opts2,0,!opts.backwards);},startTime);}});};function handleArguments(cont,options,arg2){if(cont.cycleStop==undefined){cont.cycleStop=0;}if(options===undefined||options===null){options={};}if(options.constructor==String){switch(options){case"destroy":case"stop":var opts=$(cont).data("cycle.opts");if(!opts){return false;}cont.cycleStop++;if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);}cont.cycleTimeout=0;$(cont).removeData("cycle.opts");if(options=="destroy"){destroy(opts);}return false;case"toggle":cont.cyclePause=(cont.cyclePause===1)?0:1;checkInstantResume(cont.cyclePause,arg2,cont);return false;case"pause":cont.cyclePause=1;return false;case"resume":cont.cyclePause=0;checkInstantResume(false,arg2,cont);return false;case"prev":case"next":var opts=$(cont).data("cycle.opts");if(!opts){log('options not found, "prev/next" ignored');return false;}$.fn.cycle[options](opts);return false;default:options={fx:options};}return options;}else{if(options.constructor==Number){var num=options;options=$(cont).data("cycle.opts");if(!options){log("options not found, can not advance slide");return false;}if(num<0||num>=options.elements.length){log("invalid slide index: "+num);return false;}options.nextSlide=num;if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}if(typeof arg2=="string"){options.oneTimeFx=arg2;}go(options.elements,options,1,num>=options.currSlide);return false;}}return options;function checkInstantResume(isPaused,arg2,cont){if(!isPaused&&arg2===true){var options=$(cont).data("cycle.opts");if(!options){log("options not found, can not resume");return false;}if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}go(options.elements,options,1,!options.backwards);}}}function removeFilter(el,opts){if(!$.support.opacity&&opts.cleartype&&el.style.filter){try{el.style.removeAttribute("filter");}catch(smother){}}}function destroy(opts){if(opts.next){$(opts.next).unbind(opts.prevNextEvent);}if(opts.prev){$(opts.prev).unbind(opts.prevNextEvent);}if(opts.pager||opts.pagerAnchorBuilder){$.each(opts.pagerAnchors||[],function(){this.unbind().remove();});}opts.pagerAnchors=null;if(opts.destroy){opts.destroy(opts);}}function buildOptions($cont,$slides,els,options,o){var opts=$.extend({},$.fn.cycle.defaults,options||{},$.metadata?$cont.metadata():$.meta?$cont.data():{});if(opts.autostop){opts.countdown=opts.autostopCount||els.length;}var cont=$cont[0];$cont.data("cycle.opts",opts);opts.$cont=$cont;opts.stopCount=cont.cycleStop;opts.elements=els;opts.before=opts.before?[opts.before]:[];opts.after=opts.after?[opts.after]:[];opts.after.unshift(function(){opts.busy=0;});if(!$.support.opacity&&opts.cleartype){opts.after.push(function(){removeFilter(this,opts);});}if(opts.continuous){opts.after.push(function(){go(els,opts,0,!opts.backwards);});}saveOriginalOpts(opts);if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg){clearTypeFix($slides);}if($cont.css("position")=="static"){$cont.css("position","relative");}if(opts.width){$cont.width(opts.width);}if(opts.height&&opts.height!="auto"){$cont.height(opts.height);}if(opts.startingSlide){opts.startingSlide=parseInt(opts.startingSlide);}else{if(opts.backwards){opts.startingSlide=els.length-1;}}if(opts.random){opts.randomMap=[];for(var i=0;i=els.length){opts.startingSlide=0;}}opts.currSlide=opts.startingSlide||0;var first=opts.startingSlide;$slides.css({position:"absolute",top:0,left:0}).hide().each(function(i){var z;if(opts.backwards){z=first?i<=first?els.length+(i-first):first-i:els.length-i;}else{z=first?i>=first?els.length-(i-first):first-i:els.length-i;}$(this).css("z-index",z);});$(els[first]).css("opacity",1).show();removeFilter(els[first],opts);if(opts.fit&&opts.width){$slides.width(opts.width);}if(opts.fit&&opts.height&&opts.height!="auto"){$slides.height(opts.height);}var reshape=opts.containerResize&&!$cont.innerHeight();if(reshape){var maxw=0,maxh=0;for(var j=0;jmaxw?w:maxw;maxh=h>maxh?h:maxh;}if(maxw>0&&maxh>0){$cont.css({width:maxw+"px",height:maxh+"px"});}}if(opts.pause){$cont.hover(function(){this.cyclePause++;},function(){this.cyclePause--;});}if(supportMultiTransitions(opts)===false){return false;}var requeue=false;options.requeueAttempts=options.requeueAttempts||0;$slides.each(function(){var $el=$(this);this.cycleH=(opts.fit&&opts.height)?opts.height:($el.height()||this.offsetHeight||this.height||$el.attr("height")||0);this.cycleW=(opts.fit&&opts.width)?opts.width:($el.width()||this.offsetWidth||this.width||$el.attr("width")||0);if($el.is("img")){var loadingIE=($.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var loadingFF=($.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var loadingOp=($.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var loadingOther=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(loadingIE||loadingFF||loadingOp||loadingOther){if(o.s&&opts.requeueOnImageNotLoaded&&++options.requeueAttempts<100){log(options.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){$(o.s,o.c).cycle(options);},opts.requeueTimeout);requeue=true;return false;}else{log("could not determine size of image: "+this.src,this.cycleW,this.cycleH);}}}return true;});if(requeue){return false;}opts.cssBefore=opts.cssBefore||{};opts.animIn=opts.animIn||{};opts.animOut=opts.animOut||{};$slides.not(":eq("+first+")").css(opts.cssBefore);if(opts.cssFirst){$($slides[first]).css(opts.cssFirst);}if(opts.timeout){opts.timeout=parseInt(opts.timeout);if(opts.speed.constructor==String){opts.speed=$.fx.speeds[opts.speed]||parseInt(opts.speed);}if(!opts.sync){opts.speed=opts.speed/2;}var buffer=opts.fx=="shuffle"?500:250;while((opts.timeout-opts.speed)=(els.length-1)?0:opts.startingSlide+1;}}if(!opts.multiFx){var init=$.fn.cycle.transitions[opts.fx];if($.isFunction(init)){init($cont,$slides,opts);}else{if(opts.fx!="custom"&&!opts.multiFx){log("unknown transition: "+opts.fx,"; slideshow terminating");return false;}}}var e0=$slides[first];if(opts.before.length){opts.before[0].apply(e0,[e0,e0,opts,true]);}if(opts.after.length>1){opts.after[1].apply(e0,[e0,e0,opts,true]);}if(opts.next){$(opts.next).bind(opts.prevNextEvent,function(){return advance(opts,1);});}if(opts.prev){$(opts.prev).bind(opts.prevNextEvent,function(){return advance(opts,0);});}if(opts.pager||opts.pagerAnchorBuilder){buildPager(els,opts);}exposeAddSlide(opts,els);return opts;}function saveOriginalOpts(opts){opts.original={before:[],after:[]};opts.original.cssBefore=$.extend({},opts.cssBefore);opts.original.cssAfter=$.extend({},opts.cssAfter);opts.original.animIn=$.extend({},opts.animIn);opts.original.animOut=$.extend({},opts.animOut);$.each(opts.before,function(){opts.original.before.push(this);});$.each(opts.after,function(){opts.original.after.push(this);});}function supportMultiTransitions(opts){var i,tx,txs=$.fn.cycle.transitions;if(opts.fx.indexOf(",")>0){opts.multiFx=true;opts.fxs=opts.fx.replace(/\s*/g,"").split(",");for(i=0;i=opts.fxs.length){opts.lastFx=0;}fx=opts.fxs[opts.lastFx];opts.currFx=fx;}if(opts.oneTimeFx){fx=opts.oneTimeFx;opts.oneTimeFx=null;}$.fn.cycle.resetState(opts,fx);if(opts.before.length){$.each(opts.before,function(i,o){if(p.cycleStop!=opts.stopCount){return;}o.apply(next,[curr,next,opts,fwd]);});}var after=function(){$.each(opts.after,function(i,o){if(p.cycleStop!=opts.stopCount){return;}o.apply(next,[curr,next,opts,fwd]);});};debug("tx firing; currSlide: "+opts.currSlide+"; nextSlide: "+opts.nextSlide);opts.busy=1;if(opts.fxFn){opts.fxFn(curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}else{if($.isFunction($.fn.cycle[opts.fx])){$.fn.cycle[opts.fx](curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}else{$.fn.cycle.custom(curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}}}if(changed||opts.nextSlide==opts.currSlide){opts.lastSlide=opts.currSlide;if(opts.random){opts.currSlide=opts.nextSlide;if(++opts.randomIndex==els.length){opts.randomIndex=0;}opts.nextSlide=opts.randomMap[opts.randomIndex];if(opts.nextSlide==opts.currSlide){opts.nextSlide=(opts.currSlide==opts.slideCount-1)?0:opts.currSlide+1;}}else{if(opts.backwards){var roll=(opts.nextSlide-1)<0;if(roll&&opts.bounce){opts.backwards=!opts.backwards;opts.nextSlide=1;opts.currSlide=0;}else{opts.nextSlide=roll?(els.length-1):opts.nextSlide-1;opts.currSlide=roll?0:opts.nextSlide+1;}}else{var roll=(opts.nextSlide+1)==els.length;if(roll&&opts.bounce){opts.backwards=!opts.backwards;opts.nextSlide=els.length-2;opts.currSlide=els.length-1;}else{opts.nextSlide=roll?0:opts.nextSlide+1;opts.currSlide=roll?els.length-1:opts.nextSlide-1;}}}}if(changed&&opts.pager){opts.updateActivePagerLink(opts.pager,opts.currSlide,opts.activePagerClass);}var ms=0;if(opts.timeout&&!opts.continuous){ms=getTimeout(els[opts.currSlide],els[opts.nextSlide],opts,fwd);}else{if(opts.continuous&&p.cyclePause){ms=10;}}if(ms>0){p.cycleTimeout=setTimeout(function(){go(els,opts,0,!opts.backwards);},ms);}}$.fn.cycle.updateActivePagerLink=function(pager,currSlide,clsName){$(pager).each(function(){$(this).children().removeClass(clsName).eq(currSlide).addClass(clsName);});};function getTimeout(curr,next,opts,fwd){if(opts.timeoutFn){var t=opts.timeoutFn.call(curr,curr,next,opts,fwd);while((t-opts.speed)<250){t+=opts.speed;}debug("calculated timeout: "+t+"; speed: "+opts.speed);if(t!==false){return t;}}return opts.timeout;}$.fn.cycle.next=function(opts){advance(opts,1);};$.fn.cycle.prev=function(opts){advance(opts,0);};function advance(opts,moveForward){var val=moveForward?1:-1;var els=opts.elements;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}if(opts.random&&val<0){opts.randomIndex--;if(--opts.randomIndex==-2){opts.randomIndex=els.length-2;}else{if(opts.randomIndex==-1){opts.randomIndex=els.length-1;}}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{if(opts.random){opts.nextSlide=opts.randomMap[opts.randomIndex];}else{opts.nextSlide=opts.currSlide+val;if(opts.nextSlide<0){if(opts.nowrap){return false;}opts.nextSlide=els.length-1;}else{if(opts.nextSlide>=els.length){if(opts.nowrap){return false;}opts.nextSlide=0;}}}}var cb=opts.onPrevNextEvent||opts.prevNextClick;if($.isFunction(cb)){cb(val>0,opts.nextSlide,els[opts.nextSlide]);}go(els,opts,1,moveForward);return false;}function buildPager(els,opts){var $p=$(opts.pager);$.each(els,function(i,o){$.fn.cycle.createPagerAnchor(i,o,$p,els,opts);});opts.updateActivePagerLink(opts.pager,opts.startingSlide,opts.activePagerClass);}$.fn.cycle.createPagerAnchor=function(i,el,$p,els,opts){var a;if($.isFunction(opts.pagerAnchorBuilder)){a=opts.pagerAnchorBuilder(i,el);debug("pagerAnchorBuilder("+i+", el) returned: "+a);}else{a=''+(i+1)+"";}if(!a){return;}var $a=$(a);if($a.parents("body").length===0){var arr=[];if($p.length>1){$p.each(function(){var $clone=$a.clone(true);$(this).append($clone);arr.push($clone[0]);});$a=$(arr);}else{$a.appendTo($p);}}opts.pagerAnchors=opts.pagerAnchors||[];opts.pagerAnchors.push($a);$a.bind(opts.pagerEvent,function(e){e.preventDefault();opts.nextSlide=i;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}var cb=opts.onPagerEvent||opts.pagerClick;if($.isFunction(cb)){cb(opts.nextSlide,els[opts.nextSlide]);}go(els,opts,1,opts.currSlidel?c-l:opts.slideCount-l;}else{hops=c=0){var rgb=v.match(/\d+/g);return"#"+hex(rgb[0])+hex(rgb[1])+hex(rgb[2]);}if(v&&v!="transparent"){return v;}}return"#ffffff";}$slides.each(function(){$(this).css("background-color",getBg(this));});}$.fn.cycle.commonReset=function(curr,next,opts,w,h,rev){$(opts.elements).not(curr).hide();opts.cssBefore.opacity=1;opts.cssBefore.display="block";if(opts.slideResize&&w!==false&&next.cycleW>0){opts.cssBefore.width=next.cycleW;}if(opts.slideResize&&h!==false&&next.cycleH>0){opts.cssBefore.height=next.cycleH;}opts.cssAfter=opts.cssAfter||{};opts.cssAfter.display="none";$(curr).css("zIndex",opts.slideCount+(rev===true?1:0));$(next).css("zIndex",opts.slideCount+(rev===true?0:1));};$.fn.cycle.custom=function(curr,next,opts,cb,fwd,speedOverride){var $l=$(curr),$n=$(next);var speedIn=opts.speedIn,speedOut=opts.speedOut,easeIn=opts.easeIn,easeOut=opts.easeOut;$n.css(opts.cssBefore);if(speedOverride){if(typeof speedOverride=="number"){speedIn=speedOut=speedOverride;}else{speedIn=speedOut=1;}easeIn=easeOut=null;}var fn=function(){$n.animate(opts.animIn,speedIn,easeIn,cb);};$l.animate(opts.animOut,speedOut,easeOut,function(){if(opts.cssAfter){$l.css(opts.cssAfter);}if(!opts.sync){fn();}});if(opts.sync){fn();}};$.fn.cycle.transitions={fade:function($cont,$slides,opts){$slides.not(":eq("+opts.currSlide+")").css("opacity",0);opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.opacity=0;});opts.animIn={opacity:1};opts.animOut={opacity:0};opts.cssBefore={top:0,left:0};}};$.fn.cycle.ver=function(){return ver;};$.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,onPrevNextEvent:null,prevNextEvent:"click.cycle",pager:null,onPagerEvent:null,pagerEvent:"click.cycle",allowPagerClickBubble:false,pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,slideResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!$.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250,activePagerClass:"activeSlide",updateActivePagerLink:null,backwards:false};})(jQuery); +/* + * jQuery Cycle Plugin Transition Definitions + * This script is a plugin for the jQuery Cycle Plugin + * Examples and documentation at: http://malsup.com/jquery/cycle/ + * Copyright (c) 2007-2010 M. Alsup + * Version: 2.73 + * Dual licensed under the MIT and GPL licenses: + * http://www.opensource.org/licenses/mit-license.php + * http://www.gnu.org/licenses/gpl.html + */ +(function($){$.fn.cycle.transitions.none=function($cont,$slides,opts){opts.fxFn=function(curr,next,opts,after){$(next).show();$(curr).hide();after();};};$.fn.cycle.transitions.fadeout=function($cont,$slides,opts){$slides.not(":eq("+opts.currSlide+")").css({display:"block",opacity:1});opts.before.push(function(curr,next,opts,w,h,rev){$(curr).css("zIndex",opts.slideCount+(!rev===true?1:0));$(next).css("zIndex",opts.slideCount+(!rev===true?0:1));});opts.animIn={opacity:1};opts.animOut={opacity:0};opts.cssBefore={opacity:1,display:"block"};opts.cssAfter={zIndex:0};};$.fn.cycle.transitions.scrollUp=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var h=$cont.height();opts.cssBefore={top:h,left:0};opts.cssFirst={top:0};opts.animIn={top:0};opts.animOut={top:-h};};$.fn.cycle.transitions.scrollDown=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var h=$cont.height();opts.cssFirst={top:0};opts.cssBefore={top:-h,left:0};opts.animIn={top:0};opts.animOut={top:h};};$.fn.cycle.transitions.scrollLeft=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var w=$cont.width();opts.cssFirst={left:0};opts.cssBefore={left:w,top:0};opts.animIn={left:0};opts.animOut={left:0-w};};$.fn.cycle.transitions.scrollRight=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var w=$cont.width();opts.cssFirst={left:0};opts.cssBefore={left:-w,top:0};opts.animIn={left:0};opts.animOut={left:w};};$.fn.cycle.transitions.scrollHorz=function($cont,$slides,opts){$cont.css("overflow","hidden").width();opts.before.push(function(curr,next,opts,fwd){if(opts.rev){fwd=!fwd;}$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.left=fwd?(next.cycleW-1):(1-next.cycleW);opts.animOut.left=fwd?-curr.cycleW:curr.cycleW;});opts.cssFirst={left:0};opts.cssBefore={top:0};opts.animIn={left:0};opts.animOut={top:0};};$.fn.cycle.transitions.scrollVert=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push(function(curr,next,opts,fwd){if(opts.rev){fwd=!fwd;}$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.top=fwd?(1-next.cycleH):(next.cycleH-1);opts.animOut.top=fwd?curr.cycleH:-curr.cycleH;});opts.cssFirst={top:0};opts.cssBefore={left:0};opts.animIn={top:0};opts.animOut={left:0};};$.fn.cycle.transitions.slideX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$(opts.elements).not(curr).hide();$.fn.cycle.commonReset(curr,next,opts,false,true);opts.animIn.width=next.cycleW;});opts.cssBefore={left:0,top:0,width:0};opts.animIn={width:"show"};opts.animOut={width:0};};$.fn.cycle.transitions.slideY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$(opts.elements).not(curr).hide();$.fn.cycle.commonReset(curr,next,opts,true,false);opts.animIn.height=next.cycleH;});opts.cssBefore={left:0,top:0,height:0};opts.animIn={height:"show"};opts.animOut={height:0};};$.fn.cycle.transitions.shuffle=function($cont,$slides,opts){var i,w=$cont.css("overflow","visible").width();$slides.css({left:0,top:0});opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);});if(!opts.speedAdjusted){opts.speed=opts.speed/2;opts.speedAdjusted=true;}opts.random=0;opts.shuffle=opts.shuffle||{left:-w,top:15};opts.els=[];for(i=0;i<$slides.length;i++){opts.els.push($slides[i]);}for(i=0;i
    ';A("#"+mosaicO.target).append(H);var C=0,G,F,L,K;var D=mosaicO.frameWidth-(mosaicO.numberOfTilesX*2*(mosaicO.tileMargin+mosaicO.tileBorder));if(D<0){return false}var B=mosaicO.frameHeight-(mosaicO.numberOfTilesY*2*(mosaicO.tileMargin+mosaicO.tileBorder));if(B<0){return false}G=Math.floor(D/mosaicO.numberOfTilesX);L=3*(mosaicO.tileMargin+mosaicO.tileBorder)+G;F=G;K=L;if(mosaicO.numberOfTilesY!=-1){F=Math.floor(B/mosaicO.numberOfTilesY);K=3*(mosaicO.tileMargin+mosaicO.tileBorder)+F}for(var I=mosaicO.imageOffsetY;I
    ';A("#"+mosaicO.target).find("#imjqmosaic").append(E)}}},renderMenu:function(){var D=this;for(i=0;i';E.html(H).css({"opacity":"0.6","cursor":"pointer","background":mosaicO.menuBackground}).wrap(C)}else{E.html(H).css({"opacity":"0.6","background":mosaicO.menuBackground,"color":mosaicO.menuFontColor,"fontSize":mosaicO.menuFontSize,"fontFamily":mosaicO.menuFont})}}},postRender:function(){var B=this;A("#"+mosaicO.target+" #imjqmosaic .imjqmosaic_tile").hover(function(){if(A(this).find(".e").html()==""){if(mosaicO.effect=="flash"){A(this).find(".e").animate({"opacity":mosaicO.effectIntensity},"fast").animate({"opacity":"0.0"},"fast")}}else{if(mosaicO.menuEffect=="zoom"){A(this).find(".e").animate({"opacity":mosaicO.effectIntensity},"fast").animate({"opacity":"0.6"},"fast")}}},function(){})}})})(jQuery) \ No newline at end of file diff --git a/public/js/jquery.jigowatt.js b/public/js/jquery.jigowatt.js new file mode 100644 index 0000000..f8e647c --- /dev/null +++ b/public/js/jquery.jigowatt.js @@ -0,0 +1,36 @@ +jQuery(document).ready(function(){ + + $('#contactform').submit(function(){ + + var action = $(this).attr('action'); + + $('#contactform #submit').attr('disabled','disabled').after(''); + + $("#message").slideUp(750,function() { + $('#message').hide(); + + $.post(action, { + name: $('#name').val(), + email: $('#email').val(), + phone: $('#phone').val(), + subject: $('#subject').val(), + comments: $('#comments').val(), + verify: $('#verify').val() + }, + function(data){ + document.getElementById('message').innerHTML = data; + $('#message').slideDown('slow'); + $('#contactform img.loader').fadeOut('fast',function(){$(this).remove()}); + $('#contactform #submit').attr('disabled',''); + if(data.match('success') != null) $('#contactform').slideUp('slow'); + + } + ); + + }); + + return false; + + }); + +}); \ No newline at end of file diff --git a/public/js/jquery.quicksand.js b/public/js/jquery.quicksand.js new file mode 100644 index 0000000..692cbee --- /dev/null +++ b/public/js/jquery.quicksand.js @@ -0,0 +1,307 @@ +/* + +Quicksand 1.2.2 + +Reorder and filter items with a nice shuffling animation. + +Copyright (c) 2010 Jacek Galanciak (razorjack.net) and agilope.com +Big thanks for Piotr Petrus (riddle.pl) for deep code review and wonderful docs & demos. + +Dual licensed under the MIT and GPL version 2 licenses. +http://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt +http://github.com/jquery/jquery/blob/master/GPL-LICENSE.txt + +Project site: http://razorjack.net/quicksand +Github site: http://github.com/razorjack/quicksand + +*/ + +(function ($) { + $.fn.quicksand = function (collection, customOptions) { + var options = { + duration: 750, + easing: 'swing', + attribute: 'data-id', // attribute to recognize same items within source and dest + adjustHeight: 'false', // 'dynamic' animates height during shuffling (slow), 'auto' adjusts it before or after the animation, false leaves height constant + useScaling: true, // disable it if you're not using scaling effect or want to improve performance + enhancement: function(c) {}, // Visual enhacement (eg. font replacement) function for cloned elements + selector: '> *', + dx: 0, + dy: 0 + }; + $.extend(options, customOptions); + + if ($.browser.msie || (typeof($.fn.scale) == 'undefined')) { + // Got IE and want scaling effect? Kiss my ass. + options.useScaling = false; + } + + var callbackFunction; + if (typeof(arguments[1]) == 'function') { + var callbackFunction = arguments[1]; + } else if (typeof(arguments[2] == 'function')) { + var callbackFunction = arguments[2]; + } + + + return this.each(function (i) { + var val; + var animationQueue = []; // used to store all the animation params before starting the animation; solves initial animation slowdowns + var $collection = $(collection).clone(); // destination (target) collection + var $sourceParent = $(this); // source, the visible container of source collection + var sourceHeight = $(this).css('height'); // used to keep height and document flow during the animation + + var destHeight; + var adjustHeightOnCallback = false; + + var offset = $($sourceParent).offset(); // offset of visible container, used in animation calculations + var offsets = []; // coordinates of every source collection item + + var $source = $(this).find(options.selector); // source collection items + + // Replace the collection and quit if IE6 + if ($.browser.msie && $.browser.version.substr(0,1)<7) { + $sourceParent.html('').append($collection); + return; + } + + // Gets called when any animation is finished + var postCallbackPerformed = 0; // prevents the function from being called more than one time + var postCallback = function () { + + if (!postCallbackPerformed) { + postCallbackPerformed = 1; + + // hack: + // used to be: $sourceParent.html($dest.html()); // put target HTML into visible source container + // but new webkit builds cause flickering when replacing the collections + $toDelete = $sourceParent.find('> *'); + $sourceParent.prepend($dest.find('> *')); + $toDelete.remove(); + + if (adjustHeightOnCallback) { + $sourceParent.css('height', destHeight); + } + options.enhancement($sourceParent); // Perform custom visual enhancements on a newly replaced collection + if (typeof callbackFunction == 'function') { + callbackFunction.call(this); + } + } + }; + + // Position: relative situations + var $correctionParent = $sourceParent.offsetParent(); + var correctionOffset = $correctionParent.offset(); + if ($correctionParent.css('position') == 'relative') { + if ($correctionParent.get(0).nodeName.toLowerCase() == 'body') { + + } else { + correctionOffset.top += (parseFloat($correctionParent.css('border-top-width')) || 0); + correctionOffset.left +=( parseFloat($correctionParent.css('border-left-width')) || 0); + } + } else { + correctionOffset.top -= (parseFloat($correctionParent.css('border-top-width')) || 0); + correctionOffset.left -= (parseFloat($correctionParent.css('border-left-width')) || 0); + correctionOffset.top -= (parseFloat($correctionParent.css('margin-top')) || 0); + correctionOffset.left -= (parseFloat($correctionParent.css('margin-left')) || 0); + } + + // perform custom corrections from options (use when Quicksand fails to detect proper correction) + if (isNaN(correctionOffset.left)) { + correctionOffset.left = 0; + } + if (isNaN(correctionOffset.top)) { + correctionOffset.top = 0; + } + + correctionOffset.left -= options.dx; + correctionOffset.top -= options.dy; + + // keeps nodes after source container, holding their position + $sourceParent.css('height', $(this).height()); + + // get positions of source collections + $source.each(function (i) { + offsets[i] = $(this).offset(); + }); + + // stops previous animations on source container + $(this).stop(); + var dx = 0; var dy = 0; + $source.each(function (i) { + $(this).stop(); // stop animation of collection items + var rawObj = $(this).get(0); + if (rawObj.style.position == 'absolute') { + dx = -options.dx; + dy = -options.dy; + } else { + dx = options.dx; + dy = options.dy; + } + + rawObj.style.position = 'absolute'; + rawObj.style.margin = '0'; + + rawObj.style.top = (offsets[i].top - parseFloat(rawObj.style.marginTop) - correctionOffset.top + dy) + 'px'; + rawObj.style.left = (offsets[i].left - parseFloat(rawObj.style.marginLeft) - correctionOffset.left + dx) + 'px'; + }); + + // create temporary container with destination collection + var $dest = $($sourceParent).clone(); + var rawDest = $dest.get(0); + rawDest.innerHTML = ''; + rawDest.setAttribute('id', ''); + rawDest.style.height = 'auto'; + rawDest.style.width = $sourceParent.width() + 'px'; + $dest.append($collection); + // insert node into HTML + // Note that the node is under visible source container in the exactly same position + // The browser render all the items without showing them (opacity: 0.0) + // No offset calculations are needed, the browser just extracts position from underlayered destination items + // and sets animation to destination positions. + $dest.insertBefore($sourceParent); + $dest.css('opacity', 0.0); + rawDest.style.zIndex = -1; + + rawDest.style.margin = '0'; + rawDest.style.position = 'absolute'; + rawDest.style.top = offset.top - correctionOffset.top + 'px'; + rawDest.style.left = offset.left - correctionOffset.left + 'px'; + + + + + + if (options.adjustHeight === 'dynamic') { + // If destination container has different height than source container + // the height can be animated, adjusting it to destination height + $sourceParent.animate({height: $dest.height()}, options.duration, options.easing); + } else if (options.adjustHeight === 'auto') { + destHeight = $dest.height(); + if (parseFloat(sourceHeight) < parseFloat(destHeight)) { + // Adjust the height now so that the items don't move out of the container + $sourceParent.css('height', destHeight); + } else { + // Adjust later, on callback + adjustHeightOnCallback = true; + } + } + + // Now it's time to do shuffling animation + // First of all, we need to identify same elements within source and destination collections + $source.each(function (i) { + var destElement = []; + if (typeof(options.attribute) == 'function') { + + val = options.attribute($(this)); + $collection.each(function() { + if (options.attribute(this) == val) { + destElement = $(this); + return false; + } + }); + } else { + destElement = $collection.filter('[' + options.attribute + '=' + $(this).attr(options.attribute) + ']'); + } + if (destElement.length) { + // The item is both in source and destination collections + // It it's under different position, let's move it + if (!options.useScaling) { + animationQueue.push( + { + element: $(this), + animation: + {top: destElement.offset().top - correctionOffset.top, + left: destElement.offset().left - correctionOffset.left, + opacity: 1.0 + } + }); + + } else { + animationQueue.push({ + element: $(this), + animation: {top: destElement.offset().top - correctionOffset.top, + left: destElement.offset().left - correctionOffset.left, + opacity: 1.0, + scale: '1.0' + } + }); + + } + } else { + // The item from source collection is not present in destination collections + // Let's remove it + if (!options.useScaling) { + animationQueue.push({element: $(this), + animation: {opacity: '0.0'}}); + } else { + animationQueue.push({element: $(this), animation: {opacity: '0.0', + scale: '0.0'}}); + } + } + }); + + $collection.each(function (i) { + // Grab all items from target collection not present in visible source collection + + var sourceElement = []; + var destElement = []; + if (typeof(options.attribute) == 'function') { + val = options.attribute($(this)); + $source.each(function() { + if (options.attribute(this) == val) { + sourceElement = $(this); + return false; + } + }); + + $collection.each(function() { + if (options.attribute(this) == val) { + destElement = $(this); + return false; + } + }); + } else { + sourceElement = $source.filter('[' + options.attribute + '=' + $(this).attr(options.attribute) + ']'); + destElement = $collection.filter('[' + options.attribute + '=' + $(this).attr(options.attribute) + ']'); + } + + var animationOptions; + if (sourceElement.length === 0) { + // No such element in source collection... + if (!options.useScaling) { + animationOptions = { + opacity: '1.0' + }; + } else { + animationOptions = { + opacity: '1.0', + scale: '1.0' + }; + } + // Let's create it + d = destElement.clone(); + var rawDestElement = d.get(0); + rawDestElement.style.position = 'absolute'; + rawDestElement.style.margin = '0'; + rawDestElement.style.top = destElement.offset().top - correctionOffset.top + 'px'; + rawDestElement.style.left = destElement.offset().left - correctionOffset.left + 'px'; + d.css('opacity', 0.0); // IE + if (options.useScaling) { + d.css('transform', 'scale(0.0)'); + } + d.appendTo($sourceParent); + + animationQueue.push({element: $(d), + animation: animationOptions}); + } + }); + + $dest.remove(); + options.enhancement($sourceParent); // Perform custom visual enhancements during the animation + for (i = 0; i < animationQueue.length; i++) { + animationQueue[i].element.animate(animationQueue[i].animation, options.duration, options.easing, postCallback); + } + }); + }; +})(jQuery); \ No newline at end of file diff --git a/public/js/jquery.scrollTo-1.4.2-min.js b/public/js/jquery.scrollTo-1.4.2-min.js new file mode 100644 index 0000000..5e78778 --- /dev/null +++ b/public/js/jquery.scrollTo-1.4.2-min.js @@ -0,0 +1,11 @@ +/** + * jQuery.ScrollTo - Easy element scrolling using jQuery. + * Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com + * Dual licensed under MIT and GPL. + * Date: 5/25/2009 + * @author Ariel Flesler + * @version 1.4.2 + * + * http://flesler.blogspot.com/2007/10/jqueryscrollto.html + */ +;(function(d){var k=d.scrollTo=function(a,i,e){d(window).scrollTo(a,i,e)};k.defaults={axis:'xy',duration:parseFloat(d.fn.jquery)>=1.3?0:1};k.window=function(a){return d(window)._scrollable()};d.fn._scrollable=function(){return this.map(function(){var a=this,i=!a.nodeName||d.inArray(a.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!i)return a;var e=(a.contentWindow||a).document||a.ownerDocument||a;return d.browser.safari||e.compatMode=='BackCompat'?e.body:e.documentElement})};d.fn.scrollTo=function(n,j,b){if(typeof j=='object'){b=j;j=0}if(typeof b=='function')b={onAfter:b};if(n=='max')n=9e9;b=d.extend({},k.defaults,b);j=j||b.speed||b.duration;b.queue=b.queue&&b.axis.length>1;if(b.queue)j/=2;b.offset=p(b.offset);b.over=p(b.over);return this._scrollable().each(function(){var q=this,r=d(q),f=n,s,g={},u=r.is('html,body');switch(typeof f){case'number':case'string':if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(f)){f=p(f);break}f=d(f,this);case'object':if(f.is||f.style)s=(f=d(f)).offset()}d.each(b.axis.split(''),function(a,i){var e=i=='x'?'Left':'Top',h=e.toLowerCase(),c='scroll'+e,l=q[c],m=k.max(q,i);if(s){g[c]=s[h]+(u?0:l-r.offset()[h]);if(b.margin){g[c]-=parseInt(f.css('margin'+e))||0;g[c]-=parseInt(f.css('border'+e+'Width'))||0}g[c]+=b.offset[h]||0;if(b.over[h])g[c]+=f[i=='x'?'width':'height']()*b.over[h]}else{var o=f[h];g[c]=o.slice&&o.slice(-1)=='%'?parseFloat(o)/100*m:o}if(/^\d+$/.test(g[c]))g[c]=g[c]<=0?0:Math.min(g[c],m);if(!a&&b.queue){if(l!=g[c])t(b.onAfterFirst);delete g[c]}});t(b.onAfter);function t(a){r.animate(g,j,b.easing,a&&function(){a.call(this,n,b)})}}).end()};k.max=function(a,i){var e=i=='x'?'Width':'Height',h='scroll'+e;if(!d(a).is('html,body'))return a[h]-d(a)[e.toLowerCase()]();var c='client'+e,l=a.ownerDocument.documentElement,m=a.ownerDocument.body;return Math.max(l[h],m[h])-Math.min(l[c],m[c])};function p(a){return typeof a=='object'?a:{top:a,left:a}}})(jQuery); \ No newline at end of file diff --git a/public/js/jquery.tools.min.js b/public/js/jquery.tools.min.js new file mode 100644 index 0000000..c39a15d --- /dev/null +++ b/public/js/jquery.tools.min.js @@ -0,0 +1,192 @@ +/* + * jQuery Tools 1.2.5 - The missing UI library for the Web + * + * [jquery, tabs, tooltip, overlay, scrollable] + * + * NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE. + * + * http://flowplayer.org/tools/ + * + * jQuery JavaScript Library v1.4.2 + * http://jquery.com/ + * + * Copyright 2010, John Resig + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://docs.jquery.com/License + * + * Includes Sizzle.js + * http://sizzlejs.com/ + * Copyright 2010, The Dojo Foundation + * Released under the MIT, BSD, and GPL Licenses. + * + * ----- + * + + + * File generated: Wed Sep 22 06:12:53 GMT 2010 + */ +(function(A,w){function ma(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(ma,1);return}c.ready()}}function Qa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function X(a,b,d,f,e,j){var i=a.length;if(typeof b==="object"){for(var o in b)X(a,o,b[o],f,e,d);return a}if(d!==w){f=!j&&f&&c.isFunction(d);for(o=0;o)[^>]*$|^#([\w-]+)$/,Ua=/^.[^:#\[\.,]*$/,Va=/\S/, +Wa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Xa=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,P=navigator.userAgent,xa=false,Q=[],L,$=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,ba=Array.prototype.push,R=Array.prototype.slice,ya=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!b){this.context=s;this[0]=s.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((d=Ta.exec(a))&& +(d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:s;if(a=Xa.exec(a))if(c.isPlainObject(b)){a=[s.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[f.createElement(a[1])];else{a=sa([d[1]],[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}return c.merge(this,a)}else{if(b=s.getElementById(d[2])){if(b.id!==d[2])return T.find(a);this.length=1;this[0]=b}this.context=s;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=s;a=s.getElementsByTagName(a);return c.merge(this, +a)}else return!b||b.jquery?(b||T).find(a):c(b).find(a);else if(c.isFunction(a))return T.ready(a);if(a.selector!==w){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){var f=c();c.isArray(a)?ba.apply(f,a):c.merge(f,a);f.prevObject=this;f.context=this.context;if(b=== +"find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+"."+b+"("+d+")";return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(R.apply(this,arguments),"slice",R.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this, +function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b
    a"; +var e=d.getElementsByTagName("*"),j=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!j)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(j.getAttribute("style")),hrefNormalized:j.getAttribute("href")==="/a",opacity:/^0.55$/.test(j.style.opacity),cssFloat:!!j.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:s.createElement("select").appendChild(s.createElement("option")).selected, +parentNode:d.removeChild(d.appendChild(s.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(s.createTextNode("window."+f+"=1;"))}catch(i){}a.insertBefore(b,a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}try{delete b.test}catch(o){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function k(){c.support.noCloneEvent= +false;d.detachEvent("onclick",k)});d.cloneNode(true).fireEvent("onclick")}d=s.createElement("div");d.innerHTML="";a=s.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var k=s.createElement("div");k.style.width=k.style.paddingLeft="1px";s.body.appendChild(k);c.boxModel=c.support.boxModel=k.offsetWidth===2;s.body.removeChild(k).style.display="none"});a=function(k){var n= +s.createElement("div");k="on"+k;var r=k in n;if(!r){n.setAttribute(k,"return;");r=typeof n[k]==="function"}return r};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=j=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Ya=0,za={};c.extend({cache:{},expando:G,noData:{embed:true,object:true, +applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var f=a[G],e=c.cache;if(!f&&typeof b==="string"&&d===w)return null;f||(f=++Ya);if(typeof b==="object"){a[G]=f;e[f]=c.extend(true,{},b)}else if(!e[f]){a[G]=f;e[f]={}}a=e[f];if(d!==w)a[b]=d;return typeof b==="string"?a[b]:a}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var d=a[G],f=c.cache,e=f[d];if(b){if(e){delete e[b];c.isEmptyObject(e)&&c.removeData(a)}}else{if(c.support.deleteExpando)delete a[c.expando]; +else a.removeAttribute&&a.removeAttribute(c.expando);delete f[d]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===w){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===w&&this.length)f=c.data(this[0],a);return f===w&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this, +a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b=== +w)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var Aa=/[\n\t]/g,ca=/\s+/,Za=/\r/g,$a=/href|src|style/,ab=/(button|input)/i,bb=/(button|input|object|select|textarea)/i, +cb=/^(a|area)$/i,Ba=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(n){var r=c(this);r.addClass(a.call(this,n,r.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ca),d=0,f=this.length;d-1)return true;return false},val:function(a){if(a===w){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var j=b?d:0;for(d=b?d+1:e.length;j=0;else if(c.nodeName(this,"select")){var u=c.makeArray(r);c("option",this).each(function(){this.selected= +c.inArray(c(this).val(),u)>=0});if(!u.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return w;if(f&&b in c.attrFn)return c(a)[b](d);f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==w;b=f&&c.props[b]||b;if(a.nodeType===1){var j=$a.test(b);if(b in a&&f&&!j){if(e){b==="type"&&ab.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed"); +a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:bb.test(a.nodeName)||cb.test(a.nodeName)&&a.href?0:w;return a[b]}if(!c.support.style&&f&&b==="style"){if(e)a.style.cssText=""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&j?a.getAttribute(b,2):a.getAttribute(b);return a===null?w:a}return c.style(a,b,d)}});var O=/\.(.*)$/,db=function(a){return a.replace(/[^\w\s\.\|`]/g, +function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==A&&!a.frameElement)a=A;var e,j;if(d.handler){e=d;d=e.handler}if(!d.guid)d.guid=c.guid++;if(j=c.data(a)){var i=j.events=j.events||{},o=j.handle;if(!o)j.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,arguments):w};o.elem=a;b=b.split(" ");for(var k,n=0,r;k=b[n++];){j=e?c.extend({},e):{handler:d,data:f};if(k.indexOf(".")>-1){r=k.split("."); +k=r.shift();j.namespace=r.slice(0).sort().join(".")}else{r=[];j.namespace=""}j.type=k;j.guid=d.guid;var u=i[k],z=c.event.special[k]||{};if(!u){u=i[k]=[];if(!z.setup||z.setup.call(a,f,r,o)===false)if(a.addEventListener)a.addEventListener(k,o,false);else a.attachEvent&&a.attachEvent("on"+k,o)}if(z.add){z.add.call(a,j);if(!j.handler.guid)j.handler.guid=d.guid}u.push(j);c.event.global[k]=true}a=null}}},global:{},remove:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){var e,j=0,i,o,k,n,r,u,z=c.data(a), +C=z&&z.events;if(z&&C){if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(e in C)c.event.remove(a,e+b)}else{for(b=b.split(" ");e=b[j++];){n=e;i=e.indexOf(".")<0;o=[];if(!i){o=e.split(".");e=o.shift();k=new RegExp("(^|\\.)"+c.map(o.slice(0).sort(),db).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(r=C[e])if(d){n=c.event.special[e]||{};for(B=f||0;B=0){a.type= +e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[e]&&c.each(c.cache,function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return w;a.result=w;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(f=c.data(d,"handle"))&&f.apply(d,b);f=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+e]&&d["on"+e].apply(d,b)===false)a.result=false}catch(j){}if(!a.isPropagationStopped()&& +f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){f=a.target;var i,o=c.nodeName(f,"a")&&e==="click",k=c.event.special[e]||{};if((!k._default||k._default.call(d,a)===false)&&!o&&!(f&&f.nodeName&&c.noData[f.nodeName.toLowerCase()])){try{if(f[e]){if(i=f["on"+e])f["on"+e]=null;c.event.triggered=true;f[e]()}}catch(n){}if(i)f["on"+e]=i;c.event.triggered=false}}},handle:function(a){var b,d,f,e;a=arguments[0]=c.event.fix(a||A.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive; +if(!b){d=a.type.split(".");a.type=d.shift();f=new RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}e=c.data(this,"events");d=e[a.type];if(e&&d){d=d.slice(0);e=0;for(var j=d.length;e-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},fa=function(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Fa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data", +e);if(!(f===w||e===f))if(f!=null||e){a.type="change";return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:fa,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return fa.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return fa.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a, +"_change_data",Fa(a))}},setup:function(){if(this.type==="file")return false;for(var a in ea)c.event.add(this,a+".specialChange",ea[a]);return da.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return da.test(this.nodeName)}};ea=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c.event.special[b]={setup:function(){this.addEventListener(a, +d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{j=0;for(var o=this.length;j0){y=t;break}}t=t[g]}m[q]=y}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g, +e=0,j=Object.prototype.toString,i=false,o=true;[0,0].sort(function(){o=false;return 0});var k=function(g,h,l,m){l=l||[];var q=h=h||s;if(h.nodeType!==1&&h.nodeType!==9)return[];if(!g||typeof g!=="string")return l;for(var p=[],v,t,y,S,H=true,M=x(h),I=g;(f.exec(""),v=f.exec(I))!==null;){I=v[3];p.push(v[1]);if(v[2]){S=v[3];break}}if(p.length>1&&r.exec(g))if(p.length===2&&n.relative[p[0]])t=ga(p[0]+p[1],h);else for(t=n.relative[p[0]]?[h]:k(p.shift(),h);p.length;){g=p.shift();if(n.relative[g])g+=p.shift(); +t=ga(g,t)}else{if(!m&&p.length>1&&h.nodeType===9&&!M&&n.match.ID.test(p[0])&&!n.match.ID.test(p[p.length-1])){v=k.find(p.shift(),h,M);h=v.expr?k.filter(v.expr,v.set)[0]:v.set[0]}if(h){v=m?{expr:p.pop(),set:z(m)}:k.find(p.pop(),p.length===1&&(p[0]==="~"||p[0]==="+")&&h.parentNode?h.parentNode:h,M);t=v.expr?k.filter(v.expr,v.set):v.set;if(p.length>0)y=z(t);else H=false;for(;p.length;){var D=p.pop();v=D;if(n.relative[D])v=p.pop();else D="";if(v==null)v=h;n.relative[D](y,v,M)}}else y=[]}y||(y=t);y||k.error(D|| +g);if(j.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))l.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&l.push(t[g]);else l.push.apply(l,y);else z(y,l);if(S){k(S,q,l,m);k.uniqueSort(l)}return l};k.uniqueSort=function(g){if(B){i=o;g.sort(B);if(i)for(var h=1;h":function(g,h){var l=typeof h==="string";if(l&&!/\W/.test(h)){h=h.toLowerCase();for(var m=0,q=g.length;m=0))l||m.push(v);else if(l)h[p]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()}, +CHILD:function(g){if(g[1]==="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,l,m,q,p){h=g[1].replace(/\\/g,"");if(!p&&n.attrMap[h])g[1]=n.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,l,m,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,h);else{g=k.filter(g[3],h,l,true^q);l||m.push.apply(m, +g);return false}else if(n.match.POS.test(g[0])||n.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,h,l){return!!k(l[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)}, +text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}}, +setFilters:{first:function(g,h){return h===0},last:function(g,h,l,m){return h===m.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,l){return hl[3]-0},nth:function(g,h,l){return l[3]-0===h},eq:function(g,h,l){return l[3]-0===h}},filter:{PSEUDO:function(g,h,l,m){var q=h[1],p=n.filters[q];if(p)return p(g,l,h,m);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h= +h[3];l=0;for(m=h.length;l=0}},ID:function(g,h){return g.nodeType===1&&g.getAttribute("id")===h},TAG:function(g,h){return h==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===h},CLASS:function(g,h){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(g,h){var l=h[1];g=n.attrHandle[l]?n.attrHandle[l](g):g[l]!=null?g[l]:g.getAttribute(l);l=g+"";var m=h[2];h=h[4];return g==null?m==="!=":m=== +"="?l===h:m==="*="?l.indexOf(h)>=0:m==="~="?(" "+l+" ").indexOf(h)>=0:!h?l&&g!==false:m==="!="?l!==h:m==="^="?l.indexOf(h)===0:m==="$="?l.substr(l.length-h.length)===h:m==="|="?l===h||l.substr(0,h.length+1)===h+"-":false},POS:function(g,h,l,m){var q=n.setFilters[h[2]];if(q)return q(g,l,h,m)}}},r=n.match.POS;for(var u in n.match){n.match[u]=new RegExp(n.match[u].source+/(?![^\[]*\])(?![^\(]*\))/.source);n.leftMatch[u]=new RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[u].source.replace(/\\(\d+)/g,function(g, +h){return"\\"+(h-0+1)}))}var z=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h}return g};try{Array.prototype.slice.call(s.documentElement.childNodes,0)}catch(C){z=function(g,h){h=h||[];if(j.call(g)==="[object Array]")Array.prototype.push.apply(h,g);else if(typeof g.length==="number")for(var l=0,m=g.length;l";var l=s.documentElement;l.insertBefore(g,l.firstChild);if(s.getElementById(h)){n.find.ID=function(m,q,p){if(typeof q.getElementById!=="undefined"&&!p)return(q=q.getElementById(m[1]))?q.id===m[1]||typeof q.getAttributeNode!=="undefined"&& +q.getAttributeNode("id").nodeValue===m[1]?[q]:w:[]};n.filter.ID=function(m,q){var p=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&p&&p.nodeValue===q}}l.removeChild(g);l=g=null})();(function(){var g=s.createElement("div");g.appendChild(s.createComment(""));if(g.getElementsByTagName("*").length>0)n.find.TAG=function(h,l){l=l.getElementsByTagName(h[1]);if(h[1]==="*"){h=[];for(var m=0;l[m];m++)l[m].nodeType===1&&h.push(l[m]);l=h}return l};g.innerHTML=""; +if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(h){return h.getAttribute("href",2)};g=null})();s.querySelectorAll&&function(){var g=k,h=s.createElement("div");h.innerHTML="

    ";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){k=function(m,q,p,v){q=q||s;if(!v&&q.nodeType===9&&!x(q))try{return z(q.querySelectorAll(m),p)}catch(t){}return g(m,q,p,v)};for(var l in g)k[l]=g[l];h=null}}(); +(function(){var g=s.createElement("div");g.innerHTML="
    ";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,l,m){if(typeof l.getElementsByClassName!=="undefined"&&!m)return l.getElementsByClassName(h[1])};g=null}}})();var E=s.compareDocumentPosition?function(g,h){return!!(g.compareDocumentPosition(h)&16)}: +function(g,h){return g!==h&&(g.contains?g.contains(h):true)},x=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},ga=function(g,h){var l=[],m="",q;for(h=h.nodeType?[h]:h;q=n.match.PSEUDO.exec(g);){m+=q[0];g=g.replace(n.match.PSEUDO,"")}g=n.relative[g]?g+"*":g;q=0;for(var p=h.length;q=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f0)for(var j=d;j0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,j= +{},i;if(f&&a.length){e=0;for(var o=a.length;e-1:c(f).is(e)){d.push({selector:i,elem:f});delete j[i]}}f=f.parentNode}}return d}var k=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(n,r){for(;r&&r.ownerDocument&&r!==b;){if(k?k.index(r)>-1:c(r).is(a))return r;r=r.parentNode}return null})},index:function(a){if(!a||typeof a=== +"string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(qa(a[0])||qa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode", +d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")? +a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);eb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||gb.test(f))&&fb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||a.nodeType!==1||!c(a).is(d));){a.nodeType=== +1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ja=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ka=/(<([\w:]+)[^>]*?)\/>/g,hb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,La=/<([\w:]+)/,ib=/"},F={option:[1,""],legend:[1,"
    ","
    "],thead:[1,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],col:[2,"","
    "],area:[1,"",""],_default:[0,"",""]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize)F._default=[1,"div
    ","
    "];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d= +c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==w)return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this}, +wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})}, +prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b, +this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,f;(f=this[d])!=null;d++)if(!a||c.filter(a,[f]).length){if(!b&&f.nodeType===1){c.cleanData(f.getElementsByTagName("*"));c.cleanData([f])}f.parentNode&&f.parentNode.removeChild(f)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild); +return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ja,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(V,"")],f)[0]}else return this.cloneNode(true)});if(a===true){ra(this,b);ra(this.find("*"),b.find("*"))}return b},html:function(a){if(a===w)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ja, +""):null;else if(typeof a==="string"&&!ta.test(a)&&(c.support.leadingWhitespace||!V.test(a))&&!F[(La.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ka,Ma);try{for(var b=0,d=this.length;b0||e.cacheable||this.length>1?k.cloneNode(true):k)}o.length&&c.each(o,Qa)}return this}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var f=[];d=c(d);var e=this.length===1&&this[0].parentNode;if(e&&e.nodeType===11&&e.childNodes.length===1&&d.length===1){d[b](this[0]); +return this}else{e=0;for(var j=d.length;e0?this.clone(true):this).get();c.fn[b].apply(c(d[e]),i);f=f.concat(i)}return this.pushStack(f,a,d.selector)}}});c.extend({clean:function(a,b,d,f){b=b||s;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||s;for(var e=[],j=0,i;(i=a[j])!=null;j++){if(typeof i==="number")i+="";if(i){if(typeof i==="string"&&!jb.test(i))i=b.createTextNode(i);else if(typeof i==="string"){i=i.replace(Ka,Ma);var o=(La.exec(i)||["", +""])[1].toLowerCase(),k=F[o]||F._default,n=k[0],r=b.createElement("div");for(r.innerHTML=k[1]+i+k[2];n--;)r=r.lastChild;if(!c.support.tbody){n=ib.test(i);o=o==="table"&&!n?r.firstChild&&r.firstChild.childNodes:k[1]===""&&!n?r.childNodes:[];for(k=o.length-1;k>=0;--k)c.nodeName(o[k],"tbody")&&!o[k].childNodes.length&&o[k].parentNode.removeChild(o[k])}!c.support.leadingWhitespace&&V.test(i)&&r.insertBefore(b.createTextNode(V.exec(i)[0]),r.firstChild);i=r.childNodes}if(i.nodeType)e.push(i);else e= +c.merge(e,i)}}if(d)for(j=0;e[j];j++)if(f&&c.nodeName(e[j],"script")&&(!e[j].type||e[j].type.toLowerCase()==="text/javascript"))f.push(e[j].parentNode?e[j].parentNode.removeChild(e[j]):e[j]);else{e[j].nodeType===1&&e.splice.apply(e,[j+1,0].concat(c.makeArray(e[j].getElementsByTagName("script"))));d.appendChild(e[j])}return e},cleanData:function(a){for(var b,d,f=c.cache,e=c.event.special,j=c.support.deleteExpando,i=0,o;(o=a[i])!=null;i++)if(d=o[c.expando]){b=f[d];if(b.events)for(var k in b.events)e[k]? +c.event.remove(o,k):Ca(o,k,b.handle);if(j)delete o[c.expando];else o.removeAttribute&&o.removeAttribute(c.expando);delete f[d]}}});var kb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Na=/alpha\([^)]*\)/,Oa=/opacity=([^)]*)/,ha=/float/i,ia=/-([a-z])/ig,lb=/([A-Z])/g,mb=/^-?\d+(?:px)?$/i,nb=/^-?\d/,ob={position:"absolute",visibility:"hidden",display:"block"},pb=["Left","Right"],qb=["Top","Bottom"],rb=s.defaultView&&s.defaultView.getComputedStyle,Pa=c.support.cssFloat?"cssFloat":"styleFloat",ja= +function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return X(this,a,b,true,function(d,f,e){if(e===w)return c.curCSS(d,f);if(typeof e==="number"&&!kb.test(f))e+="px";c.style(d,f,e)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return w;if((b==="width"||b==="height")&&parseFloat(d)<0)d=w;var f=a.style||a,e=d!==w;if(!c.support.opacity&&b==="opacity"){if(e){f.zoom=1;b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")";a=f.filter||c.curCSS(a,"filter")||"";f.filter= +Na.test(a)?a.replace(Na,b):b}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(Oa.exec(f.filter)[1])/100+"":""}if(ha.test(b))b=Pa;b=b.replace(ia,ja);if(e)f[b]=d;return f[b]},css:function(a,b,d,f){if(b==="width"||b==="height"){var e,j=b==="width"?pb:qb;function i(){e=b==="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(j,function(){f||(e-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(f==="margin")e+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else e-=parseFloat(c.curCSS(a, +"border"+this+"Width",true))||0})}a.offsetWidth!==0?i():c.swap(a,ob,i);return Math.max(0,Math.round(e))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var f,e=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){f=Oa.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return f===""?"1":f}if(ha.test(b))b=Pa;if(!d&&e&&e[b])f=e[b];else if(rb){if(ha.test(b))b="float";b=b.replace(lb,"-$1").toLowerCase();e=a.ownerDocument.defaultView;if(!e)return null;if(a=e.getComputedStyle(a,null))f= +a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){d=b.replace(ia,ja);f=a.currentStyle[b]||a.currentStyle[d];if(!mb.test(f)&&nb.test(f)){b=e.left;var j=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=d==="fontSize"?"1em":f||0;f=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=j}}return f},swap:function(a,b,d){var f={};for(var e in b){f[e]=a.style[e];a.style[e]=b[e]}d.call(a);for(e in b)a.style[e]=f[e]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b= +a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var sb=J(),tb=//gi,ub=/select|textarea/i,vb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,N=/=\?(&|$)/,ka=/\?/,wb=/(\?|&)_=.*?(&|$)/,xb=/^(\w+:)?\/\/([^\/?#]+)/,yb=/%20/g,zb=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!== +"string")return zb.call(this,a);else if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var e=a.slice(f,a.length);a=a.slice(0,f)}f="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);f="POST"}var j=this;c.ajax({url:a,type:f,dataType:"html",data:b,complete:function(i,o){if(o==="success"||o==="notmodified")j.html(e?c("
    ").append(i.responseText.replace(tb,"")).find(e):i.responseText);d&&j.each(d,[i.responseText,o,i])}});return this}, +serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ub.test(this.nodeName)||vb.test(this.type))}).map(function(a,b){a=c(this).val();return a==null?null:c.isArray(a)?c.map(a,function(d){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "), +function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:f})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:f})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href, +global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:A.XMLHttpRequest&&(A.location.protocol!=="file:"||!A.ActiveXObject)?function(){return new A.XMLHttpRequest}:function(){try{return new A.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a){function b(){e.success&& +e.success.call(k,o,i,x);e.global&&f("ajaxSuccess",[x,e])}function d(){e.complete&&e.complete.call(k,x,i);e.global&&f("ajaxComplete",[x,e]);e.global&&!--c.active&&c.event.trigger("ajaxStop")}function f(q,p){(e.context?c(e.context):c.event).trigger(q,p)}var e=c.extend(true,{},c.ajaxSettings,a),j,i,o,k=a&&a.context||e,n=e.type.toUpperCase();if(e.data&&e.processData&&typeof e.data!=="string")e.data=c.param(e.data,e.traditional);if(e.dataType==="jsonp"){if(n==="GET")N.test(e.url)||(e.url+=(ka.test(e.url)? +"&":"?")+(e.jsonp||"callback")+"=?");else if(!e.data||!N.test(e.data))e.data=(e.data?e.data+"&":"")+(e.jsonp||"callback")+"=?";e.dataType="json"}if(e.dataType==="json"&&(e.data&&N.test(e.data)||N.test(e.url))){j=e.jsonpCallback||"jsonp"+sb++;if(e.data)e.data=(e.data+"").replace(N,"="+j+"$1");e.url=e.url.replace(N,"="+j+"$1");e.dataType="script";A[j]=A[j]||function(q){o=q;b();d();A[j]=w;try{delete A[j]}catch(p){}z&&z.removeChild(C)}}if(e.dataType==="script"&&e.cache===null)e.cache=false;if(e.cache=== +false&&n==="GET"){var r=J(),u=e.url.replace(wb,"$1_="+r+"$2");e.url=u+(u===e.url?(ka.test(e.url)?"&":"?")+"_="+r:"")}if(e.data&&n==="GET")e.url+=(ka.test(e.url)?"&":"?")+e.data;e.global&&!c.active++&&c.event.trigger("ajaxStart");r=(r=xb.exec(e.url))&&(r[1]&&r[1]!==location.protocol||r[2]!==location.host);if(e.dataType==="script"&&n==="GET"&&r){var z=s.getElementsByTagName("head")[0]||s.documentElement,C=s.createElement("script");C.src=e.url;if(e.scriptCharset)C.charset=e.scriptCharset;if(!j){var B= +false;C.onload=C.onreadystatechange=function(){if(!B&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){B=true;b();d();C.onload=C.onreadystatechange=null;z&&C.parentNode&&z.removeChild(C)}}}z.insertBefore(C,z.firstChild);return w}var E=false,x=e.xhr();if(x){e.username?x.open(n,e.url,e.async,e.username,e.password):x.open(n,e.url,e.async);try{if(e.data||a&&a.contentType)x.setRequestHeader("Content-Type",e.contentType);if(e.ifModified){c.lastModified[e.url]&&x.setRequestHeader("If-Modified-Since", +c.lastModified[e.url]);c.etag[e.url]&&x.setRequestHeader("If-None-Match",c.etag[e.url])}r||x.setRequestHeader("X-Requested-With","XMLHttpRequest");x.setRequestHeader("Accept",e.dataType&&e.accepts[e.dataType]?e.accepts[e.dataType]+", */*":e.accepts._default)}catch(ga){}if(e.beforeSend&&e.beforeSend.call(k,x,e)===false){e.global&&!--c.active&&c.event.trigger("ajaxStop");x.abort();return false}e.global&&f("ajaxSend",[x,e]);var g=x.onreadystatechange=function(q){if(!x||x.readyState===0||q==="abort"){E|| +d();E=true;if(x)x.onreadystatechange=c.noop}else if(!E&&x&&(x.readyState===4||q==="timeout")){E=true;x.onreadystatechange=c.noop;i=q==="timeout"?"timeout":!c.httpSuccess(x)?"error":e.ifModified&&c.httpNotModified(x,e.url)?"notmodified":"success";var p;if(i==="success")try{o=c.httpData(x,e.dataType,e)}catch(v){i="parsererror";p=v}if(i==="success"||i==="notmodified")j||b();else c.handleError(e,x,i,p);d();q==="timeout"&&x.abort();if(e.async)x=null}};try{var h=x.abort;x.abort=function(){x&&h.call(x); +g("abort")}}catch(l){}e.async&&e.timeout>0&&setTimeout(function(){x&&!E&&g("timeout")},e.timeout);try{x.send(n==="POST"||n==="PUT"||n==="DELETE"?e.data:null)}catch(m){c.handleError(e,x,null,m);d()}e.async||g();return x}},handleError:function(a,b,d,f){if(a.error)a.error.call(a.context||a,b,d,f);if(a.global)(a.context?c(a.context):c.event).trigger("ajaxError",[b,a,f])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status=== +1223||a.status===0}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),f=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(f)c.etag[b]=f;return a.status===304||a.status===0},httpData:function(a,b,d){var f=a.getResponseHeader("content-type")||"",e=b==="xml"||!b&&f.indexOf("xml")>=0;a=e?a.responseXML:a.responseText;e&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b=== +"json"||!b&&f.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&f.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function d(i,o){if(c.isArray(o))c.each(o,function(k,n){b||/\[\]$/.test(i)?f(i,n):d(i+"["+(typeof n==="object"||c.isArray(n)?k:"")+"]",n)});else!b&&o!=null&&typeof o==="object"?c.each(o,function(k,n){d(i+"["+k+"]",n)}):f(i,o)}function f(i,o){o=c.isFunction(o)?o():o;e[e.length]=encodeURIComponent(i)+"="+encodeURIComponent(o)}var e=[];if(b===w)b=c.ajaxSettings.traditional; +if(c.isArray(a)||a.jquery)c.each(a,function(){f(this.name,this.value)});else for(var j in a)d(j,a[j]);return e.join("&").replace(yb,"+")}});var la={},Ab=/toggle|show|hide/,Bb=/^([+-]=)?([\d+-.]+)(.*)$/,W,va=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a||a===0)return this.animate(K("show",3),a,b);else{a=0;for(b=this.length;a").appendTo("body");f=e.css("display");if(f==="none")f="block";e.remove();la[d]=f}c.data(this[a],"olddisplay",f)}}a=0;for(b=this.length;a=0;f--)if(d[f].elem===this){b&&d[f](true);d.splice(f,1)}});b||this.dequeue();return this}});c.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,f){return this.animate(b,d,f)}});c.extend({speed:function(a,b,d){var f=a&&typeof a==="object"?a:{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};f.duration=c.fx.off?0:typeof f.duration=== +"number"?f.duration:c.fx.speeds[f.duration]||c.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==false&&c(this).dequeue();c.isFunction(f.old)&&f.old.call(this)};return f},easing:{linear:function(a,b,d,f){return d+f*a},swing:function(a,b,d,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]|| +c.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function f(j){return e.step(j)}this.startTime=J();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start; +this.pos=this.state=0;var e=this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!W)W=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=J(),d=true;if(a||b>=this.options.duration+this.startTime){this.now= +this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim)if(this.options.curAnim[f]!==true)d=false;if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var e in this.options.curAnim)c.style(this.elem, +e,this.options.orig[e]);this.options.complete.call(this.elem)}return false}else{e=b-this.startTime;this.state=e/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b
    "; +a.insertBefore(b,a.firstChild);d=b.firstChild;f=d.firstChild;e=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==5;this.doesAddBorderForTableAndCells=e.offsetTop===5;f.style.position="fixed";f.style.top="20px";this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==j;a.removeChild(b); +c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,"marginTop",true))||0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS(a,"position")))a.style.position="relative";var f=c(a),e=f.offset(),j=parseInt(c.curCSS(a,"top",true),10)||0,i=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a, +d,e);d={top:b.top-e.top+j,left:b.left-e.left+i};"using"in b?b.using.call(a,d):f.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;f.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;f.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top- +f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||s.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(f){var e=this[0],j;if(!e)return null;if(f!==w)return this.each(function(){if(j=wa(this))j.scrollTo(!a?f:c(j).scrollLeft(),a?f:c(j).scrollTop());else this[d]=f});else return(j=wa(e))?"pageXOffset"in j?j[a?"pageYOffset": +"pageXOffset"]:c.support.boxModel&&j.document.documentElement[d]||j.document.body[d]:e[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],d,false,"padding"):null};c.fn["outer"+b]=function(f){return this[0]?c.css(this[0],d,false,f?"margin":"border"):null};c.fn[d]=function(f){var e=this[0];if(!e)return f==null?null:this;if(c.isFunction(f))return this.each(function(j){var i=c(this);i[d](f.call(this,j,i[d]()))});return"scrollTo"in +e&&e.document?e.document.compatMode==="CSS1Compat"&&e.document.documentElement["client"+b]||e.document.body["client"+b]:e.nodeType===9?Math.max(e.documentElement["client"+b],e.body["scroll"+b],e.documentElement["scroll"+b],e.body["offset"+b],e.documentElement["offset"+b]):f===w?c.css(e,d):this.css(d,typeof f==="string"?f:f+"px")}});A.jQuery=A.$=c})(window); +(function(c){function p(d,b,a){var e=this,l=d.add(this),h=d.find(a.tabs),i=b.jquery?b:d.children(b),j;h.length||(h=d.children());i.length||(i=d.parent().find(b));i.length||(i=c(b));c.extend(this,{click:function(f,g){var k=h.eq(f);if(typeof f=="string"&&f.replace("#","")){k=h.filter("[href*="+f.replace("#","")+"]");f=Math.max(h.index(k),0)}if(a.rotate){var n=h.length-1;if(f<0)return e.click(n,g);if(f>n)return e.click(0,g)}if(!k.length){if(j>=0)return e;f=a.initialIndex;k=h.eq(f)}if(f===j)return e; +g=g||c.Event();g.type="onBeforeClick";l.trigger(g,[f]);if(!g.isDefaultPrevented()){o[a.effect].call(e,f,function(){g.type="onClick";l.trigger(g,[f])});j=f;h.removeClass(a.current);k.addClass(a.current);return e}},getConf:function(){return a},getTabs:function(){return h},getPanes:function(){return i},getCurrentPane:function(){return i.eq(j)},getCurrentTab:function(){return h.eq(j)},getIndex:function(){return j},next:function(){return e.click(j+1)},prev:function(){return e.click(j-1)},destroy:function(){h.unbind(a.event).removeClass(a.current); +i.find("a[href^=#]").unbind("click.T");return e}});c.each("onBeforeClick,onClick".split(","),function(f,g){c.isFunction(a[g])&&c(e).bind(g,a[g]);e[g]=function(k){k&&c(e).bind(g,k);return e}});if(a.history&&c.fn.history){c.tools.history.init(h);a.event="history"}h.each(function(f){c(this).bind(a.event,function(g){e.click(f,g);return g.preventDefault()})});i.find("a[href^=#]").bind("click.T",function(f){e.click(c(this).attr("href"),f)});if(location.hash&&a.tabs=="a"&&d.find("[href="+location.hash+"]").length)e.click(location.hash); +else if(a.initialIndex===0||a.initialIndex>0)e.click(a.initialIndex)}c.tools=c.tools||{version:"1.2.5"};c.tools.tabs={conf:{tabs:"a",current:"current",onBeforeClick:null,onClick:null,effect:"default",initialIndex:0,event:"click",rotate:false,history:false},addEffect:function(d,b){o[d]=b}};var o={"default":function(d,b){this.getPanes().hide().eq(d).show();b.call()},fade:function(d,b){var a=this.getConf(),e=a.fadeOutSpeed,l=this.getPanes();e?l.fadeOut(e):l.hide();l.eq(d).fadeIn(a.fadeInSpeed,b)},slide:function(d, +b){this.getPanes().slideUp(200);this.getPanes().eq(d).slideDown(400,b)},ajax:function(d,b){this.getPanes().eq(0).load(this.getTabs().eq(d).attr("href"),b)}},m;c.tools.tabs.addEffect("horizontal",function(d,b){m||(m=this.getPanes().eq(0).width());this.getCurrentPane().animate({width:0},function(){c(this).hide()});this.getPanes().eq(d).animate({width:m},function(){c(this).show();b.call()})});c.fn.tabs=function(d,b){var a=this.data("tabs");if(a){a.destroy();this.removeData("tabs")}if(c.isFunction(b))b= +{onBeforeClick:b};b=c.extend({},c.tools.tabs.conf,b);this.each(function(){a=new p(c(this),d,b);c(this).data("tabs",a)});return b.api?a:this}})(jQuery); +(function(f){function p(a,b,c){var h=c.relative?a.position().top:a.offset().top,d=c.relative?a.position().left:a.offset().left,i=c.position[0];h-=b.outerHeight()-c.offset[0];d+=a.outerWidth()+c.offset[1];if(/iPad/i.test(navigator.userAgent))h-=f(window).scrollTop();var j=b.outerHeight()+a.outerHeight();if(i=="center")h+=j/2;if(i=="bottom")h+=j;i=c.position[1];a=b.outerWidth()+a.outerWidth();if(i=="center")d-=a/2;if(i=="left")d-=a;return{top:h,left:d}}function u(a,b){var c=this,h=a.add(c),d,i=0,j= +0,m=a.attr("title"),q=a.attr("data-tooltip"),r=o[b.effect],l,s=a.is(":input"),v=s&&a.is(":checkbox, :radio, select, :button, :submit"),t=a.attr("type"),k=b.events[t]||b.events[s?v?"widget":"input":"def"];if(!r)throw'Nonexistent effect "'+b.effect+'"';k=k.split(/,\s*/);if(k.length!=2)throw"Tooltip: bad events configuration for "+t;a.bind(k[0],function(e){clearTimeout(i);if(b.predelay)j=setTimeout(function(){c.show(e)},b.predelay);else c.show(e)}).bind(k[1],function(e){clearTimeout(j);if(b.delay)i= +setTimeout(function(){c.hide(e)},b.delay);else c.hide(e)});if(m&&b.cancelDefault){a.removeAttr("title");a.data("title",m)}f.extend(c,{show:function(e){if(!d){if(q)d=f(q);else if(b.tip)d=f(b.tip).eq(0);else if(m)d=f(b.layout).addClass(b.tipClass).appendTo(document.body).hide().append(m);else{d=a.next();d.length||(d=a.parent().next())}if(!d.length)throw"Cannot find tooltip for "+a;}if(c.isShown())return c;d.stop(true,true);var g=p(a,d,b);b.tip&&d.html(a.data("title"));e=e||f.Event();e.type="onBeforeShow"; +h.trigger(e,[g]);if(e.isDefaultPrevented())return c;g=p(a,d,b);d.css({position:"absolute",top:g.top,left:g.left});l=true;r[0].call(c,function(){e.type="onShow";l="full";h.trigger(e)});g=b.events.tooltip.split(/,\s*/);if(!d.data("__set")){d.bind(g[0],function(){clearTimeout(i);clearTimeout(j)});g[1]&&!a.is("input:not(:checkbox, :radio), textarea")&&d.bind(g[1],function(n){n.relatedTarget!=a[0]&&a.trigger(k[1].split(" ")[0])});d.data("__set",true)}return c},hide:function(e){if(!d||!c.isShown())return c; +e=e||f.Event();e.type="onBeforeHide";h.trigger(e);if(!e.isDefaultPrevented()){l=false;o[b.effect][1].call(c,function(){e.type="onHide";h.trigger(e)});return c}},isShown:function(e){return e?l=="full":l},getConf:function(){return b},getTip:function(){return d},getTrigger:function(){return a}});f.each("onHide,onBeforeShow,onShow,onBeforeHide".split(","),function(e,g){f.isFunction(b[g])&&f(c).bind(g,b[g]);c[g]=function(n){n&&f(c).bind(g,n);return c}})}f.tools=f.tools||{version:"1.2.5"};f.tools.tooltip= +{conf:{effect:"toggle",fadeOutSpeed:"fast",predelay:0,delay:30,opacity:1,tip:0,position:["top","center"],offset:[0,0],relative:false,cancelDefault:true,events:{def:"mouseenter,mouseleave",input:"focus,blur",widget:"focus mouseenter,blur mouseleave",tooltip:"mouseenter,mouseleave"},layout:"
    ",tipClass:"tooltip"},addEffect:function(a,b,c){o[a]=[b,c]}};var o={toggle:[function(a){var b=this.getConf(),c=this.getTip();b=b.opacity;b<1&&c.css({opacity:b});c.show();a.call()},function(a){this.getTip().hide(); +a.call()}],fade:[function(a){var b=this.getConf();this.getTip().fadeTo(b.fadeInSpeed,b.opacity,a)},function(a){this.getTip().fadeOut(this.getConf().fadeOutSpeed,a)}]};f.fn.tooltip=function(a){var b=this.data("tooltip");if(b)return b;a=f.extend(true,{},f.tools.tooltip.conf,a);if(typeof a.position=="string")a.position=a.position.split(/,?\s/);this.each(function(){b=new u(f(this),a);f(this).data("tooltip",b)});return a.api?b:this}})(jQuery); +(function(a){function t(d,b){var c=this,j=d.add(c),o=a(window),k,f,m,g=a.tools.expose&&(b.mask||b.expose),n=Math.random().toString().slice(10);if(g){if(typeof g=="string")g={color:g};g.closeOnClick=g.closeOnEsc=false}var p=b.target||d.attr("rel");f=p?a(p):d;if(!f.length)throw"Could not find Overlay: "+p;d&&d.index(f)==-1&&d.click(function(e){c.load(e);return e.preventDefault()});a.extend(c,{load:function(e){if(c.isOpened())return c;var h=q[b.effect];if(!h)throw'Overlay: cannot find effect : "'+b.effect+ +'"';b.oneInstance&&a.each(s,function(){this.close(e)});e=e||a.Event();e.type="onBeforeLoad";j.trigger(e);if(e.isDefaultPrevented())return c;m=true;g&&a(f).expose(g);var i=b.top,r=b.left,u=f.outerWidth({margin:true}),v=f.outerHeight({margin:true});if(typeof i=="string")i=i=="center"?Math.max((o.height()-v)/2,0):parseInt(i,10)/100*o.height();if(r=="center")r=Math.max((o.width()-u)/2,0);h[0].call(c,{top:i,left:r},function(){if(m){e.type="onLoad";j.trigger(e)}});g&&b.closeOnClick&&a.mask.getMask().one("click", +c.close);b.closeOnClick&&a(document).bind("click."+n,function(l){a(l.target).parents(f).length||c.close(l)});b.closeOnEsc&&a(document).bind("keydown."+n,function(l){l.keyCode==27&&c.close(l)});return c},close:function(e){if(!c.isOpened())return c;e=e||a.Event();e.type="onBeforeClose";j.trigger(e);if(!e.isDefaultPrevented()){m=false;q[b.effect][1].call(c,function(){e.type="onClose";j.trigger(e)});a(document).unbind("click."+n).unbind("keydown."+n);g&&a.mask.close();return c}},getOverlay:function(){return f}, +getTrigger:function(){return d},getClosers:function(){return k},isOpened:function(){return m},getConf:function(){return b}});a.each("onBeforeLoad,onStart,onLoad,onBeforeClose,onClose".split(","),function(e,h){a.isFunction(b[h])&&a(c).bind(h,b[h]);c[h]=function(i){i&&a(c).bind(h,i);return c}});k=f.find(b.close||".close");if(!k.length&&!b.close){k=a('');f.prepend(k)}k.click(function(e){c.close(e)});b.load&&c.load()}a.tools=a.tools||{version:"1.2.5"};a.tools.overlay={addEffect:function(d, +b,c){q[d]=[b,c]},conf:{close:null,closeOnClick:true,closeOnEsc:true,closeSpeed:"fast",effect:"default",fixed:!a.browser.msie||a.browser.version>6,left:"center",load:false,mask:null,oneInstance:true,speed:"normal",target:null,top:"10%"}};var s=[],q={};a.tools.overlay.addEffect("default",function(d,b){var c=this.getConf(),j=a(window);if(!c.fixed){d.top+=j.scrollTop();d.left+=j.scrollLeft()}d.position=c.fixed?"fixed":"absolute";this.getOverlay().css(d).fadeIn(c.speed,b)},function(d){this.getOverlay().fadeOut(this.getConf().closeSpeed, +d)});a.fn.overlay=function(d){var b=this.data("overlay");if(b)return b;if(a.isFunction(d))d={onBeforeLoad:d};d=a.extend(true,{},a.tools.overlay.conf,d);this.each(function(){b=new t(a(this),d);s.push(b);a(this).data("overlay",b)});return d.api?b:this}})(jQuery); +(function(e){function p(f,c){var b=e(c);return b.length<2?b:f.parent().find(c)}function u(f,c){var b=this,n=f.add(b),g=f.children(),l=0,j=c.vertical;k||(k=b);if(g.length>1)g=e(c.items,f);e.extend(b,{getConf:function(){return c},getIndex:function(){return l},getSize:function(){return b.getItems().size()},getNaviButtons:function(){return o.add(q)},getRoot:function(){return f},getItemWrap:function(){return g},getItems:function(){return g.children(c.item).not("."+c.clonedClass)},move:function(a,d){return b.seekTo(l+ +a,d)},next:function(a){return b.move(1,a)},prev:function(a){return b.move(-1,a)},begin:function(a){return b.seekTo(0,a)},end:function(a){return b.seekTo(b.getSize()-1,a)},focus:function(){return k=b},addItem:function(a){a=e(a);if(c.circular){g.children("."+c.clonedClass+":last").before(a);g.children("."+c.clonedClass+":first").replaceWith(a.clone().addClass(c.clonedClass))}else g.append(a);n.trigger("onAddItem",[a]);return b},seekTo:function(a,d,h){a.jquery||(a*=1);if(c.circular&&a===0&&l==-1&&d!== +0)return b;if(!c.circular&&a<0||a>b.getSize()||a<-1)return b;var i=a;if(a.jquery)a=b.getItems().index(a);else i=b.getItems().eq(a);var r=e.Event("onBeforeSeek");if(!h){n.trigger(r,[a,d]);if(r.isDefaultPrevented()||!i.length)return b}i=j?{top:-i.position().top}:{left:-i.position().left};l=a;k=b;if(d===undefined)d=c.speed;g.animate(i,d,c.easing,h||function(){n.trigger("onSeek",[a])});return b}});e.each(["onBeforeSeek","onSeek","onAddItem"],function(a,d){e.isFunction(c[d])&&e(b).bind(d,c[d]);b[d]=function(h){h&& +e(b).bind(d,h);return b}});if(c.circular){var s=b.getItems().slice(-1).clone().prependTo(g),t=b.getItems().eq(1).clone().appendTo(g);s.add(t).addClass(c.clonedClass);b.onBeforeSeek(function(a,d,h){if(!a.isDefaultPrevented())if(d==-1){b.seekTo(s,h,function(){b.end(0)});return a.preventDefault()}else d==b.getSize()&&b.seekTo(t,h,function(){b.begin(0)})});b.seekTo(0,0,function(){})}var o=p(f,c.prev).click(function(){b.prev()}),q=p(f,c.next).click(function(){b.next()});if(!c.circular&&b.getSize()>1){b.onBeforeSeek(function(a, +d){setTimeout(function(){if(!a.isDefaultPrevented()){o.toggleClass(c.disabledClass,d<=0);q.toggleClass(c.disabledClass,d>=b.getSize()-1)}},1)});c.initialIndex||o.addClass(c.disabledClass)}c.mousewheel&&e.fn.mousewheel&&f.mousewheel(function(a,d){if(c.mousewheel){b.move(d<0?1:-1,c.wheelSpeed||50);return false}});if(c.touch){var m={};g[0].ontouchstart=function(a){a=a.touches[0];m.x=a.clientX;m.y=a.clientY};g[0].ontouchmove=function(a){if(a.touches.length==1&&!g.is(":animated")){var d=a.touches[0],h= +m.x-d.clientX;d=m.y-d.clientY;b[j&&d>0||!j&&h>0?"next":"prev"]();a.preventDefault()}}}c.keyboard&&e(document).bind("keydown.scrollable",function(a){if(!(!c.keyboard||a.altKey||a.ctrlKey||e(a.target).is(":input")))if(!(c.keyboard!="static"&&k!=b)){var d=a.keyCode;if(j&&(d==38||d==40)){b.move(d==38?-1:1);return a.preventDefault()}if(!j&&(d==37||d==39)){b.move(d==37?-1:1);return a.preventDefault()}}});c.initialIndex&&b.seekTo(c.initialIndex,0,function(){})}e.tools=e.tools||{version:"1.2.5"};e.tools.scrollable= +{conf:{activeClass:"active",circular:false,clonedClass:"cloned",disabledClass:"disabled",easing:"swing",initialIndex:0,item:null,items:".items",keyboard:true,mousewheel:false,next:".next",prev:".prev",speed:400,vertical:false,touch:true,wheelSpeed:0}};var k;e.fn.scrollable=function(f){var c=this.data("scrollable");if(c)return c;f=e.extend({},e.tools.scrollable.conf,f);this.each(function(){c=new u(e(this),f);e(this).data("scrollable",c)});return f.api?c:this}})(jQuery); diff --git a/public/js/modernizr.custom.js b/public/js/modernizr.custom.js new file mode 100644 index 0000000..6cc7ec8 --- /dev/null +++ b/public/js/modernizr.custom.js @@ -0,0 +1,4 @@ +/* Modernizr 2.5.3 (Custom Build) | MIT & BSD + * Build: http://www.modernizr.com/download/#-touch-shiv-addtest-teststyles-prefixes + */ +;window.Modernizr=function(a,b,c){function v(a){i.cssText=a}function w(a,b){return v(l.join(a+";")+(b||""))}function x(a,b){return typeof a===b}function y(a,b){return!!~(""+a).indexOf(b)}function z(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:x(f,"function")?f.bind(d||b):f}return!1}var d="2.5.3",e={},f=b.documentElement,g="modernizr",h=b.createElement(g),i=h.style,j,k={}.toString,l=" -webkit- -moz- -o- -ms- ".split(" "),m={},n={},o={},p=[],q=p.slice,r,s=function(a,c,d,e){var h,i,j,k=b.createElement("div"),l=b.body,m=l?l:b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:g+(d+1),k.appendChild(j);return h=["­",""].join(""),k.id=g,m.innerHTML+=h,m.appendChild(k),l||(m.style.background="",f.appendChild(m)),i=c(k,a),l?k.parentNode.removeChild(k):m.parentNode.removeChild(m),!!i},t={}.hasOwnProperty,u;!x(t,"undefined")&&!x(t.call,"undefined")?u=function(a,b){return t.call(a,b)}:u=function(a,b){return b in a&&x(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=q.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(q.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(q.call(arguments)))};return e});var A=function(c,d){var f=c.join(""),g=d.length;s(f,function(c,d){var f=b.styleSheets[b.styleSheets.length-1],h=f?f.cssRules&&f.cssRules[0]?f.cssRules[0].cssText:f.cssText||"":"",i=c.childNodes,j={};while(g--)j[i[g].id]=i[g];e.touch="ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch||(j.touch&&j.touch.offsetTop)===9},g,d)}([,["@media (",l.join("touch-enabled),("),g,")","{#touch{top:9px;position:absolute}}"].join("")],[,"touch"]);m.touch=function(){return e.touch};for(var B in m)u(m,B)&&(r=B.toLowerCase(),e[r]=m[B](),p.push((e[r]?"":"no-")+r));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)u(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,f.className+=" "+(b?"":"no-")+a,e[a]=b}return e},v(""),h=j=null,function(a,b){function g(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x",d.insertBefore(c.lastChild,d.firstChild)}function h(){var a=k.elements;return typeof a=="string"?a.split(" "):a}function i(a){var b={},c=a.createElement,e=a.createDocumentFragment,f=e();a.createElement=function(a){var e=(b[a]||(b[a]=c(a))).cloneNode();return k.shivMethods&&e.canHaveChildren&&!d.test(a)?f.appendChild(e):e},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+h().join().replace(/\w+/g,function(a){return b[a]=c(a),f.createElement(a),'c("'+a+'")'})+");return n}")(k,f)}function j(a){var b;return a.documentShived?a:(k.shivCSS&&!e&&(b=!!g(a,"article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio{display:none}canvas,video{display:inline-block;*display:inline;*zoom:1}[hidden]{display:none}audio[controls]{display:inline-block;*display:inline;*zoom:1}mark{background:#FF0;color:#000}")),f||(b=!i(a)),b&&(a.documentShived=b),a)}var c=a.html5||{},d=/^<|^(?:button|form|map|select|textarea)$/i,e,f;(function(){var a=b.createElement("a");a.innerHTML="",e="hidden"in a,f=a.childNodes.length==1||function(){try{b.createElement("a")}catch(a){return!0}var c=b.createDocumentFragment();return typeof c.cloneNode=="undefined"||typeof c.createDocumentFragment=="undefined"||typeof c.createElement=="undefined"}()})();var k={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:j};a.html5=k,j(b)}(this,b),e._version=d,e._prefixes=l,e.testStyles=s,e}(this,this.document); \ No newline at end of file diff --git a/public/js/superfish.js b/public/js/superfish.js new file mode 100644 index 0000000..85bd1b3 --- /dev/null +++ b/public/js/superfish.js @@ -0,0 +1,125 @@ + +/* + * Superfish v1.4.8 - jQuery menu widget + * Copyright (c) 2008 Joel Birch + * + * Dual licensed under the MIT and GPL licenses: + * http://www.opensource.org/licenses/mit-license.php + * http://www.gnu.org/licenses/gpl.html + * + * CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt + */ + +;(function($){ + $.fn.superfish = function(op){ + + var sf = $.fn.superfish, + c = sf.c, + $arrow = $([''].join('')), + over = function(){ + var $$ = $(this), menu = getMenu($$); + clearTimeout(menu.sfTimer); + $$.showSuperfishUl().siblings().hideSuperfishUl(); + }, + out = function(){ + var $$ = $(this), menu = getMenu($$), o = sf.op; + clearTimeout(menu.sfTimer); + menu.sfTimer=setTimeout(function(){ + o.retainPath=($.inArray($$[0],o.$path)>-1); + $$.hideSuperfishUl(); + if (o.$path.length && $$.parents(['li.',o.hoverClass].join('')).length<1){over.call(o.$path);} + },o.delay); + }, + getMenu = function($menu){ + var menu = $menu.parents(['ul.',c.menuClass,':first'].join(''))[0]; + sf.op = sf.o[menu.serial]; + return menu; + }, + addArrow = function($a){ $a.addClass(c.anchorClass).append($arrow.clone()); }; + + return this.each(function() { + var s = this.serial = sf.o.length; + var o = $.extend({},sf.defaults,op); + o.$path = $('li.'+o.pathClass,this).slice(0,o.pathLevels).each(function(){ + $(this).addClass([o.hoverClass,c.bcClass].join(' ')) + .filter('li:has(ul)').removeClass(o.pathClass); + }); + sf.o[s] = sf.op = o; + + $('li:has(ul)',this)[($.fn.hoverIntent && !o.disableHI) ? 'hoverIntent' : 'hover'](over,out).each(function() { + if (o.autoArrows) addArrow( $('>a:first-child',this) ); + }) + .not('.'+c.bcClass) + .hideSuperfishUl(); + + var $a = $('a',this); + $a.each(function(i){ + var $li = $a.eq(i).parents('li'); + $a.eq(i).focus(function(){over.call($li);}).blur(function(){out.call($li);}); + }); + o.onInit.call(this); + + }).each(function() { + var menuClasses = [c.menuClass]; + if (sf.op.dropShadows && !($.browser.msie && $.browser.version < 7)) menuClasses.push(c.shadowClass); + $(this).addClass(menuClasses.join(' ')); + }); + }; + + var sf = $.fn.superfish; + sf.o = []; + sf.op = {}; + sf.IE7fix = function(){ + var o = sf.op; + if ($.browser.msie && $.browser.version > 6 && o.dropShadows && o.animation.opacity!=undefined) + this.toggleClass(sf.c.shadowClass+'-off'); + }; + sf.c = { + bcClass : 'sf-breadcrumb', + menuClass : 'sf-js-enabled', + anchorClass : 'sf-with-ul', + arrowClass : 'sf-sub-indicator', + shadowClass : 'sf-shadow' + }; + sf.defaults = { + hoverClass : 'sfHover', + pathClass : 'overideThisToUse', + pathLevels : 1, + + delay : 800, + animation : {opacity:'show'}, + speed : 'normal', + autoArrows : true, + dropShadows : true, + disableHI : false, // true disables hoverIntent detection + onInit : function(){}, // callback functions + onBeforeShow: function(){}, + onShow : function(){}, + onHide : function(){} + }; + $.fn.extend({ + hideSuperfishUl : function(){ + var o = sf.op, + not = (o.retainPath===true) ? o.$path : ''; + o.retainPath = false; + var $ul = $(['li.',o.hoverClass].join(''),this).add(this).not(not).removeClass(o.hoverClass) + .find('>ul').hide().css('visibility','hidden'); + o.onHide.call($ul); + return this; + }, + showSuperfishUl : function(){ + var o = sf.op, + sh = sf.c.shadowClass+'-off', + $ul = this.addClass(o.hoverClass) + .find('>ul:hidden').css('visibility','visible'); + sf.IE7fix.call($ul); + o.onBeforeShow.call($ul); + $ul.animate(o.animation,o.speed,function(){ sf.IE7fix.call($ul); o.onShow.call($ul); }); + return this; + } + }); + +})(jQuery); + + +(function(a){a.fn.hoverIntent=function(b,c){var d={sensitivity:7,interval:100,timeout:0};d=a.extend(d,c?{over:b,out:c}:b);var e,f,g,h;var i=function(a){e=a.pageX;f=a.pageY};var j=function(b,c){c.hoverIntent_t=clearTimeout(c.hoverIntent_t);if(Math.abs(g-e)+Math.abs(h-f) day && diff < day * 2) { + return "yesterday"; + } + + if (diff < day * 365) { + return Math.floor(diff / day) + " days ago"; + } + + else { + return "over a year ago"; + } + }, // timeAgo() + + + /** + * The Twitalinkahashifyer! + * http://www.dustindiaz.com/basement/ify.html + * Eg: + * ify.clean('your tweet text'); + */ + ify: { + link: function(tweet) { + return tweet.replace(/\b(((https*\:\/\/)|www\.)[^\"\']+?)(([!?,.\)]+)?(\s|$))/g, function(link, m1, m2, m3, m4) { + var http = m2.match(/w/) ? 'http://' : ''; + return '' + ((m1.length > 25) ? m1.substr(0, 24) + '...' : m1) + '' + m4; + }); + }, + + at: function(tweet) { + return tweet.replace(/\B[@@]([a-zA-Z0-9_]{1,20})/g, function(m, username) { + return '@' + username + ''; + }); + }, + + list: function(tweet) { + return tweet.replace(/\B[@@]([a-zA-Z0-9_]{1,20}\/\w+)/g, function(m, userlist) { + return '@' + userlist + ''; + }); + }, + + hash: function(tweet) { + return tweet.replace(/(^|\s+)#(\w+)/gi, function(m, before, hash) { + return before + '#' + hash + ''; + }); + }, + + clean: function(tweet) { + return this.hash(this.at(this.list(this.link(tweet)))); + } + } // ify + + +}; + + + +$(document).ready(function () { + // start jqtweet! + JQTWEET.loadTweets(); +}); diff --git a/public/sliders/circle-navigation-effect/circle-effect.css b/public/sliders/circle-navigation-effect/circle-effect.css new file mode 100644 index 0000000..d1832f9 --- /dev/null +++ b/public/sliders/circle-navigation-effect/circle-effect.css @@ -0,0 +1,226 @@ +.cn-slideshow{ + width: 770px; + height: 415px; + position: relative; + background: #fff; +} + +.cn-loading{ + position: absolute; + z-index:999; + text-indent: -9000px; + opacity:0.6; + top:50%; + left:50%; + margin:-25px 0 0 -25px; + width:50px; + height:50px; + background: url(loading.gif) no-repeat center center; +} + +.cn-images{ + width: 100%; + height: 100%; + overflow: hidden; + position: relative; +} + +.cn-images img{ + position: absolute; + top: 0px; + left: 0px; + -webkit-border-radius: 0 0 7px 7px; + -moz-border-radius: 0 0 7px 7px; + border-radius: 0 0 7px 7px; + display: none; +} + +.cn-bar { + height: 80px; + position: absolute; + bottom: 0; + left: 0; + width: 100%; + color: #f8f8f8; + -webkit-border-radius: 0 0 7px 7px; + -moz-border-radius: 0 0 7px 7px; + border-radius: 0 0 7px 7px; + background-color: rgba(0,0,0,.9); + z-index: 999; +} + +.ie7 .cn-bar, +.ie8 .cn-bar { + background: url(../../images/mask.png) repeat; +} + +.cn-nav { + position: relative; + z-index: 999; +} + +.cn-nav-content{ + position: absolute; + top: 0px; + z-index: 999; + height: 100%; + right: 70px; + left: 70px; + overflow: hidden; +} + +.cn-nav-content div{ + float: left; + width: 130px; + color:#aaa; +} + +.cn-nav-content span{ + color:#777; +} + +.cn-nav-content div.cn-nav-content-current{ + text-align: center; + width: 280px; + position:absolute; + top:0px; + left:50%; + margin-left:-140px; +} + +.cn-nav-content h2{ + margin-top: .7em; + font-size: 1.25em; + color:#719806; +} + +.cn-nav-content-current span{ + color:#d0ab47; +} + +.cn-nav-content div.cn-nav-content-prev{ + margin-left: 20px; +} + +.cn-nav-content div.cn-nav-content-next{ + text-align: right; + margin-right: 20px; + float:right; +} + +.cn-nav-content div span{ + display: block; + color:#fff; + font-size: 1.833em; + padding-top: 20px; + font-weight: 100; + font-family: 'PT Sans Narrow', sans-serif; +} + +.cn-nav-content div strong { + display: block; + color:#fff; + padding-top: 18px; + font-weight: 100; +} + +.cn-nav > a{ + position: absolute; + top: 0px; + height: 80px; + width: 56px; + -webkit-border-radius: 1px 9px 0 5px; + -moz-border-radius: 1px 9px 0 5px; + border-radius: 1px 9px 0 5px; + background: rgb(243,243,243); /* Old browsers */ + background: -moz-linear-gradient(top, rgba(243,243,243,1) 0%, rgba(232,232,232,1) 100%); /* FF3.6+ */ + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(243,243,243,1)), color-stop(100%,rgba(232,232,232,1))); /* Chrome,Safari4+ */ + background: -webkit-linear-gradient(top, rgba(243,243,243,1) 0%,rgba(232,232,232,1) 100%); /* Chrome10+,Safari5.1+ */ + background: -o-linear-gradient(top, rgba(243,243,243,1) 0%,rgba(232,232,232,1) 100%); /* Opera 11.10+ */ + background: -ms-linear-gradient(top, rgba(243,243,243,1) 0%,rgba(232,232,232,1) 100%); /* IE10+ */ + background: linear-gradient(top, rgba(243,243,243,1) 0%,rgba(232,232,232,1) 100%); /* W3C */ + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f3f3f3', endColorstr='#e8e8e8',GradientType=0 ); /* IE6-9 */ +} + +.cn-nav > a.cn-nav-next { + -webkit-border-radius: 9px 1px 5px 0; + -moz-border-radius: 9px 1px 5px 0; + border-radius: 9px 1px 5px 0; +} + +a.cn-nav-prev{ + left: 0; +} + +a.cn-nav-next{ + right: 0; +} + +.cn-nav a span{ + width: 22px; + height: 36px; + display: block; + text-indent: -9000px; + cursor: pointer; + opacity: 0.9; + position: absolute; + top: 16px; + -webkit-transition: all 0.4s ease; + -moz-transition: all 0.4s ease; + -o-transition: all 0.4s ease; + -ms-transition: all 0.4s ease; + transition: all 0.4s ease; +} + +.cn-nav a.cn-nav-prev span { + left: 14px; + background: url(prev.png) no-repeat center center; +} + +.cn-nav a.cn-nav-next span { + right: 14px; + background: url(next.png) no-repeat center center; + +} + +.cn-nav-prev div { + top: 13px; + left: 63px; +} + +.cn-nav-next div { + top: 13px; + right: 63px; +} + +.cn-nav a div{ + width: 0px; + height: 0px; + position: absolute; + overflow: hidden; + background-size: 100% 100%; + background-position: center center; + background-repeat: no-repeat; + margin: 0px; + -moz-border-radius: 0px; + -webkit-border-radius: 0px; + border-radius: 0px; + -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; + transition: all 0.2s ease-out; + behavior: url(js/PIE.htc); +} + +.cn-nav a:hover span{ + opacity: 0.6; +} + +.cn-nav a:hover div{ + width: 99px; + height: 53px; + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + border-radius: 5px; +} \ No newline at end of file diff --git a/public/sliders/circle-navigation-effect/jquery.slideshow.js b/public/sliders/circle-navigation-effect/jquery.slideshow.js new file mode 100644 index 0000000..dd0181e --- /dev/null +++ b/public/sliders/circle-navigation-effect/jquery.slideshow.js @@ -0,0 +1 @@ +(function(a,b,c){b.Slideshow=function(a,c){this.$el=b(c);this.$preloader=b('
    Loading...
    ');this.$images=this.$el.find("div.cn-images > img").hide();this.imgCount=this.$images.length;this.isAnimating=false;this._init(a)};b.Slideshow.defaults={current:0};b.Slideshow.prototype={_init:function(a){this.options=b.extend(true,{},b.Slideshow.defaults,a);this._validate();this.current=this.options.current;this.$preloader.appendTo(this.$el);var c=this;this._preloadImages(function(){c.$preloader.hide();c.$images.eq(c.current).show();c.bar=new b.NavigationBar(c.imgCount,c._getStatus());c.bar.getElement().appendTo(c.$el);c._initEvents()})},_preloadImages:function(a){var c=0,d=this;this.$images.each(function(e){var f=b(this);b("").load(function(){++c;if(c===d.imgCount*2)a.call()}).attr("src",f.attr("src"));b("").load(function(){++c;if(c===d.imgCount*2)a.call()}).attr("src",f.data("thumb"))})},_validate:function(){if(this.options.current<0||this.options.current>=this.imgCount)this.options.current=0},_getStatus:function(){var a=this.$images.eq(this.current),b,c;this.current===0?c=this.$images.eq(this.imgCount-1):c=a.prev();this.current===this.imgCount-1?b=this.$images.eq(0):b=a.next();return{prevSource:c.data("thumb"),nextSource:b.data("thumb"),prevTitle:c.attr("title"),currentTitle:a.attr("title"),nextTitle:b.attr("title")}},_initEvents:function(){var a=this;this.bar.$navPrev.bind("click.slideshow",function(b){a._navigate("prev");return false});this.bar.$navNext.bind("click.slideshow",function(b){a._navigate("next");return false})},_navigate:function(a){if(this.isAnimating)return false;this.isAnimating=true;var c=this.$images.eq(this.current).css("z-index",998),d=this;a==="prev"?this.current===0?this.current=this.imgCount-1:--this.current:this.current===this.imgCount-1?this.current=0:++this.current;this.$images.eq(this.current).show();c.fadeOut(400,function(){b(this).css("z-index",1);d.isAnimating=false});this.bar.set(this._getStatus())}};b.NavigationBar=function(a,b){this._init(a,b)};b.NavigationBar.prototype={_init:function(a,c){this.$el=b("#barTmpl").tmpl(c);this.$navPrev=this.$el.find("a.cn-nav-prev");this.$thumbPrev=this.$navPrev.children("div");this.$navNext=this.$el.find("a.cn-nav-next");this.$thumbNext=this.$navNext.children("div");this.$statusPrev=this.$el.find("div.cn-nav-content-prev > h3");this.$statusCurrent=this.$el.find("div.cn-nav-content-current > h2");this.$statusNext=this.$el.find("div.cn-nav-content-next > h3");if(a<=1){this.$navPrev.hide();this.$navNext.hide();this.$statusPrev.parent().hide();this.$statusNext.parent().hide()}},getElement:function(){return this.$el},set:function(a){this.$thumbPrev.css("background-image","url("+a.prevSource+")");this.$thumbNext.css("background-image","url("+a.nextSource+")");this.$statusPrev.text(a.prevTitle);this.$statusCurrent.text(a.currentTitle);this.$statusNext.text(a.nextTitle)}};var d=function(a){if(this.console){console.error(a)}};b.fn.slideshow=function(a){if(typeof a==="string"){var c=Array.prototype.slice.call(arguments,1);this.each(function(){var e=b.data(this,"slideshow");if(!e){d("cannot call methods on slideshow prior to initialization; "+"attempted to call method '"+a+"'");return}if(!b.isFunction(e[a])||a.charAt(0)==="_"){d("no such method '"+a+"' for slideshow instance");return}e[a].apply(e,c)})}else{this.each(function(){var c=b.data(this,"slideshow");if(!c){b.data(this,"slideshow",new b.Slideshow(a,this))}})}return this}})(window,jQuery) \ No newline at end of file diff --git a/public/sliders/circle-navigation-effect/jquery.tmpl.min.js b/public/sliders/circle-navigation-effect/jquery.tmpl.min.js new file mode 100644 index 0000000..f08e81d --- /dev/null +++ b/public/sliders/circle-navigation-effect/jquery.tmpl.min.js @@ -0,0 +1 @@ +(function(a){var r=a.fn.domManip,d="_tmplitem",q=/^[^<]*(<[\w\W]+>)[^>]*$|\{\{\! /,b={},f={},e,p={key:0,data:{}},h=0,c=0,l=[];function g(e,d,g,i){var c={data:i||(d?d.data:{}),_wrap:d?d._wrap:null,tmpl:null,parent:d||null,nodes:[],calls:u,nest:w,wrap:x,html:v,update:t};e&&a.extend(c,e,{nodes:[],parent:d});if(g){c.tmpl=g;c._ctnt=c._ctnt||c.tmpl(a,c);c.key=++h;(l.length?f:b)[h]=c}return c}a.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(f,d){a.fn[f]=function(n){var g=[],i=a(n),k,h,m,l,j=this.length===1&&this[0].parentNode;e=b||{};if(j&&j.nodeType===11&&j.childNodes.length===1&&i.length===1){i[d](this[0]);g=this}else{for(h=0,m=i.length;h0?this.clone(true):this).get();a.fn[d].apply(a(i[h]),k);g=g.concat(k)}c=0;g=this.pushStack(g,f,i.selector)}l=e;e=null;a.tmpl.complete(l);return g}});a.fn.extend({tmpl:function(d,c,b){return a.tmpl(this[0],d,c,b)},tmplItem:function(){return a.tmplItem(this[0])},template:function(b){return a.template(b,this[0])},domManip:function(d,l,j){if(d[0]&&d[0].nodeType){var f=a.makeArray(arguments),g=d.length,i=0,h;while(i1)f[0]=[a.makeArray(d)];if(h&&c)f[2]=function(b){a.tmpl.afterManip(this,b,j)};r.apply(this,f)}else r.apply(this,arguments);c=0;!e&&a.tmpl.complete(b);return this}});a.extend({tmpl:function(d,h,e,c){var j,k=!c;if(k){c=p;d=a.template[d]||a.template(null,d);f={}}else if(!d){d=c.tmpl;b[c.key]=c;c.nodes=[];c.wrapped&&n(c,c.wrapped);return a(i(c,null,c.tmpl(a,c)))}if(!d)return[];if(typeof h==="function")h=h.call(c||{});e&&e.wrapped&&n(e,e.wrapped);j=a.isArray(h)?a.map(h,function(a){return a?g(e,c,d,a):null}):[g(e,c,d,h)];return k?a(i(c,null,j)):j},tmplItem:function(b){var c;if(b instanceof a)b=b[0];while(b&&b.nodeType===1&&!(c=a.data(b,"tmplItem"))&&(b=b.parentNode));return c||p},template:function(c,b){if(b){if(typeof b==="string")b=o(b);else if(b instanceof a)b=b[0]||{};if(b.nodeType)b=a.data(b,"tmpl")||a.data(b,"tmpl",o(b.innerHTML));return typeof c==="string"?(a.template[c]=b):b}return c?typeof c!=="string"?a.template(null,c):a.template[c]||a.template(null,q.test(c)?c:a(c)):null},encode:function(a){return(""+a).split("<").join("<").split(">").join(">").split('"').join(""").split("'").join("'")}});a.extend(a.tmpl,{tag:{tmpl:{_default:{$2:"null"},open:"if($notnull_1){_=_.concat($item.nest($1,$2));}"},wrap:{_default:{$2:"null"},open:"$item.calls(_,$1,$2);_=[];",close:"call=$item.calls();_=call._.concat($item.wrap(call,_));"},each:{_default:{$2:"$index, $value"},open:"if($notnull_1){$.each($1a,function($2){with(this){",close:"}});}"},"if":{open:"if(($notnull_1) && $1a){",close:"}"},"else":{_default:{$1:"true"},open:"}else if(($notnull_1) && $1a){"},html:{open:"if($notnull_1){_.push($1a);}"},"=":{_default:{$1:"$data"},open:"if($notnull_1){_.push($.encode($1a));}"},"!":{open:""}},complete:function(){b={}},afterManip:function(f,b,d){var e=b.nodeType===11?a.makeArray(b.childNodes):b.nodeType===1?[b]:[];d.call(f,b);m(e);c++}});function i(e,g,f){var b,c=f?a.map(f,function(a){return typeof a==="string"?e.key?a.replace(/(<\w+)(?=[\s>])(?![^>]*_tmplitem)([^>]*)/g,"$1 "+d+'="'+e.key+'" $2'):a:i(a,e,a._ctnt)}):e;if(g)return c;c=c.join("");c.replace(/^\s*([^<\s][^<]*)?(<[\w\W]+>)([^>]*[^>\s])?\s*$/,function(f,c,e,d){b=a(e).get();m(b);if(c)b=j(c).concat(b);if(d)b=b.concat(j(d))});return b?b:j(c)}function j(c){var b=document.createElement("div");b.innerHTML=c;return a.makeArray(b.childNodes)}function o(b){return new Function("jQuery","$item","var $=jQuery,call,_=[],$data=$item.data;with($data){_.push('"+a.trim(b).replace(/([\\'])/g,"\\$1").replace(/[\r\t\n]/g," ").replace(/\$\{([^\}]*)\}/g,"{{= $1}}").replace(/\{\{(\/?)(\w+|.)(?:\(((?:[^\}]|\}(?!\}))*?)?\))?(?:\s+(.*?)?)?(\(((?:[^\}]|\}(?!\}))*?)\))?\s*\}\}/g,function(m,l,j,d,b,c,e){var i=a.tmpl.tag[j],h,f,g;if(!i)throw"Template command not found: "+j;h=i._default||[];if(c&&!/\w$/.test(b)){b+=c;c=""}if(b){b=k(b);e=e?","+k(e)+")":c?")":"";f=c?b.indexOf(".")>-1?b+c:"("+b+").call($item"+e:b;g=c?f:"(typeof("+b+")==='function'?("+b+").call($item):("+b+"))"}else g=f=h.$1||"null";d=k(d);return"');"+i[l?"close":"open"].split("$notnull_1").join(b?"typeof("+b+")!=='undefined' && ("+b+")!=null":"true").split("$1a").join(g).split("$1").join(f).split("$2").join(d?d.replace(/\s*([^\(]+)\s*(\((.*?)\))?/g,function(d,c,b,a){a=a?","+a+")":b?")":"";return a?"("+c+").call($item"+a:d}):h.$2||"")+"_.push('"})+"');}return _;")}function n(c,b){c._wrap=i(c,true,a.isArray(b)?b:[q.test(b)?b:a(b).html()]).join("")}function k(a){return a?a.replace(/\\'/g,"'").replace(/\\\\/g,"\\"):null}function s(b){var a=document.createElement("div");a.appendChild(b.cloneNode(true));return a.innerHTML}function m(o){var n="_"+c,k,j,l={},e,p,i;for(e=0,p=o.length;e=0;i--)m(j[i]);m(k)}function m(j){var p,i=j,k,e,m;if(m=j.getAttribute(d)){while(i.parentNode&&(i=i.parentNode).nodeType===1&&!(p=i.getAttribute(d)));if(p!==m){i=i.parentNode?i.nodeType===11?0:i.getAttribute(d)||0:0;if(!(e=b[m])){e=f[m];e=g(e,b[i]||f[i],null,true);e.key=++h;b[h]=e}c&&o(m)}j.removeAttribute(d)}else if(c&&(e=a.data(j,"tmplItem"))){o(e.key);b[e.key]=e;i=a.data(j.parentNode,"tmplItem");i=i?i.key:0}if(e){k=e;while(k&&k.key!=i){k.nodes.push(j);k=k.parent}delete e._ctnt;delete e._wrap;a.data(j,"tmplItem",e)}function o(a){a=a+n;e=l[a]=l[a]||g(e,b[e.parent.key+n]||e.parent,null,true)}}}function u(a,d,c,b){if(!a)return l.pop();l.push({_:a,tmpl:d,item:this,data:c,options:b})}function w(d,c,b){return a.tmpl(a.template(d),c,b,this)}function x(b,d){var c=b.options||{};c.wrapped=d;return a.tmpl(a.template(b.tmpl),b.data,c,b.item)}function v(d,c){var b=this._wrap;return a.map(a(a.isArray(b)?b.join(""):b).filter(d||"*"),function(a){return c?a.innerText||a.textContent:a.outerHTML||s(a)})}function t(){var b=this.nodes;a.tmpl(null,null,null,this).insertBefore(b[0]);a(b).remove()}})(jQuery) \ No newline at end of file diff --git a/public/sliders/circle-navigation-effect/loading.gif b/public/sliders/circle-navigation-effect/loading.gif new file mode 100644 index 0000000..1560b64 Binary files /dev/null and b/public/sliders/circle-navigation-effect/loading.gif differ diff --git a/public/sliders/circle-navigation-effect/next.png b/public/sliders/circle-navigation-effect/next.png new file mode 100644 index 0000000..0207b1e Binary files /dev/null and b/public/sliders/circle-navigation-effect/next.png differ diff --git a/public/sliders/circle-navigation-effect/prev.png b/public/sliders/circle-navigation-effect/prev.png new file mode 100644 index 0000000..7eef470 Binary files /dev/null and b/public/sliders/circle-navigation-effect/prev.png differ diff --git a/public/sliders/elegant-accordion/elegant-accordion.css b/public/sliders/elegant-accordion/elegant-accordion.css new file mode 100644 index 0000000..1930382 --- /dev/null +++ b/public/sliders/elegant-accordion/elegant-accordion.css @@ -0,0 +1,101 @@ +ul.accordion li { + background-repeat: no-repeat; + background-position: top left; +} +ul.accordion li.bg1 { + background-image:url(../../images/sliders/img_01.jpg); + background-position: -100px 0; +} +ul.accordion li.bg2 { + background-image:url(../../images/sliders/img_02.jpg); + background-position: -100px 0; +} +ul.accordion li.bg3 { + background-image:url(../../images/sliders/img_03.jpg); + background-position: -50px 0; +} +ul.accordion li.bg4 { + background-image:url(../../images/sliders/img_04.jpg); + background-position: -100px 0; +} +ul.accordion li.bg5 { + background-image:url(../../images/sliders/img_05.jpg); + background-position: -150px 0; +} + +.elegant-slider { + position: relative; + overflow:hidden; + margin:0 auto 2em; + width:770px; + -webkit-border-radius: 0 0 6px 6px; + -moz-border-radius: 0 0 6px 6px; + border-radius: 0 0 6px 6px; + -webkit-box-shadow: 0 10px 10px rgba(0,0,0,.05); + -moz-box-shadow: 0 10px 10px rgba(0,0,0,.05); + box-shadow: 0 10px 10px rgba(0,0,0,.05); +} + +.accordion { + clear: both; + overflow: hidden; + margin:0; + background:#fff; + list-style:none; +} + +.accordion li { + top: 0; + left: 0; + float: left; + height: 415px; + padding:0; + display: block; + background-color: #fff; + background-repeat: no-repeat; + background-position: center center; + position: relative; + overflow: hidden; + cursor: pointer; + margin: 0; +} + +.accordion div { + position: absolute; + bottom: 70px; + left: 0; + padding: 15px 45px 15px 45px; + opacity: 0; + filter: alpha(opacity=0); + background: url(pattern.png) repeat; +} + +.accordion div h3 { + padding: 0; + margin-bottom: .2em; + opacity: 1; + filter: alpha(opacity=100); + background: none; + font-weight: 100; + font-size: 1.833em; + color: #fff; + text-align: left; +} + +.accordion div p { + color: #bbb; + font-weight: normal; + text-transform: none; + letter-spacing: normal; +} + +.accordion div a { + text-transform: uppercase; + font-style: normal; + text-decoration: none; + color:#85b602; +} + +.accordion div a:hover { + text-decoration: underline; +} \ No newline at end of file diff --git a/public/sliders/elegant-accordion/jquery.elegantAccordion.js b/public/sliders/elegant-accordion/jquery.elegantAccordion.js new file mode 100644 index 0000000..2d284cb --- /dev/null +++ b/public/sliders/elegant-accordion/jquery.elegantAccordion.js @@ -0,0 +1,8 @@ +/* + Elegant Accordion v1.0 + + Originally by Mary Lou: http://tympanus.net/codrops/2010/04/26/elegant-accordion-with-jquery-and-css3/ + Plugin by Dean Sofer: http://www.deansofer.com/ +*/ + +(function(a){var b=0;a.eAccordion=function(c,d){var e=this;b++;e.runTimes=b;e.$el=a(c);e.currentPage=1;e.timer=null;e.playing=false;e.$el.data("ElegantAccordion",e);e.init=function(){e.options=a.extend({},a.eAccordion.defaults,d);e.$items=e.$el.children("li");e.$single=e.$items.last();e.$single.css("margin-right","-20px");if(e.options.height){e.$items.css("height",e.options.height)}e.pages=e.$items.length;var b;if(e.options.expandedWidth.indexOf("%")>-1){b=e.$el.width()*(parseInt(e.options.expandedWidth)/100)}else{b=parseInt(e.options.expandedWidth)}e.contractedWidth=(e.$el.width()-b)/(e.pages-1);if(e.options.autoPlay){e.playing=!e.options.startStopped;e.startStop(e.playing)}if(e.options.pauseOnHover&&e.options.autoPlay){e.$el.hover(function(){e.clearTimer()},function(){e.startStop(e.playing)})}e.$items.filter("[data-bg]").each(function(){var b=a(this);b.css("backgroundImage","url("+b.data("bg")+")")});e.$items.hover(function(){e.startStop(false);e.gotoPage(e.$items.index(this)+1)},function(){if(!e.clickStopped){if(e.options.autoPlay){e.startStop(true)}else if(e.options.neutralState){e.gotoNeutral()}}}).click(function(){e.startStop(false);e.clickStopped=true}).children("div").width(b);if(e.options.hashTags==true&&!e.gotoHash()||e.options.hashTags==false){e.gotoPage(1,false)}if(e.options.neutralState){e.neutralWidth=100/e.pages+"%";e.gotoNeutral(false)}};e.gotoPage=function(a,b){if(typeof a=="undefined"||a==null){a=1}if(e.options.stopAtEnd){if(a==e.pages)e.startStop(false)}if(a>e.pages)a=1;if(a<1)a=1;var c=e.$items.eq(a-1);duration=b!==false?e.options.animationTime:0;c.stop(true,true).animate({width:e.options.expandedWidth},duration,e.options.easing);c.children("h2").stop(true,true).animate({opacity:0},duration);c.children("div").stop(true,true).animate({opacity:1,marginBottom:0,paddingBottom:0},duration);$siblings=c.siblings();$siblings.stop(true,true).animate({width:e.contractedWidth},duration,e.options.easing);$siblings.children("h2").stop(true,true).animate({opacity:.9},duration);$siblings.children("div").stop(true,true).animate({opacity:0,marginBottom:"-"+e.options.bgHeight,paddingBottom:e.options.bgHeight},duration);e.currentPage=a};e.gotoNeutral=function(a){duration=a!==false?e.options.animationTime:0;e.$items.stop(true,true).animate({width:e.neutralWidth},duration,e.options.easing);e.$items.children("h2").stop(true,true).animate({opacity:.9},duration);e.$items.children("div").stop(true,true).animate({opacity:0,marginBottom:"-"+e.options.bgHeight,paddingBottom:e.options.bgHeight},duration)};e.goForward=function(){e.gotoPage(e.currentPage+1)};e.goBack=function(){e.gotoPage(e.currentPage-1)};e.gotoHash=function(){var a=window.location.hash.match(/^#?panel(\d+)-(\d+)$/);if(a){var b=parseInt(a[1]);if(b==e.runTimes){var c=parseInt(a[2]);var d=e.$items.filter(":eq("+c+")");if(d.length!=0){e.gotoPage(c,false);return true}}}return false};e.startStop=function(a){if(a!==true)a=false;e.playing=a;if(a){e.clearTimer();e.timer=window.setInterval(function(){e.goForward()},e.options.delay)}else{e.clearTimer()}};e.clearTimer=function(){if(e.timer)window.clearInterval(e.timer)};e.setHash=function(a){if(typeof window.location.hash!=="undefined"){if(window.location.hash!==a){window.location.hash=a}}else if(location.hash!==a){location.hash=a}return a};e.init()};a.eAccordion.defaults={easing:"swing",autoPlay:true,startStopped:false,stopAtEnd:false,delay:4e3,animationTime:100,hashTags:true,pauseOnHover:true,height:null,expandedWidth:"60%",neutralState:false,bgHeight:"0"};a.fn.eAccordion=function(b){if(typeof b=="object"){return this.each(function(c){new a.eAccordion(this,b)})}else if(typeof b=="number"){return this.each(function(c){var d=a(this).data("ElegantAccordion");if(d){d.gotoPage(b)}})}}})(jQuery) \ No newline at end of file diff --git a/public/sliders/elegant-accordion/pattern.png b/public/sliders/elegant-accordion/pattern.png new file mode 100644 index 0000000..7ce2637 Binary files /dev/null and b/public/sliders/elegant-accordion/pattern.png differ diff --git a/public/sliders/nivo-slider/default/arrows.png b/public/sliders/nivo-slider/default/arrows.png new file mode 100644 index 0000000..8f562bd Binary files /dev/null and b/public/sliders/nivo-slider/default/arrows.png differ diff --git a/public/sliders/nivo-slider/default/bullets.png b/public/sliders/nivo-slider/default/bullets.png new file mode 100644 index 0000000..74ca624 Binary files /dev/null and b/public/sliders/nivo-slider/default/bullets.png differ diff --git a/public/sliders/nivo-slider/default/divider.png b/public/sliders/nivo-slider/default/divider.png new file mode 100644 index 0000000..31469fb Binary files /dev/null and b/public/sliders/nivo-slider/default/divider.png differ diff --git a/public/sliders/nivo-slider/default/loading.gif b/public/sliders/nivo-slider/default/loading.gif new file mode 100644 index 0000000..1560b64 Binary files /dev/null and b/public/sliders/nivo-slider/default/loading.gif differ diff --git a/public/sliders/nivo-slider/default/mask.png b/public/sliders/nivo-slider/default/mask.png new file mode 100644 index 0000000..a96a72e Binary files /dev/null and b/public/sliders/nivo-slider/default/mask.png differ diff --git a/public/sliders/nivo-slider/jquery.nivo.slider.js b/public/sliders/nivo-slider/jquery.nivo.slider.js new file mode 100644 index 0000000..4ca087b --- /dev/null +++ b/public/sliders/nivo-slider/jquery.nivo.slider.js @@ -0,0 +1,694 @@ +/* + * jQuery Nivo Slider v2.7.1 + * http://nivo.dev7studios.com + * + * Copyright 2011, Gilbert Pellegrom + * Free to use and abuse under the MIT license. + * http://www.opensource.org/licenses/mit-license.php + * + * March 2010 + */ + +(function($) { + + var NivoSlider = function(element, options){ + //Defaults are below + var settings = $.extend({}, $.fn.nivoSlider.defaults, options); + + //Useful variables. Play carefully. + var vars = { + currentSlide: 0, + currentImage: '', + totalSlides: 0, + running: false, + paused: false, + stop: false + }; + + //Get this slider + var slider = $(element); + slider.data('nivo:vars', vars); + slider.css('position','relative'); + slider.addClass('nivoSlider'); + + //Find our slider children + var kids = slider.children(); + kids.each(function() { + var child = $(this); + var link = ''; + if(!child.is('img')){ + if(child.is('a')){ + child.addClass('nivo-imageLink'); + link = child; + } + child = child.find('img:first'); + } + //Get img width & height + var childWidth = child.width(); + if(childWidth == 0) childWidth = child.attr('width'); + var childHeight = child.height(); + if(childHeight == 0) childHeight = child.attr('height'); + //Resize the slider + if(childWidth > slider.width()){ + slider.width(childWidth); + } + if(childHeight > slider.height()){ + slider.height(childHeight); + } + if(link != ''){ + link.css('display','none'); + } + child.css('display','none'); + vars.totalSlides++; + }); + + //If randomStart + if(settings.randomStart){ + settings.startSlide = Math.floor(Math.random() * vars.totalSlides); + } + + //Set startSlide + if(settings.startSlide > 0){ + if(settings.startSlide >= vars.totalSlides) settings.startSlide = vars.totalSlides - 1; + vars.currentSlide = settings.startSlide; + } + + //Get initial image + if($(kids[vars.currentSlide]).is('img')){ + vars.currentImage = $(kids[vars.currentSlide]); + } else { + vars.currentImage = $(kids[vars.currentSlide]).find('img:first'); + } + + //Show initial link + if($(kids[vars.currentSlide]).is('a')){ + $(kids[vars.currentSlide]).css('display','block'); + } + + //Set first background + slider.css('background','url("'+ vars.currentImage.attr('src') +'") no-repeat'); + + //Create caption + slider.append( + $('

    ').css({ display:'none', opacity:settings.captionOpacity }) + ); + + // Cross browser default caption opacity + $('.nivo-caption', slider).css('opacity', 0).wrap('
    '); + + // Process caption function + var processCaption = function(settings){ + var nivoCaption = $('.nivo-caption', slider); + if(vars.currentImage.attr('title') != '' && vars.currentImage.attr('title') != undefined){ + var title = vars.currentImage.attr('title'); + if(title.substr(0,1) == '#') title = $(title).html(); + + if(nivoCaption.css('opacity') != 0){ + nivoCaption.find('p').stop().fadeTo(settings.animSpeed, 0, function(){ + $(this).html(title); + $(this).stop().fadeTo(settings.animSpeed, 1); + }); + } else { + nivoCaption.find('p').html(title); + } + nivoCaption.stop().fadeTo(settings.animSpeed, settings.captionOpacity); + } else { + nivoCaption.stop().fadeTo(settings.animSpeed, 0); + } + } + + //Process initial caption + processCaption(settings); + + //In the words of Super Mario "let's a go!" + var timer = 0; + if(!settings.manualAdvance && kids.length > 1){ + timer = setInterval(function(){ nivoRun(slider, kids, settings, false); }, settings.pauseTime); + } + + //Add Direction nav + if(settings.directionNav){ + slider.append(''); + + //Hide Direction nav + if(settings.directionNavHide){ + $('.nivo-directionNav', slider).hide(); + slider.hover(function(){ + $('.nivo-directionNav', slider).show(); + }, function(){ + $('.nivo-directionNav', slider).hide(); + }); + } + + $('a.nivo-prevNav', slider).live('click', function(){ + if(vars.running) return false; + clearInterval(timer); + timer = ''; + vars.currentSlide -= 2; + nivoRun(slider, kids, settings, 'prev'); + }); + + $('a.nivo-nextNav', slider).live('click', function(){ + if(vars.running) return false; + clearInterval(timer); + timer = ''; + nivoRun(slider, kids, settings, 'next'); + }); + } + + //Add Control nav + if(settings.controlNav){ + var nivoControl = $('
    '); + slider.append(nivoControl); + for(var i = 0; i < kids.length; i++){ + if(settings.controlNavThumbs){ + var child = kids.eq(i); + if(!child.is('img')){ + child = child.find('img:first'); + } + if (settings.controlNavThumbsFromRel) { + nivoControl.append(''); + } else { + nivoControl.append(''); + } + } else { + nivoControl.append(''+ (i + 1) +''); + } + + } + //Set initial active link + $('.nivo-controlNav a:eq('+ vars.currentSlide +')', slider).addClass('active'); + + $('.nivo-controlNav a', slider).live('click', function(){ + if(vars.running) return false; + if($(this).hasClass('active')) return false; + clearInterval(timer); + timer = ''; + slider.css('background','url("'+ vars.currentImage.attr('src') +'") no-repeat'); + vars.currentSlide = $(this).attr('rel') - 1; + nivoRun(slider, kids, settings, 'control'); + }); + } + + //Keyboard Navigation + if(settings.keyboardNav){ + $(window).keypress(function(event){ + //Left + if(event.keyCode == '37'){ + if(vars.running) return false; + clearInterval(timer); + timer = ''; + vars.currentSlide-=2; + nivoRun(slider, kids, settings, 'prev'); + } + //Right + if(event.keyCode == '39'){ + if(vars.running) return false; + clearInterval(timer); + timer = ''; + nivoRun(slider, kids, settings, 'next'); + } + }); + } + + //For pauseOnHover setting + if(settings.pauseOnHover){ + slider.hover(function(){ + vars.paused = true; + clearInterval(timer); + timer = ''; + }, function(){ + vars.paused = false; + //Restart the timer + if(timer == '' && !settings.manualAdvance){ + timer = setInterval(function(){ nivoRun(slider, kids, settings, false); }, settings.pauseTime); + } + }); + } + + //Event when Animation finishes + slider.bind('nivo:animFinished', function(){ + vars.running = false; + //Hide child links + $(kids).each(function(){ + if($(this).is('a')){ + $(this).css('display','none'); + } + }); + //Show current link + if($(kids[vars.currentSlide]).is('a')){ + $(kids[vars.currentSlide]).css('display','block'); + } + //Restart the timer + if(timer == '' && !vars.paused && !settings.manualAdvance){ + timer = setInterval(function(){ nivoRun(slider, kids, settings, false); }, settings.pauseTime); + } + //Trigger the afterChange callback + settings.afterChange.call(this); + }); + + // Add slices for slice animations + var createSlices = function(slider, settings, vars){ + for(var i = 0; i < settings.slices; i++){ + var sliceWidth = Math.round(slider.width()/settings.slices); + if(i == settings.slices-1){ + slider.append( + $('
    ').css({ + left:(sliceWidth*i)+'px', width:(slider.width()-(sliceWidth*i))+'px', + height:'0px', + opacity:'0', + background: 'url("'+ vars.currentImage.attr('src') +'") no-repeat -'+ ((sliceWidth + (i * sliceWidth)) - sliceWidth) +'px 0%' + }) + ); + } else { + slider.append( + $('
    ').css({ + left:(sliceWidth*i)+'px', width:sliceWidth+'px', + height:'0px', + opacity:'0', + background: 'url("'+ vars.currentImage.attr('src') +'") no-repeat -'+ ((sliceWidth + (i * sliceWidth)) - sliceWidth) +'px 0%' + }) + ); + } + } + } + + // Add boxes for box animations + var createBoxes = function(slider, settings, vars){ + var boxWidth = Math.round(slider.width()/settings.boxCols); + var boxHeight = Math.round(slider.height()/settings.boxRows); + + for(var rows = 0; rows < settings.boxRows; rows++){ + for(var cols = 0; cols < settings.boxCols; cols++){ + if(cols == settings.boxCols-1){ + slider.append( + $('
    ').css({ + opacity:0, + left:(boxWidth*cols)+'px', + top:(boxHeight*rows)+'px', + width:(slider.width()-(boxWidth*cols))+'px', + height:boxHeight+'px', + background: 'url("'+ vars.currentImage.attr('src') +'") no-repeat -'+ ((boxWidth + (cols * boxWidth)) - boxWidth) +'px -'+ ((boxHeight + (rows * boxHeight)) - boxHeight) +'px' + }) + ); + } else { + slider.append( + $('
    ').css({ + opacity:0, + left:(boxWidth*cols)+'px', + top:(boxHeight*rows)+'px', + width:boxWidth+'px', + height:boxHeight+'px', + background: 'url("'+ vars.currentImage.attr('src') +'") no-repeat -'+ ((boxWidth + (cols * boxWidth)) - boxWidth) +'px -'+ ((boxHeight + (rows * boxHeight)) - boxHeight) +'px' + }) + ); + } + } + } + } + + // Private run method + var nivoRun = function(slider, kids, settings, nudge){ + //Get our vars + var vars = slider.data('nivo:vars'); + + //Trigger the lastSlide callback + if(vars && (vars.currentSlide == vars.totalSlides - 1)){ + settings.lastSlide.call(this); + } + + // Stop + if((!vars || vars.stop) && !nudge) return false; + + //Trigger the beforeChange callback + settings.beforeChange.call(this); + + //Set current background before change + if(!nudge){ + slider.css('background','url("'+ vars.currentImage.attr('src') +'") no-repeat'); + } else { + if(nudge == 'prev'){ + slider.css('background','url("'+ vars.currentImage.attr('src') +'") no-repeat'); + } + if(nudge == 'next'){ + slider.css('background','url("'+ vars.currentImage.attr('src') +'") no-repeat'); + } + } + vars.currentSlide++; + //Trigger the slideshowEnd callback + if(vars.currentSlide == vars.totalSlides){ + vars.currentSlide = 0; + settings.slideshowEnd.call(this); + } + if(vars.currentSlide < 0) vars.currentSlide = (vars.totalSlides - 1); + //Set vars.currentImage + if($(kids[vars.currentSlide]).is('img')){ + vars.currentImage = $(kids[vars.currentSlide]); + } else { + vars.currentImage = $(kids[vars.currentSlide]).find('img:first'); + } + + //Set active links + if(settings.controlNav){ + $('.nivo-controlNav a', slider).removeClass('active'); + $('.nivo-controlNav a:eq('+ vars.currentSlide +')', slider).addClass('active'); + } + + //Process caption + processCaption(settings); + + // Remove any slices from last transition + $('.nivo-slice', slider).remove(); + + // Remove any boxes from last transition + $('.nivo-box', slider).remove(); + + var currentEffect = settings.effect; + //Generate random effect + if(settings.effect == 'random'){ + var anims = new Array('sliceDownRight','sliceDownLeft','sliceUpRight','sliceUpLeft','sliceUpDown','sliceUpDownLeft','fold','fade', + 'boxRandom','boxRain','boxRainReverse','boxRainGrow','boxRainGrowReverse'); + currentEffect = anims[Math.floor(Math.random()*(anims.length + 1))]; + if(currentEffect == undefined) currentEffect = 'fade'; + } + + //Run random effect from specified set (eg: effect:'fold,fade') + if(settings.effect.indexOf(',') != -1){ + var anims = settings.effect.split(','); + currentEffect = anims[Math.floor(Math.random()*(anims.length))]; + if(currentEffect == undefined) currentEffect = 'fade'; + } + + //Custom transition as defined by "data-transition" attribute + if(vars.currentImage.attr('data-transition')){ + currentEffect = vars.currentImage.attr('data-transition'); + } + + //Run effects + vars.running = true; + if(currentEffect == 'sliceDown' || currentEffect == 'sliceDownRight' || currentEffect == 'sliceDownLeft'){ + createSlices(slider, settings, vars); + var timeBuff = 0; + var i = 0; + var slices = $('.nivo-slice', slider); + if(currentEffect == 'sliceDownLeft') slices = $('.nivo-slice', slider)._reverse(); + + slices.each(function(){ + var slice = $(this); + slice.css({ 'top': '0px' }); + if(i == settings.slices-1){ + setTimeout(function(){ + slice.animate({ height:'100%', opacity:'1.0' }, settings.animSpeed, '', function(){ slider.trigger('nivo:animFinished'); }); + }, (100 + timeBuff)); + } else { + setTimeout(function(){ + slice.animate({ height:'100%', opacity:'1.0' }, settings.animSpeed); + }, (100 + timeBuff)); + } + timeBuff += 50; + i++; + }); + } + else if(currentEffect == 'sliceUp' || currentEffect == 'sliceUpRight' || currentEffect == 'sliceUpLeft'){ + createSlices(slider, settings, vars); + var timeBuff = 0; + var i = 0; + var slices = $('.nivo-slice', slider); + if(currentEffect == 'sliceUpLeft') slices = $('.nivo-slice', slider)._reverse(); + + slices.each(function(){ + var slice = $(this); + slice.css({ 'bottom': '0px' }); + if(i == settings.slices-1){ + setTimeout(function(){ + slice.animate({ height:'100%', opacity:'1.0' }, settings.animSpeed, '', function(){ slider.trigger('nivo:animFinished'); }); + }, (100 + timeBuff)); + } else { + setTimeout(function(){ + slice.animate({ height:'100%', opacity:'1.0' }, settings.animSpeed); + }, (100 + timeBuff)); + } + timeBuff += 50; + i++; + }); + } + else if(currentEffect == 'sliceUpDown' || currentEffect == 'sliceUpDownRight' || currentEffect == 'sliceUpDownLeft'){ + createSlices(slider, settings, vars); + var timeBuff = 0; + var i = 0; + var v = 0; + var slices = $('.nivo-slice', slider); + if(currentEffect == 'sliceUpDownLeft') slices = $('.nivo-slice', slider)._reverse(); + + slices.each(function(){ + var slice = $(this); + if(i == 0){ + slice.css('top','0px'); + i++; + } else { + slice.css('bottom','0px'); + i = 0; + } + + if(v == settings.slices-1){ + setTimeout(function(){ + slice.animate({ height:'100%', opacity:'1.0' }, settings.animSpeed, '', function(){ slider.trigger('nivo:animFinished'); }); + }, (100 + timeBuff)); + } else { + setTimeout(function(){ + slice.animate({ height:'100%', opacity:'1.0' }, settings.animSpeed); + }, (100 + timeBuff)); + } + timeBuff += 50; + v++; + }); + } + else if(currentEffect == 'fold'){ + createSlices(slider, settings, vars); + var timeBuff = 0; + var i = 0; + + $('.nivo-slice', slider).each(function(){ + var slice = $(this); + var origWidth = slice.width(); + slice.css({ top:'0px', height:'100%', width:'0px' }); + if(i == settings.slices-1){ + setTimeout(function(){ + slice.animate({ width:origWidth, opacity:'1.0' }, settings.animSpeed, '', function(){ slider.trigger('nivo:animFinished'); }); + }, (100 + timeBuff)); + } else { + setTimeout(function(){ + slice.animate({ width:origWidth, opacity:'1.0' }, settings.animSpeed); + }, (100 + timeBuff)); + } + timeBuff += 50; + i++; + }); + } + else if(currentEffect == 'fade'){ + createSlices(slider, settings, vars); + + var firstSlice = $('.nivo-slice:first', slider); + firstSlice.css({ + 'height': '100%', + 'width': slider.width() + 'px' + }); + + firstSlice.animate({ opacity:'1.0' }, (settings.animSpeed*2), '', function(){ slider.trigger('nivo:animFinished'); }); + } + else if(currentEffect == 'slideInRight'){ + createSlices(slider, settings, vars); + + var firstSlice = $('.nivo-slice:first', slider); + firstSlice.css({ + 'height': '100%', + 'width': '0px', + 'opacity': '1' + }); + + firstSlice.animate({ width: slider.width() + 'px' }, (settings.animSpeed*2), '', function(){ slider.trigger('nivo:animFinished'); }); + } + else if(currentEffect == 'slideInLeft'){ + createSlices(slider, settings, vars); + + var firstSlice = $('.nivo-slice:first', slider); + firstSlice.css({ + 'height': '100%', + 'width': '0px', + 'opacity': '1', + 'left': '', + 'right': '0px' + }); + + firstSlice.animate({ width: slider.width() + 'px' }, (settings.animSpeed*2), '', function(){ + // Reset positioning + firstSlice.css({ + 'left': '0px', + 'right': '' + }); + slider.trigger('nivo:animFinished'); + }); + } + else if(currentEffect == 'boxRandom'){ + createBoxes(slider, settings, vars); + + var totalBoxes = settings.boxCols * settings.boxRows; + var i = 0; + var timeBuff = 0; + + var boxes = shuffle($('.nivo-box', slider)); + boxes.each(function(){ + var box = $(this); + if(i == totalBoxes-1){ + setTimeout(function(){ + box.animate({ opacity:'1' }, settings.animSpeed, '', function(){ slider.trigger('nivo:animFinished'); }); + }, (100 + timeBuff)); + } else { + setTimeout(function(){ + box.animate({ opacity:'1' }, settings.animSpeed); + }, (100 + timeBuff)); + } + timeBuff += 20; + i++; + }); + } + else if(currentEffect == 'boxRain' || currentEffect == 'boxRainReverse' || currentEffect == 'boxRainGrow' || currentEffect == 'boxRainGrowReverse'){ + createBoxes(slider, settings, vars); + + var totalBoxes = settings.boxCols * settings.boxRows; + var i = 0; + var timeBuff = 0; + + // Split boxes into 2D array + var rowIndex = 0; + var colIndex = 0; + var box2Darr = new Array(); + box2Darr[rowIndex] = new Array(); + var boxes = $('.nivo-box', slider); + if(currentEffect == 'boxRainReverse' || currentEffect == 'boxRainGrowReverse'){ + boxes = $('.nivo-box', slider)._reverse(); + } + boxes.each(function(){ + box2Darr[rowIndex][colIndex] = $(this); + colIndex++; + if(colIndex == settings.boxCols){ + rowIndex++; + colIndex = 0; + box2Darr[rowIndex] = new Array(); + } + }); + + // Run animation + for(var cols = 0; cols < (settings.boxCols * 2); cols++){ + var prevCol = cols; + for(var rows = 0; rows < settings.boxRows; rows++){ + if(prevCol >= 0 && prevCol < settings.boxCols){ + /* Due to some weird JS bug with loop vars + being used in setTimeout, this is wrapped + with an anonymous function call */ + (function(row, col, time, i, totalBoxes) { + var box = $(box2Darr[row][col]); + var w = box.width(); + var h = box.height(); + if(currentEffect == 'boxRainGrow' || currentEffect == 'boxRainGrowReverse'){ + box.width(0).height(0); + } + if(i == totalBoxes-1){ + setTimeout(function(){ + box.animate({ opacity:'1', width:w, height:h }, settings.animSpeed/1.3, '', function(){ slider.trigger('nivo:animFinished'); }); + }, (100 + time)); + } else { + setTimeout(function(){ + box.animate({ opacity:'1', width:w, height:h }, settings.animSpeed/1.3); + }, (100 + time)); + } + })(rows, prevCol, timeBuff, i, totalBoxes); + i++; + } + prevCol--; + } + timeBuff += 100; + } + } + } + + // Shuffle an array + var shuffle = function(arr){ + for(var j, x, i = arr.length; i; j = parseInt(Math.random() * i), x = arr[--i], arr[i] = arr[j], arr[j] = x); + return arr; + } + + // For debugging + var trace = function(msg){ + if (this.console && typeof console.log != "undefined") + console.log(msg); + } + + // Start / Stop + this.stop = function(){ + if(!$(element).data('nivo:vars').stop){ + $(element).data('nivo:vars').stop = true; + trace('Stop Slider'); + } + } + + this.start = function(){ + if($(element).data('nivo:vars').stop){ + $(element).data('nivo:vars').stop = false; + trace('Start Slider'); + } + } + + //Trigger the afterLoad callback + settings.afterLoad.call(this); + + return this; + }; + + $.fn.nivoSlider = function(options) { + + return this.each(function(key, value){ + var element = $(this); + // Return early if this element already has a plugin instance + if (element.data('nivoslider')) return element.data('nivoslider'); + // Pass options to plugin constructor + var nivoslider = new NivoSlider(this, options); + // Store plugin object in this element's data + element.data('nivoslider', nivoslider); + }); + + }; + + //Default settings + $.fn.nivoSlider.defaults = { + effect: 'random', + slices: 15, + boxCols: 8, + boxRows: 4, + animSpeed: 500, + pauseTime: 3000, + startSlide: 0, + directionNav: true, + directionNavHide: true, + controlNav: true, + controlNavThumbs: false, + controlNavThumbsFromRel: false, + controlNavThumbsSearch: '.jpg', + controlNavThumbsReplace: '_thumb.jpg', + keyboardNav: true, + pauseOnHover: true, + manualAdvance: false, + captionOpacity: 0.8, + prevText: 'Prev', + nextText: 'Next', + randomStart: false, + beforeChange: function(){}, + afterChange: function(){}, + slideshowEnd: function(){}, + lastSlide: function(){}, + afterLoad: function(){} + }; + + $.fn._reverse = [].reverse; + +})(jQuery); \ No newline at end of file diff --git a/public/sliders/nivo-slider/nivo-slider.css b/public/sliders/nivo-slider/nivo-slider.css new file mode 100644 index 0000000..b5360bf --- /dev/null +++ b/public/sliders/nivo-slider/nivo-slider.css @@ -0,0 +1,231 @@ +/* + * jQuery Nivo Slider v2.7.1 + * http://nivo.dev7studios.com + * + * Copyright 2011, Gilbert Pellegrom + * Free to use and abuse under the MIT license. + * http://www.opensource.org/licenses/mit-license.php + * + * March 2010 + */ + + +/* The Nivo Slider styles */ + +.nivoSlider .substrate { + position: absolute; + z-index: 999; + left: 0; + bottom: 0; + width: 770px; + height: 118px; + border-bottom: 1px solid #fff; + -webkit-border-radius: 0 0 5px 5px; + -moz-border-radius: 0 0 5px 5px; + border-radius: 0 0 5px 5px; + background-color: rgba(0,0,0,.85); +} + +.ie7 .nivoSlider .substrate, +.ie8 .nivoSlider .substrate { + background: url(default/mask.png) repeat; +} + +.nivoSlider img { + position:absolute; + top:0px; + left:0px; +} + +/* If an image is wrapped in a link */ +.nivoSlider a.nivo-imageLink { + position:absolute; + top:0px; + left:0px; + width:100%; + height:100%; + border:0; + padding:0; + margin:0; + z-index:6; + display:none; +} +/* The slices and boxes in the Slider */ +.nivo-slice { + display:block; + position:absolute; + z-index:5; + height:100%; +} +.nivo-box { + display:block; + position:absolute; + z-index:5; +} + +/* Caption styles */ + +.nivo-caption { + position:absolute; + left:0px; + bottom:0px; + padding: 10px 40px 30px 40px; + width: 690px; + color:#fff; + opacity:0.8; /* Overridden by captionOpacity setting */ + height: 70px; + z-index:999999; + zoom: 1; +} + +.nivo-caption .alignleft { + margin-right: 1.5em; + padding: .5em 1.5em .5em 0; + background: url(default/divider.png) no-repeat right center; + text-align: right; +} + +.nivo-caption h3 { + margin-bottom: .2em; + color: #fff; + font-size: 1.833em; +} + +.nivo-caption p { + padding:5px; + margin:0; + color: #bbb; +} +.nivo-caption a { + display:inline !important; +} +.nivo-html-caption { + display:none; +} +/* Direction nav styles (e.g. Next & Prev) */ +.nivo-directionNav a { + position:absolute; + top:45%; + z-index:9; + cursor:pointer; +} +.nivo-prevNav { + left:0px; +} +.nivo-nextNav { + right:0px; +} +/* Control nav styles (e.g. 1,2,3...) */ +.nivo-controlNav a { + position:relative; + z-index:9; + cursor:pointer; +} +.nivo-controlNav a.active { + font-weight:bold; +} + +/* +Skin Name: Nivo Slider Default Theme +Skin URI: http://nivo.dev7studios.com +Skin Type: flexible +Description: The default skin for the Nivo Slider. +Version: 1.0 +Author: Gilbert Pellegrom +Author URI: http://dev7studios.com +*/ + +.nivoSlider { + position:relative; + -webkit-border-radius: 0 0 6px 6px; + -moz-border-radius: 0 0 6px 6px; + border-radius: 0 0 6px 6px; + -webkit-box-shadow: 0 10px 10px rgba(0,0,0,.05); + -moz-box-shadow: 0 10px 10px rgba(0,0,0,.05); + box-shadow: 0 10px 10px rgba(0,0,0,.05); + background:#fff url(default/loading.gif) no-repeat 50% 50%; +} + +.nivoSlider img { + position:absolute; + top:0px; + left:0px; + display:none; +} + +.nivoSlider a { + border:0; + display:block; +} + +.nivo-controlNav { + position: absolute; + z-index: 999999; + left: 50%; + bottom: -13px; + margin-left: -60px; /* Tweak this to center bullets */ + padding: .4em 1.8em .4em; + -webkit-border-radius: 5px; + -moz-border-radius: 5px; + border-radius: 5px; + background: #dfdfdf; + background: -webkit-gradient(linear, left top, left bottom, from(#f2f2f2), to(#dfdfdf)); + background: -moz-linear-gradient(top, #f2f2f2, #dfdfdf); + background: -o-linear-gradient(rgb(242,242,242),rgb(223,223,223)); +} + +.ie8 .nivo-controlNav { + -pie-background: linear-gradient(rgb(242,242,242),rgb(223,223,223)); + behavior: url(js/PIE.htc); +} + +.ie7 .nivo-controlNav { + -pie-background: linear-gradient(rgb(242,242,242),rgb(223,223,223)); + behavior: url(../../js/PIE.htc); +} + +.nivo-controlNav a { + display:block; + width:18px; + height:18px; + background:url(default/bullets.png) no-repeat; + text-indent:-9999px; + border:0; + margin-right:0; + float:left; +} + +.nivo-controlNav a.active { + background-position:0 -22px; +} + +.nivo-directionNav a { + display:block; + width:30px; + height:30px; + background:url(default/arrows.png) no-repeat; + text-indent:-9999px; + border:0; +} + +a.nivo-nextNav { + background-position:-30px 0; + right:15px; +} + +a.nivo-prevNav { + left:15px; +} + +.nivo-caption { + font-family: Helvetica, Arial, sans-serif; +} + +.nivo-caption a { + color:#fff; + border-bottom:1px dotted #fff; +} + +.nivo-caption a:hover { + color:#fff; +} \ No newline at end of file diff --git a/public/sliders/rama-the-jquery-slider-plugin/rama/assets/loader/loader_black.gif b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/loader/loader_black.gif new file mode 100644 index 0000000..ec8176a Binary files /dev/null and b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/loader/loader_black.gif differ diff --git a/public/sliders/rama-the-jquery-slider-plugin/rama/assets/loader/loader_blue.gif b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/loader/loader_blue.gif new file mode 100644 index 0000000..b990fc6 Binary files /dev/null and b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/loader/loader_blue.gif differ diff --git a/public/sliders/rama-the-jquery-slider-plugin/rama/assets/loader/loader_round_black.gif b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/loader/loader_round_black.gif new file mode 100644 index 0000000..5ae23c0 Binary files /dev/null and b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/loader/loader_round_black.gif differ diff --git a/public/sliders/rama-the-jquery-slider-plugin/rama/assets/loader/loader_round_blue.gif b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/loader/loader_round_blue.gif new file mode 100644 index 0000000..9c400e4 Binary files /dev/null and b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/loader/loader_round_blue.gif differ diff --git a/public/sliders/rama-the-jquery-slider-plugin/rama/assets/loader/loader_round_white.gif b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/loader/loader_round_white.gif new file mode 100644 index 0000000..dd148be Binary files /dev/null and b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/loader/loader_round_white.gif differ diff --git a/public/sliders/rama-the-jquery-slider-plugin/rama/assets/loader/loader_white.gif b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/loader/loader_white.gif new file mode 100644 index 0000000..0537f23 Binary files /dev/null and b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/loader/loader_white.gif differ diff --git a/public/sliders/rama-the-jquery-slider-plugin/rama/assets/loader/timer_black.png b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/loader/timer_black.png new file mode 100644 index 0000000..f8f6734 Binary files /dev/null and b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/loader/timer_black.png differ diff --git a/public/sliders/rama-the-jquery-slider-plugin/rama/assets/loader/timer_fashion.png b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/loader/timer_fashion.png new file mode 100644 index 0000000..0098182 Binary files /dev/null and b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/loader/timer_fashion.png differ diff --git a/public/sliders/rama-the-jquery-slider-plugin/rama/assets/loader/timer_wedding.png b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/loader/timer_wedding.png new file mode 100644 index 0000000..3852bd8 Binary files /dev/null and b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/loader/timer_wedding.png differ diff --git a/public/sliders/rama-the-jquery-slider-plugin/rama/assets/loader/timer_white.png b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/loader/timer_white.png new file mode 100644 index 0000000..dc9e113 Binary files /dev/null and b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/loader/timer_white.png differ diff --git a/public/sliders/rama-the-jquery-slider-plugin/rama/assets/navigation/arrow_down_black.png b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/navigation/arrow_down_black.png new file mode 100644 index 0000000..32074da Binary files /dev/null and b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/navigation/arrow_down_black.png differ diff --git a/public/sliders/rama-the-jquery-slider-plugin/rama/assets/navigation/arrow_down_grey.png b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/navigation/arrow_down_grey.png new file mode 100644 index 0000000..875d2b7 Binary files /dev/null and b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/navigation/arrow_down_grey.png differ diff --git a/public/sliders/rama-the-jquery-slider-plugin/rama/assets/navigation/buttons.png b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/navigation/buttons.png new file mode 100644 index 0000000..264e4de Binary files /dev/null and b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/navigation/buttons.png differ diff --git a/public/sliders/rama-the-jquery-slider-plugin/rama/assets/navigation/nextprev.png b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/navigation/nextprev.png new file mode 100644 index 0000000..4687725 Binary files /dev/null and b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/navigation/nextprev.png differ diff --git a/public/sliders/rama-the-jquery-slider-plugin/rama/assets/navigation/nextprev_invert.png b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/navigation/nextprev_invert.png new file mode 100644 index 0000000..a3ae404 Binary files /dev/null and b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/navigation/nextprev_invert.png differ diff --git a/public/sliders/rama-the-jquery-slider-plugin/rama/assets/navigation/pause.png b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/navigation/pause.png new file mode 100644 index 0000000..135f23c Binary files /dev/null and b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/navigation/pause.png differ diff --git a/public/sliders/rama-the-jquery-slider-plugin/rama/assets/navigation/settingsanim_1.gif b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/navigation/settingsanim_1.gif new file mode 100644 index 0000000..9f0d53d Binary files /dev/null and b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/navigation/settingsanim_1.gif differ diff --git a/public/sliders/rama-the-jquery-slider-plugin/rama/assets/navigation/toolbar_separator.png b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/navigation/toolbar_separator.png new file mode 100644 index 0000000..757ee6e Binary files /dev/null and b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/navigation/toolbar_separator.png differ diff --git a/public/sliders/rama-the-jquery-slider-plugin/rama/assets/navigation/toolbar_separator_2.png b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/navigation/toolbar_separator_2.png new file mode 100644 index 0000000..d559f7a Binary files /dev/null and b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/navigation/toolbar_separator_2.png differ diff --git a/public/sliders/rama-the-jquery-slider-plugin/rama/assets/navigation/toolbar_separator_invert.png b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/navigation/toolbar_separator_invert.png new file mode 100644 index 0000000..db67e00 Binary files /dev/null and b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/navigation/toolbar_separator_invert.png differ diff --git a/public/sliders/rama-the-jquery-slider-plugin/rama/assets/theme_custom/blot.png b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/theme_custom/blot.png new file mode 100644 index 0000000..87c7a8f Binary files /dev/null and b/public/sliders/rama-the-jquery-slider-plugin/rama/assets/theme_custom/blot.png differ diff --git a/public/sliders/rama-the-jquery-slider-plugin/rama/css/settings.css b/public/sliders/rama-the-jquery-slider-plugin/rama/css/settings.css new file mode 100644 index 0000000..a7fcaa7 --- /dev/null +++ b/public/sliders/rama-the-jquery-slider-plugin/rama/css/settings.css @@ -0,0 +1,497 @@ +/*----------------------------------------------------------------------------- + + - RAMA BANNER ROTATOR - + +Screen Stylesheet + +version: 1.0 +date: 09/18/11 +author: freshline +email: support@version-four.com +website: http://www.version-four.com +-----------------------------------------------------------------------------*/ + +#example { + -webkit-border-radius: 0 0 6px 6px; + -moz-border-radius: 0 0 6px 6px; + border-radius: 0 0 6px 6px; + border-bottom: 1px solid #fff; + -webkit-box-shadow: 0 10px 10px rgba(0,0,0,.05); + -moz-box-shadow: 0 10px 10px rgba(0,0,0,.05); + box-shadow: 0 10px 10px rgba(0,0,0,.05); +} + +/****************************** + - CUSTOM TOOLBOX - +******************************/ + +.custom_toolbox { + background-color:#303030 !important; + + /* To Put it on the left side: + margin-left:10px !important; + float:left !important; + */ + + /* To Put it on the Right Side: + margin-right:10px !important; + float:right !important; + */ + + /* To put it on the middle: + maring-right:auto !important; + margin-left:auto !important; + float:none !important; + */ + + margin-right:auto !important; + margin-left:auto !important; + float:none !important; + top:320px !important; /* The Top POsition of the Navigation Toolbox */ + background:transparent !important; + -webkit-border-radius:0px !important; + -moz-border-radius: 0px !important; + border-radius: 0px !important; + -webkit-box-shadow: none; /*0px 0px 6px 0px #1f2120 !important;*/ + -moz-box-shadow: none; /*0px 0px 6px 0px #1f2120 !important;*/ + box-shadow: none; /*0px 0px 6px 0px #1f2120 !important;*/ +} + + +/*-------------------------------------------------------------------------------------------------------------------------- + + -THE SKIN SETTINGS - + +---------------------------------------------------------------------------------------------------------------------------*/ + +/***********************************************/ +/*------ THEME TOOLBOX SETTINGS ------*/ +/***********************************************/ + +.sport_mini_thumbnail_buttons { + background-image:url(../assets/navigation/buttons.png); +} + +.sport_previous { + background-image:url(../assets/navigation/nextprev.png); +} + +.sport_next { + background-image:url(../assets/navigation/nextprev.png); +} +.sport_image_thumbnail { + margin-top:-70px !important; + z-index:11; + background-color:#fff !important; +} + +.sport_countdown { + background-image:url(../assets/loader/timer_white.png) !important; + +} + +.sport_image_thumbnail_arrow{ + background-image:url(../assets/navigation/arrow_down_white.png) !important; + z-index:11; +} + +/*-------------------------------------------------------------------------------------------------------------------------- + + -BASIC / DEAFULT SETTINGS. NO NEED TO MODIFICATE - + +---------------------------------------------------------------------------------------------------------------------------*/ + +.noFilterClass { + filter:none !important; +} + +/*--------------------------------------- + - CLEARING THE DEFAULT SETTINGS - +-----------------------------------------*/ +.frames_slider ul, .frames_slider li { + margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -o-user-select: none; + user-select: none; + -webkit-border-radius: 0 0 6px 6px; + -moz-border-radius: 0 0 6px 6px; + border-radius: 0 0 6px 6px; + position:absolute; + left:0; + top:0; +} + + +/*------------------------------------------------- + - The Default Settings for Each Banner - + - Oll Theme Relevant Settings are - + - idntified via Theme Names in ID and Class - +---------------------------------------------------*/ + +.none_frame{ + background-color:#fff; + margin-left:auto; + margin-right:auto; + display:none; + padding-left:10px; + padding-right:10px; + padding-top:10px; + padding-bottom:10px; + font-family: 'Oswald', sans-serif; + color: #000; + -webkit-border-radius:0px; + -moz-border-radius: 0px; + border-radius: 0px; + z-index:1; +} + +/*------------------------------ + - Mask on Images - +--------------------------------*/ + +.frames_slider #mask { + position:absolute; + overflow:hidden; + -webkit-border-radius:0px; + -moz-border-radius: 0px; + border-radius: 0px; +} + +/*-------------------------------------------------------- + - The Loader Size, Source and position on the Banner +----------------------------------------------------------*/ +.frames_slider .loader{ + background-image:url(../assets/loader/loader_round_blue.gif); + background-repeat:none; + width:18px; + height:18px; + margin-left:auto; + margin-right:auto; + top:45%; + z-index:1499; + position:relative; + +} + + + +/*-------------------------------------------- + - The Logo in the right top Corner - +----------------------------------------------*/ +.frames_slider #bannerlogo { + position:absolute; + left:765px; + top:5px; + z-index:1500; + cursor:point; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -o-user-select: none; + user-select: none; +} + +#bannerlogo a:link {border:none;} +#bannerlogo a:visited {border:none;} + +.frames_slider #bannerlogo img{ + border-style:none; + border:none; +} + + +/*---------------------------------------------------------------- + - Image Thumbnails, borders, Marings, rounded corners - +------------------------------------------------------------------*/ +.frames_slider #image_thumbnail { + position:absolute; + border: 1px solid #000; + background-color:#1a1a1a; + -webkit-border-radius:3px; + -moz-border-radius: 3px; + border-radius: 3px; + -webkit-box-shadow: 0px 0px 4px 0px #1f2120; + -moz-box-shadow: 0px 0px 4px 0px #1f2120; + box-shadow: 0px 0px 4px 0px #1f2120; + cursor:pointer; + z-index:990; +} + +/*--------------------------------------------------- + - Small Arrow under the Image Thumbnails - +-----------------------------------------------------*/ +.frames_slider #image_thumbnail_arrow{ + width:26px; + height:13px; + background-image:url(../assets/navigation/arrow_down_black.png); + background-repeat:no-repeat; + position:absolute; + z-index:4150 !important; +} + +/*------------------------------------------- + - Toolbox (thumbnail, next,prev holder) +---------------------------------------------*/ +.frames_slider #toolbox { + position:relative; + top:365px !important; + left: 40%; + float:left !important; + padding:0; + width:auto; + height:30px; + -webkit-border-radius: 6px; + -moz-border-radius: 6px; + border-radius: 6px; + background: #dfdfdf; + background: -webkit-gradient(linear, left top, left bottom, from(#f2f2f2), to(#dfdfdf)); + background: -moz-linear-gradient(top, #f2f2f2, #dfdfdf); + background: -o-linear-gradient(rgb(242,242,242),rgb(223,223,223)); + -pie-background: linear-gradient(rgb(242,242,242),rgb(223,223,223)); + -webkit-box-shadow: 0 1px 4px rgba(0,0,0,.3); + -moz-box-shadow: 0 1px 4px rgba(0,0,0,.3); + box-shadow: 0 1px 4px rgba(0,0,0,.3); +} + +.ie7 .frames_slider #toolbox { + width: 161px !important; + behavior: url(../js/PIE.htc); +} + +/*------------------------------------- + - Toolbox - Next Button - +--------------------------------------*/ +.frames_slider #toolbox #next { + margin-top:6px; + margin-left: 5px; + float:left; + overflow:hidden; + background-image:url(../assets/navigation/nextprev.png); + background-position:top left; + width:19px; + height:19px; + cursor:pointer; +} + +/*------------------------------------- + - Toolbox - Prev Button - +--------------------------------------*/ +.frames_slider #toolbox #previous { + margin-top:6px; + margin-right: 2px; + float:right; + overflow:hidden; + background-image:url(../assets/navigation/nextprev.png); + background-position:top right; + width:19px; + height:19px; + cursor:pointer; +} + +/*------------------------------------------ + - Toolbox - divider between buttons - +--------------------------------------------*/ +.frames_slider #toolbox #mini_divider { + margin-left:3px; + margin-right:1px; + float:right; + overflow:hidden; +/* background:url(../assets/navigation/toolbar_separator.png) no-repeat center center;;*/ + width:2px; + height:30px; +} + +/*----------------------------------------- + - Toolbox - Mini Thumbnail Buttons - +-------------------------------------------*/ +.frames_slider #toolbox .mini_thumbnail_buttons { + margin-top:5px; + float:right; + overflow:hidden; + background-image:url(../assets/navigation/buttons.png); + background-position:top left; + width:22px; + height:22px; + cursor:pointer; +} + +.frames_slider .pause_sign { + background:url(../assets/navigation/pause.png) no-repeat; + width:35px; + height:37px; + position:absolute; + z-index:4100; +} + +.countdown { + background-image: url(../assets/loader/timer_white.png); + height: 10px; + margin-left: 6px; + margin-top: 6px; + position: relative; + width: 10px; + z-index: 4055; +} +/*----------------------------------------------------------------------------- + +- RAMA SLIDER - + +Screen Stylesheet + +version: 1.0 +date: 07/27/11 +author: freshline +email: support@version-four.com +website: http://www.version-four.com +-----------------------------------------------------------------------------*/ + + +/*-------------------------------------------------------------------------------------------------------- + + - THE LAYERS ON THE RAMA BANNER - + + All Object (Text, Images) on the Banner Layer will be set via the Content.css + You can of course use your own styles as well. We only recommend to split the css files, + to make better overview of your files. + + Position are always absolute. Position 0,0 is the left top corner of the banner inside the Frame. + +---------------------------------------------------------------------------------------------------------*/ + + +/*-------------------------------------------------- + - BANNER 1 - 1/10 +-----------------------------------------------------*/ +.logo_1 { + left:265px; + top:21px; + position:absolute; +} + + .title_1 { + font-size:2.5em; + font-style:italic; + font-weight:normal; + color: #fff; + padding:10px 30px 15px 20px; + left:40px; + top:255px; + position:absolute; + font-family: 'PT Sans Narrow', sans-serif; +} + + .description_1 { + font-size:1.5em; + text-align:center; + color: #88d600; + left:60px; + top:287px; + position:absolute; + font-family: 'PT Sans Narrow', sans-serif; +} + + +/*-------------------------------------------------- + - BANNER 1 - 2/10 +-----------------------------------------------------*/ + +.title_2 { + font-size:2.5em; + font-weight:normal; + font-family: 'PT Sans Narrow', sans-serif; + color: #fff; + left:370px; + top:215px; + position:absolute; +} + +.description_2 { + font-size:1.5em; + color: #fff; + left:370px; + top:200px; + position:absolute; + font-family: 'PT Sans Narrow', sans-serif; +} + + +/*-------------------------------------------------- + - BANNER 1 - 3/10 +-----------------------------------------------------*/ + + .title_3 { + font-family: 'PT Sans Narrow', sans-serif; + font-size:2.5em; + font-style:italic; + font-weight:normal; + color: #88d600; + padding:10px 30px 15px 20px; + left:40px; + top:250px; + position:absolute; +} + + .description_3 { + font-size:1.5em; + text-align:center; + color: #fff; + left:60px; + top:287px; + position:absolute; + font-family: 'PT Sans Narrow', sans-serif; +} + + +/*-------------------------------------------------- + - BANNER 1 - 4/10 +-----------------------------------------------------*/ + + .title_4 { + font-family: 'PT Sans Narrow', sans-serif; + font-size:2.5em; + font-style:italic; + font-weight:normal; + color: #fff; + padding:10px 30px 15px 20px; + left:40px; + top:180px; + position:absolute; +} + + .description_4 { + font-size:1.5em; + text-align:center; + color: #fff; + left:60px; + top:175px; + position:absolute; + font-family: 'PT Sans Narrow', sans-serif; +} + +/*-------------------------------------------------- + - BANNER 1 - 5/10 +-----------------------------------------------------*/ + +.title_5 { + font-family: 'PT Sans Narrow', sans-serif; + font-size:2.5em; + font-style:italic; + font-weight:normal; + color:#1f2123; + left:350px; + top:250px; + position:absolute; +} + +.description_5 { + font-family: 'PT Sans Narrow', sans-serif; + font-size:1.5em; + font-style:italic; + color: #1f2123; + left:350px; + top:285px; + position:absolute; +} + diff --git a/public/sliders/rama-the-jquery-slider-plugin/rama/js/freshline/jquery.freshline.FramesBanner.js b/public/sliders/rama-the-jquery-slider-plugin/rama/js/freshline/jquery.freshline.FramesBanner.js new file mode 100644 index 0000000..0b58cf3 --- /dev/null +++ b/public/sliders/rama-the-jquery-slider-plugin/rama/js/freshline/jquery.freshline.FramesBanner.js @@ -0,0 +1,1998 @@ +/** + * jquery.freshline.BeforeAfter - jQuery Plugin for Before After Effects Banner Animation (freshline) + * @version: 1.1 (12.09.2011) + * @requires jQuery v1.2.2 or later + * @author Krisztian Horvath + * All Rights Reserved, use only in freshline Templates or when Plugin bought at Envato ! +**/ + + + + +(function($,undefined){ + + + + //////////////////////////// + // THE PLUGIN STARTS HERE // + //////////////////////////// + + $.fn.extend({ + + + // OUR PLUGIN HERE :) + frames_slider: function(options) { + + + + //////////////////////////////// + // SET DEFAULT VALUES OF ITEM // + //////////////////////////////// + var defaults = { + width: 876, // width of banner + height: 300, // height of banner + theme:"none", //none,sport,elegant,wood,custom + timer:2000, + hidetoolbar:0 + }; + + var options = $.extend({}, $.fn.frames_slider.defaults, options); + + + return this.each(function() { + + // An Array to preload all the images + var ba_images = new Array; + + //Keep track of the ba_images that are loaded + var ba_imagesLoaded = 0; + + //PUT THE BANNER HOLDER IN A VARIABLE + var bannerTop = $(this); + + bannerTop.css({'display':'none'}); + + + // OPTIONS + var opt=options; + opt.ie = ($.browser.msie && $.browser.version >= 7 && $.browser.version < 9 ); + if (opt.timer==undefined) opt.timer=2000; + if (opt.hidetoolbar==undefined) opt.hidetoolbar=0; + + // Set Some Data in the Object + bannerTop.data('off',parseInt(bannerTop.css('padding-top'),0)); + bannerTop.data('ba_imagesLoaded',0); + var currentSlide = bannerTop.find("li").first(); + bannerTop.data('currentSlide',currentSlide); + + //Init the Mask + initMask(bannerTop,opt); + + + + //create the Before & After Images + prepareImages(bannerTop); + + var mainloader=$("
    "); + bannerTop.append(mainloader); + + //turn off all slides, to make sure nothing pops up without our controll.... + bannerTop.find('ul').css({'display':'none'}); + bannerTop.find('ul li').css({'display':'none'}); + startBanner(bannerTop,opt); + + setTheme(bannerTop,opt); + + + + // Init Image Preloading + initImagePreLoading(bannerTop); + + //NOW WE LOAD THE ba_images, AND ONCE IT HAS BEED DONE, WE CAN START + preloadba_images(bannerTop,opt); + + bannerTop.hover(function() { + var $this=$(this); + $this.data('mouseOver','0'); + $this.data('hideT',0); + $this.find('#toolbox').stop(true,true); + if ($.browser.msie && $.browser.version >= 7 && $.browser.version < 9 ) { + $this.find('#toolbox').css({'display':'block'}); + } else { + $this.find('#toolbox').animate({'opacity':'1.0'},{duration:100}); + } + if (opt.ie) + var pa=$('
    '); + else + var pa=$('
    '); + $this.append(pa); + if (!opt.ie) pa.animate({'opacity':'1.0','left':(opt.width+opt.pl-45)+'px'},{duration:300}); + + + }, + function() { + var $this=$(this); + $this.data('mouseOver','1'); + $this.data('hideT',0); + $this.find('#fh_pause').remove(); + }); + + + bannerTop.data('hideT',0); + + if (opt.hidetoolbar!=0) { + setInterval(function() { + if (bannerTop.data('loaded')=="true") { + if (bannerTop.data('mouseOver')!='0') bannerTop.data('hideT',(bannerTop.data('hideT')+100)); + if (bannerTop.data('hideT')>=opt.hidetoolbar) { + if ($.browser.msie && $.browser.version >= 7 && $.browser.version < 9 ) { + bannerTop.find('#toolbox').css({'display':'none'}); + } else { + bannerTop.find('#toolbox').animate({'opacity':'0.0'},{duration:400}); + } + } + } + },100); + } + + + setInterval(function() { + if (bannerTop.data('loaded')=="true") { + bannerTop.find('#cd').each(function() { + + var $this = $(this); + if ($this.data('idNum') == bannerTop.data('currentSlide').index()) { + + + if (opt.timer!=0) { + if ($this.data('t')==undefined) $this.data('t',0); + var actMT = $this.data('t'); + $this.css({'background-position':'0px '+(actMT-10)+'px'}); + // IF TIME IS UP, WE NEED TO SWAP :) + if (actMT<=-1000) { + var newId = bannerTop.data('currentSlide').index(); + newId++; + if (newId==bannerTop.data('currentSlide').parent().find("li").size()) newId=0; + if (newId==-1) newId=bannerTop.data('currentSlide').parent().find("li").size()-1; + actMT=0; + var newcurrentSlide = bannerTop.find("li").each( + function(i) { + $this=$(this); + if (i == newId) { + swapBanner(bannerTop.data('currentSlide'),$this,bannerTop,opt); + } + }); + } + // Move the Image 10 Pixel to the top :) Animation Frames... + if (bannerTop.data('mouseOver')!='0') $this.data('t',actMT-10); + } else { + + } + } + }); + } + },(opt.timer/100)); + + + + + + + }) + } +}) + + + /////////////////////////////// + // -- LOCALE FUNCTIONS -- // + /////////////////////////////// + + ////////////////////// + // RESET OPT VALUES // + ////////////////////// + function setOptions(opt,bannerTop) { + opt.pt = parseInt(bannerTop.css('padding-top'),0); + opt.pl = parseInt(bannerTop.css('padding-left'),0); + opt.pr = parseInt(bannerTop.css('padding-right'),0); + opt.pb = parseInt(bannerTop.css('padding-bottom'),0); + + // SET DEFAULT SIZES, PADDINGS, ETC. + opt.l = opt.pl/2; + opt.t = opt.pt/2; + opt.r = opt.pl + opt.width + opt.pr/2; + opt.b = opt.pt + opt.height + opt.pb/2; + } + + + + //////////////////////////////// + // SET THEME DEPENDEND ASSETS // + //////////////////////////////// + function setTheme(bannerTop,opt) { + + + + if (opt.theme=="none") { + } + + + ////////////////// + // CUSTOM THEME // + ////////////////// + + if (opt.theme=="custom") { + // SET THE SPORT THEME + bannerTop.addClass("custom_frame_basic"); + bannerTop.addClass("custom_frame_bg"); + setOptions(opt,bannerTop); + + bannerTop.append('
    '); + bannerTop.append('
    '); + bannerTop.append('
    '); + bannerTop.append('
    '); + + // Changing the ToolBox Settings + bannerTop.find('#toolbox').addClass('custom_toolbox'); + bannerTop.find('#cd').addClass('custom_countdown'); + bannerTop.find('#mini_divider').addClass('custom_mini_divider'); + bannerTop.find('#previous').addClass('custom_previous'); + bannerTop.find('#next').addClass('custom_next'); + bannerTop.find('#mask').addClass('custom_mask'); + bannerTop.find('.mini_thumbnail_buttons').each(function(i) { + var $this=$(this); + + $this.addClass('custom_mini_thumbnail_buttons'); + }); + + // ADD GLAS EFFECT ON THE BANNER + bannerTop.append('
    '); + bannerTop.append('
    '); + if (bannerTop.find('#creative_layer_holder').size()==0) bannerTop.append('
    '); + } else { + + + /////////////////// + // SPORT THEME // + /////////////////// + if (opt.theme=="sport") { + // SET THE SPORT THEME + bannerTop.addClass("sport_frame_basic"); + bannerTop.addClass("sport_frame_bg"); + setOptions(opt,bannerTop); + + // SET DEFAULT SIZES, PADDINGS, ETC. + opt.r=-8+opt.r; + opt.b=-8+opt.b; + + opt.m = 2*opt.l+opt.width/2; + opt.w=290; + opt.off= opt.m-145; + if (opt.off<2*opt.l) { + opt.off = 2*opt.l; + opt.w=opt.r-opt.pr/2-opt.off; + } + opt.e=opt.r+opt.pr/2; + + /* if (!opt.ie) { + // ADD A GRADIENT FADING ON THE BOTTOM + bannerTop.append('
    '); + + for (var i=0;i
    '); + } + }*/ + bannerTop.append('
    '); + bannerTop.append('
    '); + bannerTop.append('
    '); + bannerTop.append('
    '); + bannerTop.append('
    '); + bannerTop.append('
    '); + + // Changing the ToolBox Settings + var tb=bannerTop.find('#toolbox'); + tb.addClass('sport_toolbox'); + bannerTop.find('#cd').addClass('sport_countdown'); + bannerTop.find('#mini_divider').addClass('sport_mini_divider'); + bannerTop.find('#previous').addClass('sport_previous'); + bannerTop.find('#next').addClass('sport_next'); + bannerTop.find('#mask').addClass('sport_mask'); + bannerTop.find('.mini_thumbnail_buttons').each(function(i) { + var $this=$(this); + + $this.addClass('sport_mini_thumbnail_buttons'); + }); + + tb.css({'top':opt.height-10+'px'}); + + // ADD GLAS EFFECT ON THE BANNER + bannerTop.append('
    '); + bannerTop.append('
    '); + if (bannerTop.find('#creative_layer_holder').size()==0) bannerTop.append('
    '); + } else { + + + /////////////////// + // WEDDING THEME // + /////////////////// + if (opt.theme=="wedding") { + // SET THE WEDDING THEME + bannerTop.addClass("wedding_frame_basic"); + bannerTop.addClass("wedding_frame_bg"); + setOptions(opt,bannerTop); + + // SET DEFAULT SIZES, PADDINGS, ETC. + opt.r = -8+opt.r; + opt.b = opt.pt + opt.height + opt.pb-57; + + opt.m = 2*opt.l+opt.width/2; + opt.w=opt.width; + opt.e=opt.r+opt.pr/2; + opt.off=opt.tl;//0;// opt.m-145; + + bannerTop.append('
    '); + bannerTop.append('
    '); + + // ADD GLAS EFFECT ON THE BANNER + bannerTop.append('
    '); + bannerTop.append('
    '); + if (bannerTop.find('#creative_layer_holder').size()==0) bannerTop.append('
    '); + bannerTop.append('
    '); + + // Changing the ToolBox Settings + var tb=bannerTop.find('#toolbox'); + tb.addClass('wedding_toolbox'); + + bannerTop.find('#cd').addClass('wedding_countdown'); + bannerTop.find('#mini_divider').addClass('wedding_mini_divider'); + bannerTop.find('#previous').addClass('wedding_previous'); + bannerTop.find('#next').addClass('wedding_next'); + bannerTop.find('.mini_thumbnail_buttons').each(function(i) { + var $this=$(this); + + $this.addClass('wedding_mini_thumbnail_buttons'); + }); + + tb.css({'top':opt.height+10+'px'}); + } else { + + + /////////////////// + // FASHION THEME // + /////////////////// + if (opt.theme=="fashion") { + // SET THE WEDDING THEME + bannerTop.addClass("fashion_frame_basic"); + bannerTop.addClass("fashion_frame_bg"); + setOptions(opt,bannerTop); + + // SET DEFAULT SIZES, PADDINGS, ETC. + opt.r = opt.r-8; + opt.b = opt.pt + opt.height + opt.pb-57; + opt.m = 2*opt.l+opt.width/2; + opt.w=opt.width+(2*opt.l)+opt.pr+26; + opt.e=opt.r+opt.pr/2; + var h=35;//bannerTop.find('#toolbox').height(); + + var tt=2*opt.t+opt.height; + + /*if (!opt.ie) { + // ADD A GRADIENT FADING ON THE BOTTOM + bannerTop.append('
    '); + var maxxh = opt.height+opt.pt+opt.pb; + + for (var i=0;i'); + } + + for (var i=0;i'); + } + + }*/ + + bannerTop.append('
    '); + bannerTop.append('
    '); + bannerTop.append('
    '); + + + // Changing the ToolBox Settings + bannerTop.find('#toolbox').addClass('fashion_toolbox'); + bannerTop.find('#cd').addClass('fashion_countdown'); + bannerTop.find('#mini_divider').addClass('fashion_mini_divider'); + bannerTop.find('#previous').addClass('fashion_previous'); + bannerTop.find('#next').addClass('fashion_next'); + bannerTop.find('.mini_thumbnail_buttons').each(function(i) { + var $this=$(this); + + $this.addClass('fashion_mini_thumbnail_buttons'); + }); + bannerTop.find('#toolbox').css({'top':(tt-15)+'px'}); + + // ADD GLAS EFFECT ON THE BANNER + bannerTop.append('
    '); + bannerTop.append('
    '); + if (bannerTop.find('#creative_layer_holder').size()==0) bannerTop.append('
    '); + }}}} + + var cl = bannerTop.find("#creative_layer_holder"); + cl.css({'position':'absolute','margin-top':opt.pt+'px','margin-left':opt.pl+'px'}); + + + } + + ///////////////////////////////////////////////////////// + // PUT ALL ba_images IN AN ARRAY, FOR PRELOADING !! // + /////////////////////////////////////////////////////// + function initImagePreLoading(item) { + var ba_images=new Array(); + var imageamounts=0; + item.find("ul li img").each( + function(i){ + var $this=$(this); + + + ba_images[imageamounts] = $this.attr('src'); + imageamounts++; + }); + + + item.data('ba_images',ba_images); + + } + + + ///////////////////////////////////////////////////////////////////////////////////////// + //REKURSIVE PRELOADING ALL THE ba_images, AND CALL THE CALLBACK FUNCTION AT THE END // + //////////////////////////////////////////////////////////////////////////////////////// + function preloadba_images(item,opt){ + + var ba_images = item.data('ba_images'); + var ba_imagesLoaded = item.data('ba_imagesLoaded'); + var img = new Image(); // TEMPORARY HOLDER FOR IMAGE TO LOAD + $(img).css("display","none"); + $(img).attr('src',ba_images[ba_imagesLoaded]); // SET THE SOURCE OF THE TEMP IMAGE + + if (img.complete || img.readyState === 4) { // CHECK IF THE IMAGE IS ALREADY LOADED + ba_imagesLoaded++; // IF YES WE CAN INCREASE THE AMOUNT OF LOADED ba_images + if(ba_imagesLoaded == ba_images.length) { // IF WE LOADED ALL THE ba_images + item.data('loaded',"true"); + startRotation(item,opt) // CAN CALLBACK FUNCION BE CALLED + } else { + item.data('ba_imagesLoaded',ba_imagesLoaded); + preloadba_images(item,opt); // OTHER WAY WE NEED TO PRELOAD THE REST ba_images + } + } else { + + $(img).load(function(){ // IF NOT CACHED YET, LETS LOAD THE IMAGE + ba_imagesLoaded++; // WE CAN INCREASE THE AMOUNT OF LOADED ba_images + if(ba_imagesLoaded == ba_images.length) { // IF WE LOADED ALL THE ba_images + item.data('loaded',"true"); + startRotation(item,opt); // CAN CALLBACK FUNCION BE CALLED + } else { + item.data('ba_imagesLoaded',ba_imagesLoaded); + preloadba_images(item,opt); // OTHER WAY WE NEED TO PRELOAD THE REST ba_images + } + }); + } + }; + + + + + //////////////////////////////////////////////////// + // CREATE THE BEFORE AFTER IMAGES IN THE DIVS // + //////////////////////////////////////////////////// + + function prepareImages(item) { + + item.find("li >img").each( + function(){ + + var $this=$(this); + + // ADD THE ID BEFORE TO THE FIRST IMG IN THE LIST + $this.attr({id:'before'}); + + + // WRAP THE ALL IN A NEW DIV + $this.parent().find("#before").wrapAll("
    "); + + + // WRAP EACH BEFORE AND AFTER AS WELL IN A DIV + $this.parent().find("#before").wrap("
    "); + + + + + + var eeb=$this.parent().parent().parent().find("#before").parent().parent(); + var eb=eeb.find("#before").parent(); + var b=eb.find("#before"); + + + eeb.css({'position':'absolute','z-index':'1','top':'0px','left':'0px'}); + eb.css({'position':'absolute','z-index':'1','top':'0px','left':'0px'}); + + + + + + }); + } + + + ////////////////////////////////// + // Create the Transitions Boxes // + ////////////////////////////////// + function addBoxes(slider, Cols,Rows){ + var boxWidth = Math.round(slider.width()/Cols); + var boxHeight = Math.round(slider.height()/Rows); + var src = slider.find('#before').attr('src'); + + for(var rows = 0; rows < Rows; rows++){ + for(var cols = 0; cols < Cols; cols++){ + if(cols == Cols-1){ + slider.append( + $('
    ').css({ + position:'absolute', + opacity:0, + left:(boxWidth*cols)+'px', + top:(boxHeight*rows)+'px', + width:(slider.width()-(boxWidth*cols))+'px', + height:boxHeight+'px', + background: 'url('+src+') no-repeat -'+ ((boxWidth + (cols * boxWidth)) - boxWidth) +'px -'+ ((boxHeight + (rows * boxHeight)) - boxHeight) +'px' }) + ); + } else { + slider.append( + $('
    ').css({ + position:'absolute', + opacity:0, + left:(boxWidth*cols)+'px', + top:(boxHeight*rows)+'px', + width:boxWidth+'px', + height:boxHeight+'px', + background: 'url('+src+') no-repeat -'+ ((boxWidth + (cols * boxWidth)) - boxWidth) +'px -'+ ((boxHeight + (rows * boxHeight)) - boxHeight) +'px' + }) + ); + } + } + } + } + + + /////////////////// + // Create Clones // + /////////////////// + + function repeatMe(slider,amount){ + + for(var i = 0; i < amount; i++){ + var src = slider.find('#before').attr('src'); + slider.append( + $('
    ').css({ + left:'0px', + position:'absolute', + height:slider.height()+'px', + width:slider.width()+'px', + opacity:'0', + background: 'url('+ src +') no-repeat' + }) + ); + + + } + } + + + ///////////////////////// + // Create the Slices 2// + //////////////////////// + + function addHSlices(slider,amount){ + //alert(amount); + for(var i = 0; i < amount; i++){ + var sliceHeight = Math.round(slider.height()/amount); + var src = slider.find('#before').attr('src'); + if(i == amount-1){ + slider.append( + $('
    ').css({ + top:(sliceHeight*(i))+'px', + height:(slider.height()-(sliceHeight*i))+'px', + position:'absolute', + width:slider.width()+'px', + opacity:'0', + background: 'url('+ src +') no-repeat -0px '+ (0-((i * sliceHeight))) +"px" + }) + + ); + + } else { + slider.append( + $('
    ').css({ + top:(sliceHeight*(i))+'px', + height:sliceHeight+'px', + position:'absolute', + width:slider.width()+'px', + opacity:'0', + background: 'url('+ src +') no-repeat -0px '+ (0-((i * sliceHeight)) ) +"px" + }) + ); + + } + } + } + + + + + + /////////////////////// + // Create the Slices // + ////////////////////// + + function addSlices(slider,amount){ + //alert(amount); + for(var i = 0; i < amount; i++){ + var sliceWidth = Math.round(slider.width()/amount); + var src = slider.find('#before').attr('src'); + if(i == amount-1){ + slider.append( + $('
    ').css({ + left:(sliceWidth*i)+'px', width:(slider.width()-(sliceWidth*i))+'px', + position:'absolute', + height:'0px', + opacity:'0', + background: 'url('+ src +') no-repeat -'+ ((sliceWidth + (i * sliceWidth)) - sliceWidth) +'px 0%' + }) + ); + + } else { + slider.append( + $('
    ').css({ + left:(sliceWidth*i)+'px', width:sliceWidth+'px', + position:'absolute', + height:'0px', + opacity:'0', + background: 'url('+ src +') no-repeat -'+ ((sliceWidth + (i * sliceWidth)) - sliceWidth) +'px 0%' + }) + ); + //alert('url('+ src +') no-repeat -'+ ((sliceWidth + (i * sliceWidth)) - sliceWidth) +'px 0%'); + } + } + } + + + + + ///////////////////// + // KILL ANIMATIONS // + //////////////////// + function killAnims() { + var item=$(this).parent(); + item.find('#before').css({'opacity':'1'}); + item.find('.freshslice').each(function(a) { var $this=$(this); $this.remove();}) + item.find('.freshsbox').each(function(a) { var $this=$(this); $this.remove();}) + + //item.animate({'left':'0px','top':'0px','opacity':'1.0'},{duration:10,queue:false}); + } + + + + + + //////////////////////////////////////////////////// + // - THE BANNER SWAPPER, ONE AGAINST THE OTHER :) // + //////////////////////////////////////////////////// + function swapBanner(item,newitem,bannerTop,opt) { + + var trans=false; + + // PUT THE TEXT ANIMS BACK TO THE ORIGINAL PLACE.... HOLDER... + bannerTop.find('#creative_layer_holder div').each(function(i) { + var $this = $(this); + var oldParent= $this.data('parent'); + $this.appendTo(oldParent); + + }); + + // SET TOP INDEX AND START OPOCITY, IF IE8 EVEN NO FILTER + bannerTop.find('li').each(function(i) { + var $this=$(this); + if ($this.index() != item.index() && $this.index() !=newitem.index()) { + $this.css({'z-index':'950','opacity':'0.0'}); + if ($.browser.msie && $.browser.version >= 7 && $.browser.version < 9 ) + $this.addClass('noFilterClass'); + } + }); + + item.css({'z-index':'995'}); + newitem.css({'z-index':'1000'}); + + // SET POSITION AND ORIGINAL WIDTH AND HEIGHT OF THE ITEM AND NEWITEM + if (item.data('orgWidth')==undefined) { + item.data('orgWidth',item.find('#before').width()); + item.find('#before').data('orgWidth',item.data('orgWidth')); + } + if (item.data('orgHeight')==undefined) { + item.data('orgHeight',item.find('#before').height()); + item.find('#before').data('orgHeight',item.data('orgHeight')); + } + if (newitem.data('orgWidth')==undefined) { + newitem.data('orgWidth',newitem.find('#before').width()); + newitem.find('#before').data('orgWidth',newitem.data('orgWidth')); + } + if (newitem.data('orgHeight')==undefined) { + newitem.data('orgHeight',newitem.find('#before').height()); + newitem.find('#before').data('orgHeight',newitem.data('orgHeight')); + } + + + //Change Mask on the top + var toppos = opt.pt + opt.height/2 - newitem.data('orgHeight')/2; + var leftpos = opt.pl + opt.width/2 - newitem.data('orgWidth')/2; + var stageWidth = newitem.data('orgWidth'); + var stageHeight = newitem.data('orgHeight'); + if (stageWidth>opt.width) stageWidth=opt.width; + if (stageHeight>opt.height) stageHeight=opt.height; + if (toppos= 7 && $.browser.version < 9 ) ) { + + //////////////////// + // GRADIENT FADE // + //////////////////// + if (newitem.data('transition') == "gradientfade" || newitem.data('transition') == "1") { + trans=true; + addSlices(newitem,newitem.width()/5); + //alert(newitem.html()); + //item.animate({'left':'0px','top':'0px','opacity':'0.0'},{duration:0,queue:false}); + newitem.css({'position':'absolute','top':'0px','left':'0px','opacity':'1.0'}); + newitem.find('#before').css({'opacity':'0'}); + newitem.find('.freshslice').each(function(i){ + var $this=$(this); + + $this.css({'height':newitem.height()+'px','top':'0px'}); + + if (i==newitem.find('.freshslice').size()-1) + $this.delay(i).animate({'opacity':'1.0'},{duration:(i*30)+(40),queue:true, complete:killAnims}); + else + $this.delay(i).animate({'opacity':'1.0'},{duration:(i*20)+(40),queue:true}); + + }); + + } + + + + //////////////////// + // GRADIENT FADE 2 // + //////////////////// + if (newitem.data('transition') == "gradientfade2" || newitem.data('transition') == "2") { + trans=true; + addHSlices(newitem,newitem.height()/5); + //alert(newitem.html()); + //item.animate({'left':'0px','top':'0px','opacity':'0.0'},{duration:0,queue:false}); + newitem.css({'position':'absolute','top':'0px','left':'0px','opacity':'1.0'}); + newitem.find('#before').css({'opacity':'0'}); + newitem.find('.freshslice').each(function(i){ + var $this=$(this); + + $this.css({'width':newitem.width()+'px','left':'0px'}); + + if (i==newitem.find('.freshslice').size()-1) + $this.delay(i).animate({'opacity':'1.0'},{duration:(i*40)+(100),queue:true, ease:'linear', complete:killAnims}); + else + $this.delay(i).animate({'opacity':'1.0'},{duration:(i*30)+(100),queue:true,ease:'linear'}); + + }); + + } + + + + ///////////////////// + // BOX RANDOM FADE // + //////////////////// + if (newitem.data('transition') == "box-randomfade" || newitem.data('transition') == "3") { + trans=true; + addBoxes(newitem,opt.width/80,opt.height/80); + //alert(newitem.html()); + //item.animate({'left':'0px','top':'0px','opacity':'0.0'},{duration:1000,queue:false}); + newitem.css({'position':'absolute','top':'0px','left':'0px','opacity':'1.0'}); + newitem.find('#before').css({'opacity':'0'}); + var delays=[]; + newitem.find('.freshbox').each(function(i){ delays[i]=i}); + for (var dd=0;ddactrow*col) { + act=act-(col-1); + } else { + act=was; + act=act+col; + was=act; + } + if (act-(col*(actrow+1))==0) actrow++; + if (act>max) { + lastrow=true; + act=was-col+1; + was=act; + } + + + var tw=$this.width(); + var th=$this.height(); + + $this.css({'width':"0px", 'height':'0px','opacity':'1.0', + '-webkit-border-radius':'5px', + '-moz-border-radius': '5px', + 'border-radius': '5px'}); + + + if (i==newitem.find('.freshbox').size()-1) + $this.delay(i*30).animate({'width':(tw+10)+'px','height':(th+10)+'px'},{duration:660,ease:'linear',queue:true, complete:killAnims}); + else + $this.delay(i*30).animate({'width':(10+tw)+'px','height':(th+10)+'px'},{duration:660,ease:'linear',queue:true}); + } + } + + + + + /////////////////////////////////////// + // BOX BIG DIAGONAL FADE TRANSITION // + ///////////////////////////////////// + if (newitem.data('transition') == "box-diagonalfade" || newitem.data('transition') == "6") { + trans=true; + addBoxes(newitem,opt.width/80,opt.height/80); + + //item.delay(200).animate({'left':'0px','top':'0px','opacity':'0.0'},{duration:1000,queue:true}); + newitem.css({'position':'absolute','top':'0px','left':'0px','opacity':'1.0'}); + newitem.find('#before').css({'opacity':'0.0'}); + var lastrow=false; + var act=1; + var actrow=0; + var was=1; + var col=Math.round(opt.width/80); + var row=Math.round(opt.height/80); + var max=newitem.find('.freshbox').size(); + + for (var i=0;iactrow*col) { + act=act-(col-1); + } else { + act=was; + act=act+col; + was=act; + } + if (act-(col*(actrow+1))==0) actrow++; + if (act>max) { + lastrow=true; + act=was-col+1; + was=act; + } + + + var tw=$this.width(); + var th=$this.height(); + + $this.css({'opacity':'0.0'}); + + if (i==newitem.find('.freshbox').size()-1) + $this.delay(i*30).animate({'opacity':'1.0'},{duration:660,ease:'linear',queue:true, complete:killAnims}); + else + $this.delay(i*30).animate({'opacity':'1.0'},{duration:660,ease:'linear',queue:true}); + } + } + + + + + + /////////////////////////////////// + // BOX BIG LEFT FADE TRANSITION // + ///////////////////////////////// + if (newitem.data('transition') == "box-leftfade" || newitem.data('transition') == "7") { + trans=true; + addBoxes(newitem,opt.width/80,opt.height/80); + + //item.delay(200).animate({'left':'0px','top':'0px','opacity':'0.0'},{duration:1000,queue:true}); + newitem.css({'position':'absolute','top':'0px','left':'0px','opacity':'1.0'}); + newitem.find('#before').css({'opacity':'0.0'}); + var lastrow=false; + var act=1; + var actrow=2; + var was=1; + var col=Math.round(opt.width/80); + var row=Math.round(opt.height/80); + var max=newitem.find('.freshbox').size(); + + for (var i=0;imax) { + act = actrow; + actrow++; + } + + $this.css({'opacity':'0.0'}); + + if (i==newitem.find('.freshbox').size()-1) + $this.delay(i*30).animate({'opacity':'1.0'},{duration:660,ease:'linear',queue:true, complete:killAnims}); + else + $this.delay(i*30).animate({'opacity':'1.0'},{duration:660,ease:'linear',queue:true}); + } + } + + + + /////////////////////////////////// + // BOX BIG LEFT ZOOM TRANSITION // + ///////////////////////////////// + if (newitem.data('transition') == "box-leftzoom" || newitem.data('transition') == "8") { + trans=true; + addBoxes(newitem,opt.width/80,opt.height/80); + + //item.delay(200).animate({'left':'0px','top':'0px','opacity':'0.0'},{duration:1000,queue:true}); + newitem.css({'position':'absolute','top':'0px','left':'0px','opacity':'1.0'}); + newitem.find('#before').css({'opacity':'0.0'}); + var lastrow=false; + var act=1; + var actrow=2; + var was=1; + var col=Math.round(opt.width/80); + var row=Math.round(opt.height/80); + var max=newitem.find('.freshbox').size(); + + for (var i=0;imax) { + act = actrow; + actrow++; + } + + var tw=$this.width(); + var th=$this.height(); + + $this.css({'width':"0px", 'height':'0px','opacity':'1.0', + '-webkit-border-radius':'5px', + '-moz-border-radius': '5px', + 'border-radius': '5px'}); + + + if (i==newitem.find('.freshbox').size()-1) + $this.delay(i*30).animate({'width':(tw+10)+'px','height':(th+10)+'px'},{duration:660,ease:'linear',queue:true, complete:killAnims}); + else + $this.delay(i*30).animate({'width':(tw+10)+'px','height':(th+10)+'px'},{duration:660,ease:'linear',queue:true}); + } + } + + + ///////////////////////// + // GHOST TRANSITION // + ///////////////////////// + if (newitem.data('transition') == "ghost" || newitem.data('transition') == "9") { + trans=true; + repeatMe(newitem,3); + + newitem.css({'position':'absolute','top':'0px','left':'0px','opacity':'1.0'}); + newitem.find('#before').css({'opacity':'0'}); + newitem.find('.freshslice').each(function(i){ + var $this=$(this); + var dist=140; + if (i==1) dist=80; + if (i==2) dist=20; + $this.css({'opacity':'0','top':'0px','left':dist+'px'}); + + if (i==newitem.find('.freshslice').size()-1) + $this.delay(i*290).animate({'opacity':'1.0','left':'0px'},{duration:800,queue:true, complete:killAnims}); + else + $this.delay(i*290).animate({'opacity':'1.0','left':'0px'},{duration:800,queue:true}); + + }); + } + + ///////////////////////// + // BLUR TRANSITION // + ///////////////////////// + if (newitem.data('transition') == "camfocus" || newitem.data('transition') == "10") { + trans=true; + repeatMe(newitem,15); + + newitem.css({'position':'absolute','top':'0px','left':'0px','opacity':'1.0'}); + newitem.find('#before').css({'opacity':'0'}); + newitem.find('.freshslice').each(function(i){ + var $this=$(this); + + $this.css({'opacity':'0.0'}); + $this.animate({'opacity':Math.random()*0.7,'top':(Math.random()*20-10)+'px','left':(Math.random()*20-10)+'px'},{duration:600}); + + if (i==newitem.find('.freshslice').size()-1) + $this.animate({'opacity':'1.0','left':'0px','top':'0px'},{duration:600,queue:true, complete:killAnims}); + else + $this.animate({'opacity':'1.0','left':'0px','top':'0px'},{duration:600,queue:true}); + + }); + } + + ///////////////////////// + // ROLLO2 TRANSITION // + ///////////////////////// + if (newitem.data('transition') == "rollo2" || newitem.data('transition') == "11") { + trans=true; + addHSlices(newitem,5); + //alert(newitem.html()); + //item.animate({'left':'0px','top':'0px','opacity':'0.0'},{duration:1000,queue:false}); + newitem.css({'position':'absolute','top':'0px','left':'0px','opacity':'1.0'}); + newitem.find('#before').css({'opacity':'0'}); + newitem.find('.freshslice').each(function(i){ + var $this=$(this); + + $this.css({'width':newitem.width()+'px','left':'0px','top':parseInt($this.css('top'),0)+100+'px'}); + + if (i==newitem.find('.freshslice').size()-1) + $this.delay(i*125).animate({'opacity':'1.0','top':(parseInt($this.css('top'),0)-100)+'px'},{duration:310,queue:true, complete:killAnims}); + else + $this.delay(i*125).animate({'opacity':'1.0','top':(parseInt($this.css('top'),0)-100)+'px'},{duration:310,queue:true}); + + }); + } + + + ///////////////////////// + // CURTAIN2 TRANSITION // + ///////////////////////// + if (newitem.data('transition') == "curtain2" || newitem.data('transition') == "12") { + trans=true; + addSlices(newitem,5); + //alert(newitem.html()); + //item.animate({'left':'0px','top':'0px','opacity':'0.0'},{duration:1000,queue:false}); + newitem.css({'position':'absolute','top':'0px','left':'0px','opacity':'1.0'}); + newitem.find('#before').css({'opacity':'0'}); + newitem.find('.freshslice').each(function(i){ + var $this=$(this); + + $this.css({'height':newitem.height()+'px','top':'0px','left':parseInt($this.css('left'),0)+100+'px'}); + + if (i==newitem.find('.freshslice').size()-1) + $this.delay(i*165).animate({'opacity':'1.0','left':(parseInt($this.css('left'),0)-100)+'px'},{duration:260,queue:true, complete:killAnims}); + else + $this.delay(i*165).animate({'opacity':'1.0','left':(parseInt($this.css('left'),0)-100)+'px'},{duration:260,queue:true}); + + }); + } + + + ///////////////////// + // RAIN TRANSITION // + ///////////////////// + if (newitem.data('transition') == "rain" || newitem.data('transition') == "13") { + trans=true; + addSlices(newitem,opt.width/30); + newitem.css({'position':'absolute','top':'0px','left':'0px','opacity':'1.0'}); + newitem.find('#before').css({'opacity':'0'}); + newitem.find('.freshslice').each(function(i){ + var $this=$(this); + var dist=opt.width/32; + $this.css({'height':newitem.height()+'px','top':(0-opt.height)+'px'}); + + if (i==newitem.find('.freshslice').size()-1) + $this.delay((i*(80-i))+50).animate({'opacity':'1.0','top':'0px'},{duration:680,queue:true, complete:killAnims}); + else + $this.delay(Math.random()*(i*(80-i))+50).animate({'opacity':'1.0','top':'0px'},{duration:680,queue:true}); + + }); + } + + + ////////////////////////// + // FOUNTAIN TRANSITION // + ///////////////////////// + if (newitem.data('transition') == "fountain" || newitem.data('transition') == "14") { + trans=true; + addSlices(newitem,opt.width/30); + newitem.css({'position':'absolute','top':'0px','left':'0px','opacity':'1.0'}); + newitem.find('#before').css({'opacity':'0'}); + var dist=opt.width/30; + var del=100+(70*dist/2); + newitem.find('.freshslice').each(function(i){ + var $this=$(this); + + $this.css({'height':newitem.height()+'px','top':(0-opt.height)+'px'}); + if (inewitem.index()) left = false; + if (item.index()==0 && newitem.index()!=1) left=false; + + + if (item.index()==(item.parent().find("li").size()-1) && newitem.index()==0) left=true; + + + + if (left) { + item.animate({'top':0-opt.height},{duration:650,queue:false}); + newitem.css({'opacity':'1.0','position':'absolute','top':opt.height,'left':'0px','width':opt.width, 'height':opt.height}); + newitem.animate({'left':'0px','top':'0px','opacity':'1.0'},{duration:650,queue:false}); + + } else { + item.animate({'top':opt.height},{duration:650,queue:false}); + newitem.css({'opacity':'1.0','position':'absolute','top':0-opt.height+'px','left':'0px','width':opt.width, 'height':opt.height}); + newitem.animate({'left':'0px','top':'0px','opacity':'1.0'},{duration:650,queue:false}); + } + } + + + + ///////////////////////////// + // LEFT - RIGHT TRANSITION // + ///////////////////////////// + if (trans==false) { + var left=true; + bannerTop.find('li').each(function () { + $this=$(this); + if ($this.index() != item.index() && $this.index()!=newitem.index()) + $this.css({'opacity':0.0}); + }); + if (item.index()>newitem.index()) left = false; + if (item.index()==0 && newitem.index()!=1) left=false; + + + if (item.index()==(item.parent().find("li").size()-1) && newitem.index()==0) left=true; + + + + if (left) { + item.animate({'left':0-opt.width},{duration:650,queue:false}); + newitem.css({'opacity':'1.0','position':'absolute','top':'0px','left':opt.width,'width':opt.width, 'height':opt.height}); + newitem.animate({'left':'0px','top':'0px','opacity':'1.0'},{duration:650,queue:false}); + + } else { + item.animate({'left':opt.width},{duration:650,queue:false}); + newitem.css({'opacity':'1.0','position':'absolute','top':'0px','left':0-opt.width,'width':opt.width, 'height':opt.height}); + newitem.animate({'left':'0px','top':'0px','opacity':'1.0'},{duration:650,queue:false}); + } + } + //////////////////////// + // END OF TRANSITIONs // + //////////////////////// + + + + //////////////////////////////// + // CHANGE THE THUMBNAIL ICONS // + //////////////////////////////// + item.parent().parent().parent().find(".mini_thumbnail_buttons").each( + function(i) { + var $this=$(this); + $this.css({'background-position':'top left'}); + $this.data('on',false); + $this.find('#cd').css({'display':'none'}); + if (i == newitem.parent().find("li").size() - newitem.index()-1) { + $this.data('on',true); + $this.find('#cd').data('t',0); + $this.find('#cd').css({'display':'block'}); + $this.css({'background-position':'bottom left'}); + } + }); + + + + + + // SET THE CURRENT ITEM IN DATA + bannerTop.data('currentSlide',newitem); + + // START + textanim(newitem,1500,bannerTop); + } + + + + //////////////////////////////// + // SET CSS OF THE FULL BANNER // + /////////////////////////////// + function initBorder(item,opt) { + item.find(".creative_layer").css({'width':opt.width+'px', + 'height':opt.height+'px', + 'position':'absolute', + 'top':'0px', + 'left':'0px' + }); + + + item.css({ + "width":opt.width+'px', + "height":opt.height+'px', + "position":"relative" + }); + + + } + + + + + ////////////////////////////////////// + // SET CSS OF THE BANNER HOLDER DIV // + ////////////////////////////////////// + function initHolder(item,i,opt){ + + + $(item).css({ + "width":opt.width+"px", + "height":opt.height+"px", + "z-index":"200", + "position":"relative", + "overflow":"hidden", + "left":0, + "top":0 + + }); + + if (i>0) $(item).css({ "opacity":0}); + } + + + //////////////////////////////////// + // CREATE A MASK FOR ALL SUBITEMS // + //////////////////////////////////// + function initMask(item,opt) { + item.find("ul").wrap("
    "); + item.find("#mask").css({ + 'overflow':'hidden', + 'width':opt.width+'px', + 'height':opt.height+'px', + 'position':'absolute' + + }); + + + + } + + + + //////////////////////////////////////////// + // START AFTER LOADIN THE KEN BURN SLIDER // + //////////////////////////////////////////// + function startBanner(item,opt) { + + var dragH = item.data().dragH; + + // SET THE BORDER + item.each( function() { + $this=$(this); + initBorder($this,opt) + }); + + // INITIALISING OF THE ITEMS AND MAIN BANNER HOLDER + item.find("li").each( function(i) { + $this=$(this); + initHolder($this,i,opt) + }); + + item.css({'opacity':'0.0', 'display':'block'}); + item.animate({'opacity':'1.0'},1500); + + createNavigation(item,opt,item.data('currentSlide')); + + } + + + /////////////////////////// + // CREATE THE NAVIGATION // + /////////////////////////// + + function createNavigation(item,opt) { + + var toolbox = $('
    '); + if ($.browser.msie && $.browser.version >= 7 && $.browser.version < 9 ) { + toolbox.css({'z-index':'4200'}); + toolbox.addClass('noFilterClass'); + } else { + toolbox.css({'z-index':'4200'}); + } + item.append(toolbox); + + + + + + //var toolboxWidth = 3 + item.find("li").size() ; + + //toolbox.css({'z-index':'4051'}); + + + var prev=$(""); + var next=$(""); + + //////////////////////////////////// + // HOVERING OVER THE ARROWS EVENT // + //////////////////////////////////// + var hoverInit=function(button) { + button.hover( + function() { + var $this=$(this); + if ($this.attr('id')=='previous') + $this.css({'background-position':'bottom right'}); + else + $this.css({'background-position':'bottom left'}); + }, + function() { + $this=$(this); + if ($this.attr('id')=='previous') + $this.css({'background-position':'top right'}); + else + $this.css({'background-position':'top left'}); + }); + } + + /////////////////////////////// + // CLICK ON THE ARROWS EVENT // + /////////////////////////////// + var clickInit=function(button) { + button.click( + function() { + var $this=$(this); + var newId = item.data('currentSlide').index(); + if ($this.attr('id')=="previous") + newId++; + else + newId--; + if (newId==item.data('currentSlide').parent().find("li").size()) newId=0; + if (newId==-1) newId=item.data('currentSlide').parent().find("li").size()-1; + + var newcurrentSlide = item.find("li").each( + function(i) { + $this=$(this); + if (i == newId) { + swapBanner(item.data('currentSlide'),$this,item,opt); + } + }); + } + ) //End of Button Click + } + + hoverInit(prev);clickInit(prev); + hoverInit(next);clickInit(next); + + toolbox.append(prev); + toolbox.append(next); + + + + var thdivider=$("
    "); + toolbox.append(thdivider); + + + /////////////////////////// + // CREATE THE THUMBNAILS // + /////////////////////////// + + item.find("li").each( + function(i) { + + var $this=$(this); + var nums = $this.parent().find("li").size()-1; + + var thumbnail=$("
    "); + toolbox.append(thumbnail); + + if (item.data('currentSlide').index() == (nums-i)) { + thumbnail.data('on',true); + thumbnail.css({'background-position':'bottom left'}); + } + + var cd=$(''); + cd.data('idNum',(nums-i)); + + thumbnail.append(cd); + + if ($.browser.msie && $.browser.version >= 7 && $.browser.version < 9 ) + cd.addClass('noFilterClass'); + + if ((nums-i)==0) { + cd.css({'display':'block'}); + } + + + thumbnail.hover( + function() { + var $this=$(this); + $this.css({'background-position':'top right'}); + + if ($this.data().on == true) + $this.css({'background-position':'bottom right'}); + + + + + var it =$('
    '); + $this.parent().append(it); + + + if ($this.hasClass('wedding_mini_thumbnail_buttons')) { + it.addClass('wedding_image_thumbnail'); + + } else { + if ($this.hasClass('fashion_mini_thumbnail_buttons')) { + it.addClass('fashion_image_thumbnail'); + } else { + if ($this.hasClass('custom_mini_thumbnail_buttons')) { + it.addClass('custom_image_thumbnail'); + } + } + } + + var searchedID = $(this).attr('id'); + var imgsrc=""; + var imgw=0; + var imgh=0; + item.find('li').each(function() { + var $this=$(this); + if ($this.index() == searchedID) { + var bef=$this.find("#before"); + imgsrc= bef.attr('src'); + if ($this.data('orgWidth')==undefined) $this.data('orgWidth',bef.width()); + if ($this.data('orgHeight')==undefined) $this.data('orgHeight',bef.height()); + imgw = $this.data('orgWidth'); + imgh = $this.data('orgHeight'); + } + }); + + if (it.width()==0) { + imgw = imgw/5; + imgh = imgh/5; + it.css({'width':imgw+'px','height':imgh+'px'}); + } else { + imgw=it.width(); + imgh=it.height(); + } + + + var newWidth =imgw-6; + var newHeight = imgh-6; + var mt = parseInt(it.css('margin-top'),0); + + if (mt==0) mt = 0-newHeight-6; + it.css({'left':($this.position().left+10+-newWidth/2)+'px','width':newWidth+6+'px','height':newHeight+6+'px','margin-top':mt+'px'}); + + it.append('
    '); + it.append('
    '); + it.append('
    '); + + if ($this.hasClass('wedding_mini_thumbnail_buttons')) { + it.find('#image_thumbnail_arrow').addClass('wedding_image_thumbnail_arrow'); + } else { + if ($this.hasClass('fashion_mini_thumbnail_buttons')) { + it.find('#image_thumbnail_arrow').addClass('fashion_image_thumbnail_arrow'); + } else { + if ($this.hasClass('custom_mini_thumbnail_buttons')) { + it.find('#image_thumbnail_arrow').addClass('custom_image_thumbnail_arrow'); + } + } + } + + it.animate({'opacity':1.0,'top':+1},{duration:200}); + }, + function() { + var $this=$(this); + $this.css({'background-position':'top left'}); + if ($this.data().on == true) + $this.css({'background-position':'bottom left'}); + $this.parent().find("#image_thumbnail").remove(); + + }); + + thumbnail.click( + function() { + var $this=$(this); + if ($this.data().on != true) { + var newId = $(this).attr('id'); + var newcurrentSlide = item.find("li").each( + function(i) { + var $this=$(this); + if (i == newId) { + swapBanner(item.data('currentSlide'),$this,item,opt); + } + }); + + } + + }) //End of Thumbnail Click + }) // End of Creating Thumbnails + item.find('#toolbox').css({'width':item.find("#toolbox").width()+'px'}); + + } // End of Creating Navigation + + + + + + ///////////////////////////// + // START THE ROTATION HERE // + ///////////////////////////// + function startRotation(item,opt) { + + + + // SET THE BORDER + item.each( function() { + $this=$(this); + initBorder($this,opt) + }); + + // INITIALISING OF THE ITEMS AND MAIN BANNER HOLDER + item.find("li").each( function(i) { + $this=$(this); + initHolder($this,i,opt) + }); + + item.find("ul").css({'display':'block'}); + + + item.find("#toolbox").animate({'opacity':'1.0'},1000); + + //turn off all slides, to make sure nothing pops up without our controll.... + if ($.browser.msie && $.browser.version >= 7 && $.browser.version < 9 ) { + item.find('ul li').css({'display':'block','opacity':'0.0'}); + item.find('ul li').animate({'opacity':'1.0'},300); + } else { + item.find('ul li').css({'display':'block'}); + } + item.find('#mainloader').animate({'opacity':'0.3'},{duration:500, complete:function() { + var $this=$(this); + $this.remove(); + }}); + textanim(item.data('currentSlide'),500,item); + } + + + //////////////////////////////////// + // INITIALISE THE DRAG FUNCTION // + /////////////////////////////////// + function initDrag(item) { + + jQuery(item.find("#drag")).animaDrag({ + speed: 0, + interval: 0, + easing: null, + direction: 'vertical', + boundary: item.find('#mask'), + boundary_offset:30,//opt.banner_bordersize, + grip: null, + overlay: false, + afterDiv: item.data('currentSlide') + + }); + } + + + + /////////////////// + // TEXTANIMATION // + ////////////////// + function textanim (item,edelay,bannerTop) { + + + var counter=0; + + var clh = bannerTop.find('#creative_layer_holder'); + + item.find('div').each(function(i) { + var $this=$(this); + if ($this.data('parent') == undefined) $this.data('parent',$this.parent()); + if ($this.hasClass("creative_layer")) { + $this.css({'opacity':'0.0'}); + $this.appendTo(clh); + } + }); + // SHITTA IE8 MUST BE HANDLED AN OTHER WAY..... + //if (!($.browser.msie && $.browser.version >= 7 && $.browser.version < 9 )) { + bannerTop.find('#creative_layer_holder div').each(function(i) { + + var $this=$(this); + + + + if ($this.hasClass("creative_layer")) { + $this.css({'opacity':'1.0'}); + if (($.browser.msie && $.browser.version >= 7 && $.browser.version < 9 )) { + $this.addClass('noFilterClass'); + $this.css({'display':'none'}); + } + } + if ($this.attr('id')!="ext_ext_before" && + !$this.hasClass("freshslice") && + !$this.hasClass("freshbox")) + { + $this.stop(true,true); + } + + // REMEMBER OLD VALUES + if ($this.data('_top') == undefined) $this.data('_top',$this.position().top); + if ($this.data('_left') == undefined) $this.data('_left',$this.position().left); + if ($this.data('_op') == undefined) { $this.data('_op',$this.css('opacity'));} + + + // CHANGE THE z-INDEX HERE + $this.css({'z-index':1200}); + + // IF IE8 THAN WE NEED TO MAKE IT VISIBLE FIRST + if (($.browser.msie && $.browser.version >= 7 && $.browser.version < 9 )) { + if ($this.hasClass("creative_layer")) { + $this.css({'display':'block'}); + //$this.delay(edelay+(counter+1)*200).animate({'top':$this.data('_top')+20+"px"},{duration:300,queue:false,complete:function(){$(this).css({'display':'block'})}}).animate({'top':$this.data('_top')-20+"px"},{duration:300,queue:true}); + //counter++; + + } + } else { + + //// - SLIDE UP - //// + if ($this.hasClass('slideup')) { + $this.animate({'top':$this.data('_top')+20+"px"}, + {duration:0,queue:false}) + .delay(edelay + (counter+1)*200) + .animate({'top':$this.data('_top')-20+"px"}, + {duration:300,queue:true}) + counter++; + } + + + //// - SLIDE RIGHT - //// + if ($this.hasClass('slideright')) { + $this.animate({'left':$this.data('_left')-20+"px"}, + {duration:0,queue:false}) + .delay(edelay + (counter+1)*200) + .animate({'left':$this.data('_left')+20+"px"}, + {duration:300,queue:true}) + counter++; + } + + + //// - SLIDE DOWN - //// + if ($this.hasClass('slidedown')) { + $this.animate({'top':$this.data('_top')-20+"px"}, + {duration:0,queue:false}) + .delay(edelay + (counter+1)*200) + .animate({'top':$this.data('_top')+20+"px"}, + {duration:300,queue:true}) + counter++; + } + + + //// - SLIDE LEFT - //// + if ($this.hasClass('slideleft')) { + $this.animate({'left':$this.data('_left')+20+"px"}, + {duration:0,queue:false}) + .delay(edelay + (counter+1)*200) + .animate({'left':$this.data('_left')-20+"px"}, + {duration:300,queue:true}) + counter++; + } + + + //// - FADE UP - //// + if ($this.hasClass('fadeup')) { + $this.animate({'top':$this.data('_top')+20+"px", + 'opacity':0}, + {duration:0,queue:false}) + .delay(edelay + (counter+1)*200) + .animate({'top':$this.data('_top')-20+"px", + 'opacity':$this.data('_op')}, + {duration:300,queue:true}) + counter++; + } + + + //// - FADE RIGHT - //// + if ($this.hasClass('faderight')) { + $this.animate({'left':$this.data('_left')-20+"px", + 'opacity':0}, + {duration:0,queue:false}) + .delay(edelay + (counter+1)*200) + .animate({'left':$this.data('_left')+20+"px", + 'opacity':$this.data('_op')}, + {duration:300,queue:true}) + counter++; + } + + + //// - FADE DOWN - //// + if ($this.hasClass('fadedown')) { + $this.animate({'top':$this.data('_top')-20+"px", + 'opacity':0}, + {duration:0,queue:false}) + .delay(edelay + (counter+1)*200) + .animate({'top':$this.data('_top')+20+"px", + 'opacity':$this.data('_op')}, + {duration:300,queue:true}) + counter++; + } + + + //// - FADE LEFT - //// + if ($this.hasClass('fadeleft')) { + $this.animate({'left':$this.data('_left')+20+"px", + 'opacity':0}, + {duration:0,queue:false}) + .delay(edelay + (counter+1)*200) + .animate({'left':$this.data('_left')-20+"px", + 'opacity':$this.data('_op')}, + {duration:300,queue:true}) + counter++; + } + + //// - FADE - //// + if ($this.hasClass('fade')) { + $this.animate({'opacity':0}, + {duration:0,queue:false}) + .delay(edelay + (counter+1)*200) + .animate({'opacity':$this.data('_op')}, + {duration:300,queue:true}) + counter++; + } + } // End of NON IE ANIMS + }); // END OF TEXT ANIMS ON DIVS + /* } else { //END OF IE 8 CHECK + clh.css({'display':'none'}); + bannerTop.find('#creative_layer_holder div').each(function(i) { + var $this=$(this); + $this.delay(edelay).animate({'opacity':'1.0'},{duration:0,complete:function() {$(this).css({'filter':'0'})}}); + }); + clh.delay(edelay).animate({'opacity':'1.0'},{duration:0,complete:function() {$(this).css({'filter':'0','display':'block'})}}); + }*/ + + + + } +})(jQuery); + + + + + \ No newline at end of file diff --git a/public/sliders/rama-the-jquery-slider-plugin/rama/js/freshline/jquery.freshline.FramesBanner.min.js b/public/sliders/rama-the-jquery-slider-plugin/rama/js/freshline/jquery.freshline.FramesBanner.min.js new file mode 100644 index 0000000..89a6cc9 --- /dev/null +++ b/public/sliders/rama-the-jquery-slider-plugin/rama/js/freshline/jquery.freshline.FramesBanner.min.js @@ -0,0 +1,1954 @@ +(function (a, b) { + function u(c, d, e) { + var f = 0; + var g = e.find("#creative_layer_holder"); + c.find("div").each(function (c) { + var d = a(this); + if (d.data("parent") == b) d.data("parent", d.parent()); + if (d.hasClass("creative_layer")) { + d.css({ + opacity: "0.0" + }); + d.appendTo(g) + } + }); + e.find("#creative_layer_holder div").each(function (c) { + var e = a(this); + if (e.hasClass("creative_layer")) { + e.css({ + opacity: "1.0" + }); + if (a.browser.msie && a.browser.version >= 7 && a.browser.version < 9) { + e.addClass("noFilterClass"); + e.css({ + display: "none" + }) + } + } + if (e.attr("id") != "ext_ext_before" && !e.hasClass("freshslice") && !e.hasClass("freshbox")) { + e.stop(true, true) + } + if (e.data("_top") == b) e.data("_top", e.position().top); + if (e.data("_left") == b) e.data("_left", e.position().left); + if (e.data("_op") == b) { + e.data("_op", e.css("opacity")) + } + e.css({ + "z-index": 1200 + }); + if (a.browser.msie && a.browser.version >= 7 && a.browser.version < 9) { + if (e.hasClass("creative_layer")) { + e.css({ + display: "block" + }) + } + } else { + if (e.hasClass("slideup")) { + e.animate({ + top: e.data("_top") + 20 + "px" + }, { + duration: 0, + queue: false + }).delay(d + (f + 1) * 200).animate({ + top: e.data("_top") - 20 + "px" + }, { + duration: 300, + queue: true + }); + f++ + } + if (e.hasClass("slideright")) { + e.animate({ + left: e.data("_left") - 20 + "px" + }, { + duration: 0, + queue: false + }).delay(d + (f + 1) * 200).animate({ + left: e.data("_left") + 20 + "px" + }, { + duration: 300, + queue: true + }); + f++ + } + if (e.hasClass("slidedown")) { + e.animate({ + top: e.data("_top") - 20 + "px" + }, { + duration: 0, + queue: false + }).delay(d + (f + 1) * 200).animate({ + top: e.data("_top") + 20 + "px" + }, { + duration: 300, + queue: true + }); + f++ + } + if (e.hasClass("slideleft")) { + e.animate({ + left: e.data("_left") + 20 + "px" + }, { + duration: 0, + queue: false + }).delay(d + (f + 1) * 200).animate({ + left: e.data("_left") - 20 + "px" + }, { + duration: 300, + queue: true + }); + f++ + } + if (e.hasClass("fadeup")) { + e.animate({ + top: e.data("_top") + 20 + "px", + opacity: 0 + }, { + duration: 0, + queue: false + }).delay(d + (f + 1) * 200).animate({ + top: e.data("_top") - 20 + "px", + opacity: e.data("_op") + }, { + duration: 300, + queue: true + }); + f++ + } + if (e.hasClass("faderight")) { + e.animate({ + left: e.data("_left") - 20 + "px", + opacity: 0 + }, { + duration: 0, + queue: false + }).delay(d + (f + 1) * 200).animate({ + left: e.data("_left") + 20 + "px", + opacity: e.data("_op") + }, { + duration: 300, + queue: true + }); + f++ + } + if (e.hasClass("fadedown")) { + e.animate({ + top: e.data("_top") - 20 + "px", + opacity: 0 + }, { + duration: 0, + queue: false + }).delay(d + (f + 1) * 200).animate({ + top: e.data("_top") + 20 + "px", + opacity: e.data("_op") + }, { + duration: 300, + queue: true + }); + f++ + } + if (e.hasClass("fadeleft")) { + e.animate({ + left: e.data("_left") + 20 + "px", + opacity: 0 + }, { + duration: 0, + queue: false + }).delay(d + (f + 1) * 200).animate({ + left: e.data("_left") - 20 + "px", + opacity: e.data("_op") + }, { + duration: 300, + queue: true + }); + f++ + } + if (e.hasClass("fade")) { + e.animate({ + opacity: 0 + }, { + duration: 0, + queue: false + }).delay(d + (f + 1) * 200).animate({ + opacity: e.data("_op") + }, { + duration: 300, + queue: true + }); + f++ + } + } + }) + } + function t(a) { + jQuery(a.find("#drag")).animaDrag({ + speed: 0, + interval: 0, + easing: null, + direction: "vertical", + boundary: a.find("#mask"), + boundary_offset: 30, + grip: null, + overlay: false, + afterDiv: a.data("currentSlide") + }) + } + function s(b, c) { + b.each(function () { + $this = a(this); + n($this, c) + }); + b.find("li").each(function (b) { + $this = a(this); + o($this, b, c) + }); + b.find("ul").css({ + display: "block" + }); + b.find("#toolbox").animate({ + opacity: "1.0" + }, 1e3); + if (a.browser.msie && a.browser.version >= 7 && a.browser.version < 9) { + b.find("ul li").css({ + display: "block", + opacity: "0.0" + }); + b.find("ul li").animate({ + opacity: "1.0" + }, 300) + } else { + b.find("ul li").css({ + display: "block" + }) + } + b.find("#mainloader").animate({ + opacity: "0.3" + }, { + duration: 500, + complete: function () { + var b = a(this); + b.remove() + } + }); + u(b.data("currentSlide"), 500, b) + } + function r(c, d) { + var e = a('
    '); + if (a.browser.msie && a.browser.version >= 7 && a.browser.version < 9) { + e.css({ + "z-index": "4200" + }); + e.addClass("noFilterClass") + } else { + e.css({ + "z-index": "4200" + }) + } + c.append(e); + var f = a(""); + var g = a(""); + var h = function (b) { + b.hover(function () { + var b = a(this); + if (b.attr("id") == "previous") b.css({ + "background-position": "bottom right" + }); + else b.css({ + "background-position": "bottom left" + }) + }, function () { + $this = a(this); + if ($this.attr("id") == "previous") $this.css({ + "background-position": "top right" + }); + else $this.css({ + "background-position": "top left" + }) + }) + }; + var i = function (b) { + b.click(function () { + var b = a(this); + var e = c.data("currentSlide").index(); + if (b.attr("id") == "previous") e++; + else e--; + if (e == c.data("currentSlide").parent().find("li").size()) e = 0; + if (e == -1) e = c.data("currentSlide").parent().find("li").size() - 1; + var f = c.find("li").each(function (f) { + b = a(this); + if (f == e) { + m(c.data("currentSlide"), b, c, d) + } + }) + }) + }; + h(f); + i(f); + h(g); + i(g); + e.append(f); + e.append(g); + var j = a("
    "); + e.append(j); + c.find("li").each(function (f) { + var g = a(this); + var h = g.parent().find("li").size() - 1; + var i = a("
    "); + e.append(i); + if (c.data("currentSlide").index() == h - f) { + i.data("on", true); + i.css({ + "background-position": "bottom left" + }) + } + var j = a(''); + j.data("idNum", h - f); + i.append(j); + if (a.browser.msie && a.browser.version >= 7 && a.browser.version < 9) j.addClass("noFilterClass"); + if (h - f == 0) { + j.css({ + display: "block" + }) + } + i.hover(function () { + var d = a(this); + d.css({ + "background-position": "top right" + }); + if (d.data().on == true) d.css({ + "background-position": "bottom right" + }); + var e = a('
    '); + d.parent().append(e); + if (d.hasClass("wedding_mini_thumbnail_buttons")) { + e.addClass("wedding_image_thumbnail") + } else { + if (d.hasClass("fashion_mini_thumbnail_buttons")) { + e.addClass("fashion_image_thumbnail") + } else { + if (d.hasClass("custom_mini_thumbnail_buttons")) { + e.addClass("custom_image_thumbnail") + } + } + } + var f = a(this).attr("id"); + var g = ""; + var h = 0; + var i = 0; + c.find("li").each(function () { + var c = a(this); + if (c.index() == f) { + var d = c.find("#before"); + g = d.attr("src"); + if (c.data("orgWidth") == b) c.data("orgWidth", d.width()); + if (c.data("orgHeight") == b) c.data("orgHeight", d.height()); + h = c.data("orgWidth"); + i = c.data("orgHeight") + } + }); + if (e.width() == 0) { + h = h / 5; + i = i / 5; + e.css({ + width: h + "px", + height: i + "px" + }) + } else { + h = e.width(); + i = e.height() + } + var j = h - 6; + var k = i - 6; + var l = parseInt(e.css("margin-top"), 0); + if (l == 0) l = 0 - k - 6; + e.css({ + left: d.position().left + 5 + -j / 2 + "px", + width: j + 6 + "px", + height: k + 6 + "px", + "margin-top": (l-10) + "px" + }); + e.append('
    '); + e.append('
    '); + e.append('
    '); + if (d.hasClass("wedding_mini_thumbnail_buttons")) { + e.find("#image_thumbnail_arrow").addClass("wedding_image_thumbnail_arrow") + } else { + if (d.hasClass("fashion_mini_thumbnail_buttons")) { + e.find("#image_thumbnail_arrow").addClass("fashion_image_thumbnail_arrow") + } else { + if (d.hasClass("custom_mini_thumbnail_buttons")) { + e.find("#image_thumbnail_arrow").addClass("custom_image_thumbnail_arrow") + } + } + } + e.animate({ + opacity: 1, + top: +1 + }, { + duration: 200 + }) + }, function () { + var b = a(this); + b.css({ + "background-position": "top left" + }); + if (b.data().on == true) b.css({ + "background-position": "bottom left" + }); + b.parent().find("#image_thumbnail").remove() + }); + i.click(function () { + var b = a(this); + if (b.data().on != true) { + var e = a(this).attr("id"); + var f = c.find("li").each(function (b) { + var f = a(this); + if (b == e) { + m(c.data("currentSlide"), f, c, d) + } + }) + } + }) + }); + c.find("#toolbox").css({ + width: c.find("#toolbox").width() + "px" + }) + } + function q(b, c) { + var d = b.data().dragH; + b.each(function () { + $this = a(this); + n($this, c) + }); + b.find("li").each(function (b) { + $this = a(this); + o($this, b, c) + }); + b.css({ + opacity: "0.0", + display: "block" + }); + b.animate({ + opacity: "1.0" + }, 1500); + r(b, c, b.data("currentSlide")) + } + function p(a, b) { + a.find("ul").wrap("
    "); + a.find("#mask").css({ + overflow: "hidden", + width: b.width + "px", + height: b.height + "px", + position: "absolute" + }) + } + function o(b, c, d) { + a(b).css({ + width: d.width + "px", + height: d.height + "px", + "z-index": "200", + position: "relative", + overflow: "hidden", + left: 0, + top: 0 + }); + if (c > 0) a(b).css({ + opacity: 0 + }) + } + function n(a, b) { + a.find(".creative_layer").css({ + width: b.width + "px", + height: b.height + "px", + position: "absolute", + top: "0px", + left: "0px" + }); + a.css({ + width: b.width + "px", + height: b.height + "px", + position: "relative" + }) + } + function m(c, d, e, f) { + var g = false; + e.find("#creative_layer_holder div").each(function (b) { + var c = a(this); + var d = c.data("parent"); + c.appendTo(d) + }); + e.find("li").each(function (b) { + var e = a(this); + if (e.index() != c.index() && e.index() != d.index()) { + e.css({ + "z-index": "950", + opacity: "0.0" + }); + if (a.browser.msie && a.browser.version >= 7 && a.browser.version < 9) e.addClass("noFilterClass") + } + }); + c.css({ + "z-index": "995" + }); + d.css({ + "z-index": "1000" + }); + if (c.data("orgWidth") == b) { + c.data("orgWidth", c.find("#before").width()); + c.find("#before").data("orgWidth", c.data("orgWidth")) + } + if (c.data("orgHeight") == b) { + c.data("orgHeight", c.find("#before").height()); + c.find("#before").data("orgHeight", c.data("orgHeight")) + } + if (d.data("orgWidth") == b) { + d.data("orgWidth", d.find("#before").width()); + d.find("#before").data("orgWidth", d.data("orgWidth")) + } + if (d.data("orgHeight") == b) { + d.data("orgHeight", d.find("#before").height()); + d.find("#before").data("orgHeight", d.data("orgHeight")) + } + var m = f.pt + f.height / 2 - d.data("orgHeight") / 2; + var n = f.pl + f.width / 2 - d.data("orgWidth") / 2; + var o = d.data("orgWidth"); + var p = d.data("orgHeight"); + if (o > f.width) o = f.width; + if (p > f.height) p = f.height; + if (m < f.pt) m = f.pt; + if (n < f.pl) n = f.pl; + e.find("#mask:first").css({ + top: m + "px", + left: n + "px", + width: o + "px", + height: p + "px" + }); + c.find("#before").css({ + width: c.data("orgWidth") + "px", + height: c.data("orgHeight") + "px" + }); + d.find("#before").css({ + width: d.data("orgWidth") + "px", + height: d.data("orgHeight") + "px" + }); + c.css({ + width: f.width + "px", + height: f.height + "px" + }); + d.css({ + width: f.width + "px", + height: f.height + "px" + }); + c.find("#before").stop(true, true); + d.find("#before").stop(true, true); + d.stop(true, true); + d.find(".freshslice").each(function (b) { + var c = a(this); + c.remove() + }); + d.find(".freshbox").each(function (b) { + var c = a(this); + c.remove() + }); + if (!(a.browser.msie && a.browser.version >= 7 && a.browser.version < 9)) { + if (d.data("transition") == "gradientfade" || d.data("transition") == "1") { + g = true; + k(d, d.width() / 5); + d.css({ + position: "absolute", + top: "0px", + left: "0px", + opacity: "1.0" + }); + d.find("#before").css({ + opacity: "0" + }); + d.find(".freshslice").each(function (b) { + var c = a(this); + c.css({ + height: d.height() + "px", + top: "0px" + }); + if (b == d.find(".freshslice").size() - 1) c.delay(b).animate({ + opacity: "1.0" + }, { + duration: b * 30 + 40, + queue: true, + complete: l + }); + else c.delay(b).animate({ + opacity: "1.0" + }, { + duration: b * 20 + 40, + queue: true + }) + }) + } + if (d.data("transition") == "gradientfade2" || d.data("transition") == "2") { + g = true; + j(d, d.height() / 5); + d.css({ + position: "absolute", + top: "0px", + left: "0px", + opacity: "1.0" + }); + d.find("#before").css({ + opacity: "0" + }); + d.find(".freshslice").each(function (b) { + var c = a(this); + c.css({ + width: d.width() + "px", + left: "0px" + }); + if (b == d.find(".freshslice").size() - 1) c.delay(b).animate({ + opacity: "1.0" + }, { + duration: b * 40 + 100, + queue: true, + ease: "linear", + complete: l + }); + else c.delay(b).animate({ + opacity: "1.0" + }, { + duration: b * 30 + 100, + queue: true, + ease: "linear" + }) + }) + } + if (d.data("transition") == "box-randomfade" || d.data("transition") == "3") { + g = true; + h(d, f.width / 80, f.height / 80); + d.css({ + position: "absolute", + top: "0px", + left: "0px", + opacity: "1.0" + }); + d.find("#before").css({ + opacity: "0" + }); + var q = []; + d.find(".freshbox").each(function (a) { + q[a] = a + }); + for (var r = 0; r < q.length; r++) { + var s = Math.round(Math.random() * q.length); + var t = q[s]; + q[s] = q[r]; + q[r] = t + } + d.find(".freshbox").each(function (b) { + var c = a(this); + if (b == d.find(".freshbox").size() - 1) c.delay(b * 15 + 150).animate({ + opacity: "1.0" + }, { + duration: Math.random() * 1e3 + 300, + ease: "linear", + queue: true, + complete: l + }); + else c.delay(q[b] * 12 + 120).animate({ + opacity: "1.0" + }, { + duration: Math.random() * 1e3 + 300, + ease: "linear", + queue: true + }) + }) + } + if (d.data("transition") == "box-randomzoom" || d.data("transition") == "4") { + g = true; + h(d, f.width / 80, f.height / 80); + d.css({ + position: "absolute", + top: "0px", + left: "0px", + opacity: "1.0" + }); + d.find("#before").css({ + opacity: "0" + }); + var q = []; + d.find(".freshbox").each(function (a) { + q[a] = a + }); + for (var r = 0; r < q.length; r++) { + var s = Math.round(Math.random() * q.length); + var t = q[s]; + q[s] = q[r]; + q[r] = t + } + d.find(".freshbox").each(function (b) { + var c = a(this); + var e = c.width(); + var f = c.height(); + var e = c.width(); + var f = c.height(); + c.css({ + width: "0px", + height: "0px", + opacity: "1.0", + "-webkit-border-radius": "5px", + "-moz-border-radius": "5px", + "border-radius": "5px" + }); + if (b == d.find(".freshbox").size() - 1) c.delay(b * 30 + 170).animate({ + width: e + 10 + "px", + height: f + 10 + "px" + }, { + duration: 250, + ease: "linear", + queue: true, + complete: l + }); + else c.delay(q[b] * 28 + 120).animate({ + width: 10 + e + "px", + height: f + 10 + "px" + }, { + duration: 250, + ease: "linear", + queue: true + }) + }) + } + if (d.data("transition") == "box-diagonalzoom" || d.data("transition") == "5") { + g = true; + h(d, f.width / 80, f.height / 80); + d.css({ + position: "absolute", + top: "0px", + left: "0px", + opacity: "1.0" + }); + d.find("#before").css({ + opacity: "0.0" + }); + var v = false; + var w = 1; + var x = 0; + var y = 1; + var z = Math.round(f.width / 80); + var A = Math.round(f.height / 80); + var B = d.find(".freshbox").size(); + for (var C = 0; C < B; C++) { + var D = d.find(".freshbox:eq(" + (w - 1) + ")"); + if (w - (z - 1) > x * z) { + w = w - (z - 1) + } else { + w = y; + w = w + z; + y = w + } + if (w - z * (x + 1) == 0) x++; + if (w > B) { + v = true; + w = y - z + 1; + y = w + } + var E = D.width(); + var F = D.height(); + D.css({ + width: "0px", + height: "0px", + opacity: "1.0", + "-webkit-border-radius": "5px", + "-moz-border-radius": "5px", + "border-radius": "5px" + }); + if (C == d.find(".freshbox").size() - 1) D.delay(C * 30).animate({ + width: E + 10 + "px", + height: F + 10 + "px" + }, { + duration: 660, + ease: "linear", + queue: true, + complete: l + }); + else D.delay(C * 30).animate({ + width: 10 + E + "px", + height: F + 10 + "px" + }, { + duration: 660, + ease: "linear", + queue: true + }) + } + } + if (d.data("transition") == "box-diagonalfade" || d.data("transition") == "6") { + g = true; + h(d, f.width / 80, f.height / 80); + d.css({ + position: "absolute", + top: "0px", + left: "0px", + opacity: "1.0" + }); + d.find("#before").css({ + opacity: "0.0" + }); + var v = false; + var w = 1; + var x = 0; + var y = 1; + var z = Math.round(f.width / 80); + var A = Math.round(f.height / 80); + var B = d.find(".freshbox").size(); + for (var C = 0; C < B; C++) { + var D = d.find(".freshbox:eq(" + (w - 1) + ")"); + if (w - (z - 1) > x * z) { + w = w - (z - 1) + } else { + w = y; + w = w + z; + y = w + } + if (w - z * (x + 1) == 0) x++; + if (w > B) { + v = true; + w = y - z + 1; + y = w + } + var E = D.width(); + var F = D.height(); + D.css({ + opacity: "0.0" + }); + if (C == d.find(".freshbox").size() - 1) D.delay(C * 30).animate({ + opacity: "1.0" + }, { + duration: 660, + ease: "linear", + queue: true, + complete: l + }); + else D.delay(C * 30).animate({ + opacity: "1.0" + }, { + duration: 660, + ease: "linear", + queue: true + }) + } + } + if (d.data("transition") == "box-leftfade" || d.data("transition") == "7") { + g = true; + h(d, f.width / 80, f.height / 80); + d.css({ + position: "absolute", + top: "0px", + left: "0px", + opacity: "1.0" + }); + d.find("#before").css({ + opacity: "0.0" + }); + var v = false; + var w = 1; + var x = 2; + var y = 1; + var z = Math.round(f.width / 80); + var A = Math.round(f.height / 80); + var B = d.find(".freshbox").size(); + for (var C = 0; C < B; C++) { + var D = d.find(".freshbox:eq(" + (w - 1) + ")"); + w = w + z; + if (w > B) { + w = x; + x++ + } + D.css({ + opacity: "0.0" + }); + if (C == d.find(".freshbox").size() - 1) D.delay(C * 30).animate({ + opacity: "1.0" + }, { + duration: 660, + ease: "linear", + queue: true, + complete: l + }); + else D.delay(C * 30).animate({ + opacity: "1.0" + }, { + duration: 660, + ease: "linear", + queue: true + }) + } + } + if (d.data("transition") == "box-leftzoom" || d.data("transition") == "8") { + g = true; + h(d, f.width / 80, f.height / 80); + d.css({ + position: "absolute", + top: "0px", + left: "0px", + opacity: "1.0" + }); + d.find("#before").css({ + opacity: "0.0" + }); + var v = false; + var w = 1; + var x = 2; + var y = 1; + var z = Math.round(f.width / 80); + var A = Math.round(f.height / 80); + var B = d.find(".freshbox").size(); + for (var C = 0; C < B; C++) { + var D = d.find(".freshbox:eq(" + (w - 1) + ")"); + w = w + z; + if (w > B) { + w = x; + x++ + } + var E = D.width(); + var F = D.height(); + D.css({ + width: "0px", + height: "0px", + opacity: "1.0", + "-webkit-border-radius": "5px", + "-moz-border-radius": "5px", + "border-radius": "5px" + }); + if (C == d.find(".freshbox").size() - 1) D.delay(C * 30).animate({ + width: E + 10 + "px", + height: F + 10 + "px" + }, { + duration: 660, + ease: "linear", + queue: true, + complete: l + }); + else D.delay(C * 30).animate({ + width: E + 10 + "px", + height: F + 10 + "px" + }, { + duration: 660, + ease: "linear", + queue: true + }) + } + } + if (d.data("transition") == "ghost" || d.data("transition") == "9") { + g = true; + i(d, 3); + d.css({ + position: "absolute", + top: "0px", + left: "0px", + opacity: "1.0" + }); + d.find("#before").css({ + opacity: "0" + }); + d.find(".freshslice").each(function (b) { + var c = a(this); + var e = 140; + if (b == 1) e = 80; + if (b == 2) e = 20; + c.css({ + opacity: "0", + top: "0px", + left: e + "px" + }); + if (b == d.find(".freshslice").size() - 1) c.delay(b * 290).animate({ + opacity: "1.0", + left: "0px" + }, { + duration: 800, + queue: true, + complete: l + }); + else c.delay(b * 290).animate({ + opacity: "1.0", + left: "0px" + }, { + duration: 800, + queue: true + }) + }) + } + if (d.data("transition") == "camfocus" || d.data("transition") == "10") { + g = true; + i(d, 15); + d.css({ + position: "absolute", + top: "0px", + left: "0px", + opacity: "1.0" + }); + d.find("#before").css({ + opacity: "0" + }); + d.find(".freshslice").each(function (b) { + var c = a(this); + c.css({ + opacity: "0.0" + }); + c.animate({ + opacity: Math.random() * .7, + top: Math.random() * 20 - 10 + "px", + left: Math.random() * 20 - 10 + "px" + }, { + duration: 600 + }); + if (b == d.find(".freshslice").size() - 1) c.animate({ + opacity: "1.0", + left: "0px", + top: "0px" + }, { + duration: 600, + queue: true, + complete: l + }); + else c.animate({ + opacity: "1.0", + left: "0px", + top: "0px" + }, { + duration: 600, + queue: true + }) + }) + } + if (d.data("transition") == "rollo2" || d.data("transition") == "11") { + g = true; + j(d, 5); + d.css({ + position: "absolute", + top: "0px", + left: "0px", + opacity: "1.0" + }); + d.find("#before").css({ + opacity: "0" + }); + d.find(".freshslice").each(function (b) { + var c = a(this); + c.css({ + width: d.width() + "px", + left: "0px", + top: parseInt(c.css("top"), 0) + 100 + "px" + }); + if (b == d.find(".freshslice").size() - 1) c.delay(b * 125).animate({ + opacity: "1.0", + top: parseInt(c.css("top"), 0) - 100 + "px" + }, { + duration: 310, + queue: true, + complete: l + }); + else c.delay(b * 125).animate({ + opacity: "1.0", + top: parseInt(c.css("top"), 0) - 100 + "px" + }, { + duration: 310, + queue: true + }) + }) + } + if (d.data("transition") == "curtain2" || d.data("transition") == "12") { + g = true; + k(d, 5); + d.css({ + position: "absolute", + top: "0px", + left: "0px", + opacity: "1.0" + }); + d.find("#before").css({ + opacity: "0" + }); + d.find(".freshslice").each(function (b) { + var c = a(this); + c.css({ + height: d.height() + "px", + top: "0px", + left: parseInt(c.css("left"), 0) + 100 + "px" + }); + if (b == d.find(".freshslice").size() - 1) c.delay(b * 165).animate({ + opacity: "1.0", + left: parseInt(c.css("left"), 0) - 100 + "px" + }, { + duration: 260, + queue: true, + complete: l + }); + else c.delay(b * 165).animate({ + opacity: "1.0", + left: parseInt(c.css("left"), 0) - 100 + "px" + }, { + duration: 260, + queue: true + }) + }) + } + if (d.data("transition") == "rain" || d.data("transition") == "13") { + g = true; + k(d, f.width / 30); + d.css({ + position: "absolute", + top: "0px", + left: "0px", + opacity: "1.0" + }); + d.find("#before").css({ + opacity: "0" + }); + d.find(".freshslice").each(function (b) { + var c = a(this); + var e = f.width / 32; + c.css({ + height: d.height() + "px", + top: 0 - f.height + "px" + }); + if (b == d.find(".freshslice").size() - 1) c.delay(b * (80 - b) + 50).animate({ + opacity: "1.0", + top: "0px" + }, { + duration: 680, + queue: true, + complete: l + }); + else c.delay(Math.random() * b * (80 - b) + 50).animate({ + opacity: "1.0", + top: "0px" + }, { + duration: 680, + queue: true + }) + }) + } + if (d.data("transition") == "fountain" || d.data("transition") == "14") { + g = true; + k(d, f.width / 30); + d.css({ + position: "absolute", + top: "0px", + left: "0px", + opacity: "1.0" + }); + d.find("#before").css({ + opacity: "0" + }); + var G = f.width / 30; + var H = 100 + 70 * G / 2; + d.find(".freshslice").each(function (b) { + var c = a(this); + c.css({ + height: d.height() + "px", + top: 0 - f.height + "px" + }); + if (b < G / 2) H = H - 70; + else H = H + 70; + if (b == d.find(".freshslice").size() - 1) c.delay(H).animate({ + opacity: "1.0", + top: "0px" + }, { + duration: 690, + queue: true, + complete: l + }); + else c.delay(H).animate({ + opacity: "1.0", + top: "0px" + }, { + duration: 690, + queue: true + }) + }) + } + if (d.data("transition") == "wave" || d.data("transition") == "15") { + g = true; + k(d, f.width / 30); + d.css({ + position: "absolute", + top: "0px", + left: "0px", + opacity: "1.0" + }); + d.find("#before").css({ + opacity: "0" + }); + d.find(".freshslice").each(function (b) { + var c = a(this); + var e = f.width / 32; + c.css({ + height: d.height() + "px", + top: 0 - f.height + "px" + }); + if (b == d.find(".freshslice").size() - 1) c.delay(b * (90 - b)).animate({ + opacity: "1.0", + top: "0px" + }, { + duration: 670, + queue: true, + complete: l + }); + else c.delay(b * (90 - b)).animate({ + opacity: "1.0", + top: "0px" + }, { + duration: 670, + queue: true + }) + }) + } + if (d.data("transition") == "zipper" || d.data("transition") == "16") { + g = true; + k(d, f.width / 30); + d.css({ + position: "absolute", + top: "0px", + left: "0px", + opacity: "1.0" + }); + d.find("#before").css({ + opacity: "0" + }); + var I = 0; + d.find(".freshslice").each(function (b) { + var c = a(this); + var e = f.width / 32; + if (I == 0) { + c.css({ + height: d.height() + "px", + top: 0 - f.height + "px" + }); + I = 1 + } else { + c.css({ + height: d.height() + "px", + top: f.height + "px" + }); + I = 0 + } + if (b == d.find(".freshslice").size() - 1) c.delay(b * 70).animate({ + opacity: "1.0", + top: "0px" + }, { + duration: 560, + easing: "easeOutSine", + queue: true, + complete: l + }); + else c.delay(b * 70).animate({ + opacity: "1.0", + top: "0px" + }, { + duration: 560, + easing: "easeOutSine", + queue: true + }) + }) + } + if (d.data("transition") == "curtain" || d.data("transition") == "17") { + g = true; + k(d, f.width / 30); + d.css({ + position: "absolute", + top: "0px", + left: "0px", + opacity: "1.0" + }); + d.find("#before").css({ + opacity: "0" + }); + d.find(".freshslice").each(function (b) { + var c = a(this); + var e = f.width / 30; + c.css({ + height: d.height() + "px", + top: "0px", + left: parseInt(c.css("left"), 0) + e + "px" + }); + if (b == d.find(".freshslice").size() - 1) c.delay(b * (80 - b)).animate({ + opacity: "1.0", + left: parseInt(c.css("left"), 0) - e + "px" + }, { + duration: 610, + queue: true, + complete: l + }); + else c.delay(b * (80 - b)).animate({ + opacity: "1.0", + left: parseInt(c.css("left"), 0) - e + "px" + }, { + duration: 610, + queue: true + }) + }) + } + if (d.data("transition") == "rollo" || d.data("transition") == "18") { + g = true; + j(d, f.height / 30); + d.css({ + position: "absolute", + top: "0px", + left: "0px", + opacity: "1.0" + }); + d.find("#before").css({ + opacity: "0" + }); + d.find(".freshslice").each(function (b) { + var c = a(this); + var e = f.height / 30; + c.css({ + width: d.width() + "px", + left: "0px", + top: parseInt(c.css("top"), 0) + e + "px" + }); + if (b == d.find(".freshslice").size() - 1) c.delay(b * (80 - b)).animate({ + opacity: "1.0", + top: parseInt(c.css("top"), 0) - e + "px" + }, { + duration: 610, + queue: true, + complete: l + }); + else c.delay(b * (80 - b)).animate({ + opacity: "1.0", + top: parseInt(c.css("top"), 0) - e + "px" + }, { + duration: 610, + queue: true + }) + }) + } + if (d.data("transition") == "zoomme" || d.data("transition") == "19") { + g = true; + c.css({ + "z-index": "1000" + }); + d.css({ + "z-index": "995" + }); + c.stop(true, true); + d.stop(true, true); + c.find("#before").css({ + width: c.data("orgWidth") + "px", + height: c.data("orgHeight") + "px" + }); + d.find("#before").css({ + width: d.data("orgWidth") + "px", + height: d.data("orgHeight") + "px" + }); + c.animate({ + width: 2 * f.width + "px", + height: 2 * f.height + "px", + left: 0 - f.width / 2 + "px", + top: 0 - f.height / 2 + "px", + opacity: "0.0" + }, { + duration: 800, + queue: false + }); + c.find("#before").animate({ + width: 2 * f.width + "px", + height: 2 * f.height + "px" + }, { + duration: 800, + queue: false + }); + d.css({ + position: "absolute", + top: "0px", + left: "0px", + opacity: "1.0" + }); + d.find("#before").css({ + opacity: "0" + }); + d.find("#before").animate({ + opacity: "1.0" + }, { + duration: 600 + }) + } + } + if (d.data("transition") == "slide-updown" || d.data("transition") == "20") { + g = true; + var J = true; + e.find("li").each(function () { + D = a(this); + if (D.index() != c.index() && D.index() != d.index()) D.css({ + opacity: 0 + }) + }); + if (c.index() > d.index()) J = false; + if (c.index() == 0 && d.index() != 1) J = false; + if (c.index() == c.parent().find("li").size() - 1 && d.index() == 0) J = true; + if (J) { + c.animate({ + top: 0 - f.height + }, { + duration: 650, + queue: false + }); + d.css({ + opacity: "1.0", + position: "absolute", + top: f.height, + left: "0px", + width: f.width, + height: f.height + }); + d.animate({ + left: "0px", + top: "0px", + opacity: "1.0" + }, { + duration: 650, + queue: false + }) + } else { + c.animate({ + top: f.height + }, { + duration: 650, + queue: false + }); + d.css({ + opacity: "1.0", + position: "absolute", + top: 0 - f.height + "px", + left: "0px", + width: f.width, + height: f.height + }); + d.animate({ + left: "0px", + top: "0px", + opacity: "1.0" + }, { + duration: 650, + queue: false + }) + } + } + if (g == false) { + var J = true; + e.find("li").each(function () { + D = a(this); + if (D.index() != c.index() && D.index() != d.index()) D.css({ + opacity: 0 + }) + }); + if (c.index() > d.index()) J = false; + if (c.index() == 0 && d.index() != 1) J = false; + if (c.index() == c.parent().find("li").size() - 1 && d.index() == 0) J = true; + if (J) { + c.animate({ + left: 0 - f.width + }, { + duration: 650, + queue: false + }); + d.css({ + opacity: "1.0", + position: "absolute", + top: "0px", + left: f.width, + width: f.width, + height: f.height + }); + d.animate({ + left: "0px", + top: "0px", + opacity: "1.0" + }, { + duration: 650, + queue: false + }) + } else { + c.animate({ + left: f.width + }, { + duration: 650, + queue: false + }); + d.css({ + opacity: "1.0", + position: "absolute", + top: "0px", + left: 0 - f.width, + width: f.width, + height: f.height + }); + d.animate({ + left: "0px", + top: "0px", + opacity: "1.0" + }, { + duration: 650, + queue: false + }) + } + } + c.parent().parent().parent().find(".mini_thumbnail_buttons").each(function (b) { + var c = a(this); + c.css({ + "background-position": "top left" + }); + c.data("on", false); + c.find("#cd").css({ + display: "none" + }); + if (b == d.parent().find("li").size() - d.index() - 1) { + c.data("on", true); + c.find("#cd").data("t", 0); + c.find("#cd").css({ + display: "block" + }); + c.css({ + "background-position": "bottom left" + }) + } + }); + e.data("currentSlide", d); + u(d, 1500, e) + } + function l() { + var b = a(this).parent(); + b.find("#before").css({ + opacity: "1" + }); + b.find(".freshslice").each(function (b) { + var c = a(this); + c.remove() + }); + b.find(".freshsbox").each(function (b) { + var c = a(this); + c.remove() + }) + } + function k(b, c) { + for (var d = 0; d < c; d++) { + var e = Math.round(b.width() / c); + var f = b.find("#before").attr("src"); + if (d == c - 1) { + b.append(a('
    ').css({ + left: e * d + "px", + width: b.width() - e * d + "px", + position: "absolute", + height: "0px", + opacity: "0", + background: "url(" + f + ") no-repeat -" + (e + d * e - e) + "px 0%" + })) + } else { + b.append(a('
    ').css({ + left: e * d + "px", + width: e + "px", + position: "absolute", + height: "0px", + opacity: "0", + background: "url(" + f + ") no-repeat -" + (e + d * e - e) + "px 0%" + })) + } + } + } + function j(b, c) { + for (var d = 0; d < c; d++) { + var e = Math.round(b.height() / c); + var f = b.find("#before").attr("src"); + if (d == c - 1) { + b.append(a('
    ').css({ + top: e * d + "px", + height: b.height() - e * d + "px", + position: "absolute", + width: b.width() + "px", + opacity: "0", + background: "url(" + f + ") no-repeat -0px " + (0 - d * e) + "px" + })) + } else { + b.append(a('
    ').css({ + top: e * d + "px", + height: e + "px", + position: "absolute", + width: b.width() + "px", + opacity: "0", + background: "url(" + f + ") no-repeat -0px " + (0 - d * e) + "px" + })) + } + } + } + function i(b, c) { + for (var d = 0; d < c; d++) { + var e = b.find("#before").attr("src"); + b.append(a('
    ').css({ + left: "0px", + position: "absolute", + height: b.height() + "px", + width: b.width() + "px", + opacity: "0", + background: "url(" + e + ") no-repeat" + })) + } + } + function h(b, c, d) { + var e = Math.round(b.width() / c); + var f = Math.round(b.height() / d); + var g = b.find("#before").attr("src"); + for (var h = 0; h < d; h++) { + for (var i = 0; i < c; i++) { + if (i == c - 1) { + b.append(a('
    ').css({ + position: "absolute", + opacity: 0, + left: e * i + "px", + top: f * h + "px", + width: b.width() - e * i + "px", + height: f + "px", + background: "url(" + g + ") no-repeat -" + (e + i * e - e) + "px -" + (f + h * f - f) + "px" + })) + } else { + b.append(a('
    ').css({ + position: "absolute", + opacity: 0, + left: e * i + "px", + top: f * h + "px", + width: e + "px", + height: f + "px", + background: "url(" + g + ") no-repeat -" + (e + i * e - e) + "px -" + (f + h * f - f) + "px" + })) + } + } + } + } + function g(b) { + b.find("li >img").each(function () { + var b = a(this); + b.attr({ + id: "before" + }); + b.parent().find("#before").wrapAll("
    "); + b.parent().find("#before").wrap("
    "); + var c = b.parent().parent().parent().find("#before").parent().parent(); + var d = c.find("#before").parent(); + var e = d.find("#before"); + c.css({ + position: "absolute", + "z-index": "1", + top: "0px", + left: "0px" + }); + d.css({ + position: "absolute", + "z-index": "1", + top: "0px", + left: "0px" + }) + }) + } + function f(b, c) { + var d = b.data("ba_images"); + var e = b.data("ba_imagesLoaded"); + var g = new Image; + a(g).css("display", "none"); + a(g).attr("src", d[e]); + if (g.complete || g.readyState === 4) { + e++; + if (e == d.length) { + b.data("loaded", "true"); + s(b, c) + } else { + b.data("ba_imagesLoaded", e); + f(b, c) + } + } else { + a(g).load(function () { + e++; + if (e == d.length) { + b.data("loaded", "true"); + s(b, c) + } else { + b.data("ba_imagesLoaded", e); + f(b, c) + } + }) + } + } + function e(b) { + var c = new Array; + var d = 0; + b.find("ul li img").each(function (b) { + var e = a(this); + c[d] = e.attr("src"); + d++ + }); + b.data("ba_images", c) + } + function d(b, d) { + if (d.theme == "none") {} + if (d.theme == "custom") { + b.addClass("custom_frame_basic"); + b.addClass("custom_frame_bg"); + c(d, b); + b.append('
    '); + b.append('
    '); + b.append('
    '); + b.append('
    '); + b.find("#toolbox").addClass("custom_toolbox"); + b.find("#cd").addClass("custom_countdown"); + b.find("#mini_divider").addClass("custom_mini_divider"); + b.find("#previous").addClass("custom_previous"); + b.find("#next").addClass("custom_next"); + b.find("#mask").addClass("custom_mask"); + b.find(".mini_thumbnail_buttons").each(function (b) { + var c = a(this); + c.addClass("custom_mini_thumbnail_buttons") + }); + b.append('
    '); + b.append('
    '); + if (b.find("#creative_layer_holder").size() == 0) b.append('
    ') + } else { + if (d.theme == "sport") { + b.addClass("sport_frame_basic"); + b.addClass("sport_frame_bg"); + c(d, b); + d.r = -8 + d.r; + d.b = -8 + d.b; + d.m = 2 * d.l + d.width / 2; + d.w = 290; + d.off = d.m - 145; + if (d.off < 2 * d.l) { + d.off = 2 * d.l; + d.w = d.r - d.pr / 2 - d.off + } + d.e = d.r + d.pr / 2; + b.append('
    '); + b.append('
    '); + b.append('
    '); + b.append('
    '); + b.append('
    '); + b.append('
    '); + var e = b.find("#toolbox"); + e.addClass("sport_toolbox"); + b.find("#cd").addClass("sport_countdown"); + b.find("#mini_divider").addClass("sport_mini_divider"); + b.find("#previous").addClass("sport_previous"); + b.find("#next").addClass("sport_next"); + b.find("#mask").addClass("sport_mask"); + b.find(".mini_thumbnail_buttons").each(function (b) { + var c = a(this); + c.addClass("sport_mini_thumbnail_buttons") + }); + e.css({ + top: d.height - 10 + "px" + }); + b.append('
    '); + b.append('
    '); + if (b.find("#creative_layer_holder").size() == 0) b.append('
    ') + } else { + if (d.theme == "wedding") { + b.addClass("wedding_frame_basic"); + b.addClass("wedding_frame_bg"); + c(d, b); + d.r = -8 + d.r; + d.b = d.pt + d.height + d.pb - 57; + d.m = 2 * d.l + d.width / 2; + d.w = d.width; + d.e = d.r + d.pr / 2; + d.off = d.tl; + b.append('
    '); + b.append('
    '); + b.append('
    '); + b.append('
    '); + if (b.find("#creative_layer_holder").size() == 0) b.append('
    '); + b.append('
    '); + var e = b.find("#toolbox"); + e.addClass("wedding_toolbox"); + b.find("#cd").addClass("wedding_countdown"); + b.find("#mini_divider").addClass("wedding_mini_divider"); + b.find("#previous").addClass("wedding_previous"); + b.find("#next").addClass("wedding_next"); + b.find(".mini_thumbnail_buttons").each(function (b) { + var c = a(this); + c.addClass("wedding_mini_thumbnail_buttons") + }); + e.css({ + top: d.height + 10 + "px" + }) + } else { + if (d.theme == "fashion") { + b.addClass("fashion_frame_basic"); + b.addClass("fashion_frame_bg"); + c(d, b); + d.r = d.r - 8; + d.b = d.pt + d.height + d.pb - 57; + d.m = 2 * d.l + d.width / 2; + d.w = d.width + 2 * d.l + d.pr + 26; + d.e = d.r + d.pr / 2; + var f = 35; + var g = 2 * d.t + d.height; + b.append('
    '); + b.append('
    '); + b.append('
    '); + b.find("#toolbox").addClass("fashion_toolbox"); + b.find("#cd").addClass("fashion_countdown"); + b.find("#mini_divider").addClass("fashion_mini_divider"); + b.find("#previous").addClass("fashion_previous"); + b.find("#next").addClass("fashion_next"); + b.find(".mini_thumbnail_buttons").each(function (b) { + var c = a(this); + c.addClass("fashion_mini_thumbnail_buttons") + }); + b.find("#toolbox").css({ + top: g - 15 + "px" + }); + b.append('
    '); + b.append('
    '); + if (b.find("#creative_layer_holder").size() == 0) b.append('
    ') + } + } + } + } + var h = b.find("#creative_layer_holder"); + h.css({ + position: "absolute", + "margin-top": d.pt + "px", + "margin-left": d.pl + "px" + }) + } + function c(a, b) { + a.pt = parseInt(b.css("padding-top"), 0); + a.pl = parseInt(b.css("padding-left"), 0); + a.pr = parseInt(b.css("padding-right"), 0); + a.pb = parseInt(b.css("padding-bottom"), 0); + a.l = a.pl / 2; + a.t = a.pt / 2; + a.r = a.pl + a.width + a.pr / 2; + a.b = a.pt + a.height + a.pb / 2 + } + a.fn.extend({ + frames_slider: function (c) { + var h = { + width: 876, + height: 300, + theme: "none", + timer: 2e3, + hidetoolbar: 0 + }; + var c = a.extend({}, a.fn.frames_slider.defaults, c); + return this.each(function () { + var h = new Array; + var i = 0; + var j = a(this); + j.css({ + display: "none" + }); + var k = c; + k.ie = a.browser.msie && a.browser.version >= 7 && a.browser.version < 9; + if (k.timer == b) k.timer = 2e3; + if (k.hidetoolbar == b) k.hidetoolbar = 0; + j.data("off", parseInt(j.css("padding-top"), 0)); + j.data("ba_imagesLoaded", 0); + var l = j.find("li").first(); + j.data("currentSlide", l); + p(j, k); + g(j); + var n = a("
    "); + j.append(n); + j.find("ul").css({ + display: "none" + }); + j.find("ul li").css({ + display: "none" + }); + q(j, k); + d(j, k); + e(j); + f(j, k); + j.hover(function () { + var b = a(this); + b.data("mouseOver", "0"); + b.data("hideT", 0); + b.find("#toolbox").stop(true, true); + if (a.browser.msie && a.browser.version >= 7 && a.browser.version < 9) { + b.find("#toolbox").css({ + display: "block" + }) + } else { + b.find("#toolbox").animate({ + opacity: "1.0" + }, { + duration: 100 + }) + } + if (k.ie) var c = a('
    '); + else var c = a('
    '); + b.append(c); + if (!k.ie) c.animate({ + opacity: "1.0", + left: k.width + k.pl - 45 + "px" + }, { + duration: 300 + }) + }, function () { + var b = a(this); + b.data("mouseOver", "1"); + b.data("hideT", 0); + b.find("#fh_pause").remove() + }); + j.data("hideT", 0); + if (k.hidetoolbar != 0) { + setInterval(function () { + if (j.data("loaded") == "true") { + if (j.data("mouseOver") != "0") j.data("hideT", j.data("hideT") + 100); + if (j.data("hideT") >= k.hidetoolbar) { + if (a.browser.msie && a.browser.version >= 7 && a.browser.version < 9) { + j.find("#toolbox").css({ + display: "none" + }) + } else { + j.find("#toolbox").animate({ + opacity: "0.0" + }, { + duration: 400 + }) + } + } + } + }, 100) + } + setInterval(function () { + if (j.data("loaded") == "true") { + j.find("#cd").each(function () { + var c = a(this); + if (c.data("idNum") == j.data("currentSlide").index()) { + if (k.timer != 0) { + if (c.data("t") == b) c.data("t", 0); + var d = c.data("t"); + c.css({ + "background-position": "0px " + (d - 10) + "px" + }); + if (d <= -1e3) { + var e = j.data("currentSlide").index(); + e++; + if (e == j.data("currentSlide").parent().find("li").size()) e = 0; + if (e == -1) e = j.data("currentSlide").parent().find("li").size() - 1; + d = 0; + var f = j.find("li").each(function (b) { + c = a(this); + if (b == e) { + m(j.data("currentSlide"), c, j, k) + } + }) + } + if (j.data("mouseOver") != "0") c.data("t", d - 10) + } else {}; + } + }) + } + }, k.timer / 100) + }) + } + }); +})(jQuery) \ No newline at end of file diff --git a/public/sliders/rama-the-jquery-slider-plugin/rama/js/jquery.easing.1.3.js b/public/sliders/rama-the-jquery-slider-plugin/rama/js/jquery.easing.1.3.js new file mode 100644 index 0000000..9f26166 --- /dev/null +++ b/public/sliders/rama-the-jquery-slider-plugin/rama/js/jquery.easing.1.3.js @@ -0,0 +1,72 @@ +/* + * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ + * + * Uses the built in easing capabilities added In jQuery 1.1 + * to offer multiple easing options + * + * TERMS OF USE - jQuery Easing + * + * Open source under the BSD License. + * + * Copyright © 2008 George McGinley Smith + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, this list of + * conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, this list + * of conditions and the following disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * Neither the name of the author nor the names of contributors may be used to endorse + * or promote products derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * +*/ + +// t: current time, b: begInnIng value, c: change In value, d: duration +jQuery.easing["jswing"]=jQuery.easing["swing"];jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b+c;return-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b*b+c;return d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b*b*b+c;return-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b*b*b*b+c;return d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){if(b==0)return c;if(b==e)return c+d;if((b/=e/2)<1)return d/2*Math.pow(2,10*(b-1))+c;return d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){if((b/=e/2)<1)return-d/2*(Math.sqrt(1-b*b)-1)+c;return d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){var f=1.70158;var g=0;var h=d;if(b==0)return c;if((b/=e)==1)return c+d;if(!g)g=e*.3;if(h Begin */ + +.color-1 .top-holder, +.color-1 footer {background-color: #2c2c2c;} + +.color-2 .top-holder, +.color-2 footer {background-color: #40272a;} + +.color-3 .top-holder, +.color-3 footer {background-color: #434768;} + +.color-4 .top-holder, +.color-4 footer {background-color: #3d6363;} + +.color-5 .top-holder, +.color-5 footer {background-color: #2a4f32;} + +.color-6 .top-holder, +.color-6 footer {background-color: #514437;} + +.color-7 .top-holder, +.color-7 footer {background-color: #335f7d;} + +.color-8 .top-holder, +.color-8 footer {background-color: #53514d;} + +.color-9 .top-holder, +.color-9 footer {background-color: #600516;} + +/* Top Holder Background Color --> End */ + + +/* Top Holder Pattern --> Begin */ + +.pattern-1 .top-holder, +.pattern-2 .top-holder, +.pattern-3 .top-holder, +.pattern-4 .top-holder, +.pattern-5 .top-holder, +.pattern-6 .top-holder, +.pattern-7 .top-holder, +.pattern-8 .top-holder, +.pattern-9 .top-holder, +.pattern-10 .top-holder, +footer { + background-repeat: repeat; +} + +.pattern-1 .top-holder, +.pattern-1 footer {background-image: url(../images/bgs/pt-1.png);} + +.pattern-2 .top-holder, +.pattern-2 footer {background-image: url(../images/bgs/pt-2.png);} + +.pattern-3 .top-holder, +.pattern-3 footer {background-image: url(../images/bgs/pt-3.png);} + +.pattern-4 .top-holder, +.pattern-4 footer {background-image: url(../images/bgs/pt-4.png);} + +.pattern-5 .top-holder, +.pattern-5 footer {background-image: url(../images/bgs/pt-5.png);} + +.pattern-6 .top-holder, +.pattern-6 footer {background-image: url(../images/bgs/pt-6.png);} + +.pattern-7 .top-holder, +.pattern-7 footer {background-image: url(../images/bgs/pt-7.png);} + +.pattern-8 .top-holder, +.pattern-8 footer {background-image: url(../images/bgs/pt-8.png);} + +.pattern-9 .top-holder, +.pattern-9 footer {background-image: url(../images/bgs/pt-9.png);} + +.pattern-10 .top-holder, +.pattern-10 footer {background-image: url(../images/bgs/pt-10.png);} + +/* Top Holder Pattern --> End */ + +#wrapper { + position: relative; + margin: 0 auto; + width: 1020px; +} + +.slider-wrapper { + width: 770px; + height: 420px; +} + +#slider { + margin-bottom: 2em; + width: 770px; + height: 415px; +} + +#sample { + position:relative; + padding: 0 0 0 10px; + width:760px; + height:415px; +} + +#sample { + -webkit-border-radius: 0 0 6px 6px; + -moz-border-radius: 0 0 6px 6px; + border-radius: 0 0 6px 6px; + -webkit-box-shadow: 0 10px 10px rgba(0,0,0,.05); + -moz-box-shadow: 0 10px 10px rgba(0,0,0,.05); + box-shadow: 0 10px 10px rgba(0,0,0,.05); +} + +#back-top { + position: fixed; + display: none; + bottom: 30px; + right: 30px; +} + +#back-top a { + display: block; + width: 41px; + height: 41px; + text-align: center; + text-transform: uppercase; + text-decoration: none; + -webkit-transition: all .25s linear; + -moz-transition: all .25s linear; + transition: all .25s linear; + background: url(../images/back-top.png) no-repeat; +} + +#back-top a:hover { + background-position: 0 -49px; +} + +/* --- Header --- */ + +header {color: #fff;} + +header .logo { + float: left; + padding-top: 55px; +} + +header .info-call { + float: right; + padding: 1.8em 0 0 0; + font-size: 1.417em; +} + +header .info-call span { + display: inline-block; + margin-left: 10px; + padding: 0 0 0 25px; + background: url(../images/phone.png) no-repeat left center; + line-height: 2.8em; +} + +/*--------------------------------*/ +/* CONTENT AREA */ +/*--------------------------------*/ + +#content-wrapper { + float: right; + margin-top: -74px; + margin-bottom: 3.5em; + width: 770px; + min-height: 800px; + -webkit-border-radius: 5px; + -moz-border-radius: 5px; + border-radius: 5px; +} + +#content { + -webkit-border-radius: 5px 5px 0 0; + -moz-border-radius: 5px 5px 0 0; + border-radius: 5px 5px 0 0; + background: #fff; +} + +.ie8 #content { + position: relative; + behavior: url(js/PIE.htc); +} + +.content-title { + margin-bottom: 1.2em; + padding-bottom: .5em; + border-bottom: 1px solid #dcdcdc; +} + +.content-wrapper {padding: 19px;} +.content-wrapper .home-cont-box {margin-bottom: .2em; } + +.content-wrapper .title-with-icon { + margin-bottom: 2em; + padding: .6em 0 .6em 20px; + border-bottom: 1px solid #dcdcdc; +} + +.content-wrapper .title-with-icon h5 { + margin: 0; + padding-top: .4em; +} + +/* --- Breadcrumbs --- */ + +#breadcrumbs { + padding: 1.4em 1.7em; + color: #000; +} + +#breadcrumbs a {color:#787878;} + +/* --- Gray holder --- */ + +.gray-holder { + padding: 30px 40px; + background: #f1f1f1; +} + +.gray-holder .spot-title { + margin-bottom: 1.5em; + padding-bottom: 1.5em; + border-bottom: 1px dotted #b7b6b6; +} + +.gray-holder .spot-title a {color: #000; font-size: 1.25em;} + + +/* --- Blog --- */ + +.post-item { + position: relative; + clear:both; + margin-bottom:2em; + padding-bottom:3em; +} + +.ie7 .blogdetails .post-item { + position: static; +} + +.alternative .post-item {padding-bottom: 2em;} + +.blogdetails .post-item { + margin-bottom: 2em; + padding: 0; +} + +.holder-frame { + margin-bottom: 1.8em; + padding: 18px; + background-color: #ededed; + border: 4px solid #fff; + outline: 1px solid #e0e0e0; +} + +.holder-frame img { + display: inline-block; + margin: 3px; +} + +.sbl .post-item:after { + position: absolute; + bottom: 0; + left: -19px; + width: 770px; + height:18px; + background: url(../images/shadow-sprite.png) no-repeat 0 -47px; + content: ""; +} + +.ie7 .sbl .post-item:after {background: none;} +.post-item .post-thumb {margin-bottom: 2em;} + +.alternative .post-item .post-meta { + float: none; + margin: 0 0 1.5em 0; + text-align: left; +} + +.post-item .post-meta { + float: left; + width: 165px; + margin-right: 25px; + font-weight:normal; + text-align: right; + color: #787878; +} + +.blogdetails .post-item .post-meta { + float: right; + margin-top: -25px; + margin-bottom: 20px; + padding-right: 40px; +} + +.post-item .entry {display: table;} + +.blogdetails .entry {padding: 0 90px;} + +.post-meta a {color: #85b602;} +.post-title a, +.see-all { + -webkit-transition: color .25s linear; + -moz-transition: color .25s linear; + -o-transition: color .25s linear; + transition: color .25s linear; +} + +.post-title a:hover, +.gallery-text a:hover, +.see-all:hover {color: #787878;} + +.post-meta a:hover {text-decoration: underline;} + +.post-item .post-date, +.post-item .post-author, +.post-item .post-tags {font-style:italic;} + +.post-item .post-comments-icon { + float:right; + margin-top: 10px; + width:41px; + height:37px; + background:url(../images/comments-icon.png) no-repeat left; + text-align:center; + text-decoration:none; + font-weight:700; + line-height: 26px; +} + +.ie7 .blogdetails .post-item .post-comments-icon { + position: static; + top: 0; + margin-top: 5px; +} + +.alternative .post-item .post-comments-icon { + float: none; + margin: 0; +} + +.blogdetails .post-item .post-comments-icon { + position: absolute; + top: -25px; + right: 0; + margin: 0; +} + +.post-item .post-comments-icon a {color:#000;} + +.sbl .pagenavi { + margin: 0; + padding: 0 0 .5em 0; +} + +#bio { + position: relative; + margin-bottom: 3em; + padding: 17px 20px; + border:1px solid #b7b6b6; + -webkit-border-radius:5px; + -moz-border-radius:5px; + border-radius:5px; + background: #f0f0f0; + background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f0f0f0)); + background: -moz-linear-gradient(top, #fff, #f0f0f0); + background: -o-linear-gradient(rgb(255,255,255),rgb(240,240,240)); + -webkit-box-shadow: 0 3px 0 #ededed; + -moz-box-shadow: 0 3px 0 #ededed; + box-shadow: 0 3px 0 #ededed; + zoom: 1; +} + +.ie8 #bio { + -pie-background: linear-gradient(rgb(255,255,255),rgb(240,240,240)); + behavior: url('js/PIE.htc'); +} + +.ie7 #bio {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#f0f0f0');} + +#bio h5 {margin-bottom: 1em;} + +/* ---- Related ---- */ + +.related li { + float:left; + width:170px; + margin-right:17px; +} + +.related li.last {margin-right:0;} +.related .excerpt a {color:#71AD09;} +.related .excerpt a:hover {text-decoration: underline;} + +/* ---- Commentlist ---- */ + +.comment-list { + position:relative; + margin-bottom: 2.2em; + padding:0; +} + +.comment-list ol li, +.comment-list ol ul{list-style:none;} + +.comment:first-child {border-top: none;} + +.comment { + position: relative; + clear:both; + margin: 0 0 20px 20px; + padding: 20px 20px 0 0; + border-top: 1px dashed #b7b6b6; + zoom: 1; +} + +.ie8 .comment {behavior: url('js/PIE.htc');} + +.avatar {float:left;} +.comment-text {display:table;} + +.comment-text a, +.comment-date span {color: #85b602;} + +.comment-reply { + -webkit-transition: color .25s linear; + -moz-transition: color .25s linear; + -o-transition: color .25s linear; + transition: color .25s linear; + margin-left: 3px; + font-weight: 700; +} + +.comment-reply:hover {color: #787878;} + +.comment-author, +.comment-date { + margin-bottom: 4px; + font-style: italic; +} + +.comment-entry { + padding:8px 40px 0 0; + color:#6b6b6b; + overflow:hidden; +} + +.children li.comment { + margin-top: 1.5em; + margin-bottom: 0; + margin-left: 80px; + padding: 20px 0 0 0; + border-top: 1px dashed #b7b6b6; + zoom: 1; +} + +/* ---- Comment form ---- */ + + +#commentform .row {margin-bottom: 1em;} + +#commentform input[type="text"], +#commentform select { + position: relative; + margin: 5px 0; + padding:6px 10px; + width: 330px; + border:1px solid #d0d0d0; + background-color:#ededed; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; + color: #767676; + -webkit-transition: all .20s linear; + -moz-transition: all .20s linear; + -o-transition: all .20s linear; + transition: all .20s linear; +} + +.ie8 #commentform input[type="text"], +.ie8 #commentform select { + behavior: url('js/PIE.htc'); +} + +#commentform input[type="text"]:hover, +#commentform select:hover, +#commentform textarea:hover { + -webkit-box-shadow: inset 0 0 7px rgba(0,0,0,.1); + -moz-box-shadow: inset 0 0 7px rgba(0,0,0,.1); + box-shadow: inset 0 0 7px rgba(0,0,0,.1); + background-color: #f0f0f0; +} + +#commentform input[type="text"]:focus, +#commentform select:focus, +#commentform textarea:focus { + -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,.15); + -moz-box-shadow: inset 0 0 5px rgba(0,0,0,.15); + box-shadow: inset 0 0 5px rgba(0,0,0,.15); + background-color: #f8f8f8; + border-color: #b1b0b0; +} + +#commentform select {width: 352px;} + +#commentform textarea { + position: relative; + margin: 5px 0; + padding: 5px 10px; + height: 158px; + max-width: 333px; + max-height: 450px; + min-width: 333px; + min-height: 158px; + border:1px solid #d0d0d0; + background-color:#ededed; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; + color:#838282; + font-size: 1em; + font-family:Arial, Helvetica, sans-serif; + -webkit-transition: all .20s linear; + -moz-transition: all .20s linear; + -o-transition: all .20s linear; + transition: all .20s linear; +} + +.ie8 #commentform textarea {behavior: url(js/PIE.htc);} + +#commentform label {display: block; color: #000;} +#commentform .row .required { + margin: 0 2px; + color: #787878; + font-style: italic; +} + +#commentform input[type="submit"] { + padding:.2em .6em .4em .6em; + display:block; + border:1px solid #5b8100; + cursor:pointer; +} + +.ie8 #commentform input[type="submit"] { + padding-top: .35em; + font-size: 1.1em; +} + +/* --- Services --- */ + +.mainround { + position: relative; + margin-bottom: 1.3em; + width: 185px; + height: 185px; + text-align: center; +} + +.mainround:hover img { + -webkit-transform: scale(1.07); + -moz-transform: scale(1.07); + -o-transform:scale(1.07); +} + +.mainround img { + position: absolute; + top: 0; + left: 0; + -webkit-transition: all .25s linear; + -moz-transition: all .25s linear; + -o-transition: all .25s linear; + transition: all .25s linear; +} + +.mainround h2 { + position: relative; + padding: 3.3em 0; + z-index: 3; + font-size: 2em; +} + +.round_col_last .mainround h2 { + padding: 2.25em 0; + font-size: 2.333em; +} + +.home-cont-box + .desc { + margin-bottom: 1em; +} + +.desc { + display: block; + margin-bottom: 0; + color: #719806; + font-size: 1.25em; +} + +/* --- 404 --- */ + +.holder404 { + padding: 20px 40px 0; + background: #f5f5f5; +} + +.mask404 { + margin: 0 auto; + width: 557px; + height: 478px; + background: url(../images/error404.png) no-repeat; + text-align: center; +} + +.e404 {padding: 1em 2em 0;} + +.e404 h1 { + margin-bottom: 0; + color: #85b602; + font-weight: 700; + font-size: 14.833em; + line-height: .9em; +} + +.error404 { + position: relative; + top: 19px; + left: 21px; + width: 517px; + height: 296px; + background: #fff; +} + +.ie7 .error404 {left: 0;} + +.title_error { + margin-bottom: .4em; + padding: 0 2em; + color: #1a1a1b; + font-size: 2.333em; + line-height: 1em; +} + +.description_error { + margin-bottom: 1em; + padding: 0 2em; +} + +.box .one_third, +.box .one_third_last {margin-bottom: 0;} + +.box { + position: relative; + padding-bottom: 2em; + background-color: #fafafa; +} + +.box:after { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 18px; + background: url(../images/shadow-sprite.png) no-repeat 0 -47px; + content: ''; +} + +.box ul li { + margin-bottom: 1em; + padding: 0; + zoom: 1; +} + +.box-inline { + position:relative; + padding: 1.3em 0 0 10px; + border: 1px solid transparent; + -webkit-transition: all .25s ease-in-out; + -moz-transition: all .25s ease-in-out; + -o-transition: all .25s ease-in-out; + transition: all .25s ease-in-out; +} + +.ie8 .box-inline {behavior: url(js/PIE.htc);} + +.box-inline:hover { + border: 1px solid #b7b6b6; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; + background: #ebebeb; + background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f0f0f0)); + background: -moz-linear-gradient(top, #fff, #f0f0f0); + background: -o-linear-gradient(rgb(255,255,255),rgb(240,240,240)); + -webkit-box-shadow: 0 2px 0 #ededed; + -moz-box-shadow: 0 2px 0 #ededed; + box-shadow: 0 2px 0 #ededed; +} + +.ie8 .box-inline:hover {-pie-background: linear-gradient(rgb(255,255,255),rgb(240,240,240));} + +.box-inline .desc a {color: #719806;} +.box-inline:hover a {color: #000;} + +.item-with-image, +.item-with-icon, +.icon-with-margin {margin-bottom: 1em;} + +.item-with-image > a, +.item-with-icon > a { + -webkit-transition: background-color .2s linear; + -moz-transition: background-color .2s linear; + -o-transition: background-color .2s linear; + transition: background-color .2s linear; + display: block; + background-color: #f7f7f7; +} + +.item-with-image .content-item, +.item-with-icon .content-item {padding: 15px 20px;} + +.item-with-image .content-item span, +.item-with-icon .content-item span {color: #787878;} + +.item-with-image:hover > a, +.item-with-icon:hover > a {background-color: #191919;} + +.item-with-image:hover .content-item h5, +.item-with-icon:hover .content-item h5 {color: #fff;} + +.item-with-icon > a {text-align: center;} + +.temp-icon { + position: relative; + margin-bottom: 1.5em; + height: 54px; +} + +.temp-icon:after { + position: absolute; + top: 0; + left: 50%; + display: block; + margin-left: -25px; + width: 50px; + height: 54px; + background-image: url(../images/icons/sprite-icons.png); + background-position: 0 0; + background-repeat: no-repeat; + content: ''; +} + +.icon1:after {background-position: left top;} +.icon2:after {background-position: -65px top;} +.icon3:after {background-position: -130px top;} + +.item-with-icon:hover .icon1:after {background-position: 0 -54px;} +.item-with-icon:hover .icon2:after {background-position: -65px -54px;} +.item-with-icon:hover .icon3:after {background-position: -130px -54px;} + + +/*--------------------------------*/ +/* SIDEBAR AREA */ +/*--------------------------------*/ + +#sidebar { + float: left; + margin-top: 2.8em; + width: 230px; +} + +#sidebar h3 {font-size: 1.6em;} + +/*--------------------------------*/ +/* FOOTER AREA */ +/*--------------------------------*/ + +footer { + position: relative; + margin-bottom: 1.5em; + padding: 25px 20px 20px; + -webkit-border-radius: 0 0 6px 6px; + -moz-border-radius: 0 0 6px 6px; + border-radius: 0 0 6px 6px; + border-top: 1px solid #ededed; + border-bottom: 1px solid #030303; +} + +footer p {color: #fff;} + +.ie8 footer {behavior: url(js/PIE.htc);} + +footer h3 { + margin-bottom: 1em; + color: #fff; + font-size: 1.6em; +} + +footer .one_third, +footer .one_third_last {width: 230px; margin-bottom: 0;} +footer .entry-footer {min-height: 300px;} + +#content-wrapper .copyright { + float:left; + margin-left: 2px; +} + +#content-wrapper .developed { + float: right; + margin-right: 2px; +} + +#content-wrapper .developed a {color: #7A9F17} +#content-wrapper .developed a:hover {text-decoration: underline;} + +/*--------------------------------*/ +/* NAVIGATION */ +/*--------------------------------*/ + +.navigation { + -webkit-border-radius: 8px 8px 0 0; + -moz-border-radius: 8px 8px 0 0; + border-radius: 8px 8px 0 0; + background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ebebeb)); + background: -moz-linear-gradient(top, #fff, #ebebeb); + background: -o-linear-gradient(rgb(255,255,255),rgb(235,235,235)); + position: relative; +} + +.ie8 .navigation { + -pie-background: linear-gradient(rgb(255,255,255),rgb(235,235,235)); + behavior: url(js/PIE.htc); +} + +.ie7 .navigation { + position: static; + z-index: 4; + height: 46px; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#ebebeb'); +} + +.navigation:after { + position: absolute; + left: 0; + bottom: -20px; + z-index: 10; + width: 770px; + height: 20px; + background: url(../images/shadow-sprite.png) no-repeat 0 -25px; + content: ""; +} + +.ie7 .navigation:after {background: none;} + +.navigation > ul { + float: left; + margin: 0 0 0 15px; + height: 46px; +} + +.ie7 .navigation > ul { + position: relative; + z-index:6; + zoom: 1; +} + +.navigation > ul > li { + position: relative; + float: left; + top: -7px; + margin: 0 .2em; +} + +.ie7 .navigation > ul > li, +.ie8 .navigation > ul > li {top: -8px;} + +.navigation > ul > li > a { + border-top: 1px solid transparent; + float: left; + padding: 1.2em 1em .4em; + color: #101010; + text-align:center; + font-size: 1.35em; + font-family: 'PT Sans Narrow'; +} + +.navigation > ul > li:hover a {color: #719806;} + +.navigation > ul > li.current-menu-item > a { + border-top: 1px solid rgba(255,255,255,.4); + background-color: #85b602; + -webkit-border-radius: 0 0 4px 4px; + -moz-border-radius: 0 0 4px 4px; + border-radius: 0 0 4px 4px; + -webkit-box-shadow: 0 2px 3px 1px rgba(0,0,0,.2); + -moz-box-shadow: 0 2px 3px 1px rgba(0,0,0,.2); + box-shadow: 0 2px 3px 1px rgba(0,0,0,.2); + color: #fff; +} + +.ie8 .navigation > ul > li.current-menu-item > a { + behavior: url(js/PIE.htc); + box-shadow: 0 2px 3px 1px #c8c8c8; + position: relative; +} + + +.navigation ul.sub-menu { + position: absolute; + top: 4em; + left: 0; + display: none; + margin: 0; + z-index:9999; + width: 167px; + -webkit-border-radius: 6px; + -moz-border-radius: 6px; + border-radius: 6px; + background: #3c3e3e; +} + +.navigation li:hover ul, +.navigation > li.sfHover ul { + top: 4em; + left: 0; + z-index: 9999; + zoom: 1; +} + +.navigation .sub-menu li.sfHover ul { + top: 0; + left: 168px; + position: absolute; + width: 167px; +} + +.navigation ul.sub-menu li:first-child {border-top: none;} + +.navigation ul.sub-menu li { + position: relative; + padding-left: 8px; + border-top: 1px solid #000; + background: #0d0d0d; + background: -webkit-gradient(linear, left top, left bottom, from(#1a1a1a), to(#0d0d0d)); + background: -moz-linear-gradient(top, #1a1a1a, #0d0d0d); + background: -o-linear-gradient(rgb(26,26,26),rgb(13,13,13)); + padding: .4em 0 .4em 8px; +} + +.ie8 .navigation ul.sub-menu li { + -pie-background: linear-gradient(rgb(26,26,26),rgb(13,13,13)); + behavior: url(js/PIE.htc); +} + +.ie7 .navigation ul.sub-menu li { + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#1a1a1a', endColorstr='#0d0d0d'); +} + +.navigation ul.sub-menu li:hover > a, +.navigation ul.sub-menu li.active a { + background-position: left 4px; + color: #fff !important; +} + +.navigation ul.sub-menu li:first-child { + -webkit-border-radius: 6px 6px 0 0; + -moz-border-radius: 6px 6px 0 0; + border-radius: 6px 6px 0 0; +} + +.navigation ul.sub-menu li:last-child { + -webkit-border-radius: 0 0 6px 6px; + -moz-border-radius: 0 0 6px 6px; + border-radius: 0 0 6px 6px; +} + +.navigation ul.sub-menu li a { + display: block; + padding-left: 20px; + background: url(../images/arrow.png) no-repeat left -30px; + color: #727272 !important; + font-family: 'PT Sans Narrow'; + font-size: 1.1em; +} + +/* ---- Search Top ---- */ + +.search-top { + float: right; + margin-right: 8px; + padding: .6em 0; +} + +.inline-search input[type="text"] { + position: relative; + background-color: #ddd; + border: 1px solid #d0d0d0; + -webkit-border-radius: 5px; + -moz-border-radius: 5px; + border-radius: 5px; + padding: 7px 10px 6px; + width: 117px; + -webkit-transition: all .20s linear; + -moz-transition: all .20s linear; + -o-transition: all .20s linear; + transition: all .20s linear; +} + +.ie8 .inline-search input[type="text"] { + behavior: url(js/PIE.htc); +} + +.inline-search input[type="text"]:hover { + -webkit-box-shadow: inset 0 0 7px rgba(0,0,0,.1); + -moz-box-shadow: inset 0 0 7px rgba(0,0,0,.1); + box-shadow: inset 0 0 7px rgba(0,0,0,.1); + background-color: #f0f0f0; +} + +.inline-search input[type="text"]:focus { + -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,.15); + -moz-box-shadow: inset 0 0 5px rgba(0,0,0,.15); + box-shadow: inset 0 0 5px rgba(0,0,0,.15); + background-color: #f8f8f8; + border-color: #b1b0b0; +} + +.inline-search input[type="submit"] { + background: url(../images/submit-search.png) no-repeat; + border: none; + cursor: pointer; + height: 31px; + width: 31px; + text-indent: -9999px; + font-size: 0; + line-height: 0; +} + +/*--------------------------------*/ +/* TYPOGRAPHY */ +/*--------------------------------*/ + +/* ==== STYLED ELEMENTS ==== */ + +/* ----- Dividers ----- */ + +hr { + clear: both; + visibility: hidden; + height: 0; + width: 100%; + border: none; + margin: 1em 0; +} + +.sep { + clear: both; + margin: 2.5em 0; + border-top: 1px solid #dcdcdc; +} + +.content-divider { + clear: both; + margin: 1em 0 2em 0; + border-bottom: 1px dotted #b7b6b6; +} + +.border-divider li:first-child { + margin: 0; + padding: 0; + border: none; +} + +.border-divider li { + clear: both; + margin-top: 1.9em; + padding-top: 1.5em; + border-top: 1px dotted #b7b6b6; + zoom: 1; +} + +.divider-top { + position: relative; + clear: both; + display: block; + padding: 20px 0 10px 0; + width: 100%; + border-top: 1px dotted #B7B6B6; + font-size: 10px; +} + +.divider-top a { + position: absolute; + top: 3px; + right: 0; + padding-right: 16px; + outline: medium none; + border: 0 none; + background: url(../images/top-arrow.png) no-repeat center right; + color: #85b602; + font-weight: 700; + cursor: pointer; +} + +.divider-top a:hover {color: #767676;} + +/* ---- Ordered/Unordered List Styles ---- */ + +ol.ordered {padding-left: 2.1em;} + +ul.list, +ol.list {margin: 0;} + +ul.list-with-desc, +ol.list-with-desc {margin: 1em 0;} + +ul.list li:first-child, +ol.list li:first-child {border-top: none;} + +ul.list li, +ol.list li { + padding: .7em 0 .7em 0; + border-top: 1px dotted #b7b6b6; +} + +ol.list li {padding-left: .2em;} + +ol.type-1 li { list-style: decimal inside;} +ol.type-2 li {list-style: decimal-leading-zero inside;} +ol.type-3 li {list-style: upper-roman inside;} + +ul.type-1 li, +ul.type-2 li {padding-left: 44px;} + +ul.type-3 li, +ul.type-4 li, +ul.type-5 li, +ul.type-6 li, +ul.type-7 li, +ul.type-8 li, +ul.type-9 li, +ul.type-10 li, +ul.type-11 li, +ul.type-12 li, +ul.type-13 li, +ul.type-14 li, +ul.type-15 li {padding-left: 34px;} + +ul.type-1 li {background: url(../images/icons/small/list-icon1.png) no-repeat 8px center;} +ul.type-2 li {background: url(../images/icons/small/list-icon2.png) no-repeat 8px center;} +ul.type-3 li {background: url(../images/icons/small/list-icon3.png) no-repeat 7px center;} +ul.type-4 li {background: url(../images/icons/small/list-icon4.png) no-repeat 10px center;} +ul.type-5 li {background: url(../images/icons/small/list-icon5.png) no-repeat 8px center;} +ul.type-6 li {background: url(../images/icons/small/list-icon6.png) no-repeat 7px center;} +ul.type-7 li {background: url(../images/icons/small/list-icon7.png) no-repeat 4px center;} +ul.type-8 li {background: url(../images/icons/small/list-icon8.png) no-repeat 4px center;} +ul.type-9 li {background: url(../images/icons/small/list-icon9.png) no-repeat 4px center;} +ul.type-10 li {background: url(../images/icons/small/list-icon10.png) no-repeat 7px center;} +ul.type-11 li {background: url(../images/icons/small/list-icon11.png) no-repeat 6px center;} +ul.type-12 li {background: url(../images/icons/small/list-icon12.png) no-repeat 7px center;} +ul.type-13 li {background: url(../images/icons/small/list-icon13.png) no-repeat 6px center;} +ul.type-14 li {background: url(../images/icons/small/list-icon14.png) no-repeat 6px center;} +ul.type-15 li {background: url(../images/icons/small/list-icon15.png) no-repeat 7px center;} + +ul.type-16 li { + padding: .2em 0 .2em 15px; + border-top: none; + background: url(../images/icons/small/list-icon16.png) no-repeat left center; +} +/* ----- Custom Box Styles ----- */ + +.info, .warning, .error, .success { + position: relative; + margin-bottom:2em; + padding:20px 80px 1px 80px; + -webkit-border-radiuzs:4px; + -moz-border-radius:4px; + border-radius:4px; + color: #fff; +} + +.ie8 .info, +.ie8 .warning, +.ie8 .error, +.ie8 .success {behavior: url(js/PIE.htc);} + +.info p, .warning p, .error p, .success p { + padding:0; + display:table; + overflow:hidden; +} + +.success {background: #96be2a url(../images/icons/middle/success.png) no-repeat 16px 50%;} +.error {background: #fc3a3a url(../images/icons/middle/error.png) no-repeat 20px 50%;} +.info {background: #65cbe5 url(../images/icons/middle/info.png) no-repeat 27px 50%;} +.warning {background: #fdaf40 url(../images/icons/middle/warning.png) no-repeat 36px 50%;} + +.close-box { + position:absolute; + right:20px; + top:30px; + display:block; + cursor:pointer; + font-size:2em; +} + +/* ----- Borders ----- */ + +.add-border { + display: block; + margin-bottom: 1.2em; + padding: 4px; + border: 1px solid #e0e0e0; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + border-radius: 2px; + background: #fff; + -webkit-transition: all .20s linear; + -moz-transition: all .20s linear; + -o-transition: all .20s linear; + transition: all .20s linear; +} + +.add-border:hover { + border: 1px solid #fff !important; + background: #8f8f8f; + -webkit-shadow: inset 0 0 5px rgba(0,0,0,.5), 0 1px 3px rgba(0,0,0,.1); + -moz-shadow: inset 0 0 5px rgba(0,0,0,.5), 0 1px 3px rgba(0,0,0,.1); + box-shadow: inset 0 0 5px rgba(0,0,0,.5), 0 1px 3px rgba(0,0,0,.1); +} + +/* ----- Styles for Buttons ----- */ + +.button { + display: inline-block; + margin-bottom: 1em; +/* padding: 0.6em 1.5em 0.6em;*/ + outline:none; + border: 1px solid transparent; + -webkit-border-radius: .4em; + -moz-border-radius: .4em; + border-radius: .4em; + background: #e4e4e4; + color:#fff !important; + vertical-align: baseline; + text-align:center; + text-decoration: none; + font-weight: 700; + cursor:pointer; + -webkit-box-shadow: 0 2px 0 #cfcfcf; + -moz-box-shadow: 0 2px 0 #cfcfcf; + box-shadow: 0 2px 0 #cfcfcf; + position:relative; +} + +.ie8 .button {behavior: url(js/PIE.htc);} + +.button:hover {text-decoration: none !important;} +.button:active { + top: 1px; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} + +.small { + padding: .4em 1.5em .4em; + font-size: 1em; +} + +.medium { + padding: .5em 1.3em .5em; + font-weight: 100; + font-size: 1.167em; +} + +.large { + padding: .7em 1em .7em; + font-weight: 100; + font-size: 1.417em; +} + +.align-btn-left {float: left;} +.align-btn-right {float: right;} + +.turquoise { + color:#fff; + border: 1px solid #063f38; + background: #06413a; + background: -webkit-gradient(linear, left top, left bottom, from(#095b51), to(#06413a)); + background: -moz-linear-gradient(top, #095b51, #06413a); + background: -o-linear-gradient(rgb(9,91,81),rgb(6,65,58)); +} + +.ie7 .turquoise {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#095b51', endColorstr='#06413a');} +.ie8 .turquoise {-pie-background: linear-gradient(rgb(9,91,81),rgb(6,65,58));} + +.turquoise:hover { + background: -webkit-gradient(linear, left top, left bottom, from(#06413a), to(#095b51)); + background: -moz-linear-gradient(top, #06413a, #095b51); + background: -o-linear-gradient(rgb(6,65,58),rgb(9,91,81)); +} + +.ie7 .turquoise:hover {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#06413a', endColorstr='#095b51');} +.ie8 .turquoise:hover {-pie-background: linear-gradient(rgb(6,65,58),rgb(9,91,81)); } + +.cyan { + color:#fff; + border: 1px solid #017492; + background: #017795; + background: -webkit-gradient(linear, left top, left bottom, from(#01a8c3), to(#017795)); + background: -moz-linear-gradient(top, #01a8c3, #017795); + background: -o-linear-gradient(rgb(1,168,195),rgb(1,119,149)); +} + +.ie7 .cyan {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#01a8c3', endColorstr='#017795');} +.ie8 .cyan {-pie-background: linear-gradient(rgb(1, 168, 195), rgb(1, 119, 149));} + +.cyan:hover { + background: #01a8c3; + background: -webkit-gradient(linear, left top, left bottom, from(#017795), to(#01a8c3)); + background: -moz-linear-gradient(top, #017795, #01a8c3); + background: -o-linear-gradient(rgb(1,119,149),rgb(1,168,195)); +} + +.ie7 .cyan:hover {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#017795', endColorstr='#01a8c3');} +.ie8 .cyan:hover {-pie-background: linear-gradient(rgb(1, 119, 149), rgb(1, 168, 195));} + +.light_turquoise { + color:#3d9fac !important; + border: 1px solid #92d7db; + background: #afe2e5; + background: -webkit-gradient(linear, left top, left bottom, from(#d3eff1), to(#afe2e5)); + background: -moz-linear-gradient(top, #d3eff1, #afe2e5); + background: -o-linear-gradient(rgb(211,239,241),rgb(175,226,229)); +} + +.ie7 .light_turquoise {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#d3eff1', endColorstr='#afe2e5');} +.ie8 .light_turquoise {-pie-background: linear-gradient(rgb(211,239,241),rgb(175,226,229)); } + +.light_turquoise:hover { + background: #d3eff1; + background: -webkit-gradient(linear, left top, left bottom, from(#afe2e5), to(#d3eff1)); + background: -moz-linear-gradient(top, #afe2e5, #d3eff1); + background: -o-linear-gradient(rgb(175,226,229),rgb(211,239,241)); +} + +.ie7 .light_turquoise:hover {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#afe2e5', endColorstr='#d3eff1');} +.ie8 .light_turquoise:hover {-pie-background: linear-gradient(rgb(175,226,229),rgb(211,239,241));} + +.blue { + color:#6477b3 !important; + border: 1px solid #bfc9ef; + background: #d1d7ed; + background: -webkit-gradient(linear, left top, left bottom, from(#e6e9f5), to(#d1d7ed)); + background: -moz-linear-gradient(top, #e6e9f5, #d1d7ed); + background: -o-linear-gradient(rgb(230,233,245),rgb(209,215,237)); +} + +.ie7 .blue {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#e6e9f5', endColorstr='#d1d7ed');} +.ie8 .blue {-pie-background: linear-gradient(rgb(230,233,245),rgb(209,215,237));} + +.blue:hover { + background: #e6e9f5; + background: -webkit-gradient(linear, left top, left bottom, from(#d1d7ed), to(#e6e9f5)); + background: -moz-linear-gradient(top, #d1d7ed, #e6e9f5); + background: -o-linear-gradient(rgb(209,215,237),rgb(230,233,245)); +} + +.ie7 .blue:hover {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#d1d7ed', endColorstr='#e6e9f5');} +.ie8 .blue:hover {-pie-background: linear-gradient(rgb(209,215,237),rgb(230,233,245)); } + +.green { + color:#fff; + border: 1px solid #5b8100; + background: #689302; + background: -webkit-gradient(linear, left top, left bottom, from(#86b702), to(#689302)); + background: -moz-linear-gradient(top, #86b702, #689302); + background: -o-linear-gradient(rgb(134,183,2),rgb(104,147,2)); +} + +.ie7 .green {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#86b702', endColorstr='#689302');} +.ie8 .green {-pie-background: linear-gradient(rgb(134,183,2),rgb(104,147,2));} + +.green:hover { + background: #86b702; + background: -webkit-gradient(linear, left top, left bottom, from(#689302), to(#86b702)); + background: -moz-linear-gradient(top, #689302, #86b702); + background: -o-linear-gradient(rgb(104,147,2),rgb(134,183,2)); +} + +.ie7 .green:hover {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#689302', endColorstr='#86b702');} +.ie8 .green:hover {-pie-background: linear-gradient(rgb(104,147,2),rgb(134,183,2)); } + +.vinous { + color:#fff; + border: 1px solid #642d30; + background: #672e31; + background: -webkit-gradient(linear, left top, left bottom, from(#914146), to(#672e31)); + background: -moz-linear-gradient(top, #914146, #672e31); + background: -o-linear-gradient(rgb(145,65,70),rgb(103,46,49)); +} + +.ie7 .vinous {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#914146', endColorstr='#672e31');} +.ie8 .vinous {-pie-background: linear-gradient(rgb(145,65,70),rgb(103,46,49)); } + +.vinous:hover { + background: #914146; + background: -webkit-gradient(linear, left top, left bottom, from(#672e31), to(#914146)); + background: -moz-linear-gradient(top, #672e31, #914146); + background: -o-linear-gradient(rgb(103,46,49),rgb(145,65,70)); +} + +.ie7 .vinous:hover {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#672e31', endColorstr='#914146');} +.ie8 .vinous:hover {-pie-background: linear-gradient(rgb(103,46,49),rgb(145,65,70));} + +.red { + color:#fff; + border: 1px solid #a3042c; + background: #a6042d; + background: -webkit-gradient(linear, left top, left bottom, from(#cc0640), to(#a6042d)); + background: -moz-linear-gradient(top, #cc0640, #a6042d); + background: -o-linear-gradient(rgb(204,6,64),rgb(166,4,45)); +} + +.ie7 .red {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#cc0640', endColorstr='#a6042d');} +.ie8 .red {-pie-background: linear-gradient(rgb(204,6,64),rgb(166,4,45)); } + +.red:hover { + background: #cc0640; + background: -webkit-gradient(linear, left top, left bottom, from(#a6042d), to(#cc0640)); + background: -moz-linear-gradient(top, #a6042d, #cc0640); + background: -o-linear-gradient(rgb(166,4,45),rgb(204,6,64)); +} + +.ie7 .red:hover {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#a6042d', endColorstr='#cc0640');} +.ie8 .red:hover {-pie-background: linear-gradient(rgb(166,4,45),rgb(204,6,64));} + +.orange { + color:#fff; + border: 1px solid #f28c4e; + background: #f28c4e; + background: -webkit-gradient(linear, left top, left bottom, from(#f8c071), to(#f28c4e)); + background: -moz-linear-gradient(top, #f8c071, #f28c4e); + background: -o-linear-gradient(rgb(248,192,113),rgb(242,140,78)); +} + +.ie7 .orange {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f8c071', endColorstr='#f28c4e');} +.ie8 .orange {-pie-background: linear-gradient(rgb(248,192,113),rgb(242,140,78)); } + +.orange:hover { + background: #f8c071; + background: -webkit-gradient(linear, left top, left bottom, from(#f28c4e), to(#f8c071)); + background: -moz-linear-gradient(top, #f28c4e, #f8c071); + background: -o-linear-gradient(rgb(242,140,78),rgb(248,192,113)); +} + +.ie7 .orange:hover {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f28c4e', endColorstr='#f8c071');} +.ie8 .orange:hover {-pie-background: linear-gradient(rgb(242,140,78),rgb(248,192,113));} + +.dark_gray { + color:#fff; + border: 1px solid #6e6c79; + background: #716f7c; + background: -webkit-gradient(linear, left top, left bottom, from(#8c899a), to(#716f7c)); + background: -moz-linear-gradient(top, #8c899a, #716f7c); + background: -o-linear-gradient(rgb(140,137,154),rgb(113,111,124)); +} + +.ie7 .dark_gray {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#8c899a', endColorstr='#716f7c');} +.ie8 .dark_gray {-pie-background: linear-gradient(rgb(140,137,154),rgb(113,111,124));} + +.dark_gray:hover { + background: #8c899a; + background: -webkit-gradient(linear, left top, left bottom, from(#716f7c), to(#8c899a)); + background: -moz-linear-gradient(top, #716f7c, #8c899a); + background: -o-linear-gradient(rgb(113,111,124),rgb(140,137,154)); +} + +.ie7 .dark_gray:hover {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#716f7c', endColorstr='#8c899a');} +.ie8 .dark_gray:hover {-pie-background: linear-gradient(rgb(113,111,124),rgb(140,137,154)); } + +.violet { + color:#fff; + border: 1px solid #bc8ac5; + background: #bc8ac5; + background: -webkit-gradient(linear, left top, left bottom, from(#d9bdde), to(#bc8ac5)); + background: -moz-linear-gradient(top, #d9bdde, #bc8ac5); + background: -o-linear-gradient(rgb(217,189,222),rgb(188,138,197)); +} + +.ie7 .violet {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#d9bdde', endColorstr='#bc8ac5');} +.ie8 .violet {-pie-background: linear-gradient(rgb(217,189,222),rgb(188,138,197));} + +.violet:hover { + background: #d9bdde; + background: -webkit-gradient(linear, left top, left bottom, from(#bc8ac5), to(#d9bdde)); + background: -moz-linear-gradient(top, #bc8ac5, #d9bdde); + background: -o-linear-gradient(rgb(188,138,197),rgb(217,189,222)); +} + +.ie7 .violet:hover {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#bc8ac5', endColorstr='#d9bdde');} +.ie8 .violet:hover {-pie-background: linear-gradient(rgb(188,138,197),rgb(217,189,222));} + +.dark_violet { + color:#fff; + border: 1px solid #523788; + background: #54398b; + background: -webkit-gradient(linear, left top, left bottom, from(#7750be), to(#54398b)); + background: -moz-linear-gradient(top, #7750be, #54398b); + background: -o-linear-gradient(rgb(119,80,190),rgb(84,57,139)); +} + +.ie7 .dark_violet {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#7750be', endColorstr='#54398b');} +.ie8 .dark_violet {-pie-background: linear-gradient(rgb(119,80,190),rgb(84,57,139));} + +.dark_violet:hover { + background: #7750be; + background: -webkit-gradient(linear, left top, left bottom, from(#54398b), to(#7750be)); + background: -moz-linear-gradient(top, #54398b, #7750be); + background: -o-linear-gradient(rgb(84,57,139),rgb(119,80,190)); +} + +.ie7 .dark_violet:hover {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#54398b', endColorstr='#7750be');} +.ie8 .dark_violet:hover {-pie-background: linear-gradient(rgb(84,57,139),rgb(119,80,190)); } + +.black { + color: #fff; + border: 1px solid #111113; + background: #1d1d20; + background: -webkit-gradient(linear, left top, left bottom, from(#494950), to(#1d1d20)); + background: -moz-linear-gradient(top, #494950, #1d1d20); + background: -o-linear-gradient(rgb(73,73,80),rgb(29,29,32)); +} + +.ie7 .black {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#494950', endColorstr='#1d1d20');} +.ie8 .black {-pie-background: linear-gradient(rgb(73,73,80),rgb(29,29,32));} + +.black:hover { + background: #494950; + background: -webkit-gradient(linear, left top, left bottom, from(#1d1d20), to(#494950)); + background: -moz-linear-gradient(top, #1d1d20, #494950); + background: -o-linear-gradient(rgb(29,29,32),rgb(73,73,80)); +} + +.ie7 .black:hover {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#1d1d20', endColorstr='#494950');} +.ie8 .black:hover {-pie-background: linear-gradient(rgb(29,29,32),rgb(73,73,80));} + +.gray { + color: #000 !important; + border: 1px solid #b7b6b6; + background: #e0e0e0; + background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#e0e0e0)); + background: -moz-linear-gradient(top, #fff, #e0e0e0); + background: -o-linear-gradient(rgb(255,255,255),rgb(224,224,224)); +} + +.ie7 .gray {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#e0e0e0');} +.ie8 .gray {-pie-background: linear-gradient(rgb(255,255,255),rgb(224,224,224));} + +.gray:hover { + background: #fff; + background: -webkit-gradient(linear, left top, left bottom, from(#e0e0e0), to(#fff)); + background: -moz-linear-gradient(top, #e0e0e0, #fff); + background: -o-linear-gradient(rgb(224,224,224),rgb(255,255,255)); +} + +.ie7 .gray:hover {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#e0e0e0', endColorstr='#ffffff');} +.ie8 .gray:hover {-pie-background: linear-gradient(rgb(224,224,224),rgb(255,255,255));} + +/* ----- Features Tables ----- */ + +.feature-table { + position:relative; + margin:0 0 20px 0; + width:100%; + border:1px solid #b7b6b6; + border-collapse:inherit; + -webkit-border-radius:6px; + -moz-border-radius:6px; + border-radius:6px; + background:#fff; +} + +table.feature-table thead tr { + position: relative; + -webkit-border-radius:4px; + -moz-border-radius:4px; + border-radius:4px; + -webkit-box-shadow:0 3px 0 #ededed; + -moz-box-shadow:0 3px 0 #ededed; + box-shadow:0 3px 0 #ededed; +} + +.ie8 table.feature-table thead tr {behavior: url(js/PIE.htc);} + +.feature-table thead tr th { + position:relative; + margin:0; + padding: .45em .9em .45em .7em; + border-bottom: 1px solid #b7b6b6; + color:#000; + text-align:left; + font-weight:100; + font-size: 1.25em; + background: #f0f0f0; + background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f0f0f0)); + background: -moz-linear-gradient(top, #fff, #f0f0f0); + background: -o-linear-gradient(rgb(255,255,255),rgb(240,240,240)); +} + +table.feature-table thead tr th:first-child {border-left: none;} +table.feature-table thead tr th {border-left:1px solid #b7b6b6;} + +table.feature-table thead tr th.leftR { + -webkit-border-radius:5px 0 0 5px; + -moz-border-radius:5px 0 0 5px; + border-radius:5px 0 0 5px; +} + +table.feature-table thead tr th.rightR { + -moz-border-radius:0 5px 5px 0; + -webkit-border-radius:0 5px 5px 0; + border-radius:0 5px 5px 0; +} + +table.feature-table tbody td { + margin:0; + padding: .45em .9em; + border-top:1px solid #dedcdc; + border-left:1px solid #dedcdc; + color:#787878; +} + +table.feature-table tbody tr td:first-child {border-left: none;} +table.feature-table tbody tr:first-child td {border-top:none;} +table.feature-table tbody tr.odd td {background-color: #f7f7f7;} + +/* --- Table Light Gray --- */ + +table.feature-table.light-gray thead tr th { + background: #a4a4a4; + background: -webkit-gradient(linear, left top, left bottom, from(#a4a4a4), to(#929292)); + background: -moz-linear-gradient(top, #a4a4a4, #929292); + background: -o-linear-gradient(rgb(164,164,164),rgb(146,146,146)); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#a4a4a4', endColorstr='#929292'); + color: #fff; + border-left: 1px solid #737373; + border-top: 1px solid #737373; + border-bottom: 1px solid #737373; +} + +table.feature-table.light-gray thead tr th.rightR { border-right: 1px solid #737373;} +table.feature-table.light-gray thead tr th.rightL { border-left: 1px solid #737373;} + +/* --- Table Dark Grey --- */ + +table.feature-table.dark-gray thead tr th { + background: #2f2f2f; + background: -webkit-gradient(linear, left top, left bottom, from(#2f2f2f), to(#1b1b1b)); + background: -moz-linear-gradient(top, #2f2f2f, #1b1b1b); + background: -o-linear-gradient(rgb(47,47,47),rgb(27,27,27)); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#2f2f2f', endColorstr='#1b1b1b'); + color: #fff; + border-left: 1px solid #000; + border-top: 1px solid #000; + border-bottom: 1px solid #000; +} + +table.feature-table.dark-gray thead tr th.rightR { border-right: 1px solid #000;} +table.feature-table.dark-gray thead tr th.rightL { border-left: 1px solid #000;} + +/* --- Table Light Green --- */ + +table.feature-table.light-green thead tr th { + background: #5d9f01; + background: -webkit-gradient(linear, left top, left bottom, from(#84b602), to(#5d9f01)); + background: -moz-linear-gradient(top, #84b602, #5d9f01); + background: -o-linear-gradient(rgb(132,182,2),rgb(93,159,1)); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#84b602', endColorstr='#5d9f01'); + color: #fff; + border-left: 1px solid #468701; + border-top: 1px solid #468701; + border-bottom: 1px solid #468701; +} + +table.feature-table.light-green thead tr th.rightR { + border-right: 1px solid #468701; +} + +table.feature-table.light-green thead tr th.rightL { + border-left: 1px solid #468701; +} + +/* --- Table Light Orange --- */ + +table.feature-table.light-orange thead tr th { + background: #ff8f07; + background: -webkit-gradient(linear, left top, left bottom, from(#fabd06), to(#ff8f07)); + background: -moz-linear-gradient(top, #fabd06, #ff8f07); + background: -o-linear-gradient(rgb(250,189,6),rgb(255,143,7)); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fabd06', endColorstr='#ff8f07'); + color: #fff; + border-left: 1px solid #de6e38; + border-top: 1px solid #de6e38; + border-bottom: 1px solid #de6e38; +} + +table.feature-table.light-orange thead tr th.rightR { border-right: 1px solid #de6e38;} +table.feature-table.light-orange thead tr th.rightL { border-left: 1px solid #de6e38;} + + +/*--------------------------------*/ +/* EXTENDED TYPOGRAPHY */ +/*--------------------------------*/ + +/* ----- Dropcaps ----- */ + + +.dropcap { + float: left; + margin: 0 15px 0 0; + color: #787878; + font-weight: 700; + font-size: 5.333em; + line-height: 1em; +} + +.dropcap2 { + float: left; + margin: 0 12px 0 0; + padding: 14px 17px; + background: url(../images/dropcap2.png) no-repeat scroll 50% 50% transparent; + color: #fff; + text-align: center; + font-weight: 700; + font-size: 3.25em; + line-height: 1em; +} + +.dropcap3 { + float: left; + margin: 0 12px 0 0; + padding: 16px 19px; + background: url(../images/dropcap3.png) no-repeat scroll 50% 50% transparent; + color: #313130; + text-align: center; + font-weight: 700; + font-size: 3.25em; + line-height: 1em; +} + +.dropcapspot { + position: relative; + float: left; + display: block ; + margin-right: 20px; + width: 56px; + height: 56px; + text-align: center; + line-height: 56px; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; + border-bottom: 1px solid #5e8002; + background: #689302; + background: -webkit-gradient(linear, left top, left bottom, from(#86b702), to(#689302)); + background: -moz-linear-gradient(top, #86b702, #689302); + background: -o-linear-gradient(rgb(134,183,2),rgb(104,147,2)); + color: #fff; + font-weight: 700; + font-size: 2.917em; +} + +.ie8 .dropcapspot { + -pie-background: linear-gradient(rgb(134,183,2),rgb(104,147,2)); + behavior: url(js/PIE.htc); +} + +.ie7 .dropcapspot {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#86b702', endColorstr='#689302');} + +/* ----- Pricing Table ----- */ + +.package { + position:relative; + float:left; + margin-right:20px; + margin-bottom: 60px; + width:230px; + -webkit-border-radius:6px; + -moz-border-radius:6px; + border-radius:6px; + background:#101010; +} + +.ie8 .package {behavior: url(js/PIE.htc);} + +.package.last, +.medium-package.last, +.small-package.last { + clear: right; + margin-right: 0; +} + +.package .head-title { + border: 1px solid #030303; + -webkit-border-radius: 6px 6px 0 0; + -moz-border-radius: 6px 6px 0 0; + border-radius: 6px 6px 0 0; + background: url(../images/pattern-dark.png) repeat; + position: relative; +} + +.ie8 .package .head-title {behavior: url(js/PIE.htc);} + +.package .head-title h3 { + padding-top:20px; + color:#fff; + text-align:center; +} + +.package .head-title span {color: #85b602;} + +.package .price { + height: 95px; + padding-top: 15px; + color:#fff; + text-align:center; + background: #0b0b0b url(../images/bg_price.png) no-repeat center top; +} + +.package .price .cost {position: relative;} + +.package .price .cost:before { + left: 0; + bottom: 0; + content: "$"; + color: #dfdede; + font-weight: 700; + font-size: 3.667em; +} + +.package .price span { + color: #dfdede; + font-weight: 700; + font-size: 7em; + line-height: 1em; + text-shadow: 1px 1px 0 #0e0e0e; +} + +.package .price sup { + position: relative; + color: #dfdede; + font-weight: 700; + font-size: 3.667em; + vertical-align: top; + line-height: 1.3em; + text-shadow: 1px 1px 0 #0e0e0e; +} + +.ie7 .package .price sup {top: 10px;} + +.package .price sup:after { + position: absolute; + left: 3px; + bottom: -35px; + content: "per/month"; + color: #989898; + font-weight: 100; + font-size: .27em; + text-shadow: none; +} + +.ie7 .package .price sup:after { + bottom: 5px; + font-size: 37%; +} + +.ie8 .package .price sup:after { + bottom: -5px; + font-size: 125%; +} + +.package .content-price { + background: #101010 url(../images/bg_price.png) no-repeat center -122px; +} + +.package .content-price ul { + margin:0; + padding: 15px 20px; +} + +.package .content-price ul li:first-child {border-top: none;} + +.package .content-price ul li { + border-top: 1px dotted #6c6b6b; + color: #fff; +} + +.package .content-price ul li.not-include { + color: #686767; + background: url(../images/icons/small/list-icon17.png) no-repeat scroll 8px center transparent; +} + +.package .foot-price { + clear:both; + margin-bottom: 5px; + text-align: center; +} + +.package .foot-price .button { + padding: 0.65em 2.3em; + border: none; + -webkit-border-radius: .15em; + -moz-border-radius: .15em; + border-radius: .15em; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + font-weight: 100; + font-size: 1.667em; +} + +/* --- Medium Package --- */ + +.medium-package { + position:relative; + float:left; + margin-right:10px; + margin-bottom: 60px; + width:173px; + border: 1px solid #e2e2e2; + -webkit-border-radius:6px; + -moz-border-radius:6px; + border-radius:6px; + -webkit-box-shadow: 0 0 3px #e6e6e6; + -moz-box-shadow: 0 0 3px #e6e6e6; + box-shadow: 0 0 3px #e6e6e6; + -webkit-transition: all .25s linear; + -moz-transition: all .25s linear; + -o-transition: all .25s linear; + transition: all .25s linear; + background: #fff; +} + +.ie8 .medium-package { + behavior: url(js/PIE.htc); +} + +.medium-package:hover { + -webkit-box-shadow: 0 -4px 10px rgba(0,0,0,.1), 0 4px 10px rgba(0,0,0,.1); + -moz-box-shadow: 0 -4px 10px rgba(0,0,0,.1), 0 4px 10px rgba(0,0,0,.1); + box-shadow: 0 -4px 10px rgba(0,0,0,.1), 0 4px 10px rgba(0,0,0,.1); + -webkit-transform: scale(1.07); + -moz-transform: scale(1.07); + -o-transform:scale(1.07); +} + +.ie7 .medium-package:hover, +.ie8 .medium-package:hover { + box-shadow: 0 -4px 10px #eaeaea, 0 4px 10px #eaeaea; +} + +.medium-package .head-title { + position: relative; + padding: 20px 0; + -webkit-border-radius: 6px 6px 0 0; + -moz-border-radius: 6px 6px 0 0; + border-radius: 6px 6px 0 0; + background: #f2f2f2; + background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f2f2f2)); + background: -moz-linear-gradient(top, #fff, #f2f2f2); + background: -o-linear-gradient(rgb(255,255,255),rgb(242,242,242)); +} + +.ie8 .medium-package .head-title { + -pie-background: linear-gradient(rgb(255,255,255),rgb(242,242,242)); + behavior: url(js/PIE.htc); +} + +.ie7 .medium-package .head-title {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#f2f2f2');} + +.medium-package .head-title h3 { + margin-bottom: 0; + color:#1c1c1c; + text-align:center; + font-size: 1.9em; +} + +.medium-package .head-title span { + color: #85b602; + font-weight: 700; +} + +.medium-package .price { + position: relative; + padding-top: 15px; + height: 65px; + border: 1px solid #030303; + color:#fff; + text-align:center; + -webkit-box-shadow: 0 -2px 3px #cbcbcb; + -moz-box-shadow: 0 -2px 3px #cbcbcb; + background: url(../images/pattern-dark.png) repeat; +} + +.medium-package .price .cost {position: relative;} + +.medium-package .price .cost:before { + position: relative; + left: 0; + bottom: 0; + content: "$"; + color: #dfdede; + font-weight: 700; + font-size: 2.833em; +} + +.medium-package .price span { + color: #dfdede; + font-weight: 700; + font-size: 4.5em; + text-shadow: 1px 1px 0 #0e0e0e; + line-height: 1em; +} + +.medium-package .price sup { + position: relative; + color: #dfdede; + font-weight: 700; + font-size: 2.5em; + vertical-align: top; + line-height: 1.1em; + text-shadow: 1px 1px 0 #0e0e0e; +} + +.ie7 .medium-package .price sup {top: 4px;} + +.medium-package .price sup:after { + position: absolute; + left: 3px; + bottom: -23px; + content: "per/month"; + color: #989898; + font-weight: 100; + font-size: .35em; + text-shadow: none; +} + +.ie7 .medium-package .price sup:after { + bottom: 0; + font-size: 38%; +} + +.ie8 .medium-package .price sup:after { + bottom: 0; + font-size: 100%; +} + +.medium-package .content-price { + position: relative; + background: #f0f0f0; + background: -webkit-gradient(linear, left top, left bottom, from(#f0f0f0), to(#fff)); + background: -moz-linear-gradient(top, #f0f0f0, #fff); + background: -o-linear-gradient(rgb(240,240,240),rgb(255,255,255)); +} + +.ie8 .medium-package .content-price { + -pie-background: linear-gradient(rgb(240,240,240),rgb(255,255,255)); + behavior: url(js/PIE.htc); +} + +.ie7 .medium-package .content-price {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f0f0f0', endColorstr='#ffffff');} + +.medium-package .content-price ul { + margin:0; + padding: 15px; +} + +.medium-package .foot-price { + clear:both; + padding: 0 0 10px 15px; +} + +/* --- Small Package --- */ + +.small-package { + position:relative; + float:left; + margin-right:10px; + margin-bottom: 40px; + width:138px; + -webkit-border-radius:6px; + -moz-border-radius:6px; + border-radius:6px; + -webkit-box-shadow: 0 0 3px #e6e6e6; + -moz-box-shadow: 0 0 3px #e6e6e6; + box-shadow: 0 0 3px #e6e6e6; + background: #101010; + -webkit-transition: all .25s linear; + -moz-transition: all .25s linear; + -o-transition: all .25s linear; + transition: all .25s linear; +} + +.ie8 .small-package {behavior: url(js/PIE.htc);} + +.small-package:hover { + -webkit-box-shadow: 0 -4px 10px rgba(0,0,0,.1), 0 4px 10px rgba(0,0,0,.1); + -moz-box-shadow: 0 -4px 10px rgba(0,0,0,.1), 0 4px 10px rgba(0,0,0,.1); + box-shadow: 0 -4px 10px rgba(0,0,0,.1), 0 4px 10px rgba(0,0,0,.1); + -webkit-transform: scale(1.07); + -moz-transform: scale(1.07); + -o-transform:scale(1.07); +} + +.ie8 .small-package:hover {box-shadow: 0 -4px 10px #eaeaea, 0 4px 10px #eaeaea;} + +.small-package .head-title { + position: relative; + border: 1px solid #030303; + -webkit-border-radius: 6px 6px 0 0; + -moz-border-radius: 6px 6px 0 0; + border-radius: 6px 6px 0 0; + background: url(../images/pattern-dark.png) repeat; +} + +.ie8 .small-package .head-title {behavior: url(js/PIE.htc);} + +.small-package .head-title h3 { + padding: 15px 10px 0 10px; + color:#fff; + text-align:center; + font-size: 1.45em; +} + +.small-package .head-title span { + color: #85b602; + font-weight: 700; +} + +.small-package .price { + position: relative; + color:#fff; + height: 50px; + padding-top: 20px; + background: #0b0b0b url(../images/bg_small_price.png) no-repeat center top; + text-align: center; +} + +.small-package .price .cost {position: relative;} + +.small-package .price .cost:before { + position: relative; + left: 0; + bottom: 0; + content: "$"; + color: #dfdede; + font-weight: 700; + font-size: 2.1em; +} + +.small-package .price span { + color: #dfdede; + font-weight: 700; + font-size: 3.2em; + text-shadow: 1px 1px 0 #0e0e0e; + line-height: 1em; +} + +.small-package .price sup { + position: relative; + color: #dfdede; + font-weight: 700; + font-size: 1.6em; + vertical-align: top; + line-height: 0; + text-shadow: 1px 1px 0 #0e0e0e; + line-height: 1.3em; +} + +.ie7 .small-package .price sup {top: 6px;} + +.small-package .price sup:after { + position: absolute; + left: 3px; + bottom: -17px; + content: "p/m"; + color: #989898; + font-weight: 100; + font-size: .6em; + text-shadow: none; +} + +.ie7 .small-package .price sup:after { + bottom: 5px; + font-size: 75%; +} + +.ie8 .small-package .price sup:after { + bottom: 0; + font-size: 120%; +} + +.small-package .content-price { + background: #101010 url(../images/bg_small_price.png) no-repeat center -69px; +} + +.small-package .content-price { + margin:0; + padding: 10px 15px 0 15px; +} + +.small-package .content-price p {font-size: 0.9em;} + +.small-package .foot-price { + clear:both; + margin-bottom: 5px; + text-align: center; +} + +.small-package .foot-price .button { + padding: 0.3em 1.9em; + border: none; + -webkit-border-radius: .15em; + -moz-border-radius: .15em; + border-radius: .15em; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + font-weight: 700; + font-size: 1em; +} + +/*--------------------------------*/ +/* CONTACT AREA */ +/*--------------------------------*/ + +#map_canvas { + position: relative; + margin-bottom: 1em; + width: 770px; + height: 410px; +} + +.contacts-wrapper h3 {font-size: 1.583em;} +.contact-address {margin-bottom: 1em;} +.contact-address strong {color: #131313;} + +.contact-address a { + text-decoration: underline; + color: #85b602; +} + +.contact-address a:hover {text-decoration: none;} + +/* --- Contact Form --- */ + +#contactform .row {margin-bottom: 1em;} + +#contactform input[type="text"], +#contactform select { + position: relative; + margin: 5px 0; + padding:6px 10px; + width: 330px; + border:1px solid #d0d0d0; + background-color:#ededed; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; + color: #767676; + -webkit-transition: all .20s linear; + -moz-transition: all .20s linear; + -o-transition: all .20s linear; + transition: all .20s linear; +} + +.ie8 #contactform input[type="text"], +.ie8 #contactform select {behavior: url(js/PIE.htc);} + +#contactform input[type="text"]:hover, +#contactform select:hover, +#contactform textarea:hover { + -webkit-box-shadow: inset 0 0 7px rgba(0,0,0,.1); + -moz-box-shadow: inset 0 0 7px rgba(0,0,0,.1); + box-shadow: inset 0 0 7px rgba(0,0,0,.1); + background-color: #f0f0f0; +} + +#contactform input[type="text"]:focus, +#contactform select:focus, +#contactform textarea:focus { + -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,.15); + -moz-box-shadow: inset 0 0 5px rgba(0,0,0,.15); + box-shadow: inset 0 0 5px rgba(0,0,0,.15); + background-color: #f8f8f8; + border-color: #b1b0b0; +} + +#contactform select {width: 352px;} + +#contactform textarea { + position: relative; + margin: 5px 0; + padding: 5px 10px; + height: 230px; + max-width: 333px; + max-height: 550px; + min-width: 333px; + min-height: 230px; + border:1px solid #d0d0d0; + background-color:#ededed; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; + color:#838282; + font-size: 1em; + font-family:Arial, Helvetica, sans-serif; + -webkit-transition: all .20s linear; + -moz-transition: all .20s linear; + -o-transition: all .20s linear; + transition: all .20s linear; +} + +.ie8 #contactform textarea {behavior: url(js/PIE.htc);} + +#contactform label {display: block; color: #000;} +#contactform .row .required {color: #85b602; margin-right: 3px;} + +#contactform input[type="submit"] { + padding:.2em .6em .4em .6em; + display:block; + border:1px solid #5b8100; + cursor:pointer; +} + +.ie8 #contactform input[type="submit"] { + padding-top: .35em; + font-size: 1.1em; +} + +/*--------------------------------*/ +/* WIDGETS */ +/*--------------------------------*/ + +.widget {margin-bottom: 2em;} + +/* ----- Widget Twitter ----- */ + +.twitter-widget { + border-top: 1px solid #eeeeee; + background: url("../images/teaser.png") repeat-y #fbfbfb; + border-radius: 0 0 5px 5px; + overflow: hidden; + margin: 0 0 .5em; + padding: 1.5em 20px 0; + position: relative; + z-index: 5; +} + +.twitter-widget a { + padding: 20px 0 20px 45px; + background: url("../images/outro_twitter.png") no-repeat left 10px; + color: #989898; + font-size: 1.167em; +} + +#jstwitter .tweet { + list-style: none; + margin: 0; + padding: 0; +} + +#jstwitter .tweet:first-child { + padding: 0; + border-top: none; +} + +#jstwitter .time { + display: block; + margin-top: 1em; + margin-bottom: .3em; + padding: 2px 0 0 28px; + color: #f4f4f5; + font-style: italic; + font-size: 0.917em; + background: url(../images/birds_twitter.png) no-repeat left center; +} + +#jstwitter .tweet:first-child {margin-top: 0;} +#jstwitter .tweet {margin-top: 1.4em;} + +#jstwitter .tweet-content { + position: relative; + z-index: 2; + padding: 15px 20px; + background-color: rgba(0,0,0,.7); +} + +.ie7 #jstwitter .tweet-content, +.ie8 #jstwitter .tweet-content { + background: url(../images/mask.png) repeat; +} + +#jstwitter .tweet-content:after { + position: absolute; + z-index: 1; + bottom: -10px; + left: 7px; + width: 11px; + height: 10px; + background: url(../images/arrow-tweet.png) no-repeat; + content: ''; +} + +#jstwitter .tweet a {color: #7a9f17;} + +/* ----- Latest Posts Widget ----- */ + +footer .latest_posts ul {margin-bottom: 1em;} + +footer .latest_posts ul li:first-child { + padding: 0; + border-top: none; +} + +footer a:hover {text-decoration: underline;} + +footer .latest_posts ul li:first-child {margin-top: 0;} +footer .latest_posts ul li {margin-top: 1em;} + +aside .small-custom-frame { + position: relative; + float: left; + display: block; + margin-right: 11px; + margin-bottom: .7em; + padding: 4px; + border: 1px solid #b7b6b6; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; + background: #f0f0f0; + overflow: hidden; + background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f0f0f0)); + background: -moz-linear-gradient(top, #fff, #f0f0f0); + background: -o-linear-gradient(rgb(255,255,255),rgb(240,240,240)); + -webkit-box-shadow: 0 3px 0 #e4e4e4; + -moz-box-shadow: 0 3px 0 #e4e4e4; + box-shadow: 0 3px 0 #e4e4e4; + -webkit-transition: all .20s linear; + -moz-transition: all .20s linear; + -o-transition: all .20s linear; + transition: all .20s linear; +} + +footer .small-custom-frame { + position: relative; + float: left; + display: block; + margin-right: 11px; + margin-bottom: .7em; + padding: 4px; + border: 1px solid transparent; + background-color: #f2f2f2; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; +} + +footer .small-custom-frame:hover {background-color: #8f8f8f; border: none;} + +.ie8 .small-custom-frame { + -pie-background: linear-gradient(rgb(255,255,255),rgb(240,240,240)); + behavior: url(js/PIE.htc); +} + +.ie7 .small-custom-frame {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#f2f2f2');} + +.small-custom-frame img { + position: relative; + border: 1px solid transparent; + -webkit-transition: all .20s linear; + -moz-transition: all .20s linear; + -o-transition: all .20s linear; + transition: all .20s linear; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; + display: block; + width: 48px; + height: 48px; +} + +.ie8 .small-custom-frame img {behavior: url(js/PIE.htc);} + +.small-custom-frame:hover img {border: 1px solid #fff;} + +.small-custom-frame:hover { + border: 1px solid #fff !important; + background: #8f8f8f; + -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,.5), 0 1px 3px rgba(0,0,0,.1); + -moz-box-shadow: inset 0 0 5px rgba(0,0,0,.5), 0 1px 3px rgba(0,0,0,.1); + box-shadow: inset 0 0 5px rgba(0,0,0,.5), 0 1px 3px rgba(0,0,0,.1); +} + +.ie8 .small-custom-frame:hover { + background: #797979 !important; + border-radius: 3px !important; + behavior: url(js/PIE.htc); +} + +.ie7 .small-custom-frame:hover {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#7a7a7a', endColorstr='#7a7a7a');} + +footer .latest_posts .teaser-title, +#sidebar .latest_posts .teaser-title {color: #7a9f17;} +#sidebar .latest_posts .teaser-title:hover {text-decoration: underline;} + +footer .latest_posts .teaser-date, +#sidebar .latest_posts .teaser-date { + display: table; + color: #787878; + font-style: italic; + font-size: 0.917em; +} + +footer .latest_posts .teaser-date {margin-top: 5px; color: #fff;} + +#sidebar .latest_posts .widget-title, +#sidebar .archive .widget-title { + margin: 0; + padding-left: 12px; + height: 34px; + line-height: 34px; + border-bottom: 1px solid #d3d3d3; + -webkit-border-radius: 6px 6px 0 0; + -moz-border-radius: 6px 6px 0 0; + border-radius: 6px 6px 0 0; + background: #85b602; + background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ececec)); + background: -moz-linear-gradient(top, #fff, #ececec); + background: -o-linear-gradient(rgb(255,255,255),rgb(236,236,236)); + position: relative; +} + +.ie8 #sidebar .latest_posts .widget-title, +.ie8 #sidebar .archive .widget-title { + -pie-background: linear-gradient(rgb(255,255,255),rgb(236,236,236)); + behavior: url(js/PIE.htc); +} + +.ie7 #sidebar .latest_posts .widget-title, +.ie7 #sidebar .archive .widget-title {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#ececec');} + +#sidebar .latest_posts, +#sidebar .archive { + padding-bottom: 20px; + -webkit-border-radius: 40em/4em; + -moz-border-radius: 40em/4em; + border-radius: 40em/4em; + background: #fff; + position: relative; +} + +.ie8 #sidebar .latest_posts, +.ie8 #sidebar .archive {behavior: url(js/PIE.htc);} + +#sidebar .latest_posts ul {padding: 20px 12px 0 12px;} +#sidebar .archive ul {padding: 10px 12px 0 12px;} + +#sidebar .latest_posts ul li { + margin-bottom: 1em; + padding: 0 0 1em 6px; + zoom: 1; + border-bottom: 1px dotted #b7b6b6; +} + +#sidebar .archive ul li:first-child {border: none;} +#sidebar .archive ul li { + padding: .5em 0 .5em 6px; + zoom: 1; + border-top: 1px dotted #b7b6b6; +} + +#sidebar .archive ul li a {color: #787878;} +#sidebar .archive ul li a:hover {color: #7a9f17;} + +.see-all { + margin-left: 18px; + padding-right: 8px; + background: url(../images/green-arrow.png) no-repeat right 6px; + color: #000; +} + +footer .see-all { + margin-left: 0; + color: #fff; +} + +/* ----- Widget Text ----- */ + +.widget_text strong { color: #fff; font-weight: 700;} +.widget_text a {color: #7a9f17;} + +/* ----- Widget Social ----- */ + +footer .social_widget li { + position: relative; + float: left; + margin-right: 8px; +} + +footer .social_widget li:after { + position: absolute; + bottom: 50px; + left: 50%; + z-index: 99; + display: block; + margin: 0 0 0 -5px; + width: 10px; + height: 10px; + border-right: 1px solid #ccc; + border-bottom: 1px solid #ccc; + background: #e0e0e0; + content: ""; + opacity: 0; + -webkit-transition: all .2s linear; + -moz-transition: all .2s linear; + -o-transition: all .2s linear; + transition: all .2s linear; + -webkit-transform: rotate(45deg); + -moz-transform: rotate(45deg); + -o-transform: rotate(45deg); + transform: rotate(45deg); + filter: alpha(opacity=0); +} + +footer .social_widget li:after { + left: 8px; + margin-left: 0; +} + +footer .social_widget li:before { + position: absolute; + bottom: 50px; + left: 0; + visibility: hidden; + z-index: 98; + padding: 5px 10px; + width: 143px; + border: 1px solid #ccc; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; + background: #e0e0e0; + background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#e0e0e0)); + background: -moz-linear-gradient(top, #fff, #e0e0e0); + background: -o-linear-gradient(rgb(255,255,255),rgb(224,224,224)); + color: #555; + content: attr(data-tooltip) !important; + line-height: 1.5; + opacity: 0; + -webkit-transition: all .2s linear; + -moz-transition: all .2s linear; + -o-transition: all .2s linear; + transition: all .2s linear; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#e0e0e0'); + filter: alpha(opacity=0); +} + +footer .social_widget li:before { + left: -15px; + text-align: left; + width: 158px; +} + +footer .social_widget li:hover:before { + bottom: 35px; + visibility: visible; + opacity: 1; + filter: alpha(opacity=100); +} + +footer .social_widget li:hover:after { + bottom: 30px; + opacity:1; + filter: alpha(opacity=0); +} + +.ie8 footer .social_widget li:after, +.ie8 footer .social_widget li:before {display: none;} +.ie8 footer .social_widget li:hover:before {display:block;} + +footer .social_widget a { + opacity: .2; + filter: alpha(opacity = 20); + display: block; + width: 24px; + height: 24px; + text-indent: -9999px; + -webkit-border-radius: 2px; + -moz-border-radius: 2px; + border-radius: 2px; + background: url(../images/social_icons.png) no-repeat #000; + -webkit-transition: opacity .25s linear; + -moz-transition: opacity .25s liner; + -o-transition: opacity .25s linear; + transition: opacity .25s linear; +} + +footer .social_widget li:hover a {opacity: 1; filter: alpha(opacity = 100);} + +footer .social_widget .social_icon1 { background-position: 0 0;} +footer .social_widget .social_icon2 { background-position: -32px 0;} +footer .social_widget .social_icon3 { background-position: -64px 0;} + +/* ----- Widget Categories ----- */ + +.categories_widget { + -webkit-border-radius: 6px; + -moz-border-radius: 6px; + border-radius: 6px; + background-color: #85b602; + position: relative; +} + +.ie8 .categories_widget {behavior: url(js/PIE.htc);} + +.categories_widget .widget-title { + margin-bottom: 0; + padding-left: 12px; + height: 34px; + -webkit-border-radius: 6px 6px 0 0; + -moz-border-radius: 6px 6px 0 0; + border-radius: 6px 6px 0 0; + background: -moz-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(0,0,0,0.23) 100%); /* FF3.6+ */ + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0)), color-stop(100%,rgba(0,0,0,0.23))); /* Chrome,Safari4+ */ + background: -webkit-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(0,0,0,0.23) 100%); /* Chrome10+,Safari5.1+ */ + background: -o-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(0,0,0,0.23) 100%); /* Opera 11.10+ */ + background: -ms-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(0,0,0,0.23) 100%); /* IE10+ */ + background: linear-gradient(top, rgba(255,255,255,0) 0%,rgba(0,0,0,0.23) 100%); /* W3C */ + filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#3b000000',GradientType=0 ); /* IE6-9 */ + position: relative; + color: #fff; + line-height: 34px; +} + +.ie8 .categories_widget .widget-title { + -pie-background: linear-gradient(rgb(133,182,2),rgb(90,156,1)); + behavior: url(js/PIE.htc); +} + +.ie7 .categories_widget .widget-title {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#85b602', endColorstr='#5a9c01');} + +.categories_widget ul {padding: 5px 12px 10px;} +.categories_widget ul.categories > li {padding: .15em 0 .15em 0;} + +.categories_widget ul > li > a { + position: relative; + display: block; + padding: 5px 0 5px 0; + color: #fff !important; + text-indent: 26px; + -webkit-transition: all .25s linear; + -moz-transition: all .25s linear; + -o-transition: all .25s linear; + transition: all .25s linear; +} + +.categories_widget ul li ul li a { + padding: 5px 0 2px 0; + font-size: 0.917em; +} + +.categories_widget ul li a:after { + position: absolute; + top: 9px; + left: 6px; + width: 10px; + height: 11px; + background: url(../images/arrow.png) no-repeat left top; + content: ""; +} + +.categories_widget ul > li:hover > a { + -webkit-border-radius: 6px; + -moz-border-radius: 6px; + border-radius: 6px; + background: #0e0e0e; +} + +.categories_widget ul ul li:hover > a {background: none;} +.categories_widget ul li ul {padding: 0 0 8px 20px;} +.categories_widget ul li:hover > a:after {background-position: 0 -34px;} + +/* ----- Widget Testimonials ----- */ + +.testimonials { + border: 1px solid #030303; + -webkit-border-radius: 6px; + -moz-border-radius: 6px; + border-radius: 6px; + background: url(../images/pattern.png) repeat; + padding-bottom: .5em; + position: relative; +} + +.ie8 .testimonials {behavior: url(js/PIE.htc);} +.ie7 .testimonials {padding-bottom: 2em;} + +.testimonials .quote-text { + padding: 15px 15px 25px 15px; + color: #fff; + font-style: italic; + font-weight: 100; + zoom: 1; +} + +.testimonials .quote-text p {font-size: 1.25em;} + +.testimonials .quote-author { + display: block; + padding-top: .5em; + margin-top: 1em; + border-top: 1px dotted #4d4d4d; + color: #7a9f17; + font-style: normal; + font-size: 1em; +} + +/* ----- Widget Pagenavi ----- */ + +.pagenavi { + margin: 0 0 0 20px; + padding-bottom: 2em; +} + +.pagenavi .pages {margin-right: 20px;} + +.pagenavi .page, +.pagenavi .current { + position: relative; + padding: .1em .5em; + display: inline-block; + text-align: center; + border: 1px solid #b7b6b6; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; + background: #f0f0f0; + background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f0f0f0)); + background: -moz-linear-gradient(top, #fff, #f0f0f0); + background: -o-linear-gradient(rgb(255,255,255),rgb(240,240,240)); + color: #000; + font-weight: 700; +} + +.ie8 .pagenavi .page, +.ie8 .pagenavi .current { + -pie-background: linear-gradient(rgb(255,255,255),rgb(240,240,240)); + behavior: url(js/PIE.htc); +} + +.ie7 .pagenavi .page, +.ie7 .pagenavi .current {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#f0f0f0');} + +.pagenavi .page:hover { + background: #fff; + background: -webkit-gradient(linear, left top, left bottom, from(#f0f0f0), to(#fff)); + background: -moz-linear-gradient(top, #f0f0f0, #fff); + background: -o-linear-gradient(rgb(240,240,240),rgb(255,255,255)); +} + +.ie8 .pagenavi .page:hover { + -pie-background: linear-gradient(rgb(240,240,240),rgb(255,255,255)); + behavior: url('js/PIE.htc'); +} + +.ie7 .pagenavi .page:hover {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f2f2f2', endColorstr='#ffffff');} + +.pagenavi .page { + -webkit-box-shadow: 0 2px 0 #ededed; + -moz-box-shadow: 0 2px 0 #ededed; + box-shadow: 0 2px 0 #ededed; +} + +.pagenavi .current { + border: 1px solid #000; + background: #1d1d20; + background: -webkit-gradient(linear, left top, left bottom, from(#2a2a2e), to(#1d1d20)); + background: -moz-linear-gradient(top, #2a2a2e, #1d1d20); + background: -o-linear-gradient(rgb(42,42,46),rgb(29,29,32)); + color: #fff; +} + +.ie8 .pagenavi .current { + -pie-background: linear-gradient(rgb(42,42,46),rgb(29,29,32)); + behavior: url('js/PIE.htc'); +} + +.ie7 .pagenavi .current {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#2a2a2e', endColorstr='#1d1d20');} + +/* ----- Widget Accordion ----- */ + +.accordion li a:first-child { + border-top:none; +} + +.accordion li { + font-weight:100; + display:block; + position:relative; + text-decoration:none; + margin-bottom:1px; +} + +.accordion li a.opener { + display: block; + border:1px solid #fff; + background:#ccc; + color:#5d5d5d; + font-family:'Coda'; + font-size:1.3em; + -webkit-transition:all .25s linear; + -moz-transition:all .25s linear; + -o-transition:all .25s linear; + transition:all .25s linear; + padding:8px 10px; + outline: medium none; + text-decoration:none; + font-style:normal; +} + +.accordion li a.ui-state-active, +.accordion li a.ui-state-hover { + background:#ddd; + border:1px solid #fff; + color:#e9403b; + -webkit-box-shadow: inset 0 0 3px #aaa; + -moz-box-shadow: inset 0 0 3px #aaa; + box-shadow: inset 0 0 3px #aaa; +} + +.accordion li .slide-holder {padding:8px 10px;} + +.accordion li .slide-holder .slide { + border:1px solid #fff; + padding:10px; +} + +.accordion li .slide-holder h6 { + margin-top:.3em; + margin-bottom:.2em; + color:#5d5d5d; +} + +/* ----- Widget Tabbed ----- */ + +/* --- Tabs 1 --- */ + +.tabs-1 { + border: 1px solid #b7b6b6; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; +} + +.tabs-1 ul.tabs { + position: relative; + float: left; + margin: 0; + padding: 0; + width: 100%; + height: 35px; + border-bottom: 1px solid #b7b6b6; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; + background: #f0f0f0; + background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f0f0f0)); + background: -moz-linear-gradient(top, #fff, #f0f0f0); + background: -o-linear-gradient(rgb(255,255,255),rgb(240,240,240)); + list-style: none; +} + +.ie8 .tabs-1 ul.tabs { + -pie-background: linear-gradient(rgb(255,255,255),rgb(240,240,240)); + behavior: url(js/PIE.htc); +} + +.ie7 .tabs-1 ul.tabs {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#f0f0f0');} + +.tabs-1 ul.tabs li { + position: relative; + float: left; + overflow:hidden; + padding: 0; + height:35px; + border-right: 1px solid #b7b6b6; + border-bottom: 1px solid #b7b6b6; + line-height:32px; +} + +.tabs-1 ul.tabs li a { + position: relative; + font-size:1.25em; + padding:0 20px; + text-decoration: none; + color: #000; + display: block; + text-align:center; + outline: none; + border-bottom:none; +} + +.tabs-1 ul.tabs li a:hover { + height: 35px; + line-height:inherit; + background:#fff; + border:none; +} + +.tabs-1 ul.tabs li:first-child a:hover, +.tabs-1 ul.tabs li:first-child.active { + -webkit-border-radius: 4px 0 0 0; + -moz-border-radius: 4px 0 0 0; + border-radius: 4px 0 0 0; +} + +.tabs-1 ul.tabs li:first-child { + -webkit-border-radius: 0 0 0 4px ; + -moz-border-radius: 0 0 0 4px ; + border-radius: 0 0 0 4px ; +} + +.tabs-1 ul.tabs li.active { + border-bottom: 1px solid #fff; + background: #fff; +} + +.tabs-1 .tab_container { + clear: both; + overflow: hidden; + width: 100%; +} + +.tabs-1 .tab_content, +.tabs-2 .tab_content, +.tabs-3 .tab_content { + display:none; + padding: 20px 20px 0 20px; +} + +/* --- Tabs 2 --- */ + +.tabs-2 ul.tabs { + position: relative; + float: left; + margin: 0 0 6px 0; + padding: 0; + width: 100%; + height: 35px; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; + list-style: none; +} + +.tabs-2 ul.tabs li { + position: relative; + float: left; + overflow:hidden; + margin-right: 3px; + padding: 0; + height:35px; + border: 1px solid #b7b6b6; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; + line-height:32px; + -webkit-box-shadow: 0 3px 0 #ededed; + -moz-box-shadow: 0 3px 0 #ededed; + box-shadow: 0 3px 0 #ededed; + background: #f0f0f0; + background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f0f0f0)); + background: -moz-linear-gradient(top, #fff, #f0f0f0); + background: -o-linear-gradient(rgb(255,255,255),rgb(240,240,240)); +} + +.ie8 .tabs-2 ul.tabs li { + -pie-background: linear-gradient(rgb(255,255,255),rgb(240,240,240)); + behavior: url(js/PIE.htc); +} + +.ie7 .tabs-2 ul.tabs li {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#f0f0f0');} + +.tabs-2 ul.tabs li a { + font-size:1.25em; + padding:0 20px; + text-decoration: none; + color: #000; + display: block; + text-align:center; + outline: none; + border-bottom:none; +} + +.tabs-2 ul.tabs li.active, +.tabs-2 ul.tabs li:hover { + background: #fff; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + border: 1px solid #000; + background: #1b1b1b; + background: -webkit-gradient(linear, left top, left bottom, from(#2f2f2f), to(#1b1b1b)); + background: -moz-linear-gradient(top, #2f2f2f, #1b1b1b); + background: -o-linear-gradient(rgb(47,47,47),rgb(27,27,27)); +} + +.ie8 .tabs-2 ul.tabs li.active, +.ie8 .tabs-2 ul.tabs li:hover { + -pie-background: linear-gradient(rgb(47,47,47),rgb(27,27,27)); + behavior: url(js/PIE.htc); +} + +.ie7 .tabs-2 ul.tabs li.active, +.ie7 .tabs-2 ul.tabs li:hover {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#2f2f2f', endColorstr='#1b1b1b');} + +.tabs-2 ul.tabs li:hover a, +.tabs-2 ul.tabs li.active a {color: #fff;} + +.tabs-2 .tab_container { + position: relative; + clear: both; + overflow: hidden; + width: 100%; + border: 1px solid #b7b6b6; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; +} + +.ie8 .tabs-2 .tab_container { + behavior: url(js/PIE.htc); +} + +/* --- Tabs 3 --- */ + +.tabs-3 ul.tabs { + position: relative; + float: left; + margin-right: 5px; + padding: 0; + height: 35px; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; + list-style: none; +} + +.tabs-3 ul.tabs li { + position: relative; + overflow: hidden; + margin-bottom: 4px; + padding: 0; + height:35px; + border: 1px solid #b7b6b6; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; + line-height:32px; + -webkit-box-shadow: 0 3px 0 #ededed; + -moz-box-shadow: 0 3px 0 #ededed; + box-shadow: 0 3px 0 #ededed; + background: #f0f0f0; + background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f0f0f0)); + background: -moz-linear-gradient(top, #fff, #f0f0f0); + background: -o-linear-gradient(rgb(255,255,255),rgb(240,240,240)); +} + +.ie8 .tabs-3 ul.tabs li { + -pie-background: linear-gradient(rgb(255,255,255),rgb(240,240,240)); + behavior: url(js/PIE.htc); +} + +.ie7 .tabs-3 ul.tabs li {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#f0f0f0');} + +.tabs-3 ul.tabs li a { + font-size:1.25em; + padding:0 20px; + text-decoration: none; + color: #000; + display: block; + text-align:center; + outline: none; + border-bottom:none; +} + +.tabs-3 ul.tabs li.active, +.tabs-3 ul.tabs li:hover { + background: #fff; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + border: 1px solid #000; + background: #1b1b1b; + background: -webkit-gradient(linear, left top, left bottom, from(#2f2f2f), to(#1b1b1b)); + background: -moz-linear-gradient(top, #2f2f2f, #1b1b1b); + background: -o-linear-gradient(rgb(47,47,47),rgb(27,27,27)); +} + +.ie8 .tabs-3 ul.tabs li.active, +.ie8 .tabs-3 ul.tabs li:hover { + -pie-background: linear-gradient(rgb(47,47,47),rgb(27,27,27)); + behavior: url(js/PIE.htc); +} + +.ie7 .tabs-3 ul.tabs li.active, +.ie7 .tabs-3 ul.tabs li:hover {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#2f2f2f', endColorstr='#1b1b1b');} + +.tabs-3 ul.tabs li:hover a, +.tabs-3 ul.tabs li.active a {color: #fff;} + +.tabs-3 .tab_container { + position: relative; + display: table; + clear: none; + overflow: hidden; + border: 1px solid #b7b6b6; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; +} + +.ie8 .tabs-3 .tab_container {behavior: url(js/PIE.htc);} + +/* ----- Widget Toggle ----- */ + +.box-toggle { + position:relative; + margin-bottom: 1.8em; +} + +b.trigger { + position:relative; + display:block; + padding:9px 40px; + border:1px solid #b7b6b6; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; + color: #5d5d5d; + text-decoration: none; + font-weight: 100; + font-size: 1.25em; + cursor:pointer; + background: #f0f0f0; + background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f0f0f0)); + background: -moz-linear-gradient(top, #fff, #f0f0f0); + background: -o-linear-gradient(rgb(255,255,255),rgb(240,240,240)); + -webkit-box-shadow: 0 3px 0 #e4e4e4; + -moz-box-shadow: 0 3px 0 #e4e4e4; + box-shadow: 0 3px 0 #e4e4e4; +} + +.ie8 b.trigger { + -pie-background: linear-gradient(rgb(255,255,255),rgb(240,240,240)); + behavior: url(js/PIE.htc); +} + +.ie7 b.trigger {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#f0f0f0');} + +b.trigger:after { + position: absolute; + left: 6px; + top: 5px; + width: 26px; + height: 26px; + background: url(../images/collapse.png) no-repeat; + content: ""; +} + +b.trigger:hover {color:#85b602;} +b.trigger.active:after {background-position: 0 -40px;} + +.toggle_container { + position: relative; + display: none; + padding: 2em 1.6em 0 1.6em; + border-right:1px solid #b7b6b6; + border-bottom:1px solid #b7b6b6; + border-left:1px solid #b7b6b6; + -webkit-border-radius: 0 0 4px 4px; + -moz-border-radius: 0 0 4px 4px; + border-radius: 0 0 4px 4px; + background: #f0f0f0; + background: -webkit-gradient(linear, left top, left bottom, from(#f0f0f0), to(#fff)); + background: -moz-linear-gradient(top, #f0f0f0, #fff); + background: -o-linear-gradient(rgb(240,240,240),rgb(255,255,255)); +} + +.ie7 .toggle_container, +.ie8 .toggle_container {filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f0f0f0', endColorstr='#ffffff');}