www.gusucode.com > 200套html5精品模板76_100 > 079/js/zjquery.plugins.js

    /* Jquery plugins required for this template 
@ file version: 1.0
@last edit: 09.09.2012, 4:04 PM
-------------------------------------------*/

/*! Tinynav  
 -- Responsive menu
 ------------------------------------------*/
/*! http://tinynav.viljamis.com v1.03 by @viljamis */
(function(a,i,g){a.fn.tinyNav=function(j){var c=a.extend({active:"selected",header:!1},j);return this.each(function(){g++;var h=a(this),d="tinynav"+g,e=".l_"+d,b=a("<select/>").addClass("tinynav "+d);if(h.is("ul,ol")){c.header&&b.append(a("<option/>").text("Navigation"));var f="";h.addClass("l_"+d).find("a").each(function(){f+='<option value="'+a(this).attr("href")+'">'+a(this).text()+"</option>"});b.append(f);c.header||b.find(":eq("+a(e+" li").index(a(e+" li."+c.active))+")").attr("selected",!0);
b.change(function(){i.location.href=a(this).val()});a(e).after(b)}})}})(jQuery,this,0);


/*! FitVids 1.0  
* Responsive media
*
* Copyright 2011, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
* Released under the WTFPL license - http://sam.zoy.org/wtfpl/
*
* Date: Thu Sept 01 18:00:00 2011 -0500
 ------------------------------------------*/

(function( $ ){

  $.fn.fitVids = function( options ) {
    var settings = {
      customSelector: null
    }
    
    var div = document.createElement('div'),
        ref = document.getElementsByTagName('base')[0] || document.getElementsByTagName('script')[0];
        
  	div.className = 'fit-vids-style';
    div.innerHTML = '&shy;<style>         \
      .fluid-width-video-wrapper {        \
         width: 100%;                     \
         position: relative;              \
         padding: 0;                      \
      }                                   \
                                          \
      .fluid-width-video-wrapper iframe,  \
      .fluid-width-video-wrapper object,  \
      .fluid-width-video-wrapper embed {  \
         position: absolute;              \
         top: 0;                          \
         left: 0;                         \
         width: 100%;                     \
         height: 100%;                    \
      }                                   \
    </style>';
                      
    ref.parentNode.insertBefore(div,ref);
    
    if ( options ) { 
      $.extend( settings, options );
    }
    
    return this.each(function(){
      var selectors = [
        "iframe[src*='player.vimeo.com']", 
        "iframe[src*='www.youtube.com']",  
        "iframe[src*='www.kickstarter.com']", 
        "object", 
        "embed"
      ];
      
      if (settings.customSelector) {
        selectors.push(settings.customSelector);
      }
      
      var $allVideos = $(this).find(selectors.join(','));

      $allVideos.each(function(){
        var $this = $(this);
        if (this.tagName.toLowerCase() == 'embed' && $this.parent('object').length || $this.parent('.fluid-width-video-wrapper').length) { return; } 
        var height = this.tagName.toLowerCase() == 'object' ? $this.attr('height') : $this.height(),
            aspectRatio = height / $this.width();
		if(!$this.attr('id')){
			var videoID = 'fitvid' + Math.floor(Math.random()*999999);
			$this.attr('id', videoID);
		}
        $this.wrap('<div class="fluid-width-video-wrapper"></div>').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+"%");
        $this.removeAttr('height').removeAttr('width');
      });
    });
  
  }
})( 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
jQuery.easing["jswing"]=jQuery.easing["swing"];jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b+c;return-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b*b+c;return d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b*b*b+c;return-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b*b*b*b+c;return d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){if(b==0)return c;if(b==e)return c+d;if((b/=e/2)<1)return d/2*Math.pow(2,10*(b-1))+c;return d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){if((b/=e/2)<1)return-d/2*(Math.sqrt(1-b*b)-1)+c;return d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){var f=1.70158;var g=0;var h=d;if(b==0)return c;if((b/=e)==1)return c+d;if(!g)g=e*.3;if(h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return-(h*Math.pow(2,10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g))+c},easeOutElastic:function(a,b,c,d,e){var f=1.70158;var g=0;var h=d;if(b==0)return c;if((b/=e)==1)return c+d;if(!g)g=e*.3;if(h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return h*Math.pow(2,-10*b)*Math.sin((b*e-f)*2*Math.PI/g)+d+c},easeInOutElastic:function(a,b,c,d,e){var f=1.70158;var g=0;var h=d;if(b==0)return c;if((b/=e/2)==2)return c+d;if(!g)g=e*.3*1.5;if(h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);if(b<1)return-.5*h*Math.pow(2,10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g)+c;return h*Math.pow(2,-10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g)*.5+d+c},easeInBack:function(a,b,c,d,e,f){if(f==undefined)f=1.70158;return d*(b/=e)*b*((f+1)*b-f)+c},easeOutBack:function(a,b,c,d,e,f){if(f==undefined)f=1.70158;return d*((b=b/e-1)*b*((f+1)*b+f)+1)+c},easeInOutBack:function(a,b,c,d,e,f){if(f==undefined)f=1.70158;if((b/=e/2)<1)return d/2*b*b*(((f*=1.525)+1)*b-f)+c;return d/2*((b-=2)*b*(((f*=1.525)+1)*b+f)+2)+c},easeInBounce:function(a,b,c,d,e){return d-jQuery.easing.easeOutBounce(a,e-b,0,d,e)+c},easeOutBounce:function(a,b,c,d,e){if((b/=e)<1/2.75){return d*7.5625*b*b+c}else if(b<2/2.75){return d*(7.5625*(b-=1.5/2.75)*b+.75)+c}else if(b<2.5/2.75){return d*(7.5625*(b-=2.25/2.75)*b+.9375)+c}else{return d*(7.5625*(b-=2.625/2.75)*b+.984375)+c}},easeInOutBounce:function(a,b,c,d,e){if(b<e/2)return jQuery.easing.easeInBounce(a,b*2,0,d,e)*.5+c;return jQuery.easing.easeOutBounce(a,b*2-e,0,d,e)*.5+d*.5+c}});
 

/**
 * jQuery Masonry v2.1.05
 * A dynamic layout plugin for jQuery
 * The flip-side of CSS Floats
 * http://masonry.desandro.com
 *
 * Licensed under the MIT license.
 * Copyright 2012 David DeSandro
 ------------------------------------------*/
(function(a,b,c){"use strict";var d=b.event,e;d.special.smartresize={setup:function(){b(this).bind("resize",d.special.smartresize.handler)},teardown:function(){b(this).unbind("resize",d.special.smartresize.handler)},handler:function(a,c){var d=this,f=arguments;a.type="smartresize",e&&clearTimeout(e),e=setTimeout(function(){b.event.handle.apply(d,f)},c==="execAsap"?0:100)}},b.fn.smartresize=function(a){return a?this.bind("smartresize",a):this.trigger("smartresize",["execAsap"])},b.Mason=function(a,c){this.element=b(c),this._create(a),this._init()},b.Mason.settings={isResizable:!0,isAnimated:!1,animationOptions:{queue:!1,duration:500},gutterWidth:0,isRTL:!1,isFitWidth:!1,containerStyle:{position:"relative"}},b.Mason.prototype={_filterFindBricks:function(a){var b=this.options.itemSelector;return b?a.filter(b).add(a.find(b)):a},_getBricks:function(a){var b=this._filterFindBricks(a).css({position:"absolute"}).addClass("masonry-brick");return b},_create:function(c){this.options=b.extend(!0,{},b.Mason.settings,c),this.styleQueue=[];var d=this.element[0].style;this.originalStyle={height:d.height||""};var e=this.options.containerStyle;for(var f in e)this.originalStyle[f]=d[f]||"";this.element.css(e),this.horizontalDirection=this.options.isRTL?"right":"left",this.offset={x:parseInt(this.element.css("padding-"+this.horizontalDirection),10),y:parseInt(this.element.css("padding-top"),10)},this.isFluid=this.options.columnWidth&&typeof this.options.columnWidth=="function";var g=this;setTimeout(function(){g.element.addClass("masonry")},0),this.options.isResizable&&b(a).bind("smartresize.masonry",function(){g.resize()}),this.reloadItems()},_init:function(a){this._getColumns(),this._reLayout(a)},option:function(a,c){b.isPlainObject(a)&&(this.options=b.extend(!0,this.options,a))},layout:function(a,b){for(var c=0,d=a.length;c<d;c++)this._placeBrick(a[c]);var e={};e.height=Math.max.apply(Math,this.colYs);if(this.options.isFitWidth){var f=0;c=this.cols;while(--c){if(this.colYs[c]!==0)break;f++}e.width=(this.cols-f)*this.columnWidth-this.options.gutterWidth}this.styleQueue.push({$el:this.element,style:e});var g=this.isLaidOut?this.options.isAnimated?"animate":"css":"css",h=this.options.animationOptions,i;for(c=0,d=this.styleQueue.length;c<d;c++)i=this.styleQueue[c],i.$el[g](i.style,h);this.styleQueue=[],b&&b.call(a),this.isLaidOut=!0},_getColumns:function(){var a=this.options.isFitWidth?this.element.parent():this.element,b=a.width();this.columnWidth=this.isFluid?this.options.columnWidth(b):this.options.columnWidth||this.$bricks.outerWidth(!0)||b,this.columnWidth+=this.options.gutterWidth,this.cols=Math.floor((b+this.options.gutterWidth)/this.columnWidth),this.cols=Math.max(this.cols,1)},_placeBrick:function(a){var c=b(a),d,e,f,g,h;d=Math.ceil(c.outerWidth(!0)/this.columnWidth),d=Math.min(d,this.cols);if(d===1)f=this.colYs;else{e=this.cols+1-d,f=[];for(h=0;h<e;h++)g=this.colYs.slice(h,h+d),f[h]=Math.max.apply(Math,g)}var i=Math.min.apply(Math,f),j=0;for(var k=0,l=f.length;k<l;k++)if(f[k]===i){j=k;break}var m={top:i+this.offset.y};m[this.horizontalDirection]=this.columnWidth*j+this.offset.x,this.styleQueue.push({$el:c,style:m});var n=i+c.outerHeight(!0),o=this.cols+1-l;for(k=0;k<o;k++)this.colYs[j+k]=n},resize:function(){var a=this.cols;this._getColumns(),(this.isFluid||this.cols!==a)&&this._reLayout()},_reLayout:function(a){var b=this.cols;this.colYs=[];while(b--)this.colYs.push(0);this.layout(this.$bricks,a)},reloadItems:function(){this.$bricks=this._getBricks(this.element.children())},reload:function(a){this.reloadItems(),this._init(a)},appended:function(a,b,c){if(b){this._filterFindBricks(a).css({top:this.element.height()});var d=this;setTimeout(function(){d._appended(a,c)},1)}else this._appended(a,c)},_appended:function(a,b){var c=this._getBricks(a);this.$bricks=this.$bricks.add(c),this.layout(c,b)},remove:function(a){this.$bricks=this.$bricks.not(a),a.remove()},destroy:function(){this.$bricks.removeClass("masonry-brick").each(function(){this.style.position="",this.style.top="",this.style.left=""});var c=this.element[0].style;for(var d in this.originalStyle)c[d]=this.originalStyle[d];this.element.unbind(".masonry").removeClass("masonry").removeData("masonry"),b(a).unbind(".masonry")}},b.fn.imagesLoaded=function(a){function h(){a.call(c,d)}function i(a){var c=a.target;c.src!==f&&b.inArray(c,g)===-1&&(g.push(c),--e<=0&&(setTimeout(h),d.unbind(".imagesLoaded",i)))}var c=this,d=c.find("img").add(c.filter("img")),e=d.length,f="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",g=[];return e||h(),d.bind("load.imagesLoaded error.imagesLoaded",i).each(function(){var a=this.src;this.src=f,this.src=a}),c};var f=function(b){a.console&&a.console.error(b)};b.fn.masonry=function(a){if(typeof a=="string"){var c=Array.prototype.slice.call(arguments,1);this.each(function(){var d=b.data(this,"masonry");if(!d){f("cannot call methods on masonry prior to initialization; attempted to call method '"+a+"'");return}if(!b.isFunction(d[a])||a.charAt(0)==="_"){f("no such method '"+a+"' for masonry instance");return}d[a].apply(d,c)})}else this.each(function(){var c=b.data(this,"masonry");c?(c.option(a||{}),c._init()):b.data(this,"masonry",new b.Mason(a,this))});return this}})(window,jQuery);


