c_styles={};c_menus={}; // do not remove this line

var SMto, SMdiv;
function Show_Task_Bar() {
	SMdiv = document.getElementById('task_bar');
	SMdiv.style.visibility='visible';
	SMdiv.style.display='';
}
function Open_Smart_Menu() {
	clearTimeout(SMto);
	SMdiv = document.getElementById('smart_menu');
	SMdiv.style.visibility='visible';
	SMdiv.style.display='';
}
function Close_Smart_Menu() {
	SMto = setTimeout("Hide_Smart_Menu()",100);
}
function Hide_Smart_Menu() {
	SMdiv.style.visibility='hidden';
	SMdiv.style.display='none';
}
function setZoom(img, dir, width, height, margin, zIndex, delay) {
  setTimeout(function() {
	if (img.dir==dir) {
	  img.style.width=width;
	  img.style.height=height;
	  img.style.margin=margin;
	  img.style.zIndex=zIndex;
	  img.parentNode.parentNode.style.zIndex=zIndex;
	}
  }, delay);
}

function larger(img, width, height) {
  img.dir='rtl';
  now=parseInt(img.style.zIndex);
  for (i=now+1; i<=10; i++) {
	w=(width*(10+i))/20+'px';
	h=(height*(10+i))/20+'px';
	m=(-i)+'px 0 0 '+(-width*i/40)+'px';
	setZoom(img, 'rtl', w, h, m, i, 20*(i-now));
  }
}

function smaller(img, width, height) {
  img.dir='ltr';
  now=parseInt(img.style.zIndex);
  for (i=now-1; i>=0; i--) {
	w=(width*(10+i))/20+'px';
	h=(height*(10+i))/20+'px';
	m=(-i)+'px 0 0 '+(-width*i/40)+'px';
	setZoom(img, 'ltr', w, h, m, i, 20*(now-i));
  }
}
/******************************************************
	(1) GLOBAL SETTINGS
*******************************************************/

c_hideTimeout=500; // 1000==1 second
c_subShowTimeout=250;
c_keepHighlighted=true;
c_findCURRENT=false; // find the item linking to the current page and apply it the CURRENT style class
c_findCURRENTTree=true;
c_overlapControlsInIE=true;
c_rightToLeft=false; // if the menu text should have "rtl" direction (e.g. Hebrew, Arabic)

/******************************************************
	(2) MENU STYLES (CSS CLASSES)
*******************************************************/

c_imagesPath="/images/"; // path to the directory containing the menu images

c_styles['tbMM']=[ // MainMenu (the shorter the class name the better)
[
// MENU BOX STYLE
0,		// BorderWidth
'solid',	// BorderStyle (CSS valid values except 'none')
'#FF0000',	// BorderColor ('color')
0,		// Padding
'#CBCBEF',	// Background ('color','transparent','[image_source]')
'',		// IEfilter (only transition filters work well - not static filters)
''		// Custom additional CSS for the menu box (valid CSS)
],[
// MENU ITEMS STYLE
0,		// BorderWidth
'solid',	// BorderStyle (CSS valid values except 'none')
'solid',	// OVER BorderStyle
'#FF0000',	// BorderColor ('color')
'#FF0000',	// OVER BorderColor
0,		// Padding
'transparent',	// Background ('color','transparent','[image_source]')
'#CBCBEF',	// OVER Background
'#252455',	// Color
'#000000',	// OVER Color
'12px',		// FontSize (values in CSS valid units - %,em,ex,px,pt)
'verdana,arial,helvetica,sans-serif',	// FontFamily
'bold',		// FontWeight (CSS valid values - 'bold','normal','bolder','lighter','100',...,'900')
'none',		// TextDecoration (CSS valid values - 'none','underline','overline','line-through')
'none',		// OVER TextDecoration
'left',		// TextAlign ('left','center','right','justify')
0,		// ItemsSeparatorSize
'solid',	// ItemsSeparatorStyle (border-style valid values)
'#FF0000',	// ItemsSeparatorColor ('color','transparent')
10,		// ItemsSeparatorSpacing
false,			// UseSubMenuImage (true,false)
'[h_arrow.gif]',	// SubMenuImageSource ('[image_source]')
'[h_arrow_over.gif]',	// OverSubMenuImageSource
7,			// SubMenuImageWidth
4,			// SubMenuImageHeight
'10',			// SubMenuImageVAlign ('pixels from item top','middle')
'solid',		// VISITED BorderStyle
'#FF0000',		// VISITED BorderColor
'transparent',		// VISITED Background
'#252455',		// VISITED Color
'none',			// VISITED TextDecoration
'[h_arrow.gif]',	// VISITED SubMenuImageSource
'solid',		// CURRENT BorderStyle
'#FF0000',		// CURRENT BorderColor
'#CBCBEF',		// CURRENT Background
'#252455',		// CURRENT Color
'none',			// CURRENT TextDecoration
'[h_arrow.gif]',	// CURRENT SubMenuImageSource
'text-shadow: #333333 2px 2px 2px;',		// Custom additional CSS for the items (valid CSS)
'',		// OVER Custom additional CSS for the items (valid CSS)
'',		// CURRENT Custom additional CSS for the items (valid CSS)
'text-shadow: #333333 2px 2px 2px;'		// VISITED Custom additional CSS for the items (valid CSS)
]];

