troppo complicata? boh dai, funziona...
http://www.codeflower.com/index.php?a=showCode&id=1