
// directory of where all the images are
var cmglobalBase = '/cal/themes/global/';

// the follow block allows user to re-define theme base directory
// before it is loaded.
try
{
	if (myThemeGlobalBase)
	{
		cmglobalBase = myThemeGlobalBase;
	}
}
catch (e)
{
}

var cmglobal =
{
  	// 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: '<img src="' + cmglobalBase + 'navslash.jpg" alt="" />',
	// HTML code to the left of the regular item
	mainItemLeft: '&#160;',
	// HTML code to the right of the regular item
	mainItemRight: '<img src="' + cmglobalBase + 'navslash.jpg" alt="" />',

	// 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: '&#160;',
	// 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: 2,
	horOffsetLeft: -23,
	verOffsetTop: -1,
	verOffsetLeft: -5
};

// for horizontal menu split
var cmglobalHSplit = [_cmNoClick, '<td class="globalMenuItemLeft"></td><td colspan="2"><div class="globalMenuSplit"></div></td>'];
var cmglobalMainHSplit = [_cmNoClick, '<td class="globalMainItemLeft"></td><td colspan="2"><div class="globalMenuSplit"></div></td>'];
var cmglobalMainVSplit = [_cmNoClick, '|'];

