
var cmThemeIsetBase = '/menus/ThemeIset/';

// the follow block allows user to re-define theme base directory
// before it is loaded.
try
{
	if (myThemeIsetBase)
	{
		cmThemeIsetBase = myThemeIsetBase;
	}
}
catch (e)
{
}

var cmThemeIset =
{
	prefix:	'ThemeIset',
  	// 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="' + cmThemeIsetBase + 'folder.gif">',
	// HTML code to the right of the folder item
	folderRight: '<img alt="" src="' + cmThemeIsetBase + 'arrow.gif" align="top">&nbsp;',
	// HTML code to the left of the regular item
	itemLeft: '<img alt="" src="' + cmThemeIsetBase + '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="ThemeIsetSubMenuShadow"></div><div class="ThemeIsetSubMenuBorder">',
	subMenuFooter: '</div>',

	// adjust sub menu positions
	offsetSubAdjust:	[-4, -3]
	// rest use default settins
};

// horizontal split, used only in sub menus
var cmThemeIsetHSplit = [_cmNoClick, '<td colspan="3" class="ThemeIsetMenuSplit"><div class="ThemeIsetMenuSplit"></div></td>'];
// horizontal split, used only in main menu
var cmThemeIsetMainHSplit = [_cmNoClick, '<td colspan="3" class="ThemeIsetMenuSplit"><div class="ThemeIsetMenuSplit"></div></td>'];
// vertical split, used only in main menu
var cmThemeIsetMainVSplit = [_cmNoClick, '<div class="ThemeIsetMenuVSplit">|</div>'];

/* Iset can't do negative margin on tables */
/*@cc_on
	cmThemeIset.subMenuHeader = '<div class="ThemeIsetSubMenuShadow" style="background-color: #7f7f7f;filter: alpha(opacity=50);"></div><div class="ThemeIsetSubMenuBorder">';
@*/

