/*継承トリックスターJSライブラリ*/
/** -----------090807パスワード変更願い------------ **/
function info_func(){
if(! document.getElementById("induction")) return false;
	document.getElementById("induction").innerHTML='<a href="http://www.trickster.jp/cms/info/info.php?c=1&n=42608020848200908" target="_blank" style="color:red;">【重要】パスワード変更のお願い</a>';
}

try{
 window.addEventListener("load",info_func,false);
}catch(e){
 window.attachEvent("onload",info_func);//IEのみ
}
/** -----------/パスワード変更願い------------ **/


function keepSession () {
	img = new Image ();
	img.src = "/trickster/mp/trick_session_keep.php";
}

function preloadImages () {
	var arg = preloadImages.arguments;
	var doc = document;

	if (!doc.images) return;
	if (!doc.prHolder) doc.prHolder = new Array ();

	var i = 0,
		n = doc.prHolder.length;

	for (i = 0; i < arg.length; i++) {
		doc.prHolder[n] = new Image ();
		doc.prHolder[n++].src = arg[i];
	}

	return;
}

function swapImage (iid, src) {
	var i = 0;
	var doc = document,
		img = doc.getElementById (iid);

	if (!img) return;

	doc.swHolder = new Array ();
	doc.swHolder[i++] = img;

	if (!img.org) img.org = img.src;
	img.src = src;

	return;
}

function restoreImage () {
	var i = 0;
	var ary = document.swHolder, img;

	if (!ary) return;

	for (i = 0; i < ary.length && (img = ary[i]) && img.org; i++) {
		img.src = img.org;
	}

	return;
}

function releaseFrame () {
	if (self != top) top.location.href = self.location.href;
	return;
}

function openSimpleWin (url, name, x, y) {
	window.open (url, name, "width=" + x + ",height=" + y + ",titlebar=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no").focus();
	return;
}

function openSimpleWin02 (url, name, x, y) {
	window.open (url, name, "width=" + x + ",height=" + y + ",titlebar=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0").focus();
	return;
}

function openResizableWin (url, name, x, y) {
	window.open (url, name, "width=" + x + ",height=" + y + ",titlebar=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes").focus();
	return;
}

function setInlineDocs (id, url, w, h) {
	var ifrm = document.getElementById (id);

	ifrm.src          = url;
	ifrm.style.width  = w;
	ifrm.style.height = h;

	return;
}

function check_id (id, code) {
	if (!id) {
		alert ("ID が入力されていません。");
		return;
	}

	var url = '/mp/check_id.php?code=' + code + '&id=' + encodeURI (id);
	modalDialog (url, 320, 190);

	return;
}

function checkMsgLength (msg, limit) {
	// 全半角判定用の文字群
	var hankaku = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ!\"#$%&\'()=~|\\,./;:@[]<>?_+*}`{\n\t ";

	// 変数宣言
	var chr = "";
	var len = msg.length;

	// 全角文字 = 1文字 の環境では全角文字が見つかる度に文字数加算
	if ("あ".length == 1) {
		while (msg != "") {
			chr = msg.substring (0, 1).toUpperCase ();
			msg = msg.substring (1, msg.length);

			if (hankaku.indexOf (chr) < 0) ++len;
		}
	}

	// 文字数チェック
	if (len > limit) {
		window.alert ("メッセージが全角 " + (limit / 2) + "文字（半角 " + limit + "文字）を超えています。　");
		return false;
	}

	return true;
}


function checkBuyPoint (price, point, lid) {
	var res = true;

	if (price > point) {
		res = window.confirm ("アイテムを購入するポイントが足りません。\nポイントをチャージしますか？");

		if (res == true) openCharge ("/trickster/agree_charge.html", 800, 600);
		return false;
	}

	if (window.confirm ("購入しますか？") != true) return false;
	layerVisible (lid);

	return true;
}


function checkBuyPoint_cli (price, point, lid) {
	var res = true;

	if (price > point) {
		res = window.confirm ("アイテムを購入するポイントが足りません。\nポイントをチャージしますか？");

		if (res == true) location.href ("/trickster/mp/itemclient_charge.html");
		return false;
	}

	if (window.confirm ("購入しますか？") != true) return false;
	layerVisible (lid);

	return true;
}


function setPriceLimit (fid, did, price, limit) {
	var frm = document.getElementById (fid);
	var dsp = document.getElementById (did);

	frm.price.value = price;
	frm.limit.value = limit;

	dsp.innerHTML   = price;

	return;
}

function changeTheWorld (fid, wnum) {
	var frm = document.getElementById (fid);

	frm.world.value = wnum;
	frm.from.value  = -1;

	frm.submit ();

	return;
}

function changeTheChar (fid, wnum, cnum) {
	var frm = document.getElementById (fid);

	frm.world.value = wnum;
	frm.from.value  = cnum;

	frm.submit ();

	return;
}

function disableObjects () {
	var arg = disableObjects.arguments;
	var i   = 0;

	for (i = 0; i < arg.length; i++) {
		arg[i].disabled = true;
	}

	return;
}

function shopNewHot (fid, seek) {
	var frm = document.getElementById (fid);

	frm.seek.value = seek;
	frm.submit ();

	return;
}

function shopList (fid, c1, c2, c3, c4, type, seek) {
	var frm = document.getElementById (fid);

	// カテゴリー指定
	frm.c1.value = c1;
	frm.c2.value = c2;
	frm.c3.value = c3;
	frm.c4.value = c4;

	// キャラ・シーク位置指定
	frm.type.value = type;
	frm.seek.value = seek;

	frm.submit ();

	return;
}

// openShop関数用の子ウインドウ判定変数
var openedMyshop = null;

function openShop (fid, code, x, y) {
	// 子ウインドウが既にオープンされている場合は処理しない
	if (openedMyshop && openedMyshop.closed != true) return;

	var frm = document.getElementById (fid);
	var win = frm.target;

	if (!win) win = "MyShop";

	frm.code.value = code;
	openedMyshop = window.open ("about:blank", win, "width=" + x + ",height=" + y + ",titlebar=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no").focus();

	frm.target = win;
	frm.submit ();

	return;
}

function openCharge (url, x, y) {
	window.open (url, "MyCharge", "width=" + x + ",height=" + y + ",titlebar=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no").focus();
	return;
}

function completeCharge () {
	var pwin = window.opener.focus();

	// 親ウインドウが「アイテム購入詳細」で開いている場合のみリロード
	if (pwin && pwin.name == "MyShop" && pwin.closed != true) pwin.location.reload ();
	window.close ();

	return;
}

function layerHidden (lid) {
	var lyr = document.getElementById (lid);
	lyr.style.visibility = "hidden";

	return;
}

function layerVisible (lid) {
	var lyr = document.getElementById (lid);
	lyr.style.visibility = "visible";

	return;
}

function ieCheck () {
	// ブラウザ判定
	var ieName = "Microsoft Internet Explorer";

	if (navigator.appName == ieName) return true
	return false;
}

function modalDialog (url, x, y) {
	// IE判定（modalDialog / ActiveX はIEのみがサポートしているため）
	if (!ieCheck ()) {
		window.alert ("お使いのブラウザはActiveXをサポートしていないため利用できません。\nInternet Explorer で ActiveX サポートを有効にしてご利用下さい。");
		return;
	}

	// モーダルダイアログを表示
	window.open (url, "", "width=" + x + ",height=" + y + ",titlebar=no,status=no,toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no").focus();
	return;
}

function submitOnceByID (sid) {
	var sbm = document.getElementById (sid);

	if (sbm && (sbm.type == "image" || sbm.type == "submit")) sbm.disabled = true;
	return;
}

// 当関数の判定方式は <INPUT type="submit"> のボタンにしか適用できないため、
// <INPUT type="image"> のボタンを使用する場合は submitOnceByID関数を使用すること！
function submitOnceName (frm, name) {
	var sbm = frm.elements[name];

	if (sbm && sbm.type == "submit") sbm.disabled = true;
	return;
}

function submitOnce(form) {
for(i = 0; i < form.elements.length; i++) {
if(form.elements[i].type == "submit")
form.elements[i].disabled = true;
}

function changeInnerHTML (oid, str) {
	var obj = document.getElementById (oid);

	obj.innerHTML = str;
	return;
}
}

function openSimpleWin2 (url, name, x, y) {
	window.open (url, name, "width=" + x + ",height=" + y + ",titlebar=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes").focus();
	return;
}