/*!
 * jQuery Lightbox Evolution - for jQuery 1.3+
 * http://codecanyon.net/item/jquery-lightbox-evolution/115655?ref=aeroalquimia
 *
 * Copyright (c) 2010, Eduardo Daniel Sada
 * Released under CodeCanyon Regular License.
 * http://codecanyon.net/licenses/regular_extended
 *
 * Version: 1.6.4 (May 20 2012)
 *
 * Includes jQuery Easing v1.3
 * http://gsgd.co.uk/sandbox/jquery/easing/
 * Copyright (c) 2008, George McGinley Smith
 * Released under BSD License.
 --------------------------------------------------*/
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}('(E($){F r=(1w&&1w.3J)?1w.3J.36():"";F u=($.1N.2G&&1O($.1N.2H,10)<7&&1O($.1N.2H,10)>4);F v=N;A(r.1x("4N")>-1){A(r.1x("4O")>-1||r.1x("4P")>-1||r.1x("4Q")>-1){v=I}};A(r.1x("4R")>-1){A(r.1x("4S")>-1&&r.1x("4T")>-1){v=I}};A(r.1x("4U")>-1){v=I};A(r.1x("4V 4W 4X 7")>-1){v=I};A($.J===2e){$.1m({J:E(a,b){A(a){J=E(){R a.2p(b||8,4Y)}};R J}})};$.1m($.2I.4Z,{51:E(){A(8.G.2J){8.G.2J.52(8.53,8.54,8)}(2f.2I.2J[8.55]||2f.2I.2J.56)(8)}});$.1m($.1P,{2q:E(x,t,b,c,d,s){A(s==2e)s=1.57;R c*((t=t/d-1)*t*((s+1)*t+s)+1)+b}});$.1m({2r:{3K:{T:\'38-1b\',1j:{1n:58,C:59,D:5a},1Q:N,1r:{1y:0.6},2g:{W:{1F:2K,1P:"2q"},1f:{1F:5b,1P:"2q"},Q:{1F:5c,1P:"2q"},3a:{1F:2h,1P:"2q",3L:10,3M:2}},1z:{C:3N,D:3O},18:{C:3N,D:3O},3b:"1g",1A:{1G:"5d",5e:N,5f:"15"}},G:{},23:{},X:{},16:{},B:{1b:[],K:{1f:[],2L:[],1e:[],2M:[]},Z:[],16:[],1s:[],15:[]},1c:N,1H:N,1R:"16",3P:{1S:{13:/[^\\.]\\.(1S)\\s*$/i},2N:{13:/2N\\.O\\/3Q/i,S:\'=\',11:1,18:1,12:"19://1B.2N.O/24/%Y%?1C=1&L;3R=1&L;2i=0&L;3S=1"},3T:{13:/3T\\.3U\\//i,S:\'/\',11:3,18:1,12:"19://1B.2N.O/24/%Y%?1C=1&L;3R=1&L;2i=0&L;3S=1"},3c:{13:/3c\\.O\\/3Q/i,S:\'/\',11:4,12:"19://1B.3c.O/5g/%Y%/.1S?5h=5i=5j"},3d:{13:/3d\\.O\\/1I/i,S:\'/\',11:4,12:"19://1B.3d.O/1S/1I/%Y%?5k=0&L;5l=1"},1D:{13:/1D\\.O\\/5m/i,S:\'=\',11:1,12:"19://1I.1D.O/5n.1S?1C=1&L;5o=5p&L;5q=%Y%"},3e:{13:/3e\\.O/i,S:\'/\',11:3,18:1,12:"19://3f.3e.O/1I/%Y%?5r=1&L;1C=1&L;5s=1&L;5t=1&L;5u=0&L;5v=&L;3g=1"},3h:{13:/3h.O/i,S:\'/\',11:5,12:"19://1B.3h.O/5w.5x?5y=%Y%"},5z:{13:/2s.O\\/1I\\//i,S:\'1I/\',11:1,12:"19://1B.2s.O/2O/2O.5A.1S?2P=I&L;3g=1&L;5B=I&L;3V=%Y%"},2s:{13:/2s.O\\/1I:/i,S:\'1I:\',11:1,12:"19://1B.2s.O/2O/2O.1S?1C=I&L;3g=1&L;3V=%Y%"},3i:{13:/3i.3W/i,S:\'/\',11:4,12:"19://1B.3i.3W/1z/1I/%Y%?5C=%2F&L;1C=I&L;5D=%Y%&L;5E=I&L;5F=0.5G&L;5H=0.5I&L;5J=5K"},3j:{13:/3j.O/i,S:\'/\',11:3,12:"19://1B.3j.O/3f/%Y%"},3X:{13:/v.3X.O/i,S:\'/\',11:3,12:"19://5L.5M.O/3f.1S?5N=%Y%&L;v=1.5O"},3k:{13:/3k.O\\/5P/i,S:\'/\',11:4,12:"19://5Q.3k.O/%Y%.5R?1C=I&L;1T=1U"}},3Y:{3l:{13:/3l.O\\/1t/i,S:\'?\',11:1,12:"19://1B.3l.O/1t/24/?5S=5T-5U-5V-5W-5X&L;w=%C%&L;h=%D%&L;%Y%"},5Y:{13:/1t.1D.O(.*)5Z=c/i,S:\'?\',11:1,12:"19://1t.1D.O/?3m=60&L;%Y%"},61:{13:/1t.1D.O\\/1t\\/3Z/i,S:\'?\',11:1,12:"19://1t.1D.O/1t/3Z?3m=24&L;%Y%"},1D:{13:/1t.1D.O/i,S:\'?\',11:1,12:"19://1t.1D.O/1t?%Y%&L;3m=24"}},41:/\\.(62|63|64|65|66|67)(.*)?$/i,1r:{2Q:E(a){8.G=a;8.U=$(\'<H Y="\'+2t 3n().3o()+\'" V="\'+8.G.T+\'-1r"></H>\');8.U.P($.1m({},{\'1V\':\'68\',\'1g\':0,\'1a\':0,\'1y\':0,\'1J\':\'1U\',\'z-11\':8.G.1n},8.G.1j));8.U.1u($.J(E(e){A(!8.G.1Q){A($.25(8.G.1W)){8.G.1W()}M{8.1E()}}e.2u()},8));8.2v=I;8.42();R 8},42:E(){8.2R=$(2S.3p);8.2R.26(8.U);A(u){8.U.P(\'1V\',\'2T\');F a=1O(8.U.P(\'1n\'));A(!a){a=1;F b=8.U.P(\'1V\');A(b==\'69\'||!b){8.U.P(\'1V\',\'6a\')}8.U.P(\'1n\',a)}a=(!!(8.G.1n||8.G.1n===0)&&a>8.G.1n)?8.G.1n:a-1;A(a<0){a=1}8.1o=$(\'<18 Y="43\'+2t 3n().3o()+\'" 6b="6c" 44=0 2w=""></18>\');8.1o.P({1n:a,1V:\'2T\',1g:0,1a:0,1T:\'1U\',C:0,D:0,1y:0});8.1o.6d(8.U);$(\'15, 3p\').P({\'D\':\'2h%\',\'C\':\'2h%\',\'2x-1a\':0,\'2x-2j\':0})}},1h:E(x,y){8.U.P({\'D\':0,\'C\':0});A(8.1o){8.1o.P({\'D\':0,\'C\':0})};F a={x:$(2S).C(),y:$(2S).D()};8.U.P({\'C\':\'2h%\',\'D\':y?y:a.y});A(8.1o){8.1o.P({\'D\':0,\'C\':0});8.1o.P({\'1V\':\'2T\',\'1a\':0,\'1g\':0,\'C\':8.U.C(),\'D\':y?y:a.y})}R 8},W:E(a){A(!8.2v){R 8};A(8.28){8.28.1X()};A(8.1o){8.1o.P(\'1J\',\'3q\')};8.U.P({\'1J\':\'3q\',\'1y\':0});8.2R.1k(\'1h\',$.J(8.1h,8));8.1h();8.2v=N;8.28=8.U.45(8.G.46,8.G.1j.1y,$.J(E(){A(8.G.1j.1y){8.U.P(8.G.1j)};8.U.2U(\'W\');A($.25(a)){a()}},8));R 8},1E:E(a){A(8.2v){R 8};A(8.28){8.28.1X()};A(8.1o){8.1o.P(\'1J\',\'1U\')};8.2R.29(\'1h\');8.2v=I;8.28=8.U.45(8.G.47,0,$.J(E(){8.U.2U(\'1E\');A($.25(a)){a()};8.U.P({\'D\':0,\'C\':0,\'1J\':\'1U\'})},8));R 8}},2Q:E(a){8.G=$.1m(I,8.3K,a);F b=8.G.T;F c=$(\'<H V="\'+b+\' \'+b+\'-1R-16"><H V="\'+b+\'-1T-1g-1a"></H><H V="\'+b+\'-1T-1g-48"></H><H V="\'+b+\'-1T-1g-2j"></H><a V="\'+b+\'-1d-1f" 1l="#1f"><1p>6e</1p></a><H V="\'+b+\'-1w"><a V="\'+b+\'-1d-1a" 1l="#"><1p>49</1p></a><a V="\'+b+\'-1d-2j" 1l="#"><1p>4a</1p></a></H><H V="\'+b+\'-K"><H V="\'+b+\'-K-6f"></H><a V="\'+b+\'-1d-1a" 1l="#"><1p>49</1p></a><a V="\'+b+\'-1d-1e" 1l="#"><1p>6g</1p></a><H V="\'+b+\'-K-1Y"></H><a V="\'+b+\'-1d-2j" 1l="#"><1p>4a</1p></a><H V="\'+b+\'-K-3r"></H></H><H V="\'+b+\'-Z"></H><H V="\'+b+\'-15"></H><H V="\'+b+\'-1T-2V-1a"></H><H V="\'+b+\'-1T-2V-48"></H><H V="\'+b+\'-1T-2V-2j"></H></H>\');F e=8.B;8.1r.2Q({T:b,1j:8.G.1r,1Q:8.G.1Q,1n:8.G.1j.1n-1,1W:8.J(8.1f),46:(v?2:8.G.2g.W.1F),47:(v?2:8.G.2g.1f.1F)});e.1b=c;e.1w=$(\'.\'+b+\'-1w\',c);e.K.H=$(\'.\'+b+\'-K\',c);e.K.1f=$(\'.\'+b+\'-1d-1f\',c);e.K.2L=$(\'.\'+b+\'-1d-1a\',c);e.K.1e=$(\'.\'+b+\'-1d-1e\',c);e.K.2M=$(\'.\'+b+\'-1d-2j\',c);e.K.1Y=$(\'.\'+b+\'-K-1Y\',c);e.Z=$(\'.\'+b+\'-Z\',c);e.15=$(\'.\'+b+\'-15\',c);e.Q=$(\'<H V="\'+b+\'-Q"></H>\').P({\'1V\':\'2T\',\'z-11\':8.G.1j.1n,\'1g\':-6h}).26(c);$(\'3p\').26(e.Q);8.1i=$(6i);8.4b();R c},4b:E(){F a=8.1i;a[0].6j=E(){a.2U(\'1h\')};a.1k(\'1h\',8.J(E(){A(8.1c){8.1r.1h();A(!8.1H){8.2a()}}}));a.1k(\'6k\',8.J(E(){A(8.1c&&!8.1H){8.2a()}}));$(2S).1k(\'6l\',8.J(E(e){A(8.1c){A(e.3s==27&&8.G.1Q==N){8.1f()}A(8.X.2y>1){A(e.3s==37){8.B.K.2L.2W(\'1u\',e)}A(e.3s==39){8.B.K.2M.2W(\'1u\',e)}}}}));8.B.K.1f.1k(\'1u 2X\',{"1K":"1f"},8.J(8.1K));8.B.K.1e.1k(\'1u 2X\',{"1K":"4c"},8.J(8.1K));8.1r.U.1k(\'W\',8.J(E(){$(8).2W(\'W\')}));8.1r.U.1k(\'1E\',8.J(E(){$(8).2W(\'1f\')}))},1K:E(e){8[e.6m.1K].2p(8);e.2u()},J:E(a){R $.J(a,8)},4d:E(d,f,g){F h={1G:"",C:"",D:"",1l:""};$.1Z(d,8.J(E(b,c){$.1Z(c,8.J(E(i,e){A((b=="1z"&&f.S(\'?\')[0].2b(e.13))||(b=="18"&&f.2b(e.13))){h.1l=f;A(e.S){F a=b=="1z"?f.S(e.S)[e.11].S(\'?\')[0].S(\'&\')[0]:f.S(e.S)[e.11];h.1l=e.12.2z("%Y%",a).2z("%C%",g.C).2z("%D%",g.D)}h.1G=e.18?"18":b;h.C=g.C||8.G[h.1G].C;h.D=g.D||8.G[h.1G].D;R N}}));A(!!h.1G)R N}));R h},4e:E(a){F b=8.B.K.2L;F c=8.B.K.2M;A($.2Y(a)&&a.2k>1){8.X.3t=a;8.X.1q=0;8.X.2y=a.2k;a=a[0];b.29(\'1u\');c.29(\'1u\');b.1k(\'1u 2X\',8.J(E(e){A(8.X.1q-1<0){8.X.1q=8.X.2y-1}M{8.X.1q=8.X.1q-1}8.W(8.X.3t[8.X.1q]);e.2u()}));c.1k(\'1u 2X\',8.J(E(e){A(8.X.1q+1>=8.X.2y){8.X.1q=0}M{8.X.1q=8.X.1q+1}8.W(8.X.3t[8.X.1q]);e.2u()}))}A(8.X.2y>1){A(8.B.1w.P("1J")=="1U"){8.B.K.H.W()}b.W();c.W()}M{b.1E();c.1E()}},4f:E(d,f){$.1Z(d,8.J(E(i,b){F c=$(\'<a 1l="#" V="\'+b[\'V\']+\'">\'+b[\'15\']+\'</a>\');c.1k(\'1u\',8.J(E(e){A($.25(b.1W)){f=2A f==="2e"?N:f[8.X.1q||0];b.1W(8.B.16.2w,8,f)}e.2u()}));8.B.K.1Y.26(a)}));8.B.K.H.W()},W:E(d,f,g,h){F i=\'\';F j=N;A(2A d==="3u"&&d[0].6n){F k=d;d="#";i=\'U\'}A(($.2Y(d)&&d.2k<=1)||d==\'\'){R N};8.21();j=8.1c;8.4g();A(!j){8.2a()}8.4e(d,f);A($.2Y(d)&&d.2k>1){d=d[0]}F l=d.S("%4h%");F d=l[0];F m=l[1]||\'\';f=$.1m(I,{\'C\':0,\'D\':0,\'1Q\':0,\'3v\':\'\',\'1s\':m,\'3w\':I,\'Q\':-1,\'18\':N,\'2Z\':\'\',\'31\':I,\'2B\':E(){},\'32\':E(){}},f||{});8.G.2B=f.2B;8.G.32=f.32;8.G.31=f.31;4i=8.4j(d);f=$.1m({},f,4i);F n={x:8.1i.C(),y:8.1i.D()};A(f.C&&(""+f.C).2c("p")>0){f.C=(n.x-20)*f.C.4k(0,f.C.2c("p"))/2h}A(f.D&&(""+f.D).2c("p")>0){f.D=(n.y-20)*f.D.4k(0,f.D.2c("p"))/2h}8.1r.G.1Q=f.1Q;8.B.K.1e.2d(8.G.T+\'-1d-3x\').2C(8.G.T+\'-1d-1e\');8.1H=!(f.Q>0||(f.Q==-1&&f.3w));A($.2Y(f.K)){8.4f(f.K,h)}A(!8.B.K.1Y.4l(":1v")){8.B.K.H.W()}A(f.3v!=\'\'){i=f.3v}M A(f.18){i=\'18\'}M A(d.2b(8.41)){i=\'16\'}M{F o=8.4d({"1z":8.3P,"18":8.3Y},d,f);A(!!o.1G){d=o.1l;i=o.1G;f.C=o.C;f.D=o.D}A(!!i==N){A(d.2b(/#/)){3y=d.6o(d.2c("#"));A($(3y).2k>0){i=\'3z\';d=3y}M{i=\'1A\'}}M{i=\'1A\'}}}A(i==\'16\'){8.B.K.1e.1E();8.B.16=2t 6p();$(8.B.16).4m(8.J(E(){F a=8.B.16;$(a).29(\'4m\');A(!8.1c){R N}A(f.C){C=1O(f.C);D=1O(f.D)}M{A(f.3w){F b=8.3A(a.C,a.D);C=b.C;D=b.D;A(a.C!=C||a.D!=D){8.B.K.H.W();8.B.K.1e.W()}}M{C=a.C;D=a.D}}8.B.1s=(f.1s==\'\')?33:$(\'<H V="\'+8.G.T+\'-1s"></H>\').15(f.1s);8.34();8.1h(C,D)}));8.B.16.6q=8.J(E(){8.2l("4n 6r 16 6s 3U 4o. 6t 6u 6v 6w.")});8.B.16.2w=d}M A(i==\'1z\'||i==\'3z\'||i==\'1A\'||i==\'U\'){A(i==\'3z\'){F p=$(d).6x(I).W();C=f.C>0?f.C:$(d).3B(I);D=f.D>0?f.D:$(d).3C(I);8.2m(p,C,D)}M A(i==\'1A\'){A(f.C){C=f.C;D=f.D}M{8.2l("4p 4q 4r 4s 2n 4t. 4u ?1b[C]=4v&1b[D]=2K 4w 2n 3r 4x 2n 12.");R N}A(8.23.1A){8.23.1A.6y()}8.23.1A=$.1A($.1m({},8.G.1A,{"12":d,"2l":8.J(E(a,b,c){8.2l("6z 6A "+a.6B+" "+c)}),"6C":8.J(E(a){8.2m($(a),C,D)})}))}M A(i==\'1z\'){F q=8.4y(d,f.C,f.D,f.2Z);8.2m($(q),f.C,f.D,\'1z\')}M A(i==\'U\'){C=f.C>0?f.C:k.3B(I);D=f.D>0?f.D:k.3C(I);8.2m(k,C,D)}}M A(i==\'18\'){A(f.C){C=f.C;D=f.D}M{8.2l("4p 4q 4r 4s 2n 4t. 4u ?1b[C]=4v&1b[D]=2K&6D[18]=I 4w 2n 3r 4x 2n 12.");R N}8.2m($(\'<18 Y="43\'+(2t 3n().3o())+\'" 44="0" 2w="\'+d+\'" 1j="2x:0; 3D:0;"></18>\').P(f),f.C,f.D)}8.1W=$.25(g)?g:E(e){}},34:E(){8.B.Z.1k(\'22\',8.J(E(){8.B.Z.29(\'22\');A(!8.1c){R N}8.35(\'16\');8.B.Z.1v();8.B.15.1v();A(8.B.1s){8.B.Z.26(8.B.1s)}8.B.Z.26(8.B.16);A(u||v){8.B.Z.2d(8.G.T+\'-21\')}M{$(8.B.16).1X().P("1y",0).2o({"1y":1},2K,8.J(E(){8.B.Z.2d(8.G.T+\'-21\')}))}8.G.2B.2p(8)}))},4y:E(a,b,c,d){A(2A d==\'2e\'||d==\'\')d=\'2P=1&1C=1&6E=1\';F e=\'<3u C="\'+b+\'" D="\'+c+\'" 6F="6G:6H-6I-6J-6K-6L"><17 T="6M" 1L="\'+a+\'" 1j="2x:0; 3D:0;"></17>\';e+=\'<17 T="6N" 1L="I"></17><17 T="4z" 1L="4A"></17><17 T="4B" 1L="4C"></17>\';e+=\'<17 T="2P" 1L="I"></17><17 T="1C" 1L="I"></17><17 T="2Z" 1L="\'+d+\'"></17>\';e+=\'<17 T="C" 1L="\'+b+\'"></17><17 T="D" 1L="\'+c+\'"></17>\';e+=\'<24 2w="\'+a+\'" 1G="6O/x-6P-1z" 4z="4A" 6Q="I" 2P="I" 1C="I" 2Z="\'+d+\'" 4B="4C" C="\'+b+\'" D="\'+c+\'" 1j="2x:0; 3D:0;"></24></3u>\';R e},2m:E(a,b,c,d){8.35("15");8.1h(b+30,c+20);8.B.Z.1k(\'22\',8.J(E(){8.B.Z.2d(8.G.T+\'-21\');8.B.15.26(a);A(d=="1z"&&r.1x("6R")>-1){8.B.15.15(a)}8.B.Z.29(\'22\');A(8.G.31&&2A 4D!==\'2e\'){4D.6S()}8.G.2B.2p(8)}))},2a:E(w,h){F a={x:$(8.1i).C(),y:$(8.1i).D()};F b={x:$(8.1i).4E(),y:$(8.1i).4F()};F c=h!=33?h:8.B.1b.3C();F d=w!=33?w:8.B.1b.3B();F y=0;F x=0;x=b.x+((a.x-d)/2);A(8.1c){y=b.y+(a.y-c)/2}M A(8.G.3b=="2V"){y=(b.y+a.y+14)}M A(8.G.3b=="1g"){y=(b.y-c)-14}A(8.1c){A(!8.23.Q){8.1M(8.B.Q,{\'1a\':x},\'Q\')}8.1M(8.B.Q,{\'1g\':y},\'Q\')}M{8.B.Q.P({\'1a\':x,\'1g\':y})}},1M:E(d,f,g,h,i){F j=$.6T({2D:i||N,1F:(v?2:8.G.2g[g].1F),1P:8.G.2g[g].1P,22:($.25(h)?8.J(h,8):33)});R d[j.2D===N?"1Z":"2D"](E(){A(3E($.1K.38)>1.5){A(j.2D===N){2f.6U(8)}}F c=$.1m({},j),4G=8;c.6V=$.1m({},f);c.4H={};4I(p 6W f){T=p;6X=f[T];c.4H[T]=c.4J&&c.4J[T]||c.1P||\'6Y\'}$.1Z(f,E(a,b){F e=2t $.2I(4G,c,a);e.1Y(e.6Z(I)||0,b,"70")});R I})},1h:E(x,y){A(8.1c){F a={x:$(8.1i).C(),y:$(8.1i).D()};F b={x:$(8.1i).4E(),y:$(8.1i).4F()};F c=(b.x+(a.x-(x+14))/2);F d=(b.y+(a.y-(y+14))/2);A($.1N.2G||($.1N.71&&(3E($.1N.2H)<1.9))){y+=4}8.23.Q=I;8.1M(8.B.Q.1X(),{\'1a\':(8.1H&&c<0)?0:c,\'1g\':(8.1H&&(y+14)>a.y)?b.y:d},\'Q\',$.J(E(){8.Q=N},8.23));8.1M(8.B.15,{\'D\':y-20},\'Q\');8.1M(8.B.1b.1X(),{\'C\':(x+14),\'D\':y-20},\'Q\',{},I);8.1M(8.B.1w,{\'C\':x},\'Q\');8.1M(8.B.1w,{\'1g\':(y-4K)/2},\'Q\');8.1M(8.B.Z.1X(),{\'C\':x,\'D\':y},\'Q\',E(){$(8.B.Z).2U(\'22\')})}M{8.B.15.P({\'D\':y-20});8.B.1b.P({\'C\':x+14,\'D\':y-20});8.B.Z.P({\'C\':x,\'D\':y});8.B.1w.P({\'C\':x,\'D\':4K})}},1f:E(a){8.1c=N;8.X={};8.G.32();A($.1N.2G||v){8.B.Z.1v();8.B.15.1E().1v().W();8.B.K.1Y.1v();8.B.Q.P("1J","1U");8.2a()}M{8.B.Q.2o({"1y":0,"1g":"-=40"},{2D:N,22:(8.J(E(){8.B.Z.1v();8.B.15.1v();8.B.K.1Y.1v();8.2a();8.B.Q.P({"1J":"1U","1y":1,"3F":"1c"})}))})}8.1r.1E(8.J(E(){A($.25(8.1W)){8.1W.2p(8,$.72(a))}}));8.B.Z.1X(I,N).29("22")},4g:E(){8.1c=I;A($.1N.2G){8.B.Q.73(0).1j.74("4L")}8.B.Q.P({"1J":"3q","3F":"1c"}).W();8.1r.W()},3a:E(){F z=8.G.2g.3a;F x=z.3L;F d=z.1F;F t=z.28;F o=z.3M;F l=8.B.Q.1V().1a;F e=8.B.Q;4I(i=0;i<o;i++){e.2o({1a:l+x},d,t);e.2o({1a:l-x},d,t)};e.2o({1a:l+x},d,t);e.2o({1a:l},d,t)},35:E(a){A(a!=8.1R){8.B.1b.2d(8.G.T+"-1R-"+8.1R);8.1R=a;8.B.1b.2C(8.G.T+"-1R-"+8.1R)}8.B.Q.P("3F","1c")},2l:E(a){75(a);8.1f()},4j:E(d){F e=/1b\\[(.*)?\\]$/i;F f={};A(d.2b(/#/)){d=d.4M(0,d.2c("#"))}d=d.4M(d.2c(\'?\')+1).S("&");$.1Z(d,E(){F a=8.S("=");F b=a[0];F c=a[1];A(b.2b(e)){A(76(c)){c=1O(c)}M A(c.36()=="I"){c=I}M A(c.36()=="N"){c=N}f[b.2b(e)[1]]=c}});R f},3A:E(x,y){F a=8.1i.C()-50;F b=8.1i.D()-50;A(x>a){y=y*(a/x);x=a;A(y>b){x=x*(b/y);y=b}}M A(y>b){x=x*(b/y);y=b;A(x>a){y=y*(a/x);x=a}}R{"C":1O(x),"D":1O(y)}},21:E(){F a=8.G.1j;F b=8.B.Z;8.35(\'16\');b.77().1X(I);b.1v();8.B.15.1v();b.2C(8.G.T+\'-21\');8.B.K.H.1E();A(8.1c==N){8.2a(a["C"],a["D"]);8.1h(a["C"],a["D"])}},4c:E(){F a=8.B.K;F b=8.B.16;F c=8.G.T;A(8.1H){8.1H=N;a.1e.2d(c+\'-1d-3x\');a.1e.2C(c+\'-1d-1e\');8.21();8.34();a.H.W();F d=8.3A(b.C,b.D);8.1h(d.C,d.D)}M{8.1H=I;a.1e.2d(c+\'-1d-1e\');a.1e.2C(c+\'-1d-3x\');8.21();8.34();a.H.W();8.1h(b.C,b.D)}}},1b:E(a,b,c){A(2A a!==\'2e\'){R $.2r.W(a,b,c)}M{R $.2r}}});$.1K.1b=E(l,m){R $(8).78(\'1u\',E(e){$(8).79();F b=[];F c=$.3G($(8).2E(\'2i\'))||\'\';F d=$.3G($(8).2E(\'1s\'))||\'\';F f=$(8);c=c.2z(\'[\',\'\\\\\\\\[\');c=c.2z(\']\',\'\\\\\\\\]\');A(!c||c==\'\'||c===\'7a\'){b=$(8).2E(\'1l\');3H=(d||d!=\'\')?$.1m({},l,{\'1s\':d}):l}M{F g=[];F h=[];F j=[];F k=N;$("a[2i], 7b[2i]",8.7c).4L("[2i=\\""+c+"\\"]").1Z($.J(E(i,a){A(8==a){h.7d(a);k=I}M A(k==N){j.3I(a)}M{h.3I(a)}},8));g=f=h.7e(j);$.1Z(g,E(){F a=$.3G($(8).2E(\'1s\'))||\'\';a=a?"%4h%"+a:\'\';b.3I($(8).2E(\'1l\')+a)});A(b.2k==1){b=b[0]}3H=l}$.2r.W(b,3H,m,f);R N})};$(E(){A(3E($.1K.38)>1.2){$.2r.2Q()}M{7f"4n 2f 2H 7g 7h 4o 4l 7i 7j. 7k 7l 7m 2f 1.3+";}})})(2f);',62,457,'||||||||this||||||||||||||||||||||||||||if|esqueleto|width|height|function|var|options|div|true|proxy|buttons|amp|else|false|com|css|move|return|split|name|element|class|show|gallery|id|background||index|url|reg||html|image|param|iframe|http|left|lightbox|visible|button|max|close|top|resize|win|style|bind|href|extend|zIndex|shim|span|current|overlay|title|maps|click|empty|navigator|search|opacity|flash|ajax|www|autoplay|google|hide|duration|type|maximized|video|display|fn|value|morph|browser|parseInt|easing|modal|mode|swf|border|none|position|callback|stop|custom|each||loading|complete|animations|embed|isFunction|append||transition|unbind|movebox|match|indexOf|removeClass|undefined|jQuery|animation|100|rel|right|length|error|appendhtml|the|animate|apply|easeOutBack|LightBoxObject|collegehumor|new|preventDefault|hidden|src|margin|total|replace|typeof|onOpen|addClass|queue|attr||msie|version|fx|step|400|prev|next|youtube|moogaloop|autostart|create|target|document|absolute|trigger|bottom|triggerHandler|touchend|isArray|flashvars||cufon|onClose|null|loadimage|changemode|toLowerCase||jquery||shake|emergefrom|metacafe|dailymotion|vimeo|player|fullscreen|gametrailers|ustream|twitvid|vzaar|bing|output|Date|getTime|body|block|end|keyCode|images|object|force|autoresize|min|obj|inline|calculate|outerWidth|outerHeight|padding|parseFloat|overflow|trim|copy_options|push|userAgent|defaults|distance|loops|640|360|videoregs|watch|fs|enablejsapi|youtu|be|clip_id|tv|wordpress|mapsreg|ms||imgsreg|inject|IF_|frameborder|fadeTo|showDuration|closeDuration|middle|Previous|Next|addevents|maximinimize|ex|create_gallery|custombuttons|open|LIGHTBOX|urloptions|unserialize|substring|is|load|The|loaded|You|have|to|specify|size|Add|600|at|of|swf2html|allowscriptaccess|always|wmode|transparent|Cufon|scrollLeft|scrollTop|self|animatedProperties|for|specialEasing|90|filter|slice|mobile|android|googletv|htc_flyer|opera|mini|mobi|iphone|windows|phone|os|arguments|prototype||update|call|elem|now|prop|_default|70158|99999|470|280|200|800|GET|cache|dataType|fplayer|playerVars|autoPlay|yes|additionalInfos|autoStart|videoplay|googleplayer|hl|en|docId|hd|show_title|show_byline|show_portrait|color|remote_wrap|php|mid|collegehumornew|jukebox|use_node_id|loc|vid|disabledComment|beginPercent|5331|endPercent|6292|locale|en_US|s0|videopress|guid|01|videos|view|flashplayer|emid|3ede2bc8|227d|8fec|d84a|00b6ff19b1cb|streetview|layer|svembed|googlev2|jpg|jpeg|gif|png|bmp|tiff|fixed|static|relative|scrolling|no|insertAfter|Close|init|Maximize|999|window|onorientationchange|scroll|keydown|data|nodeType|substr|Image|onerror|requested|cannot|Please|try|again|later|clone|abort|AJAX|Error|status|success|lighbox|fullscreenbutton|classid|clsid|D27CDB6E|AE6D|11cf|96B8|444553540000|movie|allowFullScreen|application|shockwave|allowfullscreen|chrome|refresh|speed|_mark|curAnim|in|val|swing|cur|px|mozilla|makeArray|get|removeAttribute|alert|isFinite|children|live|blur|nofollow|area|ownerDocument|unshift|concat|throw|that|was|too|old|Lightbox|Evolution|requires'.split('|'),0,{}));

