var WWW_PATH = "http://www.pensjonat-altamira.pl";var WWW_LANG = "";var LANG_USED=false;/**
 * jQuery Cookie plugin
 *
 * Copyright (c) 2010 Klaus Hartl (stilbuero.de)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 */
jQuery.cookie = function (key, value, options) {

    // key and at least value given, set cookie...
    if (arguments.length > 1 && String(value) !== "[object Object]") {
        options = jQuery.extend({}, options);

        if (value === null || value === undefined) {
            options.expires = -1;
        }

        if (typeof options.expires === 'number') {
            var days = options.expires, t = options.expires = new Date();
            t.setDate(t.getDate() + days);
        }

        value = String(value);

        return (document.cookie = [
            encodeURIComponent(key), '=',
            options.raw ? value : encodeURIComponent(value),
            options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
            options.path ? '; path=' + options.path : '',
            options.domain ? '; domain=' + options.domain : '',
            options.secure ? '; secure' : ''
        ].join(''));
    }

    // key and possibly options given, get cookie...
    options = value || {};
    var result, decode = options.raw ? function (s) { return s; } : decodeURIComponent;
    return (result = new RegExp('(?:^|; )' + encodeURIComponent(key) + '=([^;]*)').exec(document.cookie)) ? decode(result[1]) : null;
};
/*!
  jQuery Cycle Plugin (with Transition Definitions)
  Examples and documentation at: http://jquery.malsup.com/cycle/
  Copyright (c) 2007-2010 M. Alsup
  Version: 2.9995 (09-AUG-2011)
  Dual licensed under the MIT and GPL licenses.
  http://jquery.malsup.com/license.html
  Requires: jQuery v1.3.2 or later
 */
