/**
 * @name main.js
 * @fileOverview
 * @version 1.0
 * @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();
(function($){
	var config = function () {
	//bodyのクラスにブラウザ情報を追加
		$.addClassUA();
	//easyOverのターゲット設定
		$("img.ahover, .ahoverArea img").easyOver();
	//IE5,6にてPNG有効化 (pngfixの読み込みが必要)
		$("img[src$=png],p.png").enablePNG();
	//Flash
		//$("object, embed").enableFlash();
	//ポップアップリンクに置換
		$(".commonPop").easyPop();
	//他ドメインリンク時にpageTracker有効化
		//$("a,area").blankLogToGoogle();
	//アンカーリンクをスムージング
		$("a[href^=#], area[href^=#]").smoothScroll();
	//対象の要素をスクロールに追従するようにする
		//$("#fixBox").fixPosition("stopperID","normal");
	}
	//onload
	$(function() {
		config();
		switch (jQuery("body").attr("id")) {
			case "pageID":
				//eachPageFunction
			break;
			case "pageID":
				//eachPageFunction
			break;
		}
	/* each page function */
	if(jQuery("#kurashi")[0]) {
	var len = $("div.questionList").size()%2;
	if(len == 0){
    	var counter = 1;
    	$('#kurashi div.questionList').each(function(e){
        	if(counter){
            	this.className = "questionList02";
            	counter = 0;
        	} else {
            	this.className = "questionList01";
            	counter = 1;            
        	}
    	})
    } else {
    	var counter = 1;
    	$('#kurashi div.questionList').each(function(e){
        	if(counter){
            	this.className = "questionList01";
            	counter = 0;
        	} else {
            	this.className = "questionList02";
            	counter = 1;            
        	}
    	})
    }
};
	});
})(jQuery);

// showContent
function showContent(objId, status) {
	if ( status == 'show') {
		$("div#"+objId).slideDown();
	}
	if ( status == 'hide') {
		$("div#"+objId).slideUp();
	}
}

