$(document).ready(function(){
       // detail open
       $(".name a").bind("click",$.show_detail);

       // location.hash
       if( m = (/([0-9]{6})/.exec(location.hash)||[])[1]||null){
               $.show_detail(m);
       }
});
$.extend({
       show_detail: function(id){
		var today = new Date();
        if(typeof(this)=="function"){
            get_file = "../item/"+id+".html?"+today.getTime();                 
        }
        else if(typeof(this) == "object"){
            get_file = "../item/"+$(this).attr("href").substr(1)+".html?"+today.getTime();       
        } 
               $.post(get_file, function(data){
                       $("#contents").prepend("<div id='detail' style='display:none'>"+data+"</div>");
                       $("#detail").fadeIn();
                     
                       // detail close
                       $(".close a").bind("click",function(){
                               $("#detail").fadeOut("normal",function(){
                                       $("#detail").remove();
                                       return false;
                               });
                       });


               });
       },
	   assort_incenses: {}
});

