Issue #4: Enhancement diashow javascript

Uses now selectors in order to provide the same javascript functionality
to every post,category diashow.