css layers code example
Example 1: layer on top in javascript
document.getElementById('yourdivid').style.zIndex = incremented_up_var;
Example 2: css z-index
#nav {
position: fixed;
...
z-index: 2;
}
#main {
position: absolute;
...
z-index: 1;
}