Try this. The html…
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="content-language" content="en-us" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/styles.css" rel="stylesheet" media="screen" type="text/css" />
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/custom.js"></script>
</head>
<body>
<ul id="nav">
<li><a href="#login">CMS Login</a></li>
<li><a href="#client">Client Area</a></li>
<li><a href="#career" >Careers</a></li>
<li><a href="#awards">Awards</a></li>
<li><a href="#toolbox">Toolbox</a></li>
</ul>
<div id="login" class="popup">
<a class="close" href="#" title="close">Close</a>
<h2>Login Panel</h2>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
<p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).</p>
</div>
<div id="client" class="popup">
<a class="close" href="#" title="close">Close</a>
<h2>Client Information</h2>
<p>Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.</p>
</div>
<div id="toolbox" class="popup">
<a class="close" href="#" title="close">Close</a>
<h2>Toolbox</h2>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
<p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).</p>
<p>Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.</p>
</div>
</body>
</html>
The css…
* {
margin: 0;
padding: 0;
font-size: 100%;
}
body {
color: #fff;
padding: 10px;
font: 75% Arial;
background: #000;
}
#nav li {
float: left;
list-style: none;
margin-right: 2px;
}
#nav a, #nav a:visited {
color: #fff;
float: left;
outline: none;
display: block;
padding: 5px 10px;
text-decoration: none;
}
#nav a:hover {
color: #000;
background: #fff;
}
#nav a.active, #nav a.active:visited, #nav a.active:hover {
color: #fff;
background: #300;
}
div.popup {
clear: both;
width: 800px;
padding: 0 10px;
background: #300;
overflow: hidden;
}
div.popup a.close, div.popup a.close:visited {
color: #000;
float: right;
display: block;
background: #fff;
padding: 5px 10px;
text-decoration: none;
}
div.popup a.close:hover {
color: #000;
background: #ccc;
}
div.popup h2 {
padding: 10px 0 15px 0;
}
div.popup p {
line-height: 1.5;
padding-bottom: 15px;
}
and finally the script…
$(function(){
// Collect heights and collapse panels
$panels = $('div.popup');
for (i=0; i<$panels.length; i++){
ht = $panels.eq(i).height();
$panels.eq(i).data('height', ht).height(0);
}
// Click handler for menu links
$('#nav a').click(function(){
if ($(this).hasClass('active')){ // Do nothing if the selected panel is already open
return false; // the presence of active class indicates the panel
} // is already open
$('#nav a').removeClass('active'); // Deactivate the active button if any
var name = $(this).addClass('active').attr('href'); // Get the name of the panel to open
// and set the corresponding button to
// active state
var ht = $(name).data('height'); // Collect height of the panel to open
$('div.popup.open').removeClass('open').animate({ // Collapse any open panels
height: 0
}, 800);
$(name).addClass('open').animate({ // Open selected panel
height: ht
}, 800);
return false;
});
// Click handler for close buttons
$('div.popup a.close').click(function(){
$obj = $(this).parent().removeClass('open').animate({ // Remove 'open' class, collapse the
height: 0 // panel and set the nav button to
}, 800, function(){ // normal state
$('#nav a').removeClass('active');
});
return false;
});
});