<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">
/* ------------------------------------------------------------------------
	Class: prettyPhoto
	Use: Lightbox clone for jQuery
	Author: Stephane Caron (http://www.no-margin-for-errors.com)
	Version: 3.1.3
------------------------------------------------------------------------- */

(function($){$.prettyPhoto={version:'3.1.3'};$.fn.prettyPhoto=function(pp_settings){pp_settings=jQuery.extend({animation_speed:'fast',slideshow:5000,autoplay_slideshow:false,opacity:0.80,show_title:true,allow_resize:true,default_width:500,default_height:344,counter_separator_label:'/',theme:'pp_default',horizontal_padding:20,hideflash:false,wmode:'opaque',autoplay:true,modal:false,deeplinking:true,overlay_gallery:true,keyboard_shortcuts:true,changepicturecallback:function(){},callback:function(){},ie6_fallback:true,markup:'&lt;div class="pp_pic_holder"&gt; \
      &lt;div class="ppt"&gt;&amp;nbsp;&lt;/div&gt; \
      &lt;div class="pp_top"&gt; \
       &lt;div class="pp_left"&gt;&lt;/div&gt; \
       &lt;div class="pp_middle"&gt;&lt;/div&gt; \
       &lt;div class="pp_right"&gt;&lt;/div&gt; \
      &lt;/div&gt; \
      &lt;div class="pp_content_container"&gt; \
       &lt;div class="pp_left"&gt; \
       &lt;div class="pp_right"&gt; \
        &lt;div class="pp_content"&gt; \
         &lt;div class="pp_loaderIcon"&gt;&lt;/div&gt; \
         &lt;div class="pp_fade"&gt; \
          &lt;a href="#" class="pp_expand" title="Expand the image"&gt;Expand&lt;/a&gt; \
          &lt;div class="pp_hoverContainer"&gt; \
           &lt;a class="pp_next" href="#"&gt;next&lt;/a&gt; \
           &lt;a class="pp_previous" href="#"&gt;previous&lt;/a&gt; \
          &lt;/div&gt; \
          &lt;div id="pp_full_res"&gt;&lt;/div&gt; \
          &lt;div class="pp_details"&gt; \
           &lt;div class="pp_nav"&gt; \
            &lt;a href="#" class="pp_arrow_previous"&gt;Previous&lt;/a&gt; \
            &lt;p class="currentTextHolder"&gt;0/0&lt;/p&gt; \
            &lt;a href="#" class="pp_arrow_next"&gt;Next&lt;/a&gt; \
           &lt;/div&gt; \
           &lt;p class="pp_description"&gt;&lt;/p&gt; \
           &lt;div class="pp_social"&gt;{pp_social}&lt;/div&gt; \
           &lt;a class="pp_close" href="#"&gt;Close&lt;/a&gt; \
          &lt;/div&gt; \
         &lt;/div&gt; \
        &lt;/div&gt; \
       &lt;/div&gt; \
       &lt;/div&gt; \
      &lt;/div&gt; \
      &lt;div class="pp_bottom"&gt; \
       &lt;div class="pp_left"&gt;&lt;/div&gt; \
       &lt;div class="pp_middle"&gt;&lt;/div&gt; \
       &lt;div class="pp_right"&gt;&lt;/div&gt; \
      &lt;/div&gt; \
     &lt;/div&gt; \
     &lt;div class="pp_overlay"&gt;&lt;/div&gt;',gallery_markup:'&lt;div class="pp_gallery"&gt; \
        &lt;a href="#" class="pp_arrow_previous"&gt;Previous&lt;/a&gt; \
        &lt;div&gt; \
         &lt;ul&gt; \
          {gallery} \
         &lt;/ul&gt; \
        &lt;/div&gt; \
        &lt;a href="#" class="pp_arrow_next"&gt;Next&lt;/a&gt; \
       &lt;/div&gt;',image_markup:'&lt;img id="fullResImage" src="{path}" /&gt;',flash_markup:'&lt;object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"&gt;&lt;param name="wmode" value="{wmode}" /&gt;&lt;param name="allowfullscreen" value="true" /&gt;&lt;param name="allowscriptaccess" value="always" /&gt;&lt;param name="movie" value="{path}" /&gt;&lt;embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"&gt;&lt;/embed&gt;&lt;/object&gt;',quicktime_markup:'&lt;object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"&gt;&lt;param name="src" value="{path}"&gt;&lt;param name="autoplay" value="{autoplay}"&gt;&lt;param name="type" value="video/quicktime"&gt;&lt;embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"&gt;&lt;/embed&gt;&lt;/object&gt;',iframe_markup:'&lt;iframe src ="{path}" width="{width}" height="{height}" frameborder="no"&gt;&lt;/iframe&gt;',inline_markup:'&lt;div class="pp_inline"&gt;{content}&lt;/div&gt;',custom_markup:'',social_tools:'&lt;div class="twitter1"  &gt;&lt;a href="http://twitter.com/share" class="twitter-share-button" data-count="none"&gt;Tweet&lt;/a&gt;&lt;script type="text/javascript" src="http://platform.twitter.com/widgets.js"&gt;&lt;/script&gt;&lt;/div&gt;&lt;div class="facebook1"&gt;&lt;iframe src="http://www.facebook.com/plugins/like.php?locale=en_US&amp;href={location_href}&amp;amp;layout=button_count&amp;amp;show_faces=true&amp;amp;width=100&amp;amp;action=like&amp;amp;font&amp;amp;colorscheme=light&amp;amp;height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; float:left; height:23px;" allowTransparency="true"&gt;&lt;/iframe&gt;&lt;/div&gt;'},pp_settings);var matchedObjects=this,percentBased=false,pp_dimensions,pp_open,pp_contentHeight,pp_contentWidth,pp_containerHeight,pp_containerWidth,windowHeight=$(window).height(),windowWidth=$(window).width(),pp_slideshow;doresize=true,scroll_pos=_get_scroll();$(window).unbind('resize.prettyphoto').bind('resize.prettyphoto',function(){_center_overlay();_resize_overlay();});if(pp_settings.keyboard_shortcuts){$(document).unbind('keydown.prettyphoto').bind('keydown.prettyphoto',function(e){if(typeof $pp_pic_holder!='undefined'){if($pp_pic_holder.is(':visible')){switch(e.keyCode){case 37:$.prettyPhoto.changePage('previous');e.preventDefault();break;case 39:$.prettyPhoto.changePage('next');e.preventDefault();break;case 27:if(!settings.modal)
$.prettyPhoto.close();e.preventDefault();break;};};};});};$.prettyPhoto.initialize=function(){settings=pp_settings;if(settings.theme=='pp_default')settings.horizontal_padding=16;if(settings.ie6_fallback&amp;&amp;$.browser.msie&amp;&amp;parseInt($.browser.version)==6)settings.theme="light_square";theRel=$(this).attr('rel');galleryRegExp=/\[(?:.*)\]/;isSet=(galleryRegExp.exec(theRel))?true:false;pp_images=(isSet)?jQuery.map(matchedObjects,function(n,i){if($(n).attr('rel').indexOf(theRel)!=-1)return $(n).attr('href');}):$.makeArray($(this).attr('href'));pp_titles=(isSet)?jQuery.map(matchedObjects,function(n,i){if($(n).attr('rel').indexOf(theRel)!=-1)return($(n).find('img').attr('alt'))?$(n).find('img').attr('alt'):"";}):$.makeArray($(this).find('img').attr('alt'));pp_descriptions=(isSet)?jQuery.map(matchedObjects,function(n,i){if($(n).attr('rel').indexOf(theRel)!=-1)return($(n).attr('title'))?$(n).attr('title'):"";}):$.makeArray($(this).attr('title'));if(pp_images.length&gt;30)settings.overlay_gallery=false;set_position=jQuery.inArray($(this).attr('href'),pp_images);rel_index=(isSet)?set_position:$("a[rel^='"+theRel+"']").index($(this));_build_overlay(this);if(settings.allow_resize)
$(window).bind('scroll.prettyphoto',function(){_center_overlay();});$.prettyPhoto.open();return false;}
$.prettyPhoto.open=function(event){if(typeof settings=="undefined"){settings=pp_settings;if($.browser.msie&amp;&amp;$.browser.version==6)settings.theme="light_square";pp_images=$.makeArray(arguments[0]);pp_titles=(arguments[1])?$.makeArray(arguments[1]):$.makeArray("");pp_descriptions=(arguments[2])?$.makeArray(arguments[2]):$.makeArray("");isSet=(pp_images.length&gt;1)?true:false;set_position=0;_build_overlay(event.target);}
if($.browser.msie&amp;&amp;$.browser.version==6)$('select').css('visibility','hidden');if(settings.hideflash)$('object,embed,iframe[src*=youtube],iframe[src*=vimeo]').css('visibility','hidden');_checkPosition($(pp_images).size());$('.pp_loaderIcon').show();if(settings.deeplinking)
setHashtag();if(settings.social_tools){facebook_like_link=settings.social_tools.replace('{location_href}',encodeURIComponent(location.href));$pp_pic_holder.find('.pp_social').html(facebook_like_link);}
if($ppt.is(':hidden'))$ppt.css('opacity',0).show();$pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity);$pp_pic_holder.find('.currentTextHolder').text((set_position+1)+settings.counter_separator_label+$(pp_images).size());if(pp_descriptions[set_position]!=""){$pp_pic_holder.find('.pp_description').show().html(unescape(pp_descriptions[set_position]));}else{$pp_pic_holder.find('.pp_description').hide();}
movie_width=(parseFloat(getParam('width',pp_images[set_position])))?getParam('width',pp_images[set_position]):settings.default_width.toString();movie_height=(parseFloat(getParam('height',pp_images[set_position])))?getParam('height',pp_images[set_position]):settings.default_height.toString();percentBased=false;if(movie_height.indexOf('%')!=-1){movie_height=parseFloat(($(window).height()*parseFloat(movie_height)/100)-150);percentBased=true;}
if(movie_width.indexOf('%')!=-1){movie_width=parseFloat(($(window).width()*parseFloat(movie_width)/100)-150);percentBased=true;}
$pp_pic_holder.fadeIn(function(){(settings.show_title&amp;&amp;pp_titles[set_position]!=""&amp;&amp;typeof pp_titles[set_position]!="undefined")?$ppt.html(unescape(pp_titles[set_position])):$ppt.html('&amp;nbsp;');imgPreloader="";skipInjection=false;switch(_getFileType(pp_images[set_position])){case'image':imgPreloader=new Image();nextImage=new Image();if(isSet&amp;&amp;set_position&lt;$(pp_images).size()-1)nextImage.src=pp_images[set_position+1];prevImage=new Image();if(isSet&amp;&amp;pp_images[set_position-1])prevImage.src=pp_images[set_position-1];$pp_pic_holder.find('#pp_full_res')[0].innerHTML=settings.image_markup.replace(/{path}/g,pp_images[set_position]);imgPreloader.onload=function(){pp_dimensions=_fitToViewport(imgPreloader.width,imgPreloader.height);_showContent();};imgPreloader.onerror=function(){alert('Image cannot be loaded. Make sure the path is correct and image exist.');$.prettyPhoto.close();};imgPreloader.src=pp_images[set_position];break;case'youtube':pp_dimensions=_fitToViewport(movie_width,movie_height);movie_id=getParam('v',pp_images[set_position]);if(movie_id==""){movie_id=pp_images[set_position].split('youtu.be/');movie_id=movie_id[1];if(movie_id.indexOf('?')&gt;0)
movie_id=movie_id.substr(0,movie_id.indexOf('?'));if(movie_id.indexOf('&amp;')&gt;0)
movie_id=movie_id.substr(0,movie_id.indexOf('&amp;'));}
movie='http://www.youtube.com/embed/'+movie_id;(getParam('rel',pp_images[set_position]))?movie+="?rel="+getParam('rel',pp_images[set_position]):movie+="?rel=1";if(settings.autoplay)movie+="&amp;autoplay=1";toInject=settings.iframe_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case'vimeo':pp_dimensions=_fitToViewport(movie_width,movie_height);movie_id=pp_images[set_position];var regExp=/http:\/\/(www\.)?vimeo.com\/(\d+)/;var match=movie_id.match(regExp);movie='http://player.vimeo.com/video/'+match[2]+'?title=0&amp;amp;byline=0&amp;amp;portrait=0';if(settings.autoplay)movie+="&amp;autoplay=1;";vimeo_width=pp_dimensions['width']+'/embed/?moog_width='+pp_dimensions['width'];toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,pp_dimensions['height']).replace(/{path}/g,movie);break;case'quicktime':pp_dimensions=_fitToViewport(movie_width,movie_height);pp_dimensions['height']+=15;pp_dimensions['contentHeight']+=15;pp_dimensions['containerHeight']+=15;toInject=settings.quicktime_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case'flash':pp_dimensions=_fitToViewport(movie_width,movie_height);flash_vars=pp_images[set_position];flash_vars=flash_vars.substring(pp_images[set_position].indexOf('flashvars')+10,pp_images[set_position].length);filename=pp_images[set_position];filename=filename.substring(0,filename.indexOf('?'));toInject=settings.flash_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+'?'+flash_vars);break;case'iframe':pp_dimensions=_fitToViewport(movie_width,movie_height);frame_url=pp_images[set_position];frame_url=frame_url.substr(0,frame_url.indexOf('iframe')-1);toInject=settings.iframe_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{path}/g,frame_url);break;case'ajax':doresize=false;pp_dimensions=_fitToViewport(movie_width,movie_height);doresize=true;skipInjection=true;$.get(pp_images[set_position],function(responseHTML){toInject=settings.inline_markup.replace(/{content}/g,responseHTML);$pp_pic_holder.find('#pp_full_res')[0].innerHTML=toInject;_showContent();});break;case'custom':pp_dimensions=_fitToViewport(movie_width,movie_height);toInject=settings.custom_markup;break;case'inline':myClone=$(pp_images[set_position]).clone().append('&lt;br clear="all" /&gt;').css({'width':settings.default_width}).wrapInner('&lt;div id="pp_full_res"&gt;&lt;div class="pp_inline"&gt;&lt;/div&gt;&lt;/div&gt;').appendTo($('body')).show();doresize=false;pp_dimensions=_fitToViewport($(myClone).width(),$(myClone).height());doresize=true;$(myClone).remove();toInject=settings.inline_markup.replace(/{content}/g,$(pp_images[set_position]).html());break;};if(!imgPreloader&amp;&amp;!skipInjection){$pp_pic_holder.find('#pp_full_res')[0].innerHTML=toInject;_showContent();};});return false;};$.prettyPhoto.changePage=function(direction){currentGalleryPage=0;if(direction=='previous'){set_position--;if(set_position&lt;0)set_position=$(pp_images).size()-1;}else if(direction=='next'){set_position++;if(set_position&gt;$(pp_images).size()-1)set_position=0;}else{set_position=direction;};rel_index=set_position;if(!doresize)doresize=true;$('.pp_contract').removeClass('pp_contract').addClass('pp_expand');_hideContent(function(){$.prettyPhoto.open();});};$.prettyPhoto.changeGalleryPage=function(direction){if(direction=='next'){currentGalleryPage++;if(currentGalleryPage&gt;totalPage)currentGalleryPage=0;}else if(direction=='previous'){currentGalleryPage--;if(currentGalleryPage&lt;0)currentGalleryPage=totalPage;}else{currentGalleryPage=direction;};slide_speed=(direction=='next'||direction=='previous')?settings.animation_speed:0;slide_to=currentGalleryPage*(itemsPerPage*itemWidth);$pp_gallery.find('ul').animate({left:-slide_to},slide_speed);};$.prettyPhoto.startSlideshow=function(){if(typeof pp_slideshow=='undefined'){$pp_pic_holder.find('.pp_play').unbind('click').removeClass('pp_play').addClass('pp_pause').click(function(){$.prettyPhoto.stopSlideshow();return false;});pp_slideshow=setInterval($.prettyPhoto.startSlideshow,settings.slideshow);}else{$.prettyPhoto.changePage('next');};}
$.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find('.pp_pause').unbind('click').removeClass('pp_pause').addClass('pp_play').click(function(){$.prettyPhoto.startSlideshow();return false;});clearInterval(pp_slideshow);pp_slideshow=undefined;}
$.prettyPhoto.close=function(){if($pp_overlay.is(":animated"))return;$.prettyPhoto.stopSlideshow();$pp_pic_holder.stop().find('object,embed').css('visibility','hidden');$('div.pp_pic_holder,div.ppt,.pp_fade').fadeOut(settings.animation_speed,function(){$(this).remove();});$pp_overlay.fadeOut(settings.animation_speed,function(){if($.browser.msie&amp;&amp;$.browser.version==6)$('select').css('visibility','visible');if(settings.hideflash)$('object,embed,iframe[src*=youtube],iframe[src*=vimeo]').css('visibility','visible');$(this).remove();$(window).unbind('scroll.prettyphoto');clearHashtag();settings.callback();doresize=true;pp_open=false;delete settings;});};function _showContent(){$('.pp_loaderIcon').hide();projectedTop=scroll_pos['scrollTop']+((windowHeight/2)-(pp_dimensions['containerHeight']/2));if(projectedTop&lt;0)projectedTop=0;$ppt.fadeTo(settings.animation_speed,1);$pp_pic_holder.find('.pp_content').animate({height:pp_dimensions['contentHeight'],width:pp_dimensions['contentWidth']},settings.animation_speed);$pp_pic_holder.animate({'top':projectedTop,'left':(windowWidth/2)-(pp_dimensions['containerWidth']/2),width:pp_dimensions['containerWidth']},settings.animation_speed,function(){$pp_pic_holder.find('.pp_hoverContainer,#fullResImage').height(pp_dimensions['height']).width(pp_dimensions['width']);$pp_pic_holder.find('.pp_fade').fadeIn(settings.animation_speed);if(isSet&amp;&amp;_getFileType(pp_images[set_position])=="image"){$pp_pic_holder.find('.pp_hoverContainer').show();}else{$pp_pic_holder.find('.pp_hoverContainer').hide();}

if(pp_dimensions['resized']){$('a.pp_expand,a.pp_contract').show();}else{$('a.pp_expand').hide();}
if(settings.autoplay_slideshow&amp;&amp;!pp_slideshow&amp;&amp;!pp_open)$.prettyPhoto.startSlideshow();settings.changepicturecallback();pp_open=true;});_insert_gallery();};function _hideContent(callback){$pp_pic_holder.find('#pp_full_res object,#pp_full_res embed').css('visibility','hidden');$pp_pic_holder.find('.pp_fade').fadeOut(settings.animation_speed,function(){$('.pp_loaderIcon').show();callback();});};function _checkPosition(setCount){(setCount&gt;1)?$('.pp_nav').show():$('.pp_nav').hide();};function _fitToViewport(width,height){resized=false;_getDimensions(width,height);imageWidth=width,imageHeight=height;if(((pp_containerWidth&gt;windowWidth)||(pp_containerHeight&gt;windowHeight))&amp;&amp;doresize&amp;&amp;settings.allow_resize&amp;&amp;!percentBased){resized=true,fitting=false;while(!fitting){if((pp_containerWidth&gt;windowWidth)){imageWidth=(windowWidth-200);imageHeight=(height/width)*imageWidth;}else if((pp_containerHeight&gt;windowHeight)){imageHeight=(windowHeight-200);imageWidth=(width/height)*imageHeight;}else{fitting=true;};pp_containerHeight=imageHeight,pp_containerWidth=imageWidth;};_getDimensions(imageWidth,imageHeight);if((pp_containerWidth&gt;windowWidth)||(pp_containerHeight&gt;windowHeight)){_fitToViewport(pp_containerWidth,pp_containerHeight)};};return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(pp_containerHeight),containerWidth:Math.floor(pp_containerWidth)+(settings.horizontal_padding*2),contentHeight:Math.floor(pp_contentHeight),contentWidth:Math.floor(pp_contentWidth),resized:resized};};function _getDimensions(width,height){width=parseFloat(width);height=parseFloat(height);$pp_details=$pp_pic_holder.find('.pp_details');$pp_details.width(width);detailsHeight=parseFloat($pp_details.css('marginTop'))+parseFloat($pp_details.css('marginBottom'));$pp_details=$pp_details.clone().addClass(settings.theme).width(width).appendTo($('body')).css({'position':'absolute','top':-10000});detailsHeight+=$pp_details.height();detailsHeight=(detailsHeight&lt;=34)?36:detailsHeight;if($.browser.msie&amp;&amp;$.browser.version==7)detailsHeight+=8;$pp_details.remove();$pp_title=$pp_pic_holder.find('.ppt');$pp_title.width(width);titleHeight=parseFloat($pp_title.css('marginTop'))+parseFloat($pp_title.css('marginBottom'));$pp_title=$pp_title.clone().appendTo($('body')).css({'position':'absolute','top':-10000});titleHeight+=$pp_title.height();$pp_title.remove();pp_contentHeight=height+detailsHeight;pp_contentWidth=width;pp_containerHeight=pp_contentHeight+titleHeight+$pp_pic_holder.find('.pp_top').height()+$pp_pic_holder.find('.pp_bottom').height();pp_containerWidth=width;}
function _getFileType(itemSrc){if(itemSrc.match(/youtube\.com\/watch/i)||itemSrc.match(/youtu\.be/i)){return'youtube';}else if(itemSrc.match(/vimeo\.com/i)){return'vimeo';}else if(itemSrc.match(/\b.mov\b/i)){return'quicktime';}else if(itemSrc.match(/\b.swf\b/i)){return'flash';}else if(itemSrc.match(/\biframe=true\b/i)){return'iframe';}else if(itemSrc.match(/\bajax=true\b/i)){return'ajax';}else if(itemSrc.match(/\bcustom=true\b/i)){return'custom';}else if(itemSrc.substr(0,1)=='#'){return'inline';}else{return'image';};};function _center_overlay(){if(doresize&amp;&amp;typeof $pp_pic_holder!='undefined'){scroll_pos=_get_scroll();contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width();projectedTop=(windowHeight/2)+scroll_pos['scrollTop']-(contentHeight/2);if(projectedTop&lt;0)projectedTop=0;if(contentHeight&gt;windowHeight)
return;$pp_pic_holder.css({'top':projectedTop,'left':(windowWidth/2)+scroll_pos['scrollLeft']-(contentwidth/2)});};};function _get_scroll(){if(self.pageYOffset){return{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset};}else if(document.documentElement&amp;&amp;document.documentElement.scrollTop){return{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft};}else if(document.body){return{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft};};};function _resize_overlay(){windowHeight=$(window).height(),windowWidth=$(window).width();if(typeof $pp_overlay!="undefined")$pp_overlay.height($(document).height()).width(windowWidth);};function _insert_gallery(){if(isSet&amp;&amp;settings.overlay_gallery&amp;&amp;_getFileType(pp_images[set_position])=="image"&amp;&amp;(settings.ie6_fallback&amp;&amp;!($.browser.msie&amp;&amp;parseInt($.browser.version)==6))){itemWidth=52+5;navWidth=(settings.theme=="facebook"||settings.theme=="pp_default")?50:30;itemsPerPage=Math.floor((pp_dimensions['containerWidth']-100-navWidth)/itemWidth);itemsPerPage=(itemsPerPage&lt;pp_images.length)?itemsPerPage:pp_images.length;totalPage=Math.ceil(pp_images.length/itemsPerPage)-1;if(totalPage==0){navWidth=0;$pp_gallery.find('.pp_arrow_next,.pp_arrow_previous').hide();}else{$pp_gallery.find('.pp_arrow_next,.pp_arrow_previous').show();};galleryWidth=itemsPerPage*itemWidth;fullGalleryWidth=pp_images.length*itemWidth;$pp_gallery.css('margin-left',-((galleryWidth/2)+(navWidth/2))).find('div:first').width(galleryWidth+5).find('ul').width(fullGalleryWidth).find('li.selected').removeClass('selected');goToPage=(Math.floor(set_position/itemsPerPage)&lt;totalPage)?Math.floor(set_position/itemsPerPage):totalPage;$.prettyPhoto.changeGalleryPage(goToPage);$pp_gallery_li.filter(':eq('+set_position+')').addClass('selected');}else{$pp_pic_holder.find('.pp_content').unbind('mouseenter mouseleave');}}
function _build_overlay(caller){if(settings.social_tools)
facebook_like_link=settings.social_tools.replace('{location_href}',encodeURIComponent(location.href));settings.markup=settings.markup.replace('{pp_social}',(settings.social_tools)?facebook_like_link:'');$('body').append(settings.markup);$pp_pic_holder=$('.pp_pic_holder'),$ppt=$('.ppt'),$pp_overlay=$('div.pp_overlay');if(isSet&amp;&amp;settings.overlay_gallery){currentGalleryPage=0;toInject="";for(var i=0;i&lt;pp_images.length;i++){if(!pp_images[i].match(/\b(jpg|jpeg|png|gif)\b/gi)){classname='default';img_src='';}else{classname='';img_src=pp_images[i];}
toInject+="&lt;li class='"+classname+"'&gt;&lt;a href='#'&gt;&lt;img src='"+img_src+"' width='50' alt='' /&gt;&lt;/a&gt;&lt;/li&gt;";};toInject=settings.gallery_markup.replace(/{gallery}/g,toInject);$pp_pic_holder.find('#pp_full_res').after(toInject);$pp_gallery=$('.pp_pic_holder .pp_gallery'),$pp_gallery_li=$pp_gallery.find('li');$pp_gallery.find('.pp_arrow_next').click(function(){$.prettyPhoto.changeGalleryPage('next');$.prettyPhoto.stopSlideshow();return false;});$pp_gallery.find('.pp_arrow_previous').click(function(){$.prettyPhoto.changeGalleryPage('previous');$.prettyPhoto.stopSlideshow();return false;});$pp_pic_holder.find('.pp_content').hover(function(){$pp_pic_holder.find('.pp_gallery:not(.disabled)').fadeIn();},function(){$pp_pic_holder.find('.pp_gallery:not(.disabled)').fadeOut();});itemWidth=52+5;$pp_gallery_li.each(function(i){$(this).find('a').click(function(){$.prettyPhoto.changePage(i);$.prettyPhoto.stopSlideshow();return false;});});};if(settings.slideshow){$pp_pic_holder.find('.pp_nav').prepend('&lt;a href="#" class="pp_play"&gt;Play&lt;/a&gt;')
$pp_pic_holder.find('.pp_nav .pp_play').click(function(){$.prettyPhoto.startSlideshow();return false;});}
$pp_pic_holder.attr('class','pp_pic_holder '+settings.theme);$pp_overlay.css({'opacity':0,'height':$(document).height(),'width':$(window).width()}).bind('click',function(){if(!settings.modal)$.prettyPhoto.close();});$('a.pp_close').bind('click',function(){$.prettyPhoto.close();return false;});$('a.pp_expand').bind('click',function(e){if($(this).hasClass('pp_expand')){$(this).removeClass('pp_expand').addClass('pp_contract');doresize=false;}else{$(this).removeClass('pp_contract').addClass('pp_expand');doresize=true;};_hideContent(function(){$.prettyPhoto.open();});return false;});$pp_pic_holder.find('.pp_previous, .pp_nav .pp_arrow_previous').bind('click',function(){$.prettyPhoto.changePage('previous');$.prettyPhoto.stopSlideshow();return false;});$pp_pic_holder.find('.pp_next, .pp_nav .pp_arrow_next').bind('click',function(){$.prettyPhoto.changePage('next');$.prettyPhoto.stopSlideshow();return false;});_center_overlay();};if(!pp_alreadyInitialized&amp;&amp;getHashtag()){pp_alreadyInitialized=true;hashIndex=getHashtag();hashRel=hashIndex;hashIndex=hashIndex.substring(hashIndex.indexOf('/')+1,hashIndex.length-1);hashRel=hashRel.substring(0,hashRel.indexOf('/'));setTimeout(function(){$("a[rel^='"+hashRel+"']:eq("+hashIndex+")").trigger('click');},50);}
return this.unbind('click.prettyphoto').bind('click.prettyphoto',$.prettyPhoto.initialize);};function getHashtag(){url=location.href;hashtag=(url.indexOf('#!')!=-1)?decodeURI(url.substring(url.indexOf('#!')+2,url.length)):false;return hashtag;};function setHashtag(){if(typeof theRel=='undefined')return;location.hash='!'+theRel+'/'+rel_index+'/';};function clearHashtag(){url=location.href;hashtag=(url.indexOf('#!prettyPhoto'))?true:false;if(hashtag)location.hash="!prettyPhoto";}
function getParam(name,url){name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS="[\\?&amp;]"+name+"=([^&amp;#]*)";var regex=new RegExp(regexS);var results=regex.exec(url);return(results==null)?"":results[1];}})(jQuery);var pp_alreadyInitialized=false;

