Here is my solution. I think this is what you were looking for.
Here is the master frames page:
========================================
<html>
<head>
<title>Collapsible Frames Script</title>
<!--
This script may be used or modified without restriction
as long as this notice is kept in the script.
Author: Michael Silva of Albuquerque, New Mexico
Email:
michael_silva@yahoo.com
-->
<script language="javascript">
function resizeFrames(preference){
if (preference == 1) {
window.topandbottom.rows = '0,*,0';
}
if (preference == 2) {
window.topandbottom.rows = '150,*,150';
}
if (preference == 3) {
window.leftandmain.cols = '0,*';
}
if (preference == 4) {
window.leftandmain.cols = '300,*';
}
if (preference == 5) {
window.topandbottom.rows = '150,*,0';
}
if (preference == 6) {
window.topandbottom.rows = '150,*,150';
}
if (preference == 7) {
window.topandbottom.rows = '0,*,150';
}
if (preference ==

{
window.topandbottom.rows = '150,*,150';
}
}
</script>
</head>
<frameset rows="150,*,150" name="topandbottom" framespacing="7" frameborder="0">
<frame src="top.htm" name="top">
<frameset cols="300,*" name="leftandmain">
<frame src="left.htm" name="left">
<frame src="main.htm" name="main">
</frameset>
<frame src="bottom.htm" name="bottom">
</frameset>
</html>
==========================================
Here are the other pages:
Left Page for left pane:
<html>
<head>
<title>Left Pane</title>
<!--
This script may be used or modified without restriction
as long as this notice is kept in the script.
Author: Michael Silva of Albuquerque, New Mexico
Email:
michael_silva@yahoo.com
-->
</head>
<body bgcolor="yellow">
<a href="javascript:parent.resizeFrames(1);">Collapse Top and Bottom Panes</a><br>
<a href="javascript:parent.resizeFrames(2);">Expand Top and Bottom Panes</a>
</body>
</html>
===========================================
Top page for top frame:
<html>
<head>
<title>Top Pane</title>
<!--
This script may be used or modified without restriction
as long as this notice is kept in the script.
Author: Michael Silva of Albuquerque, New Mexico
Email:
michael_silva@yahoo.com
-->
</head>
<body bgcolor="orange">
<a href="javascript:parent.resizeFrames(5);">Collapse Bottom Pane</a><br>
<a href="javascript:parent.resizeFrames(6);">Expand Bottom Pane</a>
</body>
</html>
=========================================
Bottom page for bottom pane:
<html>
<head>
<title>Bottom Pane</title>
<!--
This script may be used or modified without restriction
as long as this notice is kept in the script.
Author: Michael Silva of Albuquerque, New Mexico
Email:
michael_silva@yahoo.com
-->
</head>
<body bgcolor="red">
<a href="javascript:parent.resizeFrames(7);">Collapse Top Pane</a><br>
<a href="javascript:parent.resizeFrames(8);">Expand Top Pane</a>
</body>
</html>
=======================================
Main page for main pane:
<html>
<head>
<title>Main Pane</title>
<!--
This script may be used or modified without restriction
as long as this notice is kept in the script.
Author: Michael Silva of Albuquerque, New Mexico
Email:
michael_silva@yahoo.com
-->
</head>
<body bgcolor="white">
<a href="javascript:parent.resizeFrames(3);">Collapse Left Pane</a><br>
<a href="javascript:parent.resizeFrames(4);">Expand Left Pane</a>
</body>
</html>
=====================================
Have a nice day. Let me know if this helps.