(function() {

	var iconsList, iconsHelp, helpHidden;

	function _initIconHelp() {
		if(document.getElementById('gu-iconhelp')){
			iconsList = document.getElementById('gu-icons');
			iconsHelp = document.getElementById('gu-iconhelp');
			iconsHelp.style.display = 'none';
			helpHidden = true;
			
			var newLi = document.createElement('li');
			newLi.id = 'gu-geticonhelp';
			var newA = document.createElement('a');
			newA.innerHTML = 'What does this mean?';
			newA.onmouseover = function() { this.style.borderBottomStyle = 'solid'; };
			newA.onmouseout = function() { this.style.borderBottomStyle = 'dotted'; };
			newLi.appendChild(newA);
			newLi.onclick = function() {
				if(helpHidden) {
					iconsHelp.style.display = 'block';
					helpHidden = false;
				} else {
					iconsHelp.style.display = 'none';
					helpHidden = true;
				}
				return false;
			};
			iconsList.appendChild(newLi);
		}
	}

	if(window.addEventListener) { window.addEventListener('load', _initIconHelp, false); }
	else if(window.attachEvent) { window.attachEvent('onload', _initIconHelp); }
	else { window.onload = _initIconHelp; }
})();