﻿//http://www.lateralcode.com/slideshow-with-buttons/

var cur = $('.ppt li:first');
var interval;

function gotoOne() {
    cur.fadeOut(1000);
    cur = $('.ppt li:first');
    cur.fadeIn(1000);
}

function gotoTwo() {
    cur.fadeOut(1000);
    cur = $('.ppt li:nth-child(2)');
    cur.fadeIn(1000);
}

function gotoThree() {
    cur.fadeOut(1000);
    cur = $('.ppt li:last');
    cur.fadeIn(1000);
}

$(function () {
    setTimeout("start()", 500);
});

function start() {
    $('.ppt li:gt(0)').hide();
    $('.ppt li:last').addClass('last');
    $('.ppt li:first').addClass('first');

    cur = $('.ppt li:first');
}