;(function($){
var ver='2.9995';
if($.support==undefined){
$.support={
opacity:!($.browser.msie)
};
}
function debug(s){
$.fn.cycle.debug&&log(s);
}
function log(){
window.console&&console.log&&console.log('[cycle] '+Array.prototype.join.call(arguments,' '));
}
$.expr[':'].paused=function(el){
return el.cyclePause;
}
$.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();
var opts2=buildOptions($cont,$slides,els,opts,o);
if(opts2===false)
return;
if(els.length<2){
log('terminating; too few slides: '+els.length);
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 triggerPause(cont,byHover,onPager){
var opts=$(cont).data('cycle.opts');
var paused=!!cont.cyclePause;
if(paused&&opts.paused)
opts.paused(cont,opts,byHover,onPager);
else if(!paused&&opts.resumed)
opts.resumed(cont,opts,byHover,onPager);
}
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;
opts.elements&&$(opts.elements).stop();
$(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);
triggerPause(cont);
return false;
case'pause':
cont.cyclePause=1;
triggerPause(cont);
return false;
case'resume':
cont.cyclePause=0;
checkInstantResume(false,arg2,cont);
triggerPause(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():{});
var meta=$.isFunction($cont.data)?$cont.data(opts.metaAttr):null;
if(meta)
opts=$.extend(opts,meta);
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]:[];
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,10);
else if(opts.backwards)
opts.startingSlide=els.length-1;
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=1;
opts.startingSlide=opts.randomMap[1];
}
else if(opts.startingSlide>=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){
if(!opts.aspect){
if(opts.width)
$slides.width(opts.width);
if(opts.height&&opts.height!='auto')
$slides.height(opts.height);
}else{
$slides.each(function(){
var $slide=$(this);
var ratio=(opts.aspect===true)?$slide.width()/$slide.height():opts.aspect;
if(opts.width&&$slide.width()!=opts.width){
$slide.width(opts.width);
$slide.height(opts.width/ratio);
}
if(opts.height&&$slide.height()<opts.height){
$slide.height(opts.height);
$slide.width(opts.height*ratio);
}
});
}
}
if(opts.center&&((!opts.fit)||opts.aspect)){
$slides.each(function(){
var $slide=$(this);
$slide.css({
"margin-left":opts.width?
((opts.width-$slide.width())/2)+"px":
0,
"margin-top":opts.height?
((opts.height-$slide.height())/2)+"px":
0
});
});
}
if(opts.center&&!opts.fit&&!opts.slideResize){
$slides.each(function(){
var $slide=$(this);
$slide.css({
"margin-left":opts.width?((opts.width-$slide.width())/2)+"px":0,
"margin-top":opts.height?((opts.height-$slide.height())/2)+"px":0
});
});
}
var reshape=opts.containerResize&&!$cont.innerHeight();
if(reshape){
var maxw=0,maxh=0;
for(var j=0;j<els.length;j++){
var $e=$(els[j]),e=$e[0],w=$e.outerWidth(),h=$e.outerHeight();
if(!w)w=e.offsetWidth||e.width||$e.attr('width');
if(!h)h=e.offsetHeight||e.height||$e.attr('height');
maxw=w>maxw?w:maxw;
maxh=h>maxh?h:maxh;
}
if(maxw>0&&maxh>0)
$cont.css({width:maxw+'px',height:maxh+'px'});
}
var pauseFlag=false;
if(opts.pause)
$cont.hover(
function(){
pauseFlag=true;
this.cyclePause++;
triggerPause(cont,true);
},
function(){
pauseFlag&&this.cyclePause--;
triggerPause(cont,true);
}
);
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.cssAfter=opts.cssAfter||{};
opts.cssFirst=opts.cssFirst||{};
opts.animIn=opts.animIn||{};
opts.animOut=opts.animOut||{};
$slides.not(':eq('+first+')').css(opts.cssBefore);
$($slides[first]).css(opts.cssFirst);
if(opts.timeout){
opts.timeout=parseInt(opts.timeout,10);
if(opts.speed.constructor==String)
opts.speed=$.fx.speeds[opts.speed]||parseInt(opts.speed,10);
if(!opts.sync)
opts.speed=opts.speed/2;
var buffer=opts.fx=='none'?0:opts.fx=='shuffle'?500:250;
while((opts.timeout-opts.speed)<buffer)
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=opts.lastSlide=first;
if(opts.random){
if(++opts.randomIndex==els.length)
opts.randomIndex=0;
opts.nextSlide=opts.randomMap[opts.randomIndex];
}
else if(opts.backwards)
opts.nextSlide=opts.startingSlide==0?(els.length-1):opts.startingSlide-1;
else
opts.nextSlide=opts.startingSlide>=(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.skipInitializationCallbacks){
if(opts.before.length)
opts.before[0].apply(e0,[e0,e0,opts,true]);
if(opts.after.length)
opts.after[0].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;i++){
var fx=opts.fxs[i];
tx=txs[fx];
if(!tx||!txs.hasOwnProperty(fx)||!$.isFunction(tx)){
log('discarding unknown transition: ',fx);
opts.fxs.splice(i,1);
i--;
}
}
if(!opts.fxs.length){
log('No valid transitions named; slideshow terminating.');
return false;
}
}
else if(opts.fx=='all'){
opts.multiFx=true;
opts.fxs=[];
for(p in txs){
tx=txs[p];
if(txs.hasOwnProperty(p)&&$.isFunction(tx))
opts.fxs.push(p);
}
}
if(opts.multiFx&&opts.randomizeEffects){
var r1=Math.floor(Math.random()*20)+30;
for(i=0;i<r1;i++){
var r2=Math.floor(Math.random()*opts.fxs.length);
opts.fxs.push(opts.fxs.splice(r2,1)[0]);
}
debug('randomized fx sequence: ',opts.fxs);
}
return true;
};
function exposeAddSlide(opts,els){
opts.addSlide=function(newSlide,prepend){
var $s=$(newSlide),s=$s[0];
if(!opts.autostopCount)
opts.countdown++;
els[prepend?'unshift':'push'](s);
if(opts.els)
opts.els[prepend?'unshift':'push'](s);
opts.slideCount=els.length;
$s.css('position','absolute');
$s[prepend?'prependTo':'appendTo'](opts.$cont);
if(prepend){
opts.currSlide++;
opts.nextSlide++;
}
if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg)
clearTypeFix($s);
if(opts.fit&&opts.width)
$s.width(opts.width);
if(opts.fit&&opts.height&&opts.height!='auto')
$s.height(opts.height);
s.cycleH=(opts.fit&&opts.height)?opts.height:$s.height();
s.cycleW=(opts.fit&&opts.width)?opts.width:$s.width();
$s.css(opts.cssBefore);
if(opts.pager||opts.pagerAnchorBuilder)
$.fn.cycle.createPagerAnchor(els.length-1,s,$(opts.pager),els,opts);
if($.isFunction(opts.onAddSlide))
opts.onAddSlide($s);
else
$s.hide();
};
}
$.fn.cycle.resetState=function(opts,fx){
fx=fx||opts.fx;
opts.before=[];opts.after=[];
opts.cssBefore=$.extend({},opts.original.cssBefore);
opts.cssAfter=$.extend({},opts.original.cssAfter);
opts.animIn=$.extend({},opts.original.animIn);
opts.animOut=$.extend({},opts.original.animOut);
opts.fxFn=null;
$.each(opts.original.before,function(){opts.before.push(this);});
$.each(opts.original.after,function(){opts.after.push(this);});
var init=$.fn.cycle.transitions[fx];
if($.isFunction(init))
init(opts.$cont,$(opts.elements),opts);
};
function go(els,opts,manual,fwd){
if(manual&&opts.busy&&opts.manualTrump){
debug('manualTrump in go(), stopping active transition');
$(els).stop(true,true);
opts.busy=0;
}
if(opts.busy){
debug('transition active, ignoring new tx request');
return;
}
var p=opts.$cont[0],curr=els[opts.currSlide],next=els[opts.nextSlide];
if(p.cycleStop!=opts.stopCount||p.cycleTimeout===0&&!manual)
return;
if(!manual&&!p.cyclePause&&!opts.bounce&&
((opts.autostop&&(--opts.countdown<=0))||
(opts.nowrap&&!opts.random&&opts.nextSlide<opts.currSlide))){
if(opts.end)
opts.end(opts);
return;
}
var changed=false;
if((manual||!p.cyclePause)&&(opts.nextSlide!=opts.currSlide)){
changed=true;
var fx=opts.fx;
curr.cycleH=curr.cycleH||$(curr).height();
curr.cycleW=curr.cycleW||$(curr).width();
next.cycleH=next.cycleH||$(next).height();
next.cycleW=next.cycleW||$(next).width();
if(opts.multiFx){
if(fwd&&(opts.lastFx==undefined||++opts.lastFx>=opts.fxs.length))
opts.lastFx=0;
else if(!fwd&&(opts.lastFx==undefined||--opts.lastFx<0))
opts.lastFx=opts.fxs.length-1;
fx=opts.fxs[opts.lastFx];
}
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(){
opts.busy=0;
$.each(opts.after,function(i,o){
if(p.cycleStop!=opts.stopCount)return;
o.apply(next,[curr,next,opts,fwd]);
});
};
debug('tx firing('+fx+'); 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(opts.fx!='none'&&(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='<a href="#">'+(i+1)+'</a>';
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);
var pagerFn=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.currSlide<i);
}
if(/mouseenter|mouseover/i.test(opts.pagerEvent)){
$a.hover(pagerFn,function(){});
}
else{
$a.bind(opts.pagerEvent,pagerFn);
}
if(!/^click/.test(opts.pagerEvent)&&!opts.allowPagerClickBubble)
$a.bind('click.cycle',function(){return false;});
var cont=opts.$cont[0];
var pauseFlag=false;
if(opts.pauseOnPagerHover){
$a.hover(
function(){
pauseFlag=true;
cont.cyclePause++;
triggerPause(cont,true,true);
},function(){
pauseFlag&&cont.cyclePause--;
triggerPause(cont,true,true);
}
);
}
};
$.fn.cycle.hopsFromLast=function(opts,fwd){
var hops,l=opts.lastSlide,c=opts.currSlide;
if(fwd)
hops=c>l?c-l:opts.slideCount-l;
else
hops=c<l?l-c:l+opts.slideCount-c;
return hops;
};
function clearTypeFix($slides){
debug('applying clearType background-color hack');
function hex(s){
s=parseInt(s,10).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&&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.commonReset=function(curr,next,opts,w,h,rev){
$(opts.elements).not(curr).hide();
if(typeof opts.cssBefore.opacity=='undefined')
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,function(){
cb();
});
};
$l.animate(opts.animOut,speedOut,easeOut,function(){
$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={
activePagerClass:'activeSlide',
after:null,
allowPagerClickBubble:false,
animIn:null,
animOut:null,
aspect:false,
autostop:0,
autostopCount:0,
backwards:false,
before:null,
center:null,
cleartype:!$.support.opacity,
cleartypeNoBg:false,
containerResize:1,
continuous:0,
cssAfter:null,
cssBefore:null,
delay:0,
easeIn:null,
easeOut:null,
easing:null,
end:null,
fastOnEvent:0,
fit:0,
fx:'fade',
fxFn:null,
height:'auto',
manualTrump:true,
metaAttr:'cycle',
next:null,
nowrap:0,
onPagerEvent:null,
onPrevNextEvent:null,
pager:null,
pagerAnchorBuilder:null,
pagerEvent:'click.cycle',
pause:0,
pauseOnPagerHover:0,
prev:null,
prevNextEvent:'click.cycle',
random:0,
randomizeEffects:1,
requeueOnImageNotLoaded:true,
requeueTimeout:250,
rev:0,
shuffle:null,
skipInitializationCallbacks:false,
slideExpr:null,
slideResize:1,
speed:1000,
speedIn:null,
speedOut:null,
startingSlide:0,
sync:1,
timeout:4000,
timeoutFn:null,
updateActivePagerLink:null,
width:null
};
})(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;
opts.cssBefore.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;
opts.cssBefore.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;
opts.cssBefore.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;
opts.cssBefore.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;
opts.cssBefore.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;
opts.cssBefore.top=0;
opts.cssBefore.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;
opts.cssBefore.top=0;
opts.cssBefore.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<opts.currSlide;i++)
opts.els.push(opts.els.shift());
opts.fxFn=function(curr,next,opts,cb,fwd){
if(opts.rev)
fwd=!fwd;
var $el=fwd?$(curr):$(next);
$(next).css(opts.cssBefore);
var count=opts.slideCount;
$el.animate(opts.shuffle,opts.speedIn,opts.easeIn,function(){
var hops=$.fn.cycle.hopsFromLast(opts,fwd);
for(var k=0;k<hops;k++)
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++)
$(opts.els[i]).css('z-index',len-i+count);
}
else{
var z=$(curr).css('z-index');
$el.css('z-index',parseInt(z,10)+1+count);
}
$el.animate({left:0,top:0},opts.speedOut,opts.easeOut,function(){
$(fwd?this:curr).hide();
if(cb)cb();
});
});
};
$.extend(opts.cssBefore,{display:'block',opacity:1,top:0,left:0});
};
$.fn.cycle.transitions.turnUp=function($cont,$slides,opts){
opts.before.push(function(curr,next,opts){
$.fn.cycle.commonReset(curr,next,opts,true,false);
opts.cssBefore.top=next.cycleH;
opts.animIn.height=next.cycleH;
opts.animOut.width=next.cycleW;
});
opts.cssFirst.top=0;
opts.cssBefore.left=0;
opts.cssBefore.height=0;
opts.animIn.top=0;
opts.animOut.height=0;
};
$.fn.cycle.transitions.turnDown=function($cont,$slides,opts){
opts.before.push(function(curr,next,opts){
$.fn.cycle.commonReset(curr,next,opts,true,false);
opts.animIn.height=next.cycleH;
opts.animOut.top=curr.cycleH;
});
opts.cssFirst.top=0;
opts.cssBefore.left=0;
opts.cssBefore.top=0;
opts.cssBefore.height=0;
opts.animOut.height=0;
};
$.fn.cycle.transitions.turnLeft=function($cont,$slides,opts){
opts.before.push(function(curr,next,opts){
$.fn.cycle.commonReset(curr,next,opts,false,true);
opts.cssBefore.left=next.cycleW;
opts.animIn.width=next.cycleW;
});
opts.cssBefore.top=0;
opts.cssBefore.width=0;
opts.animIn.left=0;
opts.animOut.width=0;
};
$.fn.cycle.transitions.turnRight=function($cont,$slides,opts){
opts.before.push(function(curr,next,opts){
$.fn.cycle.commonReset(curr,next,opts,false,true);
opts.animIn.width=next.cycleW;
opts.animOut.left=curr.cycleW;
});
$.extend(opts.cssBefore,{top:0,left:0,width:0});
opts.animIn.left=0;
opts.animOut.width=0;
};
$.fn.cycle.transitions.zoom=function($cont,$slides,opts){
opts.before.push(function(curr,next,opts){
$.fn.cycle.commonReset(curr,next,opts,false,false,true);
opts.cssBefore.top=next.cycleH/2;
opts.cssBefore.left=next.cycleW/2;
$.extend(opts.animIn,{top:0,left:0,width:next.cycleW,height:next.cycleH});
$.extend(opts.animOut,{width:0,height:0,top:curr.cycleH/2,left:curr.cycleW/2});
});
opts.cssFirst.top=0;
opts.cssFirst.left=0;
opts.cssBefore.width=0;
opts.cssBefore.height=0;
};
$.fn.cycle.transitions.fadeZoom=function($cont,$slides,opts){
opts.before.push(function(curr,next,opts){
$.fn.cycle.commonReset(curr,next,opts,false,false);
opts.cssBefore.left=next.cycleW/2;
opts.cssBefore.top=next.cycleH/2;
$.extend(opts.animIn,{top:0,left:0,width:next.cycleW,height:next.cycleH});
});
opts.cssBefore.width=0;
opts.cssBefore.height=0;
opts.animOut.opacity=0;
};
$.fn.cycle.transitions.blindX=function($cont,$slides,opts){
var w=$cont.css('overflow','hidden').width();
opts.before.push(function(curr,next,opts){
$.fn.cycle.commonReset(curr,next,opts);
opts.animIn.width=next.cycleW;
opts.animOut.left=curr.cycleW;
});
opts.cssBefore.left=w;
opts.cssBefore.top=0;
opts.animIn.left=0;
opts.animOut.left=w;
};
$.fn.cycle.transitions.blindY=function($cont,$slides,opts){
var h=$cont.css('overflow','hidden').height();
opts.before.push(function(curr,next,opts){
$.fn.cycle.commonReset(curr,next,opts);
opts.animIn.height=next.cycleH;
opts.animOut.top=curr.cycleH;
});
opts.cssBefore.top=h;
opts.cssBefore.left=0;
opts.animIn.top=0;
opts.animOut.top=h;
};
$.fn.cycle.transitions.blindZ=function($cont,$slides,opts){
var h=$cont.css('overflow','hidden').height();
var w=$cont.width();
opts.before.push(function(curr,next,opts){
$.fn.cycle.commonReset(curr,next,opts);
opts.animIn.height=next.cycleH;
opts.animOut.top=curr.cycleH;
});
opts.cssBefore.top=h;
opts.cssBefore.left=w;
opts.animIn.top=0;
opts.animIn.left=0;
opts.animOut.top=h;
opts.animOut.left=w;
};
$.fn.cycle.transitions.growX=function($cont,$slides,opts){
opts.before.push(function(curr,next,opts){
$.fn.cycle.commonReset(curr,next,opts,false,true);
opts.cssBefore.left=this.cycleW/2;
opts.animIn.left=0;
opts.animIn.width=this.cycleW;
opts.animOut.left=0;
});
opts.cssBefore.top=0;
opts.cssBefore.width=0;
};
$.fn.cycle.transitions.growY=function($cont,$slides,opts){
opts.before.push(function(curr,next,opts){
$.fn.cycle.commonReset(curr,next,opts,true,false);
opts.cssBefore.top=this.cycleH/2;
opts.animIn.top=0;
opts.animIn.height=this.cycleH;
opts.animOut.top=0;
});
opts.cssBefore.height=0;
opts.cssBefore.left=0;
};
$.fn.cycle.transitions.curtainX=function($cont,$slides,opts){
opts.before.push(function(curr,next,opts){
$.fn.cycle.commonReset(curr,next,opts,false,true,true);
opts.cssBefore.left=next.cycleW/2;
opts.animIn.left=0;
opts.animIn.width=this.cycleW;
opts.animOut.left=curr.cycleW/2;
opts.animOut.width=0;
});
opts.cssBefore.top=0;
opts.cssBefore.width=0;
};
$.fn.cycle.transitions.curtainY=function($cont,$slides,opts){
opts.before.push(function(curr,next,opts){
$.fn.cycle.commonReset(curr,next,opts,true,false,true);
opts.cssBefore.top=next.cycleH/2;
opts.animIn.top=0;
opts.animIn.height=next.cycleH;
opts.animOut.top=curr.cycleH/2;
opts.animOut.height=0;
});
opts.cssBefore.height=0;
opts.cssBefore.left=0;
};
$.fn.cycle.transitions.cover=function($cont,$slides,opts){
var d=opts.direction||'left';
var w=$cont.css('overflow','hidden').width();
var h=$cont.height();
opts.before.push(function(curr,next,opts){
$.fn.cycle.commonReset(curr,next,opts);
if(d=='right')
opts.cssBefore.left=-w;
else if(d=='up')
opts.cssBefore.top=h;
else if(d=='down')
opts.cssBefore.top=-h;
else
opts.cssBefore.left=w;
});
opts.animIn.left=0;
opts.animIn.top=0;
opts.cssBefore.top=0;
opts.cssBefore.left=0;
};
$.fn.cycle.transitions.uncover=function($cont,$slides,opts){
var d=opts.direction||'left';
var w=$cont.css('overflow','hidden').width();
var h=$cont.height();
opts.before.push(function(curr,next,opts){
$.fn.cycle.commonReset(curr,next,opts,true,true,true);
if(d=='right')
opts.animOut.left=w;
else if(d=='up')
opts.animOut.top=-h;
else if(d=='down')
opts.animOut.top=h;
else
opts.animOut.left=-w;
});
opts.animIn.left=0;
opts.animIn.top=0;
opts.cssBefore.top=0;
opts.cssBefore.left=0;
};
$.fn.cycle.transitions.toss=function($cont,$slides,opts){
var w=$cont.css('overflow','visible').width();
var h=$cont.height();
opts.before.push(function(curr,next,opts){
$.fn.cycle.commonReset(curr,next,opts,true,true,true);
if(!opts.animOut.left&&!opts.animOut.top)
$.extend(opts.animOut,{left:w*2,top:-h/2,opacity:0});
else
opts.animOut.opacity=0;
});
opts.cssBefore.left=0;
opts.cssBefore.top=0;
opts.animIn.left=0;
};
$.fn.cycle.transitions.wipe=function($cont,$slides,opts){
var w=$cont.css('overflow','hidden').width();
var h=$cont.height();
opts.cssBefore=opts.cssBefore||{};
var clip;
if(opts.clip){
if(/l2r/.test(opts.clip))
clip='rect(0px 0px '+h+'px 0px)';
else if(/r2l/.test(opts.clip))
clip='rect(0px '+w+'px '+h+'px '+w+'px)';
else if(/t2b/.test(opts.clip))
clip='rect(0px '+w+'px 0px 0px)';
else if(/b2t/.test(opts.clip))
clip='rect('+h+'px '+w+'px '+h+'px 0px)';
else if(/zoom/.test(opts.clip)){
var top=parseInt(h/2,10);
var left=parseInt(w/2,10);
clip='rect('+top+'px '+left+'px '+top+'px '+left+'px)';
}
}
opts.cssBefore.clip=opts.cssBefore.clip||clip||'rect(0px 0px 0px 0px)';
var d=opts.cssBefore.clip.match(/(\d+)/g);
var t=parseInt(d[0],10),r=parseInt(d[1],10),b=parseInt(d[2],10),l=parseInt(d[3],10);
opts.before.push(function(curr,next,opts){
if(curr==next)return;
var $curr=$(curr),$next=$(next);
$.fn.cycle.commonReset(curr,next,opts,true,true,false);
opts.cssAfter.display='block';
var step=1,count=parseInt((opts.speedIn/13),10)-1;
(function f(){
var tt=t?t-parseInt(step*(t/count),10):0;
var ll=l?l-parseInt(step*(l/count),10):0;
var bb=b<h?b+parseInt(step*((h-b)/count||1),10):h;
var rr=r<w?r+parseInt(step*((w-r)/count||1),10):w;
$next.css({clip:'rect('+tt+'px '+rr+'px '+bb+'px '+ll+'px)'});
(step++<=count)?setTimeout(f,13):$curr.css('display','none');
})();
});
$.extend(opts.cssBefore,{display:'block',opacity:1,top:0,left:0});
opts.animIn={left:0};
opts.animOut={left:0};
};
})(jQuery);
/*! Copyright (c) 2008 Brandon Aaron (http://brandonaaron.net)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 *
 * Version: 1.0.3
 * Requires jQuery 1.1.3+
 * Docs: http://docs.jquery.com/Plugins/livequery
 */

