//<!--
//\include\js\help\help_contextual_rebranding.js@@\main\5

function ebHelpContextualRebrand(pGuide,pFeature,pNoEscape)
{var hPath="/help/",hIndexPath=hPath+"index.html",hInd;var dl=document.links,url,pre,post;for(var i=dl.length-1;i>-1;i--)
{url=dl[i].href;hInd=url.indexOf(hIndexPath);if(hInd!=-1)
{pre=url.substring(0,url.lastIndexOf("/")+1);post=url.substring(url.lastIndexOf("/")+1);document.links[i].href=pre+pGuide+"/"+post;}
if(pFeature&&stringContains(url,hPath))
{post="fromFeature=";if(pNoEscape)
post+=pFeature;else
post+=escape(pFeature);if(stringContains(url,"?"))
post="&"+post;else
post="?"+post;var a=url.indexOf("#");if(a==-1)
a="";else
{document.links[i].href=url.substring(0,a);a=url.substr(a);}
document.links[i].href+=post+a;}}}
// -->

