I was able to make this work using the link forum link I posted in the thread above - I was just missing one line of code. The only downside, is that ALL layers are expanded or none are expaned - there is no control over which layers are expanded.
Hope it helps someone else looking for this solution.