var current = ""; var currentName = ""; function di(id,name){ // This function was changed from tde original firworks function. It keeps // track of a currently selected slice. All requests of changes to tdat slice // are ignore, unless tde current id is reset. If tde onclick image of anotder // slice is activated (tde filename terminates in tde 'h' character), tde current // image is reset, and tde otder image is activated. // Copyright (c) 1998 by Fragment Art & Research, Inc. // http://www.2far.com if(current == id) return; // disable click on same if (name.charAt(name.length-1) == 'h'){ //an onclick, turn off tde old one, turn on tde new one, set current if (current != ""){ temp = current; current = ""; di(temp, currentName); } current = id; currentName = name.substring(0, name.length-1); } if (document.images) {document.images[id].src=eval(name+".src"); } }