
// directory of where all the images are
var cmadminBase = '/cal/themes/admin/';

// the follow block allows user to re-define theme base directory
// before it is loaded.
try
{
	if (myThemeAdminBase)
	{
		cmadminBase = myThemeAdminBase;
	}
}
catch (e)
{
}

var cmadmin =
{
  	// main menu display attributes
  	//
  	// Note.  When the menu bar is horizontal,
  	// mainFolderLeft and mainFolderRight are
  	// put in <span></span>.  When the menu
  	// bar is vertical, they would be put in
  	// a separate TD cell.

  	// HTML code to the left of the folder item
  	mainFolderLeft: '&#160;',
  	// HTML code to the right of the folder item
  	mainFolderRight: '&#160;',
	// HTML code to the left of the regular item
	mainItemLeft: '&#160;',
	// HTML code to the right of the regular item
	mainItemRight: '&#160;',

	// sub menu display attributes

	// 0, HTML code to the left of the folder item
	folderLeft: '&#160;',
	// 1, HTML code to the right of the folder item
	folderRight: '&#160;',
	// 2, HTML code to the left of the regular item
	itemLeft: '&#160;',
	// 3, HTML code to the right of the regular item
	itemRight: '<img src="' + cmadminBase + 'shim.gif" alt="" class="adminMenuItemRightShim" />',
	// 4, cell spacing for main menu
	mainSpacing: 0,
	// 5, cell spacing for sub menus
	subSpacing: 0,
	// 6, auto dispear time for submenus in milli-seconds
	delay: 500,

	horOffsetTop: 6,
	horOffsetLeft: -5,
	verOffsetTop: -2,
	verOffsetLeft: -9
};

// for horizontal menu split
var cmadminHSplit = [_cmNoClick, '<td class="adminMenuItemLeft"></td><td colspan="2"><div class="adminMenuSplit"></div></td>'];
var cmadminMainHSplit = [_cmNoClick, '<td class="adminMainItemLeft"></td><td colspan="2"><div class="adminMenuSplit"></div></td>'];
var cmadminMainVSplit = [_cmNoClick, '|'];