(function($) {
	
$.extend($.fn, {
	livequery: function(type, fn, fn2) {
		var self = this, q;
		
		// Handle different call patterns
		if ($.isFunction(type))
			fn2 = fn, fn = type, type = undefined;
			
		// See if Live Query already exists
		$.each( $.livequery.queries, function(i, query) {
			if ( self.selector == query.selector && self.context == query.context &&
				type == query.type && (!fn || fn.$lqguid == query.fn.$lqguid) && (!fn2 || fn2.$lqguid == query.fn2.$lqguid) )
					// Found the query, exit the each loop
					return (q = query) && false;
		});
		
		// Create new Live Query if it wasn't found
		q = q || new $.livequery(this.selector, this.context, type, fn, fn2);
		
		// Make sure it is running
		q.stopped = false;
		
		// Run it immediately for the first time
		q.run();
		
		// Contnue the chain
		return this;
	},
	
	expire: function(type, fn, fn2) {
		var self = this;
		
		// Handle different call patterns
		if ($.isFunction(type))
			fn2 = fn, fn = type, type = undefined;
			
		// Find the Live Query based on arguments and stop it
		$.each( $.livequery.queries, function(i, query) {
			if ( self.selector == query.selector && self.context == query.context && 
				(!type || type == query.type) && (!fn || fn.$lqguid == query.fn.$lqguid) && (!fn2 || fn2.$lqguid == query.fn2.$lqguid) && !this.stopped )
					$.livequery.stop(query.id);
		});
		
		// Continue the chain
		return this;
	}
});

$.livequery = function(selector, context, type, fn, fn2) {
	this.selector = selector;
	this.context  = context || document;
	this.type     = type;
	this.fn       = fn;
	this.fn2      = fn2;
	this.elements = [];
	this.stopped  = false;
	
	// The id is the index of the Live Query in $.livequery.queries
	this.id = $.livequery.queries.push(this)-1;
	
	// Mark the functions for matching later on
	fn.$lqguid = fn.$lqguid || $.livequery.guid++;
	if (fn2) fn2.$lqguid = fn2.$lqguid || $.livequery.guid++;
	
	// Return the Live Query
	return this;
};

$.livequery.prototype = {
	stop: function() {
		var query = this;
		
		if ( this.type )
			// Unbind all bound events
			this.elements.unbind(this.type, this.fn);
		else if (this.fn2)
			// Call the second function for all matched elements
			this.elements.each(function(i, el) {
				query.fn2.apply(el);
			});
			
		// Clear out matched elements
		this.elements = [];
		
		// Stop the Live Query from running until restarted
		this.stopped = true;
	},
	
	run: function() {
		// Short-circuit if stopped
		if ( this.stopped ) return;
		var query = this;
		
		var oEls = this.elements,
			els  = $(this.selector, this.context),
			nEls = els.not(oEls);
		
		// Set elements to the latest set of matched elements
		this.elements = els;
		
		if (this.type) {
			// Bind events to newly matched elements
			nEls.bind(this.type, this.fn);
			
			// Unbind events to elements no longer matched
			if (oEls.length > 0)
				$.each(oEls, function(i, el) {
					if ( $.inArray(el, els) < 0 )
						$.event.remove(el, query.type, query.fn);
				});
		}
		else {
			// Call the first function for newly matched elements
			nEls.each(function() {
				query.fn.apply(this);
			});
			
			// Call the second function for elements no longer matched
			if ( this.fn2 && oEls.length > 0 )
				$.each(oEls, function(i, el) {
					if ( $.inArray(el, els) < 0 )
						query.fn2.apply(el);
				});
		}
	}
};

$.extend($.livequery, {
	guid: 0,
	queries: [],
	queue: [],
	running: false,
	timeout: null,
	
	checkQueue: function() {
		if ( $.livequery.running && $.livequery.queue.length ) {
			var length = $.livequery.queue.length;
			// Run each Live Query currently in the queue
			while ( length-- )
				$.livequery.queries[ $.livequery.queue.shift() ].run();
		}
	},
	
	pause: function() {
		// Don't run anymore Live Queries until restarted
		$.livequery.running = false;
	},
	
	play: function() {
		// Restart Live Queries
		$.livequery.running = true;
		// Request a run of the Live Queries
		$.livequery.run();
	},
	
	registerPlugin: function() {
		$.each( arguments, function(i,n) {
			// Short-circuit if the method doesn't exist
			if (!$.fn[n]) return;
			
			// Save a reference to the original method
			var old = $.fn[n];
			
			// Create a new method
			$.fn[n] = function() {
				// Call the original method
				var r = old.apply(this, arguments);
				
				// Request a run of the Live Queries
				$.livequery.run();
				
				// Return the original methods result
				return r;
			}
		});
	},
	
	run: function(id) {
		if (id != undefined) {
			// Put the particular Live Query in the queue if it doesn't already exist
			if ( $.inArray(id, $.livequery.queue) < 0 )
				$.livequery.queue.push( id );
		}
		else
			// Put each Live Query in the queue if it doesn't already exist
			$.each( $.livequery.queries, function(id) {
				if ( $.inArray(id, $.livequery.queue) < 0 )
					$.livequery.queue.push( id );
			});
		
		// Clear timeout if it already exists
		if ($.livequery.timeout) clearTimeout($.livequery.timeout);
		// Create a timeout to check the queue and actually run the Live Queries
		$.livequery.timeout = setTimeout($.livequery.checkQueue, 20);
	},
	
	stop: function(id) {
		if (id != undefined)
			// Stop are particular Live Query
			$.livequery.queries[ id ].stop();
		else
			// Stop all Live Queries
			$.each( $.livequery.queries, function(id) {
				$.livequery.queries[ id ].stop();
			});
	}
});

// Register core DOM manipulation methods
$.livequery.registerPlugin('append', 'prepend', 'after', 'before', 'wrap', 'attr', 'removeAttr', 'addClass', 'removeClass', 'toggleClass', 'empty', 'remove');

// Run Live Queries when the Document is ready
$(function() { $.livequery.play(); });


// Save a reference to the original init method
var init = $.prototype.init;

// Create a new init method that exposes two new properties: selector and context
$.prototype.init = function(a,c) {
	// Call the original init and save the result
	var r = init.apply(this, arguments);
	
	// Copy over properties if they exist already
	if (a && a.selector)
		r.context = a.context, r.selector = a.selector;
		
	// Set properties
	if ( typeof a == 'string' )
		r.context = c || document, r.selector = a;
	
	// Return the result
	return r;
};

// Give the init function the jQuery prototype for later instantiation (needed after Rev 4091)
$.prototype.init.prototype = $.prototype;
	
})(jQuery);/*
 * Treeview 1.5pre - jQuery plugin to hide and show branches of a tree
 * 
 * http://bassistance.de/jquery-plugins/jquery-plugin-treeview/
 * http://docs.jquery.com/Plugins/Treeview
 *
 * Copyright (c) 2007 Jörn Zaefferer
 *
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 *
 * Revision: $Id: jquery.treeview.js 5759 2008-07-01 07:50:28Z joern.zaefferer $
 *
 */

