// 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( 200 );
    }
    return str;
}

// Reducing offsets 
dw_Tooltip.offX = 6;
dw_Tooltip.offY = 6;

dw_Tooltip.defaultProps = {
    wrapFn: dw_Tooltip.wrapToWidth
}

dw_Tooltip.content_vars = {
    mouseover: {
        str: 'View any of the examples for a demonstration. See the documentation for setup information.',
        w: 280
        },
        
    mousedown: {
        str: 'Many people like to include mousedown links with the scrollbar. The <a href="documentation2.php#class">documentation</a> describes how to set up the links.',
        w: 300,
        hoverable: true
        },
        
    vert: 'The example demonstrates with mouseover scrolling and scrollbar.',
    
    horiz: {
        str: 'The example demonstrates scrolling images horizontally on mouseover, glide onclick, and with a scrollbar.',
        w: 260
        },
    
    layout: {
        str: 'Examples in the download file use tables for simplicity. Online examples demonstrate CSS layout.',
        w:280
        },
        
    scrollToId: 'This feature can be activated onclick or onload.',
    
    glide: {
        str: 'The example demonstrates with images. See also <a href="horiz.php">horizontal</a> glide onclick scrolling.',
        hoverable: true,
        w: 260
        },
        
    scrollbars: {
        str: 'Both the <a href="vert.php">vertical</a> and <a href="horiz.php">horizontal</a> examples demonstrate. The download file includes an example combining vertical and horizontal scroll bars on a single scroll area. The <a href="documentation.php#scrollbar">documentation</a> provides information for setup.',
        hoverable: true,
        w: 360
    },
    
    swap: 'Click to see an example that demonstrates.',
    
    multi: {
        str: 'The <a href="documentation.php#multi">documentation</a> provides information for setup. Examples both online and in the download file demonstrate.',
        hoverable: true,
        w: 300
        },
        
    autohide: {
        str: 'Click the Swap Content link in <a href="refresh.php">this example</a> to see this feature demonstrated. The <a href="documentation.php#autohide">documentation</a> provides instructions for set up.',
        hoverable: true,
        w: 300
        },
        
    access: {
        str: 'Click to see more about accessibility provisions of the code in the documentation.',
        w: 260
        },
        
    unob: {
        str: 'The <a href="documentation2.php#class">documentation</a> provides information.',
        hoverable: true
        },
    
    maps: 'Click to see an example.',
    
    doubledown: 'This feature is set up automatically for mouseover links.'

}