$(document).ready(function(){
			$("div#sliderWrapper").css({'height' : '40px'});	
				$("div.panelSlider").each(function(i) {
					var panelLeft = (i) * 130 + 'px';
					$(this).css({'float' : 'none', 'margin-right' : '0', 'position' : 'absolute', 'left' : panelLeft, 'top' : '0px'});
				});
				animatePanels(0);
				
				function animatePanels(firstPanel) {
					$("div.panelSlider").each(function(i) {
						$(this).animate(
							{
								left: "-=130px" 
							},
							500,
							"linear",
							function(){
								if ($("div.panelSlider").size() - 1 == i) {
									var panelLeft = (($("div.panelSlider").size() - 1) * 130) + 'px';
									$("div.panelSlider").eq(firstPanel).css({'left' : panelLeft});
									firstPanel++;
									if ($("div.panelSlider").size() == firstPanel) firstPanel = 0;
									setTimeout(function(){animatePanels(firstPanel);}, 5000);
								}
							}
						);
					});	
				}
		});
