/**
 * @name main.js
 * @fileOverview
 * @version 1.1
 * @description
 * <p>(c) FOURDIGIT Inc. Licensed <a href="http://ja.wikipedia.org/wiki/GNU_General_Public_License">GNU General Public License</a>.</p>
 */

//他ライブラリと共存する場合、下の一行コメントアウト解除($無効化)
//jQuery.noConflict();

/**
 * config
 */
(function($){
	$(function() {
	//bodyのクラスにブラウザ情報を追加
		$.addClassUA();
	//easyOverのターゲット設定
		$("img.ahover, .ahoverArea img").easyOver();
	//IE5,6にてPNG有効化
		$.autoEnablePNG();
  //HTML5タグ有効化
  	$.enableHTML5();
	//ポップアップリンクに置換
		$(".commonPop").easyPop();
	//アンカーリンクをスムージング
		$("a[href^=#]").smoothScroll();

	  $("#ArticleMainEnd .EndTitle a img, #hNav ul > li a img").easyOver();


	  $("#ArticleMainEnd .endBox").each(function(){
	  	$(this).find('.list > li:last-child').addClass('last');
  	});

	  $("#ArticleMainEnd .endBox .list > li").each(function(){
	    $(this).hover(
	    	function(){ $(this).addClass('hover'); },
	    	function(){ $(this).removeClass('hover'); }
	    );
	  });
		
		$('.PostShareLink').socialShare({mixiKey:'0764ab627fb2fb6b1458b6a6bf15a8f524e86811'});
	});
})(jQuery);
