// JavaScript Document
$(document).ready(function(){
    $("div.menu a").hover(function() {
    	
//    	console.log($(this).find("div.inner_menu"));
    	
    	img = $(this).find("img");
    	old_src = img.attr("src");
    	img.attr("src", img.attr("hover"));
    	img.attr("hover", old_src);
    	
    	$(this).find("div.inner_menu").animate({opacity: "show"}, "fast");
    	
//    	var result = $(this).attr("src").replace(/(.*?).jpg/g, "$1_on.jpg");
//    	$(this).attr("src", result);
    	
        //$("div.menu").css("background", "url(img/head_bg_act.gif) repeat-x scroll left top");
    }, function() {
    	
    	img = $(this).find("img");
    	old_src = img.attr("src");
    	img.attr("src", img.attr("hover"));
    	img.attr("hover", old_src);
    	
    	$(this).find("div.inner_menu").animate({opacity: "hide"}, "fast");
    	
    	//img = $(this).find('img');
    	//var result = $(this).attr("src").replace(/(.*?)_on.jpg/g, "$1.jpg");
    	//$(this).attr("src", result);
        //$("div.menu").css("background", "url(img/menu_bg.gif) repeat-x scroll left top");
    });
    
});

