$(
    function () {
        //hover delay for main nav
        $('.navigation > li').hoverIntent({
            over:     NAVIGATION.navOver,
            out:      NAVIGATION.navOut,
            timeout:  200,
            interval: 50
        });

        //open blog links in a new window/tab
        $('a.blog, a#menu-blog').click(function(e) {
            window.open($(this).attr('href'));
            e.preventDefault();
        });

        //isotope masonry
        $('#sortable-list').isotope({
            layoutMode : 'masonry',
            masonry : {
                columnWidth: 192
            }
        });

        //input field default text: use 'title' attribute for default copy
        $('input.has-default').defaultText();

        //news marquee
        $('#news-marquee').SetScroller({
            velocity: 	 60,
			direction: 	 'horizontal',
			startfrom: 	 'right',
			loop:		 'infinite',
			movetype: 	 'linear',
			onmouseover: 'pause',
			onmouseout:  'play',
			onstartup: 	 'play',
			cursor: 	 'pointer'
		});

        if ($('#train').exists()) {
            //train animation
            $('#train').slides({
                preload:            true,
                preloadImage:       '/images/ajax_spinner.gif',
                generateNextPrev:   false,
                generatePagination: false,
                container:          'train-container',
                paginationClass:    'train-pages',
                next:               'train-next',
                prev:               'train-prev',
                slideSpeed:         1000,  //milliseconds
                slideEasing:        'easeOutQuad',
                hoverPause:         true,
                pause:              9999999999,  //milliseconds to pause after interaction
                play:               4500,  //milliseconds between slides
                animationStart:     TRAIN.before,
                animationComplete:  TRAIN.after
            });
        
            //load initial title
            TRAIN.setTitle(1);
            
            //put js for slideshow here
            $('div[data-video-url]').each( function(ind) {
                var vidUrl = $(this).attr('data-video-url');
                var posterUrl = $('> img', $(this)).css('display', 'none').attr('src');
                var parent = $(this);
                parent.data('playing', false);
                $('.jp-jplayer', $(this)).attr('id', 'jplayer_' + ind);
                $('.jp-interface', $(this)).attr('id', 'jp_interface_' + ind);
                $('.jp-jplayer', $(this)).jPlayer({
                   ready: function() {
                       $(this).jPlayer('setMedia', {
                           m4v: vidUrl,
                           poster: posterUrl
                       });
                   },
                   backgroundColor: '#ffffff',
                   cssSelectorAncestor: '#jp_interface_' + ind,
                   solution: 'html,flash',
                   swfPath: '/js',
                   supplied: 'm4v',
                   errorAlerts: false,
                   warningAlerts: false,
                   play: function(){
                       parent.data('playing', true);
                        $('.jp-interface', $(this)).stop(true).fadeTo(500, 0);
                   },
                   pause: function(){
                       parent.data('playing', false);
                       $('.jp-interface', parent).stop(true).fadeTo(100, 1);
                   },
                   wmode: 'transparent',
                   preload: 'metadata',
                   size: {
                       width: 714,
                       height: 500
                   }
                });
                
                $(this).mouseover(function(){
                    $('.jp-interface', $(this)).stop(true).fadeTo(100, 1);
                }).mouseleave(function(){
                    if($(this).data('playing')){
                        $('.jp-interface', $(this)).stop(true).fadeTo(500, 0);
                    }
                });
               
            });
        }

        //slideshow animation
        if ($('#slideshow').exists()) {
            $('#slideshow').slides({
                preload:            true,
                preloadImage:       '/images/ajax_spinner.gif',
                generateNextPrev:   false,
                generatePagination: false,
                container:          'slideshow-container',
                effect:             'fade',
                crossfade:          true,
                fadeSpeed:          500,  //milliseconds
                hoverPause:         true,
                pause:              2000,  //milliseconds to pause after interaction
                play:               4500,  //milliseconds between slides
                animationStart:     SLIDESHOW.before,
                animationComplete:  SLIDESHOW.after
            });

            SLIDESHOW.showSlide(1);
            $('#slideshow a[data-image-no=1]').css('display', 'block');

            //subnav hover
            $('.client-list li[data-image-no], .project-list li[data-image-no]').hover(
                function() {
                    var imageNumber = $(this).attr('data-image-no');

                    //hilight this nav item
                    SLIDESHOW.showSlide(imageNumber);

                    //hide all but image associated with this nav item
                    $('#slideshow a').css('display', 'none');
                    $('#slideshow a[data-image-no=' + imageNumber + ']').css('display', 'block');

                    //stop slideshow
                    $.slides.stop();
                },
                function() {
                }
            );
        }

        //collaboratory page slideshow
        if ($('body.collaboratory').exists()) {
            //reveal slide controls on hover
            if (Modernizr.touch) {
                //always display title and controls for touchscreen
                $('.article-train h2').show();
                $('.article-train .train-footer').show();
            } else {
                //add hover effect
                $('.article-train').hoverIntent({
                    over:     function() { $('h2', this).fadeIn(1000); $('.train-footer', this).fadeIn(1000); },
                    out:      function() { $('h2', this).fadeOut(500); $('.train-footer', this).fadeOut(500); },
                    timeout:  500,
                    interval: 75
                });
            }

            //add slideshow function
            $.fn.addSlideshow = function() {
                //only add each slideshow once
                if ($(this).data('slideshow') != true) {
                    $(this).data('slideshow', true);

                    $(this).slides({
                        preload:            true,
                        preloadImage:       '/images/ajax_spinner.gif',
                        generateNextPrev:   false,
                        generatePagination: false,
                        container:          'train-container',
                        paginationClass:    'train-pages',
                        next:               'train-next',
                        prev:               'train-prev',
                        slideSpeed:         1000,  //milliseconds
                        slideEasing:        'easeOutQuad',
                        play:               4500
                    });
                }
            }; 

            //attach slideshow to first tab
            $('#tab-intro .article-train').addSlideshow();

            //attach slideshow code when tab is clicked
            $('#tab-nav-inject a').click(function(e) {
                $('#tab-inject .article-train').addSlideshow();
                e.preventDefault();
            });
            $('#tab-nav-imagine a').click(function(e) {
                $('#tab-imagine .article-train').addSlideshow();
                e.preventDefault();
            });
            $('#tab-nav-invent a').click(function(e) {
                $('#tab-invent .article-train').addSlideshow();
                e.preventDefault();
            });
        }

        //news page slideshow
        if ($('body.news').exists()) {
            $('.article-train').slides({
                preload:            true,
                preloadImage:       '/images/ajax_spinner.gif',
                generateNextPrev:   false,
                generatePagination: false,
                container:          'train-container',
                paginationClass:    'train-pages',
                next:               'train-next',
                prev:               'train-prev',
                slideSpeed:         1000,  //milliseconds
                slideEasing:        'easeOutQuad',
                play:               0  //don't autoplay
            });

            //reveal slide controls on hover
            if (Modernizr.touch) {
                //always display title and controls for touchscreen
                $('.article-train h2').show();
                $('.article-train .train-footer').show();
            } else {
                //add hover effect
                $('.article-train').hoverIntent({
                    over:     function() { $('h2', this).fadeIn(1000); $('.train-footer', this).fadeIn(1000); },
                    out:      function() { $('h2', this).fadeOut(500); $('.train-footer', this).fadeOut(500); },
                    timeout:  500,
                    interval: 75
                });
            }
        }

        //homepage news slideshow
        if ($('body.homepage .article-train').exists()) {
            $('body.homepage .article-train').slides({
                preload:            true,
                preloadImage:       '/images/ajax_spinner_black.gif',
                generateNextPrev:   false,
                generatePagination: false,
                container:          'train-container',
                paginationClass:    'train-pages',
                next:               'train-next',
                prev:               'train-prev',
                slideSpeed:         1000,  //milliseconds
                slideEasing:        'easeOutQuad',
                hoverPause:         true,
                pause:              4500,  //milliseconds to pause after interaction
                play:               4500  //milliseconds between slides
            });

            //reveal slide controls on hover
            if (Modernizr.touch) {
                //always display controls for touchscreen
                $('body.homepage .article-train .train-footer').show();
            } else {
                //add hover effect
                $('body.homepage .article-train').hoverIntent({
                    over:     function() { $('.train-footer', this).fadeIn(1000); },
                    out:      function() { $('.train-footer', this).fadeOut(500); },
                    timeout:  500,
                    interval: 75
                });
            }
        }

        //homepage project slideshow
        if ($('body.homepage .homepage-train').exists()) {
            $('body.homepage .homepage-train').slides({
                preload:            true,
                preloadImage:       '/images/ajax_spinner_black.gif',
                generateNextPrev:   false,
                generatePagination: false,
                container:          'train-container',
                paginationClass:    'train-pages',
                next:               'train-next',
                prev:               'train-prev',
                slideSpeed:         1000,  //milliseconds
                slideEasing:        'easeOutQuad',
                hoverPause:         true,
                pause:              4500,  //milliseconds to pause after interaction
                play:               4500,  //milliseconds between slides
                animationStart:     HOMEPAGE_TRAIN.before,
                animationComplete:  HOMEPAGE_TRAIN.after
            });

            //reveal slide controls on hover
            if (Modernizr.touch) {
                //always display controls for touchscreen
                $('body.homepage .homepage-train .train-footer').show();
            } else {
                //add hover effect
                $('body.homepage .homepage-train').hoverIntent({
                    over:     function() { $('.train-footer', this).fadeIn(1000); },
                    out:      function() { $('.train-footer', this).fadeOut(500); },
                    timeout:  500,
                    interval: 75
                });
            }

            //load initial title
            HOMEPAGE_TRAIN.setTitle(1);
        }
    }
);