;(function($) {

	// TODO rewrite as a widget, removing all the extra plugins
	$.extend($.fn, {
		swapClass: function(c1, c2) {
			var c1Elements = this.filter('.' + c1);
			this.filter('.' + c2).removeClass(c2).addClass(c1);
			c1Elements.removeClass(c1).addClass(c2);
			return this;
		},
		replaceClass: function(c1, c2) {
			return this.filter('.' + c1).removeClass(c1).addClass(c2).end();
		},
		hoverClass: function(className) {
			className = className || "hover";
			return this.hover(function() {
				//$(this).addClass(className);
			}, function() {
				//$(this).removeClass(className);
			});
		},
		heightToggle: function(animated, callback) {
			animated ?
				this.animate({ height: "toggle" }, animated, callback) :
				this.each(function(){
					jQuery(this)[ jQuery(this).is(":hidden") ? "show" : "hide" ]();
					if(callback)
						callback.apply(this, arguments);
				});
		},
		heightHide: function(animated, callback) {
			if (animated) {
				this.animate({ height: "hide" }, animated, callback);
			} else {
				this.hide();
				if (callback)
					this.each(callback);				
			}
		},
		prepareBranches: function(settings) {
			if (!settings.prerendered) {
				// mark last tree items
				this.filter(":last-child:not(ul)").addClass(CLASSES.last);
				// collapse whole tree, or only those marked as closed, anyway except those marked as open
				this.filter((settings.collapsed ? "" : "." + CLASSES.closed) + ":not(." + CLASSES.open + ")").find(">ul").hide();
			}
			// return all items with sublists
			return this.filter(":has(>ul)");
		},
		applyClasses: function(settings, toggler) {
			// TODO use event delegation
			this.filter(":has(>ul):not(:has(>a))").find(">span").unbind("click.treeview").bind("click.treeview", function(event) {
				// don't handle click events on children, eg. checkboxes
				if ( this == event.target )
					toggler.apply($(this).next());
			}).add( $("a", this) ).hoverClass();
			
			if (!settings.prerendered) {
				// handle closed ones first
				this.filter(":has(>ul:hidden)")
						.addClass(CLASSES.expandable)
						.replaceClass(CLASSES.last, CLASSES.lastExpandable);
						
				// handle open ones
				this.not(":has(>ul:hidden)")
						.addClass(CLASSES.collapsable)
						.replaceClass(CLASSES.last, CLASSES.lastCollapsable);
						
	            // create hitarea if not present
				var hitarea = this.find("div." + CLASSES.hitarea);
				if (!hitarea.length)
					hitarea = this.prepend("<div class=\"" + CLASSES.hitarea + "\"/>").find("div." + CLASSES.hitarea);
				hitarea.removeClass().addClass(CLASSES.hitarea).each(function() {
					var classes = "";
					$.each($(this).parent().attr("class").split(" "), function() {
						classes += this + "-hitarea ";
					});
					$(this).addClass( classes );
				})
			}
			
			// apply event to hitarea
			this.find("div." + CLASSES.hitarea).click( toggler );
		},
		treeview: function(settings) {
			
			settings = $.extend({
				cookieId: "treeview"
			}, settings);
			
			if ( settings.toggle ) {
				var callback = settings.toggle;
				settings.toggle = function() {
					return callback.apply($(this).parent()[0], arguments);
				};
			}
		
			// factory for treecontroller
			function treeController(tree, control) {
				// factory for click handlers
				function handler(filter) {
					return function() {
						// reuse toggle event handler, applying the elements to toggle
						// start searching for all hitareas
						toggler.apply( $("div." + CLASSES.hitarea, tree).filter(function() {
							// for plain toggle, no filter is provided, otherwise we need to check the parent element
							return filter ? $(this).parent("." + filter).length : true;
						}) );
						return false;
					};
				}
				// click on first element to collapse tree
				$("a:eq(0)", control).click( handler(CLASSES.collapsable) );
				// click on second to expand tree
				$("a:eq(1)", control).click( handler(CLASSES.expandable) );
				// click on third to toggle tree
				$("a:eq(2)", control).click( handler() ); 
			}
		
			// handle toggle event
			function toggler() {
				$(this)
					.parent()
					// swap classes for hitarea
					.find(">.hitarea")
						.swapClass( CLASSES.collapsableHitarea, CLASSES.expandableHitarea )
						.swapClass( CLASSES.lastCollapsableHitarea, CLASSES.lastExpandableHitarea )
					.end()
					// swap classes for parent li
					.swapClass( CLASSES.collapsable, CLASSES.expandable )
					.swapClass( CLASSES.lastCollapsable, CLASSES.lastExpandable )
					// find child lists
					.find( ">ul" )
					// toggle them
					.heightToggle( settings.animated, settings.toggle );
				if ( settings.unique ) {
					$(this).parent()
						.siblings()
						// swap classes for hitarea
						.find(">.hitarea")
							.replaceClass( CLASSES.collapsableHitarea, CLASSES.expandableHitarea )
							.replaceClass( CLASSES.lastCollapsableHitarea, CLASSES.lastExpandableHitarea )
						.end()
						.replaceClass( CLASSES.collapsable, CLASSES.expandable )
						.replaceClass( CLASSES.lastCollapsable, CLASSES.lastExpandable )
						.find( ">ul" )
						.heightHide( settings.animated, settings.toggle );
				}
			}
			this.data("toggler", toggler);
			
			function serialize() {
				function binary(arg) {
					return arg ? 1 : 0;
				}
				var data = [];
				branches.each(function(i, e) {
					data[i] = $(e).is(":has(>ul:visible)") ? 1 : 0;
				});
				$.cookie(settings.cookieId, data.join(""), settings.cookieOptions );
			}
			
			function deserialize() {
				var stored = $.cookie(settings.cookieId);
				if ( stored ) {
					var data = stored.split("");
					branches.each(function(i, e) {
						$(e).find(">ul")[ parseInt(data[i]) ? "show" : "hide" ]();
					});
				}
			}
			
			// add treeview class to activate styles
			this.addClass("treeview");
			
			// prepare branches and find all tree items with child lists
			var branches = this.find("li").prepareBranches(settings);
			
			switch(settings.persist) {
			case "cookie":
				var toggleCallback = settings.toggle;
				settings.toggle = function() {
					serialize();
					if (toggleCallback) {
						toggleCallback.apply(this, arguments);
					}
				};
				deserialize();
				break;
			case "location":
				var current = this.find("a").filter(function() {
					return this.href.toLowerCase() == location.href.toLowerCase();
				});
				if ( current.length ) {
					// TODO update the open/closed classes
					var items = current.addClass("selected").parents("ul, li").add( current.next() ).show();
					if (settings.prerendered) {
						// if prerendered is on, replicate the basic class swapping
						items.filter("li")
							.swapClass( CLASSES.collapsable, CLASSES.expandable )
							.swapClass( CLASSES.lastCollapsable, CLASSES.lastExpandable )
							.find(">.hitarea")
								.swapClass( CLASSES.collapsableHitarea, CLASSES.expandableHitarea )
								.swapClass( CLASSES.lastCollapsableHitarea, CLASSES.lastExpandableHitarea );
					}
				}
				break;
			}
			
			branches.applyClasses(settings, toggler);
				
			// if control option is set, create the treecontroller and show it
			if ( settings.control ) {
				treeController(this, settings.control);
				$(settings.control).show();
			}
			
			return this;
		}
	});
	
	// classes used by the plugin
	// need to be styled via external stylesheet, see first example
	$.treeview = {};
	var CLASSES = ($.treeview.classes = {
		open: "open",
		closed: "closed",
		expandable: "expandable",
		expandableHitarea: "expandable-hitarea",
		lastExpandableHitarea: "lastExpandable-hitarea",
		collapsable: "collapsable",
		collapsableHitarea: "collapsable-hitarea",
		lastCollapsableHitarea: "lastCollapsable-hitarea",
		lastCollapsable: "lastCollapsable",
		lastExpandable: "lastExpandable",
		last: "last",
		hitarea: "hitarea"
	});
	
})(jQuery);
function get(id) {
	return document.getElementById(id);
}

