// Left Menu -- Intl
// MENU_ITEMS_intl_left

BLANK_IMAGE="../images/b.gif";

var STYLE = {
	border:1,			// item's border width, pixels; zero means "none"
	borders:[0,0,0,1],
	shadow:0,			// item's shadow size, pixels; zero means "none"
	color:{
		border:"#EEEEEE",	// color of the item border, if any
		shadow:"#EEEEEE",	// color of the item shadow, if any
		bgON:"#FFFFFF",		// background color for the items
		bgOVER:"#FFFFFF"	// background color for the item which is under mouse right now
	},
	css:{
		ON:"clsCMOnLeft",		// CSS class for items
		OVER:"clsCMOverLeft"	// CSS class  for item which is under mouse
	}
};

var HIGHLIGHTED = {
	border:1,
	borders:[0,0,0,1],
	shadow:0,
	color:{
		border:"#EEEEEE",
		shadow:"#EEEEEE",
		bgON:"#FFFFFF",
		bgOVER:"#FFFFFF"
	},
	css:{
		ON:"clsCMHighlightedOnLeft",
		OVER:"clsCMHighlightedOverLeft"
	}
};

var HIGHLIGHTED_PREFIX = '<img src="../images/pointer_on.gif" width="9" height="15" align="absmiddle" />&nbsp;&nbsp;';
var HIGHLIGHTED_PREFIX_OFF = '<img src="../images/pointer_off.gif" width="9" height="15" align="absmiddle" />&nbsp;&nbsp;'; // Added 9/13
var HIGHLIGHTED_SUFFIX = '';
var HIGHLIGHTED_SUFFIX_OFF = ''; //Added 9/13


function highlightItem(items) {
	for (var i = 1; i < items.length; i++)
		if (items[i]) {
			if (!items[i].format)
				items[i].format = {};

			items[i].format.style = STYLE;

			if (items[i].url && location.href.indexOf(items[i].url) >= 0) {
				items[i].format.style = HIGHLIGHTED;
				items[i].code = HIGHLIGHTED_PREFIX + items[i].code + HIGHLIGHTED_SUFFIX;
				items[i].url = none(); //Added 9/13
				}else{											//Added 9/13
				items[i].format.style = STYLE;		//Added 9/13
				items[i].code = HIGHLIGHTED_PREFIX_OFF + items[i].code + HIGHLIGHTED_SUFFIX_OFF;	//Added 9/13
			}
			
			if (items[i].sub)
				items[i].sub = highlightItem(items[i].sub);
		}	

	return items;
}

var MENU_ITEMS_intl_left = 
[
	{pos:"relative", itemoff:[25,0], leveloff:[21,0], style:STYLE, size:[22,138]},
	{code:"WIRC Services", url:"../wi/index.html",
		sub:[]
	},
	{code:"TIC Services", url:"../tic/index.html",
		sub:[]
	},
	{code:"Publishing Services", url:"../publishing/index.html",
		sub:[]
	},
	{code:"Research & Consulting", url:"../research/index.html",
		sub:[]
	},
	{code:"International Activities", url:"index.html",
		sub:[]
	},
	{code:"About ITCJ", url:"../about/index.html",
	sub:[]
	}
];

MENU_ITEMS_intl_left = highlightItem(MENU_ITEMS_intl_left);