NAVIGATION = {};
NAVIGATION.navOver = function() { $(this).addClass('hover'); };
NAVIGATION.navOut = function() { $(this).removeClass('hover'); };

TRAIN = {};
TRAIN.currentIndex = 1;
TRAIN.before = function(slideNo) {
    //fade out title
    $('#train .slide-title').fadeOut(400);
    
    //pause the actively playing video
    $('.slide:eq('+(TRAIN.currentIndex - 1)+') .jp-jplayer').jPlayer('pause');
}

TRAIN.after = function(slideNo) {
    //copy title
    TRAIN.setTitle(slideNo);

    //fade in title
    $('#train .slide-title').fadeIn(250);
    TRAIN.currentIndex = slideNo;
}

TRAIN.setTitle = function(slideNo) {
    $('#train .slide-title').html($('.slides_control :nth-child(' + slideNo + ') h2').html());
}

SLIDESHOW = {};
SLIDESHOW.before = function(slideNo) {
};

SLIDESHOW.after = function(slideNo) {
    SLIDESHOW.showSlide(slideNo);
};

SLIDESHOW.showSlide = function(imageNumber) {
    //hilight related subnav item
    $('ul.slideshow-nav li').removeClass('active');
    $('ul.slideshow-nav li[data-image-no=' + imageNumber + ']').addClass('active');
};

HOMEPAGE_TRAIN = {};
HOMEPAGE_TRAIN.before = function(slideNo) {
    //fade out title
    $('.homepage-train .slide-title').fadeOut(400);
}

HOMEPAGE_TRAIN.after = function(slideNo) {
    //copy title
    HOMEPAGE_TRAIN.setTitle(slideNo);

    //fade in title
    $('.homepage-train .slide-title').fadeIn(250);
}

HOMEPAGE_TRAIN.setTitle = function(slideNo) {
    $('.homepage-train .slide-title').html($('.slides_control :nth-child(' + slideNo + ') h2').html());
}

/**
* jQuery Extensions
*/
$.fn.exists = function() {
    return $(this).length !== 0;
};

/**
* hoverIntent r6 // 2011.02.26 // jQuery 1.5.1+
* <http://cherne.net/brian/resources/jquery.hoverIntent.html>
*
* @param  f  onMouseOver function || An object with configuration options
* @param  g  onMouseOut function  || Nothing (use configuration options object)
* @author    Brian Cherne brian(at)cherne(dot)net
*/
(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev])}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob)},cfg.interval)}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev])};var handleHover=function(e){var ev=jQuery.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t)}if(e.type=="mouseenter"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob)},cfg.interval)}}else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob)},cfg.timeout)}}};return this.bind('mouseenter',handleHover).bind('mouseleave',handleHover)}})(jQuery);

