$oldDir = getcwd();
// SiteBar PHP files must be available on this server,
// we change temporarily to the installation directory.
chdir("sitebar");
// Inject direct and indirect classes
require_once('./inc/writers/sitebar_emb.inc.php');
// Create the writer object.
$writer = new SB_Writer_sitebar_emb();
// Do we want another skin?
SB_Skin::set("SiteBarXP");
// We change both the absolute and the relative URL,
// we may run on a different subdomain or use an alias.
SB_Page::absBaseUrl('http://localhost/sitebar/');
SB_Page::relBaseUrl('http://localhost/sitebar/');
// Restore pwd, if you want to load some other files
chdir($oldDir);
?>