﻿
/**tooltip **/

/*
* jQuery Tooltip plugin 1.3
*
* http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/
* http://docs.jquery.com/Plugins/Tooltip
*
* Copyright (c) 2006 - 2008 Jšrn Zaefferer
*
* $Id: jquery.tooltip.js 5741 2008-06-21 15:22:16Z joern.zaefferer $
* 
* Dual licensed under the MIT and GPL licenses:
*   http://www.opensource.org/licenses/mit-license.php
*   http://www.gnu.org/licenses/gpl.html
*/
; (function($) {
    var helper = {}, current, title, tID, IE = $.browser.msie && /MSIE\s(5\.5|6\.)/.test(navigator.userAgent), track = false; $.tooltip = { blocked: false, defaults: { delay: 200, fade: false, showURL: true, extraClass: "", top: 15, left: 15, id: "tooltip" }, block: function() { $.tooltip.blocked = !$.tooltip.blocked; } }; $.fn.extend({ tooltip: function(settings) { settings = $.extend({}, $.tooltip.defaults, settings); createHelper(settings); return this.each(function() { $.data(this, "tooltip", settings); this.tOpacity = helper.parent.css("opacity"); this.tooltipText = this.title; $(this).removeAttr("title"); this.alt = ""; }).mouseover(save).mouseout(hide).click(hide); }, fixPNG: IE ? function() { return this.each(function() { var image = $(this).css('backgroundImage'); if (image.match(/^url\(["']?(.*\.png)["']?\)$/i)) { image = RegExp.$1; $(this).css({ 'backgroundImage': 'none', 'filter': "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='" + image + "')" }).each(function() { var position = $(this).css('position'); if (position != 'absolute' && position != 'relative') $(this).css('position', 'relative'); }); } }); } : function() { return this; }, unfixPNG: IE ? function() { return this.each(function() { $(this).css({ 'filter': '', backgroundImage: '' }); }); } : function() { return this; }, hideWhenEmpty: function() { return this.each(function() { $(this)[$(this).html() ? "show" : "hide"](); }); }, url: function() { return this.attr('href') || this.attr('src'); } }); function createHelper(settings) { if (helper.parent) return; helper.parent = $('<div id="' + settings.id + '"><h3></h3><div class="body"></div><div class="url"></div></div>').appendTo(document.body).hide(); if ($.fn.bgiframe) helper.parent.bgiframe(); helper.title = $('h3', helper.parent); helper.body = $('div.body', helper.parent); helper.url = $('div.url', helper.parent); } function settings(element) { return $.data(element, "tooltip"); } function handle(event) {
        if (settings(this).delay) tID = setTimeout(show, settings(this).delay); else
            show(); track = !!settings(this).track; $(document.body).bind('mousemove', update); update(event);
    } function save() {
        if ($.tooltip.blocked || this == current || (!this.tooltipText && !settings(this).bodyHandler)) return; current = this; title = this.tooltipText; if (settings(this).bodyHandler) { helper.title.hide(); var bodyContent = settings(this).bodyHandler.call(this); if (bodyContent.nodeType || bodyContent.jquery) { helper.body.empty().append(bodyContent) } else { helper.body.html(bodyContent); } helper.body.show(); } else if (settings(this).showBody) { var parts = title.split(settings(this).showBody); helper.title.html(parts.shift()).show(); helper.body.empty(); for (var i = 0, part; (part = parts[i]); i++) { if (i > 0) helper.body.append("<br/>"); helper.body.append(part); } helper.body.hideWhenEmpty(); } else { helper.title.html(title).show(); helper.body.hide(); } if (settings(this).showURL && $(this).url()) helper.url.html($(this).url().replace('http://', '')).show(); else
            helper.url.hide(); helper.parent.addClass(settings(this).extraClass); if (settings(this).fixPNG) helper.parent.fixPNG(); handle.apply(this, arguments);
    } function show() {
        tID = null; if ((!IE || !$.fn.bgiframe) && settings(current).fade) {
            if (helper.parent.is(":animated")) helper.parent.stop().show().fadeTo(settings(current).fade, current.tOpacity); else
                helper.parent.is(':visible') ? helper.parent.fadeTo(settings(current).fade, current.tOpacity) : helper.parent.fadeIn(settings(current).fade);
        } else { helper.parent.show(); } update();
    } function update(event) { if ($.tooltip.blocked) return; if (event && event.target.tagName == "OPTION") { return; } if (!track && helper.parent.is(":visible")) { $(document.body).unbind('mousemove', update) } if (current == null) { $(document.body).unbind('mousemove', update); return; } helper.parent.removeClass("viewport-right").removeClass("viewport-bottom"); var left = helper.parent[0].offsetLeft; var top = helper.parent[0].offsetTop; if (event) { left = event.pageX + settings(current).left; top = event.pageY + settings(current).top; var right = 'auto'; if (settings(current).positionLeft) { right = $(window).width() - left; left = 'auto'; } helper.parent.css({ left: left, right: right, top: top }); } var v = viewport(), h = helper.parent[0]; if (v.x + v.cx < h.offsetLeft + h.offsetWidth) { left -= h.offsetWidth + 20 + settings(current).left; helper.parent.css({ left: left + 'px' }).addClass("viewport-right"); } if (v.y + v.cy < h.offsetTop + h.offsetHeight) { top -= h.offsetHeight + 20 + settings(current).top; helper.parent.css({ top: top + 'px' }).addClass("viewport-bottom"); } } function viewport() { return { x: $(window).scrollLeft(), y: $(window).scrollTop(), cx: $(window).width(), cy: $(window).height() }; } function hide(event) {
        if ($.tooltip.blocked) return; if (tID) clearTimeout(tID); current = null; var tsettings = settings(this); function complete() { helper.parent.removeClass(tsettings.extraClass).hide().css("opacity", ""); } if ((!IE || !$.fn.bgiframe) && tsettings.fade) {
            if (helper.parent.is(':animated')) helper.parent.stop().fadeTo(tsettings.fade, 0, complete); else
                helper.parent.stop().fadeOut(tsettings.fade, complete);
        } else
            complete(); if (settings(this).fixPNG) helper.parent.unfixPNG();
    } 
})(jQuery);




/** coda slider **/


jQuery(function() { jQuery("div.csw").prepend("<p class='loading'>Loading...<br /><img src='images/ajax-loader.gif' alt='loading...'/ ></p>"); }); var j = 0; jQuery.fn.codaSlider = function(settings) { settings = jQuery.extend({ easeFunc: "easeInOutQuart", easeTime: 750, toolTip: false }, settings); return this.each(function() { var container = jQuery(this); container.find("p.loading").remove(); container.removeClass("csw").removeClass('stripViewer').addClass("stripViewer"); var panelWidth = container.find("div.panel").width(); var panelCount = container.find("div.panel").size(); var stripViewerWidth = panelWidth * panelCount; container.find("div.panelContainer").css("width", stripViewerWidth); var navWidth = panelCount * 2; if (location.hash && parseInt(location.hash.slice(1)) <= panelCount) { var cPanel = parseInt(location.hash.slice(1)); var cnt = -(panelWidth * (cPanel - 1)); jQuery(this).find("div.panelContainer").css({ left: cnt }); } else { var cPanel = 1; }; container.each(function(i) { var id = container.parent().attr('id'); jQuery('#' + id + ' div.stripNav').remove(); jQuery('#' + id + ' div.stripNavL').remove(); jQuery('#' + id + ' div.stripNavR').remove(); jQuery(this).before("<div class='stripNavL' id='stripNavL" + j + "'><a href='#'>Left</a><\/div>"); jQuery(this).after("<div class='stripNavR' id='stripNavR" + j + "'><a href='#'>Right</a><\/div>"); jQuery(this).before("<div class='stripNav' id='stripNav" + j + "'><ul><\/ul><\/div>"); jQuery(this).find("div.panel").each(function(n) { jQuery("div#stripNav" + j + " ul").append("<li class='tab" + (n + 1) + "'><a href='#" + (n + 1) + "'>" + jQuery(this).attr("title") + "<\/a><\/li>"); }); jQuery("div#stripNav" + j + " a").each(function(z) { navWidth += jQuery(this).parent().width(); jQuery(this).unbind().bind("click", function() { jQuery(this).addClass("current").parent().parent().find("a").not(jQuery(this)).removeClass("current"); var cnt = -(panelWidth * z); cPanel = z + 1; jQuery(this).parent().parent().parent().next().find("div.panelContainer").animate({ left: cnt }, { duration: settings.easeTime, easing: settings.easeFunc }); }); }); jQuery("div#stripNavL" + j + " a").click(function() { if (cPanel == 1) { var cnt = -(panelWidth * (panelCount - 1)); cPanel = panelCount; jQuery(this).parent().parent().find("div.stripNav a.current").removeClass("current").parent().parent().find("li:last a").addClass("current"); } else { cPanel -= 1; var cnt = -(panelWidth * (cPanel - 1)); jQuery(this).parent().parent().find("div.stripNav a.current").removeClass("current").parent().prev().find("a").addClass("current"); }; jQuery(this).parent().parent().find("div.panelContainer").animate({ left: cnt }, { duration: settings.easeTime, easing: settings.easeFunc }); location.hash = cPanel; return false; }); jQuery("div#stripNavR" + j + " a").click(function() { if (cPanel == panelCount) { var cnt = 0; cPanel = 1; jQuery(this).parent().parent().find("div.stripNav a.current").removeClass("current").parent().parent().find("a:eq(0)").addClass("current"); } else { var cnt = -(panelWidth * cPanel); cPanel += 1; jQuery(this).parent().parent().find("div.stripNav a.current").removeClass("current").parent().next().find("a").addClass("current"); }; jQuery(this).parent().parent().find("div.panelContainer").animate({ left: cnt }, { duration: settings.easeTime, easing: settings.easeFunc }); location.hash = cPanel; return false; }); jQuery("a.cross-link").unbind().click(function() { jQuery(this).parents().find(".stripNav ul li a:eq(" + (parseInt(jQuery(this).attr("href").slice(1)) - 1) + ")").trigger('click'); }); jQuery("div#stripNav" + j).css("width", navWidth); if (location.hash && parseInt(location.hash.slice(1)) <= panelCount) { jQuery("div#stripNav" + j + " a:eq(" + (location.hash.slice(1) - 1) + ")").addClass("current"); } else { jQuery("div#stripNav" + j + " a:eq(0)").addClass("current"); } }); j++; }); };

/* CYCLE */


(function($) {
    var ver = '2.09'; var ie6 = $.browser.msie && /MSIE 6.0/.test(navigator.userAgent); $.fn.cycle = function(options) {
        return this.each(function() {
            options = options || {}; if (options.constructor == String) { switch (options) { case 'stop': if (this.cycleTimeout) clearTimeout(this.cycleTimeout); this.cycleTimeout = 0; return; case 'pause': this.cyclePause = 1; return; case 'resume': this.cyclePause = 0; return; default: options = { fx: options }; }; } var $cont = $(this); var $slides = options.slideExpr ? $(options.slideExpr, this) : $cont.children(); var els = $slides.get(); if (els.length < 2) return; var opts = $.extend({}, $.fn.cycle.defaults, options || {}, $.metadata ? $cont.metadata() : $.meta ? $cont.data() : {}); if (opts.autostop) opts.countdown = opts.autostopCount || els.length; opts.before = opts.before ? [opts.before] : []; opts.after = opts.after ? [opts.after] : []; opts.after.unshift(function() { opts.busy = 0; }); if (ie6 && opts.cleartype && !opts.cleartypeNoBg) clearTypeFix($slides); var cls = this.className; var w = parseInt((cls.match(/w:(\d+)/) || [])[1]) || opts.width; var h = parseInt((cls.match(/h:(\d+)/) || [])[1]) || opts.height; opts.timeout = parseInt((cls.match(/t:(\d+)/) || [])[1]) || opts.timeout; if ($cont.css('position') == 'static') $cont.css('position', 'relative'); if (w) $cont.width(w); if (h && h != 'auto') $cont.height(h); if (opts.random) { opts.randomMap = []; for (var i = 0; i < els.length; i++) opts.randomMap.push(i); opts.randomMap.sort(function(a, b) { return Math.random() - 0.5; }); opts.randomIndex = 0; opts.startingSlide = opts.randomMap[0]; } else if (opts.startingSlide >= els.length) opts.startingSlide = 0; var first = opts.startingSlide || 0; $slides.css('position', 'absolute').hide().each(function(i) { var z = first ? i >= first ? els.length - (i - first) : first - i : els.length - i; $(this).css('z-index', z) }); $(els[first]).show(); if (opts.fit && w) $slides.width(w); if (opts.fit && h && h != 'auto') $slides.height(h); if (opts.pause) $cont.hover(function() { this.cyclePause = 1; }, function() { this.cyclePause = 0; }); var init = $.fn.cycle.transitions[opts.fx]; if ($.isFunction(init)) init($cont, $slides, opts); $slides.each(function() { var $el = $(this); this.cycleH = (opts.fit && h) ? h : $el.height(); this.cycleW = (opts.fit && w) ? w : $el.width(); }); 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) { if (opts.speed.constructor == String) opts.speed = { slow: 600, fast: 200}[opts.speed] || 400; if (!opts.sync) opts.speed = opts.speed / 2; while ((opts.timeout - opts.speed) < 250) opts.timeout += opts.speed; } if (opts.easing) opts.easeIn = opts.easeOut = opts.easing; if (!opts.speedIn) opts.speedIn = opts.speed; if (!opts.speedOut) opts.speedOut = opts.speed; opts.slideCount = els.length; opts.currSlide = first; if (opts.random) { opts.nextSlide = opts.currSlide; if (++opts.randomIndex == els.length) opts.randomIndex = 0; opts.nextSlide = opts.randomMap[opts.randomIndex]; } else
                opts.nextSlide = opts.startingSlide >= (els.length - 1) ? 0 : opts.startingSlide + 1; 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.click && !opts.next) opts.next = opts.click; if (opts.next) $(opts.next).bind('click', function() { return advance(els, opts, opts.rev ? -1 : 1) }); if (opts.prev) $(opts.prev).bind('click', function() { return advance(els, opts, opts.rev ? 1 : -1) }); if (opts.pager) buildPager(els, opts); if (opts.timeout) this.cycleTimeout = setTimeout(function() { go(els, opts, 0, !opts.rev) }, opts.timeout + (opts.delay || 0));
        });
    }; function go(els, opts, manual, fwd) {
        if (opts.busy) return; var p = els[0].parentNode, curr = els[opts.currSlide], next = els[opts.nextSlide]; if (p.cycleTimeout === 0 && !manual) return; if (!manual && !p.cyclePause && opts.autostop && (--opts.countdown <= 0)) return; if (manual || !p.cyclePause) {
            if (opts.before.length) $.each(opts.before, function(i, o) { o.apply(next, [curr, next, opts, fwd]); }); var after = function() { if ($.browser.msie && opts.cleartype) this.style.removeAttribute('filter'); $.each(opts.after, function(i, o) { o.apply(next, [curr, next, opts, fwd]); }); }; if (opts.nextSlide != opts.currSlide) {
                opts.busy = 1; if (opts.fxFn) opts.fxFn(curr, next, opts, after, fwd); else if ($.isFunction($.fn.cycle[opts.fx])) $.fn.cycle[opts.fx](curr, next, opts, after); else
                    $.fn.cycle.custom(curr, next, opts, after);
            } if (opts.random) { opts.currSlide = opts.nextSlide; if (++opts.randomIndex == els.length) opts.randomIndex = 0; opts.nextSlide = opts.randomMap[opts.randomIndex]; } else { var roll = (opts.nextSlide + 1) == els.length; opts.nextSlide = roll ? 0 : opts.nextSlide + 1; opts.currSlide = roll ? els.length - 1 : opts.nextSlide - 1; } if (opts.pager) $(opts.pager).find('a').removeClass('activeSlide').filter('a:eq(' + opts.currSlide + ')').addClass('activeSlide');
        } if (opts.timeout) p.cycleTimeout = setTimeout(function() { go(els, opts, 0, !opts.rev) }, opts.timeout);
    }; function advance(els, opts, val) { var p = els[0].parentNode, timeout = p.cycleTimeout; if (timeout) { clearTimeout(timeout); p.cycleTimeout = 0; } opts.nextSlide = opts.currSlide + val; if (opts.nextSlide < 0) opts.nextSlide = els.length - 1; else if (opts.nextSlide >= els.length) opts.nextSlide = 0; if (opts.prevNextClick && typeof opts.prevNextClick == 'function') opts.prevNextClick(val > 0, opts.nextSlide, els[opts.nextSlide]); go(els, opts, 1, val >= 0); return false; }; function buildPager(els, opts) { var $p = $(opts.pager); $.each(els, function(i, o) { var $a = (typeof opts.pagerAnchorBuilder == 'function') ? $(opts.pagerAnchorBuilder(i, o)) : $('<a href="#">' + (i + 1) + '</a>'); if ($a.parents('body').length == 0) $a.appendTo($p); $a.bind('click', function() { opts.nextSlide = i; var p = els[0].parentNode, timeout = p.cycleTimeout; if (timeout) { clearTimeout(timeout); p.cycleTimeout = 0; } if (typeof opts.pagerClick == 'function') opts.pagerClick(opts.nextSlide, els[opts.nextSlide]); go(els, opts, 1, !opts.rev); return false; }); }); $p.find('a').filter('a:eq(' + opts.startingSlide + ')').addClass('activeSlide'); }; function clearTypeFix($slides) { function hex(s) { var s = parseInt(s).toString(16); return s.length < 2 ? '0' + s : s; }; function getBg(e) { for (; e && e.nodeName.toLowerCase() != 'html'; e = e.parentNode) { var v = $.css(e, 'background-color'); if (v.indexOf('rgb') >= 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.custom = function(curr, next, opts, cb) { var $l = $(curr), $n = $(next); $n.css(opts.cssBefore); var fn = function() { $n.animate(opts.animIn, opts.speedIn, opts.easeIn, cb) }; $l.animate(opts.animOut, opts.speedOut, opts.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.startingSlide + ')').css('opacity', 0); opts.before.push(function() { $(this).show() }); opts.animIn = { opacity: 1 }; opts.animOut = { opacity: 0 }; opts.cssAfter = { display: 'none' }; } }; $.fn.cycle.ver = function() { return ver; }; $.fn.cycle.defaults = { fx: 'fade', timeout: 4000, speed: 1000, speedIn: null, speedOut: null, click: null, next: null, prev: null, prevNextClick: null, pager: null, pagerClick: null, pagerAnchorBuilder: null, before: null, after: 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, pause: 0, autostop: 0, delay: 0, slideExpr: null, cleartype: 0 };
})(jQuery); jQuery.fn.cycle.transitions.scrollUp = function($cont, $slides, opts) { $cont.css('overflow', 'hidden'); opts.before.push(function(curr, next, opts) { jQuery(this).show(); opts.cssBefore.top = next.offsetHeight; opts.animOut.top = 0 - curr.offsetHeight; }); opts.cssFirst = { top: 0 }; opts.animIn = { top: 0 }; opts.cssAfter = { display: 'none' }; }; jQuery.fn.cycle.transitions.scrollDown = function($cont, $slides, opts) { $cont.css('overflow', 'hidden'); opts.before.push(function(curr, next, opts) { jQuery(this).show(); opts.cssBefore.top = 0 - next.offsetHeight; opts.animOut.top = curr.offsetHeight; }); opts.cssFirst = { top: 0 }; opts.animIn = { top: 0 }; opts.cssAfter = { display: 'none' }; }; jQuery.fn.cycle.transitions.scrollLeft = function($cont, $slides, opts) { $cont.css('overflow', 'hidden'); opts.before.push(function(curr, next, opts) { jQuery(this).show(); opts.cssBefore.left = next.offsetWidth; opts.animOut.left = 0 - curr.offsetWidth; }); opts.cssFirst = { left: 0 }; opts.animIn = { left: 0 }; }; jQuery.fn.cycle.transitions.scrollRight = function($cont, $slides, opts) { $cont.css('overflow', 'hidden'); opts.before.push(function(curr, next, opts) { jQuery(this).show(); opts.cssBefore.left = 0 - next.offsetWidth; opts.animOut.left = curr.offsetWidth; }); opts.cssFirst = { left: 0 }; opts.animIn = { left: 0 }; }; jQuery.fn.cycle.transitions.scrollHorz = function($cont, $slides, opts) { $cont.css('overflow', 'hidden').width(); opts.before.push(function(curr, next, opts, fwd) { jQuery(this).show(); var currW = curr.offsetWidth, nextW = next.offsetWidth; opts.cssBefore = fwd ? { left: nextW} : { left: -nextW }; opts.animIn.left = 0; opts.animOut.left = fwd ? -currW : currW; $slides.not(curr).css(opts.cssBefore); }); opts.cssFirst = { left: 0 }; opts.cssAfter = { display: 'none'} }; jQuery.fn.cycle.transitions.scrollVert = function($cont, $slides, opts) { $cont.css('overflow', 'hidden'); opts.before.push(function(curr, next, opts, fwd) { jQuery(this).show(); var currH = curr.offsetHeight, nextH = next.offsetHeight; opts.cssBefore = fwd ? { top: -nextH} : { top: nextH }; opts.animIn.top = 0; opts.animOut.top = fwd ? currH : -currH; $slides.not(curr).css(opts.cssBefore); }); opts.cssFirst = { top: 0 }; opts.cssAfter = { display: 'none'} }; jQuery.fn.cycle.transitions.slideX = function($cont, $slides, opts) { opts.animIn = { width: 'show' }; opts.animOut = { width: 'hide' }; }; jQuery.fn.cycle.transitions.slideY = function($cont, $slides, opts) { opts.animIn = { height: 'show' }; opts.animOut = { height: 'hide' }; }; jQuery.fn.cycle.transitions.shuffle = function($cont, $slides, opts) { var w = $cont.css('overflow', 'visible').width(); $slides.css({ left: 0, top: 0 }); opts.before.push(function() { jQuery(this).show() }); opts.speed = opts.speed / 2; opts.random = 0; opts.shuffle = opts.shuffle || { left: -w, top: 15 }; opts.els = []; for (var i = 0; i < $slides.length; i++) opts.els.push($slides[i]); for (var i = 0; i < opts.startingSlide; i++) opts.els.push(opts.els.shift()); opts.fxFn = function(curr, next, opts, cb, fwd) { var $el = fwd ? jQuery(curr) : jQuery(next); $el.animate(opts.shuffle, opts.speedIn, opts.easeIn, function() { fwd ? opts.els.push(opts.els.shift()) : opts.els.unshift(opts.els.pop()); if (fwd) for (var i = 0, len = opts.els.length; i < len; i++) jQuery(opts.els[i]).css('z-index', len - i); else { var z = jQuery(curr).css('z-index'); $el.css('z-index', parseInt(z) + 1); } $el.animate({ left: 0, top: 0 }, opts.speedOut, opts.easeOut, function() { jQuery(fwd ? this : curr).hide(); if (cb) cb(); }); }); }; }; jQuery.fn.cycle.transitions.turnUp = function($cont, $slides, opts) { opts.before.push(function(curr, next, opts) { jQuery(this).show(); opts.cssBefore.top = next.cycleH; opts.animIn.height = next.cycleH; }); opts.cssFirst = { top: 0 }; opts.cssBefore = { height: 0 }; opts.animIn = { top: 0 }; opts.animOut = { height: 0 }; opts.cssAfter = { display: 'none' }; }; jQuery.fn.cycle.transitions.turnDown = function($cont, $slides, opts) { opts.before.push(function(curr, next, opts) { jQuery(this).show(); opts.animIn.height = next.cycleH; opts.animOut.top = curr.cycleH; }); opts.cssFirst = { top: 0 }; opts.cssBefore = { top: 0, height: 0 }; opts.animOut = { height: 0 }; opts.cssAfter = { display: 'none' }; }; jQuery.fn.cycle.transitions.turnLeft = function($cont, $slides, opts) { opts.before.push(function(curr, next, opts) { jQuery(this).show(); opts.cssBefore.left = next.cycleW; opts.animIn.width = next.cycleW; }); opts.cssBefore = { width: 0 }; opts.animIn = { left: 0 }; opts.animOut = { width: 0 }; opts.cssAfter = { display: 'none' }; }; jQuery.fn.cycle.transitions.turnRight = function($cont, $slides, opts) { opts.before.push(function(curr, next, opts) { jQuery(this).show(); opts.animIn.width = next.cycleW; opts.animOut.left = curr.cycleW; }); opts.cssBefore = { left: 0, width: 0 }; opts.animIn = { left: 0 }; opts.animOut = { width: 0 }; opts.cssAfter = { display: 'none' }; }; jQuery.fn.cycle.transitions.zoom = function($cont, $slides, opts) { opts.cssFirst = { top: 0, left: 0 }; opts.cssAfter = { display: 'none' }; opts.before.push(function(curr, next, opts) { jQuery(this).show(); opts.cssBefore = { width: 0, height: 0, top: next.cycleH / 2, left: next.cycleW / 2 }; opts.animIn = { top: 0, left: 0, width: next.cycleW, height: next.cycleH }; opts.animOut = { width: 0, height: 0, top: curr.cycleH / 2, left: curr.cycleW / 2 }; }); }; jQuery.fn.cycle.transitions.fadeZoom = function($cont, $slides, opts) { opts.before.push(function(curr, next, opts) { opts.cssBefore = { width: 0, height: 0, opacity: 1, left: next.cycleW / 2, top: next.cycleH / 2, zIndex: 1 }; opts.animIn = { top: 0, left: 0, width: next.cycleW, height: next.cycleH }; }); opts.animOut = { opacity: 0 }; opts.cssAfter = { zIndex: 0 }; };

/** innerfade **/

(function($) {
    $.fn.innerfade = function(options) { return this.each(function() { $.innerfade(this, options); }); }; $.innerfade = function(container, options) {
        var settings = { 'animationtype': 'fade', 'speed': 'normal', 'type': 'sequence', 'timeout': 2000, 'containerheight': 'auto', 'runningclass': 'innerfade', 'children': null }; if (options) $.extend(settings, options); if (settings.children === null) var elements = $(container).children(); else
            var elements = $(container).children(settings.children); if (elements.length > 1) { $(container).css('position', 'relative').css('height', settings.containerheight).addClass(settings.runningclass); for (var i = 0; i < elements.length; i++) { $(elements[i]).css('z-index', String(elements.length - i)).css('position', 'absolute').hide(); }; if (settings.type == "sequence") { setTimeout(function() { $.innerfade.next(elements, settings, 1, 0); }, settings.timeout); $(elements[0]).show(); } else if (settings.type == "random") { var last = Math.floor(Math.random() * (elements.length)); setTimeout(function() { do { current = Math.floor(Math.random() * (elements.length)); } while (last == current); $.innerfade.next(elements, settings, current, last); }, settings.timeout); $(elements[last]).show(); } else if (settings.type == 'random_start') { settings.type = 'sequence'; var current = Math.floor(Math.random() * (elements.length)); setTimeout(function() { $.innerfade.next(elements, settings, (current + 1) % elements.length, current); }, settings.timeout); $(elements[current]).show(); } else { alert('Innerfade-Type must either be \'sequence\', \'random\' or \'random_start\''); } } 
    }; $.innerfade.next = function(elements, settings, current, last) {
        if (settings.animationtype == 'slide') { $(elements[last]).slideUp(settings.speed); $(elements[current]).slideDown(settings.speed); } else if (settings.animationtype == 'fade') { $(elements[last]).fadeOut(settings.speed); $(elements[current]).fadeIn(settings.speed, function() { removeFilter($(this)[0]); }); } else
            alert('Innerfade-animationtype must either be \'slide\' or \'fade\''); if (settings.type == "sequence") { if ((current + 1) < elements.length) { current = current + 1; last = current - 1; } else { current = 0; last = elements.length - 1; } } else if (settings.type == "random") { last = current; while (current == last) current = Math.floor(Math.random() * elements.length); } else
            alert('Innerfade-Type must either be \'sequence\', \'random\' or \'random_start\''); setTimeout((function() { $.innerfade.next(elements, settings, current, last); }), settings.timeout);
    };
})(jQuery); function removeFilter(element) { if (element.style.removeAttribute) { element.style.removeAttribute('filter'); } }

/** tabs **/

(function(C) { C.ui = { plugin: { add: function(E, F, H) { var G = C.ui[E].prototype; for (var D in H) { G.plugins[D] = G.plugins[D] || []; G.plugins[D].push([F, H[D]]) } }, call: function(D, F, E) { var H = D.plugins[F]; if (!H) { return } for (var G = 0; G < H.length; G++) { if (D.options[H[G][0]]) { H[G][1].apply(D.element, E) } } } }, cssCache: {}, css: function(D) { if (C.ui.cssCache[D]) { return C.ui.cssCache[D] } var E = C('<div class="ui-gen">').addClass(D).css({ position: "absolute", top: "-5000px", left: "-5000px", display: "block" }).appendTo("body"); C.ui.cssCache[D] = !!((!(/auto|default/).test(E.css("cursor")) || (/^[1-9]/).test(E.css("height")) || (/^[1-9]/).test(E.css("width")) || !(/none/).test(E.css("backgroundImage")) || !(/transparent|rgba\(0, 0, 0, 0\)/).test(E.css("backgroundColor")))); try { C("body").get(0).removeChild(E.get(0)) } catch (F) { } return C.ui.cssCache[D] }, disableSelection: function(D) { C(D).attr("unselectable", "on").css("MozUserSelect", "none") }, enableSelection: function(D) { C(D).attr("unselectable", "off").css("MozUserSelect", "") }, hasScroll: function(G, E) { var D = /top/.test(E || "top") ? "scrollTop" : "scrollLeft", F = false; if (G[D] > 0) { return true } G[D] = 1; F = G[D] > 0 ? true : false; G[D] = 0; return F } }; var B = C.fn.remove; C.fn.remove = function() { C("*", this).add(this).triggerHandler("remove"); return B.apply(this, arguments) }; function A(E, F, G) { var D = C[E][F].getter || []; D = (typeof D == "string" ? D.split(/,?\s+/) : D); return (C.inArray(G, D) != -1) } C.widget = function(E, D) { var F = E.split(".")[0]; E = E.split(".")[1]; C.fn[E] = function(J) { var H = (typeof J == "string"), I = Array.prototype.slice.call(arguments, 1); if (H && A(F, E, J)) { var G = C.data(this[0], E); return (G ? G[J].apply(G, I) : undefined) } return this.each(function() { var K = C.data(this, E); if (H && K && C.isFunction(K[J])) { K[J].apply(K, I) } else { if (!H) { C.data(this, E, new C[F][E](this, J)) } } }) }; C[F][E] = function(I, H) { var G = this; this.widgetName = E; this.widgetBaseClass = F + "-" + E; this.options = C.extend({}, C.widget.defaults, C[F][E].defaults, H); this.element = C(I).bind("setData." + E, function(L, J, K) { return G.setData(J, K) }).bind("getData." + E, function(K, J) { return G.getData(J) }).bind("remove", function() { return G.destroy() }); this.init() }; C[F][E].prototype = C.extend({}, C.widget.prototype, D) }; C.widget.prototype = { init: function() { }, destroy: function() { this.element.removeData(this.widgetName) }, getData: function(D) { return this.options[D] }, setData: function(D, E) { this.options[D] = E; if (D == "disabled") { this.element[E ? "addClass" : "removeClass"](this.widgetBaseClass + "-disabled") } }, enable: function() { this.setData("disabled", false) }, disable: function() { this.setData("disabled", true) } }; C.widget.defaults = { disabled: false }; C.ui.mouse = { mouseInit: function() { var D = this; this.element.bind("mousedown." + this.widgetName, function(E) { return D.mouseDown(E) }); if (C.browser.msie) { this._mouseUnselectable = this.element.attr("unselectable"); this.element.attr("unselectable", "on") } this.started = false }, mouseDestroy: function() { this.element.unbind("." + this.widgetName); (C.browser.msie && this.element.attr("unselectable", this._mouseUnselectable)) }, mouseDown: function(F) { (this._mouseStarted && this.mouseUp(F)); this._mouseDownEvent = F; var E = this, G = (F.which == 1), D = (typeof this.options.cancel == "string" ? C(F.target).parents().add(F.target).filter(this.options.cancel).length : false); if (!G || D || !this.mouseCapture(F)) { return true } this._mouseDelayMet = !this.options.delay; if (!this._mouseDelayMet) { this._mouseDelayTimer = setTimeout(function() { E._mouseDelayMet = true }, this.options.delay) } if (this.mouseDistanceMet(F) && this.mouseDelayMet(F)) { this._mouseStarted = (this.mouseStart(F) !== false); if (!this._mouseStarted) { F.preventDefault(); return true } } this._mouseMoveDelegate = function(H) { return E.mouseMove(H) }; this._mouseUpDelegate = function(H) { return E.mouseUp(H) }; C(document).bind("mousemove." + this.widgetName, this._mouseMoveDelegate).bind("mouseup." + this.widgetName, this._mouseUpDelegate); return false }, mouseMove: function(D) { if (C.browser.msie && !D.button) { return this.mouseUp(D) } if (this._mouseStarted) { this.mouseDrag(D); return false } if (this.mouseDistanceMet(D) && this.mouseDelayMet(D)) { this._mouseStarted = (this.mouseStart(this._mouseDownEvent, D) !== false); (this._mouseStarted ? this.mouseDrag(D) : this.mouseUp(D)) } return !this._mouseStarted }, mouseUp: function(D) { C(document).unbind("mousemove." + this.widgetName, this._mouseMoveDelegate).unbind("mouseup." + this.widgetName, this._mouseUpDelegate); if (this._mouseStarted) { this._mouseStarted = false; this.mouseStop(D) } return false }, mouseDistanceMet: function(D) { return (Math.max(Math.abs(this._mouseDownEvent.pageX - D.pageX), Math.abs(this._mouseDownEvent.pageY - D.pageY)) >= this.options.distance) }, mouseDelayMet: function(D) { return this._mouseDelayMet }, mouseStart: function(D) { }, mouseDrag: function(D) { }, mouseStop: function(D) { }, mouseCapture: function(D) { return true } }; C.ui.mouse.defaults = { cancel: null, distance: 1, delay: 0} })(jQuery); (function(A) { A.widget("ui.tabs", { init: function() { this.options.event += ".tabs"; this.tabify(true) }, setData: function(B, C) { if ((/^selected/).test(B)) { this.select(C) } else { this.options[B] = C; this.tabify() } }, length: function() { return this.$tabs.length }, tabId: function(B) { return B.title && B.title.replace(/\s/g, "_").replace(/[^A-Za-z0-9\-_:\.]/g, "") || this.options.idPrefix + A.data(B) }, ui: function(C, B) { return { options: this.options, tab: C, panel: B, index: this.$tabs.index(C)} }, tabify: function(O) { this.$lis = A("li:has(a[href])", this.element); this.$tabs = this.$lis.map(function() { return A("a", this)[0] }); this.$panels = A([]); var P = this, D = this.options; this.$tabs.each(function(R, Q) { if (Q.hash && Q.hash.replace("#", "")) { P.$panels = P.$panels.add(Q.hash) } else { if (A(Q).attr("href") != "#") { A.data(Q, "href.tabs", Q.href); A.data(Q, "load.tabs", Q.href); var T = P.tabId(Q); Q.href = "#" + T; var S = A("#" + T); if (!S.length) { S = A(D.panelTemplate).attr("id", T).addClass(D.panelClass).insertAfter(P.$panels[R - 1] || P.element); S.data("destroy.tabs", true) } P.$panels = P.$panels.add(S) } else { D.disabled.push(R + 1) } } }); if (O) { this.element.addClass(D.navClass); this.$panels.each(function() { var Q = A(this); Q.addClass(D.panelClass) }); if (D.selected === undefined) { if (location.hash) { this.$tabs.each(function(S, Q) { if (Q.hash == location.hash) { D.selected = S; if (A.browser.msie || A.browser.opera) { var R = A(location.hash), T = R.attr("id"); R.attr("id", ""); setTimeout(function() { R.attr("id", T) }, 500) } scrollTo(0, 0); return false } }) } else { if (D.cookie) { var J = parseInt(A.cookie("ui-tabs" + A.data(P.element)), 10); if (J && P.$tabs[J]) { D.selected = J } } else { if (P.$lis.filter("." + D.selectedClass).length) { D.selected = P.$lis.index(P.$lis.filter("." + D.selectedClass)[0]) } } } } D.selected = D.selected === null || D.selected !== undefined ? D.selected : 0; D.disabled = A.unique(D.disabled.concat(A.map(this.$lis.filter("." + D.disabledClass), function(R, Q) { return P.$lis.index(R) }))).sort(); if (A.inArray(D.selected, D.disabled) != -1) { D.disabled.splice(A.inArray(D.selected, D.disabled), 1) } this.$panels.addClass(D.hideClass); this.$lis.removeClass(D.selectedClass); if (D.selected !== null) { this.$panels.eq(D.selected).show().removeClass(D.hideClass); this.$lis.eq(D.selected).addClass(D.selectedClass); var K = function() { A(P.element).triggerHandler("tabsshow", [P.fakeEvent("tabsshow"), P.ui(P.$tabs[D.selected], P.$panels[D.selected])], D.show) }; if (A.data(this.$tabs[D.selected], "load.tabs")) { this.load(D.selected, K) } else { K() } } A(window).bind("unload", function() { P.$tabs.unbind(".tabs"); P.$lis = P.$tabs = P.$panels = null }) } for (var G = 0, N; N = this.$lis[G]; G++) { A(N)[A.inArray(G, D.disabled) != -1 && !A(N).hasClass(D.selectedClass) ? "addClass" : "removeClass"](D.disabledClass) } if (D.cache === false) { this.$tabs.removeData("cache.tabs") } var C, I, B = { "min-width": 0, duration: 1 }, E = "normal"; if (D.fx && D.fx.constructor == Array) { C = D.fx[0] || B, I = D.fx[1] || B } else { C = I = D.fx || B } var H = { display: "", overflow: "", height: "" }; if (!A.browser.msie) { H.opacity = "" } function M(R, Q, S) { Q.animate(C, C.duration || E, function() { Q.addClass(D.hideClass).css(H); if (A.browser.msie && C.opacity) { Q[0].style.filter = "" } if (S) { L(R, S, Q) } }) } function L(R, S, Q) { if (I === B) { S.css("display", "block") } S.animate(I, I.duration || E, function() { S.removeClass(D.hideClass).css(H); if (A.browser.msie && I.opacity) { S[0].style.filter = "" } A(P.element).triggerHandler("tabsshow", [P.fakeEvent("tabsshow"), P.ui(R, S[0])], D.show) }) } function F(R, T, Q, S) { T.addClass(D.selectedClass).siblings().removeClass(D.selectedClass); M(R, Q, S) } this.$tabs.unbind(".tabs").bind(D.event, function() { var T = A(this).parents("li:eq(0)"), Q = P.$panels.filter(":visible"), S = A(this.hash); if ((T.hasClass(D.selectedClass) && !D.unselect) || T.hasClass(D.disabledClass) || A(this).hasClass(D.loadingClass) || A(P.element).triggerHandler("tabsselect", [P.fakeEvent("tabsselect"), P.ui(this, S[0])], D.select) === false) { this.blur(); return false } P.options.selected = P.$tabs.index(this); if (D.unselect) { if (T.hasClass(D.selectedClass)) { P.options.selected = null; T.removeClass(D.selectedClass); P.$panels.stop(); M(this, Q); this.blur(); return false } else { if (!Q.length) { P.$panels.stop(); var R = this; P.load(P.$tabs.index(this), function() { T.addClass(D.selectedClass).addClass(D.unselectClass); L(R, S) }); this.blur(); return false } } } if (D.cookie) { A.cookie("ui-tabs" + A.data(P.element), P.options.selected, D.cookie) } P.$panels.stop(); if (S.length) { var R = this; P.load(P.$tabs.index(this), Q.length ? function() { F(R, T, Q, S) } : function() { T.addClass(D.selectedClass); L(R, S) }) } else { throw "jQuery UI Tabs: Mismatching fragment identifier." } if (A.browser.msie) { this.blur() } return false }); if (!(/^click/).test(D.event)) { this.$tabs.bind("click.tabs", function() { return false }) } }, add: function(E, D, C) { if (C == undefined) { C = this.$tabs.length } var G = this.options; var I = A(G.tabTemplate.replace(/#\{href\}/g, E).replace(/#\{label\}/g, D)); I.data("destroy.tabs", true); var H = E.indexOf("#") == 0 ? E.replace("#", "") : this.tabId(A("a:first-child", I)[0]); var F = A("#" + H); if (!F.length) { F = A(G.panelTemplate).attr("id", H).addClass(G.hideClass).data("destroy.tabs", true) } F.addClass(G.panelClass); if (C >= this.$lis.length) { I.appendTo(this.element); F.appendTo(this.element[0].parentNode) } else { I.insertBefore(this.$lis[C]); F.insertBefore(this.$panels[C]) } G.disabled = A.map(G.disabled, function(K, J) { return K >= C ? ++K : K }); this.tabify(); if (this.$tabs.length == 1) { I.addClass(G.selectedClass); F.removeClass(G.hideClass); var B = A.data(this.$tabs[0], "load.tabs"); if (B) { this.load(C, B) } } this.element.triggerHandler("tabsadd", [this.fakeEvent("tabsadd"), this.ui(this.$tabs[C], this.$panels[C])], G.add) }, remove: function(B) { var D = this.options, E = this.$lis.eq(B).remove(), C = this.$panels.eq(B).remove(); if (E.hasClass(D.selectedClass) && this.$tabs.length > 1) { this.select(B + (B + 1 < this.$tabs.length ? 1 : -1)) } D.disabled = A.map(A.grep(D.disabled, function(G, F) { return G != B }), function(G, F) { return G >= B ? --G : G }); this.tabify(); this.element.triggerHandler("tabsremove", [this.fakeEvent("tabsremove"), this.ui(E.find("a")[0], C[0])], D.remove) }, enable: function(B) { var C = this.options; if (A.inArray(B, C.disabled) == -1) { return } var D = this.$lis.eq(B).removeClass(C.disabledClass); if (A.browser.safari) { D.css("display", "inline-block"); setTimeout(function() { D.css("display", "block") }, 0) } C.disabled = A.grep(C.disabled, function(F, E) { return F != B }); this.element.triggerHandler("tabsenable", [this.fakeEvent("tabsenable"), this.ui(this.$tabs[B], this.$panels[B])], C.enable) }, disable: function(C) { var B = this, D = this.options; if (C != D.selected) { this.$lis.eq(C).addClass(D.disabledClass); D.disabled.push(C); D.disabled.sort(); this.element.triggerHandler("tabsdisable", [this.fakeEvent("tabsdisable"), this.ui(this.$tabs[C], this.$panels[C])], D.disable) } }, select: function(B) { if (typeof B == "string") { B = this.$tabs.index(this.$tabs.filter("[href$=" + B + "]")[0]) } this.$tabs.eq(B).trigger(this.options.event) }, load: function(G, K) { var L = this, D = this.options, E = this.$tabs.eq(G), J = E[0], H = K == undefined || K === false, B = E.data("load.tabs"); K = K || function() { }; if (!B || !H && A.data(J, "cache.tabs")) { K(); return } var M = function(N) { var O = A(N), P = O.find("*:last"); return P.length && P.is(":not(img)") && P || O }; var C = function() { L.$tabs.filter("." + D.loadingClass).removeClass(D.loadingClass).each(function() { if (D.spinner) { M(this).parent().html(M(this).data("label.tabs")) } }); L.xhr = null }; if (D.spinner) { var I = M(J).html(); M(J).wrapInner("<em></em>").find("em").data("label.tabs", I).html(D.spinner) } var F = A.extend({}, D.ajaxOptions, { url: B, success: function(O, N) { A(J.hash).html(O); C(); if (D.cache) { A.data(J, "cache.tabs", true) } A(L.element).triggerHandler("tabsload", [L.fakeEvent("tabsload"), L.ui(L.$tabs[G], L.$panels[G])], D.load); D.ajaxOptions.success && D.ajaxOptions.success(O, N); K() } }); if (this.xhr) { this.xhr.abort(); C() } E.addClass(D.loadingClass); setTimeout(function() { L.xhr = A.ajax(F) }, 0) }, url: function(C, B) { this.$tabs.eq(C).removeData("cache.tabs").data("load.tabs", B) }, destroy: function() { var B = this.options; this.element.unbind(".tabs").removeClass(B.navClass).removeData("tabs"); this.$tabs.each(function() { var C = A.data(this, "href.tabs"); if (C) { this.href = C } var D = A(this).unbind(".tabs"); A.each(["href", "load", "cache"], function(E, F) { D.removeData(F + ".tabs") }) }); this.$lis.add(this.$panels).each(function() { if (A.data(this, "destroy.tabs")) { A(this).remove() } else { A(this).removeClass([B.selectedClass, B.unselectClass, B.disabledClass, B.panelClass, B.hideClass].join(" ")) } }) }, fakeEvent: function(B) { return A.event.fix({ type: B, target: this.element[0] }) } }); A.ui.tabs.defaults = { unselect: false, event: "click", disabled: [], cookie: null, spinner: "Loading&#8230;", cache: false, idPrefix: "ui-tabs-", ajaxOptions: {}, fx: null, tabTemplate: '<li><a href="#{href}"><span>#{label}</span></a></li>', panelTemplate: "<div></div>", navClass: "ui-tabs-nav", selectedClass: "ui-tabs-selected", unselectClass: "ui-tabs-unselect", disabledClass: "ui-tabs-disabled", panelClass: "ui-tabs-panel", hideClass: "ui-tabs-hide", loadingClass: "ui-tabs-loading" }; A.ui.tabs.getter = "length"; A.extend(A.ui.tabs.prototype, { rotation: null, rotate: function(C, F) { F = F || false; var B = this, E = this.options.selected; function G() { B.rotation = setInterval(function() { E = ++E < B.$tabs.length ? E : 0; B.select(E) }, C) } function D(H) { if (!H || H.clientX) { clearInterval(B.rotation) } } if (C) { G(); if (!F) { this.$tabs.bind(this.options.event, D) } else { this.$tabs.bind(this.options.event, function() { D(); E = B.options.selected; G() }) } } else { D(); this.$tabs.unbind(this.options.event, D) } } }) })(jQuery);


/* fix png */


(function($) { $.ifixpng = function(customPixel) { $.ifixpng.pixel = customPixel; }; $.ifixpng.getPixel = function() { return $.ifixpng.pixel || 'lib/images/pixel.gif'; }; var hack = { ltie7: $.browser.msie && /MSIE\s(5\.5|6\.)/.test(navigator.userAgent), filter: function(src) { return "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='" + src + "')"; } }; $.fn.ifixpng = hack.ltie7 ? function() { return this.each(function() { var $$ = $(this); var base = $('base').attr('href'); if ($$.is('img') || $$.is('input')) { if ($$.attr('src').match(/.*\.png([?].*)?$/i)) { var source = (base && $$.attr('src').substring(0, 1) != '/') ? base + $$.attr('src') : $$.attr('src'); $$.css({ filter: hack.filter(source), width: $$.width(), height: $$.height() }).attr({ src: $.ifixpng.getPixel() }).positionFix(); } } else { var image = $$.css('backgroundImage'); if (image.match(/^url\(["']?(.*\.png([?].*)?)["']?\)$/i)) { image = RegExp.$1; $$.css({ backgroundImage: 'none', filter: hack.filter(image) }).positionFix(); } } }); } : function() { return this; }; $.fn.iunfixpng = hack.ltie7 ? function() { return this.each(function() { var $$ = $(this); var src = $$.css('filter'); if (src.match(/src=["']?(.*\.png([?].*)?)["']?/i)) { src = RegExp.$1; if ($$.is('img') || $$.is('input')) { $$.attr({ src: src }).css({ filter: '' }); } else { $$.css({ filter: '', background: 'url(' + src + ')' }); } } }); } : function() { return this; }; $.fn.positionFix = function() { return this.each(function() { var $$ = $(this); var position = $$.css('position'); if (position != 'absolute' && position != 'relative') { $$.css({ position: 'relative' }); } }); }; })(jQuery);
