function tabInit(selectedIndex) {
	var tabItems				= document.getElementById('menu').getElementsByTagName("a")
	for (var i=0; i<tabItems.length; i++) {
		if (i == selectedIndex) {
			tabItems[i].className	= 'current';
		}
	}
}

jQuery(document).ready(function($) {
	$('div#menu ul > li').hover(function() {
		$('ul:first', this).show();
	},
	function() {
		$('ul:first', this).hide();
	});

	$('div#menu ul li li').hover(function() {
		$('ul:first', this).each(function() {
			$(this).css('top', $(this).parent().position().top );
			$(this).css('left', $(this).parent().position().left + $(this).parent().width() );
			$(this).show();
		});
	},
	function() {
		$('ul:first', this).hide();
	});
});