/*! OneByOne slider*/
(function(a){var b=["rollIn","fadeIn","fadeInUp","fadeInDown","fadeInLeft","fadeInRight","fadeInRight","bounceIn","bounceInDown","bounceInUp","bounceInLeft","bounceInRight","rotateInDownLeft","rotateInDownRight","rotateInUpLeft","rotateInUpRight"];var c=b.length;a.fn.oneByOne=function(d){function y(d){if(e.slideShow){z()}g.stop(true,true).animate({left:-d*i},e.delay,function(){if(d!=h){r=h;if(p[r]){if(!(a.browser.msie||a.browser.opera)){p[r].fadeOut()}a(".buttonArea a:eq("+r+")",f).removeClass("active")}a(".buttonArea a:eq("+d+")",f).addClass("active");if(e.easeType.toLowerCase()!="random"){p[d].show().children().each(function(b){if(a(this).hasClass(e.easeType)){a(this).removeClass(e.easeType);a(this).hide()}var c=b;a(this).show().addClass("animate"+c+" "+e.easeType)})}else{o=b[Math.floor(Math.random()*c)];n[d]=o;if(p[r]){p[r].children().each(function(b){if(a(this).hasClass(n[r])){a(this).removeClass(n[r]);a(this).fadeOut("medium")}})}p[d].show().children().each(function(b){var c=b;a(this).show().addClass("animate"+c+" "+o)})}g.delay(p[d].children().length*200).queue(function(){if(e.slideShow)A()});if(u)u.css("cursor","pointer");h=d}})}function z(){clearInterval(g.data("interval"))}function A(){clearInterval(g.data("interval"));slideShowInt=setInterval(function(){B()},e.slideShowDelay);g.data("interval",slideShowInt)}function B(){var a=h;a++;a=a>=q?0:a;y(a)}function C(){var a=h;a--;a=a<0?q-1:a;y(a)}var e={className:"oneByOne",sliderClassName:"oneByOne_item",easeType:"fadeInLeft",width:960,height:420,delay:300,tolerance:.25,enableDrag:true,showArrow:true,showButton:true,slideShow:false,slideShowDelay:3e3};if(d){a.extend(e,d)}var f;var g;var h=-1;var i=e.width;var j=e.height;var k=0;var l=false;var m=false;var n=[];var o;var p=[];var q=0;var r=0,s,t,u;g=this;g.wrap('<div class="'+e.className+'"/>');f=g.parent();f.css("overflow","hidden");g.find("."+e.sliderClassName).each(function(b){a(this).hide();q++;a(this).css("left",i*b);p[b]=a(this)});g.bind("touchstart",function(a){a.preventDefault();var b=a.originalEvent.touches[0]||a.originalEvent.changedTouches[0];if(!l){l=true;this.mouseX=b.pageX}if(t)t.fadeIn();if(u)u.fadeIn();return false});g.bind("touchmove",function(a){a.preventDefault();var b=a.originalEvent.touches[0]||a.originalEvent.changedTouches[0];if(l){k=b.pageX-this.mouseX;g.css("left",-h*i+k);if(e.slideShow){z()}}return false});g.bind("touchend",function(a){var b=h;a.preventDefault();var c=a.originalEvent.touches[0]||a.originalEvent.changedTouches[0];l=false;if(!k)return false;var d=parseInt(e.width);var f=d/2;if(-k>f-d*e.tolerance){b++;b=b>=q?q-1:b;y(b)}else if(k>f-d*e.tolerance){b--;b=b<0?0:b;y(b)}else{y(b);if(e.slideShow){A()}}k=0;if(t)t.delay(400).fadeOut();if(u)u.delay(400).fadeOut();return false});if(e.enableDrag){g.mousedown(function(a){if(!l){l=true;this.mouseX=a.pageX}return false});g.mousemove(function(a){if(l){k=a.pageX-this.mouseX;g.css("left",-h*i+k);if(e.slideShow){z()}}return false});g.mouseup(function(a){l=false;var b=h;if(!k)return false;var c=parseInt(e.width);var d=c/2;if(-k>d-c*e.tolerance){b++;b=b>=q?q-1:b;y(b)}else if(k>d-c*e.tolerance){b--;b=b<0?0:b;y(b)}else{y(b);if(e.slideShow){A()}}k=0;return false});g.mouseleave(function(b){a(this).mouseup()})}f.mouseover(function(a){if(t)t.fadeIn();if(u)u.fadeIn()});f.mouseleave(function(a){if(t)t.fadeOut();if(u)u.fadeOut()});if(e.showButton){s=a('<div class="buttonArea"><div class="buttonCon"></div></div>');f.append(s);t=s.find(".buttonCon");for(var v=0;v<q;v++){t.append('<a class="theButton" rel="'+v+'">'+(v+1)+"</a>").css("cursor","pointer")}a(".buttonCon a:eq("+h+")",s).addClass("active");a(".buttonCon a",s).bind("click",function(b){if(a(this).hasClass("active"))return false;var c=a(this).attr("rel");y(c)})}if(e.showArrow){u=a('<div class="arrowButton"><div class="prevArrow"></div><div class="nextArrow"></div></div>');f.append(u);var w=a(".nextArrow",u).bind("click",function(a){B()});var x=a(".prevArrow",u).bind("click",function(a){C()})}if(t)t.hide();if(u)u.hide();y(0);if(e.slideShow){slideShowInt=setInterval(function(){B()},e.slideShowDelay);g.data("interval",slideShowInt)}return this}})(jQuery);

