(function(b){var a=function(d,f){var t=b.extend({},b.fn.barrFoot.defaults,f);t.afterLoad.call(this);var l=b(d);var h;var q;var n;var j;var g;var u=t.altezza;var r=0;var o=0;var c=l.children();var i=c.length;var e=function(w){};var p=function(w){b(this).animate({opacity:0.5})};var k=function(w){b(this).animate({opacity:1})};var s=function(w){c.each(function(){var y=b(this);var x=y.children();q=y;l.css("bottom","-"+u+"px");if(y.attr("class")=="content"){y.children().each(function(){var z=b(this);if(z.is("div")&&z.attr("id")=="address"){z.css({position:"relative",bottom:"-"+u-50+"px"});h=z}if(z.is("ul")&&z.attr("id")=="sx"){n=z;n.children().each(function(){r+=b(this).outerWidth(true);b(this).children("a").bind("click",e);b(this).children("a").hover(p,k);b(this).children("a").css({position:"relative",bottom:"-"+u+"px"})})}if(z.is("ul")&&z.attr("id")=="dx"){j=z;j.children().each(function(){o+=b(this).outerWidth(true);b(this).children("a").bind("click",e);b(this).children("a").hover(p,k);b(this).children("a").css({position:"relative",bottom:"-"+u+"px"})})}if(z.is("div")&&z.attr("id")=="widget-foot"){z.css({position:"relative",bottom:"-"+u-50+"px"});g=z}})}})};var v=function(){l.delay(t.delay).animate({bottom:0},t.velocita,"easeOutExpo",function(){var x=0;if(q.attr("class")=="content"){var w=q.children();w.each(function(){var y=b(this);if(y.is("ul")&&y.attr("id")=="sx"){n.children().each(function(z){b(this).children("a").delay(200*z).animate({bottom:0},700,"easeOutExpo",function(){if(z==n.children().length-1){h.delay(0).animate({bottom:0},700,"easeOutExpo",function(){})}})})}if(y.is("ul")&&y.attr("id")=="dx"){j.children().each(function(z){b(this).children("a").delay(200*z).animate({bottom:0},700,"easeOutExpo",function(){})})}if(y.is("div")&&y.attr("id")=="widget-foot"){y.delay(0).animate({bottom:0},700,"easeOutExpo",function(){})}x++})}})};var m={};l.data("vars",m);s(t);v();return this};b.fn.barrFoot=function(c){return this.each(function(f,g){var e=b(this);if(e.data("barrfoot")){return e.data("barrfoot")}var d=new a(this,c);e.data("barrfoot",d)})};b.fn.barrFoot.defaults={delay:0,altezza:20,afterLoad:function(){}};b.fn._reverse=[].reverse})(jQuery);
