var hmContextIds = new Array();
function hmGetContextId(query) {
    var urlParams;
    var match,
        pl = /\+/g,
        search = /([^&=]+)=?([^&]*)/g,
        decode = function (s) { return decodeURIComponent(s.replace(pl, " ")); },
    params = {};
    while (match = search.exec(query))
       params[decode(match[1])] = decode(match[2]);
    if (params["contextid"]) return decodeURIComponent(hmContextIds[params["contextid"]]);
    else return "";
}

hmContextIds["8500"]="guidedtour.htm";
hmContextIds["60100"]="networkversionstartup.htm";
hmContextIds["109000"]="uif_flowsheet.htm";
hmContextIds["104500"]="uif_flowsheettoolstoolbar.htm";
hmContextIds["104510"]="uif_flowsheettoolsselector.htm";
hmContextIds["104520"]="uif_flowsheettoolsmarkrect.htm";
hmContextIds["104650"]="uif_flowsheettoolsmarkanyarea.htm";
hmContextIds["104540"]="uif_flowsheettoolsresizetool.htm";
hmContextIds["104530"]="uif_flowsheettoolstexttool.htm";
hmContextIds["104531"]="uif_flowsheettoolsimagetool.htm";
hmContextIds["104533"]="uif_flowsheettoolstabletool.htm";
hmContextIds["104534"]="uif_flowsheettoolsrectangletool.htm";
hmContextIds["104535"]="uif_flowsheettoolsroundrectangletool.htm";
hmContextIds["104536"]="uif_flowsheettoolscircletool.htm";
hmContextIds["104550"]="uif_flowsheettoolsorthocross.htm";
hmContextIds["104560"]="uif_flowsheettoolsisocross.htm";
hmContextIds["104630"]="uif_flowsheettoolsshflyby.htm";
hmContextIds["104570"]="uif_flowsheettoolsshuniquename.htm";
hmContextIds["104580"]="uifflowsheettoolsshnodenumbers.htm";
hmContextIds["104590"]="uif_flowsheettoolsshpipenum.htm";
hmContextIds["104610"]="uif_flowsheettoolsshproperties.htm";
hmContextIds["104600"]="uif_flowsheettoolsshfreetext.htm";
hmContextIds["104620"]="uif_flowsheettoolsscale.htm";
hmContextIds["104640"]="uif_flowsheettoolsgridstyle.htm";
hmContextIds["100000"]="uimd_filemenu.htm";
hmContextIds["100500"]="uimd_editmenu.htm";
hmContextIds["101000"]="uimd_viewmenu.htm";
hmContextIds["101500"]="uimd_databasemenu.htm";
hmContextIds["102500"]="uimd_optionsmenu.htm";
hmContextIds["103000"]="uimd_toolsmenu.htm";
hmContextIds["103500"]="uimd_windowmenu.htm";
hmContextIds["104000"]="uimd_helpmenu.htm";
hmContextIds["9750"]="uimd_activatefluidflowdialog.htm";
hmContextIds["60600"]="uimd_backcalcinputf.htm";
hmContextIds["10100"]="uimd_billofmaterialsf.htm";
hmContextIds["10200"]="uimd_calculationoptionsf.htm";
hmContextIds["10300"]="uimd_changecomponentf.htm";
hmContextIds["42000"]="uimd_chartpropertiesf.htm";
hmContextIds["60400"]="uimd_colorcodingf.htm";
hmContextIds["10400"]="uimd_componentdefaultsf.htm";
hmContextIds["10600"]="uimd_configuretoolsf.htm";
hmContextIds["20200"]="uimd_customizesendtorecipients.htm";
hmContextIds["20475"]="uimd_excelpropertiesf.htm";
hmContextIds["20600"]="uimd_flowsheetoptions.htm";
hmContextIds["50600"]="uimd_fluideditorf.htm";
hmContextIds["20650"]="uimd_flybypropertiesf.htm";
hmContextIds["50800"]="uimd_makemixturef.htm";
hmContextIds["43000"]="uimd_minimizednodeiconsf.htm";
hmContextIds["60500"]="uimd_multicalcf.htm";
hmContextIds["20775"]="uimd_openenvironmentf.htm";
hmContextIds["20800"]="uimd_passwordf.htm";
hmContextIds["60000"]="uimd_piperoughnesseditorf.htm";
hmContextIds["50900"]="uimd_pipescalingeditorf.htm";
hmContextIds["20500"]="uimd_exportpropertiesf.htm";
hmContextIds["20950"]="uimd_printpropertiesf.htm";
hmContextIds["30000"]="uimd_projectdescriptionf.htm";
hmContextIds["30100"]="uimd_reopenfilef.htm";
hmContextIds["30200"]="uimd_resultunitsf.htm";
hmContextIds["30250"]="uimd_saveenvironmentf.htm";
hmContextIds["41000"]="uimd_scriptf.htm";
hmContextIds["30800"]="uidp_selectpipeinsulationf.htm";
hmContextIds["30900"]="uidp_selectpiperoughnessmodel.htm";
hmContextIds["40000"]="uidp_selectpipescalingf.htm";
hmContextIds["40100"]="uidp_setcomponentf.htm";
hmContextIds["40200"]="uidp_setpipedimensionf.htm";
hmContextIds["40300"]="uidp_setpumpchangesf.htm";
hmContextIds["40400"]="uidp_settextandtextproperties.htm";
hmContextIds["30600"]="uidp_selectfluidf.htm";
hmContextIds["40700"]="uimd_toolpropertiesf.htm";
hmContextIds["40600"]="uimd_todopropertiesf.htm";
hmContextIds["40500"]="uimd_todolistf.htm";
hmContextIds["40800"]="uimd_updatecheckf.htm";
hmContextIds["41100"]="uimd_userdefinedfieldsf.htm";
hmContextIds["40850"]="uimd_visibleresultsf.htm";
hmContextIds["40900"]="uimd_warningandhintsf.htm";
hmContextIds["105000"]="uig_statusbar.htm";
hmContextIds["9500"]="technicalreference.htm";
hmContextIds["60200"]="scriptingconfigureresultsdialog.htm";
hmContextIds["60300"]="scriptingresultfieldpropertiesdialog.htm";
hmContextIds["9000"]="designexamples.htm";
