function slideSwitch() {
	if ($('#stop_start').attr('class') == "start") {
	var cur_pos = $('#slider').css('left');
	//alert(cur_pos);
	if (cur_pos == '-2640px') {
	  $('#slider').animate({
		left: '0px'
	  }, 500, function() {
	    // Animation complete.
	  });
	} else {

	  $('#slider').animate({
		left: '-=880px'
	  }, 500, function() {
	    // Animation complete.
	  });
	}
}
}

$(function() {
	$('.adorn').corner("10px");

	$('#slideshow').cycle({ 
		fx:    'fade', 
		speed:  2500, // Actual speed of transition
		timeout:       6000, // delay **between slides**
		delay: 0 // time before whole show starts. Gives images time to load.
		});

		$('.port-link,.post-link').lightBox();

		PEPS.rollover.init();
		
    $('#slideshow').click(function(){
   		location.href='/nodes/view/4';
    return false;
    });



	$(function() {
	    setInterval( "slideSwitch()", 10000 );
	});
	
	$('#stop_start').click(function(event) {
		event.preventDefault();
		if ($(this).attr('class') == "start") {
			$(this).removeClass('start').addClass('stop');
			$(this).text("start slides");
		} else {
			$(this).removeClass('stop').addClass('start');
			$(this).text("stop slides");
		}

	})


prettyPrint();
});