Code:
<script type="text/javascript">
window.onload = function(){
if(location.href.indexOf('layer=') != -1){
if(document.getElementById(location.href.split('layer=')[1])){
document.getElementById(location.href.split('layer=')[1]).style.display = 'block';
return;
}
}
document.getElementById('one').style.display = 'block';
}
</script>
However, if javascript is disabled or unavailable, nothing will be shown. For that, the easiest thing would be to include a:
HTML Code:
<noscript>This Page Requires Javascript</noscript>
In some portion of the page that can be seen. You may, should in fact, replace the text "This Page Requires Javascript" with something more informative, perhaps all of the information from all of the divisions, or a link to an alternate page.
Bookmarks