$(document).ready(function(){function a(a){return a.replace(/^\//,"").replace(/(index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")}$(function(){$("#slider1").anythingSlider({autoPlay:true,delay:2500,startStopped:false,width:710,height:null,easing:"easeInOutBack",buildArrows:false,onSlideComplete:function(a){},navigationFormatter:function(a,b){return""},stopAtEnd:false,onShowStop:function(a,b){setTimeout(function(){if(b.currentPage===b.pages){b.gotoPage(1)}},5e3)}})});$(function(){$("#slider2").anythingSlider({width:710,height:300,resizeContents:false,startStopped:true,buildArrows:false,buildNavigation:false,navigationFormatter:function(a,b){return["panel0","panel1","panel2","Quote #2","Image #2"][a-1]}})});$("a.dontjump").click(function(){return false});$("#slide-jump").click(function(){$("#slider2").anythingSlider(1)});$("#slide-jump1").click(function(){$("#slider2").anythingSlider(2)});$("#slide-jump2").click(function(){$("#slider2").anythingSlider(3)});$(".cropthis").hover(function(){var a=$(this).find("img").attr("src");$(this).find("a.thumbtab").css({background:"url("+a+") no-repeat center bottom"});$(this).find("span.croptab").stop().fadeTo("fast",0,function(){$(this).hide()})},function(){$(this).find("span.croptab").stop().fadeTo("fast",1).show()});$("a[href*=#]").each(function(){if(a(location.pathname)==a(this.pathname)&&location.hostname==this.hostname&&this.hash.replace(/#/,"")){var b=$(this.hash),c=$("[name="+this.hash.slice(1)+"]");var d=b.length?b:c.length?c:false;if(d){var e=d.offset().top;$(this).click(function(){$("html, body").animate({scrollTop:e},1e3);return false})}}});$(".overlay img").hover(function(){$(this).stop().fadeTo("normal",.1)},function(){$(this).stop().fadeTo("normal",1)});$("#twitter").twitterSearch("aldeadigital");$(".overlay-thumb img").hover(function(){$(this).stop().fadeTo("normal",.2)},function(){$(this).stop().fadeTo("normal",1)});$(".overlay-mini-thumb img").hover(function(){$(this).stop().fadeTo("normal",.2)},function(){$(this).stop().fadeTo("normal",1)});$(".social li a, .logo-ocesa a").css({opacity:0}).hover(function(){$(this).stop().animate({opacity:1},350)},function(){$(this).stop().animate({opacity:0},300)})})