(function ($) {
$.fn.clearDefault = function () {
	return this.each( function () {
		var default_value = $(this).val();
		$(this).focus( function () {
			if ($(this).val() == default_value)
				$(this).val("");
		});
		$(this).blur( function () {
			if ($(this).val() == "")
				$(this).val(default_value);
		});
	});
};
})(jQuery);

$(document).ready( function() {
	if($("a[rel=grupa]").length) {
		$("a[rel=grupa]").fancybox({
         'overlayOpacity'	: '0.7',
			'overlayColor'		:'#000',
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'titlePosition'		: 'over',
			'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
				if(title.length > 0)
					return '<span id="fancybox-title-over"><b>' + title + '</b></span>';
				//return '<span id="fancybox-title-over">Obraz ' +  (currentIndex + 1) + ' / ' + currentArray.length + ' : <b>' + title + '</b></span>';
			}
		});
	}

	if($(".fancybox_window").length)
		$('.fancybox_window').fancybox();

	if($("#fancybox_popup").length)
		$("#fancybox_popup").fancybox().trigger('click');

	if($(".rotation_down").length) {
		$('.rotation_down').cycle({
			fx: 'scrollDown'
		});
	}

	if($("#szuk").length)
		szukajTextInit = $("#szuk").val();

	if($(".search input[type='text']").length)
		$(".search input[type='text']").clearDefault();
/*
	$('a.level-0').click( function() {
		$(this).next().toggle();
		return false;
	}).next().hide();
*/
/*
   $('.login-panel').hover(
      function() { $(this).animate({top: -62}, 400) },
      function() { $(this).animate({top: -100}, 200) }
   );
  */
   $(".login-panel").live("click", function(event) {
   	 if ($(this).hasClass('inactive'))
                $(this).animate({ marginTop: "0" }, 400).removeClass('inactive');
            else
                $(this).animate({ marginTop: "-38" }, 200).addClass('inactive');

  }
   );


   var modernBrowser = true;
   if(/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent))
   {
	   var ffversion = new Number(RegExp.$1);
	   if(ffversion < 5)
		   modernBrowser = false;
   }

   if(/MSIE (\d+\.\d+);/.test(navigator.userAgent))
   {
	   var ieversion=new Number(RegExp.$1)
	   if(ieversion < 12)
		   modernBrowser = false;
   }

   if(/Chrome[\/\s](\d+\.\d+)/.test(navigator.userAgent))
   {
	   var chromeversion=new Number(RegExp.$1)
	   if(chromeversion < 12)
		   modernBrowser = false;
   }

   if(modernBrowser == false && $.cookie("modernMsg") == null)
   {
	   $('.ieElder').animate({top: '103'}, 400);
	   $('.ieElder-close').click(function(){
		   $.cookie("modernMsg", 'false', { expires: 30 });
		   $('.ieElder').fadeOut();
	   });

	   $('.ieElder-later').click(function(){
		   $('.ieElder').fadeOut();
	   });
	}
	
/* index anim */	

	jQuery.fx.interval = 6; 

	$menus = $('.menu').children('li');
	$('.logo a').delay(800).animate({opacity	: '1'}, 600, function(){				
		$menus.each(function(i) {
				$(this).delay(200).animate({marginTop	: '0px'}, 300 + i * 100 , 'easeOutBack', function(){
					if(i == 5){							
						$('.anim .slides img:first').delay(200).fadeIn(600,  function(){
							$('.anim-nav').fadeIn(600);
							$('.index .oferty-slides').delay(1600).cycle({
									fx: 'scrollLeft',
									timeout: 114000,
									speed: 400,
									sync: 0,
									pager: '.oferty-nav',
									pagerAnchorBuilder: function(idx, slide) {
									return '<li class="nav-'+ ++idx +'"><a href="#">'+ idx +'</a></li>';
									}
								});
							$('.content.index').delay(400).fadeIn(600,  function(){
								$('.anim .slides').delay(600).cycle({
									fx: 'fadeout',
									timeout: 6000,
									speed: 2400,
									next: '.anim-next',
									prev: '.anim-prev'
								});
							});
						});
					}
				});
		});
	});
	
	$('.subpage .oferty-slides').cycle({
		fx: 'scrollLeft',
		timeout: 114000,
		speed: 400,
		sync: 0,
		pager: '.oferty-nav',
		pagerAnchorBuilder: function(idx, slide) {
			return '<li class="nav-'+ ++idx +'"><a href="#">'+ idx +'</a></li>';
		}
	});	
	
   $('.menu li a').hover(
			function(){
				$(this).children('.m-h')
					.stop()
					.animate({opacity : '1'}, 200);
			},
			function(){
				$(this).children('.m-h')
					.stop()
					.animate({opacity : '0'}, 200);
			}
		);
		
