Offline_Toggle{
id(ID_OFFLINE);
pluginmsg(toolbars,"CheckButton","Offline Button,macros(Offline_Toggle),".(pluginmsgex(toolbars,"IsButtonChecked","Offline Button,macros(Offline_Toggle)",INT)?0:1));
}

_Offline_SyncButton{
pluginmsg(toolbars,"CheckButton","Offline Button,macros(Offline_Toggle),".(getpref(BOOL,"kmeleon.general.offline")?1:0));
}
$OnActivateWindow=$kToolbars?$OnActivateWindow."_Offline_SyncButton;":$OnActivateWindow;
$OnLoad=$kToolbars?$OnLoad."_Offline_SyncButton;":$OnLoad;

_Offline_BuildToolbar{
pluginmsg(toolbars,"AddToolbar","Offline Button,16,16","");
pluginmsg(toolbars,"AddButton", "Offline Button,OfflineButton,macros(Offline_Toggle),,Work Offline,16,16,offline.bmp[0][<offline.bmp[0]>],offline.bmp[0]>]","");
}
$OnSetup=$kToolbars?$OnSetup."_Offline_BuildToolbar;":$OnSetup;