/*
Programmer: Darryl Ballard
Date created: 2009-03-10
Last updated: 2009-03-10
Version: 1.0.0

Requires:
	Prototype 1.6
	
Version History:
*/

var GST_List_Item_Hover = {
	class_name_to_use:"hover",
	
	add_class_name:function()
	{
		this.addClassName(GST_List_Item_Hover.class_name_to_use);
	},

	remove_class_name:function()
	{
		this.removeClassName(GST_List_Item_Hover.class_name_to_use);
	},
	
	activate:function()
	{
		var all_list_items = $$("li");
		
		for (var i = 0; i < all_list_items.length; i++) {
			all_list_items[i].observe("mouseover", GST_List_Item_Hover.add_class_name);
			all_list_items[i].observe("mouseout", GST_List_Item_Hover.remove_class_name);
		} // end for(i)
	} // end activate()
};

// Require that Prototype is available
if (typeof Prototype == "undefined") {
	alert("GST List Item Hover requires the Prototype javascript framework.\n\nPlease check that it is included.");
} else {
	document.observe("dom:loaded", GST_List_Item_Hover.activate);
}
