
// directory of where all the images are
var _cmNoClick = ""; //new Object ();

var cmThemePortecoBase = dirMenuTheme;

// the follow block allows user to re-define theme base directory
// before it is loaded.
/*try
{
  if (myThemePortecoBase)
	{
		cmThemePortecoBase = myThemePortecoBase;
	}
}
catch (e)
{
}
*/
var cmThemePorteco =
{
	  prefix:    'ThemePorteco',
		// 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

		// 0, HTML code to the left of the folder item
    folderLeft: '<img alt="" src="' + cmThemePortecoBase + 'spacer.gif">',
		// 1, HTML code to the right of the folder item
    folderRight: '<img alt="" src="' + cmThemePortecoBase + 'arrow.gif">',
		// 2, HTML code to the left of the regular item
    itemLeft: '<img alt="" src="' + cmThemePortecoBase + 'spacer.gif">',
		// 3, HTML code to the right of the regular item
    itemRight: '<img alt="" src="' + cmThemePortecoBase + 'blank.gif">',
		// 4, cell spacing for main menu
		mainSpacing: 0,
		// 5, cell spacing for sub menus
		subSpacing: 0,

		// Below are optional settings
		// If not set, use the default
		// auto disappear time for submenus in milli-seconds
		delay:			500,
		// 1st layer sub menu starting index
		zIndexStart:	1000,
		// z-index incremental step for subsequent layers
		zIndexInc:		5,

		// sub menu header appears before the sub menu table
		subMenuHeader:	null,
		// sub menu header appears after the sub menu table
		subMenuFooter:	null,

		// act on click to open sub menu
		// not yet implemented
		// 0 : use default behavior
		// 1 : hover open in all cases
		// 2 : click on main, hover on sub
		// 3 : click open in all cases (illegal as of 1.5)
		clickOpen:		1,

		// special effects on open/closing a sub menu
		effect:			null,

		// submenu location adjustments
		//
		// offsetHMainAdjust for adjusting the first submenu
		// 		of a 'hbr' menu.
		// offsetVMainAdjust for adjusting the first submenu
		//		of a 'vbr' menu.
		// offsetSubAdjust for subsequent level of submenus
		//
		// 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 cmThemePortecoHSplit     = [_cmNoClick, '<td class="ThemePortecoMenuItemLeft"></td><td colspan="2"><div class="ThemePortecoMenuSplit"></div></td>'];
var cmThemePortecoMainHSplit = [_cmNoClick, '<td class="ThemePortecoMainItemLeft"></td><td colspan="2"><div class="ThemePortecoMenuSplit"></div></td>'];
var cmThemePortecoMainVSplit = [_cmNoClick, '<img alt="" src="' + cmThemePortecoBase + 'v_sep.jpg">'];

