/*
 * Author: Kumar
 * File: AsplIsmHelp.js
 * Associated File: AsplIsmHelpMsg.js
 */
 
var hintIndicatorImgType = true;                     //Set True if Indicator is Image
var hintIndicatorImgN    = 'AsplIsmNote.gif';       //if Indicator is Image set the Image Name for Normal
var hintIndicatorImgO    = 'AsplIsmNote_Hover.gif'; //if Indicator is Image set the Image Name for MouseOver

var hintIndicatorImgBm   = '/favicon.jpg'; //favicon.gif

var hintTextIcon         = "?";
var hintTextStyleClass   = "link_r_LightBlueOverDarkBlue";
var totLink = 0;
var ContextName = "ishop";

function popUpHelp()
{ hintId = arguments[0];
  newW   = (arguments[1]==null)? 500 : arguments[1];
  var helpPgLink = "/"+ContextName+"/help/AsplIsmPopUpHelp.htm?"+hintId+"&"+newW;
  var settings   ='height='+200+',width='+newW+',top='+10+',left='+10+',scrollbars=yes,resizable=yes';
  win = window.open(helpPgLink, 'iShopHelp', settings);
  win.focus();
}

function getMouseOverHint()
{ hintId = arguments[0];
  var ww   = arguments[1];
  if ((hintId != 0) && (!(isBlankStr(HelpMsg[hintId]))))
  { totLink++;
    if (hintIndicatorImgType)
    { document.write("<span style='cursor:pointer' onclick=\"javascript:popUpHelp("+hintId+", "+ww+");\"><img title=\""+HelpMsg[hintId]+"\" border=0 name='imgHintOnMouseOver_"+totLink+"_"+hintId+"' id='imgHintOnMouseOver_"+totLink+"_"+hintId+"' src='/"+ContextName+"/img/"+hintIndicatorImgN+"' onMouseOut=\"javascript:MM_swapImgRestore();\" onMouseOver=\"javascript:MM_swapImage('imgHintOnMouseOver_"+totLink+"_"+hintId+"', '', '/"+ContextName+"/img/"+hintIndicatorImgO+"', 1)\"></span> &nbsp;");
    }
    else
    { document.write("<span style='cursor:pointer' onclick=\"javascript:popUpHelp("+hintId+", "+ww+");\" class=\""+hintTextStyleClass+"\" ><span title=\""+HelpMsg[hintId]+"\">"+hintTextIcon+"</span></span>");
    };
  };
}

function getMouseOverHint4Bm(hintId)
{ if ((hintId != 0) && (!(isBlankStr(HelpMsg[hintId]))))
  { totLink++;
    if (hintIndicatorImgType)
    { document.write("<a href=\"javascript:popUpHelp("+hintId+");\"><img title=\""+HelpMsg[hintId]+"\" border=0 name='imgHintOnMouseOver_"+totLink+"_"+hintId+"' id='imgHintOnMouseOver_"+totLink+"_"+hintId+"' src='"+hintIndicatorImgBm+"'></a> &nbsp;");
    }
    else
    { document.write("<a href=\"javascript:popUpHelp("+hintId+");\" class=\""+hintTextStyleClass+"\" ><span title=\""+HelpMsg[hintId]+"\">"+hintTextIcon+"</span></a>");
    };
  };
}
