window.log=function(){log.history=log.history||[];log.history.push(arguments);arguments.callee=arguments.callee.caller;if(this.console)console.log(Array.prototype.slice.call(arguments));};(function(b){function c(){}
for(var d="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),a;a=d.pop();)b[a]=b[a]||c})(window.console=window.console||{});(function($){$.fn.eyecatcher=function(options){if($(this).length>0){var eyecatcherClass=$(this).children('div').attr('class').split(' ')[0];var opts=$.extend({},$.fn.eyecatcher.defaults,options);var eyecatchers=$(this).children();var i=0;var first=0;var eyecatcherBox;var box;$(eyecatchers).hide();if(eyecatchers.length>1){function showBox(){first++;$('div.'+eyecatcherClass).fadeOut(1000);$('div.'+eyecatcherClass+' div.box').hide();if(i==eyecatchers.length){i=0;}
eyecatcherBox=eyecatchers[i];if(first==1){$(eyecatcherBox).show();}else{$(eyecatcherBox).fadeIn(1000);}
box=$($(eyecatcherBox).children('div.inner').children('div.box'));setTimeout(animate,700);function animate(){if(opts.align=='left'){box.removeAttr('style').show().css('left','-260px').children().hide();box.animate({'left':'72px'},opts.animationSpeed,opts.easing);setTimeout(function(){box.children().fadeIn(500);},800);opts.align='right';}else{box.removeAttr('style').show().css('right','-260px').children().hide();box.animate({'right':'106px'},opts.animationSpeed,opts.easing);setTimeout(function(){box.children().fadeIn(500);},1000);opts.align='left';}
i++;setTimeout(showBox,opts.delayTime);}}
showBox();}else{$('div.'+eyecatcherClass).show();}}}
$.fn.eyecatcher.defaults={align:'left',animationSpeed:2200,easing:'easeOutExpo',delayTime:7500};})(jQuery);