/**
 * jQuery Plugin to obtain touch gestures from iPhone, iPod Touch and iPad, should also work with Android mobile phones (not tested yet!)
 * Common usage: wipe images (left and right to show the previous or next image)
 * 
 * @author Andreas Waltl, netCU Internetagentur (http://www.netcu.de)
 * @version 1.1.1 (9th December 2010) - fix bug (older IE's had problems)
 * @version 1.1 (1st September 2010) - support wipe up and wipe down
 * @version 1.0 (15th July 2010)
 */
(function(a){a.fn.touchwipe=function(b){var c={min_move_x:20,min_move_y:20,wipeLeft:function(){},wipeRight:function(){},wipeUp:function(){},wipeDown:function(){},preventDefaultEvents:true};if(b)a.extend(c,b);this.each(function(){function e(){this.removeEventListener("touchmove",f);a=null;d=false}function f(f){if(c.preventDefaultEvents){f.preventDefault()}if(d){var g=f.touches[0].pageX;var h=f.touches[0].pageY;var i=a-g;var j=b-h;if(Math.abs(i)>=c.min_move_x){e();if(i>0){c.wipeLeft()}else{c.wipeRight()}}else if(Math.abs(j)>=c.min_move_y){e();if(j>0){c.wipeDown()}else{c.wipeUp()}}}}function g(c){if(c.touches.length==1){a=c.touches[0].pageX;b=c.touches[0].pageY;d=true;this.addEventListener("touchmove",f,false)}}var a;var b;var d=false;if("ontouchstart"in document.documentElement){this.addEventListener("touchstart",g,false)}});return this}})(jQuery);


/*! jQuery FlexSlider v1.8
 * http://www.woothemes.com/flexslider/
 *
 * Copyright 2012 WooThemes
 * Free to use under the MIT license.
 * http://www.opensource.org/licenses/mit-license.php
 *
 * Contributing Author: Tyler Smith
 -----------------------------------------*/
