// for pull down menu

$(document).ready(function(){
	pullDownMenuFunc.init();
});

var pullDownMenuFunc = {
	url:"/japan/windows/explore/js/menuAssets.js",
	init: function(){
		$.getJSON(this.url,$.proxy(this,"jsonAnalyze"));
	},
	jsonAnalyze: function(json){
		var dl = $('#menu_container').find('dl');
		var css = ["","sizeFeature","sizeExp","sizeBuynow","sizeValue"];
		
		$(json).each(function(i){
			$(json[i].menu).each(function(n){
				$(dl[i]).append('<dd class="'
								+ css[i] + '"><a href="'
								+ json[i].menu[n].path + '">'
								+ json[i].menu[n].texts + '</a></dd>'
				);
			});

			$(dl[i]).hover(function(){
				$(this).find('dd').each(function(){
					$(this).attr('style','display:block');
				});
			},function(){
					$(this).find('dd').each(function(){
					$(this).attr('style','display:none');
				});
			});

		});
	}
};