/*
* Slides, A Slideshow Plugin for jQuery
* Intructions: http://slidesjs.com
* By: Nathan Searles, http://nathansearles.com
* Version: 1.1.6
* Updated: March 23th, 2011
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Modifications:
* 05/03/2011 - EWL - added callable stop function: $.slides.stop()
* 06/15/2011 - EWL - slides are now not hidden when using sliding animation (fixes issues w/video)
*/
(function(a){a.fn.slides=function(b){b=a.extend({},a.fn.slides.option,b);return this.each(function(){function y(){if(b.pause){clearTimeout(c.data("pause"));clearInterval(c.data("interval"));u=setTimeout(function(){clearTimeout(c.data("pause"));v=setInterval(function(){w("next",i)},b.play);c.data("interval",v)},b.pause);c.data("pause",u)}else{x()}}function x(){clearInterval(c.data("interval"));clearTimeout(c.data("pause"))}function w(g,h,i){if(!p&&o){p=true;b.animationStart(n+1);switch(g){case"next":l=n;k=n+1;k=e===k?0:k;r=f*2;g=-f*2;n=k;break;case"prev":l=n;k=n-1;k=k===-1?e-1:k;r=0;g=0;n=k;break;case"pagination":k=parseInt(i,10);l=a("."+b.paginationClass+" li."+b.currentClass+" a",c).attr("href").match("[^#/]+$");if(k>l){r=f*2;g=-f*2}else{r=0;g=0}n=k;break}if(h==="fade"){if(b.crossfade){d.children(":eq("+k+")",c).css({zIndex:10}).fadeIn(b.fadeSpeed,b.fadeEasing,function(){if(b.autoHeight){d.animate({height:d.children(":eq("+k+")",c).outerHeight()},b.autoHeightSpeed,function(){d.children(":eq("+l+")",c).css({display:"none",zIndex:0});d.children(":eq("+k+")",c).css({zIndex:0});b.animationComplete(k+1);p=false})}else{d.children(":eq("+l+")",c).css({display:"none",zIndex:0});d.children(":eq("+k+")",c).css({zIndex:0});b.animationComplete(k+1);p=false}})}else{d.children(":eq("+l+")",c).fadeOut(b.fadeSpeed,b.fadeEasing,function(){if(b.autoHeight){d.animate({height:d.children(":eq("+k+")",c).outerHeight()},b.autoHeightSpeed,function(){d.children(":eq("+k+")",c).fadeIn(b.fadeSpeed,b.fadeEasing)})}else{d.children(":eq("+k+")",c).fadeIn(b.fadeSpeed,b.fadeEasing,function(){if(a.browser.msie){a(this).get(0).style.removeAttribute("filter")}})}b.animationComplete(k+1);p=false})}}else{d.children(":eq("+k+")").css({left:r,display:"block"});if(b.autoHeight){d.animate({left:g,height:d.children(":eq("+k+")").outerHeight()},b.slideSpeed,b.slideEasing,function(){d.css({left:-f});d.children(":eq("+k+")").css({left:f,zIndex:5});d.children(":eq("+l+")").css({left:f,zIndex:0});b.animationComplete(k+1);p=false})}else{d.animate({left:g},b.slideSpeed,b.slideEasing,function(){d.css({left:-f});d.children(":eq("+k+")").css({left:f,zIndex:5});d.children(":eq("+l+")").css({left:f,zIndex:0});b.animationComplete(k+1);p=false})}}if(b.pagination){a("."+b.paginationClass+" li."+b.currentClass,c).removeClass(b.currentClass);a("."+b.paginationClass+" li:eq("+k+")",c).addClass(b.currentClass)}}}a("."+b.container,a(this)).children().wrapAll('<div class="slides_control"/>');var c=a(this),d=a(".slides_control",c),e=d.children().size(),f=d.children().outerWidth(),g=d.children().outerHeight(),h=b.start-1,i=b.effect.indexOf(",")<0?b.effect:b.effect.replace(" ","").split(",")[0],j=b.effect.indexOf(",")<0?i:b.effect.replace(" ","").split(",")[1],k=0,l=0,m=0,n=0,o,p,q,r,s,t,u,v;if(e<2){return}if(h<0){h=0}if(h>e){h=e-1}if(b.start){n=h}if(b.randomize){d.randomize()}a("."+b.container,c).css({overflow:"hidden",position:"relative"});d.children().css({position:"absolute",top:0,left:d.children().outerWidth(),zIndex:0,display:"none"});d.css({position:"relative",width:f*3,height:g,left:-f});a("."+b.container,c).css({display:"block"});if(b.autoHeight){d.children().css({height:"auto"});d.animate({height:d.children(":eq("+h+")").outerHeight()},b.autoHeightSpeed)}if(b.preload&&d.find("img:eq("+h+")").length){a("."+b.container,c).css({background:"url("+b.preloadImage+") no-repeat 50% 50%"});var z=d.find("img:eq("+h+")").attr("src")+"?"+(new Date).getTime();if(a("img",c).parent().attr("class")!="slides_control"){t=d.children(":eq(0)")[0].tagName.toLowerCase()}else{t=d.find("img:eq("+h+")")}d.find("img:eq("+h+")").attr("src",z).load(function(){d.find(t+":eq("+h+")").fadeIn(b.fadeSpeed,b.fadeEasing,function(){a(this).css({zIndex:5});a("."+b.container,c).css({background:""});o=true;b.slidesLoaded()})})}else{d.children(":eq("+h+")").fadeIn(b.fadeSpeed,b.fadeEasing,function(){o=true;b.slidesLoaded()})}if(b.bigTarget){d.children().css({cursor:"pointer"});d.children().click(function(){w("next",i);return false})}if(b.hoverPause&&b.play){d.bind("mouseover",function(){x()});d.bind("mouseleave",function(){y()})}if(b.generateNextPrev){a("."+b.container,c).after('<a href="#" class="'+b.prev+'">Prev</a>');a("."+b.prev,c).after('<a href="#" class="'+b.next+'">Next</a>')}a("."+b.next,c).click(function(a){a.preventDefault();if(b.play){y()}w("next",i)});a("."+b.prev,c).click(function(a){a.preventDefault();if(b.play){y()}w("prev",i)});if(b.generatePagination){if(b.prependPagination){c.prepend("<ul class="+b.paginationClass+"></ul>")}else{c.append("<ul class="+b.paginationClass+"></ul>")}d.children().each(function(){a("."+b.paginationClass,c).append('<li><a href="#'+m+'">'+(m+1)+"</a></li>");m++})}else{a("."+b.paginationClass+" li a",c).each(function(){a(this).attr("href","#"+m);m++})}a("."+b.paginationClass+" li:eq("+h+")",c).addClass(b.currentClass);a("."+b.paginationClass+" li a",c).click(function(){if(b.play){y()}q=a(this).attr("href").match("[^#/]+$");if(n!=q){w("pagination",j,q)}return false});a("a.link",c).click(function(){if(b.play){y()}q=a(this).attr("href").match("[^#/]+$")-1;if(n!=q){w("pagination",j,q)}return false});if(b.play){v=setInterval(function(){w("next",i)},b.play);c.data("interval",v)}a.slides={};a.slides.stop=function(a){x()}})};a.fn.slides.option={preload:false,preloadImage:"/img/loading.gif",container:"slides_container",generateNextPrev:false,next:"next",prev:"prev",pagination:true,generatePagination:true,prependPagination:false,paginationClass:"pagination",currentClass:"current",fadeSpeed:350,fadeEasing:"",slideSpeed:350,slideEasing:"",start:1,effect:"slide",crossfade:false,randomize:false,play:0,pause:0,hoverPause:false,autoHeight:false,autoHeightSpeed:350,bigTarget:false,animationStart:function(){},animationComplete:function(){},slidesLoaded:function(){}};a.fn.randomize=function(b){function c(){return Math.round(Math.random())-.5}return a(this).each(function(){var d=a(this);var e=d.children();var f=e.length;if(f>1){e.hide();var g=[];for(i=0;i<f;i++){g[g.length]=i}g=g.sort(c);a.each(g,function(a,c){var f=e.eq(c);var g=f.clone(true);g.show().appendTo(d);if(b!==undefined){b(f,g)}f.remove()})}})}})(jQuery);
/*
 * jQuery EasIng v1.1.2 - http://gsgd.co.uk/sandbox/jquery.easIng.php
 *
 * Uses the built In easIng capabilities added In jQuery 1.1
 * to offer multiple easIng options
 *
 * Copyright (c) 2007 George Smith
 * Licensed under the MIT License:
 *   http://www.opensource.org/licenses/mit-license.php
 */
