
// TODO: convert to plain js or jquery
var DropDownMenu = Class.create();
DropDownMenu.prototype = {
	initialize: function(menuElement) {
		menuElement.childElements().each(function(node){
			var submenu = $A(node.getElementsByTagName("ul")).first();
			if(submenu != null){
				node.onmouseover = node.onmouseout = function(){
					Element.toggleClassName('sfhover');
					node.toggleClassName('hovering');
				}
			}
		});
	}
};

jQuery.noConflict();
jQuery(document).ready(function() {
			   alert('shit!');
		       });

/*
document.observe('dom:loaded', function() {
		     var menu = new DropDownMenu($('mainnav'));
	RED5.Newsticker({ container: 'hpevents' }).start();
	RED5.Newsticker({ container: 'hpnews', interval: 6 }).start();
});
*/
