	$(function(){
		    			
			$('#slides').slides({
				preload: true,
				generateNextPrev: false,
                                generatePagination: false,
				nextPrevAreIds: true,
				prev: 'previousButton',
				next: 'nextButton',
				play: 10000,
				pause: 1,
				skipFirst: false,
				animationStart: function(current) {
					$(this).parent.lastSlide = current;
				},
				animationComplete: function(current, lastSlide) {
	
					var swfPanel = 'panel-' +current;
					var currentPanel = document.getElementById(swfPanel);
					if(!currentPanel.tagName.toLowerCase() == 'img') {
						currentPanel.Play();
					}
					
					if($.browser.msie) {

						swfPrevPanel = 'panel-' +$(this).parent.lastSlide;
						var prevPanel = document.getElementById(swfPrevPanel);
						if(!prevPanel.tagName.toLowerCase() == 'img') {
							prevPanel.Rewind();
						}
					}

				}
			});
		});
