jQuery(document).ready(function(){
	jQuery("#navi ul ul").each(function(){
		tmp_width = jQuery(this).width();
		jQuery(this).find('ul').css({left: tmp_width+'px'});
	});
	jQuery("#navi ul li").each(function(){
		jQuery(this).hover(
			function(){
				jQuery(this).children('ul').show();
			},
			function(){
				jQuery(this).children('ul').hide();
			}
		);
	});
});

function show_navi(element){
	jQuery(this).next('ul').addClass('show');
}

function hide_navi(element){
	jQuery(element).next('ul').removeClass('show');
}
