// Standard Watershed Javascript include file with basic, commonly used
// functions



function addEvent(elementID, eventType, callback, useCapture) {
    // cross-browser event assigner for IE5+, NS6+ and Mozilla/Gecko
    // By Scott Andrew
    //
    // elementID: the ID of the element to attach the listener to;
    // eventType: the type of event to be notified of - such as load, mousedown, click;
    // callback: the function reference to be called when the event happenss
    // useCapture: prevent event propogation
    
    if (elementID.addEventListener) {
        // Most browsers except IE
        elementID.addEventListener(eventType, callback, useCapture);
        return true;
    } else if (elementID.attachEvent) {
        // Used by IE
        var result = elementID.attachEvent('on' + eventType, callback);
        return result;
    } else {
        // IE5 Macintosh
        elementID['on' + eventType] = callback;
    }
}










