# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)
#---------------Policies Manager -----------
#
# Dependencies :  -
#   Site             :     
# Resources	: - 
# Preferences : 
# previews   : 
#		
#
#  Author : 
#  Version: 
#  By  Merlin .
#
###############################################################


PoliciesManager{
menugrayed=(hostname($URL)=="");
if(($ARG == "page")+($ARG=="link")){
$HostAdd=  ($ARG=="page")? $URL :$LinkURL;
setpref(STRING,"extensions.policymanager.URL",$HostAdd);
$OpenURL="chrome://policymanager/content/selectPolicy.xul";
$ExecMacros="OpenURL_InNewWindow"; &ExecMacros_Frames;
}
else{
$HostAdd="";
$OpenURL="chrome://policymanager/content/policymanager.xul";
$ExecMacros="OpenURL_InNewWindow"; &ExecMacros_Frames;
}


}

PoliciesManager_BuildMenu{
setmenu(Document,macro,"Policies Manager page","PoliciesManager(page)",-1);
setmenu(LinkOpenExternal,macro,"Policies Manager Link","PoliciesManager(link)",-1);
setmenu("&Tools",inline,PoliciesManager,-1);
setmenu(PoliciesManager,macro,"Policies Manager","PoliciesManager()");
}

$OnInit=$OnInit."PoliciesManager_BuildMenu;";
# --------------------------------------
$macroModules=$macroModules."PoliciesManager;";