(function(a){a.flexslider=function(c,b){var d=a(c);a.data(c,"flexslider",d);d.init=function(){d.vars=a.extend({},a.flexslider.defaults,b);a.data(c,"flexsliderInit",true);d.container=a(".slides",d).eq(0);d.slides=a(".slides:first > li",d);d.count=d.slides.length;d.animating=false;d.currentSlide=d.vars.slideToStart;d.animatingTo=d.currentSlide;d.atEnd=(d.currentSlide==0)?true:false;d.eventType=("ontouchstart" in document.documentElement)?"touchstart":"click";d.cloneCount=0;d.cloneOffset=0;d.manualPause=false;d.vertical=(d.vars.slideDirection=="vertical");d.prop=(d.vertical)?"top":"marginLeft";d.args={};d.transitions="webkitTransition" in document.body.style&&d.vars.useCSS;if(d.transitions){d.prop="-webkit-transform"}if(d.vars.controlsContainer!=""){d.controlsContainer=a(d.vars.controlsContainer).eq(a(".slides").index(d.container));d.containerExists=d.controlsContainer.length>0}if(d.vars.manualControls!=""){d.manualControls=a(d.vars.manualControls,((d.containerExists)?d.controlsContainer:d));d.manualExists=d.manualControls.length>0}if(d.vars.randomize){d.slides.sort(function(){return(Math.round(Math.random())-0.5)});d.container.empty().append(d.slides)}if(d.vars.animation.toLowerCase()=="slide"){if(d.transitions){d.setTransition(0)}d.css({overflow:"hidden"});if(d.vars.animationLoop){d.cloneCount=2;d.cloneOffset=1;d.container.append(d.slides.filter(":first").clone().addClass("clone")).prepend(d.slides.filter(":last").clone().addClass("clone"))}d.newSlides=a(".slides:first > li",d);var m=(-1*(d.currentSlide+d.cloneOffset));if(d.vertical){d.newSlides.css({display:"block",width:"100%","float":"left"});d.container.height((d.count+d.cloneCount)*200+"%").css("position","absolute").width("100%");setTimeout(function(){d.css({position:"relative"}).height(d.slides.filter(":first").height());d.args[d.prop]=(d.transitions)?"translate3d(0,"+m*d.height()+"px,0)":m*d.height()+"px";d.container.css(d.args)},100)}else{d.args[d.prop]=(d.transitions)?"translate3d("+m*d.width()+"px,0,0)":m*d.width()+"px";d.container.width((d.count+d.cloneCount)*200+"%").css(d.args);setTimeout(function(){d.newSlides.width(d.width()).css({"float":"left",display:"block"})},100)}}else{d.transitions=false;d.slides.css({width:"100%","float":"left",marginRight:"-100%"}).eq(d.currentSlide).fadeIn(d.vars.animationDuration)}if(d.vars.controlNav){if(d.manualExists){d.controlNav=d.manualControls}else{var e=a('<ol class="flex-control-nav"></ol>');var s=1;for(var t=0;t<d.count;t++){e.append("<li><a>"+s+"</a></li>");s++}if(d.containerExists){a(d.controlsContainer).append(e);d.controlNav=a(".flex-control-nav li a",d.controlsContainer)}else{d.append(e);d.controlNav=a(".flex-control-nav li a",d)}}d.controlNav.eq(d.currentSlide).addClass("active");d.controlNav.bind(d.eventType,function(i){i.preventDefault();if(!a(this).hasClass("active")){(d.controlNav.index(a(this))>d.currentSlide)?d.direction="next":d.direction="prev";d.flexAnimate(d.controlNav.index(a(this)),d.vars.pauseOnAction)}})}if(d.vars.directionNav){var v=a('<ul class="flex-direction-nav"><li><a class="prev" href="#">'+d.vars.prevText+'</a></li><li><a class="next" href="#">'+d.vars.nextText+"</a></li></ul>");if(d.containerExists){a(d.controlsContainer).append(v);d.directionNav=a(".flex-direction-nav li a",d.controlsContainer)}else{d.append(v);d.directionNav=a(".flex-direction-nav li a",d)}if(!d.vars.animationLoop){if(d.currentSlide==0){d.directionNav.filter(".prev").addClass("disabled")}else{if(d.currentSlide==d.count-1){d.directionNav.filter(".next").addClass("disabled")}}}d.directionNav.bind(d.eventType,function(i){i.preventDefault();var j=(a(this).hasClass("next"))?d.getTarget("next"):d.getTarget("prev");if(d.canAdvance(j)){d.flexAnimate(j,d.vars.pauseOnAction)}})}if(d.vars.keyboardNav&&a("ul.slides").length==1){function h(i){if(d.animating){return}else{if(i.keyCode!=39&&i.keyCode!=37){return}else{if(i.keyCode==39){var j=d.getTarget("next")}else{if(i.keyCode==37){var j=d.getTarget("prev")}}if(d.canAdvance(j)){d.flexAnimate(j,d.vars.pauseOnAction)}}}}a(document).bind("keyup",h)}if(d.vars.mousewheel){d.mousewheelEvent=(/Firefox/i.test(navigator.userAgent))?"DOMMouseScroll":"mousewheel";d.bind(d.mousewheelEvent,function(y){y.preventDefault();y=y?y:window.event;var i=y.detail?y.detail*-1:y.originalEvent.wheelDelta/40,j=(i<0)?d.getTarget("next"):d.getTarget("prev");if(d.canAdvance(j)){d.flexAnimate(j,d.vars.pauseOnAction)}})}if(d.vars.slideshow){if(d.vars.pauseOnHover&&d.vars.slideshow){d.hover(function(){d.pause()},function(){if(!d.manualPause){d.resume()}})}d.animatedSlides=setInterval(d.animateSlides,d.vars.slideshowSpeed)}if(d.vars.pausePlay){var q=a('<div class="flex-pauseplay"><span></span></div>');if(d.containerExists){d.controlsContainer.append(q);d.pausePlay=a(".flex-pauseplay span",d.controlsContainer)}else{d.append(q);d.pausePlay=a(".flex-pauseplay span",d)}var n=(d.vars.slideshow)?"pause":"play";d.pausePlay.addClass(n).text((n=="pause")?d.vars.pauseText:d.vars.playText);d.pausePlay.bind(d.eventType,function(i){i.preventDefault();if(a(this).hasClass("pause")){d.pause();d.manualPause=true}else{d.resume();d.manualPause=false}})}if("ontouchstart" in document.documentElement&&d.vars.touch){var w,u,l,r,o,x,p=false;d.each(function(){if("ontouchstart" in document.documentElement){this.addEventListener("touchstart",g,false)}});function g(i){if(d.animating){i.preventDefault()}else{if(i.touches.length==1){d.pause();r=(d.vertical)?d.height():d.width();x=Number(new Date());l=(d.vertical)?(d.currentSlide+d.cloneOffset)*d.height():(d.currentSlide+d.cloneOffset)*d.width();w=(d.vertical)?i.touches[0].pageY:i.touches[0].pageX;u=(d.vertical)?i.touches[0].pageX:i.touches[0].pageY;d.setTransition(0);this.addEventListener("touchmove",k,false);this.addEventListener("touchend",f,false)}}}function k(i){o=(d.vertical)?w-i.touches[0].pageY:w-i.touches[0].pageX;p=(d.vertical)?(Math.abs(o)<Math.abs(i.touches[0].pageX-u)):(Math.abs(o)<Math.abs(i.touches[0].pageY-u));if(!p){i.preventDefault();if(d.vars.animation=="slide"&&d.transitions){if(!d.vars.animationLoop){o=o/((d.currentSlide==0&&o<0||d.currentSlide==d.count-1&&o>0)?(Math.abs(o)/r+2):1)}d.args[d.prop]=(d.vertical)?"translate3d(0,"+(-l-o)+"px,0)":"translate3d("+(-l-o)+"px,0,0)";d.container.css(d.args)}}}function f(j){d.animating=false;if(d.animatingTo==d.currentSlide&&!p&&!(o==null)){var i=(o>0)?d.getTarget("next"):d.getTarget("prev");if(d.canAdvance(i)&&Number(new Date())-x<550&&Math.abs(o)>20||Math.abs(o)>r/2){d.flexAnimate(i,d.vars.pauseOnAction)}else{if(d.vars.animation!=="fade"){d.flexAnimate(d.currentSlide,d.vars.pauseOnAction)}}}this.removeEventListener("touchmove",k,false);this.removeEventListener("touchend",f,false);w=null;u=null;o=null;l=null}}if(d.vars.animation.toLowerCase()=="slide"){a(window).resize(function(){if(!d.animating&&d.is(":visible")){if(d.vertical){d.height(d.slides.filter(":first").height());d.args[d.prop]=(-1*(d.currentSlide+d.cloneOffset))*d.slides.filter(":first").height()+"px";if(d.transitions){d.setTransition(0);d.args[d.prop]=(d.vertical)?"translate3d(0,"+d.args[d.prop]+",0)":"translate3d("+d.args[d.prop]+",0,0)"}d.container.css(d.args)}else{d.newSlides.width(d.width());d.args[d.prop]=(-1*(d.currentSlide+d.cloneOffset))*d.width()+"px";if(d.transitions){d.setTransition(0);d.args[d.prop]=(d.vertical)?"translate3d(0,"+d.args[d.prop]+",0)":"translate3d("+d.args[d.prop]+",0,0)"}d.container.css(d.args)}}})}d.vars.start(d)};d.flexAnimate=function(g,f){if(!d.animating&&d.is(":visible")){d.animating=true;d.animatingTo=g;d.vars.before(d);if(f){d.pause()}if(d.vars.controlNav){d.controlNav.removeClass("active").eq(g).addClass("active")}d.atEnd=(g==0||g==d.count-1)?true:false;if(!d.vars.animationLoop&&d.vars.directionNav){if(g==0){d.directionNav.removeClass("disabled").filter(".prev").addClass("disabled")}else{if(g==d.count-1){d.directionNav.removeClass("disabled").filter(".next").addClass("disabled")}else{d.directionNav.removeClass("disabled")}}}if(!d.vars.animationLoop&&g==d.count-1){d.pause();d.vars.end(d)}if(d.vars.animation.toLowerCase()=="slide"){var e=(d.vertical)?d.slides.filter(":first").height():d.slides.filter(":first").width();if(d.currentSlide==0&&g==d.count-1&&d.vars.animationLoop&&d.direction!="next"){d.slideString="0px"}else{if(d.currentSlide==d.count-1&&g==0&&d.vars.animationLoop&&d.direction!="prev"){d.slideString=(-1*(d.count+1))*e+"px"}else{d.slideString=(-1*(g+d.cloneOffset))*e+"px"}}d.args[d.prop]=d.slideString;if(d.transitions){d.setTransition(d.vars.animationDuration);d.args[d.prop]=(d.vertical)?"translate3d(0,"+d.slideString+",0)":"translate3d("+d.slideString+",0,0)";d.container.css(d.args).one("webkitTransitionEnd transitionend",function(){d.wrapup(e)})}else{d.container.animate(d.args,d.vars.animationDuration,function(){d.wrapup(e)})}}else{d.slides.eq(d.currentSlide).fadeOut(d.vars.animationDuration);d.slides.eq(g).fadeIn(d.vars.animationDuration,function(){d.wrapup()})}}};d.wrapup=function(e){if(d.vars.animation=="slide"){if(d.currentSlide==0&&d.animatingTo==d.count-1&&d.vars.animationLoop){d.args[d.prop]=(-1*d.count)*e+"px";if(d.transitions){d.setTransition(0);d.args[d.prop]=(d.vertical)?"translate3d(0,"+d.args[d.prop]+",0)":"translate3d("+d.args[d.prop]+",0,0)"}d.container.css(d.args)}else{if(d.currentSlide==d.count-1&&d.animatingTo==0&&d.vars.animationLoop){d.args[d.prop]=-1*e+"px";if(d.transitions){d.setTransition(0);d.args[d.prop]=(d.vertical)?"translate3d(0,"+d.args[d.prop]+",0)":"translate3d("+d.args[d.prop]+",0,0)"}d.container.css(d.args)}}}d.animating=false;d.currentSlide=d.animatingTo;d.vars.after(d)};d.animateSlides=function(){if(!d.animating){d.flexAnimate(d.getTarget("next"))}};d.pause=function(){clearInterval(d.animatedSlides);if(d.vars.pausePlay){d.pausePlay.removeClass("pause").addClass("play").text(d.vars.playText)}};d.resume=function(){d.animatedSlides=setInterval(d.animateSlides,d.vars.slideshowSpeed);if(d.vars.pausePlay){d.pausePlay.removeClass("play").addClass("pause").text(d.vars.pauseText)}};d.canAdvance=function(e){if(!d.vars.animationLoop&&d.atEnd){if(d.currentSlide==0&&e==d.count-1&&d.direction!="next"){return false}else{if(d.currentSlide==d.count-1&&e==0&&d.direction=="next"){return false}else{return true}}}else{return true}};d.getTarget=function(e){d.direction=e;if(e=="next"){return(d.currentSlide==d.count-1)?0:d.currentSlide+1}else{return(d.currentSlide==0)?d.count-1:d.currentSlide-1}};d.setTransition=function(e){d.container.css({"-webkit-transition-duration":(e/1000)+"s"})};d.init()};a.flexslider.defaults={animation:"fade",slideDirection:"horizontal",slideshow:true,slideshowSpeed:7000,animationDuration:600,directionNav:true,controlNav:true,keyboardNav:true,mousewheel:false,prevText:"Previous",nextText:"Next",pausePlay:false,pauseText:"Pause",playText:"Play",randomize:false,slideToStart:0,animationLoop:true,pauseOnAction:true,pauseOnHover:false,useCSS:true,touch:true,controlsContainer:"",manualControls:"",start:function(){},before:function(){},after:function(){},end:function(){}};a.fn.flexslider=function(b){return this.each(function(){var c=a(this).find(".slides > li");if(c.length===1){c.find(".slides > li").fadeIn(400);if(b&&b.start){b.start(a(this))}}else{if(a(this).data("flexsliderInit")!=true){new a.flexslider(this,b)}}})}})(jQuery);


