﻿//アライアンスタイプグループ分けJS呼び出し
var allianceGroupSource="http://www.atgames.jp/atgames/html/common/js/update_file/allianceTypeAtgArray.js";
document.write('<script type="text/javascript" src="'+ allianceGroupSource +'"></script>');

//SWF表示スクリプト
function mypegeRightRota_Show_swf(xmlName,allianceSelfFlag){

var allianceFlag=1;

var ArrayLength=allianceTypeAtgArray.length;
parseInt(ArrayLength);
for(var i=0; i<ArrayLength; i++){
if(allianceTypeAtgArray[i]==allianceSelfFlag){	//フラグの数字がアトゲグループに含まれていれば、
allianceFlag=0;
break;
}}

var swfWidth="160";
var swfHeight="208";
var swfSource="/atgames/swf/featureAreaBanner/mypegeRightRota.swf";

var Show_swf_Source=

'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+ swfWidth +'" height="'+ swfHeight +'" id="mypegeRightRota" align="middle">'+
'<param name="allowScriptAccess" value="always" />'+
'<param name="allowFullScreen" value="false" />'+
'<param name="wmode" value="transparent" />'+
'<param name="movie" value="'+ swfSource +'" />'+
'<param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />'+
'<param name="FlashVars" value="xmlNameVars=' + xmlName + '&allianceFlagVars=' + allianceFlag + '" />'+
'<embed src="'+ swfSource +'?xmlNameVars=' + xmlName + '&allianceFlagVars=' + allianceFlag + '" quality="high" bgcolor="#ffffff" width="'+ swfWidth +'" height="'+ swfHeight +'" name="mypegeRightRota" align="middle" allowScriptAccess="always" allowFullScreen="false" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'+
'</object>';

document.write(Show_swf_Source);
}

function mypegeRightRotaClick(clickUrl,winTarget,bannerID){
	//alert("バナーをクリックしたよ。URLは"+clickUrl+"です。ブラウザのターゲットは" + winTarget + "です。バナー番号は"+bannerID+"です。");
	window.open(clickUrl,winTarget);
	GAClickCounter("mypegeRightRota"+bannerID);
}





