/*
 * TOPページのインフォメーションを出力する
 * 出力先はid属性が"information_box"
 *
 */
function showTopInformation(){
	new Ajax.Request("/ajax_top_info_list.do", {
		method : "post",
		onComplete :function(httpObj){
			var target = document.getElementById("information_box");
			target.innerHTML = httpObj.responseText;
		}
	});
}

/*
 * インフォメーション一覧を出力する
 * 出力先はid属性が"information_list_box"
 *
 * pageNo	ページ番号
 */
function showInformationList(pageNo){
	new Ajax.Request("/ajax_info_list.do", {
		method : "post",
		parameters : "page_no=" + pageNo,
		onComplete :function(httpObj){
			var target = document.getElementById("information_list_box");
			target.innerHTML = httpObj.responseText;
			
			var allCount = document.getElementById("all_count").value;
			var displayCount = document.getElementById("display_page_num").value;
			var displayPageNum = document.getElementById("display_count").value;
			
			showPaging('page_box',parseInt(pageNo),parseInt(allCount),parseInt(displayPageNum),parseInt(displayCount));
		}
	});
}

/*
 * 右ナビゲーションを出力する
 * 出力先はid属性が"sidebar"
 *
 *
 */
function showRightBar(){
	new Ajax.Request("/rightbar.html", {
		method : "post",
		onComplete :function(httpObj){
			var target = document.getElementById("sidebar");
			target.innerHTML = httpObj.responseText;
		}
	});
}

/*
 * クラシス運営サイトを出力する
 * 出力先はid属性が"direction_site_box"
 *
 */
function showDirectionSite(){
	new Ajax.Request("/direction_site.html", {
		method : "post",
		onComplete :function(httpObj){
			var target = document.getElementById("direction_site_box");
			target.innerHTML = httpObj.responseText;
		}
	});
}

/*
 * オンラインブックマークを出力する
 * 出力先はid属性が"online_bookmark_box"
 *
 */
function showOnlineBookmark(){
	new Ajax.Request("/online_bookmark.html", {
		method : "post",
		onComplete :function(httpObj){
			var target = document.getElementById("online_bookmark_box");
			target.innerHTML = httpObj.responseText;
		}
	});
}

/*
* 個人情報の取り扱いについて出力する
* 出力先はid属性が"privacy_box"
*
*/
function showPrivacy(){
	new Ajax.Request("/privacy.html", {
		method : "post",
		onComplete :function(httpObj){
			var target = document.getElementById("privacy_box");
			target.innerHTML = httpObj.responseText;
		}
	});
}

