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(window,document,undefined){var Slideshow=function(){var fn=this;var count=$(".cars .car").length,container_width=490;fn.currentIndex=0;var timer=null;var delay=5000,transition='normal';fn.next=function(){if(fn.currentIndex==(count-1)){fn.goto(0);}else{fn.goto(fn.currentIndex+1);}
if(timer){fn.play();}}
fn.goto=function(index){var margin=index*container_width;$(".cars").animate({marginLeft:-margin},transition,function(){fn.currentIndex=index;});}
fn.play=function(){timer=setTimeout(function(){fn.next();},delay);}
fn.Stop=function(){clearTimeout(timer);timer=null;}
return this;}
window.Slideshow=window.slideshow=new Slideshow();})(this,document);$(document).ready(function(){window.slideshow.play();});
