function AppDropDown(id) {
	this.id = id;
	
	this.init();
}

var obj = null;

AppDropDown.prototype.checkHover = function() {
	if (obj) {
		obj.find('ul').fadeOut('fast');	
	} //if
}

AppDropDown.prototype.init = function() {
 /* $('#' + this.id + '>li>ul').hide();
    $('#' + this.id + '>li').mouseover(function(){
        // close open sub menus
       // $(this).siblings().find('ul:visible').slideUp(500);
			// open current menu if it's closed
        $(this).find('ul:hidden').slideDown(500);
				
				 $(this).siblings().find('ul:visible').mouseout(function(){
				$(this).slideUp(500);
			});
    })
		*/
	
	$('#' + this.id + ' > li > ul').hide();
	$('#' + this.id + ' > li').hover(function() {
		if (obj) {
			obj.find('ul').slideUp('fast');
			obj = null;
		} //if
		
		$(this).find('ul').slideDown('fast');
	}, function() {
		obj = $(this);
		setTimeout(
			"new AppDropDown().checkHover()",
			400);
	});

}
