Im sorry but the solution is a very long and the post put it over there.

Regards,