﻿$J(function(){$J(".fadeList").innerfade({speed:1500,timeout:4000,type:"sequence",containerheight:"171px"});
});(function(A){A.fn.innerfade=function(B){return this.each(function(){A.innerfade(this,B);
});};A.innerfade=function(D,G){var E={"animationtype":"fade","speed":"normal","type":"sequence","timeout":2000,"containerheight":"auto","runningclass":"innerfade","children":null};
if(G){A.extend(E,G);}if(E.children===null){var F=A(D).children();}else{var F=A(D).children(E.children);
}if(F.length>1){A(D).css("position","relative").css("height",E.containerheight).addClass(E.runningclass);
for(var H=0;H<F.length;H++){A(F[H]).css("z-index",String(F.length-H)).css("position","absolute").hide();
}if(E.type=="sequence"){setTimeout(function(){A.innerfade.next(F,E,1,0);},E.timeout);
A(F[0]).show();}else{if(E.type=="random"){var B=Math.floor(Math.random()*(F.length));
setTimeout(function(){do{C=Math.floor(Math.random()*(F.length));}while(B==C);A.innerfade.next(F,E,C,B);
},E.timeout);A(F[B]).show();}else{if(E.type=="random_start"){E.type="sequence";var C=Math.floor(Math.random()*(F.length));
setTimeout(function(){A.innerfade.next(F,E,(C+1)%F.length,C);},E.timeout);A(F[C]).show();
}else{alert("Innerfade-Type must either be 'sequence', 'random' or 'random_start'");
}}}}};A.innerfade.next=function(D,C,B,E){if(C.animationtype=="slide"){A(D[E]).slideUp(C.speed);
A(D[B]).slideDown(C.speed);}else{if(C.animationtype=="fade"){A(D[E]).fadeOut(C.speed);
A(D[B]).fadeIn(C.speed,function(){removeFilter(A(this)[0]);});}else{alert("Innerfade-animationtype must either be 'slide' or 'fade'");
}}if(C.type=="sequence"){if((B+1)<D.length){B=B+1;E=B-1;}else{B=0;E=D.length-1;}}else{if(C.type=="random"){E=B;
while(B==E){B=Math.floor(Math.random()*D.length);}}else{alert("Innerfade-Type must either be 'sequence', 'random' or 'random_start'");
}}setTimeout((function(){A.innerfade.next(D,C,B,E);}),C.timeout);};})(jQuery);function removeFilter(A){if(A.style.removeAttribute){A.style.removeAttribute("filter");
}}