/**
 * Isotope v1.5.19
 * An exquisite jQuery plugin for magical layouts
 * http://isotope.metafizzy.co
 *
 * Commercial use requires one-time license fee
 * http://metafizzy.co/#licenses
 *
 * Copyright 2012 David DeSandro / Metafizzy
 */
(function(a,b,c){"use strict";var d=a.document,e=a.Modernizr,f=function(a){return a.charAt(0).toUpperCase()+a.slice(1)},g="Moz Webkit O Ms".split(" "),h=function(a){var b=d.documentElement.style,c;if(typeof b[a]=="string")return a;a=f(a);for(var e=0,h=g.length;e<h;e++){c=g[e]+a;if(typeof b[c]=="string")return c}},i=h("transform"),j=h("transitionProperty"),k={csstransforms:function(){return!!i},csstransforms3d:function(){var a=!!h("perspective");if(a){var c=" -o- -moz- -ms- -webkit- -khtml- ".split(" "),d="@media ("+c.join("transform-3d),(")+"modernizr)",e=b("<style>"+d+"{#modernizr{height:3px}}"+"</style>").appendTo("head"),f=b('<div id="modernizr" />').appendTo("html");a=f.height()===3,f.remove(),e.remove()}return a},csstransitions:function(){return!!j}},l;if(e)for(l in k)e.hasOwnProperty(l)||e.addTest(l,k[l]);else{e=a.Modernizr={_version:"1.6ish: miniModernizr for Isotope"};var m=" ",n;for(l in k)n=k[l](),e[l]=n,m+=" "+(n?"":"no-")+l;b("html").addClass(m)}if(e.csstransforms){var o=e.csstransforms3d?{translate:function(a){return"translate3d("+a[0]+"px, "+a[1]+"px, 0) "},scale:function(a){return"scale3d("+a+", "+a+", 1) "}}:{translate:function(a){return"translate("+a[0]+"px, "+a[1]+"px) "},scale:function(a){return"scale("+a+") "}},p=function(a,c,d){var e=b.data(a,"isoTransform")||{},f={},g,h={},j;f[c]=d,b.extend(e,f);for(g in e)j=e[g],h[g]=o[g](j);var k=h.translate||"",l=h.scale||"",m=k+l;b.data(a,"isoTransform",e),a.style[i]=m};b.cssNumber.scale=!0,b.cssHooks.scale={set:function(a,b){p(a,"scale",b)},get:function(a,c){var d=b.data(a,"isoTransform");return d&&d.scale?d.scale:1}},b.fx.step.scale=function(a){b.cssHooks.scale.set(a.elem,a.now+a.unit)},b.cssNumber.translate=!0,b.cssHooks.translate={set:function(a,b){p(a,"translate",b)},get:function(a,c){var d=b.data(a,"isoTransform");return d&&d.translate?d.translate:[0,0]}}}var q,r;e.csstransitions&&(q={WebkitTransitionProperty:"webkitTransitionEnd",MozTransitionProperty:"transitionend",OTransitionProperty:"oTransitionEnd",transitionProperty:"transitionEnd"}[j],r=h("transitionDuration"));var s=b.event,t;s.special.smartresize={setup:function(){b(this).bind("resize",s.special.smartresize.handler)},teardown:function(){b(this).unbind("resize",s.special.smartresize.handler)},handler:function(a,b){var c=this,d=arguments;a.type="smartresize",t&&clearTimeout(t),t=setTimeout(function(){jQuery.event.handle.apply(c,d)},b==="execAsap"?0:100)}},b.fn.smartresize=function(a){return a?this.bind("smartresize",a):this.trigger("smartresize",["execAsap"])},b.Isotope=function(a,c,d){this.element=b(c),this._create(a),this._init(d)};var u=["width","height"],v=b(a);b.Isotope.settings={resizable:!0,layoutMode:"masonry",containerClass:"isotope",itemClass:"isotope-item",hiddenClass:"isotope-hidden",hiddenStyle:{opacity:0,scale:.001},visibleStyle:{opacity:1,scale:1},containerStyle:{position:"relative",overflow:"hidden"},animationEngine:"best-available",animationOptions:{queue:!1,duration:800},sortBy:"original-order",sortAscending:!0,resizesContainer:!0,transformsEnabled:!b.browser.opera,itemPositionDataEnabled:!1},b.Isotope.prototype={_create:function(a){this.options=b.extend({},b.Isotope.settings,a),this.styleQueue=[],this.elemCount=0;var c=this.element[0].style;this.originalStyle={};var d=u.slice(0);for(var e in this.options.containerStyle)d.push(e);for(var f=0,g=d.length;f<g;f++)e=d[f],this.originalStyle[e]=c[e]||"";this.element.css(this.options.containerStyle),this._updateAnimationEngine(),this._updateUsingTransforms();var h={"original-order":function(a,b){return b.elemCount++,b.elemCount},random:function(){return Math.random()}};this.options.getSortData=b.extend(this.options.getSortData,h),this.reloadItems(),this.offset={left:parseInt(this.element.css("padding-left")||0,10),top:parseInt(this.element.css("padding-top")||0,10)};var i=this;setTimeout(function(){i.element.addClass(i.options.containerClass)},0),this.options.resizable&&v.bind("smartresize.isotope",function(){i.resize()}),this.element.delegate("."+this.options.hiddenClass,"click",function(){return!1})},_getAtoms:function(a){var b=this.options.itemSelector,c=b?a.filter(b).add(a.find(b)):a,d={position:"absolute"};return this.usingTransforms&&(d.left=0,d.top=0),c.css(d).addClass(this.options.itemClass),this.updateSortData(c,!0),c},_init:function(a){this.$filteredAtoms=this._filter(this.$allAtoms),this._sort(),this.reLayout(a)},option:function(a){if(b.isPlainObject(a)){this.options=b.extend(!0,this.options,a);var c;for(var d in a)c="_update"+f(d),this[c]&&this[c]()}},_updateAnimationEngine:function(){var a=this.options.animationEngine.toLowerCase().replace(/[ _\-]/g,""),b;switch(a){case"css":case"none":b=!1;break;case"jquery":b=!0;break;default:b=!e.csstransitions}this.isUsingJQueryAnimation=b,this._updateUsingTransforms()},_updateTransformsEnabled:function(){this._updateUsingTransforms()},_updateUsingTransforms:function(){var a=this.usingTransforms=this.options.transformsEnabled&&e.csstransforms&&e.csstransitions&&!this.isUsingJQueryAnimation;a||(delete this.options.hiddenStyle.scale,delete this.options.visibleStyle.scale),this.getPositionStyles=a?this._translate:this._positionAbs},_filter:function(a){var b=this.options.filter===""?"*":this.options.filter;if(!b)return a;var c=this.options.hiddenClass,d="."+c,e=a.filter(d),f=e;if(b!=="*"){f=e.filter(b);var g=a.not(d).not(b).addClass(c);this.styleQueue.push({$el:g,style:this.options.hiddenStyle})}return this.styleQueue.push({$el:f,style:this.options.visibleStyle}),f.removeClass(c),a.filter(b)},updateSortData:function(a,c){var d=this,e=this.options.getSortData,f,g;a.each(function(){f=b(this),g={};for(var a in e)!c&&a==="original-order"?g[a]=b.data(this,"isotope-sort-data")[a]:g[a]=e[a](f,d);b.data(this,"isotope-sort-data",g)})},_sort:function(){var a=this.options.sortBy,b=this._getSorter,c=this.options.sortAscending?1:-1,d=function(d,e){var f=b(d,a),g=b(e,a);return f===g&&a!=="original-order"&&(f=b(d,"original-order"),g=b(e,"original-order")),(f>g?1:f<g?-1:0)*c};this.$filteredAtoms.sort(d)},_getSorter:function(a,c){return b.data(a,"isotope-sort-data")[c]},_translate:function(a,b){return{translate:[a,b]}},_positionAbs:function(a,b){return{left:a,top:b}},_pushPosition:function(a,b,c){b=Math.round(b+this.offset.left),c=Math.round(c+this.offset.top);var d=this.getPositionStyles(b,c);this.styleQueue.push({$el:a,style:d}),this.options.itemPositionDataEnabled&&a.data("isotope-item-position",{x:b,y:c})},layout:function(a,b){var c=this.options.layoutMode;this["_"+c+"Layout"](a);if(this.options.resizesContainer){var d=this["_"+c+"GetContainerSize"]();this.styleQueue.push({$el:this.element,style:d})}this._processStyleQueue(a,b),this.isLaidOut=!0},_processStyleQueue:function(a,c){var d=this.isLaidOut?this.isUsingJQueryAnimation?"animate":"css":"css",f=this.options.animationOptions,g=this.options.onLayout,h,i,j,k;i=function(a,b){b.$el[d](b.style,f)};if(this._isInserting&&this.isUsingJQueryAnimation)i=function(a,b){h=b.$el.hasClass("no-transition")?"css":d,b.$el[h](b.style,f)};else if(c||g||f.complete){var l=!1,m=[c,g,f.complete],n=this;j=!0,k=function(){if(l)return;var b;for(var c=0,d=m.length;c<d;c++)b=m[c],typeof b=="function"&&b.call(n.element,a,n);l=!0};if(this.isUsingJQueryAnimation&&d==="animate")f.complete=k,j=!1;else if(e.csstransitions){var o=0,p=this.styleQueue[0],s=p&&p.$el,t;while(!s||!s.length){t=this.styleQueue[o++];if(!t)return;s=t.$el}var u=parseFloat(getComputedStyle(s[0])[r]);u>0&&(i=function(a,b){b.$el[d](b.style,f).one(q,k)},j=!1)}}b.each(this.styleQueue,i),j&&k(),this.styleQueue=[]},resize:function(){this["_"+this.options.layoutMode+"ResizeChanged"]()&&this.reLayout()},reLayout:function(a){this["_"+this.options.layoutMode+"Reset"](),this.layout(this.$filteredAtoms,a)},addItems:function(a,b){var c=this._getAtoms(a);this.$allAtoms=this.$allAtoms.add(c),b&&b(c)},insert:function(a,b){this.element.append(a);var c=this;this.addItems(a,function(a){var d=c._filter(a);c._addHideAppended(d),c._sort(),c.reLayout(),c._revealAppended(d,b)})},appended:function(a,b){var c=this;this.addItems(a,function(a){c._addHideAppended(a),c.layout(a),c._revealAppended(a,b)})},_addHideAppended:function(a){this.$filteredAtoms=this.$filteredAtoms.add(a),a.addClass("no-transition"),this._isInserting=!0,this.styleQueue.push({$el:a,style:this.options.hiddenStyle})},_revealAppended:function(a,b){var c=this;setTimeout(function(){a.removeClass("no-transition"),c.styleQueue.push({$el:a,style:c.options.visibleStyle}),c._isInserting=!1,c._processStyleQueue(a,b)},10)},reloadItems:function(){this.$allAtoms=this._getAtoms(this.element.children())},remove:function(a,b){var c=this,d=function(){c.$allAtoms=c.$allAtoms.not(a),a.remove(),b&&b.call(c.element)};a.filter(":not(."+this.options.hiddenClass+")").length?(this.styleQueue.push({$el:a,style:this.options.hiddenStyle}),this.$filteredAtoms=this.$filteredAtoms.not(a),this._sort(),this.reLayout(d)):d()},shuffle:function(a){this.updateSortData(this.$allAtoms),this.options.sortBy="random",this._sort(),this.reLayout(a)},destroy:function(){var a=this.usingTransforms,b=this.options;this.$allAtoms.removeClass(b.hiddenClass+" "+b.itemClass).each(function(){var b=this.style;b.position="",b.top="",b.left="",b.opacity="",a&&(b[i]="")});var c=this.element[0].style;for(var d in this.originalStyle)c[d]=this.originalStyle[d];this.element.unbind(".isotope").undelegate("."+b.hiddenClass,"click").removeClass(b.containerClass).removeData("isotope"),v.unbind(".isotope")},_getSegments:function(a){var b=this.options.layoutMode,c=a?"rowHeight":"columnWidth",d=a?"height":"width",e=a?"rows":"cols",g=this.element[d](),h,i=this.options[b]&&this.options[b][c]||this.$filteredAtoms["outer"+f(d)](!0)||g;h=Math.floor(g/i),h=Math.max(h,1),this[b][e]=h,this[b][c]=i},_checkIfSegmentsChanged:function(a){var b=this.options.layoutMode,c=a?"rows":"cols",d=this[b][c];return this._getSegments(a),this[b][c]!==d},_masonryReset:function(){this.masonry={},this._getSegments();var a=this.masonry.cols;this.masonry.colYs=[];while(a--)this.masonry.colYs.push(0)},_masonryLayout:function(a){var c=this,d=c.masonry;a.each(function(){var a=b(this),e=Math.ceil(a.outerWidth(!0)/d.columnWidth);e=Math.min(e,d.cols);if(e===1)c._masonryPlaceBrick(a,d.colYs);else{var f=d.cols+1-e,g=[],h,i;for(i=0;i<f;i++)h=d.colYs.slice(i,i+e),g[i]=Math.max.apply(Math,h);c._masonryPlaceBrick(a,g)}})},_masonryPlaceBrick:function(a,b){var c=Math.min.apply(Math,b),d=0;for(var e=0,f=b.length;e<f;e++)if(b[e]===c){d=e;break}var g=this.masonry.columnWidth*d,h=c;this._pushPosition(a,g,h);var i=c+a.outerHeight(!0),j=this.masonry.cols+1-f;for(e=0;e<j;e++)this.masonry.colYs[d+e]=i},_masonryGetContainerSize:function(){var a=Math.max.apply(Math,this.masonry.colYs);return{height:a}},_masonryResizeChanged:function(){return this._checkIfSegmentsChanged()},_fitRowsReset:function(){this.fitRows={x:0,y:0,height:0}},_fitRowsLayout:function(a){var c=this,d=this.element.width(),e=this.fitRows;a.each(function(){var a=b(this),f=a.outerWidth(!0),g=a.outerHeight(!0);e.x!==0&&f+e.x>d&&(e.x=0,e.y=e.height),c._pushPosition(a,e.x,e.y),e.height=Math.max(e.y+g,e.height),e.x+=f})},_fitRowsGetContainerSize:function(){return{height:this.fitRows.height}},_fitRowsResizeChanged:function(){return!0},_cellsByRowReset:function(){this.cellsByRow={index:0},this._getSegments(),this._getSegments(!0)},_cellsByRowLayout:function(a){var c=this,d=this.cellsByRow;a.each(function(){var a=b(this),e=d.index%d.cols,f=Math.floor(d.index/d.cols),g=(e+.5)*d.columnWidth-a.outerWidth(!0)/2,h=(f+.5)*d.rowHeight-a.outerHeight(!0)/2;c._pushPosition(a,g,h),d.index++})},_cellsByRowGetContainerSize:function(){return{height:Math.ceil(this.$filteredAtoms.length/this.cellsByRow.cols)*this.cellsByRow.rowHeight+this.offset.top}},_cellsByRowResizeChanged:function(){return this._checkIfSegmentsChanged()},_straightDownReset:function(){this.straightDown={y:0}},_straightDownLayout:function(a){var c=this;a.each(function(a){var d=b(this);c._pushPosition(d,0,c.straightDown.y),c.straightDown.y+=d.outerHeight(!0)})},_straightDownGetContainerSize:function(){return{height:this.straightDown.y}},_straightDownResizeChanged:function(){return!0},_masonryHorizontalReset:function(){this.masonryHorizontal={},this._getSegments(!0);var a=this.masonryHorizontal.rows;this.masonryHorizontal.rowXs=[];while(a--)this.masonryHorizontal.rowXs.push(0)},_masonryHorizontalLayout:function(a){var c=this,d=c.masonryHorizontal;a.each(function(){var a=b(this),e=Math.ceil(a.outerHeight(!0)/d.rowHeight);e=Math.min(e,d.rows);if(e===1)c._masonryHorizontalPlaceBrick(a,d.rowXs);else{var f=d.rows+1-e,g=[],h,i;for(i=0;i<f;i++)h=d.rowXs.slice(i,i+e),g[i]=Math.max.apply(Math,h);c._masonryHorizontalPlaceBrick(a,g)}})},_masonryHorizontalPlaceBrick:function(a,b){var c=Math.min.apply(Math,b),d=0;for(var e=0,f=b.length;e<f;e++)if(b[e]===c){d=e;break}var g=c,h=this.masonryHorizontal.rowHeight*d;this._pushPosition(a,g,h);var i=c+a.outerWidth(!0),j=this.masonryHorizontal.rows+1-f;for(e=0;e<j;e++)this.masonryHorizontal.rowXs[d+e]=i},_masonryHorizontalGetContainerSize:function(){var a=Math.max.apply(Math,this.masonryHorizontal.rowXs);return{width:a}},_masonryHorizontalResizeChanged:function(){return this._checkIfSegmentsChanged(!0)},_fitColumnsReset:function(){this.fitColumns={x:0,y:0,width:0}},_fitColumnsLayout:function(a){var c=this,d=this.element.height(),e=this.fitColumns;a.each(function(){var a=b(this),f=a.outerWidth(!0),g=a.outerHeight(!0);e.y!==0&&g+e.y>d&&(e.x=e.width,e.y=0),c._pushPosition(a,e.x,e.y),e.width=Math.max(e.x+f,e.width),e.y+=g})},_fitColumnsGetContainerSize:function(){return{width:this.fitColumns.width}},_fitColumnsResizeChanged:function(){return!0},_cellsByColumnReset:function(){this.cellsByColumn={index:0},this._getSegments(),this._getSegments(!0)},_cellsByColumnLayout:function(a){var c=this,d=this.cellsByColumn;a.each(function(){var a=b(this),e=Math.floor(d.index/d.rows),f=d.index%d.rows,g=(e+.5)*d.columnWidth-a.outerWidth(!0)/2,h=(f+.5)*d.rowHeight-a.outerHeight(!0)/2;c._pushPosition(a,g,h),d.index++})},_cellsByColumnGetContainerSize:function(){return{width:Math.ceil(this.$filteredAtoms.length/this.cellsByColumn.rows)*this.cellsByColumn.columnWidth}},_cellsByColumnResizeChanged:function(){return this._checkIfSegmentsChanged(!0)},_straightAcrossReset:function(){this.straightAcross={x:0}},_straightAcrossLayout:function(a){var c=this;a.each(function(a){var d=b(this);c._pushPosition(d,c.straightAcross.x,0),c.straightAcross.x+=d.outerWidth(!0)})},_straightAcrossGetContainerSize:function(){return{width:this.straightAcross.x}},_straightAcrossResizeChanged:function(){return!0}},b.fn.imagesLoaded=function(a){function h(){a.call(c,d)}function i(a){var c=a.target;c.src!==f&&b.inArray(c,g)===-1&&(g.push(c),--e<=0&&(setTimeout(h),d.unbind(".imagesLoaded",i)))}var c=this,d=c.find("img").add(c.filter("img")),e=d.length,f="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",g=[];return e||h(),d.bind("load.imagesLoaded error.imagesLoaded",i).each(function(){var a=this.src;this.src=f,this.src=a}),c};var w=function(b){a.console&&a.console.error(b)};b.fn.isotope=function(a,c){if(typeof a=="string"){var d=Array.prototype.slice.call(arguments,1);this.each(function(){var c=b.data(this,"isotope");if(!c){w("cannot call methods on isotope prior to initialization; attempted to call method '"+a+"'");return}if(!b.isFunction(c[a])||a.charAt(0)==="_"){w("no such method '"+a+"' for isotope instance");return}c[a].apply(c,d)})}else this.each(function(){var d=b.data(this,"isotope");d?(d.option(a),d._init(c)):b.data(this,"isotope",new b.Isotope(a,this,c))});return this}})(window,jQuery);



