
// directory of where all the images are
var xwThemeBase = 'javascript/xwTheme/';

var xwTheme =
{
	prefix:	'xwTheme',
  	// 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: '<img alt="" src="' + xwThemeBase + 'spacer.gif" alt=""/>',
  	// HTML code to the right of the folder item
  	mainFolderRight: '<img alt="" src="' + xwThemeBase + 'blank.gif" alt=""/>',
	// HTML code to the left of the regular item
	mainItemLeft: '<img alt="" src="' + xwThemeBase + 'spacer.gif" alt=""/>',
	// HTML code to the right of the regular item
	mainItemRight: '<img alt="" src="' + xwThemeBase + 'blank.gif" alt=""/>',

	// sub menu display attributes

	// 0, HTML code to the left of the folder item
	folderLeft: '<img alt="" src="' + xwThemeBase + 'spacer.gif" alt=""/>',
	// 1, HTML code to the right of the folder item
	folderRight: '<img alt="" src="' + xwThemeBase + 'arrow.gif" alt=""/>',
	// 2, HTML code to the left of the regular item
	itemLeft: '<img alt="" src="' + xwThemeBase + 'spacer.gif" alt=""/>',
	// 3, HTML code to the right of the regular item
	itemRight: '<img alt="" src="' + xwThemeBase + 'blank.gif" alt=""/>',
	// 4, cell spacing for main menu
	mainSpacing: 3,
	// 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
};

// for horizontal menu split
var cmxwThemeHSplit = [_cmNoClick, '<td class="xwThemeMenuItemLeft"></td><td colspan="2"><div class="xwThemeMenuSplit"></div></td>'];
var cmxwThemeMainHSplit = [_cmNoClick, '<td class="xwThemeMainItemLeft"></td><td colspan="2"><div class="xwThemeMenuSplit"></div></td>'];
var cmxwThemeMainVSplit = [_cmNoClick, '|'];