/* submenu */

	$("ul.level-0").treeview({
		collapsed: true,
		animated: 'fast',
		persist: 'location'
	});

});
//----------------WALIDACJA-------------------------------------------------------------------------------------------------
function walidacjaNIP(dane) {
	if(!dane.match( /^[0-9]{3}-[0-9]{2}-[0-9]{2}-[0-9]{3}$/ ) && !dane.match( /^[0-9]{3}-[0-9]{3}-[0-9]{2}-[0-9]{2}$/ ) && !dane.match( /^[0-9]{10}$/ )) {
		alert("Podano niepoprawny numer NIP");
		return false;
	}
	var my_nums=dane.replace(/-/g,'');
	var valid_nums="657234567";
	var sum=0;
	for(var temp=8;temp>=0;temp--)
		sum += (parseInt(valid_nums.charAt(temp)) * parseInt(my_nums.charAt(temp)));
	if ( (sum % 11) == 10 ? false : ((sum % 11) == parseInt(my_nums.charAt(9))) )
		return true;
	else {
		alert("Podano niepoprawny numer NIP");
		return false;
	}
}

function walidacjaEmail(email) {
	var isEmail_re = /^\s*[\w\-\+_]+(\.[\w\-\+_]+)*\@[\w\-\+_]+\.[\w\-\+_]+(\.[\w\-\+_]+)*\s*$/;
	if(String(email).search(isEmail_re) == -1) {
		alert("Podano niepoprawny adres e-mail");
		return false;
	} else
		return true;
}

function walidacjaTelefon(telefon) {
	var val_tel = /^\d*[0-9\-\ ]*$/;
	if(String(telefon).search(val_tel) == -1) {
		alert("Podano niepoprawny numer telefonu");
		return false;
	} else
		return true;
}

function waliduj_formularz() {
	var x = document.getElementsByName("wymagany");
	for(y=0; y < x.length; y++) {
		nazwa = x[y].id;
		if(document.getElementsByName(nazwa)[0].type == "text") {
			if(document.getElementsByName(nazwa)[0].value.length == 0) {
				alert("Wpisz zawartość pola \""+x[y].value+"\"");
				return false;
			}
		} else if(document.getElementsByName(nazwa)[0].type == "radio" || document.getElementsByName(nazwa)[0].type == "checkbox") {
			n = document.getElementsByName(nazwa);
			var rezultat = false;
			for(m=0; m < n.length; m++) {
				if(n[m].checked == true)
					rezultat = true;
			}

			if(rezultat == false) {
				alert("Wybierz zawartość pola \""+x[y].value+"\"");
				return false;
			}
		} else if(document.getElementsByName(nazwa)[0].type == "select-one") {
			//eee... z natury to pole jest selected xD
		} else if(document.getElementsByName(nazwa)[0].type == "textarea") {
			if(document.getElementsByName(nazwa)[0].value.length == 0) {
				alert("Wpisz zawartość pola \""+x[y].value+"\"");
				return false;
			}
		} else {
			alert(document.getElementsByName(nazwa)[0].type);
		}
	}

	var p = document.getElementsByName("walidacja");
	for(y=0; y <= p.length; y++) {
		nazwa = p[y].id;
		wal = p[y].value;

		if(document.getElementsByName(nazwa)[0].type == "text") {
			if(wal == 1 && walidacjaEmail(document.getElementsByName(nazwa)[0].value) == false)
				return false;
			else if(wal == 2 && walidacjaTelefon(document.getElementsByName(nazwa)[0].value) == false)
				return false;
			else if(wal == 3 && walidacjaNIP(document.getElementsByName(nazwa)[0].value) == false)
				return false;
		}
	}

	return true;
}

function handleEnter(inField, e) {
	var charCode;

	if(e && e.which)
		charCode = e.which;
	else if(window.event) {
		e = window.event;
		charCode = e.keyCode;
	}

	if(charCode == 13)
		submitSearch();
}

function submitSearch(langUsed) {
	var szukany = get('szuk').value;
	if(szukany != szukajTextInit)
	{
		if(langUsed==true)
			window.location = WWW_PATH+'/'+WWW_LANG+'/szukaj/'+szukany;
		else
			window.location = WWW_PATH+'/szukaj/'+szukany;
	}
}

