//alert('common.js');

$(function(){

//header要素生成
$("header#body_header").prepend($("<div id='book_cover'></div>"));

//div#content #aside nav ul#n_other 要素生成
$("div#content #content_side nav#nav_other ul").before($("<div id='n_other_title'>関連サイト</div>"));

//div#content .goto_pagetop 要素生成
$("div#content").after($("<div class='goto_pagetop btm'><a href='#body_header'>&#8593; このページのアタマに行く</a></div>"));

//footer要素生成
$("footer#body_footer").wrapInner("<div id='footer_inner'></div>");

//btn要素生成
$("dl.attribute_ dt").wrapInner("<span></span>");

$(".ol_2.month_uranai table th").wrapInner("<span></span>");

//$("#site_id").after($("<time id='site_update'>更新日<span>2011.4.1</span></time>"));

///////////////////
//.doc common
//
$(".doc p").prev(".doc p").css({marginBottom:"5px"});
$(".doc ul li,.doc ol li,.doc dl dd").children("*:last-child").children("li:last-child,dd:last-child").css({border:"none"});

// table偶数行の色を設定
/*
$('.doc table tbody').each(function(){
$(this).find('tr:odd').addClass('even');
});

$('.doc table thead tr:last-child').addClass("btm");
$('.doc table tfoot tr:first-child').addClass("top");
*/

//p.catch
$(".doc p.catch").prepend("<span class=\"icon\">★</sapn>");

//ul.point
$(".doc ul.point li").prepend("<span class=\"icon\">●</sapn>");
/**/

});//end　





//IE6.7 hack
/*
$(function(){

//letterSpacing
var ua = $.browser;
if(ua.msie){
alert("ブラウザはmsieです。");
$("body").css("letterSpacing","1px");
}

});

*/