c_styles['smMM']=[ // MainMenu (the shorter the class name the better)
[
// MENU BOX STYLE
0,		// BorderWidth
'solid',	// BorderStyle (CSS valid values except 'none')
'#8F90C4',	// BorderColor ('color')
4,		// Padding
'transparent',	// Background ('color','transparent','[image_source]')
'',		// IEfilter (only transition filters work well - not static filters)
''		// Custom additional CSS for the menu box (valid CSS)
],[
// MENU ITEMS STYLE
0,		// BorderWidth
'solid',	// BorderStyle (CSS valid values except 'none')
'solid',	// OVER BorderStyle
'#FF0000',	// BorderColor ('color')
'#FF0000',	// OVER BorderColor
4,		// Padding
'transparent',	// Background ('color','transparent','[image_source]')
'#2157D5',	// OVER Background
'#000000',	// Color
'#FFFFFF',	// OVER Color
'14px',		// FontSize (values in CSS valid units - %,em,ex,px,pt)
'verdana,arial,helvetica,sans-serif',	// FontFamily
'bold',		// FontWeight (CSS valid values - 'bold','normal','bolder','lighter','100',...,'900')
'none',		// TextDecoration (CSS valid values - 'none','underline','overline','line-through')
'none',		// OVER TextDecoration
'left',		// TextAlign ('left','center','right','justify')
0,		// ItemsSeparatorSize
'solid',	// ItemsSeparatorStyle (border-style valid values)
'#CBCBEF',	// ItemsSeparatorColor ('color','transparent')
10,		// ItemsSeparatorSpacing
false,			// UseSubMenuImage (true,false)
'[h_arrow.gif]',	// SubMenuImageSource ('[image_source]')
'[h_arrow_over.gif]',	// OverSubMenuImageSource
7,			// SubMenuImageWidth
4,			// SubMenuImageHeight
'10',			// SubMenuImageVAlign ('pixels from item top','middle')
'solid',		// VISITED BorderStyle
'#FF0000',		// VISITED BorderColor
'transparent',		// VISITED Background
'#000000',		// VISITED Color
'none',			// VISITED TextDecoration
'[h_arrow.gif]',	// VISITED SubMenuImageSource
'solid',		// CURRENT BorderStyle
'#FF0000',		// CURRENT BorderColor
'#2157D5',		// CURRENT Background
'#FFFFFF',		// CURRENT Color
'none',			// CURRENT TextDecoration
'[h_arrow.gif]',	// CURRENT SubMenuImageSource
'text-shadow: #333333 2px 2px 2px;',		// Custom additional CSS for the items (valid CSS)
'',		// OVER Custom additional CSS for the items (valid CSS)
'',		// CURRENT Custom additional CSS for the items (valid CSS)
'text-shadow: #333333 2px 2px 2px;'		// VISITED Custom additional CSS for the items (valid CSS)
]];

c_styles['tbSM']=[ // SubMenus
[
// MENU BOX STYLE
0,		// BorderWidth
'solid',	// BorderStyle (CSS valid values except 'none')
'#FF0000',	// BorderColor ('color')
4,		// Padding
'#2157D5',	// Background ('color','transparent','[image_source]')
'',		// IEfilter (only transition filters work well - not static filters)
''		// Custom additional CSS for the menu box (valid CSS)
],[
// MENU ITEMS STYLE
2,		// BorderWidth
'solid',	// BorderStyle (CSS valid values except 'none')
'solid',	// OVER BorderStyle
'#2157D5',	// BorderColor ('color')
'#4F96FF',	// OVER BorderColor
0,		// Padding
'#2157D5',	// Background ('color','transparent','[image_source]')
'#4F96FF',	// OVER Background
'#CCCCCC',	// Color
'#FFFF00',	// OVER Color
'12px',		// FontSize (values in CSS valid units - %,em,ex,px,pt)
'verdana,arial,helvetica,sans-serif',	// FontFamily
'bold',	// FontWeight (CSS valid values - 'bold','normal','bolder','lighter','100',...,'900')
'none',		// TextDecoration (CSS valid values - 'none','underline','overline','line-through')
'none',		// OVER TextDecoration
'left',		// TextAlign ('left','center','right','justify')
0,		// ItemsSeparatorSize
'solid',	// ItemsSeparatorStyle (border-style valid values)
'#FF0000',	// ItemsSeparatorColor ('color','transparent')
0,		// ItemsSeparatorSpacing
false,			// UseSubMenuImage (true,false)
'[IE-Task-Bar-Icon.gif]',	// SubMenuImageSource ('[image_source]')
'[IE-Task-Bar-Icon.gif]',	// OverSubMenuImageSource
7,			// SubMenuImageWidth
7,			// SubMenuImageHeight
'7',			// SubMenuImageVAlign ('pixels from item top','middle')
'solid',		// VISITED BorderStyle
'#2157D5',		// VISITED BorderColor
'#2157D5',		// VISITED Background
'#CCCCCC',		// VISITED Color
'none',			// VISITED TextDecoration
'[IE-Task-Bar-Icon.gif]',	// VISITED SubMenuImageSource
'solid',		// CURRENT BorderStyle
'#4F96FF',		// CURRENT BorderColor
'#4F96FF',		// CURRENT Background
'#FFFF00',		// CURRENT Color
'none',			// CURRENT TextDecoration
'[IE-Task-Bar-Icon.gif]',	// CURRENT SubMenuImageSource
'text-shadow: #333333 2px 2px 2px;',		// Custom additional CSS for the items (valid CSS)
'',		// OVER Custom additional CSS for the items (valid CSS)
'',		// CURRENT Custom additional CSS for the items (valid CSS)
'text-shadow: #333333 2px 2px 2px;'		// VISITED Custom additional CSS for the items (valid CSS)
]];

