Controlling layers

Hi!
Can I control layers in a htmldocument from flash?
I want to control visibilty and layerorder etc, any good resources or possibilities on that?
cheers!