function initSuckerFishTechniques() {
	initLinkMenus();
	initHints();
}

function hideLinkMenu() {
	document.onclick = null;
	this.removeClassName('over');
}

var OptionalDropDownMenu = Class.create();
OptionalDropDownMenu.prototype = {
  initialize: function(menu) {
    this.menu   = $(menu);
	this.menu.addClassName('active');
	this.menu.down('ul').show();
	this.bOffClick = this.offClick.bindAsEventListener(this);
	
	Event.observe(document, 'click', this.bOffClick);
  },
  
  offClick: function() {
	if(this.initialized) {
		this.menu.down('ul').hide();
		this.menu.removeClassName('active');
		Event.stopObserving(document, 'click', this.bOffClick);
	} else {
		this.initialized = true;
	}
  }
  
}

function initLinkMenus() {
	var i, j;
	$$('ul.linkmenu > li').each(function(el) {
		//el.down('a').title = 'Click down arrow for more options...';
		el.observe('click', function(evt) {
			new OptionalDropDownMenu(el);
		});
	});
	
	return;
	
	if (document.all&&document.getElementById) {
		$$("ul.cssmenu").each(function(navRoot) {
			for (j=0; j<navRoot.childNodes.length; j++) {
				var node = $(navRoot.childNodes[j]);
				if (node.nodeName=="LI") {
					var hash = randomString();
					
					node.observe('click',function(evt) {
							var el = Event.element(evt);
							alert(el.classNames().inspect());
							
							el.addClassName('over');
							
							
							Event.observe(document, 'click', hideLinkMenu.bindAsEventListener(el));
						}
					);

				}
			}
		});
	}
}

function initHints() {
	return;
	var i;
	if (document.all&&document.getElementById) {
		$$(".hintcontainer").each(function(navRoot) {
			var hash = randomString();
			addEvent(navRoot, "mouseover", function() {
				addCssClass("hintcontainer-over",this);
			}, hash);
			
			addEvent(navRoot, "mouseout", function() {
				removeCssClass("hintcontainer-over",this);
			}, hash);
		});
	}
}

