/*
 * ThemeGray by Ian Reyes and Heng Yuan
 */

var stupid = navigator.userAgent.indexOf('MSIE 7.0') > -1 || navigator.userAgent.indexOf('MSIE 6.0') > -1;

var cmThemeGray =
{
	prefix:	'ThemeGray',
  	// 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. 17
  	//mainFolderLeft: '<!--<img src="/p1x1.gif" width="14" height="10" alt=""/>-->',
  	mainFolderLeft: '<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td><img src="/p1x1.gif" width="' + (stupid ? '17' : '14') + '" height="1" alt=""/></td><td>',
  	// HTML code to the right of the folder item
  	//mainFolderRight: '<!--<img src="/p1x1.gif" width="14" height="10" alt=""/>-->',
  	mainFolderRight: '</td><td><img src="/p1x1.gif" width="' + (stupid ? '10' : '14') + '" height="1" alt=""/></td></tr></table>',
	// HTML code to the left of the regular item
	//mainItemLeft: '<!--<img src="/p1x1.gif" width="14" height="10" alt=""/>-->',
	mainItemLeft: '<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td><img src="/p1x1.gif" width="' + (stupid ? '17' : '14') + '" height="1" alt=""/></td><td>',
	// HTML code to the right of the regular item
	//mainItemRight: '<!--<img src="/p1x1.gif" width="14" height="10" alt=""/>-->',
	mainItemRight: '</td><td><img src="/p1x1.gif" width="' + (stupid ? '10' : '14') + '" height="1" alt=""/></td></tr></table>',

	// sub menu display attributes

	// HTML code to the left of the folder item
	folderLeft: '>',
	// HTML code to the right of the folder item
	folderRight: '&lt;',
	// HTML code to the left of the regular item
	itemLeft: '&nbsp;',
	// HTML code to the right of the regular item
	itemRight: '&nbsp;',
	// cell spacing for main menu
	mainSpacing: 0,
	// cell spacing for sub menus
	subSpacing: 0,
	// auto dispear time for submenus in milli-seconds
	delay: 200

	// rest use default settings
};

// for sub menu horizontal split
var cmThemeGrayHSplit = [_cmNoClick, '<td colspan="3" class="ThemeGrayMenuSplit"><div class="ThemeGrayMenuSplit"></div></td>'];
// for vertical main menu horizontal split
var cmThemeGrayMainHSplit = [_cmNoClick, '<td colspan="3" class="ThemeGrayMenuSplit"><div class="ThemeGrayMenuSplit"></div></td>'];
// for horizontal main menu vertical split
var cmThemeGrayMainVSplit = [_cmNoClick, '<td width="23" style="background:url(/images/mainmenu-separator.gif) no-repeat; background-position:center center;"><img src="pics/p1x1" width="1" height="1"></td>'];