/*
initialInformationsTabs
インフォメーション情報のタブ切り替え用JS
*/
function initialInformationsTabs(){
if(!document.getElementById) return false;
if(!document.getElementById('informations')) return false;
if(!document.getElementById('informationIframe')) return false;
if(!document.getElementById('eventCampaignIframe')) return false;
if(!document.getElementById('maintenanceIframe')) return false;
if(!document.getElementById('informations_ctrl_btn_11')) return false;
if(!document.getElementById('informations_ctrl_btn_21')) return false;
if(!document.getElementById('informations_ctrl_btn_31')) return false;
if(!document.getElementById('informations_ctrl_btn_12')) return false;
if(!document.getElementById('informations_ctrl_btn_22')) return false;
if(!document.getElementById('informations_ctrl_btn_32')) return false;
if(!document.getElementById('informations_ctrl_btn_13')) return false;
if(!document.getElementById('informations_ctrl_btn_23')) return false;
if(!document.getElementById('informations_ctrl_btn_33')) return false;
var info = document.getElementById('informationIframe');
var evcp = document.getElementById('eventCampaignIframe');
var mt = document.getElementById('maintenanceIframe');
evcp.style.display='none';
mt.style.display='none';
var infoBtn1 = document.getElementById('informations_ctrl_btn_11');
var evcpBtn1 = document.getElementById('informations_ctrl_btn_21');
var mtBtn1 = document.getElementById('informations_ctrl_btn_31');
var infoBtn2 = document.getElementById('informations_ctrl_btn_12');
var evcpBtn2 = document.getElementById('informations_ctrl_btn_22');
var mtBtn2 = document.getElementById('informations_ctrl_btn_32');
var infoBtn3 = document.getElementById('informations_ctrl_btn_13');
var evcpBtn3 = document.getElementById('informations_ctrl_btn_23');
var mtBtn3 = document.getElementById('informations_ctrl_btn_33');
	infoBtn1.onclick = function(){
	evcp.style.display = 'none';
	mt.style.display = 'none';
	info.style.display = 'block';
	return false;
	}
	evcpBtn1.onclick = function(){
	info.style.display = 'none';
	mt.style.display = 'none';
	evcp.style.display = 'block';
	return false;
	}
	mtBtn1.onclick = function(){
	info.style.display = 'none';
	evcp.style.display = 'none';
	mt.style.display = 'block';
	return false;
	}

	infoBtn2.onclick = function(){
	evcp.style.display = 'none';
	mt.style.display = 'none';
	info.style.display = 'block';
	return false;
	}
	evcpBtn2.onclick = function(){
	info.style.display = 'none';
	mt.style.display = 'none';
	evcp.style.display = 'block';
	return false;
	}
	mtBtn2.onclick = function(){
	info.style.display = 'none';
	evcp.style.display = 'none';
	mt.style.display = 'block';
	return false;
	}

	infoBtn3.onclick = function(){
	evcp.style.display = 'none';
	mt.style.display = 'none';
	info.style.display = 'block';
	return false;
	}
	evcpBtn3.onclick = function(){
	info.style.display = 'none';
	mt.style.display = 'none';
	evcp.style.display = 'block';
	return false;
	}
	mtBtn3.onclick = function(){
	info.style.display = 'none';
	evcp.style.display = 'none';
	mt.style.display = 'block';
	return false;
	}
return false;
}
/*
	Standards Compliant Rollover Script
	Author : Daniel Nolan
	http://www.bleedingego.co.uk/webdev.php
*/
function initRollovers() {
	if (!document.getElementById) return
	
	var aPreLoad = new Array();
	var sTempSrc;
	var aImages = document.getElementsByTagName('img');

	for (var i = 0; i < aImages.length; i++) {		
		if (aImages[i].className == 'rollover') {
			var src = aImages[i].getAttribute('src');
			var ftype = src.substring(src.lastIndexOf('.'), src.length);
			var hsrc = src.replace(ftype, '_o'+ftype);

			aImages[i].setAttribute('hsrc', hsrc);
			
			aPreLoad[i] = new Image();
			aPreLoad[i].src = hsrc;
			
			aImages[i].onmouseover = function() {
				sTempSrc = this.getAttribute('src');
				this.setAttribute('src', this.getAttribute('hsrc'));
			}	
			
			aImages[i].onmouseout = function() {
				if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('_o'+ftype, ftype);
				this.setAttribute('src', sTempSrc);
			}
		}
	}
}
/**
 *  author:		Timothy Groves - http://www.brandspankingnew.net
 *	version:	1.3 - 2006-11-02
 *				1.2 - 2006-11-01
 *				1.1 - 2006-09-29
 *				1.0 - 2006-09-25
 *
 *	requires:	nothing
 *
 */
var useBSNns;
if (useBSNns)
{
	if (typeof(bsn) == "undefined")
		bsn = {}
	var _bsn = bsn;
}
else
{
	var _bsn = this;
}
_bsn.Crossfader = function (divs, fadetime, delay )
{	
	this.nAct = -1;
	this.aDivs = divs;
	
	for (var i=0;i<divs.length;i++)
	{
		document.getElementById(divs[i]).style.opacity = 0;
		document.getElementById(divs[i]).style.position = "absolute";
		document.getElementById(divs[i]).style.filter = "alpha(opacity=0)";
		document.getElementById(divs[i]).style.visibility = "hidden";
	}
	
	this.nDur = fadetime;
	this.nDelay = delay;
		
	this._newfade();
}
_bsn.Crossfader.prototype._newfade = function()
{
	if (this.nID1)
		clearInterval(this.nID1);
	
	this.nOldAct = this.nAct;
	this.nAct++;
	if (!this.aDivs[this.nAct])	this.nAct = 0;
	
	if (this.nAct == this.nOldAct)
		return false;
	
	document.getElementById( this.aDivs[this.nAct] ).style.visibility = "visible";
	
	this.nInt = 50;
	this.nTime = 0;
	
	var p=this;
	this.nID2 = setInterval(function() { p._fade() }, this.nInt);
}
_bsn.Crossfader.prototype._fade = function()
{
	this.nTime += this.nInt;
	
	var ieop = Math.round( this._easeInOut(this.nTime, 0, 1, this.nDur) * 100 );
	var op = ieop / 100;
	document.getElementById( this.aDivs[this.nAct] ).style.opacity = op;
	document.getElementById( this.aDivs[this.nAct] ).style.filter = "alpha(opacity="+ieop+")";
	
	if (this.nOldAct > -1)
	{
		document.getElementById( this.aDivs[this.nOldAct] ).style.opacity = 1 - op;
		document.getElementById( this.aDivs[this.nOldAct] ).style.filter = "alpha(opacity="+(100 - ieop)+")";
	}
	
	if (this.nTime == this.nDur)
	{
		clearInterval( this.nID2 );
		
		if (this.nOldAct > -1)
			document.getElementById( this.aDivs[this.nOldAct] ).style.visibility = "hidden";	
		
		var p=this;
		this.nID1 = setInterval(function() { p._newfade() }, this.nDelay);
	}
}
_bsn.Crossfader.prototype._easeInOut = function(t,b,c,d)
{
	return c/2 * (1 - Math.cos(Math.PI*t/d)) + b;
}
function fadingList(){
if (!document.getElementById('cf1')) return false;
var unit1 = new Crossfader( new Array('cf1','cf2','cf3','cf4','cf5'), 1000, 5000 );
//var unit2 = new Crossfader( new Array('cf4','cf5','cf6'), 1000, 5000 );
}
/*--------------------------------------------------------------------------*
 *  
 *  use_alpha JavaScript Library beta6
 *  
 *  MIT-style license. 
 *  
 *  2007 Kazuma Nishihata 
 *  http://www.to-r.net
 *  
 *--------------------------------------------------------------------------*/
