// 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=vert">vertical</a> example demonstrates mousedown links with the scrollbar. The <a href="documentation2.php#class">documentation</a> describes how to set up the links.',
        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 bit of additional code, available only to <a href="/business/buy_info.php?code=scroll">licensed users</a>, is required.',
        w: 280
        },
        
    scrollToId: {
        str: 'This feature can be activated onclick or onload. See this <a href="demos.php?demo=extras">example</a> for more info.',
        w: 280
        },
        
    glide: {
        str: 'Glide by a specified distance or to a specified location onclick. This <a href="demos.php?demo=images">example</a> demonstrates with images. See also <a href="demos.php?demo=horiz">horizontal</a> glide onclick scrolling.',
        w: 300
        },
        
    multi: {
        str: 'Both <a href="demos.php?demo=vert">vertical</a> and <a href="demos.php?demo=horiz">horizontal</a> examples demonstrate. The <a href="documentation.php#multi">documentation</a> provides information for setup.',
        w: 300
        },
        
    swap: {
        str: 'An <a href="demos.php?demo=refresh">example</a> demonstrates. The <a href="documentation.php#divs">documentation</a> provides information for setup.',
        w: 280
        },
    
    refresh: {
        str: 'An <a href="demos.php?demo=refresh">example</a> demonstrates these capabilities.',
        w: 280
        },
    
    autohide: {
        str: 'Click the Auto-Hide Controls link in <a href="demos.php?demo=extras">this example</a> to see this feature demonstrated. The <a href="documentation.php#autohide">documentation</a> provides instructions for set up.',
        w: 300
        },
        
    access: {
        str: 'Information about accessibility provisions of the code is provided in the <a href="documentation.php#access">documentation</a>.',
        w: 260
        },
        
    unob: {
        str: 'No event handler attributes needed in your markup. The <a href="documentation2.php#class">documentation</a> provides information.',
        w: 300
        },
    
    maps: {
        str: 'The <a href="demos.php?demo=vert">example</a> demonstrates with vertical scrolling.',
        w: 200
        },
    doubledown: {
        str: 'This feature is set up automatically for mouseover links.',
        hoverable: false,
        followMouse: true,
        w: 200
        }

}