/*
 * jquery.default.js
 * basic configuration for all pages by jQuery
 *
 * author: Takeda Hirozumi(thirozumi@gmail.com)
 * date: 2008-04-22
 * rev: 0.1
 */

$(function(){
	
	// enable animation on top with 1000ms delay
	
	var t = setTimeout(function(){
			$('#top').animate({opacity:'1'},1000);
			clearTimeout(t);
		}, 1000);
	
	
	// control display for menu description
	
	$('#mn #menu li li').append('<span class="close">close</span>');
	
	$('#mn #menu ul:first').children('li').children('h2').children('a').click(function(){
		$(this).parent().parent().children('ul').children('li').animate({
			opacity:'0.9',
			width:'480px',
			height:'230px',
			padding:'10px',
			top:'5px',
			left:'5px'
		},300);
	});
	
	$('#mn #menu li li .close').click(function(){
		$(this).parent('li').animate({
			opacity:'0',
			width:'0',
			height:'0',
			padding:'0',
			top:'0',
			left:'0'
		},300);
	});


});