/**
 * jQuery.ScrollTo - Easy element scrolling using jQuery.
 * Copyright (c) 2007-2008 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
 * Dual licensed under MIT and GPL.
 * Date: 9/11/2008
 * @author Ariel Flesler
 * @version 1.4
 *
 * http://flesler.blogspot.com/2007/10/jqueryscrollto.html
 * Required for FAQ, Scroll to top page
 ---------------------------------------------*/
;(function(h){var m=h.scrollTo=function(b,c,g){h(window).scrollTo(b,c,g)};m.defaults={axis:'y',duration:1};m.window=function(b){return h(window).scrollable()};h.fn.scrollable=function(){return this.map(function(){var b=this.parentWindow||this.defaultView,c=this.nodeName=='#document'?b.frameElement||b:this,g=c.contentDocument||(c.contentWindow||c).document,i=c.setInterval;return c.nodeName=='IFRAME'||i&&h.browser.safari?g.body:i?g.documentElement:this})};h.fn.scrollTo=function(r,j,a){if(typeof j=='object'){a=j;j=0}if(typeof a=='function')a={onAfter:a};a=h.extend({},m.defaults,a);j=j||a.speed||a.duration;a.queue=a.queue&&a.axis.length>1;if(a.queue)j/=2;a.offset=n(a.offset);a.over=n(a.over);return this.scrollable().each(function(){var k=this,o=h(k),d=r,l,e={},p=o.is('html,body');switch(typeof d){case'number':case'string':if(/^([+-]=)?\d+(px)?$/.test(d)){d=n(d);break}d=h(d,this);case'object':if(d.is||d.style)l=(d=h(d)).offset()}h.each(a.axis.split(''),function(b,c){var g=c=='x'?'Left':'Top',i=g.toLowerCase(),f='scroll'+g,s=k[f],t=c=='x'?'Width':'Height',v=t.toLowerCase();if(l){e[f]=l[i]+(p?0:s-o.offset()[i]);if(a.margin){e[f]-=parseInt(d.css('margin'+g))||0;e[f]-=parseInt(d.css('border'+g+'Width'))||0}e[f]+=a.offset[i]||0;if(a.over[i])e[f]+=d[v]()*a.over[i]}else e[f]=d[i];if(/^\d+$/.test(e[f]))e[f]=e[f]<=0?0:Math.min(e[f],u(t));if(!b&&a.queue){if(s!=e[f])q(a.onAfterFirst);delete e[f]}});q(a.onAfter);function q(b){o.animate(e,j,a.easing,b&&function(){b.call(this,r,a)})};function u(b){var c='scroll'+b,g=k.ownerDocument;return p?Math.max(g.documentElement[c],g.body[c]):k[c]}}).end()};function n(b){return typeof b=='object'?b:{top:b,left:b}}})(jQuery);


/**
 *  jQuery Plugin highlightFade (jquery.offput.ca/highlightFade)
 *  (c) 2006 Blair Mitchelmore (offput.ca) blair@offput.ca
 */
/**
 * This is version 0.7 of my highlightFade plugin. It follows the yellow fade technique of Web 2.0 fame
 * but expands it to allow any starting colour and allows you to specify the end colour as well.
 *
 * For the moment, I'm done with this plug-in. Unless I come upon a really cool feature it should have
 * this plug-in will only receive updates to ensure future compatibility with jQuery.
 *
 * As of now (Aug. 16, 2006) the plugin has been written with the 1.0.1 release of jQuery (rev 249) which
 * is available from http://jquery.com/src/jquery-1.0.1.js
 *
 * A note regarding rgb() syntax: I noticed that most browsers implement rgb syntax as either an integer 
 * (0-255) or percentage (0-100%) value for each field, that is, rgb(i/p,i/p,i/p); however, the W3C 
 * standard clearly defines it as "either three integer values or three percentage values" [http://www.w3.org/TR/CSS21/syndata.html] 
 * which I choose to follow despite the error redundancy of the typical behaviour browsers employ.
 *
 * Changelog:
 *
 *    0.7:
 *        - Added the awesome custom attribute support written by George Adamson (slightly modified)
 *        - Removed bgColor plugin dependency seeing as attr is customizable now...
 *    0.6:
 *        - Abstracted getBGColor into its own plugin with optional test and data retrieval functions
 *        - Converted all $ references to jQuery references as John's code seems to be shifting away
 *          from that and I don't want to have to update this for a long time.
 *    0.5:
 *        - Added simple argument syntax for only specifying start colour of event
 *        - Removed old style argument syntax
 *        - Added 'interval', 'final, and 'end' properties
 *        - Renamed 'color' property to 'start'
 *        - Added second argument to $.highlightFade.getBGColor to bypass the e.highlighting check
 *    0.4:
 *        - Added rgb(%,%,%) color syntax
 *    0.3:
 *        - Fixed bug when event was called while parent was also running event corrupting the
 *          the background colour of the child
 *    0.2:
 *        - Fixed bug where an unspecified onComplete function made the page throw continuous errors
 *        - Fixed bug where multiple events on the same element would speed each subsequent event
 *    0.1:
 *        - Initial Release
 * 
 * @author          Blair Mitchelmore (blair@offput.ca)
 * @version         0.5
 ------------------------------------------------*/