jQuery.extend(jQuery.easing,{easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b;},easeOutQuad:function(x,t,b,c,d){return -c*(t/=d)*(t-2)+b;}});

/**
 * Isotope v1.1.110503
 * An exquisite jQuery plugin for magical layouts
 * http://isotope.metafizzy.co
 *
 * Commercial use requires one-time license fee
 * http://metafizzy.co/#licenses
 *
 * Copyright 2011 David DeSandro / Metafizzy
 */
(function(k,f,s){var m=function(){var a=["Moz","Webkit","Khtml","O","Ms"];return function(b,c){c=c||document.documentElement;var d=c.style,e;if(typeof d[b]=="string")return b;b=b.charAt(0).toUpperCase()+b.slice(1);for(var g=0,h=a.length;g<h;g++){e=a[g]+b;if(typeof d[e]=="string")return e}}}(),n=m("transform"),t=document.documentElement,w=" -o- -moz- -ms- -webkit- -khtml- ".split(" "),o=[{name:"csstransforms",getResult:function(){return!!n}},{name:"csstransforms3d",getResult:function(){var a=!!m("perspective");
if(a){var b=document.createElement("style"),c=document.createElement("div");a="@media ("+w.join("transform-3d),(")+"modernizr)";b.textContent=a+"{#modernizr{height:3px}}";(document.head||document.getElementsByTagName("head")[0]).appendChild(b);c.id="modernizr";t.appendChild(c);a=c.offsetHeight===3;b.parentNode.removeChild(b);c.parentNode.removeChild(c)}return!!a}},{name:"csstransitions",getResult:function(){return!!m("transitionProperty")}}],j,u=o.length;if(k.Modernizr)for(j=0;j<u;j++){var p=o[j];
Modernizr.hasOwnProperty(p.name)||Modernizr.addTest(p.name,p.getResult)}else k.Modernizr=function(){var a={_version:"1.6ish: miniModernizr for Isotope"},b=[],c,d;for(j=0;j<u;j++){c=o[j];d=c.getResult();a[c.name]=d;c=(d?"":"no-")+c.name;b.push(c)}t.className+=" "+b.join(" ");return a}();if(Modernizr.csstransforms){var x=Modernizr.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+") "}},v=function(a,b,c){var d=f(a),e=d.data("isoTransform")||{},g={},h,i={};g[b]=c;f.extend(e,g);for(h in e){b=e[h];i[h]=x[h](b)}h=(i.translate||"")+(i.scale||"");d.data("isoTransform",e);a.style[n]=h};f.cssNumber.scale=true;f.cssHooks.scale={set:function(a,b){if(typeof b==="string")b=parseFloat(b);v(a,"scale",b)},get:function(a){return(a=f.data(a,"isoTransform"))&&a.scale?a.scale:1}};f.fx.step.scale=function(a){f.cssHooks.scale.set(a.elem,
a.now+a.unit)};f.cssNumber.translate=true;f.cssHooks.translate={set:function(a,b){v(a,"translate",b)},get:function(a){return(a=f.data(a,"isoTransform"))&&a.translate?a.translate:[0,0]}}}var q=f.event,r;q.special.smartresize={setup:function(){f(this).bind("resize",q.special.smartresize.handler)},teardown:function(){f(this).unbind("resize",q.special.smartresize.handler)},handler:function(a,b){var c=this,d=arguments;a.type="smartresize";r&&clearTimeout(r);r=setTimeout(function(){jQuery.event.handle.apply(c,
d)},b==="execAsap"?0:100)}};f.fn.smartresize=function(a){return a?this.bind("smartresize",a):this.trigger("smartresize",["execAsap"])};f.Isotope=function(a,b){this.element=f(b);this._create(a);this._init()};var l=["overflow","position","width","height"];f.Isotope.settings={resizable:true,layoutMode:"masonry",containerClass:"isotope",itemClass:"isotope-item",hiddenClass:"isotope-hidden",hiddenStyle:Modernizr.csstransforms&&!f.browser.opera?{opacity:0,scale:0.0010}:{opacity:0},visibleStyle:Modernizr.csstransforms&&
!f.browser.opera?{opacity:1,scale:1}:{opacity:1},animationEngine:f.browser.opera?"jquery":"best-available",animationOptions:{queue:false,duration:800},sortBy:"original-order",sortAscending:true,resizesContainer:true,transformsEnabled:true,itemPositionDataEnabled:false};f.Isotope.prototype={_filterFind:function(a,b){return b?a.filter(b).add(a.find(b)):a},_create:function(a){this.options=f.extend(true,{},f.Isotope.settings,a);this.styleQueue=[];this.elemCount=0;this.$allAtoms=this._filterFind(this.element.children(),
this.options.itemSelector);a=this.element[0].style;this.originalStyle={};for(var b=0,c=l.length;b<c;b++){var d=l[b];this.originalStyle[d]=a[d]||null}this.element.css({overflow:"hidden",position:"relative"});a=false;switch(this.options.animationEngine.toLowerCase().replace(/[ _\-]/g,"")){case "css":case "none":this.applyStyleFnName="css";break;case "jquery":this.applyStyleFnName="animate";a=true;break;default:this.applyStyleFnName=Modernizr.csstransitions?"css":"animate"}this.getPositionStyles=(this.usingTransforms=
this.options.transformsEnabled&&Modernizr.csstransforms&&Modernizr.csstransitions&&!a)?this._translate:this._positionAbs;this.options.getSortData=f.extend(this.options.getSortData,{"original-order":function(g,h){return h.elemCount}});this._setupAtoms(this.$allAtoms);a=f(document.createElement("div"));this.element.prepend(a);this.posTop=Math.round(a.position().top);this.posLeft=Math.round(a.position().left);a.remove();var e=this;setTimeout(function(){e.element.addClass(e.options.containerClass)},0);
this.options.resizable&&f(k).bind("smartresize.isotope",function(){e.element.isotope("resize")})},_init:function(a){this.$filteredAtoms=this._filter(this.$allAtoms);this._sort();this.reLayout(a)},option:function(a,b){if(f.isPlainObject(a))this.options=f.extend(true,this.options,a);else if(a&&typeof b==="undefined")return this.options[a];else this.options[a]=b;return this},_setupAtoms:function(a){var b={position:"absolute"};if(this.usingTransforms){b.left=0;b.top=0}a.css(b).addClass(this.options.itemClass);
this.updateSortData(a,true)},_filter:function(a){var b=this.options.filter===""?"*":this.options.filter;if(b){var c=this.options.hiddenClass,d="."+c,e=a.not(d),g=a.filter(d);d=g;a=a.filter(b);if(b!=="*"){d=g.filter(b);b=e.not(b).toggleClass(c);b.addClass(c);this.styleQueue.push({$el:b,style:this.options.hiddenStyle})}this.styleQueue.push({$el:d,style:this.options.visibleStyle});d.removeClass(c)}return a},updateSortData:function(a,b){var c=this,d=this.options.getSortData,e,g;a.each(function(){e=f(this);
g={};for(var h in d)g[h]=d[h](e,c);e.data("isotope-sort-data",g);b&&c.elemCount++})},_sort:function(){var a=this,b=function(d){return f(d).data("isotope-sort-data")[a.options.sortBy]},c=this.options.sortAscending?1:-1;this.$filteredAtoms.sort(function(d,e){var g=b(d),h=b(e);return(g>h?1:g<h?-1:0)*c});return this},_translate:function(a,b){return{translate:[a,b]}},_positionAbs:function(a,b){return{left:a,top:b}},_pushPosition:function(a,b,c){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);this.options.resizesContainer&&this.styleQueue.push({$el:this.element,style:this["_"+c+"GetContainerSize"]()});var d=this.applyStyleFnName==="animate"&&!this.isLaidOut?"css":this.applyStyleFnName,e=this.options.animationOptions;f.each(this.styleQueue,function(g,h){h.$el[d](h.style,e)});this.styleQueue=[];b&&b.call(a);this.isLaidOut=true;
return this},resize:function(){return this["_"+this.options.layoutMode+"Resize"]()},reLayout:function(a){return this["_"+this.options.layoutMode+"Reset"]().layout(this.$filteredAtoms,a)},addItems:function(a,b){var c=this._filterFind(a,this.options.itemSelector);this._setupAtoms(c);this.$allAtoms=this.$allAtoms.add(c);b&&b(c)},insert:function(a,b){this.element.append(a);var c=this;this.addItems(a,function(d){d=c._filter(d);c.$filteredAtoms=c.$filteredAtoms.add(d)});this._sort().reLayout(b)},appended:function(a,
b){var c=this;this.addItems(a,function(d){c.$filteredAtoms=c.$filteredAtoms.add(d);c.layout(d,b)})},remove:function(a){this.$allAtoms=this.$allAtoms.not(a);this.$filteredAtoms=this.$filteredAtoms.not(a);a.remove()},_shuffleArray:function(a){var b,c,d=a.length;if(d)for(;--d;){c=~~(Math.random()*(d+1));b=a[c];a[c]=a[d];a[d]=b}return a},shuffle:function(a){this.options.sortBy="shuffle";this.$allAtoms=this._shuffleArray(this.$allAtoms);this.$filteredAtoms=this._filter(this.$allAtoms);return this.reLayout(a)},
destroy:function(){var a=this.usingTransforms;this.$allAtoms.removeClass(this.options.hiddenClass+" "+this.options.itemClass).each(function(){this.style.position=null;this.style.top=null;this.style.left=null;this.style.opacity=null;if(a)this.style[n]=null});for(var b=this.element[0].style,c=0,d=l.length;c<d;c++){var e=l[c];b[e]=this.originalStyle[e]}this.element.unbind(".isotope").removeClass(this.options.containerClass).removeData("isotope");f(k).unbind(".isotope")},_getSegments:function(a,b){var c=
b?"rowHeight":"columnWidth",d=b?"height":"width",e=b?"Height":"Width",g=b?"rows":"cols";this[d]=this.element[d]();e=this.options[a]&&this.options[a][c]||this.$filteredAtoms["outer"+e](true)||this[d];d=Math.floor(this[d]/e);d=Math.max(d,1);this[a][g]=d;this[a][c]=e;return this},_masonryPlaceBrick:function(a,b,c){b=Math.min.apply(Math,c);for(var d=b+a.outerHeight(true),e=c.length,g=e,h=this.masonry.cols+1-e;e--;)if(c[e]===b)g=e;this._pushPosition(a,this.masonry.columnWidth*g+this.posLeft,b);for(e=0;e<
h;e++)this.masonry.colYs[g+e]=d},_masonryLayout:function(a){var b=this;a.each(function(){var c=f(this),d=Math.ceil(c.outerWidth(true)/b.masonry.columnWidth);d=Math.min(d,b.masonry.cols);if(d===1)b._masonryPlaceBrick(c,b.masonry.cols,b.masonry.colYs);else{var e=b.masonry.cols+1-d,g=[],h,i;for(i=0;i<e;i++){h=b.masonry.colYs.slice(i,i+d);g[i]=Math.max.apply(Math,h)}b._masonryPlaceBrick(c,e,g)}});return this},_masonryReset:function(){this.masonry={};this._getSegments("masonry");var a=this.masonry.cols;
for(this.masonry.colYs=[];a--;)this.masonry.colYs.push(this.posTop);return this},_masonryResize:function(){var a=this.masonry.cols;this._getSegments("masonry");this.masonry.cols!==a&&this.reLayout();return this},_masonryGetContainerSize:function(){return{height:Math.max.apply(Math,this.masonry.colYs)-this.posTop}},_fitRowsLayout:function(a){this.width=this.element.width();var b=this;a.each(function(){var c=f(this),d=c.outerWidth(true),e=c.outerHeight(true);if(b.fitRows.x!==0&&d+b.fitRows.x>b.width){b.fitRows.x=
0;b.fitRows.y=b.fitRows.height}b._pushPosition(c,b.fitRows.x+b.posLeft,b.fitRows.y+b.posTop);b.fitRows.height=Math.max(b.fitRows.y+e,b.fitRows.height);b.fitRows.x+=d});return this},_fitRowsReset:function(){this.fitRows={x:0,y:0,height:0};return this},_fitRowsGetContainerSize:function(){return{height:this.fitRows.height}},_fitRowsResize:function(){return this.reLayout()},_cellsByRowReset:function(){this.cellsByRow={};this._getSegments("cellsByRow");this.cellsByRow.rowHeight=this.options.cellsByRow.rowHeight||
this.$allAtoms.outerHeight(true);return this},_cellsByRowLayout:function(a){var b=this,c=this.cellsByRow.cols;this.cellsByRow.atomsLen=a.length;a.each(function(d){var e=f(this),g=(d%c+0.5)*b.cellsByRow.columnWidth-e.outerWidth(true)/2+b.posLeft;d=(~~(d/c)+0.5)*b.cellsByRow.rowHeight-e.outerHeight(true)/2+b.posTop;b._pushPosition(e,g,d)});return this},_cellsByRowGetContainerSize:function(){return{height:Math.ceil(this.cellsByRow.atomsLen/this.cellsByRow.cols)*this.cellsByRow.rowHeight+this.posTop}},
_cellsByRowResize:function(){var a=this.cellsByRow.cols;this._getSegments("cellsByRow");this.cellsByRow.cols!==a&&this.reLayout();return this},_straightDownReset:function(){this.straightDown={y:0};return this},_straightDownLayout:function(a){var b=this;a.each(function(){var c=f(this);b._pushPosition(c,b.posLeft,b.straightDown.y+b.posTop);b.straightDown.y+=c.outerHeight(true)});return this},_straightDownGetContainerSize:function(){return{height:this.straightDown.y+this.posTop}},_straightDownResize:function(){this.reLayout();
return this},_masonryHorizontalPlaceBrick:function(a,b,c){b=Math.min.apply(Math,c);for(var d=b+a.outerWidth(true),e=c.length,g=e,h=this.masonryHorizontal.rows+1-e;e--;)if(c[e]===b)g=e;this._pushPosition(a,b,this.masonryHorizontal.rowHeight*g+this.posTop);for(e=0;e<h;e++)this.masonryHorizontal.rowXs[g+e]=d},_masonryHorizontalLayout:function(a){var b=this;a.each(function(){var c=f(this),d=Math.ceil(c.outerHeight(true)/b.masonryHorizontal.rowHeight);d=Math.min(d,b.masonryHorizontal.rows);if(d===1)b._masonryHorizontalPlaceBrick(c,
b.masonryHorizontal.rows,b.masonryHorizontal.rowXs);else{var e=b.masonryHorizontal.rows+1-d,g=[],h,i;for(i=0;i<e;i++){h=b.masonryHorizontal.rowXs.slice(i,i+d);g[i]=Math.max.apply(Math,h)}b._masonryHorizontalPlaceBrick(c,e,g)}});return this},_masonryHorizontalReset:function(){this.masonryHorizontal={};this._getSegments("masonryHorizontal",true);var a=this.masonryHorizontal.rows;for(this.masonryHorizontal.rowXs=[];a--;)this.masonryHorizontal.rowXs.push(this.posLeft);return this},_masonryHorizontalResize:function(){var a=
this.masonryHorizontal.rows;this._getSegments("masonryHorizontal",true);this.masonryHorizontal.rows!==a&&this.reLayout();return this},_masonryHorizontalGetContainerSize:function(){return{width:Math.max.apply(Math,this.masonryHorizontal.rowXs)-this.posLeft}},_fitColumnsReset:function(){this.fitColumns={x:0,y:0,width:0};return this},_fitColumnsLayout:function(a){var b=this;this.height=this.element.height();a.each(function(){var c=f(this),d=c.outerWidth(true),e=c.outerHeight(true);if(b.fitColumns.y!==
0&&e+b.fitColumns.y>b.height){b.fitColumns.x=b.fitColumns.width;b.fitColumns.y=0}b._pushPosition(c,b.fitColumns.x+b.posLeft,b.fitColumns.y+b.posTop);b.fitColumns.width=Math.max(b.fitColumns.x+d,b.fitColumns.width);b.fitColumns.y+=e});return this},_fitColumnsGetContainerSize:function(){return{width:this.fitColumns.width}},_fitColumnsResize:function(){return this.reLayout()},_cellsByColumnReset:function(){this.cellsByColumn={};this._getSegments("cellsByColumn",true);this.cellsByColumn.columnWidth=this.options.cellsByColumn.columnWidth||
this.$allAtoms.outerHeight(true);return this},_cellsByColumnLayout:function(a){var b=this,c=this.cellsByColumn.rows;this.cellsByColumn.atomsLen=a.length;a.each(function(d){var e=f(this),g=(~~(d/c)+0.5)*b.cellsByColumn.columnWidth-e.outerWidth(true)/2+b.posLeft;d=(d%c+0.5)*b.cellsByColumn.rowHeight-e.outerHeight(true)/2+b.posTop;b._pushPosition(e,g,d)});return this},_cellsByColumnGetContainerSize:function(){return{width:Math.ceil(this.cellsByColumn.atomsLen/this.cellsByColumn.rows)*this.cellsByColumn.columnWidth+
this.posLeft}},_cellsByColumnResize:function(){var a=this.cellsByColumn.rows;this._getSegments("cellsByColumn",true);this.cellsByColumn.rows!==a&&this.reLayout();return this}};f.fn.imagesLoaded=function(a){var b=this.find("img"),c=b.length,d=this;b.length||a.call(this);b.bind("load",function(){--c<=0&&a.call(d)}).each(function(){if(this.complete||this.complete===s){var e=this.src;this.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";this.src=e}});return this};f.widget=
f.widget||{};f.widget.bridge=f.widget.bridge||function(a,b){f.fn[a]=function(c){var d=typeof c==="string",e=Array.prototype.slice.call(arguments,1),g=this;c=!d&&e.length?f.extend.apply(null,[true,c].concat(e)):c;if(d&&c.charAt(0)==="_")return g;d?this.each(function(){var h=f.data(this,a);if(!h)return f.error("cannot call methods on "+a+" prior to initialization; attempted to call method '"+c+"'");if(!f.isFunction(h[c]))return f.error("no such method '"+c+"' for "+a+" widget instance");var i=h[c].apply(h,
e);if(i!==h&&i!==s){g=i;return false}}):this.each(function(){var h=f.data(this,a);h?h.option(c||{})._init():f.data(this,a,new b(c,this))});return g}};f.widget.bridge("isotope",f.Isotope)})(window,jQuery);

/*
 * jquery.defaultText.js
 *
 * Author: James Brumond
 * Version: 0.3.2
 * Date Created: 2 June 2010
 * Date Last Mod: 12 July 2010
 *
 * Copyright 2010 James Brumond
 * Dual licensed under MIT and GPL
 */
(function(window,$){var
_hasOwn=function(o,i){if(typeof jsk!='undefined')
return jsk.helpers.hasOwnProperty(o,i);if(o.hasOwnProperty)
return o.hasOwnProperty(i);return null;},_forOwn=function(obj,func){for(var i in obj){if(_hasOwn(obj,i)){func(i,obj[i]);}}},_elem=function(tag,options){var elem=document.createElement(tag),options=options||{};_forOwn(options,function(i){switch(i){case"style":setStyle(elem,options[i]);break;default:elem[i]=options[i];break;}});return elem;},setStyle=setStyle||(function(elem,props){_forOwn(props,function(i){elem.style[i]=props[i];});}),getStyle=function(elem,styleProp){var style=null;if(elem.currentStyle)
style=elem.currentStyle[styleProp];else if(window.getComputedStyle)
style=document.defaultView.getComputedStyle(elem,null)[styleProp];return style;};$.fn.defaultText=function(options){var options=options||{};if(typeof options!='string'){options.defText=options.defText||'';options.textStyle=options.textStyle||{};options.inputStyle=options.inputStyle||{};options.onfocus=options.onfocus||function(){};options.onblur=options.onblur||function(){};}
return this.filter('input[type=text], input[type=password], textarea').each(function(){var input=this;if(typeof input._defaultText=='undefined'){if(typeof options=='string')return true;input._defaultText={options:options,reset:function(){setStyle(input._defaultText.span,{position:'absolute',padding:'0px',margin:'0px',fontFamily:getStyle(input,'fontFamily'),fontSize:getStyle(input,'fontSize'),fontWeight:getStyle(input,'fontWeight'),color:getStyle(input,'color'),width:getStyle(input,'width'),cursor:'text',backgroundColor:getStyle(input,'backgroundColor'),zIndex:(parseInt(getStyle(input,'zIndex'))||0)+1});setStyle(span,input._defaultText.options.textStyle);setStyle(input,input._defaultText.options.inputStyle);input._defaultText.position();},span:null,click:null,position:null}}
if(typeof options=='string'){switch(options){case'reset':if(typeof input._defaultText.reset!='function')return true;input._defaultText.reset();break;case'destroy':if(typeof input._defaultText.reset!='function')return true;input._defaultText.span.parentNode.removeChild(input._defaultText.span);input._defaultText=false;break;default:break;}}else{var text=(options.defText=='')?input.title:options.defText,span=input.parentNode.appendChild(_elem('span',{style:{position:'absolute',padding:'0px',margin:'0px',fontFamily:getStyle(input,'fontFamily'),fontSize:getStyle(input,'fontSize'),fontWeight:getStyle(input,'fontWeight'),color:getStyle(input,'color'),width:getStyle(input,'width'),cursor:'text',backgroundColor:getStyle(input,'backgroundColor'),zIndex:(parseInt(getStyle(input,'zIndex'))||0)+1},innerHTML:text,className:'default'}));input._defaultText.click=function(){$(span).hide();input.focus();options.onfocus.call(input);};input._defaultText.position=function(){span.style.top=parseInt(getStyle(input,'paddingTop'))+
parseInt(getStyle(input,'borderTopWidth'))+input.offsetTop+'px';span.style.left=parseInt(getStyle(input,'paddingLeft'))+
parseInt(getStyle(input,'borderLeftWidth'))+input.offsetLeft+'px';};if(String(input.id).length>0){span.id='default-'+input.id;}
setStyle(span,options.textStyle);setStyle(input,options.inputStyle);if(input.defValue)input.parentNode.removeChild(input.defValue);input.defValue=span;$(input).add(span).focus(function(){input._defaultText.click();}).click(function(){input._defaultText.click();});$(input).blur(function(){if(input.value=='')$(span).show();options.onblur.call(input);});$(window).resize(input._defaultText.position);$(window).focus(input._defaultText.position);window.setTimeout(input._defaultText.reset,50);window.setTimeout(input._defaultText.reset,500);window.setTimeout(input._defaultText.reset,3000);input._defaultText.span=span;}});};}(window,jQuery));

/*

	jQuery Scroller plugin
	Copyright (c) 2010 Max Vergelli

	For support and tutorials visit
	http://maxvergelli.wordpress.com/

	License: GNU Lesser General Public License (LGPL)
	at http://opensource.org/licenses/lgpl-2.1.php

	This plugin is free software;  you can redistribute it  and/or  modify  it
	under the terms of the GNU Lesser General Public License as  published  by
	the Free Software Foundation;  either version 2.1 of the License,  or  (at
	your option) any later version.
	This software is distributed in the hope  that  it  will  be  useful,  but
	WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
	or FITNESS FOR A PARTICULAR PURPOSE.  See the  GNU Lesser  General  Public
	License for more details.
	You should have received a copy of  the  GNU Lesser General Public License
	along with this library;  if not,  write to the  Free Software Foundation,
	Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

	THIS COMMENT AND COPYRIGHT NOTICE MUST BE RETAINED IN THE CODE AS IS FOR LEGAL USE

*/
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}('(6($){$.N.1k=6(){5.8().9();5.8().r(\'7\',[\'R\'])};$.N.1l=6(){5.8().9()};$.N.1m=6(a){5.8().9();5.8().V(\'7\');a=$.W(5.X(),a);5.Y(a)};$.N.1n=6(){5.8().9();5.8().w({s:0,t:0});5.8().V(\'7\')};$.N.Y=6(h){4 x={y:5};h=$.W({S:Z,10:\'11\',12:\'B\',P:\'1o\',13:\'T\',14:\'1p\',15:\'O\',16:\'O\',U:\'1q\'},h);4 i=z h.S==\'17\'?3(h.S):Z;4 j=h.10.E();4 k=h.12.E();4 l=z h.P==\'17\'&&h.P>0?3(h.P):-1;4 m=h.13.E();4 n=h.14.E();4 o=h.15.E();4 p=h.16.E();4 q=h.U.E();x.y.X(h);18();6 18(){x.y.w(\'U\',q);2(j==\'11\'){2(k!=\'B\'&&k!=\'t\'){k=\'B\'};19()}u{2(k!=\'F\'&&k!=\'s\'){k=\'F\'};1a()};2(n==\'O\'){x.y.1b(6(){$(5).8().9();$(5).8().r(\'7\',[\'R\'])})}u{x.y.1b(6(){$(5).8().9()})};2(o==\'O\'){x.y.1c(6(){$(5).8().9();$(5).8().r(\'7\',[\'R\'])})}u{x.y.1c(6(){$(5).8().9()})};2(p!=\'O\'){x.y.8().9()}};6 1a(){x.y.8().1d(\'7\',6(a,c){4 b=$(5);4 d=3(b.G().H());4 e=3(b.H());4 f=3(b.A().s);4 v=i>0&&i<C?(C-i)*C:1e;4 g=3(v*e/C)+v;2(m==\'Q\'){I(k){J\'F\':2(z c==\'D\'){b.w({s:d-e})};d=f-(e+d);K;L:2(z c==\'D\'){b.w({s:0})};d+=f+e}}u{I(k){J\'F\':2(z c==\'D\'){b.w({s:d});d=-e}u{d=f-(e+d)};K;L:2(z c==\'D\'){b.w({s:-e})}u{d+=f+e}}};2(l<0||l>0){2(l>0){l--};b.1f({s:d},{1g:g,1h:\'T\',1i:6(){b.r(\'7\')},1j:6(){I(m){J\'Q\':2(k==\'F\'){2(3(b.A().s)<=0){k=\'s\';b.9();b.r(\'7\')}}u{2(3(b.A().s)+3(b.H())>=3(b.G().H())){k=\'F\';b.9();b.r(\'7\')}};K;L:2(k==\'F\'){2(3(b.A().s)<-3(b.H())){b.9();b.r(\'7\')}}u{2(3(b.A().s)>3(b.G().H())){b.9();b.r(\'7\')}}}}})}}).r(\'7\')};6 19(){x.y.8().1d(\'7\',6(a,c){4 b=$(5);4 d=3(b.G().M());4 e=3(b.M());4 f=3(b.A().t);4 v=i>0&&i<C?(C-i)*C:1e;4 g=3(v*e/C)+v;2(m==\'Q\'){I(k){J\'B\':2(z c==\'D\'){b.w({t:d-e})};d=f-(e+d);K;L:2(z c==\'D\'){b.w({t:0})};d+=f+e}}u{I(k){J\'B\':2(z c==\'D\'){b.w({t:d});d=-e}u{d=f-(e+d)};K;L:2(z c==\'D\'){b.w({t:-e})}u{d+=f+e}}};2(l<0||l>0){2(l>0){l--};b.1f({t:d},{1g:g,1h:\'T\',1i:6(){b.r(\'7\')},1j:6(){I(m){J\'Q\':2(k==\'B\'){2(3(b.A().t)<=0){k=\'t\';b.9();b.r(\'7\')}}u{2(3(b.A().t)+3(b.M())>=3(b.G().M())){k=\'B\';b.9();b.r(\'7\')}};K;L:2(k==\'B\'){2(3(b.A().t)<-3(b.M())){b.9();b.r(\'7\')}}u{2(3(b.A().t)>3(b.G().M())){b.9();b.r(\'7\')}}}}})}}).r(\'7\')};1r 5}})(1s);',62,91,'||if|parseInt|var|this|function|marquee|children|stop||||||||||||||||||trigger|top|left|else||css|_|me|typeof|position|right|100|undefined|toLowerCase|bottom|parent|height|switch|case|break|default|width|fn|play|loop|pingpong|resume|velocity|linear|cursor|unbind|extend|data|SetScroller|50|direction|horizontal|startfrom|movetype|onmouseover|onmouseout|onstartup|number|main|scrollHorizontal|scrollVertical|mouseover|mouseout|bind|5000|animate|duration|easing|complete|step|PlayScroller|PauseScroller|ResetScroller|RemoveScroller|infinite|pause|pointer|return|jQuery'.split('|'),0,{}))