function checkNewsletter()
{
	if($('#newsletterEmail').val().length == 0)
	{
		alert('Pole "E-mail" nie może być puste');
		return false;
	}

	if($('#newsletterImieNazw').val().length == 0)
	{
		alert('Pole "Imię i nazwisko" nie może być puste');
		return false;
	}
		
	var result2 = false;
	$('input:checkbox:checked').each(function(index) {
		result2 = true;
	});

	if(result2 == false)
	{
		alert('Wybierz co najmniej jeden newsletter');
		return false;
	}
}
/*
 * Copyright (c) 2008 - 2010 Janis Skarnelis
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */
(function(b){var m,t,u,f,D,j,E,n,z,A,q=0,e={},o=[],p=0,d={},l=[],G=null,v=new Image,J=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,W=/[^\.]\.(swf)\s*$/i,K,L=1,y=0,s="",r,i,h=false,B=b.extend(b("<div/>")[0],{prop:0}),M=b.browser.msie&&b.browser.version<7&&!window.XMLHttpRequest,N=function(){t.hide();v.onerror=v.onload=null;G&&G.abort();m.empty()},O=function(){if(false===e.onError(o,q,e)){t.hide();h=false}else{e.titleShow=false;e.width="auto";e.height="auto";m.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>');
F()}},I=function(){var a=o[q],c,g,k,C,P,w;N();e=b.extend({},b.fn.fancybox.defaults,typeof b(a).data("fancybox")=="undefined"?e:b(a).data("fancybox"));w=e.onStart(o,q,e);if(w===false)h=false;else{if(typeof w=="object")e=b.extend(e,w);k=e.title||(a.nodeName?b(a).attr("title"):a.title)||"";if(a.nodeName&&!e.orig)e.orig=b(a).children("img:first").length?b(a).children("img:first"):b(a);if(k===""&&e.orig&&e.titleFromAlt)k=e.orig.attr("alt");c=e.href||(a.nodeName?b(a).attr("href"):a.href)||null;if(/^(?:javascript)/i.test(c)||
c=="#")c=null;if(e.type){g=e.type;if(!c)c=e.content}else if(e.content)g="html";else if(c)g=c.match(J)?"image":c.match(W)?"swf":b(a).hasClass("iframe")?"iframe":c.indexOf("#")===0?"inline":"ajax";if(g){if(g=="inline"){a=c.substr(c.indexOf("#"));g=b(a).length>0?"inline":"ajax"}e.type=g;e.href=c;e.title=k;if(e.autoDimensions)if(e.type=="html"||e.type=="inline"||e.type=="ajax"){e.width="auto";e.height="auto"}else e.autoDimensions=false;if(e.modal){e.overlayShow=true;e.hideOnOverlayClick=false;e.hideOnContentClick=
false;e.enableEscapeButton=false;e.showCloseButton=false}e.padding=parseInt(e.padding,10);e.margin=parseInt(e.margin,10);m.css("padding",e.padding+e.margin);b(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){b(this).replaceWith(j.children())});switch(g){case "html":m.html(e.content);F();break;case "inline":if(b(a).parent().is("#fancybox-content")===true){h=false;break}b('<div class="fancybox-inline-tmp" />').hide().insertBefore(b(a)).bind("fancybox-cleanup",function(){b(this).replaceWith(j.children())}).bind("fancybox-cancel",
function(){b(this).replaceWith(m.children())});b(a).appendTo(m);F();break;case "image":h=false;b.fancybox.showActivity();v=new Image;v.onerror=function(){O()};v.onload=function(){h=true;v.onerror=v.onload=null;e.width=v.width;e.height=v.height;b("<img />").attr({id:"fancybox-img",src:v.src,alt:e.title}).appendTo(m);Q()};v.src=c;break;case "swf":e.scrolling="no";C='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+e.width+'" height="'+e.height+'"><param name="movie" value="'+c+
'"></param>';P="";b.each(e.swf,function(x,H){C+='<param name="'+x+'" value="'+H+'"></param>';P+=" "+x+'="'+H+'"'});C+='<embed src="'+c+'" type="application/x-shockwave-flash" width="'+e.width+'" height="'+e.height+'"'+P+"></embed></object>";m.html(C);F();break;case "ajax":h=false;b.fancybox.showActivity();e.ajax.win=e.ajax.success;G=b.ajax(b.extend({},e.ajax,{url:c,data:e.ajax.data||{},error:function(x){x.status>0&&O()},success:function(x,H,R){if((typeof R=="object"?R:G).status==200){if(typeof e.ajax.win==
"function"){w=e.ajax.win(c,x,H,R);if(w===false){t.hide();return}else if(typeof w=="string"||typeof w=="object")x=w}m.html(x);F()}}}));break;case "iframe":Q()}}else O()}},F=function(){var a=e.width,c=e.height;a=a.toString().indexOf("%")>-1?parseInt((b(window).width()-e.margin*2)*parseFloat(a)/100,10)+"px":a=="auto"?"auto":a+"px";c=c.toString().indexOf("%")>-1?parseInt((b(window).height()-e.margin*2)*parseFloat(c)/100,10)+"px":c=="auto"?"auto":c+"px";m.wrapInner('<div style="width:'+a+";height:"+c+
";overflow: "+(e.scrolling=="auto"?"auto":e.scrolling=="yes"?"scroll":"hidden")+';position:relative;"></div>');e.width=m.width();e.height=m.height();Q()},Q=function(){var a,c;t.hide();if(f.is(":visible")&&false===d.onCleanup(l,p,d)){b.event.trigger("fancybox-cancel");h=false}else{h=true;b(j.add(u)).unbind();b(window).unbind("resize.fb scroll.fb");b(document).unbind("keydown.fb");f.is(":visible")&&d.titlePosition!=="outside"&&f.css("height",f.height());l=o;p=q;d=e;if(d.overlayShow){u.css({"background-color":d.overlayColor,
opacity:d.overlayOpacity,cursor:d.hideOnOverlayClick?"pointer":"auto",height:b(document).height()});if(!u.is(":visible")){M&&b("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"});u.show()}}else u.hide();i=X();s=d.title||"";y=0;n.empty().removeAttr("style").removeClass();if(d.titleShow!==false){if(b.isFunction(d.titleFormat))a=d.titleFormat(s,l,p,d);else a=s&&s.length?
d.titlePosition=="float"?'<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">'+s+'</td><td id="fancybox-title-float-right"></td></tr></table>':'<div id="fancybox-title-'+d.titlePosition+'">'+s+"</div>":false;s=a;if(!(!s||s==="")){n.addClass("fancybox-title-"+d.titlePosition).html(s).appendTo("body").show();switch(d.titlePosition){case "inside":n.css({width:i.width-d.padding*2,marginLeft:d.padding,marginRight:d.padding});
y=n.outerHeight(true);n.appendTo(D);i.height+=y;break;case "over":n.css({marginLeft:d.padding,width:i.width-d.padding*2,bottom:d.padding}).appendTo(D);break;case "float":n.css("left",parseInt((n.width()-i.width-40)/2,10)*-1).appendTo(f);break;default:n.css({width:i.width-d.padding*2,paddingLeft:d.padding,paddingRight:d.padding}).appendTo(f)}}}n.hide();if(f.is(":visible")){b(E.add(z).add(A)).hide();a=f.position();r={top:a.top,left:a.left,width:f.width(),height:f.height()};c=r.width==i.width&&r.height==
i.height;j.fadeTo(d.changeFade,0.3,function(){var g=function(){j.html(m.contents()).fadeTo(d.changeFade,1,S)};b.event.trigger("fancybox-change");j.empty().removeAttr("filter").css({"border-width":d.padding,width:i.width-d.padding*2,height:e.autoDimensions?"auto":i.height-y-d.padding*2});if(c)g();else{B.prop=0;b(B).animate({prop:1},{duration:d.changeSpeed,easing:d.easingChange,step:T,complete:g})}})}else{f.removeAttr("style");j.css("border-width",d.padding);if(d.transitionIn=="elastic"){r=V();j.html(m.contents());
f.show();if(d.opacity)i.opacity=0;B.prop=0;b(B).animate({prop:1},{duration:d.speedIn,easing:d.easingIn,step:T,complete:S})}else{d.titlePosition=="inside"&&y>0&&n.show();j.css({width:i.width-d.padding*2,height:e.autoDimensions?"auto":i.height-y-d.padding*2}).html(m.contents());f.css(i).fadeIn(d.transitionIn=="none"?0:d.speedIn,S)}}}},Y=function(){if(d.enableEscapeButton||d.enableKeyboardNav)b(document).bind("keydown.fb",function(a){if(a.keyCode==27&&d.enableEscapeButton){a.preventDefault();b.fancybox.close()}else if((a.keyCode==
37||a.keyCode==39)&&d.enableKeyboardNav&&a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&a.target.tagName!=="SELECT"){a.preventDefault();b.fancybox[a.keyCode==37?"prev":"next"]()}});if(d.showNavArrows){if(d.cyclic&&l.length>1||p!==0)z.show();if(d.cyclic&&l.length>1||p!=l.length-1)A.show()}else{z.hide();A.hide()}},S=function(){if(!b.support.opacity){j.get(0).style.removeAttribute("filter");f.get(0).style.removeAttribute("filter")}e.autoDimensions&&j.css("height","auto");f.css("height","auto");
s&&s.length&&n.show();d.showCloseButton&&E.show();Y();d.hideOnContentClick&&j.bind("click",b.fancybox.close);d.hideOnOverlayClick&&u.bind("click",b.fancybox.close);b(window).bind("resize.fb",b.fancybox.resize);d.centerOnScroll&&b(window).bind("scroll.fb",b.fancybox.center);if(d.type=="iframe")b('<iframe id="fancybox-frame" name="fancybox-frame'+(new Date).getTime()+'" frameborder="0" hspace="0" '+(b.browser.msie?'allowtransparency="true""':"")+' scrolling="'+e.scrolling+'" src="'+d.href+'"></iframe>').appendTo(j);
f.show();h=false;b.fancybox.center();d.onComplete(l,p,d);var a,c;if(l.length-1>p){a=l[p+1].href;if(typeof a!=="undefined"&&a.match(J)){c=new Image;c.src=a}}if(p>0){a=l[p-1].href;if(typeof a!=="undefined"&&a.match(J)){c=new Image;c.src=a}}},T=function(a){var c={width:parseInt(r.width+(i.width-r.width)*a,10),height:parseInt(r.height+(i.height-r.height)*a,10),top:parseInt(r.top+(i.top-r.top)*a,10),left:parseInt(r.left+(i.left-r.left)*a,10)};if(typeof i.opacity!=="undefined")c.opacity=a<0.5?0.5:a;f.css(c);
j.css({width:c.width-d.padding*2,height:c.height-y*a-d.padding*2})},U=function(){return[b(window).width()-d.margin*2,b(window).height()-d.margin*2,b(document).scrollLeft()+d.margin,b(document).scrollTop()+d.margin]},X=function(){var a=U(),c={},g=d.autoScale,k=d.padding*2;c.width=d.width.toString().indexOf("%")>-1?parseInt(a[0]*parseFloat(d.width)/100,10):d.width+k;c.height=d.height.toString().indexOf("%")>-1?parseInt(a[1]*parseFloat(d.height)/100,10):d.height+k;if(g&&(c.width>a[0]||c.height>a[1]))if(e.type==
"image"||e.type=="swf"){g=d.width/d.height;if(c.width>a[0]){c.width=a[0];c.height=parseInt((c.width-k)/g+k,10)}if(c.height>a[1]){c.height=a[1];c.width=parseInt((c.height-k)*g+k,10)}}else{c.width=Math.min(c.width,a[0]);c.height=Math.min(c.height,a[1])}c.top=parseInt(Math.max(a[3]-20,a[3]+(a[1]-c.height-40)*0.5),10);c.left=parseInt(Math.max(a[2]-20,a[2]+(a[0]-c.width-40)*0.5),10);return c},V=function(){var a=e.orig?b(e.orig):false,c={};if(a&&a.length){c=a.offset();c.top+=parseInt(a.css("paddingTop"),
10)||0;c.left+=parseInt(a.css("paddingLeft"),10)||0;c.top+=parseInt(a.css("border-top-width"),10)||0;c.left+=parseInt(a.css("border-left-width"),10)||0;c.width=a.width();c.height=a.height();c={width:c.width+d.padding*2,height:c.height+d.padding*2,top:c.top-d.padding-20,left:c.left-d.padding-20}}else{a=U();c={width:d.padding*2,height:d.padding*2,top:parseInt(a[3]+a[1]*0.5,10),left:parseInt(a[2]+a[0]*0.5,10)}}return c},Z=function(){if(t.is(":visible")){b("div",t).css("top",L*-40+"px");L=(L+1)%12}else clearInterval(K)};
b.fn.fancybox=function(a){if(!b(this).length)return this;b(this).data("fancybox",b.extend({},a,b.metadata?b(this).metadata():{})).unbind("click.fb").bind("click.fb",function(c){c.preventDefault();if(!h){h=true;b(this).blur();o=[];q=0;c=b(this).attr("rel")||"";if(!c||c==""||c==="nofollow")o.push(this);else{o=b("a[rel="+c+"], area[rel="+c+"]");q=o.index(this)}I()}});return this};b.fancybox=function(a,c){var g;if(!h){h=true;g=typeof c!=="undefined"?c:{};o=[];q=parseInt(g.index,10)||0;if(b.isArray(a)){for(var k=
0,C=a.length;k<C;k++)if(typeof a[k]=="object")b(a[k]).data("fancybox",b.extend({},g,a[k]));else a[k]=b({}).data("fancybox",b.extend({content:a[k]},g));o=jQuery.merge(o,a)}else{if(typeof a=="object")b(a).data("fancybox",b.extend({},g,a));else a=b({}).data("fancybox",b.extend({content:a},g));o.push(a)}if(q>o.length||q<0)q=0;I()}};b.fancybox.showActivity=function(){clearInterval(K);t.show();K=setInterval(Z,66)};b.fancybox.hideActivity=function(){t.hide()};b.fancybox.next=function(){return b.fancybox.pos(p+
1)};b.fancybox.prev=function(){return b.fancybox.pos(p-1)};b.fancybox.pos=function(a){if(!h){a=parseInt(a);o=l;if(a>-1&&a<l.length){q=a;I()}else if(d.cyclic&&l.length>1){q=a>=l.length?0:l.length-1;I()}}};b.fancybox.cancel=function(){if(!h){h=true;b.event.trigger("fancybox-cancel");N();e.onCancel(o,q,e);h=false}};b.fancybox.close=function(){function a(){u.fadeOut("fast");n.empty().hide();f.hide();b.event.trigger("fancybox-cleanup");j.empty();d.onClosed(l,p,d);l=e=[];p=q=0;d=e={};h=false}if(!(h||f.is(":hidden"))){h=
true;if(d&&false===d.onCleanup(l,p,d))h=false;else{N();b(E.add(z).add(A)).hide();b(j.add(u)).unbind();b(window).unbind("resize.fb scroll.fb");b(document).unbind("keydown.fb");j.find("iframe").attr("src",M&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank");d.titlePosition!=="inside"&&n.empty();f.stop();if(d.transitionOut=="elastic"){r=V();var c=f.position();i={top:c.top,left:c.left,width:f.width(),height:f.height()};if(d.opacity)i.opacity=1;n.empty().hide();B.prop=1;
b(B).animate({prop:0},{duration:d.speedOut,easing:d.easingOut,step:T,complete:a})}else f.fadeOut(d.transitionOut=="none"?0:d.speedOut,a)}}};b.fancybox.resize=function(){u.is(":visible")&&u.css("height",b(document).height());b.fancybox.center(true)};b.fancybox.center=function(a){var c,g;if(!h){g=a===true?1:0;c=U();!g&&(f.width()>c[0]||f.height()>c[1])||f.stop().animate({top:parseInt(Math.max(c[3]-20,c[3]+(c[1]-j.height()-40)*0.5-d.padding)),left:parseInt(Math.max(c[2]-20,c[2]+(c[0]-j.width()-40)*0.5-
d.padding))},typeof a=="number"?a:200)}};b.fancybox.init=function(){if(!b("#fancybox-wrap").length){b("body").append(m=b('<div id="fancybox-tmp"></div>'),t=b('<div id="fancybox-loading"><div></div></div>'),u=b('<div id="fancybox-overlay"></div>'),f=b('<div id="fancybox-wrap"></div>'));D=b('<div id="fancybox-outer"></div>').append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>').appendTo(f);
D.append(j=b('<div id="fancybox-content"></div>'),E=b('<a id="fancybox-close"></a>'),n=b('<div id="fancybox-title"></div>'),z=b('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),A=b('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>'));E.click(b.fancybox.close);t.click(b.fancybox.cancel);z.click(function(a){a.preventDefault();b.fancybox.prev()});A.click(function(a){a.preventDefault();b.fancybox.next()});
b.fn.mousewheel&&f.bind("mousewheel.fb",function(a,c){if(h)a.preventDefault();else if(b(a.target).get(0).clientHeight==0||b(a.target).get(0).scrollHeight===b(a.target).get(0).clientHeight){a.preventDefault();b.fancybox[c>0?"prev":"next"]()}});b.support.opacity||f.addClass("fancybox-ie");if(M){t.addClass("fancybox-ie6");f.addClass("fancybox-ie6");b('<iframe id="fancybox-hide-sel-frame" src="'+(/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank")+'" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(D)}}};
b.fn.fancybox.defaults={padding:10,margin:40,opacity:false,modal:false,cyclic:false,scrolling:"auto",width:560,height:340,autoScale:true,autoDimensions:true,centerOnScroll:false,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:true,hideOnContentClick:false,overlayShow:true,overlayOpacity:0.7,overlayColor:"#777",titleShow:true,titlePosition:"float",titleFormat:null,titleFromAlt:false,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",
easingOut:"swing",showCloseButton:true,showNavArrows:true,enableEscapeButton:true,enableKeyboardNav:true,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}};b(document).ready(function(){b.fancybox.init()})})(jQuery);
/*
 * 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
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('h.i[\'1a\']=h.i[\'z\'];h.O(h.i,{y:\'D\',z:9(x,t,b,c,d){6 h.i[h.i.y](x,t,b,c,d)},17:9(x,t,b,c,d){6 c*(t/=d)*t+b},D:9(x,t,b,c,d){6-c*(t/=d)*(t-2)+b},13:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t+b;6-c/2*((--t)*(t-2)-1)+b},X:9(x,t,b,c,d){6 c*(t/=d)*t*t+b},U:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t+1)+b},R:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t+b;6 c/2*((t-=2)*t*t+2)+b},N:9(x,t,b,c,d){6 c*(t/=d)*t*t*t+b},M:9(x,t,b,c,d){6-c*((t=t/d-1)*t*t*t-1)+b},L:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t+b;6-c/2*((t-=2)*t*t*t-2)+b},K:9(x,t,b,c,d){6 c*(t/=d)*t*t*t*t+b},J:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t*t*t+1)+b},I:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t*t+b;6 c/2*((t-=2)*t*t*t*t+2)+b},G:9(x,t,b,c,d){6-c*8.C(t/d*(8.g/2))+c+b},15:9(x,t,b,c,d){6 c*8.n(t/d*(8.g/2))+b},12:9(x,t,b,c,d){6-c/2*(8.C(8.g*t/d)-1)+b},Z:9(x,t,b,c,d){6(t==0)?b:c*8.j(2,10*(t/d-1))+b},Y:9(x,t,b,c,d){6(t==d)?b+c:c*(-8.j(2,-10*t/d)+1)+b},W:9(x,t,b,c,d){e(t==0)6 b;e(t==d)6 b+c;e((t/=d/2)<1)6 c/2*8.j(2,10*(t-1))+b;6 c/2*(-8.j(2,-10*--t)+2)+b},V:9(x,t,b,c,d){6-c*(8.o(1-(t/=d)*t)-1)+b},S:9(x,t,b,c,d){6 c*8.o(1-(t=t/d-1)*t)+b},Q:9(x,t,b,c,d){e((t/=d/2)<1)6-c/2*(8.o(1-t*t)-1)+b;6 c/2*(8.o(1-(t-=2)*t)+1)+b},P:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6-(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b},H:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6 a*8.j(2,-10*t)*8.n((t*d-s)*(2*8.g)/p)+c+b},T:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d/2)==2)6 b+c;e(!p)p=d*(.3*1.5);e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);e(t<1)6-.5*(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b;6 a*8.j(2,-10*(t-=1))*8.n((t*d-s)*(2*8.g)/p)*.5+c+b},F:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*(t/=d)*t*((s+1)*t-s)+b},E:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},16:9(x,t,b,c,d,s){e(s==u)s=1.l;e((t/=d/2)<1)6 c/2*(t*t*(((s*=(1.B))+1)*t-s))+b;6 c/2*((t-=2)*t*(((s*=(1.B))+1)*t+s)+2)+b},A:9(x,t,b,c,d){6 c-h.i.v(x,d-t,0,c,d)+b},v:9(x,t,b,c,d){e((t/=d)<(1/2.k)){6 c*(7.q*t*t)+b}m e(t<(2/2.k)){6 c*(7.q*(t-=(1.5/2.k))*t+.k)+b}m e(t<(2.5/2.k)){6 c*(7.q*(t-=(2.14/2.k))*t+.11)+b}m{6 c*(7.q*(t-=(2.18/2.k))*t+.19)+b}},1b:9(x,t,b,c,d){e(t<d/2)6 h.i.A(x,t*2,0,c,d)*.5+b;6 h.i.v(x,t*2-d,0,c,d)*.5+c*.5+b}});',62,74,'||||||return||Math|function|||||if|var|PI|jQuery|easing|pow|75|70158|else|sin|sqrt||5625|asin|||undefined|easeOutBounce|abs||def|swing|easeInBounce|525|cos|easeOutQuad|easeOutBack|easeInBack|easeInSine|easeOutElastic|easeInOutQuint|easeOutQuint|easeInQuint|easeInOutQuart|easeOutQuart|easeInQuart|extend|easeInElastic|easeInOutCirc|easeInOutCubic|easeOutCirc|easeInOutElastic|easeOutCubic|easeInCirc|easeInOutExpo|easeInCubic|easeOutExpo|easeInExpo||9375|easeInOutSine|easeInOutQuad|25|easeOutSine|easeInOutBack|easeInQuad|625|984375|jswing|easeInOutBounce'.split('|'),0,{}))

/*
 *
 * TERMS OF USE - EASING EQUATIONS
 * 
 * Open source under the BSD License. 
 * 
 * Copyright © 2001 Robert Penner
 * 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. 
 *
 */
