		  jQuery(document).ready(function() {
		  var currentPosition = 0;
		  var slideWidth = 960;//jQuery('.slide').outerWidth();//957
		  var slides = jQuery('.slide');
		  var numberOfSlides = slides.length;
		  var direction = 1;  // 1 forward, -1 reverse
		  var playID = 0;
		  
		  // Remove scrollbar in JS
		  jQuery('#slide-container').css('overflow', 'hidden');
		
		  // Wrap all .slides with #slideInner div
		  slides
		  .wrapAll('<div id="slideInner"></div>')
		  // Float left to display horizontally, readjust .slides width
		  .css({
		    'float' : 'left',
		    'width' : slideWidth
		  });
		
		  // Set #slideInner width equal to total width of all slides
		  jQuery('#slideInner').css('width', slideWidth * numberOfSlides);
		
		  // Insert left and right arrow controls in the DOM
		  /*jQuery('#slider')
		    .prepend('<span class="control" id="leftControl">Move left</span>')
		    .append('<span class="control" id="rightControl">Move right</span>');
			*/

		  jQuery('.slide:first').before(jQuery('.slide:last')); 
		
		  // Create event listeners for .controls clicks
		  /*jQuery('.control')
		    .bind('click', function(){
		    // Determine new position
		      if(jQuery(this).attr('id')=='rightControl') {
		           currentPosition += 1;
		           direction = 1;
		      }else{
		          currentPosition -= 1;
		          direction = -1;
		      }
		  
		      var curMarginLeft = parseInt(jQuery('#slideInner').css('marginLeft'));
		     
		      // Move slideInner using margin-left
		      jQuery('#slideInner').animate({
		        'marginLeft' : curMarginLeft + slideWidth*(-direction)
		      }, function() {
				 	if(direction == 1) {
				    	jQuery('.slide:last').after(jQuery('.slide:first'));
				 	}else{
				    	jQuery('.slide:first').before(jQuery('.slide:last'));
				 	}
			    	jQuery('#slideInner').css({'marginLeft' : '-960px'});
				 	
		      });
		      clearInterval(playID);
		      autoplay();
		    });*/
		
		  
		  autoplay = function(){
			    playID = setInterval(function(){  //Set timer - this will repeat itself every 7 seconds
			    	if(direction > 0) {
			    		currentPosition += 1;
			    	}else {
			    		currentPosition -= 1;
			    	}
			    	
			    	var curMarginLeft = parseInt(jQuery('#slideInner').css('marginLeft'));
			    	//alert(curMarginLeft + ' : ' + slideWidth*(-direction));
			    	jQuery('#slideInner').animate({
				        'marginLeft' : curMarginLeft + slideWidth*(-direction)
				      }, function() {
						 	if(direction == 1) {
						    	jQuery('.slide:last').after(jQuery('.slide:first'));
						 	}else{
						    	jQuery('.slide:first').before(jQuery('.slide:last'));
						 	}
					    	jQuery('#slideInner').css({'marginLeft' : '-960px'});
						 	
				      });

			    }, 7000); //12 secs
			};
		  autoplay();
		  });
