var nom = 2; // Number of menus
var usePictures = 1; // use pictures?  1 = yes, 0 = no

var ttls = new Array(); // An array for the title objects
var subs = new Array(); // An array for the submenu objects
var lastn;
var lastmove;

if (document.layers) {
visible = 'show';
hidden = 'hide';
}
else
if (document.all) {
visible = 'visible';
hidden = 'hidden';
}
for (var i = 1; i <= nom; i++) {
ttls[i] = ('title' + i);
subs[i] = ('submenu' +i);
}
function picopen(n) {
title = ('title' + n);
pic = ('pic' + n);
if (document.layers) {
document.layers[title].document.images[pic].src = "images/opened.gif";
}
else if (document.all) {
document.all(pic).src = "images/opened.gif";
   }
}
function picclose(n) {
title = ('title' + n);
pic = ('pic' + n);
if (document.layers) {
document.layers[title].document.images[pic].src = "images/closed.gif";
}
else if (document.all) {
document.all(pic).src = "images/closed.gif";
   }
}
lastn = (nom + 1);
lastmove = 0;
function lasttoggle(n,move) {
if (n <= nom) {
menu = ('submenu' + n);
if (document.layers) {
submenu = document.layers[menu];
}
else if (document.all) {
submenu = document.all(menu).style;
}
if (submenu.visibility == visible) {
submenu.visibility = hidden;
picclose(n); // Remove this if you don't use pictures
for (var i = (n+1); i <= nom; i++) {
if (document.layers) {
document.layers[ttls[i]].top -= move;
document.layers[subs[i]].top -= move;
}
else if (document.all) {
document.all(ttls[i]).style.pixelTop -= move;
document.all(subs[i]).style.pixelTop -= move;
            }
         }
      }
   }
}
function toggle(n,move) {
menu = ('submenu' + n);
if (document.layers) {
submenu = document.layers[menu];
}
else if (document.all) {
submenu = document.all(menu).style;
}
if (submenu.visibility == visible) {
submenu.visibility = hidden;
if (usePictures) picclose(n);
for (var i = (n+1); i <= nom; i++) {
if (document.layers) {
document.layers[ttls[i]].top -= move;
document.layers[subs[i]].top -= move;
}
else if (document.all) {
document.all(ttls[i]).style.pixelTop -= move;
document.all(subs[i]).style.pixelTop -= move;
      }
   }
}
else {
submenu.visibility = visible;
if (usePictures) picopen(n);
if (lastn != n) {
lasttoggle(lastn,lastmove);
}
for (var i = (n+1); i <= nom; i++) {
if (document.layers) {
document.layers[ttls[i]].top += move;
document.layers[subs[i]].top += move;
}
if (document.all) {
document.all(ttls[i]).style.pixelTop += move;
document.all(subs[i]).style.pixelTop += move;
      }
   }
}
lastn = n;
lastmove = move;
}
//  End -->

<!-- Index Page Javascript -->

<!--
browser = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )) || ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 3 )))
// Navigational bars:
if ( browser) {

cartoon = new Image;
cartoon.src = "images/cartoonlinkhome.gif";
cartoon_on = new Image;
cartoon_on.src = "images/cartoonlinkhome_on.gif";
introduction = new Image;
introduction.src = "images/1a.gif";
introduction_on = new Image;
introduction_on.src = "images/intro1_on.gif";
technical = new Image;
technical.src = "images/3a.gif";
technical_on = new Image;
technical_on.src = "images/technical_on.gif";
summary = new Image;
summary.src = "images/5.gif";
summary_on = new Image;
summary_on.src = "images/summary_on.gif";
compliance = new Image;
compliance.src = "images/7.gif";
compliance_on = new Image;
compliance_on.src = "images/compliance_on.gif";
pictures = new Image;
pictures.src = "images/9.gif";
pictures_on = new Image;
pictures_on.src = "images/pictures_on.gif";
links = new Image;
links.src = "images/11.gif";
links_on = new Image;
links_on.src = "images/links_on.gif";
training = new Image;
training.src = "images/13.gif";
training_on = new Image;
training_on.src = "images/training_on.gif";
latest = new Image;
latest.src = "images/16.gif";
latest_on = new Image;
latest_on.src = "images/latest_on.gif";
contact = new Image;
contact .src = "images/19.gif";
contact_on = new Image;
contact_on.src = "images/contact_on.gif";


frame = new Image;
frame.src = "images/birdlogo.gif";
frame1 = new Image;
frame1.src = "images/introduction.gif";
frame2 = new Image;
frame2.src = "images/summary.gif";
frame3 = new Image;
frame3.src = "images/compliance.gif";
frame4 = new Image;
frame4.src = "images/pictures.gif";
frame5 = new Image;
frame5.src = "images/links.gif";
frame6 = new Image;
frame6.src = "images/training.gif";
frame7 = new Image;
frame7.src = "images/latest.gif";
frame8 = new Image;
frame8.src = "images/contact.gif";
frame9 = new Image;
frame9.src = "images/cartoonimage.gif";
frame10 = new Image;
frame10.src = "images/techreports.gif";


text = new Image;
text.src = "images/maintext.gif";
text1 = new Image;
text1.src = "images/introtext.gif";
text2 = new Image;
text2.src = "images/summarytext.gif";
text3 = new Image;
text3.src = "images/compliancetext.gif";
text4 = new Image;
text4.src = "images/picturestext.gif";
text5 = new Image;
text5.src = "images/linkstext.gif";
text6 = new Image;
text6.src = "images/trainingtext.gif";
text7 = new Image;
text7.src = "images/latesttext.gif";
text8 = new Image;
text8.src = "images/contacttext.gif";
text9 = new Image;
text9.src = "images/technicaltext.gif";
}

function hiLite(imgDocID,imgObjName) {
if ( browser) {
        document.images[imgDocID].src = eval(imgObjName + ".src")
        }
}
// -->