// JavaScript Document
$(function(){
		   var top_a=$('#top_menu>.top_menu>a');
		   for(i=0;i<top_a.length;i++){
		     top_a.eq(i).bind("mouseover",{index:i},top_menu);
			 top_a.eq(i).bind("mouseout",{index:i},top_menu_out);
		     }
		   var top_s_div=$('#top_s_m_div>div');
		   for(i=0;i<top_s_div.length;i++){
			 top_s_div.eq(i).bind("mouseover",{index:i},top_menu);
			 top_s_div.eq(i).bind("mouseout",{index:i},top_menu_out);
		   }
		   })
var type=true;
function top_menu(event){
	var top_a=$('#top_menu>.top_menu>a');
	top_a.removeClass("a_now");
	top_a.eq(event.data.index).addClass("a_now");
	
	var top_a_div=$('#top_menu>.top_menu>a>div');
	top_a_div.removeClass("div_now");
	top_a_div.eq(event.data.index).addClass("div_now");
	
	var top_s_div=$('#top_s_m_div>div');
	top_s_div.eq(event.data.index).show();
}
function top_menu_out(event){
    var top_a=$('#top_menu>.top_menu>a');
	top_a.removeClass("a_now");	
	
	var top_a_div=$('#top_menu>.top_menu>a>div');
	top_a_div.removeClass("div_now");
	
	var top_s_div=$('#top_s_m_div>div');
	top_s_div.eq(event.data.index).hide();
}