jQuery.fn.highlightFade=function(a){var b=a&&a.constructor==String?{start:a}:a||{};var c=jQuery.highlightFade.defaults;var d=b["interval"]||c["interval"];var e=b["attr"]||c["attr"];var f={linear:function(a,b,c,d){return parseInt(a+d/c*(b-a))},sinusoidal:function(a,b,c,d){return parseInt(a+Math.sin(d/c*90*(Math.PI/180))*(b-a))},exponential:function(a,b,c,d){return parseInt(a+Math.pow(d/c,2)*(b-a))}};var g=b["iterator"]&&b["iterator"].constructor==Function?b["iterator"]:f[b["iterator"]]||f[c["iterator"]]||f["linear"];if(c["iterator"]&&c["iterator"].constructor==Function)g=c["iterator"];return this.each(function(){if(!this.highlighting)this.highlighting={};var a=this.highlighting[e]?this.highlighting[e].end:jQuery.highlightFade.getBaseValue(this,e)||[255,255,255];var f=jQuery.highlightFade.getRGB(b["start"]||b["colour"]||b["color"]||c["start"]||[255,255,128]);var h=jQuery.speed(b["speed"]||c["speed"]);var j=b["final"]||this.highlighting[e]&&this.highlighting[e].orig?this.highlighting[e].orig:jQuery.curCSS(this,e);if(b["end"]||c["end"])j=jQuery.highlightFade.asRGBString(a=jQuery.highlightFade.getRGB(b["end"]||c["end"]));if(typeof b["final"]!="undefined")j=b["final"];if(this.highlighting[e]&&this.highlighting[e].timer)window.clearInterval(this.highlighting[e].timer);this.highlighting[e]={steps:h.duration/d,interval:d,currentStep:0,start:f,end:a,orig:j,attr:e};jQuery.highlightFade(this,e,b["complete"],g)})};jQuery.highlightFade=function(a,b,c,d){a.highlighting[b].timer=window.setInterval(function(){var f=d(a.highlighting[b].start[0],a.highlighting[b].end[0],a.highlighting[b].steps,a.highlighting[b].currentStep);var g=d(a.highlighting[b].start[1],a.highlighting[b].end[1],a.highlighting[b].steps,a.highlighting[b].currentStep);var h=d(a.highlighting[b].start[2],a.highlighting[b].end[2],a.highlighting[b].steps,a.highlighting[b].currentStep);jQuery(a).css(b,jQuery.highlightFade.asRGBString([f,g,h]));if(a.highlighting[b].currentStep++>=a.highlighting[b].steps){jQuery(a).css(b,a.highlighting[b].orig||"");window.clearInterval(a.highlighting[b].timer);a.highlighting[b]=null;if(c&&c.constructor==Function)c.call(a)}},a.highlighting[b].interval)};jQuery.highlightFade.defaults={start:[255,255,128],interval:50,speed:400,attr:"backgroundColor"};jQuery.highlightFade.getRGB=function(a,b){var c;if(a&&a.constructor==Array&&a.length==3)return a;if(c=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(a))return[parseInt(c[1]),parseInt(c[2]),parseInt(c[3])];else if(c=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(a))return[parseFloat(c[1])*2.55,parseFloat(c[2])*2.55,parseFloat(c[3])*2.55];else if(c=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(a))return[parseInt("0x"+c[1]),parseInt("0x"+c[2]),parseInt("0x"+c[3])];else if(c=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(a))return[parseInt("0x"+c[1]+c[1]),parseInt("0x"+c[2]+c[2]),parseInt("0x"+c[3]+c[3])];else return jQuery.highlightFade.checkColorName(a)||b||null};jQuery.highlightFade.asRGBString=function(a){return"rgb("+a.join(",")+")"};jQuery.highlightFade.getBaseValue=function(a,b,c){var d,e;c=c||false;e=b=b||jQuery.highlightFade.defaults["attr"];do{d=jQuery(a).css(e||"backgroundColor");if(d!=""&&d!="transparent"||a.tagName.toLowerCase()=="body"||!c&&a.highlighting&&a.highlighting[b]&&a.highlighting[b].end)break;e=false}while(a=a.parentNode);if(!c&&a.highlighting&&a.highlighting[b]&&a.highlighting[b].end)d=a.highlighting[b].end;if(d==undefined||d==""||d=="transparent")d=[255,255,255];return jQuery.highlightFade.getRGB(d)};jQuery.highlightFade.checkColorName=function(a){if(!a)return null;switch(a.replace(/^\s*|\s*$/g,"").toLowerCase()){case"aqua":return[0,255,255];case"black":return[0,0,0];case"blue":return[0,0,255];case"fuchsia":return[255,0,255];case"gray":return[128,128,128];case"green":return[0,128,0];case"lime":return[0,255,0];case"maroon":return[128,0,0];case"navy":return[0,0,128];case"olive":return[128,128,0];case"purple":return[128,0,128];case"red":return[255,0,0];case"silver":return[192,192,192];case"teal":return[0,128,128];case"white":return[255,255,255];case"yellow":return[255,255,0]}};


/*! jCountdown 1.3 jQuery Plugin
* Copyright 2011 Tom Ellis http://www.webmuse.co.uk
* Licensed under MIT License
* See http://www.webmuse.co.uk/license/
* Required for Under construction page
*/
(function(k){k.fn.countdown=function(r){var x={date:new Date,updateTime:1E3,htmlTemplate:'%{d} <span class="cd-time">days</span> %{h} <span class="cd-time">hours</span> %{m} <span class="cd-time">mins</span> %{s} <span class="cd-time">sec</span>',minus:false,onChange:null,onComplete:null,onResume:null,onPause:null,leadingZero:false,offset:null,direction:"down"},y=[].slice,l=Math.floor,t=/(%\{d\}|%\{h\}|%\{m\}|%\{s\})/g,m=/%\{d\}/,n=/%\{h\}/,o=/%\{m\}/,p=/%\{s\}/,u=function(c){c=c||0;var a=0,b=new Date;
c*=36E5;a=b.getTime()- -b.getTimezoneOffset()/60*36E5;c=b.setTime(a+c);return new Date(c)},v=function(){var c,a,b,f,d,h,g;c="";var e=this.data("jcdSettings");if(e){c=e.htmlTemplate;a=e.offset===null?new Date:u(e.offset);b=new Date(e.date);f=(e.direction==="down"?b.getTime()-a.getTime():a.getTime()-b.getTime())/864E5;d=l(f);h=(f-d)*24;f=l(h);g=l((h-f)*60);h=l(((h-f)*60-g)*60);if(e.leadingZero){if(d<10)d="0"+d;if(f<10)f="0"+f;if(g<10)g="0"+g;if(h<10)h="0"+h}if(e.direction==="down"&&(a<=b||e.minus))c=
c.replace(m,d).replace(n,f).replace(o,g).replace(p,h);else if(e.direction==="up"&&(b<=a||e.minus))c=c.replace(m,d).replace(n,f).replace(o,g).replace(p,h);else{c=c.replace(t,"00");e.hasCompleted=true}this.html(c);this.trigger("change",[e]);if(e.hasCompleted){this.trigger("complete.jcountdown");window.clearInterval(e.timer)}}},w={init:function(c){var a=k.extend({},x,c),b;b=a.htmlTemplate;return this.each(function(){var f=k(this),d={},h=a.offset===null?new Date:u(a.offset),g=new Date(a.date),e=(a.direction===
"down"?g.getTime()-h.getTime():h.getTime()-g.getTime())/864E5,i=l(e),j=(e-i)*24;e=l(j);var q=l((j-e)*60),s=l(((j-e)*60-q)*60);j="";a.onChange&&f.bind("change.jcountdown",a.onChange);a.onComplete&&f.bind("complete.jcountdown",a.onComplete);a.onPause&&f.bind("pause.jcountdown",a.onPause);a.onResume&&f.bind("resume.jcountdown",a.onResume);if(a.leadingZero){if(i<10)i="0"+i;if(e<10)e="0"+e;if(q<10)q="0"+q;if(s<10)s="0"+s}d.hasCompleted=false;if(a.direction==="down"&&(h<=g||a.minus))j=b.replace(m,i).replace(n,
e).replace(o,q).replace(p,s);else if(a.direction==="up"&&(g<=h||a.minus))j=b.replace(m,i).replace(n,e).replace(o,q).replace(p,s);else{j=b.replace(t,"00");d.hasCompleted=true}d.originalContent=k(this).html();d.date=a.date;d.leadingZero=a.leadingZero;d.updateTime=a.updateTime;d.direction=a.direction;d.template=a.htmlTemplate;d.htmlTemplate=a.htmlTemplate;d.minus=a.minus;d.offset=a.offset;d.onChange=a.onChange;d.onComplete=a.onComplete;d.onResume=a.onResume;d.onPause=a.onPause;if(!d.hasCompleted){h=
k.proxy(v,f);d.timer=window.setInterval(h,d.updateTime)}f.data("jcdSettings",d);f.html(j);if(d.hasCompleted){f.trigger("complete.jcountdown");window.clearInterval(d.timer)}})},changeSettings:function(c){return this.each(function(){var a=k(this),b,f,d,h,g,e,i,j;if(!a.data("jcdSettings"))return true;b=k.extend({},a.data("jcdSettings"),c);f=b.htmlTemplate;d=b.offset===null?new Date:u(b.offset);h=new Date(b.date);g=(b.direction==="down"?h.getTime()-d.getTime():d.getTime()-h.getTime())/864E5;e=l(g);i=
(g-e)*24;g=l(i);j=l((i-g)*60);i=l(((i-g)*60-j)*60);a.unbind(".jcountdown");window.clearInterval(b.timer);b.onChange&&a.bind("change.jcountdown",b.onChange);b.onComplete&&a.bind("complete.jcountdown",b.onComplete);b.onPause&&a.bind("pause.jcountdown",b.onPause);b.onResume&&a.bind("resume.jcountdown",b.onResume);if(b.direction==="down"&&(d<=h||b.minus))f.replace(m,e).replace(n,g).replace(o,j).replace(p,i);else if(b.direction==="up"&&(h<=d||b.minus))f.replace(m,e).replace(n,g).replace(o,j).replace(p,
i);else{f.replace(t,"00");b.hasCompleted=true}f=k.proxy(v,a);b.timer=window.setInterval(f,b.updateTime);a.data("jcdSettings",b);if(b.hasCompleted){a.trigger("complete.jcountdown");window.clearInterval(b.timer)}})},resume:function(){return this.each(function(){var c=k(this),a,b,f,d,h,g,e,i,j;b="";a=c.data("jcdSettings");if(!a)return true;f=k.proxy(v,c);b=a.htmlTemplate;d=a.offset===null?new Date:u(a.offset);h=new Date(a.date);g=(a.direction==="down"?h.getTime()-d.getTime():d.getTime()-h.getTime())/
864E5;e=l(g);i=(g-e)*24;g=l(i);j=l((i-g)*60);i=l(((i-g)*60-j)*60);if(a.direction==="down"&&(d<=h||a.minus))b=b.replace(m,e).replace(n,g).replace(o,j).replace(p,i);else if(a.direction==="up"&&(h<=d||a.minus))b=b.replace(m,e).replace(n,g).replace(o,j).replace(p,i);else{b=b.replace(t,"00");a.hasCompleted=true}a.timer=window.setInterval(f,a.updateTime);c.data("jcdSettings",a);c.trigger("resume.jcountdown");c.html(b).trigger("change.jcountdown");if(a.hasCompleted){c.trigger("complete.jcountdown");window.clearInterval(a.timer)}})},
pause:function(){return this.each(function(){var c=k(this),a=k.data(c[0],"jcdSettings");if(!a)return true;c.trigger("pause.jcountdown");window.clearInterval(a.timer)})},complete:function(){return this.each(function(){var c=k(this),a=c.data("jcdSettings");if(!a)return true;window.clearInterval(a.timer);a.hasCompleted=true;c.data("jcdSettings",a);c.trigger("complete.jcountdown")})},destroy:function(){return this.each(function(){var c=k(this),a;a=c.data("jcdSettings");if(!a)return true;c.unbind(".jcountdown");
c.html(a.originalContent);c.removeData("jcdSettings")})},getSettings:function(c){var a;if(a=k(this[0]).data("jcdSettings"))if(c){if(a[c])return a[c]}else return a}};if(w[r])return w[r].apply(this,y.call(arguments,1));else if(k.type(r)==="object"||!r)return w.init.apply(this,arguments);else k.error("Method "+r+" does not exist in the jCountdown Plugin")}})(jQuery);