if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){ //test for Firefox/x.x or Firefox x.x (ignoring remaining digits);

function l1(){
document.all.Layer1.style.height='20px';
document.all.Layer2.style.height='20px';
document.all.Layer3.style.height='20px';
document.all.Layer4.style.height='20px';
document.all.Layer5.style.height='20px';
document.all.Layer6.style.height='20px';}

function l2(){
document.all.Layer1.style.height='20px';
document.all.Layer2.style.height='195px';
document.all.Layer3.style.height='20px';
document.all.Layer4.style.height='20px';
document.all.Layer5.style.height='20px';
document.all.Layer6.style.height='20px';}

function l3(){
document.all.Layer1.style.height='20px';
document.all.Layer2.style.height='20px';
document.all.Layer3.style.height='75px';
document.all.Layer4.style.height='20px';
document.all.Layer5.style.height='20px';
document.all.Layer6.style.height='20px';}

function l4(){
document.all.Layer1.style.height='20px';
document.all.Layer2.style.height='20px';
document.all.Layer3.style.height='20px';
document.all.Layer4.style.height='100px';
document.all.Layer5.style.height='20px';
document.all.Layer6.style.height='20px';}

function l5(){
document.all.Layer1.style.height='20px';
document.all.Layer2.style.height='20px';
document.all.Layer3.style.height='20px';
document.all.Layer4.style.height='20px';
document.all.Layer5.style.height='20px';
document.all.Layer6.style.height='20px';}

function l6(){
document.all.Layer1.style.height='20px';
document.all.Layer2.style.height='20px';
document.all.Layer3.style.height='20px';
document.all.Layer4.style.height='20px';
document.all.Layer5.style.height='20px';
document.all.Layer6.style.height='65px';}


/* small() makes selected layer shorter (height property)*/
function small(lyr) {
document.all[lyr].style.height='20px';}

/* start() makes all layers short to start with (height property)*/
function start() {
document.all.Layer1.style.height='20px';
document.all.Layer2.style.height='20px';
document.all.Layer3.style.height='20px';
document.all.Layer4.style.height='20px';
document.all.Layer5.style.height='20px';
document.all.Layer6.style.height='20px';}
}
else
function l1(){
document.all.Layer1.style.height='20px';
document.all.Layer2.style.height='20px';
document.all.Layer3.style.height='20px';
document.all.Layer4.style.height='20px';
document.all.Layer5.style.height='20px';
document.all.Layer6.style.height='20px';}

function l2(){
document.all.Layer1.style.height='20px';
document.all.Layer2.style.height='200px';
document.all.Layer3.style.height='20px';
document.all.Layer4.style.height='20px';
document.all.Layer5.style.height='20px';
document.all.Layer6.style.height='20px';}

function l3(){
document.all.Layer1.style.height='20px';
document.all.Layer2.style.height='20px';
document.all.Layer3.style.height='75px';
document.all.Layer4.style.height='20px';
document.all.Layer5.style.height='20px';
document.all.Layer6.style.height='20px';}

function l4(){
document.all.Layer1.style.height='20px';
document.all.Layer2.style.height='20px';
document.all.Layer3.style.height='20px';
document.all.Layer4.style.height='115px';
document.all.Layer5.style.height='20px';
document.all.Layer6.style.height='20px';}

function l5(){
document.all.Layer1.style.height='20px';
document.all.Layer2.style.height='20px';
document.all.Layer3.style.height='20px';
document.all.Layer4.style.height='20px';
document.all.Layer5.style.height='20px';
document.all.Layer6.style.height='20px';}

function l6(){
document.all.Layer1.style.height='20px';
document.all.Layer2.style.height='20px';
document.all.Layer3.style.height='20px';
document.all.Layer4.style.height='20px';
document.all.Layer5.style.height='20px';
document.all.Layer6.style.height='85px';}


/* small() makes selected layer shorter (height property)*/
function small(lyr) {
document.all[lyr].style.height='20px';}

/* start() makes all layers short to start with (height property)*/
function start() {
document.all.Layer1.style.height='20px';
document.all.Layer2.style.height='20px';
document.all.Layer3.style.height='20px';
document.all.Layer4.style.height='20px';
document.all.Layer5.style.height='20px';
document.all.Layer6.style.height='20px';}

if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ //test for MSIE x.x;

function l1(){
document.all.Layer1.style.height='20px';
document.all.Layer2.style.height='20px';
document.all.Layer3.style.height='20px';
document.all.Layer4.style.height='20px';
document.all.Layer5.style.height='20px';
document.all.Layer6.style.height='20px';}

function l2(){
document.all.Layer1.style.height='20px';
document.all.Layer2.style.height='230px';
document.all.Layer3.style.height='20px';
document.all.Layer4.style.height='20px';
document.all.Layer5.style.height='20px';
document.all.Layer6.style.height='20px';}

function l3(){
document.all.Layer1.style.height='20px';
document.all.Layer2.style.height='20px';
document.all.Layer3.style.height='85px';
document.all.Layer4.style.height='20px';
document.all.Layer5.style.height='20px';
document.all.Layer6.style.height='20px';}

function l4(){
document.all.Layer1.style.height='20px';
document.all.Layer2.style.height='20px';
document.all.Layer3.style.height='20px';
document.all.Layer4.style.height='115px';
document.all.Layer5.style.height='20px';
document.all.Layer6.style.height='20px';}

function l5(){
document.all.Layer1.style.height='20px';
document.all.Layer2.style.height='20px';
document.all.Layer3.style.height='20px';
document.all.Layer4.style.height='20px';
document.all.Layer5.style.height='20px';
document.all.Layer6.style.height='20px';}

function l6(){
document.all.Layer1.style.height='20px';
document.all.Layer2.style.height='20px';
document.all.Layer3.style.height='20px';
document.all.Layer4.style.height='20px';
document.all.Layer5.style.height='20px';
document.all.Layer6.style.height='75px';}


/* small() makes selected layer shorter (height property)*/
function small(lyr) {
document.all[lyr].style.height='20px';}

/* start() makes all layers short to start with (height property)*/
function start() {
document.all.Layer1.style.height='20px';
document.all.Layer2.style.height='20px';
document.all.Layer3.style.height='20px';
document.all.Layer4.style.height='20px';
document.all.Layer5.style.height='20px';
document.all.Layer6.style.height='20px';}
}