/******************************************************
	(3) MENU TREE FEATURES
*******************************************************/

c_menus['taskbarMenu']=[ // the UL element with id="Menu1"
[
// MAIN-MENU FEATURES
'horizontal',	// ItemsArrangement ('vertical','horizontal')
'absolute',	// Position ('relative','absolute','fixed')
'0px',		// X Position (values in CSS valid units- px,em,ex)
'1px',		// Y Position (values in CSS valid units- px,em,ex)
false,		// RightToLeft display of the sub menus
true,		// BottomToTop display of the sub menus
0,		// X SubMenuOffset (pixels)
0,		// Y SubMenuOffset
'159px',		// Width (values in CSS valid units - px,em,ex) (matters for main menu with 'vertical' ItemsArrangement only)
'tbMM',		// CSS Class (one of the defined in section 2)
false		// Open sub-menus onclick (default is onmouseover)
],[
// SUB-MENUS FEATURES
5,		// X SubMenuOffset (pixels)
1,		// Y SubMenuOffset
'auto',		// Width ('auto',values in CSS valid units - px,em,ex)
'100',		// MinWidth ('pixels') (matters/useful if Width is set 'auto')
'500',		// MaxWidth ('pixels') (matters/useful if Width is set 'auto')
'tbSM',		// CSS Class (one of the defined in section 2)
false		// Open sub-menus onclick (default is onmouseover)
]];

c_menus['rightSmartMenu']=[ // the UL element with id="Menu1"
[
// MAIN-MENU FEATURES
'vertical',	// ItemsArrangement ('vertical','horizontal')
'relative',	// Position ('relative','absolute','fixed')
'240px',		// X Position (values in CSS valid units- px,em,ex)
'0px',		// Y Position (values in CSS valid units- px,em,ex)
false,		// RightToLeft display of the sub menus
true,		// BottomToTop display of the sub menus
0,		// X SubMenuOffset (pixels)
0,		// Y SubMenuOffset
'238px',		// Width (values in CSS valid units - px,em,ex) (matters for main menu with 'vertical' ItemsArrangement only)
'smMM',		// CSS Class (one of the defined in section 2)
false		// Open sub-menus onclick (default is onmouseover)
],[
// SUB-MENUS FEATURES
5,		// X SubMenuOffset (pixels)
1,		// Y SubMenuOffset
'auto',		// Width ('auto',values in CSS valid units - px,em,ex)
'100',		// MinWidth ('pixels') (matters/useful if Width is set 'auto')
'500',		// MaxWidth ('pixels') (matters/useful if Width is set 'auto')
'tbSM',		// CSS Class (one of the defined in section 2)
false		// Open sub-menus onclick (default is onmouseover)
]];

c_menus['leftSmartMenu']=[ // the UL element with id="Menu1"
[
// MAIN-MENU FEATURES
'vertical',	// ItemsArrangement ('vertical','horizontal')
'relative',	// Position ('relative','absolute','fixed')
'0px',		// X Position (values in CSS valid units- px,em,ex)
'0px',		// Y Position (values in CSS valid units- px,em,ex)
false,		// RightToLeft display of the sub menus
true,		// BottomToTop display of the sub menus
0,		// X SubMenuOffset (pixels)
0,		// Y SubMenuOffset
'238px',		// Width (values in CSS valid units - px,em,ex) (matters for main menu with 'vertical' ItemsArrangement only)
'smMM',		// CSS Class (one of the defined in section 2)
false		// Open sub-menus onclick (default is onmouseover)
],[
// SUB-MENUS FEATURES
5,		// X SubMenuOffset (pixels)
1,		// Y SubMenuOffset
'auto',		// Width ('auto',values in CSS valid units - px,em,ex)
'100',		// MinWidth ('pixels') (matters/useful if Width is set 'auto')
'500',		// MaxWidth ('pixels') (matters/useful if Width is set 'auto')
'tbSM',		// CSS Class (one of the defined in section 2)
false		// Open sub-menus onclick (default is onmouseover)
]];