/**
 * ROOM用クリックログ
 */

var clickLogUrl = "http://profile.ameba.jp/click_count/roomlog.html";//ログ送信先URLを定義


/* クリックログ送信[ROOM用] */
function getClickLogArgs(aObj){

	if(aObj.tagName != "A"){
	//aタグに他のタグが入れ子になっているとここに入ります。
		if(aObj.tagName=="IMG"){
			//aタグの中のimgタグ
			if(aObj.parentNode.id == "cntHeadLogo"){
				return "?title=" + encodeURIComponent("$ヘッダーロゴ[画像](アメーババー)$");

			} else if(aObj.parentNode.id == "imgPassClick"){
				return "?title=" + encodeURIComponent("$サムネイル[画像]$");

			} else if(aObj.parentNode.id == "cntFootLogo"){
				return "?title=" + encodeURIComponent("$フッターロゴ[画像]$");

			}

			//aタグの中のimgタグ・その他
			return "?ImgSrc=" + encodeURIComponent(aObj.src) + "&alt=" + encodeURIComponent(aObj.alt);

		} else if(aObj.parentNode.tagName=="A"){
			aObj = aObj.parentNode;
		} else {
			return "";
		}
	}

	var argstr = "";

	//リンクタイトル
	if(aObj.id == "cntHeadHelp"){
		argstr += "?title=" + encodeURIComponent("$ヘルプ(アメーババー)$");

	} else if(aObj.id == "cntHeadTop"){
		argstr += "?title=" + encodeURIComponent("$アメーバトップ(アメーババー)$");

	} else if(aObj.id == "cntRoomStart"){
		argstr += "?title=" + encodeURIComponent("$アメーバルームを作ろう！(アメーババー)$");

	} else if(aObj.id == "cntHeadList"){
		argstr += "?title=" + encodeURIComponent("$アーティスト一覧へ(アメーババー)$");

	} else if(aObj.id == "cntRoomEdit"){
		argstr += "?title=" + encodeURIComponent("$ルームを編集する$");

	} else if(aObj.id == "cntNaviName"){
		argstr += "?title=" + encodeURIComponent("$ニックネーム(ヘッダ)$");

	} else if(aObj.id == "cntNaviTop"){
		argstr += "?title=" + encodeURIComponent("$トップ(ヘッダ)$");

	} else if(aObj.id == "cntNaviPhoto"){
		argstr += "?title=" + encodeURIComponent("$フォト(ヘッダ)$");

	} else if(aObj.id == "cntNaviBlog"){
		argstr += "?title=" + encodeURIComponent("$ブログ(ヘッダ)$");

	} else if(aObj.id == "cntNaviMusic"){
		argstr += "?title=" + encodeURIComponent("$MUSIC(ヘッダ)$");

	} else if(aObj.id == "leavePeta"){
		argstr += "?title=" + encodeURIComponent("$ペタを残す$");

	} else if(aObj.id == "sendMessage"){
		argstr += "?title=" + encodeURIComponent("$メッセージを送る$");

	} else if(aObj.id == "cntMyJobMenu"){
		argstr += "?title=" + encodeURIComponent("$職業（メニュー）$");

	} else if(aObj.id == "cntMySchoolMenu"){
		argstr += "?title=" + encodeURIComponent("$出身校（メニュー）$");

	} else if(aObj.id == "cntMyPlaceMenu"){
		argstr += "?title=" + encodeURIComponent("$出没地（メニュー）$");

	} else if(aObj.id == "cntMyFortune"){
		argstr += "?title=" + encodeURIComponent("$精霊占い$");

	} else if(aObj.id == "cntMyJob"){
		argstr += "?title=" + encodeURIComponent("$職業$");

	} else if(aObj.id == "cntMySchool"){
		argstr += "?title=" + encodeURIComponent("$出身校$");

	} else if(aObj.id == "cntMyPlace"){
		argstr += "?title=" + encodeURIComponent("$出没地$");

	} else if(aObj.id == "cntMyPage"){
		argstr += "?title=" + encodeURIComponent("$ホームページ$");

	} else if(aObj.id == "cntQa"){
		argstr += "?title=" + encodeURIComponent("$一問一答もっと見る$");

	} else if(aObj.id == "cntQaBest"){
		argstr += "?title=" + encodeURIComponent("$BEST3もっと見る$");

	} else if(aObj.id == "cntQaBest1"){
		argstr += "?title=" + encodeURIComponent("$BEST3(1位)$");

	} else if(aObj.id == "cntQaBest2"){
		argstr += "?title=" + encodeURIComponent("$BEST3(2位)$");

	} else if(aObj.id == "cntQaBest3"){
		argstr += "?title=" + encodeURIComponent("$BEST3(3位)$");

	} else if(aObj.id == "cntSideSlide"){
		argstr += "?title=" + encodeURIComponent("$スライドショーもっと見る$");

	} else if(aObj.id == "cntSideBlog"){
		argstr += "?title=" + encodeURIComponent("$ブログタイトル$");

	} else if(aObj.id == "cntSideBlogMore"){
		argstr += "?title=" + encodeURIComponent("$ブログもっと見る$");

	} else if(aObj.className.indexOf("cntSideUpdate") != -1){
		argstr += "?title=" + encodeURIComponent("$ブログ更新情報$");

	} else if(aObj.id == "cntSideBBSMore"){
		argstr += "?title=" + encodeURIComponent("$BBSもっと見る$");

	} else if(aObj.id == "cntSideBBS"){
		argstr += "?title=" + encodeURIComponent("$BBSへ投稿$");

	} else if(aObj.id == "cntFootTown"){
		argstr += "?title=" + encodeURIComponent("$同じ出身地の人を探してみよう！$");

	} else {
		//そのた
		argstr += "?title=" + encodeURIComponent(aObj.innerHTML);
	}
/*
	//aタグid属性があれば追加
	if(aObj.id){
		argstr += "&aId=" + encodeURIComponent(aObj.id);
	}

	//aタグclass属性があれば追加
	if(aObj.className){
		argstr += "&aClass=" + encodeURIComponent(aObj.className);
	}

	//aタグtitle属性があれば追加
	if(aObj.title){
		argstr += "&aTitle=" + encodeURIComponent(aObj.title);
	}
*/
	return argstr;
}

document.write('<script type="text/javascript" src="http://stat.ameba.jp/common_style/js/ameba/common/clicklog.js"></script>');
