Thanks guys, both hints were helpful to me. I agree, the functionality I am looking for is similar to
hidden or
folded plugin. However I will first try myself and if it doesn't work, I'll try to use one of these.
I found
javascript usage description of DW. I wonder if there is any similar
file structure if I wanted to add a few lines to CSS loaded to each page?