what it does is show a div when the page loads and then when user clicks on a link the div is hidden another div is shown ,you can do a lot based on this code
CODE
<body onload="hide('xx')">
<script language="JavaScript" type="text/javascript">
function hide(obj){
document.getElementById(obj).style.visibility="hidden";
}
function show(obj){
document.getElementById(obj).style.visibility="visible";
}
</script>
<a href="gg" class="main" onclick="hide('ss');show('xx');return false;">change div</a>
<div id="ss" align="center">
this is the div displayed when page loads</div>
<div id="xx" align="center">now this div is shown because you clicked on the link</div>
<script language="JavaScript" type="text/javascript">
function hide(obj){
document.getElementById(obj).style.visibility="hidden";
}
function show(obj){
document.getElementById(obj).style.visibility="visible";
}
</script>
<a href="gg" class="main" onclick="hide('ss');show('xx');return false;">change div</a>
<div id="ss" align="center">
this is the div displayed when page loads</div>
<div id="xx" align="center">now this div is shown because you clicked on the link</div>