$("a[rel^='prettyPhoto']").prettyPhoto();


(function( jQuery, undefined ) {

	var stepHooks = "backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",

	// plusequals test for += 100 -= 100
	rplusequals = /^([\-+])=\s*(\d+\.?\d*)/,
	// a set of RE's that can match strings and generate color tuples.
	stringParsers = [{
			re: /rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
			parse: function( execResult ) {
				return [
					execResult[ 1 ],
					execResult[ 2 ],
					execResult[ 3 ],
					execResult[ 4 ]
				];
			}
		}, {
			re: /rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
			parse: function( execResult ) {
				return [
					execResult[ 1 ] * 2.55,
					execResult[ 2 ] * 2.55,
					execResult[ 3 ] * 2.55,
					execResult[ 4 ]
				];
			}
		}, {
			// this regex ignores A-F because it's compared against an already lowercased string
			re: /#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,
			parse: function( execResult ) {
				return [
					parseInt( execResult[ 1 ], 16 ),
					parseInt( execResult[ 2 ], 16 ),
					parseInt( execResult[ 3 ], 16 )
				];
			}
		}, {
			// this regex ignores A-F because it's compared against an already lowercased string
			re: /#([a-f0-9])([a-f0-9])([a-f0-9])/,
			parse: function( execResult ) {
				return [
					parseInt( execResult[ 1 ] + execResult[ 1 ], 16 ),
					parseInt( execResult[ 2 ] + execResult[ 2 ], 16 ),
					parseInt( execResult[ 3 ] + execResult[ 3 ], 16 )
				];
			}
		}, {
			re: /hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,
			space: "hsla",
			parse: function( execResult ) {
				return [
					execResult[ 1 ],
					execResult[ 2 ] / 100,
					execResult[ 3 ] / 100,
					execResult[ 4 ]
				];
			}
		}],

	// jQuery.Color( )
	color = jQuery.Color = function( color, green, blue, alpha ) {
		return new jQuery.Color.fn.parse( color, green, blue, alpha );
	},
	spaces = {
		rgba: {
			props: {
				red: {
					idx: 0,
					type: "byte"
				},
				green: {
					idx: 1,
					type: "byte"
				},
				blue: {
					idx: 2,
					type: "byte"
				}
			}
		},

		hsla: {
			props: {
				hue: {
					idx: 0,
					type: "degrees"
				},
				saturation: {
					idx: 1,
					type: "percent"
				},
				lightness: {
					idx: 2,
					type: "percent"
				}
			}
		}
	},
	propTypes = {
		"byte": {
			floor: true,
			max: 255
		},
		"percent": {
			max: 1
		},
		"degrees": {
			mod: 360,
			floor: true
		}
	},
	support = color.support = {},

	// element for support tests
	supportElem = jQuery( "&lt;p&gt;" )[ 0 ],

	// colors = jQuery.Color.names
	colors,

	// local aliases of functions called often
	each = jQuery.each;

// determine rgba support immediately
supportElem.style.cssText = "background-color:rgba(1,1,1,.5)";
support.rgba = supportElem.style.backgroundColor.indexOf( "rgba" ) &gt; -1;

// define cache name and alpha properties
// for rgba and hsla spaces
each( spaces, function( spaceName, space ) {
	space.cache = "_" + spaceName;
	space.props.alpha = {
		idx: 3,
		type: "percent",
		def: 1
	};
});

function clamp( value, prop, allowEmpty ) {
	var type = propTypes[ prop.type ] || {};

	if ( value == null ) {
		return (allowEmpty || !prop.def) ? null : prop.def;
	}

	// ~~ is an short way of doing floor for positive numbers
	value = type.floor ? ~~value : parseFloat( value );

	// IE will pass in empty strings as value for alpha,
	// which will hit this case
	if ( isNaN( value ) ) {
		return prop.def;
	}

	if ( type.mod ) {
		// we add mod before modding to make sure that negatives values
		// get converted properly: -10 -&gt; 350
		return (value + type.mod) % type.mod;
	}

	// for now all property types without mod have min and max
	return 0 &gt; value ? 0 : type.max &lt; value ? type.max : value;
}

function stringParse( string ) {
	var inst = color(),
		rgba = inst._rgba = [];

	string = string.toLowerCase();

	each( stringParsers, function( i, parser ) {
		var parsed,
			match = parser.re.exec( string ),
			values = match &amp;&amp; parser.parse( match ),
			spaceName = parser.space || "rgba";

		if ( values ) {
			parsed = inst[ spaceName ]( values );

			// if this was an rgba parse the assignment might happen twice
			// oh well....
			inst[ spaces[ spaceName ].cache ] = parsed[ spaces[ spaceName ].cache ];
			rgba = inst._rgba = parsed._rgba;

			// exit each( stringParsers ) here because we matched
			return false;
		}
	});

	// Found a stringParser that handled it
	if ( rgba.length ) {

		// if this came from a parsed string, force "transparent" when alpha is 0
		// chrome, (and maybe others) return "transparent" as rgba(0,0,0,0)
		if ( rgba.join() === "0,0,0,0" ) {
			jQuery.extend( rgba, colors.transparent );
		}
		return inst;
	}

	// named colors
	return colors[ string ];
}

color.fn = jQuery.extend( color.prototype, {
	parse: function( red, green, blue, alpha ) {
		if ( red === undefined ) {
			this._rgba = [ null, null, null, null ];
			return this;
		}
		if ( red.jquery || red.nodeType ) {
			red = jQuery( red ).css( green );
			green = undefined;
		}

		var inst = this,
			type = jQuery.type( red ),
			rgba = this._rgba = [];

		// more than 1 argument specified - assume ( red, green, blue, alpha )
		if ( green !== undefined ) {
			red = [ red, green, blue, alpha ];
			type = "array";
		}

		if ( type === "string" ) {
			return this.parse( stringParse( red ) || colors._default );
		}

		if ( type === "array" ) {
			each( spaces.rgba.props, function( key, prop ) {
				rgba[ prop.idx ] = clamp( red[ prop.idx ], prop );
			});
			return this;
		}

		if ( type === "object" ) {
			if ( red instanceof color ) {
				each( spaces, function( spaceName, space ) {
					if ( red[ space.cache ] ) {
						inst[ space.cache ] = red[ space.cache ].slice();
					}
				});
			} else {
				each( spaces, function( spaceName, space ) {
					var cache = space.cache;
					each( space.props, function( key, prop ) {

						// if the cache doesn't exist, and we know how to convert
						if ( !inst[ cache ] &amp;&amp; space.to ) {

							// if the value was null, we don't need to copy it
							// if the key was alpha, we don't need to copy it either
							if ( key === "alpha" || red[ key ] == null ) {
								return;
							}
							inst[ cache ] = space.to( inst._rgba );
						}

						// this is the only case where we allow nulls for ALL properties.
						// call clamp with alwaysAllowEmpty
						inst[ cache ][ prop.idx ] = clamp( red[ key ], prop, true );
					});

					// everything defined but alpha?
					if ( inst[ cache ] &amp;&amp; jQuery.inArray( null, inst[ cache ].slice( 0, 3 ) ) &lt; 0 ) {
						// use the default of 1
						inst[ cache ][ 3 ] = 1;
						if ( space.from ) {
							inst._rgba = space.from( inst[ cache ] );
						}
					}
				});
			}
			return this;
		}
	},
	is: function( compare ) {
		var is = color( compare ),
			same = true,
			inst = this;

		each( spaces, function( _, space ) {
			var localCache,
				isCache = is[ space.cache ];
			if (isCache) {
				localCache = inst[ space.cache ] || space.to &amp;&amp; space.to( inst._rgba ) || [];
				each( space.props, function( _, prop ) {
					if ( isCache[ prop.idx ] != null ) {
						same = ( isCache[ prop.idx ] === localCache[ prop.idx ] );
						return same;
					}
				});
			}
			return same;
		});
		return same;
	},
	_space: function() {
		var used = [],
			inst = this;
		each( spaces, function( spaceName, space ) {
			if ( inst[ space.cache ] ) {
				used.push( spaceName );
			}
		});
		return used.pop();
	},
	transition: function( other, distance ) {
		var end = color( other ),
			spaceName = end._space(),
			space = spaces[ spaceName ],
			startColor = this.alpha() === 0 ? color( "transparent" ) : this,
			start = startColor[ space.cache ] || space.to( startColor._rgba ),
			result = start.slice();

		end = end[ space.cache ];
		each( space.props, function( key, prop ) {
			var index = prop.idx,
				startValue = start[ index ],
				endValue = end[ index ],
				type = propTypes[ prop.type ] || {};

			// if null, don't override start value
			if ( endValue === null ) {
				return;
			}
			// if null - use end
			if ( startValue === null ) {
				result[ index ] = endValue;
			} else {
				if ( type.mod ) {
					if ( endValue - startValue &gt; type.mod / 2 ) {
						startValue += type.mod;
					} else if ( startValue - endValue &gt; type.mod / 2 ) {
						startValue -= type.mod;
					}
				}
				result[ index ] = clamp( ( endValue - startValue ) * distance + startValue, prop );
			}
		});
		return this[ spaceName ]( result );
	},
	blend: function( opaque ) {
		// if we are already opaque - return ourself
		if ( this._rgba[ 3 ] === 1 ) {
			return this;
		}

		var rgb = this._rgba.slice(),
			a = rgb.pop(),
			blend = color( opaque )._rgba;

		return color( jQuery.map( rgb, function( v, i ) {
			return ( 1 - a ) * blend[ i ] + a * v;
		}));
	},
	toRgbaString: function() {
		var prefix = "rgba(",
			rgba = jQuery.map( this._rgba, function( v, i ) {
				return v == null ? ( i &gt; 2 ? 1 : 0 ) : v;
			});

		if ( rgba[ 3 ] === 1 ) {
			rgba.pop();
			prefix = "rgb(";
		}

		return prefix + rgba.join() + ")";
	},
	toHslaString: function() {
		var prefix = "hsla(",
			hsla = jQuery.map( this.hsla(), function( v, i ) {
				if ( v == null ) {
					v = i &gt; 2 ? 1 : 0;
				}

				// catch 1 and 2
				if ( i &amp;&amp; i &lt; 3 ) {
					v = Math.round( v * 100 ) + "%";
				}
				return v;
			});

		if ( hsla[ 3 ] === 1 ) {
			hsla.pop();
			prefix = "hsl(";
		}
		return prefix + hsla.join() + ")";
	},
	toHexString: function( includeAlpha ) {
		var rgba = this._rgba.slice(),
			alpha = rgba.pop();

		if ( includeAlpha ) {
			rgba.push( ~~( alpha * 255 ) );
		}

		return "#" + jQuery.map( rgba, function( v ) {

			// default to 0 when nulls exist
			v = ( v || 0 ).toString( 16 );
			return v.length === 1 ? "0" + v : v;
		}).join("");
	},
	toString: function() {
		return this._rgba[ 3 ] === 0 ? "transparent" : this.toRgbaString();
	}
});
color.fn.parse.prototype = color.fn;

// hsla conversions adapted from:
// https://code.google.com/p/maashaack/source/browse/packages/graphics/trunk/src/graphics/colors/HUE2RGB.as?r=5021

function hue2rgb( p, q, h ) {
	h = ( h + 1 ) % 1;
	if ( h * 6 &lt; 1 ) {
		return p + (q - p) * h * 6;
	}
	if ( h * 2 &lt; 1) {
		return q;
	}
	if ( h * 3 &lt; 2 ) {
		return p + (q - p) * ((2/3) - h) * 6;
	}
	return p;
}

spaces.hsla.to = function ( rgba ) {
	if ( rgba[ 0 ] == null || rgba[ 1 ] == null || rgba[ 2 ] == null ) {
		return [ null, null, null, rgba[ 3 ] ];
	}
	var r = rgba[ 0 ] / 255,
		g = rgba[ 1 ] / 255,
		b = rgba[ 2 ] / 255,
		a = rgba[ 3 ],
		max = Math.max( r, g, b ),
		min = Math.min( r, g, b ),
		diff = max - min,
		add = max + min,
		l = add * 0.5,
		h, s;

	if ( min === max ) {
		h = 0;
	} else if ( r === max ) {
		h = ( 60 * ( g - b ) / diff ) + 360;
	} else if ( g === max ) {
		h = ( 60 * ( b - r ) / diff ) + 120;
	} else {
		h = ( 60 * ( r - g ) / diff ) + 240;
	}

	// chroma (diff) == 0 means greyscale which, by definition, saturation = 0%
	// otherwise, saturation is based on the ratio of chroma (diff) to lightness (add)
	if ( diff === 0 ) {
		s = 0;
	} else if ( l &lt;= 0.5 ) {
		s = diff / add;
	} else {
		s = diff / ( 2 - add );
	}
	return [ Math.round(h) % 360, s, l, a == null ? 1 : a ];
};

spaces.hsla.from = function ( hsla ) {
	if ( hsla[ 0 ] == null || hsla[ 1 ] == null || hsla[ 2 ] == null ) {
		return [ null, null, null, hsla[ 3 ] ];
	}
	var h = hsla[ 0 ] / 360,
		s = hsla[ 1 ],
		l = hsla[ 2 ],
		a = hsla[ 3 ],
		q = l &lt;= 0.5 ? l * ( 1 + s ) : l + s - l * s,
		p = 2 * l - q;

	return [
		Math.round( hue2rgb( p, q, h + ( 1 / 3 ) ) * 255 ),
		Math.round( hue2rgb( p, q, h ) * 255 ),
		Math.round( hue2rgb( p, q, h - ( 1 / 3 ) ) * 255 ),
		a
	];
};


each( spaces, function( spaceName, space ) {
	var props = space.props,
		cache = space.cache,
		to = space.to,
		from = space.from;

	// makes rgba() and hsla()
	color.fn[ spaceName ] = function( value ) {

		// generate a cache for this space if it doesn't exist
		if ( to &amp;&amp; !this[ cache ] ) {
			this[ cache ] = to( this._rgba );
		}
		if ( value === undefined ) {
			return this[ cache ].slice();
		}

		var ret,
			type = jQuery.type( value ),
			arr = ( type === "array" || type === "object" ) ? value : arguments,
			local = this[ cache ].slice();

		each( props, function( key, prop ) {
			var val = arr[ type === "object" ? key : prop.idx ];
			if ( val == null ) {
				val = local[ prop.idx ];
			}
			local[ prop.idx ] = clamp( val, prop );
		});

		if ( from ) {
			ret = color( from( local ) );
			ret[ cache ] = local;
			return ret;
		} else {
			return color( local );
		}
	};

	// makes red() green() blue() alpha() hue() saturation() lightness()
	each( props, function( key, prop ) {
		// alpha is included in more than one space
		if ( color.fn[ key ] ) {
			return;
		}
		color.fn[ key ] = function( value ) {
			var vtype = jQuery.type( value ),
				fn = ( key === "alpha" ? ( this._hsla ? "hsla" : "rgba" ) : spaceName ),
				local = this[ fn ](),
				cur = local[ prop.idx ],
				match;

			if ( vtype === "undefined" ) {
				return cur;
			}

			if ( vtype === "function" ) {
				value = value.call( this, cur );
				vtype = jQuery.type( value );
			}
			if ( value == null &amp;&amp; prop.empty ) {
				return this;
			}
			if ( vtype === "string" ) {
				match = rplusequals.exec( value );
				if ( match ) {
					value = cur + parseFloat( match[ 2 ] ) * ( match[ 1 ] === "+" ? 1 : -1 );
				}
			}
			local[ prop.idx ] = value;
			return this[ fn ]( local );
		};
	});
});

// add cssHook and .fx.step function for each named hook.
// accept a space separated string of properties
color.hook = function( hook ) {
	var hooks = hook.split( " " );
	each( hooks, function( i, hook ) {
		jQuery.cssHooks[ hook ] = {
			set: function( elem, value ) {
				var parsed, curElem,
					backgroundColor = "";

				if ( value !== "transparent" &amp;&amp; ( jQuery.type( value ) !== "string" || ( parsed = stringParse( value ) ) ) ) {
					value = color( parsed || value );
					if ( !support.rgba &amp;&amp; value._rgba[ 3 ] !== 1 ) {
						curElem = hook === "backgroundColor" ? elem.parentNode : elem;
						while (
							(backgroundColor === "" || backgroundColor === "transparent") &amp;&amp;
							curElem &amp;&amp; curElem.style
						) {
							try {
								backgroundColor = jQuery.css( curElem, "backgroundColor" );
								curElem = curElem.parentNode;
							} catch ( e ) {
							}
						}

						value = value.blend( backgroundColor &amp;&amp; backgroundColor !== "transparent" ?
							backgroundColor :
							"_default" );
					}

					value = value.toRgbaString();
				}
				try {
					elem.style[ hook ] = value;
				} catch( e ) {
					// wrapped to prevent IE from throwing errors on "invalid" values like 'auto' or 'inherit'
				}
			}
		};
		jQuery.fx.step[ hook ] = function( fx ) {
			if ( !fx.colorInit ) {
				fx.start = color( fx.elem, hook );
				fx.end = color( fx.end );
				fx.colorInit = true;
			}
			jQuery.cssHooks[ hook ].set( fx.elem, fx.start.transition( fx.end, fx.pos ) );
		};
	});

};

color.hook( stepHooks );

jQuery.cssHooks.borderColor = {
	expand: function( value ) {
		var expanded = {};

		each( [ "Top", "Right", "Bottom", "Left" ], function( i, part ) {
			expanded[ "border" + part + "Color" ] = value;
		});
		return expanded;
	}
};

// Basic color names only.
// Usage of any of the other color names requires adding yourself or including
// jquery.color.svg-names.js.
colors = jQuery.Color.names = {
	// 4.1. Basic color keywords
	aqua: "#00ffff",
	black: "#000000",
	blue: "#0000ff",
	fuchsia: "#ff00ff",
	gray: "#808080",
	green: "#008000",
	lime: "#00ff00",
	maroon: "#800000",
	navy: "#000080",
	olive: "#808000",
	purple: "#800080",
	red: "#ff0000",
	silver: "#c0c0c0",
	teal: "#008080",
	white: "#ffffff",
	yellow: "#ffff00",

	// 4.2.3. "transparent" color keyword
	transparent: [ null, null, null, 0 ],

	_default: "#ffffff"
};

}( jQuery ));

 jQuery('img.svg').each(function(){
            var $img = jQuery(this);
            var imgID = $img.attr('id');
            var imgClass = $img.attr('class');
            var imgURL = $img.attr('src');

            jQuery.get(imgURL, function(data) {
                // Get the SVG tag, ignore the rest
                var $svg = jQuery(data).find('svg');

                // Add replaced image's ID to the new SVG
                if(typeof imgID !== 'undefined') {
                    $svg = $svg.attr('id', imgID);
                }
                // Add replaced image's classes to the new SVG
                if(typeof imgClass !== 'undefined') {
                    $svg = $svg.attr('class', imgClass+' replaced-svg');
                }

                // Remove any invalid XML tags as per http://validator.w3.org
                $svg = $svg.removeAttr('xmlns:a');

                // Replace image with new SVG
                $img.replaceWith($svg);

            }, 'xml');

        });