function useAlpha(){
try{
	if (typeof document.body.style.maxHeight == "undefined") {//for old ie
		var elements = getElementsByClassName("use_alpha");
		for (var i=0; i<elements.length; i++) {
			var element = elements[i];
			if(element.nodeName=="IMG"){
				var newimg           = document.createElement("b");
				for(var key in element.currentStyle){
					newimg.style[key]=element.currentStyle[key];
				}
				newimg.className     = element.className;
				newimg.style.display = "inline-block";
				newimg.style.width   = element.width;
				newimg.style.height  = element.height;
				newimg.style.float   = element.align;
				newimg.style.filter  = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+element.src+",sizingMethod='scale')";
				element.parentNode.replaceChild(newimg,element);
			}else{
				var anchors = element.getElementsByTagName("a");
				for (var j=0; j<anchors.length; j++) {
					var anchor = anchors[j];
					anchor.style.position="relative";
				}
				var iputs = element.getElementsByTagName("input");
				for (var j=0; j<iputs.length; j++) {
					var iput = iputs[j];
					iput.style.position="relative";
				}
				var iputs = element.getElementsByTagName("textarea");
				for (var j=0; j<iputs.length; j++) {
					var iput = iputs[j];
					iput.style.position="relative";
				}
				var iputs = element.getElementsByTagName("select");
				for (var j=0; j<iputs.length; j++) {
					var iput = iputs[j];
					iput.style.position="relative";
				}
				var  newimg = element.currentStyle.backgroundImage || element.style.backgroundImage;
				newimg.match(/^url[("']+(.*\.png)[)"']+$/i)
				var newimg = RegExp.$1;
				element.style.filter ="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+newimg+",sizingMethod='scale')";
				element.style.background = "none";
			}
		}
	}
}catch(e){}
	function getElementsByClassName(className){
		var i, j, eltClass;
		var objAll = document.getElementsByTagName ? document.getElementsByTagName("*") : document.all;
		var objCN = new Array();
		for (i = 0; i < objAll.length; i++) {
			eltClass = objAll[i].className.split(/\s+/);
			for (j = 0; j < eltClass.length; j++) {
				if (eltClass[j] == className) {
					objCN.push(objAll[i]);
					break;
				}
			}
		}
		return objCN;
	}
}
/*--------------------------------------------------------------------------*
 *  
 *  use_alpha JavaScript Library beta3
 *  
 *  MIT-style license. 
 *  
 *  2007 Kazuma Nishihata 
 *  http://www.webcreativepark.net
 *  
 *--------------------------------------------------------------------------*/
/*new function(){

	if(window.addEventListener){
		window.addEventListener('load',use_alpha,false);
	}else if(window.attachEvent){
		window.attachEvent('onload',use_alpha);
	}
	
	function use_alpha(){
		if (typeof document.body.style.maxHeight == "undefined") {//for old ie
			var elements = getElementsByClassName("use_alpha");
			for (var i=0; i<elements.length; i++) {
				var element = elements[i];
				if(element.nodeName=="IMG"){
					var newimg           = document.createElement("b");
					newimg.id            = element.id;
					newimg.className     = element.className;
					newimg.style.display = "block";
					newimg.style.width   = element.width;
					newimg.style.height  = element.height;
					newimg.style.float   = element.align;
					newimg.style.filter  = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+element.src+",sizingMethod='scale')";
					element.parentNode.replaceChild(newimg,element);
				}else{
					var anchors = element.getElementsByTagName("a");
					for (var j=0; j<anchors.length; j++) {
						var anchor = anchors[j];
						anchor.style.position="relative";
					}
					var  newimg = element.currentStyle.backgroundImage || element.style.backgroundImage;
					newimg.match(/^url[("']+(.*\.png)[)"']+$/i)
					var newimg = RegExp.$1;
					element.style.filter ="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+newimg+",sizingMethod='image')";
					element.style.background = "none";
				}
			}
		}
	}
	
	function getElementsByClassName(className){
		var i, j, eltClass;
		var objAll = document.getElementsByTagName ? document.getElementsByTagName("*") : document.all;
		var objCN = new Array();
		for (i = 0; i < objAll.length; i++) {
			eltClass = objAll[i].className.split(/\s+/);
			for (j = 0; j < eltClass.length; j++) {
				if (eltClass[j] == className) {
					objCN.push(objAll[i]);
					break;
				}
			}
		}
		return objCN;
	}
}*/
/*
グーグルアナリシス振り分けスクリプト
*/
var pageTracker;
function googleAnalytics(){
if(!_gat) return false;
var targetAddress = document.location.protocol;
pageTracker = _gat._getTracker("UA-3355805-7");//総合
pageTracker._setDomainName("none");
pageTracker._setAllowLinker(true);
pageTracker._initData();
pageTracker._trackPageview();
	if ( targetAddress == 'https:' )
	{
		pageTracker = _gat._getTracker("UA-3355805-2");//ssl2.gcrest.com
		pageTracker._setDomainName("none");
		pageTracker._setAllowLinker(true);
		pageTracker._initData();
		pageTracker._trackPageview();
	}
	else
	{
		pageTracker = _gat._getTracker("UA-3355805-1");//www.trickster.jp
		pageTracker._setDomainName("none");
		pageTracker._setAllowLinker(true);
		pageTracker._initData();
		pageTracker._trackPageview();
	}
}
//クエリ＆ページナンバー
function gaTracker_query_func(){
	var strURL=String(decodeURI(document.referrer));
	//alert(strURL)
	if(strURL.indexOf("http://search.yahoo.co")!=-1){
		var query="0";
		var pageNum="0";
		//クエリ内容
		if(strURL.indexOf("p=")!=-1){
			var strQ=strURL.split("p=");
			var first=strURL.search("p=");
			var finish=strQ[1].search("&");
			if(finish==-1){
				finish=strURL.length+2;
			}else{
				finish=(strQ[0].length)+strQ[1].search("&");
			}
			query=(strURL.substring(first,finish+2))
		}
		//クエリ内容
		if(strURL.indexOf("b=")!=-1){
			var strQ=strURL.split("b=");
			var first=strURL.search("b=")+2;
			var finish=strQ[1].search("&");
			if(finish==-1){
				finish=strURL.length-1;
			}else{
				finish=(strQ[0].length+2)+strQ[1].search("&")-1;
			}
			pageNum=(strURL.substring(first,finish))
		}
		//alert('/trackBtn/query/, page='+pageNum+', '+query+', eg=Ya, url='+location.pathname);
		try{
			pageTracker._trackPageview('/trackBtn/query/, page='+pageNum+', '+query+', eg=Yahoo, url='+location.pathname);
		} catch(err){}
	}
	if(strURL.indexOf("http://www.google.co")!=-1){
		var query="0";
		var pageNum="0";
		//クエリ内容
		if(strURL.indexOf("q=")!=-1){
			var strQ=strURL.split("q=");
			var first=strURL.search("q=");
			var finish=strQ[1].search("&");
			if(finish==-1){
				finish=strURL.length+2;
			}else{
				finish=(strQ[0].length)+strQ[1].search("&");
			}
			query=(strURL.substring(first,finish+2));
		}
		//クエリ内容
		if(strURL.indexOf("start=")!=-1){
			var strQ=strURL.split("start=");
			var first=strURL.search("start=")+6;
			var finish=strQ[1].search("&");
			if(finish==-1){
				finish=strURL.length;
			}else{
				finish=(strQ[0].length+6)+strQ[1].search("&");
			}
			pageNum=(strURL.substring(first,finish))
		}
		//alert('/trackBtn/query/, page='+pageNum+', '+query+', eg=Go, url='+location.pathname);
		try{
			pageTracker._trackPageview('/trackBtn/query/, page='+pageNum+', '+query+', eg=Google, url='+location.pathname);
		} catch(err){}
	}
}

/*------------------------------------------------------------
 * stripedtable.js Version 1.0
 * Author : Kyosuke Nakamura
 * http://kyosuke.jp/
 *------------------------------------------------------------
 * 特定classのtable要素内、tr要素に対して交互にクラスをつけます。
 * className : 対象となるテーブルに設定するためのクラス名
 * oddlineClassName : 奇数ラインに付くクラス名
 * evenlineClassName : 偶数ラインに付くクラス名
/*------------------------------------------------------------*/


function setStripedTable(){
	var conf = {
		className : "stripedtable",
		oddlineClassName : "oddline",
		evenlineClassName : "evenline"
	}
	var tr;
	var tables = getElementsByClassName(conf.className);
	for (var i=0, len=tables.length; i<len; i++){
		var table = tables[i];
		var lines = table.getElementsByTagName("tr");

		for (var j=0, llen=lines.length; j<llen; j++){
			tr = lines[j];
			if(j%2==0) {
				tr.className = conf.oddlineClassName;
			} else {
				tr.className = conf.evenlineClassName;
			}
		}
	}
}
function getElementsByClassName(name){
	var elements = new Array();
	var allElements = document.getElementsByTagName('*');
	for (var i=0, len=allElements.length; i<len; i++){
		if (allElements[i].className == name){
			elements.push(allElements[i]);
		}
	}
	return elements;
} 
//v1.0
//Copyright 2006 Adobe Systems, Inc. All rights reserved.
function AC_AddExtension(src, ext)
{
  if (src.indexOf('?') != -1)
    return src.replace(/\?/, ext+'?'); 
  else
    return src + ext;
}

function AC_Generateobj(objAttrs, params, embedAttrs) 
{ 
  var str = '<object ';
  for (var i in objAttrs)
    str += i + '="' + objAttrs[i] + '" ';
  str += '>';
  for (var i in params)
    str += '<param name="' + i + '" value="' + params[i] + '" /> ';
  str += '<embed ';
  for (var i in embedAttrs)
    str += i + '="' + embedAttrs[i] + '" ';
  str += ' ></embed></object>';

  document.write(str);
}

function AC_FL_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
     , "application/x-shockwave-flash"
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_SW_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
     , null
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
  var ret = new Object();
  ret.embedAttrs = new Object();
  ret.params = new Object();
  ret.objAttrs = new Object();
  for (var i=0; i < args.length; i=i+2){
    var currArg = args[i].toLowerCase();    

    switch (currArg){	
      case "classid":
        break;
      case "pluginspage":
        ret.embedAttrs[args[i]] = args[i+1];
        break;
      case "src":
      case "movie":	
        args[i+1] = AC_AddExtension(args[i+1], ext);
        ret.embedAttrs["src"] = args[i+1];
        ret.params[srcParamName] = args[i+1];
        break;
      case "onafterupdate":
      case "onbeforeupdate":
      case "onblur":
      case "oncellchange":
      case "onclick":
      case "ondblClick":
      case "ondrag":
      case "ondragend":
      case "ondragenter":
      case "ondragleave":
      case "ondragover":
      case "ondrop":
      case "onfinish":
      case "onfocus":
      case "onhelp":
      case "onmousedown":
      case "onmouseup":
      case "onmouseover":
      case "onmousemove":
      case "onmouseout":
      case "onkeypress":
      case "onkeydown":
      case "onkeyup":
      case "onload":
      case "onlosecapture":
      case "onpropertychange":
      case "onreadystatechange":
      case "onrowsdelete":
      case "onrowenter":
      case "onrowexit":
      case "onrowsinserted":
      case "onstart":
      case "onscroll":
      case "onbeforeeditfocus":
      case "onactivate":
      case "onbeforedeactivate":
      case "ondeactivate":
      case "type":
      case "codebase":
        ret.objAttrs[args[i]] = args[i+1];
        break;
      case "width":
      case "height":
      case "align":
      case "vspace": 
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "name":
      case "id":
      case "tabindex":
        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
        break;
      default:
        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
    }
  }
  ret.objAttrs["classid"] = classid;
  if (mimeType) ret.embedAttrs["type"] = mimeType;
  return ret;
}
/**
 * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
 *
 * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 */
if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;
/*
グローバルナビサブメニュー
*/
function menuInitializer(){
if(!document.getElementById) return false;
	if ( document.getElementById('globalNavigation_loggedInUtility') )
	{
		if(!document.getElementById('goGameGuide')) return false;
		if(!document.getElementById('goPlayGuide')) return false;
		if(!document.getElementById('goCommunity')) return false;
		if(!document.getElementById('goMyshop')) return false;
		if(!document.getElementById('goGachaDrill')) return false;
		if(!document.getElementById('goSupport')) return false;
		if(!document.getElementById('tricksterGlobalSubNavigationGameGuide')) return false;
		if(!document.getElementById('tricksterGlobalSubNavigationPlayGuide')) return false;
		if(!document.getElementById('tricksterGlobalSubNavigationCommunity')) return false;
		if(!document.getElementById('tricksterGlobalSubNavigationMyshop')) return false;
		if(!document.getElementById('tricksterGlobalSubNavigationGachaDrill')) return false;
		if(!document.getElementById('tricksterGlobalSubNavigationSupport')) return false;
		var m1 = document.getElementById('goGameGuide');
		var m2 = document.getElementById('goPlayGuide');
		var m3 = document.getElementById('goCommunity');
		var m4 = document.getElementById('goMyshop');
		var m5 = document.getElementById('goGachaDrill');
		var m6 = document.getElementById('goSupport');
		var sm1 = document.getElementById('tricksterGlobalSubNavigationGameGuide');
		var sm2 = document.getElementById('tricksterGlobalSubNavigationPlayGuide');
		var sm3 = document.getElementById('tricksterGlobalSubNavigationCommunity');
		var sm4 = document.getElementById('tricksterGlobalSubNavigationMyshop');
		var sm5 = document.getElementById('tricksterGlobalSubNavigationGachaDrill');
		var sm6 = document.getElementById('tricksterGlobalSubNavigationSupport');
		sm1.style.display = 'none';
		sm2.style.display = 'none';
		sm3.style.display = 'none';
		sm4.style.display = 'none';
		sm5.style.display = 'none';
		sm6.style.display = 'none';
		m1.onmouseover = function(){
		if(sm1.style.display=='none'){
		sm1.style.display = 'block';
		}
		else sm1.style.display = 'none';
		sm2.style.display = 'none';
		sm3.style.display = 'none';
		sm4.style.display = 'none';
		sm5.style.display = 'none';
		sm6.style.display = 'none';
		}
		m1.onmouseout = function(){
		sm1.style.display = 'none';
		}
		m2.onmouseover = function(){
		if(sm2.style.display=='none'){
		sm2.style.display = 'block';
		}
		else sm2.style.display = 'none';
		sm1.style.display = 'none';
		sm3.style.display = 'none';
		sm4.style.display = 'none';
		sm5.style.display = 'none';
		sm6.style.display = 'none';
		}
		m2.onmouseout = function(){
		sm2.style.display = 'none';
		}
		m3.onmouseover = function(){
		if(sm3.style.display=='none'){
		sm3.style.display = 'block';
		}
		else sm3.style.display = 'none';
		sm1.style.display = 'none';
		sm2.style.display = 'none';
		sm4.style.display = 'none';
		sm5.style.display = 'none';
		sm6.style.display = 'none';
		}
		m3.onmouseout = function(){
		sm3.style.display = 'none';
		}
		m4.onmouseover = function(){
		if(sm4.style.display=='none'){
		sm4.style.display = 'block';
		}
		else sm4.style.display = 'none';
		sm1.style.display = 'none';
		sm2.style.display = 'none';
		sm3.style.display = 'none';
		sm5.style.display = 'none';
		sm6.style.display = 'none';
		}
		m4.onmouseout = function(){
		sm4.style.display = 'none';
		}
		m5.onmouseover = function(){
		if(sm5.style.display=='none'){
		sm5.style.display = 'block';
		}
		else sm5.style.display = 'none';
		sm1.style.display = 'none';
		sm2.style.display = 'none';
		sm3.style.display = 'none';
		sm4.style.display = 'none';
		sm6.style.display = 'none';
		}
		m5.onmouseout = function(){
		sm5.style.display = 'none';
		}
		m6.onmouseover = function(){
		if(sm6.style.display=='none'){
		sm6.style.display = 'block';
		}
		else sm6.style.display = 'none';
		sm1.style.display = 'none';
		sm2.style.display = 'none';
		sm3.style.display = 'none';
		sm4.style.display = 'none';
		sm5.style.display = 'none';
		}
		m6.onmouseout = function(){
		sm6.style.display = 'none';
		}
		sm1.onmouseover = function(){
		if(sm1.style.display=='none'){
		sm1.style.display = 'block';
		}
		else sm1.style.display = 'none';
		}
		sm1.onmouseout = function(){
		if(sm1.style.display=='none'){
		sm1.style.display = 'block';
		}
		else sm1.style.display = 'none';
		}
		sm2.onmouseover = function(){
		if(sm2.style.display=='none'){
		sm2.style.display = 'block';
		}
		else sm2.style.display = 'none';
		}
		sm2.onmouseout = function(){
		if(sm2.style.display=='none'){
		sm2.style.display = 'block';
		}
		else sm2.style.display = 'none';
		}
		sm3.onmouseover = function(){
		if(sm3.style.display=='none'){
		sm3.style.display = 'block';
		}
		else sm3.style.display = 'none';
		}
		sm3.onmouseout = function(){
		if(sm3.style.display=='none'){
		sm3.style.display = 'block';
		}
		else sm3.style.display = 'none';
		}
		sm4.onmouseover = function(){
		if(sm4.style.display=='none'){
		sm4.style.display = 'block';
		}
		else sm4.style.display = 'none';
		}
		sm4.onmouseout = function(){
		if(sm4.style.display=='none'){
		sm4.style.display = 'block';
		}
		else sm4.style.display = 'none';
		}
		sm5.onmouseover = function(){
		if(sm5.style.display=='none'){
		sm5.style.display = 'block';
		}
		else sm5.style.display = 'none';
		}
		sm5.onmouseout = function(){
		if(sm5.style.display=='none'){
		sm5.style.display = 'block';
		}
		else sm5.style.display = 'none';
		}
		sm6.onmouseover = function(){
		if(sm6.style.display=='none'){
		sm6.style.display = 'block';
		}
		else sm6.style.display = 'none';
		}
		sm6.onmouseout = function(){
		if(sm6.style.display=='none'){
		sm6.style.display = 'block';
		}
		else sm6.style.display = 'none';
		}
	}
	else
	{
		if(!document.getElementById('goGameGuide')) return false;
		if(!document.getElementById('goPlayGuide')) return false;
		if(!document.getElementById('goCommunity')) return false;
		//if(!document.getElementById('goSupport')) return false;
		if(!document.getElementById('tricksterGlobalSubNavigationGameGuide')) return false;
		if(!document.getElementById('tricksterGlobalSubNavigationPlayGuide')) return false;
		if(!document.getElementById('tricksterGlobalSubNavigationCommunity')) return false;
		//if(!document.getElementById('tricksterGlobalSubNavigationSupport')) return false;
		var m1 = document.getElementById('goGameGuide');
		var m2 = document.getElementById('goPlayGuide');
		var m3 = document.getElementById('goCommunity');
		//var m6 = document.getElementById('goSupport');
		var sm1 = document.getElementById('tricksterGlobalSubNavigationGameGuide');
		var sm2 = document.getElementById('tricksterGlobalSubNavigationPlayGuide');
		var sm3 = document.getElementById('tricksterGlobalSubNavigationCommunity');
		//var sm6 = document.getElementById('tricksterGlobalSubNavigationSupport');
		sm1.style.display = 'none';
		sm2.style.display = 'none';
		sm3.style.display = 'none';
		//sm6.style.display = 'none';
		m1.onmouseover = function(){
		if(sm1.style.display=='none'){
		sm1.style.display = 'block';
		}
		else sm1.style.display = 'none';
		sm2.style.display = 'none';
		sm3.style.display = 'none';
		//sm6.style.display = 'none';
		}
		m1.onmouseout = function(){
		sm1.style.display = 'none';
		}
		m2.onmouseover = function(){
		if(sm2.style.display=='none'){
		sm2.style.display = 'block';
		}
		else sm2.style.display = 'none';
		sm1.style.display = 'none';
		sm3.style.display = 'none';
		//sm6.style.display = 'none';
		}
		m2.onmouseout = function(){
		sm2.style.display = 'none';
		}
		m3.onmouseover = function(){
		if(sm3.style.display=='none'){
		sm3.style.display = 'block';
		}
		else sm3.style.display = 'none';
		sm1.style.display = 'none';
		sm2.style.display = 'none';
		//sm6.style.display = 'none';
		}
		m3.onmouseout = function(){
		sm3.style.display = 'none';
		}
		/*m6.onmouseover = function(){
		if(sm6.style.display=='none'){
		sm6.style.display = 'block';
		}
		else sm6.style.display = 'none';
		sm1.style.display = 'none';
		sm2.style.display = 'none';
		sm3.style.display = 'none';
		}
		m6.onmouseout = function(){
		sm6.style.display = 'none';
		}*/
		sm1.onmouseover = function(){
		if(sm1.style.display=='none'){
		sm1.style.display = 'block';
		}
		else sm1.style.display = 'none';
		}
		sm1.onmouseout = function(){
		if(sm1.style.display=='none'){
		sm1.style.display = 'block';
		}
		else sm1.style.display = 'none';
		}
		sm2.onmouseover = function(){
		if(sm2.style.display=='none'){
		sm2.style.display = 'block';
		}
		else sm2.style.display = 'none';
		}
		sm2.onmouseout = function(){
		if(sm2.style.display=='none'){
		sm2.style.display = 'block';
		}
		else sm2.style.display = 'none';
		}
		sm3.onmouseover = function(){
		if(sm3.style.display=='none'){
		sm3.style.display = 'block';
		}
		else sm3.style.display = 'none';
		}
		sm3.onmouseout = function(){
		if(sm3.style.display=='none'){
		sm3.style.display = 'block';
		}
		else sm3.style.display = 'none';
		}
		/*sm6.onmouseover = function(){
		if(sm6.style.display=='none'){
		sm6.style.display = 'block';
		}
		else sm6.style.display = 'none';
		}
		sm6.onmouseout = function(){
		if(sm6.style.display=='none'){
		sm6.style.display = 'block';
		}
		else sm6.style.display = 'none';
		}*/
	}
}
/*====== ▼ サイトマップリンクスクリプト ▼ ======*/
/*
サイトマップリンクスクリプト
例）
http://www.hogehoge.com/hogehoge.html?hogehoge.html
の「?hogehoge.html」部分の「?」以降のURLがあった場合、フレームに指定されているスクリプトに代入する。
ない場合は、デフォルト指定のURLのまま。
*/
function goSpecifyLink(){
	if( !document.getElementById ) return false;
	if ( !document.getElementById('loggedInContentsFrame') ) return false;
	var i = location.search.slice(0,1);
	var targetFrame = document.getElementById('loggedInContentsFrame');
	if (i == '?'){
		var specifyLink = location.search.slice(1);
		targetFrame.src = specifyLink;
	}
	loggedframeHeightStabilizer();
}
/*====== ▲ サイトマップリンクスクリプト ▲ ======*/
/*====== ▼ インラインフレームのサイズを自動調整 ▼ ======*/

function frameHeightStabilizer()
{
if( !top.document.getElementById('IframeContentsFrame') ) return false;//ログイン後iframeがなければ終了
	heightLine();
	SecureDisp_func();
	noSecureDisp_func();
	if(document.getElementById('individualContents'))
	{
		var targetFrame = top.document.getElementById('IframeContentsFrame');
		var app = navigator.appName.charAt(0);
		if(navigator.userAgent.indexOf('Safari') != -1)
		{
		targetFrame.style.height = document.body.scrollHeight + 'px';
		}
		else if (app == "N")
		{
		targetFrame.style.height = document.height + 'px';
		}
		else
		{
		targetFrame.style.height = document.body.scrollHeight  + 'px';
		}
	}
}

function loggedframeHeightStabilizer()
{
	heightLine();
	SecureDisp_func();
	noSecureDisp_func();
	if( !top.document.getElementById('loggedInContentsFrame') ) return false;//ログイン後iframeがなければ終了
	if(document.getElementById('individualContents'))
	{
		var targetFrame = top.document.getElementById('loggedInContentsFrame');
		var app = navigator.appName.charAt(0);
		if(navigator.userAgent.indexOf('Safari') != -1)
		{
		targetFrame.style.height = document.body.scrollHeight + 'px';
		}
		else if (app == "N")
		{
		targetFrame.style.height = document.height + 'px';
		}
		else
		{
		targetFrame.style.height = document.body.scrollHeight  + 'px';
		}
	}
}

/*====== ▲ インラインフレームのサイズを自動調整 ▲ ======*/

/*====== ▼ 左サイドメニューのアクティブ表示制御 ▼ ======*/

function addClass_sideLsub_func(){
	return false;
    var base_host = document.location.host;
	var targetAddress = document.location.protocol;
	if ( targetAddress == 'https:' ) {
		var base_url = 'https://' + base_host;
	} else {
		var base_url = 'http://' + base_host;
	}
    addClass_sideLsubActive_func(base_url);
};

function addClass_sideLsubActive_func(active_url) {
	return false;
    $("#sideL-sub ul li a").each(function(){
        var current_href = $(this).attr("href");
        current_href = active_url + current_href;
        if (document.location.href == current_href) {
			$(this).addClass("current");
        }
    });
}

/*====== ▲ 左サイドメニューのアクティブ表示制御 ▲ ======*/



/*--------------------------------------------------------------------------*
 *  
 *  heightLine JavaScript Library beta4
 *  
 *  MIT-style license. 
 *  
 *  2007 Kazuma Nishihata 
 *  http://www.webcreativepark.net
 *  
 *--------------------------------------------------------------------------*/
//new function(){
	
	function heightLine(){
	
		this.className="heightLine";
		this.parentClassName="heightLineParent"
		reg = new RegExp(this.className+"-([a-zA-Z0-9-_]+)", "i");
		objCN =new Array();
		var objAll = document.getElementsByTagName ? document.getElementsByTagName("*") : document.all;
		for(var i = 0; i < objAll.length; i++) {
			var eltClass = objAll[i].className.split(/\s+/);
			for(var j = 0; j < eltClass.length; j++) {
				if(eltClass[j] == this.className) {
					if(!objCN["main CN"]) objCN["main CN"] = new Array();
					objCN["main CN"].push(objAll[i]);
					break;
				}else if(eltClass[j] == this.parentClassName){
					if(!objCN["parent CN"]) objCN["parent CN"] = new Array();
					objCN["parent CN"].push(objAll[i]);
					break;
				}else if(eltClass[j].match(reg)){
					var OCN = eltClass[j].match(reg)
					if(!objCN[OCN]) objCN[OCN]=new Array();
					objCN[OCN].push(objAll[i]);
					break;
				}
			}
		}
		
		//check font size
		var e = document.createElement("div");
		var s = document.createTextNode("S");
		e.appendChild(s);
		e.style.visibility="hidden"
		e.style.position="absolute"
		e.style.top="0"
		document.body.appendChild(e);
		var defHeight = e.offsetHeight;
		
		changeBoxSize = function(){
			for(var key in objCN){
				if (objCN.hasOwnProperty(key)) {
					//parent type
					if(key == "parent CN"){
						for(var i=0 ; i<objCN[key].length ; i++){
							var max_height=0;
							var CCN = objCN[key][i].childNodes;
							for(var j=0 ; j<CCN.length ; j++){
								if(CCN[j] && CCN[j].nodeType == 1){
									CCN[j].style.height="auto";
									max_height = max_height>CCN[j].offsetHeight?max_height:CCN[j].offsetHeight;
								}
							}
							for(var j=0 ; j<CCN.length ; j++){
								if(CCN[j].style){
									var stylea = CCN[j].currentStyle || document.defaultView.getComputedStyle(CCN[j], '');
									var newheight = max_height;
									if(stylea.paddingTop)newheight -= stylea.paddingTop.replace("px","");
									if(stylea.paddingBottom)newheight -= stylea.paddingBottom.replace("px","");
									if(stylea.borderTopWidth && stylea.borderTopWidth != "medium")newheight-= stylea.borderTopWidth.replace("px","");
									if(stylea.borderBottomWidth && stylea.borderBottomWidth != "medium")newheight-= stylea.borderBottomWidth.replace("px","");
									CCN[j].style.height =newheight+"px";
								}
							}
						}
					}else{
						var max_height=0;
						for(var i=0 ; i<objCN[key].length ; i++){
							objCN[key][i].style.height="auto";
							max_height = max_height>objCN[key][i].offsetHeight?max_height:objCN[key][i].offsetHeight;
						}
						for(var i=0 ; i<objCN[key].length ; i++){
							if(objCN[key][i].style){
								var stylea = objCN[key][i].currentStyle || document.defaultView.getComputedStyle(objCN[key][i], '');
									var newheight = max_height;
									if(stylea.paddingTop)newheight-= stylea.paddingTop.replace("px","");
									if(stylea.paddingBottom)newheight-= stylea.paddingBottom.replace("px","");
									if(stylea.borderTopWidth && stylea.borderTopWidth != "medium")newheight-= stylea.borderTopWidth.replace("px","")
									if(stylea.borderBottomWidth && stylea.borderBottomWidth != "medium")newheight-= stylea.borderBottomWidth.replace("px","");
									objCN[key][i].style.height =newheight+"px";
							}
						}
					}
				}
			}
		}
		
		checkBoxSize = function(){
			if(defHeight != e.offsetHeight){
				changeBoxSize();
				defHeight= e.offsetHeight;
			}
		}
		changeBoxSize();
		setInterval(checkBoxSize,1000)
		window.onresize=changeBoxSize;
	}
	
	function addEvent(elm,listener,fn){
		try{
			elm.addEventListener(listener,fn,false);
		}catch(e){
			elm.attachEvent("on"+listener,fn);
		}
	}
	//addEvent(window,"load",heightLine);
//}
/* Tiny Scrolling - a smooth navigation between internal links and their destinations
by Marco Rosella - http://www.centralscrutinizer.it/en/design/js-php/tiny-scrolling
based on the works by Travis Beckham and Brian McAllister.
                v0.3 - March 27, 2006
function tinyScrollingInit()
{
	tinyScrolling.init();
}
var tinyScrolling = {
	speed : 50,      //set here the scroll speed: when this value increase, the speed decrease. 
	maxStep: 150,	 //set here the "uniform motion" step for long distances
	brakeK: 3,		 //set here the coefficient of slowing down
	hash:null,		
	currentBlock:null,
	requestedY:0,
	init: function() {
			var lnks = document.getElementsByTagName('a');   
			for(var i = 0, lnk; lnk = lnks[i]; i++) {   
				if ((lnk.href && lnk.href.indexOf('#') != -1) &&  ( (lnk.pathname == location.pathname) ||
				('/'+lnk.pathname == location.pathname) ) && (lnk.search == location.search)) {  
				lnk.onclick = tinyScrolling.initScroll;   		
				}   
			}
	},
	getElementYpos: function(el){
			var y = 0;
			while(el.offsetParent){  
				y += el.offsetTop    
				el = el.offsetParent;
			}	return y;
	},		
	getScrollTop: function(){
			if(document.all) return (document.documentElement.scrollTop) ? document.documentElement.scrollTop : document.body.scrollTop;
			else return window.pageYOffset;   
	},	
	getWindowHeight: function(){
			if (window.innerHeight)	return window.innerHeight;
			if(document.documentElement && document.documentElement.clientHeight) return document.documentElement.clientHeight;
	},
	getDocumentHeight: function(){
			if (document.height) return document.height;
			if(document.body.offsetHeight) return document.body.offsetHeight;
	},
	initScroll: function(e){
			var targ;  
			if (!e) var e = window.event;
			if (e.target) targ = e.target;
			else if (e.srcElement) targ = e.srcElement;   
			tinyScrolling.hash = targ.href.substr(targ.href.indexOf('#')+1,targ.href.length); 
			tinyScrolling.currentBlock = document.getElementById(tinyScrolling.hash);   
			if(!tinyScrolling.currentBlock) return;
			tinyScrolling.requestedY = tinyScrolling.getElementYpos(tinyScrolling.currentBlock); 
			tinyScrolling.scroll();  
			return false;
	},
	scroll: function(){
			var top  = tinyScrolling.getScrollTop();
			if(tinyScrolling.requestedY > top) {  
				var endDistance = Math.round((tinyScrolling.getDocumentHeight() - (top + tinyScrolling.getWindowHeight())) / tinyScrolling.brakeK);
				endDistance = Math.min(Math.round((tinyScrolling.requestedY-top)/ tinyScrolling.brakeK), endDistance);
				var offset = Math.max(2, Math.min(endDistance, tinyScrolling.maxStep));
			} else { var offset = - Math.min(Math.abs(Math.round((tinyScrolling.requestedY-top)/ tinyScrolling.brakeK)), tinyScrolling.maxStep);
			} window.scrollTo(0, top + offset);  
			if(Math.abs(top-tinyScrolling.requestedY) <= 1 || tinyScrolling.getScrollTop() == top) {
				window.scrollTo(0, tinyScrolling.requestedY);
				if(!document.all || window.opera) location.hash = tinyScrolling.hash;
				tinyScrolling.hash = null;
			} else 	setTimeout(tinyScrolling.scroll,tinyScrolling.speed);
	}		
}
*/
function parentsCheck()
{
if(!document.getElementById('agree') ) return false;
var pCheck = document.getElementById('agree').checked;
	if( pCheck == true)
	{
	location.href = '/mp/charge_menu.php';
	}
	else{
	alert('未成年者の場合、保護者の同意が必要です。\n保護者の同意が得られない場合は【キャンセル】ボタンをクリックしてください。');
	}
}

function parentsCheckInitializer()
{
if(!document.getElementById('OK') ) return false;
document.getElementById('OK').onclick = parentsCheck;
}








//カウントダウンフラッシュ
function Countdoun_swf(){
var aaa=Math.floor(Math.random()*1000000);
//alert(aaa);
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="290" height="120" id="countdown" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="/trickster/update/individual/thirdAnni/countdown/countdown_29.swf?'+aaa+'" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><param name="wmode" value="transparent"><embed src="/trickster/update/individual/thirdAnni/countdown/countdown_29.swf?'+aaa+'" quality="high" bgcolor="#ffffff" width="290" height="120" name="countdown" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" wmode="transparent" /></object>')
}

//080318 ネットマーブルID移管
function Nmbn_func(){
var nmcount=0;
	function Nmbn_func02(){
		var mailMagId=document.getElementById("mailMagazineIntro");
		if(mailMagId){
			var nmLi=document.createElement("li");
			var nmA=document.createElement("a");
			var nmImg=document.createElement("img");
			nmA.setAttribute("href","/trickster/update/2008/03/18/if01.html");
			nmA.setAttribute("target","_blank");
			nmImg.setAttribute("src","/common/img/banner_netmarble.jpg");
			var nmUl=mailMagId.firstChild;
			nmUl.appendChild(nmLi).appendChild(nmA).appendChild(nmImg);
			return false;
		}else{
			if(nmcount<10){
				setTimeout(Nmbn_func02,500);
				nmcount++;
			}else{
				return false;
			}
		}
	}
	Nmbn_func02();
}
function Nmbn_func_loggedIn(){
var nmcount=0;
	function Nmbn_func_loggedIn02(){
		var mailMagId=document.getElementById("tricksterActivateCtrl");
		if(mailMagId){
			var nmLi=document.createElement("li");
			var nmA=document.createElement("a");
			var nmImg=document.createElement("img");
			nmA.setAttribute("href","/trickster/update/2008/03/18/if01_loggedIn.html");
			nmA.setAttribute("target","_blank");
			nmImg.setAttribute("src","/common/img/banner_netmarble.jpg");
			mailMagId.firstChild.appendChild(nmLi).appendChild(nmA).appendChild(nmImg);
			return false;
		}else{
			if(nmcount<10){
				setTimeout(Nmbn_func_loggedIn02,500);
				nmcount++;
			}else{
				return false;
			}
		}
	}
	Nmbn_func_loggedIn02();
}

/*ログインフォーム処理*/
function loginFormFocus()
{
/*input_id
input_password
name btn_login*/
	if(!document.getElementById('input_id')) return false;
	if(!document.getElementById('input_password')) return false;
	if(!document.getElementsByName('btn_login')[0]) return false;
	document.getElementById('input_id').focus();
	return true;
}
function loginFormChecker()
{
	if(!document.getElementById('input_id')) return false;
	if(!document.getElementById('input_password')) return false;
	if(!document.getElementsByName('btn_login')[0]) return false;
	var ID = document.getElementById('input_id');
	var PASS = document.getElementById('input_password');
	var BTN = document.getElementsByName('btn_login')[0];
	BTN.onclick = function()
		{
			
			if((ID.value=="")&&(PASS.value==""))
			{
				alert('ユーザーIDとパスワードが入力されていません。\n半角英数字4〜10文字で入力して下さい。');
				ID.focus();
				ID.style.border='3px solid red';
				return false;
			}
			if(ID.value=="")
			{
				alert('ユーザーIDが入力されていません。\n半角英数字4〜10文字で入力して下さい。');
				ID.focus();
				ID.style.border='3px solid red';
				return false;
			}
			if(PASS.value=="")
			{
				alert('パスワードが入力されていません。\n半角英数字4〜10文字で入力して下さい。');
				PASS.focus();
				PASS.style.border='3px solid red';
				return false;
			}
			else return true;
		}
}

//loginChecker
function loginChecker_func(){
	if(!document.getElementById('loginChecker')) return false;
	var SSHurl=document.getElementById('loginChecker');
	var httpAddress = location.protocol;
	if(httpAddress=="https:"){
	SSHurl.style.display="block";
	}
}
//loginChecker
function loginBeforeChecker_func(){
	if(!document.getElementById('loginChecker')) return false;
	var SSHurl=document.getElementById('loginChecker');
	var httpAddress = location.protocol;
	if(httpAddress=="https:"){
	SSHurl.style.display="block";
	}
}
//loginChecker02
function SecureDisp_func() {
	if(!document.getElementById('SecureDispCheck')) return false;
	var httpAddress = location.protocol;
	if(httpAddress=="https:"){
		var DivDocment = document.getElementsByTagName('div');
		for (var i = 0; i < DivDocment.length; i++) {		
			if (DivDocment[i].className == "SecureDisp"){
				DivDocment[i].style.display="block";
			}else if (DivDocment[i].className == "noSecureDisp"){
				DivDocment[i].style.display="none";
			}
		}
		
		var SpanDocment = document.getElementsByTagName('span');
		for (var i = 0; i < SpanDocment.length; i++) {		
			if (SpanDocment[i].className == "SecureDisp"){
				SpanDocment[i].style.display="block";
			}else if (SpanDocment[i].className == "noSecureDisp"){
				SpanDocment[i].style.display="none";
			}
		}
	}
	frameHeightStabilizer();
}
//loginChecker02
function noSecureDisp_func() {
	if(!document.getElementById('SecureDispCheck')) return false;
	var httpAddress = location.protocol;
	if(httpAddress=="http:"){
		var DivDocment = document.getElementsByTagName('div');
		for (var i = 0; i < DivDocment.length; i++) {		
			if (DivDocment[i].className == "noSecureDisp"){
				DivDocment[i].style.display="block";
			}
			if (DivDocment[i].className == "SecureDisp"){
				DivDocment[i].style.display="none";
			}
		}
		
		var SpanDocment = document.getElementsByTagName('span');
		//alert(SpanDocment.length)
		for (var i = 0; i < SpanDocment.length; i++) {		
			if (SpanDocment[i].className == "noSecureDisp"){
				SpanDocment[i].style.display="block";
			}else if (SpanDocment[i].className == "SecureDisp"){
				SpanDocment[i].style.display="none";
			}
		}
	}
	frameHeightStabilizer();
}
//loginChecker02
function portalDisp_func() {
	if(!document.getElementById('portalDispCheck')) return false;
	var httpAddress = location.href;
	var DivDocment = document.getElementById('portalDispCheck').getElementsByTagName('div');
	if(httpAddress.indexOf("portal=hangame")!=-1){
		for (var i = 0; i < DivDocment.length; i++) {
			DivDocment[i].style.display="none";
			if (DivDocment[i].className == "hangame"){
				DivDocment[i].style.display="block";
			}
		}
	}
	if(httpAddress.indexOf("portal=atgames")!=-1){
		for (var i = 0; i < DivDocment.length; i++) {
			DivDocment[i].style.display="none";
			if (DivDocment[i].className == "atgames"){
				DivDocment[i].style.display="block";
			}
		}
	}
	if(httpAddress.indexOf("portal=lievo")!=-1){
		for (var i = 0; i < DivDocment.length; i++) {
			DivDocment[i].style.display="none";
			if (DivDocment[i].className == "lievo"){
				DivDocment[i].style.display="block";
			}
		}
	}
	if(httpAddress.indexOf("portal=nologin")!=-1){
		for (var i = 0; i < DivDocment.length; i++) {
			DivDocment[i].style.display="none";
			if (DivDocment[i].className == "nologin"){
				DivDocment[i].style.display="block";
			}
		}
	}
	if(httpAddress.indexOf("portal=afterlogin")!=-1){
		for (var i = 0; i < DivDocment.length; i++) {
			DivDocment[i].style.display="none";
			if (DivDocment[i].className == "afterlogin"){
				DivDocment[i].style.display="block";
			}
		}
	}
	frameHeightStabilizer();
}
function bbs_pankuzu_func(){
	if(!document.getElementById('bbs_pankuzu')) return false;
	var OlDocment = document.getElementById('bbs_pankuzu');
	var replacelink=document.getElementById('bbs_pankuzu').getElementsByTagName('a');
	var httpAddress = location.protocol;
	if(httpAddress=="https:"){
		for (var i = 0; i < replacelink.length; i++) {
			if(replacelink[i].href=="https://ssl2.gcrest.com/index.html"){
				replacelink[i].href="/menu.php";
			}
		}	
	}
	var isp_Ar=["biglobe","gamania","nifty","ocn","yahoo","excite"]
	var HREF=top.location.href;
	var rootPath;
	for (var i = 0; i < isp_Ar.length; i++) {
		if(HREF.indexOf(isp_Ar[i])!=-1){
			rootPath=isp_Ar[i];
			for (var ii = 0; ii < replacelink.length; ii++) {
				if(replacelink[ii]=="http://www.trickster.jp/index.html"){
					replacelink[ii].href="/trickster/"+rootPath+"/";
				}
			}

		}
	}
	OlDocment.style.display="block";
	frameHeightStabilizer();
}
//Tracker
function gaTrackerDocID02(IDNAME,trackName){
	if(!document.getElementById(IDNAME)) return false;
	var leftBNR=document.getElementById(IDNAME);
	var links = leftBNR.getElementsByTagName('a');
	for ( var i = 0; i < links.length ; i++ )
	{
		links[i].onclick=function(){
			try{
				//alert('/trackBtn/'+trackName+'/'+location.pathname+'/'+this.href);
				pageTracker._trackPageview('/trackBtn/'+trackName+'/'+location.pathname+'/'+this.href);
			} catch(err){}
		}
	}
}
//トラッキングしたいID指定
function gaTrackerDocID(){
	gaTrackerDocID02('mailMagazineIntro','leftBNR')
	gaTrackerDocID02('splashOffisial','splashOffisial')
	gaTrackerDocID02('splashHangame','splashHangame')
}

/*
イベントリスナー
*/

/*登録ページ関連チェッカーJS*/
function pre_regist_input_check(){
	var adform=document.getElementById("adform");
	var myform=document.getElementById("pre_regist_mail");
	if(adform.value==""){
		alert("メールアドレスを入力してください。");
		adform.focus();
		adform.style.background="#ffffcc";
		return false;
	}if(adform.value.indexOf("@")==-1){
		alert("メールアドレスの入力フォーマットが正しくありません。");
		adform.focus();
		adform.style.background="#ffffcc";
		return false;
	}if(adform.value.indexOf(".")==-1){
		alert("メールアドレスの入力フォーマットが正しくありません。");
		adform.focus();
		adform.style.background="#ffffcc";
		return false;
	}else{
		return true;
	}
}
function regist_input_check(){
	var idform=document.getElementById("id");
	var birth=document.getElementById("birth1");
	var myform=document.getElementById("regist_input");
	if(idform.value=="" && birth.value=="")	{
		alert('希望のIDを入力してください。\n誕生日を設定してください。');
		idform.focus();
		idform.style.border='3px solid #016dff';
		birth.style.border='3px solid #016dff';
		return false;
	}
	if(idform.value==""){
		alert("希望IDを入力してください。");
		idform.focus();
		idform.style.border='3px solid #016dff';
		return false;
	}
	if(birth.value==""){
		alert('誕生日を設定して下さい。');
		birth.focus();
		birth.style.border='3px solid #016dff';
		return false;
	}
	var today = new Date();
	var nowDate = today.getFullYear();	
	if(birth.value<nowDate-99||birth.value>nowDate-5)	{
		alert('生年月日を正しく入力して下さい。');
		birth.focus();
		birth.style.border='3px solid #016dff';
		return false;
	}else{
		return true;
	}
}
function chargePage_histryback_func(){
	if(!document.getElementById("chargePage")) return false;
	/***課金ページ特定商取引フッター表記↓***/
	
	var addpos = document.getElementsByTagName("body");
	var ftelement = document.createElement('iframe'); 
	ftelement.width="100%";
	ftelement.src="/tokusyou.html";
	ftelement.frameborder="0";
	ftelement.scrolling="no";
	ftelement.height="75";
	ftelement.id="charge_fotter";
	ftelement.style.border="none";
	addpos[0].appendChild(ftelement);
	
	/***課金ページ特定商取引フッター表記↑***/
	var thisURL=location.href;
	if(thisURL.indexOf("https://ssl2.gcrest.com/trickster/agree_charge.html")!=-1) return false;
	if(thisURL.indexOf("https://ssl2.gcrest.com/mp/edit_menu.php")!=-1) return false;
	if(thisURL.indexOf("https://ssl2.gcrest.com/mp/charge_log.php")!=-1) return false;
	if(thisURL.indexOf("https://ssl2.gcrest.com/gate.php")!=-1) return false;
	if(thisURL.indexOf("https://ssl2.gcrest.com/gate.php")!=-1) return false;
	if(thisURL.indexOf("https://ssl2.gcrest.com/mp/cv_i.php")!=-1) 
	{
		var inputTag=document.getElementsByTagName("input");
		inputTag[0].value="閉じる"
		inputTag[0].onclick=function(){
			parent.window.close();
		}
		return false;
	}
	var addpos = document.getElementById("mainContents");
	var element = document.createElement('input'); 
	    element.value = " 戻る "; 
	    element.type = "button";
	    element.style.position = 'absolute';
	    element.style.bottom = '50px';
	    element.style.left = '281px';
	    element.style.width = '50px';
	    addpos.appendChild(element); 
		element.onclick=function(){
			history.back();
		}
}
try{
	//window.addEventListener("load",jsFunction,false);

	window.addEventListener("load",heightLine,false);//モジラ系
	window.addEventListener("load",initialInformationsTabs,false);//モジラ系
	window.addEventListener("load",initRollovers,false);
	window.addEventListener("load",fadingList,false);
	window.addEventListener("load",googleAnalytics,false);
	window.addEventListener("load",setStripedTable,false);
	window.addEventListener("load",menuInitializer,false);
	//window.addEventListener("load",goSpecifyLink,false);
	//window.addEventListener("load",tinyScrollingInit,false);
	window.addEventListener("load",parentsCheckInitializer,false);
	//window.addEventListener("load",jsFunction,false);
	//window.addEventListener("load",jsFunction,false);
	//window.addEventListener("load",jsFunction,false);
	//window.addEventListener("load",jsFunction,false);
	//window.addEventListener("load",jsFunction,false);
	//window.addEventListener("load",Nmbn_func,false);//080318
	//window.addEventListener("load",Nmbn_func_loggedIn,false);//080318 
	window.addEventListener("load",loginFormFocus,false);
	window.addEventListener("load",loginFormChecker,false);
	window.addEventListener("load",loginChecker_func,false);
	window.addEventListener("load",loginBeforeChecker_func,false);
	window.addEventListener("load",SecureDisp_func,false);
	window.addEventListener("load",noSecureDisp_func,false);
	window.addEventListener("load",bbs_pankuzu_func,false);
	window.addEventListener("load",gaTrackerDocID,false);
	window.addEventListener("load",loggedframeHeightStabilizer,false);
	window.addEventListener("load",addClass_sideLsub_func,false);
	window.addEventListener("load",frameHeightStabilizer,false);	
	window.addEventListener("load",gaTracker_query_func,false);
	window.addEventListener("load",portalDisp_func,false);
	window.addEventListener("load",gachalink_func,false);
	window.addEventListener("load",chargePage_histryback_func,false);//モジラ系

}catch(e){
	//window.attachEvent("onload",jsFunction);//IEのみ
	window.attachEvent("onload",heightLine);//IEのみ
	window.attachEvent("onload",initialInformationsTabs);//IEのみ
	window.attachEvent("onload",initRollovers);
	window.attachEvent("onload",fadingList);//IEのみ
	window.attachEvent("onload",googleAnalytics);//IEのみ
	window.attachEvent("onload",setStripedTable);//IEのみ
	window.attachEvent("onload",menuInitializer);//IEのみ
	//window.attachEvent("onload",goSpecifyLink);//IEのみ
	//window.attachEvent("onload",tinyScrollingInit);//IEのみ
	window.attachEvent("onload",parentsCheckInitializer);//IEのみ
	window.attachEvent("onload",useAlpha);//IEのみ
	//window.attachEvent("onload",jsFunction);//IEのみ
	//window.attachEvent("onload",jsFunction);//IEのみ
	//window.attachEvent("onload",Nmbn_func);//080318
	//window.attachEvent("onload",Nmbn_func_loggedIn);//080318
	window.attachEvent("onload",loginFormChecker);//IEのみ
	window.attachEvent("onload",loginFormFocus);//IEのみ
	window.attachEvent("onload",loginChecker_func);//IEのみ
	window.attachEvent("onload",loginBeforeChecker_func);//IEのみ
	window.attachEvent("onload",SecureDisp_func);//IEのみ
	window.attachEvent("onload",noSecureDisp_func);//IEのみ
	window.attachEvent("onload",bbs_pankuzu_func);//IEのみ
	window.attachEvent("onload",gaTrackerDocID);//IEのみ
	window.attachEvent("onload",loggedframeHeightStabilizer);//IEのみ
	window.attachEvent("onload",addClass_sideLsub_func);//IEのみ
	window.attachEvent("onload",frameHeightStabilizer);//IEのみ
	window.attachEvent("onload",gaTracker_query_func);//IEのみ
	window.attachEvent("onload",portalDisp_func);//IEのみ
	window.attachEvent("onload",gachalink_func);//IEのみ
	window.attachEvent("onload",chargePage_histryback_func);//IEのみ
}

function gachalink_func(){
	
	//F1
	/*if(location.href.indexOf("/main/shop.php?p_code=m_13")!=-1){
		location.href="/update/cp/2009/11/13/drillCP.html";
	}
	//F2
	if(location.href.indexOf("/main/shop.php?p_code=m_14")!=-1){
		location.href="/update/cp/2009/11/20/drillCP.html";
	}
	
	//F3
	if(location.href.indexOf("/main/shop.php?p_code=m_15")!=-1){
		location.href="/update/cp/2010/02/05/mantGacha.html";
	}
	
	//F4
	if(location.href.indexOf("/main/shop.php?p_code=m_16")!=-1){
		location.href="/update/cp/2009/10/23/drillCP.html";
	}*/

	
	if(!document.getElementById("sideL-sub")) return false;
	var gachaF1_2Link=document.getElementById("sideL-sub").getElementsByTagName("a");
	for(var i=0; i<gachaF1_2Link.length;i++){
		
		//F1
		/*if(gachaF1_2Link[i].href.indexOf("/main/shop.php?p_code=m_13")!=-1){
			gachaF1_2Link[i].href="/update/cp/2009/11/13/drillCP.html";
			gachaF1_2Link[i].target="_blank";
		}
		//F2
		if(gachaF1_2Link[i].href.indexOf("/main/shop.php?p_code=m_14")!=-1){
			gachaF1_2Link[i].href="/update/cp/2009/11/20/drillCP.html";
			gachaF1_2Link[i].target="_blank";
		}
		
		//F3
		if(gachaF1_2Link[i].href.indexOf("/main/shop.php?p_code=m_15")!=-1){
			gachaF1_2Link[i].href="/update/cp/2010/02/05/mantGacha.html";
			gachaF1_2Link[i].target="_blank";
		}
		
		//F4
		if(gachaF1_2Link[i].href.indexOf("/main/shop.php?p_code=m_16")!=-1){
			gachaF1_2Link[i].href="/update/cp/2009/10/23/drillCP.html";
			gachaF1_2Link[i].target="_blank";
		}
		*/
	}
}

