////BEGIN Tooltip script (to use, be sure to include in BODY tag: onLoad="create_object_array()")
// ex: <a href="http://www.wordspy.com/" onMouseover="show_tooltip(event, 'This is a tooltip.')" onMouseout="hide_tooltip()">
// ex (cont.): <div id="tooltip" style="position:absolute; visibility: hidden"></div>

if (!dhtml_ok) { 
    // "Define" event for older browsers
    event = null
}

function show_tooltip(current_event, tip_text) {
        
    // If this is a non-DHTML browser, bail out
    if (!dhtml_ok) { return }
    
    // Get the mouse coordinates
    var mouse_x = get_mouse_x(current_event)
    var mouse_y = get_mouse_y(current_event)
    
    // Wrap the tooltip text inside a <div>
	// top,right,bottom,left
    var html_text = "<div class='tooltip' style=' width:250px;" +
                                "padding: 3px 7px 7px 7px; " +
                                "border: 1px solid #37598F; z-index: 2;' >" + 
								"<iframe src=\"javascript:;\" width=\"250\" height=\"200\" scrolling=\"no\" frameborder=\"0\" style=\"DISPLAY: visible; LEFT: 0px; POSITION: absolute; TOP: 0px; z-index: -1; filter=\'progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)\';\"></iframe>" + 
                                 tip_text + "</div>"

    // Apply the cross-browser functions
    dhtml_objects["tooltip"].set_html(html_text)
    dhtml_objects["tooltip"].set_left(mouse_x)
    dhtml_objects["tooltip"].set_top(mouse_y + 15)
    dhtml_objects["tooltip"].set_backgroundColor("#4E587E")
    dhtml_objects["tooltip"].set_visibility("visible") 

}

function hide_tooltip() {
 
    // If this is a non-DHTML browser, bail out
    if (!dhtml_ok) { return }
    
    // Set the <div> tag's visibility to "hidden"
    dhtml_objects["tooltip"].set_visibility("hidden")
}

//// END Tooltip Script
