// Customized (to provide default width, etc)
dw_Tooltip.wrapToWidth = function(obj) {
    if (!obj) return ''; 
    var str = obj['str'] || obj;
    if ( obj['w'] ) {
        this.setTipWidth( obj['w'] );
    } else {
        this.setTipWidth( 280 );
    }
    return str;
}

// Reducing offsets 
dw_Tooltip.offX = 6;
dw_Tooltip.offY = 6;

dw_Tooltip.defaultProps = {
    wrapFn: dw_Tooltip.wrapToWidth,
    hoverable: true
}

dw_Tooltip.content_vars = {
    mousedown: {
        str: 'The <a href="demos.php?demo=vt">vertical</a> example demonstrates mousedown links with the scrollbar. Demos in the <a class="nag" href="/zipped/dw_scroll.zip">download file</a> show how easy it is to set up.',
        w: 300
        },
    
    layout: {
        str: 'Examples in the download file use tables for simplicity. Online examples demonstrate CSS layout.',
        hoverable: false,
        followMouse: true,
        w:290
        },
        
    fluid: {
        str: 'A demo is available for <a href="documentation2.php#licensed">licensed users</a>.',
        w: 250
        },
        
    scrollToId: {
        str: 'An example demonstrates <a href="demos.php?demo=gl">onclick</a>. An example provided to <a href="documentation2.php#licensed">licensed users</a> demonstrates onload.',
        w: 280
        },
        
    onscroll: {
        str: 'Support for links that target elements in scroll areas and user tabs among links and form elements.',
        w: 300
        },
        
    glide: {
        str: 'Glide to a specific image or other element onclick. This <a href="demos.php?demo=gl">example</a> demonstrates.',
        w: 280
        },
        
    multi: {
        str: 'Both <a href="demos.php?demo=vt">vertical</a> and <a href="demos.php?demo=hz">horizontal</a> examples demonstrate. The <a href="documentation2.php#multi">documentation</a> provides information for setup.',
        w: 300
        },
        
    swap: {
        str: 'An <a href="demos.php?demo=ud">example</a> demonstrates. The <a href="documentation2.php#swap">documentation</a> provides information for setup.',
        w: 280
        },
        
    ajax: {
        str: 'An <a href="demos.php?demo=ud">example</a> demonstrates. ',
        w: 220
        },
    
    refresh: {
        str: 'An <a href="demos.php?demo=ud">example</a> demonstrates these capabilities.',
        w: 280
        },
    
    autohide: {
        str: 'The <a href="documentation.php#autohide">documentation</a> provides information for turning this feature on or off.',
        w: 300
        },
        
    access: {
        str: 'Information about accessibility provisions of the code is provided in the <a href="documentation2.php#access">documentation</a>.',
        w: 260
        },
        
    unob: {
        str: 'No event handler attributes needed in your markup. The <a href="documentation.php#controls">documentation</a> provides information.',
        w: 300
        },
    
    maps: {
        str: 'An <a href="demos.php?demo=vt">example</a> demonstrates with vertical scrolling. Vertical and horizontal demos are included in the <a class="nag" href="/zipped/dw_scroll.zip">download file</a>.',
        w: 300
        },
    doubledown: {
        str: 'This feature is set up automatically for <a href="demos.php?demo=vt">mouseover</a> links.',
        
        w: 200
        }

}
