identifies code that should be run once the page is loaded. It should not be nested within a function (HideDivs) as it will not be executed after page-load.
All ids must be unique on the page - you appear to be giving the 3-4 elements the same id.
And your code indicates you have an unclosed
div.