function leviTip_onOpen (e, t) {
// --------------------------------------------------
// Our custom handler for the onOpen event in leviTip
// 
    t = $(t);
    var offset = t.offset();
    e.css('top', offset.top - e.height() + 5);

    // We need to check to see if the tooltip extends past the right side of the frame
    // if it does, we need to reel in the tooltip to be almost flush with the ride margin
    var doc_width = $(document).width();
    var padding = 30;

    // IE appears to require a fix based upon whether or not the window is large or small
    if ( $.browser.msie && doc_width > 1024 ) {
        padding += 30;
    }

    // Do the actual bounds checking and if it's past the border...
    if ( doc_width < ( offset.left + e.width() + padding) ) {
        var box_left  = doc_width - e.width() - padding;
        var tail_left = offset.left - box_left + 8;
        e.css('left', box_left);
        $(".shadowbox3").css({left:tail_left+"px"});
    }

    // Does not extend past the margin, it's fine.
    else {
        e.css('left', offset.left + 5);
        $(".shadowbox3").css({left:"3px"});
    }
}
