
var cmThemeCMSBase = './menu/ThemeCMS/';

// the follow block allows user to re-define theme base directory
// before it is loaded.
try
{
	if (myThemeCMSBase)
	{
		cmThemeCMSBase = myThemeCMSBase;
	}
}
catch (e)
{
}

var cmThemeCMS =
{
	prefix:	'ThemeCMS',
  	// 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: '',
  	// HTML code to the right of the folder item
  	mainFolderRight: '',
	// HTML code to the left of the regular item
	mainItemLeft: '',
	// HTML code to the right of the regular item
	mainItemRight: '',

	// sub menu display attributes
	// HTML code to the left of the folder item
	folderLeft: '<img alt="" src="' + cmThemeCMSBase + 'folder.gif">',
	// HTML code to the right of the folder item
	folderRight: '<img alt="" src="' + cmThemeCMSBase + 'arrow.gif" align="top">&nbsp;',
	// HTML code to the left of the regular item
	itemLeft: '<img alt="" src="' + cmThemeCMSBase + 'link.gif">',
	// HTML code to the right of the regular item
	itemRight: '',
	// cell spacing for main menu
	mainSpacing: 0,
	// cell spacing for sub menus
	subSpacing: 0,
	// auto dispear time for submenus in milli-seconds
	delay: 100,

	subMenuHeader: '<div class="ThemeCMSSubMenuShadow"></div><div class="ThemeCMSSubMenuBorder">',
	subMenuFooter: '</div>',

	// adjust sub menu positions
	offsetSubAdjust:	[-4, -3]
	// rest use default settins
};

// horizontal split, used only in sub menus
var cmThemeCMSHSplit = [_cmNoClick, '<td colspan="3" class="ThemeCMSMenuSplit"><div class="ThemeCMSMenuSplit"></div></td>'];
// horizontal split, used only in main menu
var cmThemeCMSMainHSplit = [_cmNoClick, '<td colspan="3" class="ThemeCMSMenuSplit"><div class="ThemeCMSMenuSplit"></div></td>'];
// vertical split, used only in main menu
var cmThemeCMSMainVSplit = [_cmNoClick, '<div class="ThemeCMSMenuVSplit">|</div>'];

/* IE can't do negative margin on tables */
/*@cc_on
	cmThemeCMS.subMenuHeader = '<div class="ThemeCMSSubMenuShadow" style="background-color: #7f7f7f;filter: alpha(opacity=50);"></div><div class="ThemeCMSSubMenuBorder">';
@*/

