jQuery.fn.imageScroller=function(g){var d=g||{next:"navRight",prev:"navLeft",width:0,frame:"ribbonFrame",child:"a",auto:true,group:1};var c=$("."+d.next);var n=$("."+d.prev);var o=$("."+d.frame);var f=d.width;var h=d.child;var l=d.auto;var b=d.group;var j;var k;if(typeof(arguments[1])=="function"){var k=arguments[1]}var m=function(){n.unbind("click",m);if(l){a()}o.animate({marginLeft:-f},"slow","",function(){o.children().slice(0,b).appendTo(o);o.css("marginLeft",0);n.bind("click",m);if(l){i()}if(typeof k=="function"){k.call(this)}})};var e=function(){c.unbind("click",e);if(l){a()}o.children().slice(-b).clone().show().prependTo(o);o.css("marginLeft",-f);o.animate({marginLeft:0},"slow","",function(){o.children().slice(-b).remove();c.bind("click",e);if(l){i()}if(typeof k=="function"){k.call(this)}})};c.css("cursor","hand").click(e);n.css("cursor","hand").click(m);var i=function(){j=window.setInterval(m,2000)};var a=function(){window.clearInterval(j)};if(l){i()}};
