ti rimando a questo link perchè spiegartelo è troppo lungo...
http://www.2ginc.com/tutorials/illus02.html