var TIPS_CFG = {
//	'top'        : 1, // a vertical offset of a hint from mouse pointer
	'left'       : 1, // a horizontal offset of a hint from mouse pointer
	'css'        : 'tipClass', // a style class name for all hints, TD object
	'show_delay' : 2000, // a delay between object mouseover and hint appearing
	'hide_delay' : 5000, // a delay between hint appearing and hint hiding
	'wise'       : false,
	'z-index'    : 100 // a z-index for all hint layers
};

function wrap (s_, b_ques, tip_type)
{
    var strReturn = "";
    b_ques = 1;
    switch (tip_type)
    {
        case 0 : // Top left arrow
            strReturn = "<table cellpadding='0' cellspacing='0' border='0' style='-moz-opacity:90%;filter:progid:DXImageTransform.Microsoft.dropShadow(Color=#777777,offX=4,offY=4)'><tr><td rowspan='2'><img src='/website/images/helptips/left_top/1.gif'></td><td><img src='/img/pixel.gif' width='1' height='15'></td></tr><tr><td background='/website/images/helptips/left_top/2.gif' height='28' nowrap>"+s_+"</td><td><img src='/website/images/helptips/left_top/4.gif'></td></tr></table>"
            break;
        case 1 : // Top Right arrow
            strReturn = strReturn + "<table cellpadding='0' cellspacing='0' border='0' style='-moz-opacity:90%;filter:progid:DXImageTransform.Microsoft.dropShadow(Color=#777777,offX=4,offY=4)'>\n";
            strReturn = strReturn + "<tr valign=bottom>\n";
            strReturn = strReturn + "    <td><img src='/website/images/helptips/right_top/pixel.gif' width='1' height='15'></td>\n";
            strReturn = strReturn + "    <td><img src='/website/images/helptips/right_top/pixel.gif' width='1' height='15'></td>\n";
            strReturn = strReturn + "    <td rowspan='2'><img src='/website/images/helptips/right_top/4.gif'></td>\n";
            strReturn = strReturn + "</tr>\n";
            strReturn = strReturn + "<tr>\n";
            strReturn = strReturn + "    <td><img src='/website/images/helptips/right_top/1.gif'></td>\n";
            strReturn = strReturn + "    <td background='/website/images/helptips/right_top/2.gif' height='15' nowrap>"+s_+"</td>\n";
            strReturn = strReturn + "</tr>\n";
            strReturn = strReturn + "</table>\n";
            break;
        case 2 : // Bottom Left arrow
            strReturn = strReturn + "<table cellpadding='0' cellspacing='0' border='0' style='-moz-opacity:90%;filter:progid:DXImageTransform.Microsoft.dropShadow(Color=#777777,offX=4,offY=4)'>\n";
            strReturn = strReturn + "<tr>\n";
            strReturn = strReturn + "    <td rowspan='2'><img src='/website/images/helptips/left_bot/1.gif'></td>\n";
            strReturn = strReturn + "    <td background='/website/images/helptips/left_bot/2.gif' height='15' nowrap>"+s_+"</td>\n";
            strReturn = strReturn + "    <td><img src='/website/images/helptips/left_bot/4.gif'></td>\n";
            strReturn = strReturn + "</tr>\n";
            strReturn = strReturn + "<tr valign=top>\n";
            strReturn = strReturn + "    <td><img src='/website/images/helptips/left_bot/pixel.gif' width='1' height='15'></td>\n";
            strReturn = strReturn + "    <td><img src='/website/images/helptips/left_bot/pixel.gif' width='1' height='15'></td>\n";
            strReturn = strReturn + "    <td><img src='/website/images/helptips/left_bot/pixel.gif' width='1' height='15'></td>\n";
            strReturn = strReturn + "</tr>\n";
            strReturn = strReturn + "</table>\n";
            break;
        case 3 : // Bottom Right arrow
            strReturn = strReturn + "<table cellpadding='0' cellspacing='0' border='0' style='-moz-opacity:90%;filter:progid:DXImageTransform.Microsoft.dropShadow(Color=#777777,offX=4,offY=4)'>\n";
            strReturn = strReturn + "<tr>\n";
            strReturn = strReturn + "    <td><img src='/website/images/helptips/right_bot/1.gif'></td>\n";
            strReturn = strReturn + "    <td background='/website/images/helptips/right_bot/2.gif' height='15' nowrap>"+s_+"</td>\n";
            strReturn = strReturn + "    <td rowspan='2'><img src='/website/images/helptips/right_bot/4.gif'></td>\n";
            strReturn = strReturn + "</tr>\n";
            strReturn = strReturn + "<tr valign=top>\n";
            strReturn = strReturn + "    <td><img src='/website/images/helptips/right_bot/pixel.gif' width='1' height='15'></td>\n";
            strReturn = strReturn + "    <td><img src='/website/images/helptips/right_bot/pixel.gif' width='1' height='15'></td>\n";
            strReturn = strReturn + "    <td><img src='/website/images/helptips/right_bot/pixel.gif' width='1' height='15'></td>\n";
            strReturn = strReturn + "</tr>\n";
            strReturn = strReturn + "</table>\n";
            break;
    }
    return strReturn;
}
