
// directory of where all the images are
var cmRCMSBase = TemplateDirectory + 'images/';

// the follow block allows user to re-define theme base directory
// before it is loaded.
try
{
	if (myRCMSBase)
	{
		cmRCMSBase = myRCMSBase;
	}
}
catch (e)
{
}

var cmRCMS =
{
	direction:	'vb' + (Lang_Dir == 'ltr' ? 'r' : 'l'),
	prefix:	'RCMS',
  	// 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: '&nbsp;',
  	// HTML code to the right of the folder item
  	mainFolderRight: '<img alt="" src="' + cmRCMSBase + 'arrow'+ (Lang_Dir == 'ltr' ? 'right' : 'left') +'.gif">',
	// HTML code to the left of the regular item
	mainItemLeft: '&nbsp;',
	// HTML code to the right of the regular item
	mainItemRight: '&nbsp;',

	// sub menu display attributes

	// 0, HTML code to the left of the folder item
	folderLeft: '<img alt="" src="' + cmRCMSBase + '"spacer.gif">',
	// 1, HTML code to the right of the folder item
	folderRight: '<img alt="" src="' + cmRCMSBase + 'arrow'+ (Lang_Dir == 'ltr' ? 'right' : 'left') +'.gif">',
	// 2, HTML code to the left of the regular item
	itemLeft: '<img alt="" src="' + cmRCMSBase + 'spacer.gif">',
	// 3, HTML code to the right of the regular item
	itemRight: '<img alt="" src="' + cmRCMSBase + 'blank.gif">',
	// 4, cell spacing for main menu
	mainSpacing: 0,
	// 5, cell spacing for sub menus
	subSpacing: 0,
	// move 1st lvl submenu for horizontal menus up a bit to avoid double border
	offsetHMainAdjust:	[0, -1],
	offsetVMainAdjust:	[-1, 0],
	// offset according to Opera, which is correct.
	offsetSubAdjust:	[1, 0]
	// rest use default settings

	,Item: '<img alt="" src="' + cmRCMSBase + 'menu_items.gif">'
	,Cat: '<img alt="" src="' + cmRCMSBase + 'menu_subfolder.gif">'
	,iCat: '<img alt="" src="' + cmRCMSBase + 'menu_subitem.gif">'
	,iHome: '<img alt="" src="' + cmRCMSBase + 'menu_home.gif">'
	,iSearch: '<img alt="" src="' + cmRCMSBase + 'menu_search.gif">'
	,iUser: '<img alt="" src="' + cmRCMSBase + 'menu_user.gif">'
	,iAbout: '<img alt="" src="' + cmRCMSBase + 'menu_about.gif">'
	,iContact: '<img alt="" src="' + cmRCMSBase + 'menu_contact.gif">'

};

// for horizontal menu split
var cmRCMSHSplit = [_cmNoClick, '<td class="RCMSMenuItemLeft"></td><td colspan="2"><div class="RCMSMenuSplit"></div></td>'];
var cmRCMSMainHSplit = [_cmNoClick, '<td class="RCMSMainItemLeft"></td><td colspan="2"><div class="RCMSMenuSplit"></div></td>'];
var cmRCMSMainVSplit = [_cmNoClick, '|'];