/**
 * jQuery Skitter Slideshow
 * @name jquery.skitter.js
 * @description Slideshow
 * @author Thiago Silva Ferreira - http://thiagosf.net
 * @version 4.2.3
 * @date August 04, 2010
 * @update July 12, 2014
 * @copyright (c) 2010 Thiago Silva Ferreira - http://thiagosf.net
 * @license Dual licensed under the MIT or GPL Version 2 licenses
 * @example http://thiagosf.net/projects/jquery/skitter/
 */
!function(t){var s=0,e=[];t.fn.skitter=function(i){return this.each(function(){void 0==t(this).data("skitter_number")&amp;&amp;(t(this).data("skitter_number",s),e.push(new a(this,i,s)),++s)})};var n={velocity:1,interval:2500,animation:"",numbers:!0,navigation:!0,label:!0,easing_default:"",box_skitter:null,time_interval:null,images_links:null,image_atual:null,link_atual:null,label_atual:null,target_atual:"_self",width_skitter:null,height_skitter:null,image_i:1,is_animating:!1,is_hover_box_skitter:!1,random_ia:null,show_randomly:!1,thumbs:!1,animateNumberOut:!1,animateNumberOver:!1,animateNumberActive:!1,hideTools:!1,fullscreen:!1,xml:!1,dots:!1,width_label:null,opacity_elements:.75,interval_in_elements:200,interval_out_elements:300,onLoad:null,imageSwitched:null,max_number_height:20,numbers_align:"left",preview:!1,focus:!1,foucs_active:!1,focus_position:"center",controls:!1,controls_position:"center",progressbar:!1,progressbar_css:{},is_paused:!1,is_blur:!1,is_paused_time:!1,timeStart:0,elapsedTime:0,stop_over:!0,enable_navigation_keys:!1,with_animations:[],mouseOverButton:null,mouseOutButton:null,auto_play:!0,labelAnimation:"slideUp",theme:null,structure:'&lt;a href="#" class="prev_button"&gt;prev&lt;/a&gt;&lt;a href="#" class="next_button"&gt;next&lt;/a&gt;&lt;span class="info_slide"&gt;&lt;/span&gt;&lt;div class="container_skitter"&gt;&lt;div class="image"&gt;&lt;a href=""&gt;&lt;img class="image_main" /&gt;&lt;/a&gt;&lt;div class="label_skitter"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;'};t.skitter=function(i,s,e){this.box_skitter=t(i),this.timer=null,this.settings=t.extend({},n,s||{}),this.number_skitter=e,this.setup()};var a=t.skitter;a.fn=a.prototype={},a.fn.extend=t.extend,a.fn.extend({setup:function(){var i=this;if(this.settings.fullscreen){var s=t(window).width(),e=t(window).height();this.box_skitter.width(s).height(e),this.box_skitter.css({position:"absolute",top:0,left:0,"z-index":1e3}),this.settings.stop_over=!1,t("body").css({overflown:"hidden"})}if(this.settings.width_skitter=parseFloat(this.box_skitter.css("width")),this.settings.height_skitter=parseFloat(this.box_skitter.css("height")),!this.settings.width_skitter||!this.settings.height_skitter)return console.warn("Width or height size is null! - Skitter Slideshow"),!1;this.settings.theme&amp;&amp;this.box_skitter.addClass("skitter-"+this.settings.theme),this.box_skitter.append(this.settings.structure),this.settings.easing_default=this.getEasing(this.settings.easing),this.settings.velocity&gt;=2&amp;&amp;(this.settings.velocity=1.3),this.settings.velocity&lt;=0&amp;&amp;(this.settings.velocity=1),this.box_skitter.find(".info_slide").hide(),this.box_skitter.find(".label_skitter").hide(),this.box_skitter.find(".prev_button").hide(),this.box_skitter.find(".next_button").hide(),this.box_skitter.find(".container_skitter").width(this.settings.width_skitter),this.box_skitter.find(".container_skitter").height(this.settings.height_skitter);var n=this.settings.width_label?this.settings.width_label:this.settings.width_skitter;this.box_skitter.find(".label_skitter").width(n);var a=" image_number_select",o=0;this.settings.images_links=new Array;var h=function(t,s,e,n,h){if(i.settings.images_links.push([s,t,e,n,h]),i.settings.thumbs){var r="";r=i.settings.width_skitter&gt;i.settings.height_skitter?'height="100"':'width="100"',i.box_skitter.find(".info_slide").append('&lt;span class="image_number'+a+'" rel="'+(o-1)+'" id="image_n_'+o+"_"+i.number_skitter+'"&gt;'+'&lt;img src="'+s+'" '+r+" /&gt;"+"&lt;/span&gt; ")}else i.box_skitter.find(".info_slide").append('&lt;span class="image_number'+a+'" rel="'+(o-1)+'" id="image_n_'+o+"_"+i.number_skitter+'"&gt;'+o+"&lt;/span&gt; ");a=""};if(this.settings.xml?t.ajax({type:"GET",url:this.settings.xml,async:!1,dataType:"xml",success:function(i){t("&lt;ul&gt;&lt;/ul&gt;"),t(i).find("skitter slide").each(function(){++o;var i=t(this).find("link").text()?t(this).find("link").text():"#",s=t(this).find("image").text(),e=t(this).find("image").attr("type"),n=t(this).find("label").text(),a=t(this).find("target").text()?t(this).find("target").text():"_self";h(i,s,e,n,a)})}}):this.settings.json||this.box_skitter.find("ul li").each(function(){++o;var i=t(this).find("a").length?t(this).find("a").attr("href"):"#",s=t(this).find("img").attr("src"),e=t(this).find("img").attr("class"),n=t(this).find(".label_text").html(),a=t(this).find("a").length&amp;&amp;t(this).find("a").attr("target")?t(this).find("a").attr("target"):"_self";h(i,s,e,n,a)}),i.settings.thumbs&amp;&amp;!i.settings.fullscreen){i.settings.animateNumberOut={opacity:.3},i.settings.animateNumberOver={opacity:.5},i.settings.animateNumberActive={opacity:1},i.box_skitter.find(".info_slide").addClass("info_slide_thumb");var r=(o+1)*i.box_skitter.find(".info_slide_thumb .image_number").width();i.box_skitter.find(".info_slide_thumb").width(r),i.box_skitter.css({height:i.box_skitter.height()+i.box_skitter.find(".info_slide").height()}),i.box_skitter.append('&lt;div class="container_thumbs"&gt;&lt;/div&gt;');var g=i.box_skitter.find(".info_slide").clone();i.box_skitter.find(".info_slide").remove(),i.box_skitter.find(".container_thumbs").width(i.settings.width_skitter).append(g);var l=0,d=this.settings.width_skitter,_=this.settings.height_skitter,c=0,u=i.box_skitter.find(".info_slide_thumb"),f=0,m=i.box_skitter.offset().top;if(u.find(".image_number").each(function(){l+=t(this).outerWidth()}),u.width(l+"px"),c=u.width(),width_value=this.settings.width_skitter,width_value=d-100,r&gt;i.settings.width_skitter&amp;&amp;i.box_skitter.mousemove(function(t){f=i.box_skitter.offset().left+90;var s=t.pageX,e=t.pageY,n=0;s-=f,e-=m,novo_width=c-width_value,n=-(novo_width*s/width_value),n&gt;0&amp;&amp;(n=0),-(c-d)&gt;n&amp;&amp;(n=-(c-d)),e&gt;_&amp;&amp;u.css({left:n})}),i.box_skitter.find(".scroll_thumbs").css({left:10}),r&lt;i.settings.width_skitter){i.box_skitter.find(".info_slide").width("auto"),i.box_skitter.find(".box_scroll_thumbs").hide();var p=".info_slide";switch(i.settings.numbers_align){case"center":var k=(i.settings.width_skitter-i.box_skitter.find(p).width())/2;i.box_skitter.find(p).css({left:k});break;case"right":i.box_skitter.find(p).css({left:"auto",right:"-5px"});break;case"left":i.box_skitter.find(p).css({left:"0px"})}}}else{var p=".info_slide";switch(i.settings.dots&amp;&amp;(i.box_skitter.find(".info_slide").addClass("info_slide_dots").removeClass("info_slide"),p=".info_slide_dots"),i.settings.numbers_align){case"center":var k=(i.settings.width_skitter-i.box_skitter.find(p).width())/2;i.box_skitter.find(p).css({left:k});break;case"right":i.box_skitter.find(p).css({left:"auto",right:"15px"});break;case"left":i.box_skitter.find(p).css({left:"15px"})}i.settings.dots||i.box_skitter.find(".info_slide").height()&gt;20&amp;&amp;i.box_skitter.find(".info_slide").hide()}if(this.box_skitter.find("ul").hide(),this.settings.show_randomly&amp;&amp;this.settings.images_links.sort(function(){return Math.random()-.5}),this.settings.image_atual=this.settings.images_links[0][0],this.settings.link_atual=this.settings.images_links[0][1],this.settings.label_atual=this.settings.images_links[0][3],this.settings.target_atual=this.settings.images_links[0][4],this.settings.images_links.length&gt;1&amp;&amp;(this.box_skitter.find(".prev_button").click(function(){return 0==i.settings.is_animating&amp;&amp;(i.settings.image_i-=2,-2==i.settings.image_i?i.settings.image_i=i.settings.images_links.length-2:-1==i.settings.image_i&amp;&amp;(i.settings.image_i=i.settings.images_links.length-1),i.jumpToImage(i.settings.image_i)),!1}),this.box_skitter.find(".next_button").click(function(){return i.jumpToImage(i.settings.image_i),!1}),i.box_skitter.find(".next_button, .prev_button").bind("mouseover",i.settings.mouseOverButton),i.box_skitter.find(".next_button, .prev_button").bind("mouseleave",i.settings.mouseOutButton),this.box_skitter.find(".image_number").hover(function(){"image_number image_number_select"!=t(this).attr("class")&amp;&amp;i.settings.animateNumberOver&amp;&amp;t(this).stop().animate(i.settings.animateNumberOver,300)},function(){"image_number image_number_select"!=t(this).attr("class")&amp;&amp;i.settings.animateNumberOut&amp;&amp;t(this).stop().animate(i.settings.animateNumberOut,500)}),this.box_skitter.find(".image_number").click(function(){if("image_number image_number_select"!=t(this).attr("class")){var s=parseInt(t(this).attr("rel"));i.jumpToImage(s)}return!1}),i.settings.animateNumberOut&amp;&amp;this.box_skitter.find(".image_number").css(i.settings.animateNumberOut),i.settings.animateNumberActive&amp;&amp;this.box_skitter.find(".image_number:eq(0)").css(i.settings.animateNumberActive),i.settings.preview&amp;&amp;i.settings.dots)){for(var b=t('&lt;div class="preview_slide"&gt;&lt;ul&gt;&lt;/ul&gt;&lt;/div&gt;'),v=0;v&lt;this.settings.images_links.length;v++){var x=t("&lt;li&gt;&lt;/li&gt;"),w=t("&lt;img /&gt;");w.attr("src",this.settings.images_links[v][0]),x.append(w),b.find("ul").append(x)}var y=parseInt(100*this.settings.images_links.length);b.find("ul").width(y),t(p).append(b),i.box_skitter.find(p).find(".image_number").mouseenter(function(){var s=parseFloat(i.box_skitter.find(p).offset().left),e=parseFloat(t(this).offset().left),n=e-s-43,a=parseInt(t(this).attr("rel"));i.box_skitter.find(".preview_slide_current img").attr("src");var o=-(100*a);i.box_skitter.find(".preview_slide").find("ul").animate({left:o},{duration:200,queue:!1,easing:"easeOutSine"}),i.box_skitter.find(".preview_slide").fadeTo(1,1).animate({left:n},{duration:200,queue:!1})}),i.box_skitter.find(p).mouseleave(function(){t(".preview_slide").animate({opacity:"hide"},{duration:200,queue:!1})})}i.settings.focus&amp;&amp;i.focusSkitter(),i.settings.controls&amp;&amp;i.setControls(),i.settings.progressbar&amp;&amp;i.settings.auto_play&amp;&amp;i.addProgressBar(),i.settings.hideTools&amp;&amp;i.hideTools(),i.settings.enable_navigation_keys&amp;&amp;i.enableNavigationKeys(),this.loadImages()},loadImages:function(){var i=this,s=t('&lt;div class="loading"&gt;Loading&lt;/div&gt;');this.box_skitter.append(s);var e=this.settings.images_links.length,n=0;t.each(this.settings.images_links,function(){var s=this,a=t('&lt;span class="image_loading"&gt;&lt;/span&gt;');a.css({position:"absolute",top:"-9999em"}),i.box_skitter.append(a);var o=new Image;t(o).load(function(){++n,n==e&amp;&amp;(i.box_skitter.find(".loading").remove(),i.box_skitter.find(".image_loading").remove(),i.start())}).error(function(){i.box_skitter.find(".loading, .image_loading, .image_number, .next_button, .prev_button").remove(),i.box_skitter.html('&lt;p style="color:white;background:black;"&gt;Error loading images. One or more images were not found.&lt;/p&gt;')}).attr("src",s[0])})},start:function(){var i=this,s=!1;(this.settings.numbers||this.settings.thumbs)&amp;&amp;this.box_skitter.find(".info_slide").fadeIn(500),this.settings.dots&amp;&amp;this.box_skitter.find(".info_slide_dots").fadeIn(500),this.settings.label&amp;&amp;this.box_skitter.find(".label_skitter").show(),this.settings.navigation&amp;&amp;(this.box_skitter.find(".prev_button").fadeIn(500),this.box_skitter.find(".next_button").fadeIn(500)),i.settings.auto_play&amp;&amp;i.startTime(),i.windowFocusOut(),i.setLinkAtual(),i.box_skitter.find(".image a img").attr({src:i.settings.image_atual}),img_link=i.box_skitter.find(".image a"),img_link=i.resizeImage(img_link),img_link.find("img").fadeIn(1500),i.setValueBoxText(),i.showBoxText(),i.settings.auto_play&amp;&amp;i.stopOnMouseOver();var e=function(){i.settings.stop_over&amp;&amp;(s=!0,i.settings.is_hover_box_skitter=!0,i.clearTimer(!0),i.pauseProgressBar())};i.box_skitter.mouseover(e),i.box_skitter.find(".next_button").mouseover(e),i.settings.images_links.length&gt;1&amp;&amp;!s?i.settings.auto_play&amp;&amp;(i.timer=setTimeout(function(){i.nextImage()},i.settings.interval)):i.box_skitter.find(".loading, .image_loading, .image_number, .next_button, .prev_button").remove(),t.isFunction(i.settings.onLoad)&amp;&amp;i.settings.onLoad(i)},jumpToImage:function(t){0==this.settings.is_animating&amp;&amp;(this.settings.elapsedTime=0,this.box_skitter.find(".box_clone").stop(),this.clearTimer(!0),this.settings.image_i=Math.floor(t),this.box_skitter.find(".image a").attr({href:this.settings.link_atual}),this.box_skitter.find(".image_main").attr({src:this.settings.image_atual}),this.box_skitter.find(".box_clone").remove(),this.nextImage())},nextImage:function(){var t=this;if(animations_functions=["cube","cubeRandom","block","cubeStop","cubeStopRandom","cubeHide","cubeSize","horizontal","showBars","showBarsRandom","tube","fade","fadeFour","paralell","blind","blindHeight","blindWidth","directionTop","directionBottom","directionRight","directionLeft","cubeSpread","glassCube","glassBlock","circles","circlesInside","circlesRotate","cubeShow","upBars","downBars","hideBars","swapBars","swapBarsBack","swapBlocks","cut"],t.settings.progressbar&amp;&amp;t.hideProgressBar(),animation_type=""==this.settings.animation&amp;&amp;this.settings.images_links[this.settings.image_i][2]?this.settings.images_links[this.settings.image_i][2]:""==this.settings.animation?"default":this.settings.animation,"randomSmart"==animation_type)this.settings.random_ia||(animations_functions.sort(function(){return.5-Math.random()}),this.settings.random_ia=animations_functions),animation_type=this.settings.random_ia[this.settings.image_i];else if("random"==animation_type){var i=parseInt(Math.random()*animations_functions.length);animation_type=animations_functions[i]}else if(t.settings.with_animations.length&gt;0){var s=t.settings.with_animations.length;void 0==this.settings._i_animation&amp;&amp;(this.settings._i_animation=0),animation_type=t.settings.with_animations[this.settings._i_animation],++this.settings._i_animation,this.settings._i_animation&gt;=s&amp;&amp;(this.settings._i_animation=0)}switch(animation_type){case"cube":this.animationCube();break;case"cubeRandom":this.animationCube({random:!0});break;case"block":this.animationBlock();break;case"cubeStop":this.animationCubeStop();break;case"cubeStopRandom":this.animationCubeStop({random:!0});break;case"cubeHide":this.animationCubeHide();break;case"cubeSize":this.animationCubeSize();break;case"horizontal":this.animationHorizontal();break;case"showBars":this.animationShowBars();break;case"showBarsRandom":this.animationShowBars({random:!0});break;case"tube":this.animationTube();break;case"fade":this.animationFade();break;case"fadeFour":this.animationFadeFour();break;case"paralell":this.animationParalell();break;case"blind":this.animationBlind();break;case"blindHeight":this.animationBlindDimension({height:!0});break;case"blindWidth":this.animationBlindDimension({height:!1,time_animate:400,delay:50});break;case"directionTop":this.animationDirection({direction:"top"});break;case"directionBottom":this.animationDirection({direction:"bottom"});break;case"directionRight":this.animationDirection({direction:"right",total:5});break;case"directionLeft":this.animationDirection({direction:"left",total:5});break;case"cubeSpread":this.animationCubeSpread();break;case"cubeJelly":this.animationCubeJelly();break;case"glassCube":this.animationGlassCube();break;case"glassBlock":this.animationGlassBlock();break;case"circles":this.animationCircles();break;case"circlesInside":this.animationCirclesInside();break;case"circlesRotate":this.animationCirclesRotate();break;case"cubeShow":this.animationCubeShow();break;case"upBars":this.animationDirectionBars({direction:"top"});break;case"downBars":this.animationDirectionBars({direction:"bottom"});break;case"hideBars":this.animationHideBars();break;case"swapBars":this.animationSwapBars();break;case"swapBarsBack":this.animationSwapBars({easing:"easeOutBack"});break;case"swapBlocks":this.animationSwapBlocks();break;case"cut":this.animationCut();break;default:this.animationTube()}},animationCube:function(s){var e=this,s=t.extend({},{random:!1},s||{});this.settings.is_animating=!0;var n=""==this.settings.easing_default?"easeOutExpo":this.settings.easing_default,a=700/this.settings.velocity;this.setActualLevel();var o=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/8)),h=Math.ceil(this.settings.height_skitter/(this.settings.height_skitter/3)),r=o*h,g=Math.ceil(this.settings.width_skitter/o),l=Math.ceil(this.settings.height_skitter/h),d=this.settings.height_skitter+200,_=this.settings.height_skitter+200,c=0,u=0;for(i=0;r&gt;i;i++){d=0==i%2?d:-d,_=0==i%2?_:-_;var f=d+l*c+150*c,m=-e.settings.width_skitter,p=-(l*c),k=-(g*u),b=l*c,v=g*u,x=this.getBoxClone();x.hide();var w=50*i;s.random?(w=40*u,x.css({left:m+"px",top:f+"px",width:g,height:l})):(a=500,x.css({left:this.settings.width_skitter+g*i,top:this.settings.height_skitter+l*i,width:g,height:l})),this.addBoxClone(x);var y=i==r-1?function(){e.finishAnimation()}:"";x.show().delay(w).animate({top:b+"px",left:v+"px"},a,n,y),s.random?(x.find("img").css({left:k+100,top:p+50}),x.find("img").delay(w+a/2).animate({left:k,top:p},1e3,"easeOutBack")):(x.find("img").css({left:k,top:p}),x.find("img").delay(w+a/2).fadeTo(100,.5).fadeTo(300,1)),c++,c==h&amp;&amp;(c=0,u++)}},animationBlock:function(){var t=this;this.settings.is_animating=!0;var s=""==this.settings.easing_default?"easeOutQuad":this.settings.easing_default,e=500/this.settings.velocity;this.setActualLevel();var n=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/15)),a=Math.ceil(this.settings.width_skitter/n),o=this.settings.height_skitter;for(i=0;n&gt;i;i++){var h=a*i,r=0,g=this.getBoxClone();g.css({left:this.settings.width_skitter+100,top:0,width:a,height:o}),g.find("img").css({left:-(a*i)}),this.addBoxClone(g);var l=80*i,d=i==n-1?function(){t.finishAnimation()}:"";g.show().delay(l).animate({top:r,left:h},e,s),g.find("img").hide().delay(l+100).animate({opacity:"show"},e+300,s,d)}},animationCubeStop:function(s){var e=this,s=t.extend({},{random:!1},s||{});this.settings.is_animating=!0;var n=""==this.settings.easing_default?"easeInQuad":this.settings.easing_default,a=300/this.settings.velocity,o=this.box_skitter.find(".image_main").attr("src");this.setActualLevel(),this.setLinkAtual(),this.box_skitter.find(".image_main").attr({src:this.settings.image_atual});var h=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/8)),r=Math.ceil(this.settings.height_skitter/(this.settings.width_skitter/8)),g=h*r,l=Math.ceil(this.settings.width_skitter/h),d=Math.ceil(this.settings.height_skitter/r),_=0,c=0,u=0,f=0,m=this.settings.width_skitter/16;for(i=0;g&gt;i;i++){_=0==i%2?_:-_,c=0==i%2?c:-c;var p=_+d*u,k=c+l*f,b=-(d*u),v=-(l*f),x=p-m,w=k-m,y=this.getBoxCloneImgOld(o);y.css({left:k+"px",top:p+"px",width:l,height:d}),y.find("img").css({left:v,top:b}),this.addBoxClone(y),y.show();var B=50*i;s.random&amp;&amp;(a=400*(e.getRandom(2)+1)/this.settings.velocity,x=p,w=k,B=Math.ceil(30*e.getRandom(30))),s.random&amp;&amp;i==g-1&amp;&amp;(a=1200,B=900);var C=i==g-1?function(){e.finishAnimation()}:"";y.delay(B).animate({opacity:"hide",top:x+"px",left:w+"px"},a,n,C),u++,u==r&amp;&amp;(u=0,f++)}},animationCubeHide:function(){var t=this;this.settings.is_animating=!0;var s=""==this.settings.easing_default?"easeOutQuad":this.settings.easing_default,e=500/this.settings.velocity,n=this.box_skitter.find(".image_main").attr("src");this.setActualLevel(),this.setLinkAtual(),this.box_skitter.find(".image_main").attr({src:this.settings.image_atual});var a=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/8)),o=Math.ceil(this.settings.height_skitter/(this.settings.height_skitter/3)),h=a*o,r=Math.ceil(this.settings.width_skitter/a),g=Math.ceil(this.settings.height_skitter/o),l=0,d=0,_=0,c=0;for(i=0;h&gt;i;i++){l=0==i%2?l:-l,d=0==i%2?d:-d;var u=l+g*_,f=d+r*c,m=-(g*_),p=-(r*c),k=this.getBoxCloneImgOld(n);k.css({left:f+"px",top:u+"px",width:r,height:g}),k.find("img").css({left:p,top:m}),this.addBoxClone(k),k.show();var b=50*i;b=i==h-1?50*h:b;var v=i==h-1?function(){t.finishAnimation()}:"";k.delay(b).animate({opacity:"hide"},e,s,v),_++,_==o&amp;&amp;(_=0,c++)}},animationCubeJelly:function(){var t=this;this.settings.is_animating=!0;var s=""==this.settings.easing_default?"easeInBack":this.settings.easing_default,e=300/this.settings.velocity,n=this.box_skitter.find(".image_main").attr("src");this.setActualLevel(),this.setLinkAtual(),this.box_skitter.find(".image_main").attr({src:this.settings.image_atual});var a=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/8)),o=Math.ceil(this.settings.height_skitter/(this.settings.height_skitter/3)),h=a*o,r=Math.ceil(this.settings.width_skitter/a),g=Math.ceil(this.settings.height_skitter/o),l=0,d=0,_=0,c=0,u=-1;for(i=0;h&gt;i;i++){0!=c%2?(0==_&amp;&amp;(u=u+o+1),u--):(c&gt;0&amp;&amp;0==_&amp;&amp;(u+=2),u++),l=0==i%2?l:-l,d=0==i%2?d:-d;var f=l+g*_,m=d+r*c,p=-(g*_),k=-(r*c),b=this.getBoxCloneImgOld(n);b.css({left:m+"px",top:f+"px",width:r,height:g}),b.find("img").css({left:k,top:p}),this.addBoxClone(b),b.show();var v=50*i,x=i==h-1?function(){t.finishAnimation()}:"";b.delay(v).animate({width:"+=100px",height:"+=100px",top:"-=20px",left:"-=20px",opacity:"hide"},e,s,x),_++,_==o&amp;&amp;(_=0,c++)}},animationCubeSize:function(){var t=this;this.settings.is_animating=!0;var s=""==this.settings.easing_default?"easeInOutQuad":this.settings.easing_default,e=600/this.settings.velocity,n=this.box_skitter.find(".image_main").attr("src");this.setActualLevel(),this.setLinkAtual(),this.box_skitter.find(".image_main").attr({src:this.settings.image_atual});var a=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/8)),o=Math.ceil(this.settings.height_skitter/(this.settings.height_skitter/3)),h=a*o,r=Math.ceil(this.settings.width_skitter/a),g=Math.ceil(this.settings.height_skitter/o),l=0,d=0,_=0,c=0;for(Math.ceil(this.settings.width_skitter/6),i=0;h&gt;i;i++){l=0==i%2?l:-l,d=0==i%2?d:-d;var u=l+g*_,f=d+r*c,m=-(g*_),p=-(r*c),k=this.getBoxCloneImgOld(n);k.css({left:f,top:u,width:r,height:g}),k.find("img").css({left:p,top:m}),this.addBoxClone(k),k.show();var b=50*i,v=i==h-1?function(){t.finishAnimation()}:"";k.delay(b).animate({opacity:"hide",width:"hide",height:"hide",top:u+1.5*r,left:f+1.5*g},e,s,v),_++,_==o&amp;&amp;(_=0,c++)}},animationHorizontal:function(){var t=this;this.settings.is_animating=!0;var s=""==this.settings.easing_default?"easeOutExpo":this.settings.easing_default,e=700/this.settings.velocity;this.setActualLevel();var n=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/7)),a=this.settings.width_skitter,o=Math.ceil(this.settings.height_skitter/n);for(i=0;n&gt;i;i++){var h=(0==i%2?"":"")+a,r=i*o,g=this.getBoxClone();g.css({left:h+"px",top:r+"px",width:a,height:o}),g.find("img").css({left:0,top:-r}),this.addBoxClone(g);var l=90*i,d=i==n-1?function(){t.finishAnimation()}:"";g.delay(l).animate({opacity:"show",top:r,left:0},e,s,d)}},animationShowBars:function(s){var e=this,s=t.extend({},{random:!1},s||{});this.settings.is_animating=!0;var n=""==this.settings.easing_default?"easeOutQuad":this.settings.easing_default,a=400/this.settings.velocity;this.setActualLevel();var o=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/10)),h=Math.ceil(this.settings.width_skitter/o),r=this.settings.height_skitter;for(i=0;o&gt;i;i++){var g=h*i,l=0,d=this.getBoxClone();if(d.css({left:g,top:l-50,width:h,height:r}),d.find("img").css({left:-(h*i),top:0}),this.addBoxClone(d),s.random){var _=this.getRandom(o),c=50*_;c=i==o-1?50*o:c}else{var c=70*i;a-=2*i}var u=i==o-1?function(){e.finishAnimation()}:"";d.delay(c).animate({opacity:"show",top:l+"px",left:g+"px"},a,n,u)}},animationTube:function(){var t=this;this.settings.is_animating=!0;var s=""==this.settings.easing_default?"easeOutElastic":this.settings.easing_default,e=600/this.settings.velocity;this.setActualLevel();var n=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/10)),a=Math.ceil(this.settings.width_skitter/n),o=this.settings.height_skitter;for(i=0;n&gt;i;i++){var h=0,r=o,g=a*i,l=this.getBoxClone();l.css({left:g,top:r,height:o,width:a}),l.find("img").css({left:-g}),this.addBoxClone(l);var d=this.getRandom(n),_=30*d,c=i==n-1?function(){t.finishAnimation()}:"";l.show().delay(_).animate({top:h},e,s,c)}},animationFade:function(){var t=this;this.settings.is_animating=!0;var s=""==this.settings.easing_default?"easeOutQuad":this.settings.easing_default,e=800/this.settings.velocity;this.setActualLevel();var n=this.settings.width_skitter,a=this.settings.height_skitter,o=2;for(i=0;o&gt;i;i++){var h=0,r=0,g=this.getBoxClone();g.css({left:r,top:h,width:n,height:a}),this.addBoxClone(g);var l=i==o-1?function(){t.finishAnimation()}:"";g.animate({opacity:"show",left:0,top:0},e,s,l)}},animationFadeFour:function(){var t=this;this.settings.is_animating=!0;var s=""==this.settings.easing_default?"easeOutQuad":this.settings.easing_default,e=500/this.settings.velocity;this.setActualLevel();var n=this.settings.width_skitter,a=this.settings.height_skitter,o=4;for(i=0;o&gt;i;i++){if(0==i)var h="-100px",r="-100px";else if(1==i)var h="-100px",r="100px";else if(2==i)var h="100px",r="-100px";else if(3==i)var h="100px",r="100px";var g=this.getBoxClone();g.css({left:r,top:h,width:n,height:a}),this.addBoxClone(g);var l=i==o-1?function(){t.finishAnimation()}:"";g.animate({opacity:"show",left:0,top:0},e,s,l)}},animationParalell:function(){var t=this;this.settings.is_animating=!0;var s=""==this.settings.easing_default?"easeOutQuad":this.settings.easing_default,e=400/this.settings.velocity;this.setActualLevel();var n=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/16)),a=Math.ceil(this.settings.width_skitter/n),o=this.settings.height_skitter;for(i=0;n&gt;i;i++){var h=a*i,r=0,g=this.getBoxClone();g.css({left:h,top:r-this.settings.height_skitter,width:a,height:o}),g.find("img").css({left:-(a*i),top:0}),this.addBoxClone(g);var l;n/2-1&gt;=i?l=1400-200*i:i&gt;n/2-1&amp;&amp;(l=200*(i-n/2)),l/=2.5;var d=i==n-1?function(){t.finishAnimation()}:"";g.delay(l).animate({top:r+"px",left:h+"px",opacity:"show"},e,s,d)}},animationBlind:function(s){var e=this,s=t.extend({},{height:!1},s||{});this.settings.is_animating=!0;var n=""==this.settings.easing_default?"easeOutQuad":this.settings.easing_default,a=400/this.settings.velocity;this.setActualLevel();var o=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/16)),h=Math.ceil(this.settings.width_skitter/o),r=this.settings.height_skitter;for(i=0;o&gt;i;i++){var g=h*i,l=0,d=this.getBoxClone();d.css({left:g,top:l,width:h,height:r}),d.find("img").css({left:-(h*i),top:0}),this.addBoxClone(d);var _;if(s.height){o/2-1&gt;=i?_=200+200*i:i&gt;o/2-1&amp;&amp;(_=200*(o/2-i)+100*o);var c=i==o/2?function(){e.finishAnimation()}:""}else{o/2-1&gt;=i?_=1400-200*i:i&gt;o/2-1&amp;&amp;(_=200*(i-o/2));var c=i==o-1?function(){e.finishAnimation()}:""}if(_/=2.5,s.height){a+=2*i;var n="easeOutQuad";d.delay(_).animate({opacity:"show",top:l+"px",left:g+"px",height:"show"},a,n,c)}else d.delay(_).animate({opacity:"show",top:l+"px",left:g+"px",width:"show"},a,n,c)}},animationBlindDimension:function(s){var e=this,s=t.extend({},{height:!0,time_animate:500,delay:100},s||{});this.settings.is_animating=!0;var n=""==this.settings.easing_default?"easeOutQuad":this.settings.easing_default,a=s.time_animate/this.settings.velocity;this.setActualLevel();var o=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/16)),h=Math.ceil(this.settings.width_skitter/o),r=this.settings.height_skitter;for(i=0;o&gt;i;i++){var g=h*i,l=0,d=this.getBoxClone();d.css({left:g,top:l,width:h,height:r}),d.find("img").css({left:-(h*i),top:0}),this.addBoxClone(d);var _=s.delay*i,c=i==o-1?function(){e.finishAnimation()}:"";if(s.height){var n="easeOutQuad";d.delay(_).animate({opacity:"show",top:l+"px",left:g+"px",height:"show"},a,n,c)}else d.delay(_).animate({opacity:"show",top:l+"px",left:g+"px",width:"show"},a,n,c)}},animationDirection:function(s){var e=this,s=t.extend({},{direction:"top",delay_type:"sequence",total:7},s||{});this.settings.is_animating=!0;var n=""==this.settings.easing_default?"easeInOutExpo":this.settings.easing_default,a=1200/this.settings.velocity,o=this.box_skitter.find(".image_main").attr("src");this.setActualLevel(),this.setLinkAtual(),this.box_skitter.find(".image_main").attr({src:this.settings.image_atual}),this.box_skitter.find(".image_main").hide();var h=s.total;for(i=0;h&gt;i;i++){switch(s.direction){default:case"top":var r=Math.ceil(this.settings.width_skitter/h),g=this.settings.height_skitter,l=0,d=r*i,_=-g,c=d,u=g,f=d,m=0,p=d,k=0,b=-d;break;case"bottom":var r=Math.ceil(this.settings.width_skitter/h),g=this.settings.height_skitter,l=0,d=r*i,_=g,c=d,u=-g,f=d,m=0,p=d,k=0,b=-d;break;case"right":var r=this.settings.width_skitter,g=Math.ceil(this.settings.height_skitter/h),l=g*i,d=0,_=l,c=r,u=l,f=-c,m=l,p=0,k=-l,b=0;break;case"left":var r=this.settings.width_skitter,g=Math.ceil(this.settings.height_skitter/h),l=g*i,d=0,_=l,c=-r,u=l,f=-c,m=l,p=0,k=-l,b=0}switch(s.delay_type){case"zebra":default:var v=0==i%2?0:150;break;case"random":var v=30*30*Math.random();break;case"sequence":var v=100*i}var x=this.getBoxCloneImgOld(o);x.find("img").css({left:b,top:k}),x.css({top:l,left:d,width:r,height:g}),this.addBoxClone(x),x.show(),x.delay(v).animate({top:_,left:c},a,n);var w=this.getBoxClone();w.find("img").css({left:b,top:k}),w.css({top:u,left:f,width:r,height:g}),this.addBoxClone(w),w.show();var y=i==h-1?function(){e.finishAnimation()}:"";w.delay(v).animate({top:m,left:p},a,n,y)}},animationCubeSpread:function(){var t=this;this.settings.is_animating=!0;var s=""==this.settings.easing_default?"easeOutQuad":this.settings.easing_default,e=700/this.settings.velocity;this.setActualLevel();var n=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/8)),a=Math.ceil(this.settings.height_skitter/(this.settings.width_skitter/8)),o=n*a,h=Math.ceil(this.settings.width_skitter/n),r=Math.ceil(this.settings.height_skitter/a),g=0,l=0,d=0,_=0,c=new Array,u=new Array;for(i=0;o&gt;i;i++){g=0==i%2?g:-g,l=0==i%2?l:-l;var f=g+r*d,m=l+h*_;c[i]=[f,m],d++,d==a&amp;&amp;(d=0,_++)}for(d=0,_=0,i=0;o&gt;i;i++)u[i]=i;var u=t.shuffleArray(u);for(i=0;o&gt;i;i++){g=0==i%2?g:-g,l=0==i%2?l:-l;var f=g+r*d,m=l+h*_,p=-(r*d),k=-(h*_),b=f,v=m;f=c[u[i]][0],m=c[u[i]][1];var x=this.getBoxClone();x.css({left:m+"px",top:f+"px",width:h,height:r}),x.find("img").css({left:k,top:p}),this.addBoxClone(x);var w=30*30*Math.random();i==o-1&amp;&amp;(w=900);var y=i==o-1?function(){t.finishAnimation()}:"";x.delay(w).animate({opacity:"show",top:b+"px",left:v+"px"},e,s,y),d++,d==a&amp;&amp;(d=0,_++)}},animationGlassCube:function(){var t=this;this.settings.is_animating=!0;var s=""==this.settings.easing_default?"easeOutExpo":this.settings.easing_default,e=500/this.settings.velocity;this.setActualLevel();var n=2*Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/10)),a=2*Math.ceil(this.settings.width_skitter/n),o=this.settings.height_skitter/2,h=0;for(i=0;n&gt;i;i++){mod=0==i%2?!0:!1;var r=a*h,g=mod?-t.settings.height_skitter:t.settings.height_skitter,l=a*h,d=mod?0:o,_=-(a*h),c=mod?0:-o,u=120*h,f=this.getBoxClone();f.css({left:r,top:g,width:a,height:o}),f.find("img").css({left:_+a/1.5,top:c}).delay(u).animate({left:_,top:c},1.9*e,"easeOutQuad"),this.addBoxClone(f);var m=i==n-1?function(){t.finishAnimation()}:"";f.show().delay(u).animate({top:d,left:l},e,s,m),0!=i%2&amp;&amp;h++}},animationGlassBlock:function(){var t=this;this.settings.is_animating=!0;var s=""==this.settings.easing_default?"easeOutExpo":this.settings.easing_default,e=700/this.settings.velocity;this.setActualLevel();var n=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/10)),a=Math.ceil(this.settings.width_skitter/n),o=this.settings.height_skitter;for(i=0;n&gt;i;i++){var h=a*i,r=0,g=a*i,l=0,d=-(a*i),_=0,c=100*i,u=this.getBoxClone();u.css({left:h,top:r,width:a,height:o}),u.find("img").css({left:d+a/1.5,top:_}).delay(c).animate({left:d,top:_},1.1*e,"easeInOutQuad"),this.addBoxClone(u);var f=i==n-1?function(){t.finishAnimation()}:"";u.delay(c).animate({top:l,left:g,opacity:"show"},e,s,f)}},animationCircles:function(){var t=this;this.settings.is_animating=!0;var s=""==this.settings.easing_default?"easeInQuad":this.settings.easing_default,e=500/this.settings.velocity;this.setActualLevel();var n=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/10)),a=100,o=Math.sqrt(Math.pow(this.settings.width_skitter,2)+Math.pow(this.settings.height_skitter,2)),o=Math.ceil(o);for(i=0;n&gt;i;i++){var h=t.settings.width_skitter/2-a/2,r=t.settings.height_skitter/2-a/2,g=h,l=r,d=null;d=this.getBoxCloneBackground({image:t.settings.image_atual,left:h,top:r,width:a,height:a,position:{top:-r,left:-h}}).css3({"border-radius":o+"px"}),a+=100,this.addBoxClone(d);var _=70*i,c=i==n-1?function(){t.finishAnimation()}:"";d.delay(_).animate({top:l,left:g,opacity:"show"},e,s,c)
}},animationCirclesInside:function(){var t=this;this.settings.is_animating=!0;var s=""==this.settings.easing_default?"easeInQuad":this.settings.easing_default,e=500/this.settings.velocity,n=this.box_skitter.find(".image_main").attr("src");this.setActualLevel(),this.setLinkAtual(),this.box_skitter.find(".image_main").attr({src:this.settings.image_atual});var a=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/10)),o=Math.sqrt(Math.pow(this.settings.width_skitter,2)+Math.pow(this.settings.height_skitter,2)),o=Math.ceil(o),h=o;for(i=0;a&gt;i;i++){var r=t.settings.width_skitter/2-h/2,g=t.settings.height_skitter/2-h/2,l=r,d=g,_=null;_=this.getBoxCloneBackground({image:n,left:r,top:g,width:h,height:h,position:{top:-g,left:-r}}).css3({"border-radius":o+"px"}),h-=100,this.addBoxClone(_),_.show();var c=70*i,u=i==a-1?function(){t.finishAnimation()}:"";_.delay(c).animate({top:d,left:l,opacity:"hide"},e,s,u)}},animationCirclesRotate:function(){var t=this;this.settings.is_animating=!0;var s=""==this.settings.easing_default?"easeOutQuad":this.settings.easing_default,e=500/this.settings.velocity,n=this.box_skitter.find(".image_main").attr("src");this.setActualLevel(),this.setLinkAtual(),this.box_skitter.find(".image_main").attr({src:this.settings.image_atual});var a=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/10)),o=Math.sqrt(Math.pow(this.settings.width_skitter,2)+Math.pow(this.settings.height_skitter,2)),o=Math.ceil(o),h=o;for(i=0;a&gt;i;i++){var r=t.settings.width_skitter/2-h/2,g=t.settings.height_skitter/2-h/2,l=r,d=g,_=null;_=this.getBoxCloneBackground({image:n,left:r,top:g,width:h,height:h,position:{top:-g,left:-r}}).css3({"border-radius":o+"px"}),h-=200,this.addBoxClone(_),_.show();var c=100*i,u=i==a-1?function(){t.finishAnimation()}:"",f=0==i%2?45:-45;_.delay(c).animate({top:d,left:l,opacity:"hide"},e,s,u),_.delay(c).animateRotate(f,e+600,"easeInQuad")}},animationCubeShow:function(){var t=this;this.settings.is_animating=!0;var s=""==this.settings.easing_default?"easeOutQuad":this.settings.easing_default,e=400/this.settings.velocity;this.setActualLevel();var n=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/8)),a=Math.ceil(this.settings.height_skitter/(this.settings.height_skitter/4)),o=n*a,h=Math.ceil(this.settings.width_skitter/n),r=Math.ceil(this.settings.height_skitter/a),g=0,l=0,d=0,_=0;for(i=0;o&gt;i;i++){g=r*d,l=h*_;var c=30*i,u=this.getBoxClone();u.css({left:l,top:g,width:h,height:r}).hide(),u.find("img").css({left:-l,top:-g}),this.addBoxClone(u);var f=i==o-1?function(){t.finishAnimation()}:"";u.delay(c).animate({width:"show",height:"show"},e,s,f),d++,d==a&amp;&amp;(d=0,_++)}},animationDirectionBars:function(s){var e=this,s=t.extend({},{direction:"top"},s||{});this.settings.is_animating=!0;var n=""==this.settings.easing_default?"easeInOutQuad":this.settings.easing_default,a=400/this.settings.velocity,o=this.box_skitter.find(".image_main").attr("src");this.setActualLevel(),this.setLinkAtual(),this.box_skitter.find(".image_main").attr({src:this.settings.image_atual});var h=12,r=Math.ceil(this.settings.width_skitter/h),g=this.settings.height_skitter,l="top"==s.direction?-g:g;for(i=0;h&gt;i;i++){var d=0,_=r*i,c=0,u=-(r*i),f=this.getBoxCloneImgOld(o);f.css({left:_+"px",top:d+"px",width:r,height:g}),f.find("img").css({left:u,top:c}),this.addBoxClone(f),f.show();var m=70*i,p=i==h-1?function(){e.finishAnimation()}:"";f.delay(m).animate({top:l},a,n,p)}},animationHideBars:function(s){var e=this,s=t.extend({},{random:!1},s||{});this.settings.is_animating=!0;var n=""==this.settings.easing_default?"easeOutCirc":this.settings.easing_default,a=700/this.settings.velocity,o=this.box_skitter.find(".image_main").attr("src");this.setActualLevel(),this.setLinkAtual(),this.box_skitter.find(".image_main").attr({src:this.settings.image_atual});var h=Math.ceil(this.settings.width_skitter/(this.settings.width_skitter/10)),r=h,g=Math.ceil(this.settings.width_skitter/h),l=this.settings.height_skitter;for(i=0;r&gt;i;i++){var d=0,_=g*i,c=0,u=-(g*i),f="+="+g,m=this.getBoxCloneImgOld(o);m.css({left:0,top:0,width:g,height:l}),m.find("img").css({left:u,top:c});var p=this.getBoxCloneImgOld(o);p.css({left:_+"px",top:d+"px",width:g,height:l}),p.html(m),this.addBoxClone(p),m.show(),p.show();var k=50*i,b=i==r-1?function(){e.finishAnimation()}:"";m.delay(k).animate({left:f},a,n,b)}},animationSwapBars:function(s){var e=this,s=t.extend({},{direction:"top",delay_type:"sequence",total:7,easing:"easeOutCirc"},s||{});this.settings.is_animating=!0;var n=""==this.settings.easing_default?s.easing:this.settings.easing_default,a=500/this.settings.velocity,o=this.box_skitter.find(".image_main").attr("src");this.setActualLevel(),this.setLinkAtual(),this.box_skitter.find(".image_main").attr({src:this.settings.image_atual}),this.box_skitter.find(".image_main").hide();var h=s.total;for(i=0;h&gt;i;i++){var r=Math.ceil(this.settings.width_skitter/h),g=this.settings.height_skitter,l=r*i,d=-l;switch(s.delay_type){case"zebra":default:var _=0==i%2?0:150;break;case"random":var _=30*30*Math.random();break;case"sequence":var _=100*i}var c=this.getBoxCloneImgOld(o);c.find("img").css({left:d,top:0}),c.css({top:0,left:0,width:r,height:g});var u=this.getBoxClone();u.find("img").css({left:d,top:0}),u.css({top:0,left:-r,width:r,height:g});var f=this.getBoxClone();f.html("").append(c).append(u),f.css({top:0,left:l,width:r,height:g}),this.addBoxClone(f),f.show(),c.show(),u.show();var m=i==h-1?function(){e.finishAnimation()}:"";c.delay(_).animate({left:r},a,n),u.delay(_).animate({left:0},a,n,m)}},animationSwapBlocks:function(i){var s=this,i=t.extend({},{easing_old:"easeInOutQuad",easing_new:"easeOutQuad"},i||{});this.settings.is_animating=!0;var e=""==this.settings.easing_default?i.easing_old:this.settings.easing_default,n=""==this.settings.easing_default?i.easing_new:this.settings.easing_default,a=800/this.settings.velocity,o=this.box_skitter.find(".image_main").attr("src");this.setActualLevel(),this.setLinkAtual(),this.box_skitter.find(".image_main").attr({src:this.settings.image_atual}),this.box_skitter.find(".image_main").hide();var h=2,r=this.settings.width_skitter,g=Math.ceil(this.settings.height_skitter/h),l=this.getBoxCloneImgOld(o),d=this.getBoxCloneImgOld(o);l.find("img").css({left:0,top:0}),l.css({top:0,left:0,width:r,height:g}),d.find("img").css({left:0,top:-g}),d.css({top:g,left:0,width:r,height:g});var _=this.getBoxClone(),c=this.getBoxClone();_.find("img").css({left:0,top:g}),_.css({top:0,left:0,width:r,height:g}),c.find("img").css({left:0,top:-(g*h)}),c.css({top:g,left:0,width:r,height:g}),this.addBoxClone(_),this.addBoxClone(c),this.addBoxClone(l),this.addBoxClone(d),l.show(),d.show(),_.show(),c.show();var u=function(){s.finishAnimation()};l.find("img").animate({top:g},a,e,function(){l.remove()}),d.find("img").animate({top:-(g*h)},a,e,function(){d.remove()}),_.find("img").animate({top:0},a,n),c.find("img").animate({top:-g},a,n,u)},animationCut:function(i){var s=this,i=t.extend({},{easing_old:"easeInOutExpo",easing_new:"easeInOutExpo"},i||{});this.settings.is_animating=!0;var e=""==this.settings.easing_default?i.easing_old:this.settings.easing_default,n=""==this.settings.easing_default?i.easing_new:this.settings.easing_default,a=900/this.settings.velocity,o=this.box_skitter.find(".image_main").attr("src");this.setActualLevel(),this.setLinkAtual(),this.box_skitter.find(".image_main").attr({src:this.settings.image_atual}),this.box_skitter.find(".image_main").hide();var h=2,r=this.settings.width_skitter,g=Math.ceil(this.settings.height_skitter/h),l=this.getBoxCloneImgOld(o),d=this.getBoxCloneImgOld(o);l.find("img").css({left:0,top:0}),l.css({top:0,left:0,width:r,height:g}),d.find("img").css({left:0,top:-g}),d.css({top:g,left:0,width:r,height:g});var _=this.getBoxClone(),c=this.getBoxClone();_.find("img").css({left:0,top:0}),_.css({top:0,left:r,width:r,height:g}),c.find("img").css({left:0,top:-g}),c.css({top:g,left:-r,width:r,height:g}),this.addBoxClone(_),this.addBoxClone(c),this.addBoxClone(l),this.addBoxClone(d),l.show(),d.show(),_.show(),c.show();var u=function(){s.finishAnimation()};l.animate({left:-r},a,e,function(){l.remove()}),d.animate({left:r},a,e,function(){d.remove()}),_.animate({left:0},a,n),c.animate({left:0},a,n,u)},finishAnimation:function(){var t=this;this.box_skitter.find(".image_main").show(),this.showBoxText(),this.settings.is_animating=!1,this.box_skitter.find(".image_main").attr({src:this.settings.image_atual}),this.box_skitter.find(".image a").attr({href:this.settings.link_atual}),this.settings.is_hover_box_skitter||this.settings.is_paused||this.settings.is_blur||(this.timer=setTimeout(function(){t.completeMove()},this.settings.interval)),t.startTime()},completeMove:function(){this.clearTimer(!0),this.box_skitter.find(".box_clone").remove(),this.settings.is_paused||this.settings.is_blur||this.nextImage()},setActualLevel:function(){t.isFunction(this.settings.imageSwitched)&amp;&amp;this.settings.imageSwitched(this.settings.image_i,this),this.setImageLink(),this.addClassNumber(),this.hideBoxText(),this.increasingImage()},setImageLink:function(){var t=this.settings.images_links[this.settings.image_i][0],i=this.settings.images_links[this.settings.image_i][1],s=this.settings.images_links[this.settings.image_i][3],e=this.settings.images_links[this.settings.image_i][4];this.settings.image_atual=t,this.settings.link_atual=i,this.settings.label_atual=s,this.settings.target_atual=e},addClassNumber:function(){var i=this;this.box_skitter.find(".image_number_select").removeClass("image_number_select"),t("#image_n_"+(this.settings.image_i+1)+"_"+i.number_skitter).addClass("image_number_select")},increasingImage:function(){this.settings.image_i++,this.settings.image_i==this.settings.images_links.length&amp;&amp;(this.settings.image_i=0)},getBoxClone:function(){if("#"!=this.settings.link_atual){var i=t('&lt;a href="'+this.settings.link_atual+'"&gt;&lt;img src="'+this.settings.image_atual+'" /&gt;&lt;/a&gt;');i.attr({target:this.settings.target_atual})}else var i=t('&lt;img src="'+this.settings.image_atual+'" /&gt;');i=this.resizeImage(i);var s=t('&lt;div class="box_clone"&gt;&lt;/div&gt;');return s.append(i),s},getBoxCloneImgOld:function(i){if("#"!=this.settings.link_atual){var s=t('&lt;a href="'+this.settings.link_atual+'"&gt;&lt;img src="'+i+'" /&gt;&lt;/a&gt;');s.attr({target:this.settings.target_atual})}else var s=t('&lt;img src="'+i+'" /&gt;');s=this.resizeImage(s);var e=t('&lt;div class="box_clone"&gt;&lt;/div&gt;');return e.append(s),e},resizeImage:function(t){return this.settings.fullscreen&amp;&amp;t.find("img").height(this.settings.height_skitter),t},addBoxClone:function(t){this.box_skitter.find(".container_skitter").append(t)},getEasing:function(t){var i=["easeInQuad","easeOutQuad","easeInOutQuad","easeInCubic","easeOutCubic","easeInOutCubic","easeInQuart","easeOutQuart","easeInOutQuart","easeInQuint","easeOutQuint","easeInOutQuint","easeInSine","easeOutSine","easeInOutSine","easeInExpo","easeOutExpo","easeInOutExpo","easeInCirc","easeOutCirc","easeInOutCirc","easeInElastic","easeOutElastic","easeInOutElastic","easeInBack","easeOutBack","easeInOutBack","easeInBounce","easeOutBounce","easeInOutBounce"];return jQuery.inArray(t,i)&gt;0?t:""},getRandom:function(t){return Math.floor(Math.random()*t)},setValueBoxText:function(){this.box_skitter.find(".label_skitter").html(this.settings.label_atual)},showBoxText:function(){var t=this;if(void 0!=this.settings.label_atual&amp;&amp;""!=this.settings.label_atual&amp;&amp;t.settings.label)switch(t.settings.labelAnimation){case"slideUp":default:t.box_skitter.find(".label_skitter").slideDown(400);break;case"left":case"right":t.box_skitter.find(".label_skitter").animate({left:0},400,"easeInOutQuad");break;case"fixed":}},hideBoxText:function(){var t=this;switch(t.settings.labelAnimation){case"slideUp":default:this.box_skitter.find(".label_skitter").slideUp(200,function(){t.setValueBoxText()});break;case"left":case"right":var i="left"==t.settings.labelAnimation?-t.box_skitter.find(".label_skitter").width():t.box_skitter.find(".label_skitter").width();t.box_skitter.find(".label_skitter").animate({left:i},400,"easeInOutQuad",function(){t.setValueBoxText()});break;case"fixed":t.setValueBoxText()}},stopOnMouseOver:function(){var t=this;t.settings.stop_over?t.box_skitter.hover(function(){t.settings.stop_over&amp;&amp;(t.settings.is_hover_box_skitter=!0),t.settings.is_paused_time||t.pauseTime(),t.setHideTools("hover"),t.clearTimer(!0)},function(){t.settings.stop_over&amp;&amp;(t.settings.is_hover_box_skitter=!1),0!=t.settings.elapsedTime||t.settings.is_animating||t.settings.is_paused?t.settings.is_paused||t.resumeTime():t.startTime(),t.setHideTools("out"),t.clearTimer(!0),!t.settings.is_animating&amp;&amp;t.settings.images_links.length&gt;1&amp;&amp;(t.timer=setTimeout(function(){t.completeMove()},t.settings.interval-t.settings.elapsedTime),t.box_skitter.find(".image_main").attr({src:t.settings.image_atual}),t.box_skitter.find(".image a").attr({href:t.settings.link_atual}))}):t.box_skitter.hover(function(){t.setHideTools("hover")},function(){t.setHideTools("out")})},setHideTools:function(t){var i=this,s=i.settings.opacity_elements,e=i.settings.interval_in_elements,n=i.settings.interval_out_elements;"hover"==t?(i.settings.hideTools&amp;&amp;(i.settings.numbers&amp;&amp;i.box_skitter.find(".info_slide").show().css({opacity:0}).animate({opacity:s},e),i.settings.navigation&amp;&amp;i.box_skitter.find(".prev_button, .next_button").show().css({opacity:0}).animate({opacity:s},e),i.settings.focus&amp;&amp;!i.settings.foucs_active&amp;&amp;i.box_skitter.find(".focus_button").stop().show().css({opacity:0}).animate({opacity:s},e),i.settings.controls&amp;&amp;i.box_skitter.find(".play_pause_button").stop().show().css({opacity:0}).animate({opacity:s},e)),!i.settings.focus||i.settings.foucs_active||i.settings.hideTools||i.box_skitter.find(".focus_button").stop().animate({opacity:1},e),i.settings.controls&amp;&amp;!i.settings.hideTools&amp;&amp;i.box_skitter.find(".play_pause_button").stop().animate({opacity:1},e)):(i.settings.hideTools&amp;&amp;(i.settings.numbers&amp;&amp;i.box_skitter.find(".info_slide").queue("fx",[]).show().css({opacity:s}).animate({opacity:0},n),i.settings.navigation&amp;&amp;i.box_skitter.find(".prev_button, .next_button").queue("fx",[]).show().css({opacity:s}).animate({opacity:0},n),i.settings.focus&amp;&amp;!i.settings.foucs_active&amp;&amp;i.box_skitter.find(".focus_button").stop().css({opacity:s}).animate({opacity:0},n),i.settings.controls&amp;&amp;i.box_skitter.find(".play_pause_button").stop().css({opacity:s}).animate({opacity:0},n)),!i.settings.focus||i.settings.foucs_active||i.settings.hideTools||i.box_skitter.find(".focus_button").stop().animate({opacity:.3},n),i.settings.controls&amp;&amp;!i.settings.hideTools&amp;&amp;i.box_skitter.find(".play_pause_button").stop().animate({opacity:.3},n))},clearTimer:function(){var t=this;clearInterval(t.timer)},setLinkAtual:function(){"#"!=this.settings.link_atual&amp;&amp;""!=this.settings.link_atual?this.box_skitter.find(".image a").attr({href:this.settings.link_atual,target:this.settings.target_atual}):this.box_skitter.find(".image a").removeAttr("href")},hideTools:function(){this.box_skitter.find(".info_slide").fadeTo(0,0),this.box_skitter.find(".prev_button").fadeTo(0,0),this.box_skitter.find(".next_button").fadeTo(0,0),this.box_skitter.find(".focus_button").fadeTo(0,0),this.box_skitter.find(".play_pause_button").fadeTo(0,0)},focusSkitter:function(){var i=this,s=t('&lt;a href="#" class="focus_button"&gt;focus&lt;/a&gt;');i.box_skitter.append(s);var e=(i.settings.width_skitter-s.width())/2,n=0;i.settings.controls&amp;&amp;(e-=25),i.settings.controls_position==i.settings.focus_position&amp;&amp;(n=s.width()+5);var a={left:e};switch(i.settings.focus_position){case"leftTop":a={left:5+n,top:30};break;case"rightTop":a={right:5+n,top:30};break;case"leftBottom":a={left:5+n,bottom:5,top:"auto"};break;case"rightBottom":a={right:5+n,bottom:5,top:"auto"}}s.css(a).animate({opacity:.3},i.settings.interval_in_elements),t(document).keypress(function(i){var s=i.keyCode?i.keyCode:i.which;27==s&amp;&amp;t("#overlay_skitter").trigger("click")});var o=t(".box_skitter").offset().top,e=t(".box_skitter").offset().left;i.box_skitter.find(".focus_button").click(function(){if(i.settings.foucs_active)return!1;i.settings.foucs_active=!0,t(this).stop().animate({opacity:0},i.settings.interval_out_elements);var s=t('&lt;div id="overlay_skitter"&gt;&lt;/div&gt;').height(t(document).height()).hide().fadeTo(i.settings.interval_in_elements,.98),n=(t(window).height()-t(".box_skitter").height())/2+t(document).scrollTop(),a=(t(window).width()-t(".box_skitter").width())/2;return i.box_skitter.before('&lt;div id="mark_position"&gt;&lt;/div&gt;'),t("body").prepend(s),t("body").prepend(i.box_skitter),i.box_skitter.css({top:o,left:e,position:"absolute","z-index":9999}).animate({top:n,left:a},2e3,"easeOutExpo"),t("#mark_position").width(t(".box_skitter").width()).height(t(".box_skitter").height()).css({background:"none"}).fadeTo(300,.3),!1}),t(document).on("click","#overlay_skitter",function(){return t(this).hasClass("finish_overlay_skitter")?!1:(i.settings.foucs_active=!1,t(this).addClass("finish_overlay_skitter"),i.settings.hideTools||i.box_skitter.find(".focus_button").animate({opacity:.3},200),i.box_skitter.stop().animate({top:o,left:e},200,"easeOutExpo",function(){t("#mark_position").before(i.box_skitter),t(this).css({position:"relative",top:0,left:0}),t("#mark_position").remove()}),t("#overlay_skitter").fadeTo(i.settings.interval_out_elements,0,function(){t(this).remove()}),!1)})},setControls:function(){var i=this,s=t('&lt;a href="#" class="play_pause_button"&gt;pause&lt;/a&gt;');i.box_skitter.append(s);var e=(i.settings.width_skitter-s.width())/2;i.settings.focus&amp;&amp;(e+=25);var n={left:e};switch(i.settings.controls_position){case"leftTop":n={left:5,top:30};break;case"rightTop":n={right:5,top:30};break;case"leftBottom":n={left:5,bottom:5,top:"auto"};break;case"rightBottom":n={right:5,bottom:5,top:"auto"}}s.css(n).animate({opacity:.3},i.settings.interval_in_elements),s.click(function(){return i.settings.is_paused?(i.settings.is_animating||i.box_skitter.find(".progressbar").is(":visible")?i.resumeTime():i.settings.elapsedTime=0,i.settings.progressbar||i.resumeTime(),i.settings.is_paused=!1,t(this).html("pause"),t(this).fadeTo(100,.5).fadeTo(100,1),t(this).removeClass("play_button"),i.settings.stop_over||(i.clearTimer(!0),!i.settings.is_animating&amp;&amp;i.settings.images_links.length&gt;1&amp;&amp;(i.timer=setTimeout(function(){i.completeMove()},i.settings.interval-i.settings.elapsedTime),i.box_skitter.find(".image_main").attr({src:i.settings.image_atual}),i.box_skitter.find(".image a").attr({href:i.settings.link_atual})))):(t(this).html("play"),t(this).fadeTo(100,.5).fadeTo(100,1),t(this).addClass("play_button"),i.pauseTime(),i.settings.is_paused=!0,i.clearTimer(!0)),!1})},objectSize:function(t){var i,s=0;for(i in t)t.hasOwnProperty(i)&amp;&amp;s++;return s},addProgressBar:function(){var i=this,s=t('&lt;div class="progressbar"&gt;&lt;/div&gt;');i.box_skitter.append(s),0==i.objectSize(i.settings.progressbar_css)&amp;&amp;(parseInt(s.css("width"))&gt;0?i.settings.progressbar_css.width=parseInt(s.css("width")):i.settings.progressbar_css={width:i.settings.width_skitter,height:5}),i.objectSize(i.settings.progressbar_css)&gt;0&amp;&amp;void 0==i.settings.progressbar_css.width&amp;&amp;(i.settings.progressbar_css.width=i.settings.width_skitter),s.css(i.settings.progressbar_css).hide()},startProgressBar:function(){var t=this;return t.settings.is_hover_box_skitter||t.settings.is_paused||t.settings.is_blur||!t.settings.progressbar?!1:(t.box_skitter.find(".progressbar").hide().dequeue().width(t.settings.progressbar_css.width).animate({width:"show"},t.settings.interval,"linear"),void 0)},pauseProgressBar:function(){var t=this;t.settings.is_animating||t.box_skitter.find(".progressbar").stop()},resumeProgressBar:function(){var t=this;return t.settings.is_hover_box_skitter||t.settings.is_paused||!t.settings.progressbar?!1:(t.box_skitter.find(".progressbar").dequeue().animate({width:t.settings.progressbar_css.width},t.settings.interval-t.settings.elapsedTime,"linear"),void 0)},hideProgressBar:function(){var i=this;return i.settings.progressbar?(i.box_skitter.find(".progressbar").stop().fadeOut(300,function(){t(this).width(i.settings.progressbar_css.width)}),void 0):!1},startTime:function(){var t=this;t.settings.is_paused_time=!1;var i=new Date;t.settings.elapsedTime=0,t.settings.timeStart=i.getTime(),t.startProgressBar()},pauseTime:function(){var t=this;if(t.settings.is_paused_time)return!1;t.settings.is_paused_time=!0;var i=new Date;t.settings.elapsedTime+=i.getTime()-t.settings.timeStart,t.pauseProgressBar()},resumeTime:function(){var t=this;t.settings.is_paused_time=!1;var i=new Date;t.settings.timeStart=i.getTime(),t.resumeProgressBar()},enableNavigationKeys:function(){var i=this;t(window).keydown(function(t){39==t.keyCode||40==t.keyCode?i.box_skitter.find(".next_button").trigger("click"):(37==t.keyCode||38==t.keyCode)&amp;&amp;i.box_skitter.find(".prev_button").trigger("click")})},getBoxCloneBackground:function(i){var s=t('&lt;div class="box_clone"&gt;&lt;/div&gt;');return s.css({left:i.left,top:i.top,width:i.width,height:i.height,"background-image":"url("+i.image+")","background-position":i.position.left+"px "+i.position.top+"px"}),s},shuffleArray:function(t){for(var i,s=this,e=new Array;t.length&gt;0;)i=s.randomUnique(0,t.length-1),e[e.length]=t[i],t.splice(i,1);return e},randomUnique:function(t,i){var s;do s=Math.random();while(1==s);return 0|s*(i-t+1)+t},windowFocusOut:function(){var i=this;t(window).bind("blur",function(){i.settings.is_blur=!0,i.pauseTime(),i.clearTimer(!0)}),t(window).bind("focus",function(){i.settings.images_links.length&gt;1&amp;&amp;(i.settings.is_blur=!1,0==i.settings.elapsedTime?i.startTime():i.resumeTime(),i.settings.elapsedTime&lt;=i.settings.interval&amp;&amp;(i.clearTimer(!0),i.timer=setTimeout(function(){i.completeMove()},i.settings.interval-i.settings.elapsedTime),i.box_skitter.find(".image_main").attr({src:i.settings.image_atual}),i.box_skitter.find(".image a").attr({href:i.settings.link_atual})))})}}),t.fn.css3=function(t){var i={},s=["moz","ms","o","webkit"];for(var e in t){for(var n=0;n&lt;s.length;n++)i["-"+s[n]+"-"+e]=t[e];i[e]=t[e]}return this.css(i),this},t.fn.animateRotate=function(i,s,e,n){var a=t.speed(s,e,n),o=a.step;return this.each(function(s,e){a.step=function(i){return t.style(e,"transform","rotate("+i+"deg)"),o?o.apply(this,arguments):void 0},t({deg:0}).animate({deg:i},a)})}}(jQuery);

