Thanks for your quick reply,
but in both template the layers get fixed on top, my query is that how to change the layer1 onscroll to layer2.
i tried with panel layer, i triggered
onmouseclick show layer2.
but when i say onscroll show layer2 and hide layer1, its not showing