/* Tigra Menu items structure */
var MENU_ITEMS = [
	['Home', '../index.html', {'sb':'Homepage'},
		['About Us', '../AboutUs.html', {'sb':'About Us'}],
		['Real People', '../realPeople.html', {'sb':'Real People'}]
	],
	['Counselling Service', 'Counselling.html', {'sb':'Counselling Service'},
		['Counselling Information', 'Counselling.php', {'sb':'Counselling Information'}]
	],
	['Mentoring Service', 'mentoringService.html', {'sb':'Mentoring Service'},
		['Mentor Volunteer', "javascript:wopen('Forms/MentorVolunteer.php','popup',700,640)", {'tw':'_blank','sb':'Mentor Volunteer Form'}]
	],
	['Employment Assisted Programme', 'eap.html', {'sb':'Employment Assisted Programme'}],
	['Training', 'new_training.html', {'sb':'Training'},
		['Training Request', "javascript:wopen('Forms/TrainingForm.html','popup',700,640)", {'tw':'_blank','sb':'Training Request Form'}],
        ['Training Providers', 'trainingProviders.html', {'sb':'Training Providers Page'}]
	],
	['Members Area', 'index.php', {'sb':'Members Area'}
	]
];

function wopen(url, name, w, h){
  // Fudge factors for window decoration space.
  // In my tests these work well on all platforms & browsers.
  w += 32;
  h += 96;
  wleft = (screen.width - w) / 2;
  wtop = (screen.height - h) / 2;
  var win = window.open(url, name, 'width=' + w + ', height=' + h + ', ' + 'location=no, menubar=no, ' + 'status=no, toolbar=no, scrollbars=yes, resizable=no');
  win.resizeTo(w, h);
  win.moveTo(wleft, wtop);
  win.focus();
}

function wrap(caption) {
	if (caption == CURRENT_ITEM)
		return '<font color="#5c743d">' + caption + '</font>';
	else
		return '<font color="#D5EDB3">' + caption + '</font>';
}
