can someone please explain to me exactly what is and how to slow-sync and second curtain sync on a Canon Speedlite 580EX II in a 40D.

thanks a lot people.