/* Modernizr 2.6.2 (Custom Build) | MIT &amp; BSD
 * Build: http://modernizr.com/download/#-cssanimations-shiv-cssclasses-testprop-testallprops-domprefixes-load
 */
;window.Modernizr=function(a,b,c){function x(a){j.cssText=a}function y(a,b){return x(prefixes.join(a+";")+(b||""))}function z(a,b){return typeof a===b}function A(a,b){return!!~(""+a).indexOf(b)}function B(a,b){for(var d in a){var e=a[d];if(!A(e,"-")&amp;&amp;j[e]!==c)return b=="pfx"?e:!0}return!1}function C(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:z(f,"function")?f.bind(d||b):f}return!1}function D(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+n.join(d+" ")+d).split(" ");return z(b,"string")||z(b,"undefined")?B(e,b):(e=(a+" "+o.join(d+" ")+d).split(" "),C(e,b,c))}var d="2.6.2",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m="Webkit Moz O ms",n=m.split(" "),o=m.toLowerCase().split(" "),p={},q={},r={},s=[],t=s.slice,u,v={}.hasOwnProperty,w;!z(v,"undefined")&amp;&amp;!z(v.call,"undefined")?w=function(a,b){return v.call(a,b)}:w=function(a,b){return b in a&amp;&amp;z(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=t.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(t.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(t.call(arguments)))};return e}),p.cssanimations=function(){return D("animationName")};for(var E in p)w(p,E)&amp;&amp;(u=E.toLowerCase(),e[u]=p[E](),s.push((e[u]?"":"no-")+u));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)w(a,d)&amp;&amp;e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&amp;&amp;f&amp;&amp;(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},x(""),i=k=null,function(a,b){function k(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x&lt;style&gt;"+b+"&lt;/style&gt;",d.insertBefore(c.lastChild,d.firstChild)}function l(){var a=r.elements;return typeof a=="string"?a.split(" "):a}function m(a){var b=i[a[g]];return b||(b={},h++,a[g]=h,i[h]=b),b}function n(a,c,f){c||(c=b);if(j)return c.createElement(a);f||(f=m(c));var g;return f.cache[a]?g=f.cache[a].cloneNode():e.test(a)?g=(f.cache[a]=f.createElem(a)).cloneNode():g=f.createElem(a),g.canHaveChildren&amp;&amp;!d.test(a)?f.frag.appendChild(g):g}function o(a,c){a||(a=b);if(j)return a.createDocumentFragment();c=c||m(a);var d=c.frag.cloneNode(),e=0,f=l(),g=f.length;for(;e&lt;g;e++)d.createElement(f[e]);return d}function p(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return r.shivMethods?n(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&amp;&amp;("+l().join().replace(/\w+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(r,b.frag)}function q(a){a||(a=b);var c=m(a);return r.shivCSS&amp;&amp;!f&amp;&amp;!c.hasCSS&amp;&amp;(c.hasCSS=!!k(a,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),j||p(a,c),a}var c=a.html5||{},d=/^&lt;|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,e=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,f,g="_html5shiv",h=0,i={},j;(function(){try{var a=b.createElement("a");a.innerHTML="&lt;xyz&gt;&lt;/xyz&gt;",f="hidden"in a,j=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){f=!0,j=!0}})();var r={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,supportsUnknownElements:j,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:q,createElement:n,createDocumentFragment:o};a.html5=r,q(b)}(this,b),e._version=d,e._domPrefixes=o,e._cssomPrefixes=n,e.testProp=function(a){return B([a])},e.testAllProps=D,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+s.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&amp;&amp;g(l.readyState)&amp;&amp;(u.r=o=1,!q&amp;&amp;h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&amp;&amp;m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&amp;&amp;y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&amp;&amp;(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&amp;&amp;(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&amp;&amp;h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&amp;&amp;!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&amp;&amp;"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&amp;&amp;!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&amp;&amp;(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f&lt;d;f++)g=a[f].split("="),(e=z[g.shift()])&amp;&amp;(c=e(c,g));for(f=0;f&lt;b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&amp;&amp;(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&amp;&amp;"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&amp;&amp;f.load(function(){k(),e&amp;&amp;e(i.origUrl,h,g),j&amp;&amp;j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&amp;&amp;b++;return b}(),a)a.hasOwnProperty(n)&amp;&amp;(!c&amp;&amp;!--m&amp;&amp;(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&amp;&amp;a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&amp;&amp;l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&amp;&amp;c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i&lt;a.length;i++)j=a[i],e(j)?g(j,0,l,0):w(j)?B(j):Object(j)===j&amp;&amp;h(j,l);else Object(a)===a&amp;&amp;h(a,l)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,null==b.readyState&amp;&amp;b.addEventListener&amp;&amp;(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k=b.createElement("script"),l,o,e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h:c||f,k.onreadystatechange=k.onload=function(){!l&amp;&amp;g(k.readyState)&amp;&amp;(l=1,c(),k.onload=k.onreadystatechange=null)},m(function(){l||(l=1,c(1))},e),i?k.onload():n.parentNode.insertBefore(k,n)},a.yepnope.injectCss=function(a,c,d,e,g,i){var e=b.createElement("link"),j,c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n.parentNode.insertBefore(e,n),m(c,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};


/*
 Ridiculously Responsive Social Sharing Buttons
 Team: @dbox, @joshuatuscan
 Site: http://www.kurtnoble.com/labs/rrssb
 Twitter: @therealkni

        ___           ___
       /__/|         /__/\        ___
      |  |:|         \  \:\      /  /\
      |  |:|          \  \:\    /  /:/
    __|  |:|      _____\__\:\  /__/::\
   /__/\_|:|____ /__/::::::::\ \__\/\:\__
   \  \:\/:::::/ \  \:\~~\~~\/    \  \:\/\
    \  \::/~~~~   \  \:\  ~~~      \__\::/
     \  \:\        \  \:\          /__/:/
      \  \:\        \  \:\         \__\/
       \__\/         \__\/
*/(function(e,t,n){"use strict";var r=function(){t(".rrssb-buttons").each(function(e){var n=t(this),r=t("li",n).length,i=100/r;t("li",n).css("width",i+"%").attr("data-initwidth",i)})},i=function(){t(".rrssb-buttons").each(function(e){var n=t(this),r=parseFloat(t(n).width()),i=t("li",n).not(".small").first().width(),s=t("li.small",n).length;i&gt;170&amp;&amp;s&lt;1?t(n).addClass("large-format"):t(n).removeClass("large-format");r&lt;200?t(n).removeClass("small-format").addClass("tiny-format"):t(n).removeClass("tiny-format")})},s=function(){t(".rrssb-buttons").each(function(e){var n=t(this),r=0,i=0,s,o,a=t("li.small",n).length;if(a===t("li",n).length){var f=a*42,l=parseFloat(t(n).width());s=t("li.small",n).first();o=parseFloat(t(s).attr("data-size"))+55;if(f+o&lt;l){t(n).removeClass("small-format");t("li.small",n).first().removeClass("small");u()}}else{t("li",n).not(".small").each(function(e){var n=parseFloat(t(this).attr("data-size"))+55,s=parseFloat(t(this).width());r+=s;i+=n});var c=r-i;s=t("li.small",n).first();o=parseFloat(t(s).attr("data-size"))+55;if(o&lt;c){t(s).removeClass("small");u()}}})},o=function(e){t(".rrssb-buttons").each(function(e){var n=t(this),r=t("li",n).nextAll(),i=r.length;t(t("li",n).get().reverse()).each(function(e,r){if(t(this).hasClass("small")===!1){var i=parseFloat(t(this).attr("data-size"))+55,o=parseFloat(t(this).width());if(i&gt;o){var a=t("li",n).not(".small").last();t(a).addClass("small");u()}}--r||s()})});e===!0&amp;&amp;f(u)},u=function(){t(".rrssb-buttons").each(function(e){var n=t(this),i,s,o,u,a,f=t("li.small",n).length;if(f&gt;0&amp;&amp;f!==t("li",n).length){t(n).removeClass("small-format");t("li.small",n).css("width","42px");o=f*42;i=t("li",n).not(".small").length;s=100/i;a=o/i;navigator.userAgent.indexOf("Chrome")&gt;=0||navigator.userAgent.indexOf("Safari")&gt;=0?u="-webkit-calc("+s+"% - "+a+"px)":navigator.userAgent.indexOf("Firefox")&gt;=0?u="-moz-calc("+s+"% - "+a+"px)":u="calc("+s+"% - "+a+"px)";t("li",n).not(".small").css("width",u)}else if(f===t("li",n).length){t(n).addClass("small-format");r()}else{t(n).removeClass("small-format");r()}});i()},a=function(){t(".rrssb-buttons").each(function(e){t(this).addClass("rrssb-"+(e+1))});r();t(".rrssb-buttons li .rrssb-text").each(function(e){var n=parseFloat(t(this).width());t(this).closest("li").attr("data-size",n)});o(!0)},f=function(e){t(".rrssb-buttons li.small").removeClass("small");o();e()},l=function(t,r,i,s){var o=e.screenLeft!==n?e.screenLeft:screen.left,u=e.screenTop!==n?e.screenTop:screen.top,a=e.innerWidth?e.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width,f=e.innerHeight?e.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height,l=a/2-i/2+o,c=f/3-s/3+u,h=e.open(t,r,"scrollbars=yes, width="+i+", height="+s+", top="+c+", left="+l);e.focus&amp;&amp;h.focus()},c=function(){var e={};return function(t,n,r){r||(r="Don't call this twice without a uniqueId");e[r]&amp;&amp;clearTimeout(e[r]);e[r]=setTimeout(t,n)}}();t(document).ready(function(){t(".rrssb-buttons a.popup").on("click",function(e){var n=t(this);l(n.attr("href"),n.find(".rrssb-text").html(),580,470);e.preventDefault()});t(e).resize(function(){f(u);c(function(){f(u)},200,"finished resizing")});a()});e.rrssbInit=a})(window,jQuery);



    /*
Plugin: jQuery Parallax
Version 1.1.3
Author: Ian Lunn
Twitter: @IanLunn
Author URL: http://www.ianlunn.co.uk/
Plugin URL: http://www.ianlunn.co.uk/plugins/jquery-parallax/

Dual licensed under the MIT and GPL licenses:
http://www.opensource.org/licenses/mit-license.php
http://www.gnu.org/licenses/gpl.html
*/

(function( $ ){
	var $window = $(window);
	var windowHeight = $window.height();

	$window.resize(function () {
		windowHeight = $window.height();
	});

	$.fn.parallax = function(xpos, speedFactor, outerHeight) {
		var $this = $(this);
		var getHeight;
		var firstTop;
		var paddingTop = 0;
		
		//get the starting position of each element to have parallax applied to it		
		$this.each(function(){
		    firstTop = $this.position().top;
		});

		if (outerHeight) {
			getHeight = function(jqo) {
				return jqo.outerHeight(true);
			};
		} else {
			getHeight = function(jqo) {
				return jqo.height();
			};
		}
			
		// setup defaults if arguments aren't specified
		if (arguments.length &lt; 1 || xpos === null) xpos = "50%";
		if (arguments.length &lt; 2 || speedFactor === null) speedFactor = 0.1;
		if (arguments.length &lt; 3 || outerHeight === null) outerHeight = true;

	
		// function to be called whenever the window is scrolled or resized
		function update(){
			var pos = $window.scrollTop();				

			$this.each(function(){
				var $element = $(this);
				var top = $element.position().top;
				var height = getHeight($element);

				// Check if totally above or totally below viewport
				if (top + height &lt; pos || top &gt; pos + windowHeight) {
					return;
				}

				$this.css('backgroundPosition', xpos + " " + Math.round((firstTop - pos) * speedFactor) + "px");
			});
		}		

		$window.bind('scroll', update).resize(update);
		update();
	};
})(jQuery);

//
// SmoothScroll for websites v1.3.9 (Balazs Galambosi)
// http://www.smoothscroll.net/
//
// Licensed under the terms of the MIT license.
//
// You may use it in your theme if you credit me. 
// It is also free to use on any individual website.
//
// Exception:
// The only restriction would be not to publish any  
// extension for browsers or native application
// without getting a written permission first.
//

(function () {
  
// Scroll Variables (tweakable)
var defaultOptions = {

    // Scrolling Core
    frameRate        : 150, // [Hz]
    animationTime    : 400, // [ms]
    stepSize         : 100, // [px]

    // Pulse (less tweakable)
    // ratio of "tail" to "acceleration"
    pulseAlgorithm   : true,
    pulseScale       : 4,
    pulseNormalize   : 1,

    // Acceleration
    accelerationDelta : 50,  // 50
    accelerationMax   : 3,   // 3

    // Keyboard Settings
    keyboardSupport   : true,  // option
    arrowScroll       : 50,    // [px]

    // Other
    touchpadSupport   : false, // ignore touchpad by default
    fixedBackground   : true, 
    excluded          : ''    
};

var options = defaultOptions;


// Other Variables
var isExcluded = false;
var isFrame = false;
var direction = { x: 0, y: 0 };
var initDone  = false;
var root = document.documentElement;
var activeElement;
var observer;
var deltaBuffer = [];
var isMac = /^Mac/.test(navigator.platform);

var key = { left: 37, up: 38, right: 39, down: 40, spacebar: 32, 
            pageup: 33, pagedown: 34, end: 35, home: 36 };


/***********************************************
 * SETTINGS
 ***********************************************/

var options = defaultOptions;


/***********************************************
 * INITIALIZE
 ***********************************************/

/**
 * Tests if smooth scrolling is allowed. Shuts down everything if not.
 */
function initTest() {
    if (options.keyboardSupport) {
        addEvent('keydown', keydown);
    }
}

/**
 * Sets up scrolls array, determines if frames are involved.
 */
function init() {
  
    if (initDone || !document.body) return;

    initDone = true;

    var body = document.body;
    var html = document.documentElement;
    var windowHeight = window.innerHeight; 
    var scrollHeight = body.scrollHeight;
    
    // check compat mode for root element
    root = (document.compatMode.indexOf('CSS') &gt;= 0) ? html : body;
    activeElement = body;
    
    initTest();

    // Checks if this script is running in a frame
    if (top != self) {
        isFrame = true;
    }

    /**
     * This fixes a bug where the areas left and right to 
     * the content does not trigger the onmousewheel event
     * on some pages. e.g.: html, body { height: 100% }
     */
    else if (scrollHeight &gt; windowHeight &amp;&amp;
            (body.offsetHeight &lt;= windowHeight || 
             html.offsetHeight &lt;= windowHeight)) {

        var fullPageElem = document.createElement('div');
        fullPageElem.style.cssText = 'position:absolute; z-index:-10000; ' +
                                     'top:0; left:0; right:0; height:' + 
                                      root.scrollHeight + 'px';
        document.body.appendChild(fullPageElem);
        
        // DOM changed (throttled) to fix height
        var pendingRefresh;
        var refresh = function () {
            if (pendingRefresh) return; // could also be: clearTimeout(pendingRefresh);
            pendingRefresh = setTimeout(function () {
                if (isExcluded) return; // could be running after cleanup
                fullPageElem.style.height = '0';
                fullPageElem.style.height = root.scrollHeight + 'px';
                pendingRefresh = null;
            }, 500); // act rarely to stay fast
        };
  
        setTimeout(refresh, 10);

        // TODO: attributeFilter?
        var config = {
            attributes: true, 
            childList: true, 
            characterData: false 
            // subtree: true
        };

        observer = new MutationObserver(refresh);
        observer.observe(body, config);

        if (root.offsetHeight &lt;= windowHeight) {
            var clearfix = document.createElement('div');   
            clearfix.style.clear = 'both';
            body.appendChild(clearfix);
        }
    }

    // disable fixed background
    if (!options.fixedBackground &amp;&amp; !isExcluded) {
        body.style.backgroundAttachment = 'scroll';
        html.style.backgroundAttachment = 'scroll';
    }
}

/**
 * Removes event listeners and other traces left on the page.
 */
function cleanup() {
    observer &amp;&amp; observer.disconnect();
    removeEvent(wheelEvent, wheel);
    removeEvent('mousedown', mousedown);
    removeEvent('keydown', keydown);
}


/************************************************
 * SCROLLING 
 ************************************************/
 
var que = [];
var pending = false;
var lastScroll = Date.now();

/**
 * Pushes scroll actions to the scrolling queue.
 */
function scrollArray(elem, left, top) {
    
    directionCheck(left, top);

    if (options.accelerationMax != 1) {
        var now = Date.now();
        var elapsed = now - lastScroll;
        if (elapsed &lt; options.accelerationDelta) {
            var factor = (1 + (50 / elapsed)) / 2;
            if (factor &gt; 1) {
                factor = Math.min(factor, options.accelerationMax);
                left *= factor;
                top  *= factor;
            }
        }
        lastScroll = Date.now();
    }          
    
    // push a scroll command
    que.push({
        x: left, 
        y: top, 
        lastX: (left &lt; 0) ? 0.99 : -0.99,
        lastY: (top  &lt; 0) ? 0.99 : -0.99, 
        start: Date.now()
    });
        
    // don't act if there's a pending queue
    if (pending) {
        return;
    }  

    var scrollWindow = (elem === document.body);
    
    var step = function (time) {
        
        var now = Date.now();
        var scrollX = 0;
        var scrollY = 0; 
    
        for (var i = 0; i &lt; que.length; i++) {
            
            var item = que[i];
            var elapsed  = now - item.start;
            var finished = (elapsed &gt;= options.animationTime);
            
            // scroll position: [0, 1]
            var position = (finished) ? 1 : elapsed / options.animationTime;
            
            // easing [optional]
            if (options.pulseAlgorithm) {
                position = pulse(position);
            }
            
            // only need the difference
            var x = (item.x * position - item.lastX) &gt;&gt; 0;
            var y = (item.y * position - item.lastY) &gt;&gt; 0;
            
            // add this to the total scrolling
            scrollX += x;
            scrollY += y;            
            
            // update last values
            item.lastX += x;
            item.lastY += y;
        
            // delete and step back if it's over
            if (finished) {
                que.splice(i, 1); i--;
            }           
        }

        // scroll left and top
        if (scrollWindow) {
            window.scrollBy(scrollX, scrollY);
        } 
        else {
            if (scrollX) elem.scrollLeft += scrollX;
            if (scrollY) elem.scrollTop  += scrollY;                    
        }
        
        // clean up if there's nothing left to do
        if (!left &amp;&amp; !top) {
            que = [];
        }
        
        if (que.length) { 
            requestFrame(step, elem, (1000 / options.frameRate + 1)); 
        } else { 
            pending = false;
        }
    };
    
    // start a new queue of actions
    requestFrame(step, elem, 0);
    pending = true;
}


/***********************************************
 * EVENTS
 ***********************************************/

/**
 * Mouse wheel handler.
 * @param {Object} event
 */
function wheel(event) {

    if (!initDone) {
        init();
    }
    
    var target = event.target;
    var overflowing = overflowingAncestor(target);

    // use default if there's no overflowing
    // element or default action is prevented   
    // or it's a zooming event with CTRL 
    if (!overflowing || event.defaultPrevented || event.ctrlKey) {
        return true;
    }
    
    // leave embedded content alone (flash &amp; pdf)
    if (isNodeName(activeElement, 'embed') || 
       (isNodeName(target, 'embed') &amp;&amp; /\.pdf/i.test(target.src)) ||
       isNodeName(activeElement, 'object')) {
        return true;
    }

    var deltaX = -event.wheelDeltaX || event.deltaX || 0;
    var deltaY = -event.wheelDeltaY || event.deltaY || 0;
    
    if (isMac) {
        if (event.wheelDeltaX &amp;&amp; isDivisible(event.wheelDeltaX, 120)) {
            deltaX = -120 * (event.wheelDeltaX / Math.abs(event.wheelDeltaX));
        }
        if (event.wheelDeltaY &amp;&amp; isDivisible(event.wheelDeltaY, 120)) {
            deltaY = -120 * (event.wheelDeltaY / Math.abs(event.wheelDeltaY));
        }
    }
    
    // use wheelDelta if deltaX/Y is not available
    if (!deltaX &amp;&amp; !deltaY) {
        deltaY = -event.wheelDelta || 0;
    }

    // line based scrolling (Firefox mostly)
    if (event.deltaMode === 1) {
        deltaX *= 40;
        deltaY *= 40;
    }
    
    // check if it's a touchpad scroll that should be ignored
    if (!options.touchpadSupport &amp;&amp; isTouchpad(deltaY)) {
        return true;
    }

    // scale by step size
    // delta is 120 most of the time
    // synaptics seems to send 1 sometimes
    if (Math.abs(deltaX) &gt; 1.2) {
        deltaX *= options.stepSize / 120;
    }
    if (Math.abs(deltaY) &gt; 1.2) {
        deltaY *= options.stepSize / 120;
    }
    
    scrollArray(overflowing, deltaX, deltaY);
    event.preventDefault();
    scheduleClearCache();
}

/**
 * Keydown event handler.
 * @param {Object} event
 */
function keydown(event) {

    var target   = event.target;
    var modifier = event.ctrlKey || event.altKey || event.metaKey || 
                  (event.shiftKey &amp;&amp; event.keyCode !== key.spacebar);
    
    // our own tracked active element could've been removed from the DOM
    if (!document.contains(activeElement)) {
        activeElement = document.activeElement;
    }

    // do nothing if user is editing text
    // or using a modifier key (except shift)
    // or in a dropdown
    // or inside interactive elements
    var inputNodeNames = /^(textarea|select|embed|object)$/i;
    var buttonTypes = /^(button|submit|radio|checkbox|file|color|image)$/i;
    if ( inputNodeNames.test(target.nodeName) ||
         isNodeName(target, 'input') &amp;&amp; !buttonTypes.test(target.type) ||
         isNodeName(activeElement, 'video') ||
         isInsideYoutubeVideo(event) ||
         target.isContentEditable || 
         event.defaultPrevented   ||
         modifier ) {
      return true;
    }
    
    // spacebar should trigger button press
    if ((isNodeName(target, 'button') ||
         isNodeName(target, 'input') &amp;&amp; buttonTypes.test(target.type)) &amp;&amp;
        event.keyCode === key.spacebar) {
      return true;
    }
    
    var shift, x = 0, y = 0;
    var elem = overflowingAncestor(activeElement);
    var clientHeight = elem.clientHeight;

    if (elem == document.body) {
        clientHeight = window.innerHeight;
    }

    switch (event.keyCode) {
        case key.up:
            y = -options.arrowScroll;
            break;
        case key.down:
            y = options.arrowScroll;
            break;         
        case key.spacebar: // (+ shift)
            shift = event.shiftKey ? 1 : -1;
            y = -shift * clientHeight * 0.9;
            break;
        case key.pageup:
            y = -clientHeight * 0.9;
            break;
        case key.pagedown:
            y = clientHeight * 0.9;
            break;
        case key.home:
            y = -elem.scrollTop;
            break;
        case key.end:
            var damt = elem.scrollHeight - elem.scrollTop - clientHeight;
            y = (damt &gt; 0) ? damt+10 : 0;
            break;
        case key.left:
            x = -options.arrowScroll;
            break;
        case key.right:
            x = options.arrowScroll;
            break;            
        default:
            return true; // a key we don't care about
    }

    scrollArray(elem, x, y);
    event.preventDefault();
    scheduleClearCache();
}

/**
 * Mousedown event only for updating activeElement
 */
function mousedown(event) {
    activeElement = event.target;
}


/***********************************************
 * OVERFLOW
 ***********************************************/

var uniqueID = (function () {
    var i = 0;
    return function (el) {
        return el.uniqueID || (el.uniqueID = i++);
    };
})();

var cache = {}; // cleared out after a scrolling session
var clearCacheTimer;

//setInterval(function () { cache = {}; }, 10 * 1000);

function scheduleClearCache() {
    clearTimeout(clearCacheTimer);
    clearCacheTimer = setInterval(function () { cache = {}; }, 1*1000);
}

function setCache(elems, overflowing) {
    for (var i = elems.length; i--;)
        cache[uniqueID(elems[i])] = overflowing;
    return overflowing;
}

//  (body)                (root)
//         | hidden | visible | scroll |  auto  |
// hidden  |   no   |    no   |   YES  |   YES  |
// visible |   no   |   YES   |   YES  |   YES  |
// scroll  |   no   |   YES   |   YES  |   YES  |
// auto    |   no   |   YES   |   YES  |   YES  |

function overflowingAncestor(el) {
    var elems = [];
    var body = document.body;
    var rootScrollHeight = root.scrollHeight;
    do {
        var cached = cache[uniqueID(el)];
        if (cached) {
            return setCache(elems, cached);
        }
        elems.push(el);
        if (rootScrollHeight === el.scrollHeight) {
            var topOverflowsNotHidden = overflowNotHidden(root) &amp;&amp; overflowNotHidden(body);
            var isOverflowCSS = topOverflowsNotHidden || overflowAutoOrScroll(root);
            if (isFrame &amp;&amp; isContentOverflowing(root) || 
               !isFrame &amp;&amp; isOverflowCSS) {
                return setCache(elems, getScrollRoot()); 
            }
        } else if (isContentOverflowing(el) &amp;&amp; overflowAutoOrScroll(el)) {
            return setCache(elems, el);
        }
    } while (el = el.parentElement);
}

function isContentOverflowing(el) {
    return (el.clientHeight + 10 &lt; el.scrollHeight);
}

// typically for &lt;body&gt; and &lt;html&gt;
function overflowNotHidden(el) {
    var overflow = getComputedStyle(el, '').getPropertyValue('overflow-y');
    return (overflow !== 'hidden');
}

// for all other elements
function overflowAutoOrScroll(el) {
    var overflow = getComputedStyle(el, '').getPropertyValue('overflow-y');
    return (overflow === 'scroll' || overflow === 'auto');
}


/***********************************************
 * HELPERS
 ***********************************************/

function addEvent(type, fn) {
    window.addEventListener(type, fn, false);
}

function removeEvent(type, fn) {
    window.removeEventListener(type, fn, false);  
}

function isNodeName(el, tag) {
    return (el.nodeName||'').toLowerCase() === tag.toLowerCase();
}

function directionCheck(x, y) {
    x = (x &gt; 0) ? 1 : -1;
    y = (y &gt; 0) ? 1 : -1;
    if (direction.x !== x || direction.y !== y) {
        direction.x = x;
        direction.y = y;
        que = [];
        lastScroll = 0;
    }
}

var deltaBufferTimer;

if (window.localStorage &amp;&amp; localStorage.SS_deltaBuffer) {
    deltaBuffer = localStorage.SS_deltaBuffer.split(',');
}

function isTouchpad(deltaY) {
    if (!deltaY) return;
    if (!deltaBuffer.length) {
        deltaBuffer = [deltaY, deltaY, deltaY];
    }
    deltaY = Math.abs(deltaY)
    deltaBuffer.push(deltaY);
    deltaBuffer.shift();
    clearTimeout(deltaBufferTimer);
    deltaBufferTimer = setTimeout(function () {
        if (window.localStorage) {
            localStorage.SS_deltaBuffer = deltaBuffer.join(',');
        }
    }, 1000);
    return !allDeltasDivisableBy(120) &amp;&amp; !allDeltasDivisableBy(100);
} 

function isDivisible(n, divisor) {
    return (Math.floor(n / divisor) == n / divisor);
}

function allDeltasDivisableBy(divisor) {
    return (isDivisible(deltaBuffer[0], divisor) &amp;&amp;
            isDivisible(deltaBuffer[1], divisor) &amp;&amp;
            isDivisible(deltaBuffer[2], divisor));
}

function isInsideYoutubeVideo(event) {
    var elem = event.target;
    var isControl = false;
    if (document.URL.indexOf ('www.youtube.com/watch') != -1) {
        do {
            isControl = (elem.classList &amp;&amp; 
                         elem.classList.contains('html5-video-controls'));
            if (isControl) break;
        } while (elem = elem.parentNode);
    }
    return isControl;
}

var requestFrame = (function () {
      return (window.requestAnimationFrame       || 
              window.webkitRequestAnimationFrame || 
              window.mozRequestAnimationFrame    ||
              function (callback, element, delay) {
                 window.setTimeout(callback, delay || (1000/60));
             });
})();

var MutationObserver = (window.MutationObserver || 
                        window.WebKitMutationObserver ||
                        window.MozMutationObserver);  

var getScrollRoot = (function() {
  var SCROLL_ROOT;
  return function() {
    if (!SCROLL_ROOT) {
      var dummy = document.createElement('div');
      dummy.style.cssText = 'height:10000px;width:1px;';
      document.body.appendChild(dummy);
      var bodyScrollTop  = document.body.scrollTop;
      var docElScrollTop = document.documentElement.scrollTop;
      window.scrollBy(0, 1);
      if (document.body.scrollTop != bodyScrollTop)
        (SCROLL_ROOT = document.body);
      else 
        (SCROLL_ROOT = document.documentElement);
      window.scrollBy(0, -1);
      document.body.removeChild(dummy);
    }
    return SCROLL_ROOT;
  };
})();


/***********************************************
 * PULSE (by Michael Herf)
 ***********************************************/
 
/**
 * Viscous fluid with a pulse for part and decay for the rest.
 * - Applies a fixed force over an interval (a damped acceleration), and
 * - Lets the exponential bleed away the velocity over a longer interval
 * - Michael Herf, http://stereopsis.com/stopping/
 */
function pulse_(x) {
    var val, start, expx;
    // test
    x = x * options.pulseScale;
    if (x &lt; 1) { // acceleartion
        val = x - (1 - Math.exp(-x));
    } else {     // tail
        // the previous animation ended here:
        start = Math.exp(-1);
        // simple viscous drag
        x -= 1;
        expx = 1 - Math.exp(-x);
        val = start + (expx * (1 - start));
    }
    return val * options.pulseNormalize;
}

function pulse(x) {
    if (x &gt;= 1) return 1;
    if (x &lt;= 0) return 0;

    if (options.pulseNormalize == 1) {
        options.pulseNormalize /= pulse_(1);
    }
    return pulse_(x);
}

var userAgent = window.navigator.userAgent;
var isEdge    = /Edge/.test(userAgent); // thank you MS
var isChrome  = /chrome/i.test(userAgent) &amp;&amp; !isEdge; 
var isSafari  = /safari/i.test(userAgent) &amp;&amp; !isEdge; 
var isMobile  = /mobile/i.test(userAgent);
var isEnabledForBrowser = (isChrome || isSafari) &amp;&amp; !isMobile;

var wheelEvent;
if ('onwheel' in document.createElement('div'))
    wheelEvent = 'wheel';
else if ('onmousewheel' in document.createElement('div'))
    wheelEvent = 'mousewheel';

if (wheelEvent &amp;&amp; isEnabledForBrowser) {
    addEvent(wheelEvent, wheel);
    addEvent('mousedown', mousedown);
    addEvent('load', init);
}

})();


(function(jQuery){

	jQuery.hotkeys = {
		version: "0.8",

		specialKeys: {
			8: "backspace", 9: "tab", 13: "return", 16: "shift", 17: "ctrl", 18: "alt", 19: "pause",
			20: "capslock", 27: "esc", 32: "space", 33: "pageup", 34: "pagedown", 35: "end", 36: "home",
			37: "left", 38: "up", 39: "right", 40: "down", 45: "insert", 46: "del", 
			96: "0", 97: "1", 98: "2", 99: "3", 100: "4", 101: "5", 102: "6", 103: "7",
			104: "8", 105: "9", 106: "*", 107: "+", 109: "-", 110: ".", 111 : "/", 
			112: "f1", 113: "f2", 114: "f3", 115: "f4", 116: "f5", 117: "f6", 118: "f7", 119: "f8", 
			120: "f9", 121: "f10", 122: "f11", 123: "f12", 144: "numlock", 145: "scroll", 191: "/", 224: "meta"
		},

		shiftNums: {
			"`": "~", "1": "!", "2": "@", "3": "#", "4": "$", "5": "%", "6": "^", "7": "&amp;", 
			"8": "*", "9": "(", "0": ")", "-": "_", "=": "+", ";": ": ", "'": "\"", ",": "&lt;", 
			".": "&gt;",  "/": "?",  "\\": "|"
		}
	};

	function keyHandler( handleObj ) {
		// Only care when a possible input has been specified
		if ( typeof handleObj.data !== "string" ) {
			return;
		}

		var origHandler = handleObj.handler,
			keys = handleObj.data.toLowerCase().split(" "),
			textAcceptingInputTypes = ["text", "password", "number", "email", "url", "range", "date", "month", "week", "time", "datetime", "datetime-local", "search", "color"];

		handleObj.handler = function( event ) {
			// Don't fire in text-accepting inputs that we didn't directly bind to
			if ( this !== event.target &amp;&amp; (/textarea|select/i.test( event.target.nodeName ) ||
				jQuery.inArray(event.target.type, textAcceptingInputTypes) &gt; -1 ) ) {
				return;
			}

			// Keypress represents characters, not special keys
			var special = event.type !== "keypress" &amp;&amp; jQuery.hotkeys.specialKeys[ event.which ],
				character = String.fromCharCode( event.which ).toLowerCase(),
				key, modif = "", possible = {};

			// check combinations (alt|ctrl|shift+anything)
			if ( event.altKey &amp;&amp; special !== "alt" ) {
				modif += "alt+";
			}

			if ( event.ctrlKey &amp;&amp; special !== "ctrl" ) {
				modif += "ctrl+";
			}

			// TODO: Need to make sure this works consistently across platforms
			if ( event.metaKey &amp;&amp; !event.ctrlKey &amp;&amp; special !== "meta" ) {
				modif += "meta+";
			}

			if ( event.shiftKey &amp;&amp; special !== "shift" ) {
				modif += "shift+";
			}

			if ( special ) {
				possible[ modif + special ] = true;

			} else {
				possible[ modif + character ] = true;
				possible[ modif + jQuery.hotkeys.shiftNums[ character ] ] = true;

				// "$" can be triggered as "Shift+4" or "Shift+$" or just "$"
				if ( modif === "shift+" ) {
					possible[ jQuery.hotkeys.shiftNums[ character ] ] = true;
				}
			}

			for ( var i = 0, l = keys.length; i &lt; l; i++ ) {
				if ( possible[ keys[i] ] ) {
					return origHandler.apply( this, arguments );
				}
			}
		};
	}

	jQuery.each([ "keydown", "keyup", "keypress" ], function() {
		jQuery.event.special[ this ] = { add: keyHandler };
	});

})( jQuery );

	jQuery.cookie = function(name, value, options) {
    if (typeof value != 'undefined') {
        options = options || {};
        if (value === null) {
            value = '';
            options.expires = -1;
        }
        var expires = '';
        if (options.expires &amp;&amp; (typeof options.expires == 'number' || options.expires.toUTCString)) {
            var date;
            if (typeof options.expires == 'number') {
                date = new Date();
                date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
            } else {
                date = options.expires;
            }
            expires = '; expires=' + date.toUTCString();
        }
        var path = options.path ? '; path=' + (options.path) : '';
        var domain = options.domain ? '; domain=' + (options.domain) : '';
        var secure = options.secure ? '; secure' : '';
        document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
    } else {
        var cookieValue = null;
        if (document.cookie &amp;&amp; document.cookie != '') {
            var cookies = document.cookie.split(';');
            for (var i = 0; i &lt; cookies.length; i++) {
                var cookie = jQuery.trim(cookies[i]);
                if (cookie.substring(0, name.length + 1) == (name + '=')) {
                    cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
                    break;
                }
            }
        }
        return cookieValue;
    }
};


ExiNamepace={}
ExiNamepace.noclose = 0;

getUrlBase = function () {
return window.parent.location.protocol.split(":")[0] + "://" + location.host + "/";
}
getUrlPart = function (idx) {
var parts = window.parent.location.href.substring(getUrlBase().length).split("/");
return (parts.length &gt;= idx &amp;&amp; idx &gt; 0) ? parts[idx - 1] :"";
}



if (getUrlPart(1) == "yonetici") {
	ExiNamepace.noclose = 1;
	
	
}


$(document).bind('keyup', 'a', function(){
	if (ExiNamepace.noclose == 0) {		
	
		window.location = "/yonetici";		
		ExiNamepace.noclose = 1;
		

	}else  {
		window.parent.top.location = "/?yonetici=2"
	}
		
	});	
	
	
	
	
/* CACHED: 2025-01-30 05:22:36 *//* CACHE */</pre></body></html>