<!-- 
/* JavaScript Tip of the Week - www.webreference.com/javascript
 * All of the code on this site is Copyright 1996 Nick Heinle (carter@gis.net)
 * The code may be reused on any web site as long as this message is included 
 * within the body of the document where it resides.
 */

var version = "3";
function tocItem (name, width, height) {
this.on = new Image (width, height);
this.on.src = "./files/" + name + "on.gif"
this.off = new Image (width, height);
this.off.src = "./files/" + name + "off.gif"
}
function toc_new (name, width, height) {
tocItem [name] = new tocItem (name, width, height);
}
function img_act (imgName) {
        if (version == "3") document [imgName].src = tocItem [imgName].on.src;
}
function img_inact (imgName) {
        if (version == "3") document [imgName].src = tocItem [imgName].off.src;
}
function load_toc (name, num) {
for (i = 1; i <= num; i++) toc_new (name + i, 42, 197);
}
if (version == "3") {
load_toc ('toc', 6);}
// -->
