(function($){$.fn.epg=function(options){var defaults={timeout:10000,fx:"scrollHorz",speed:700,pauseOnPagerHover:1,mode:"thumb",thumbwidth:110,thumbheight:62,autoPlay:false};var options=$.extend(defaults,options);return this.each(function(){var $carousel=$(this);var total=$(".carouselcontent > div",$carousel).size();var first=1;var navigating=false;var $content=$(".carouselcontent",$carousel).after('<div class="control">');
var $control=$(".control",$carousel).prepend('<div class="prev">').append('<div class="next">');options.autoPlay=$carousel.hasClass("autorotate");var $prev=$(".prev",$carousel);var $next=$(".next",$carousel);var items=1;var pos=0;var uloffset=0;if($("> div",$content).size()==1){}else{$content.cycle({pauseOnPagerHover:options.pauseOnPagerHover,fx:options.fx,speed:options.speed,timeout:options.timeout,next:$next,prev:$prev,height:"auto",containerResize:1});
}$control.hover(function(){$(this).stop();},function(){$control.animate({height:"0px"},200);});$content.hover(function(){$control.animate({height:"30px"},200);},function(){$control.animate({height:"0px"},200);});$control.click(function(){if($(this).hasClass("play")){$content.cycle("resume");$(this).addClass("pause");$(this).removeClass("play");}else{$content.cycle("pause");$(this).addClass("play");
$(this).removeClass("pause");}});$content.removeClass("hidden");$control.animate({height:"0px"},200);});};})(jQuery);
