var send_init_data_flg=false;
function sendToFlash(key,arg){
try{
menu.menuFla.SetVariable("\_root."+key,arg);
}catch(e){
setTimeout("sendToFlash('"+key+"','"+arg+"');",1000);
}
}
function sendToFlash_head(key,arg){
try{
header.HeaderFla.SetVariable("\_root."+key,arg);
}catch(e){
setTimeout("sendToFlash_head('"+key+"','"+arg+"');",1000);
}
}
function sendToFlash_ctrlhelp(key,arg){
try{
contents.ctrlhelpFla.SetVariable("\_root."+key,arg);
}catch(e){
setTimeout("sendToFlash_ctrlhelp('"+key+"','"+arg+"');",1000);
}
}
function sendToFlash_help(key,arg){
try{
contents.helpFla.SetVariable("\_root."+key,arg);
}catch(e){
setTimeout("sendToFlash_help('"+key+"','"+arg+"');",1000);
}
}
function sendToScrVFlash(key,arg){
try{
contents.scrVFla.SetVariable("\_root."+key,arg);
}catch(e){
setTimeout("sendToScrVFlash('"+key+"','"+arg+"');",1000);
}
}
function sendToScrHFlash(key,arg){
try{
contents.scrHFla.SetVariable("\_root."+key,arg);
}catch(e){
setTimeout("sendToScrHFlash('"+key+"','"+arg+"');",1000);
}
}
function sendEnableProc(){sendToFlash("wait_stopProcflg","0");}
function sendNotEnableProc(){sendToFlash("wait_stopProcflg","1");}
function sendDataComp(){sendToFlash("DataSet_flg","1");}
function sendBtnData(){
sendToFlash("strBtnData.id",keyArr.join("|"));
sendToFlash("strBtnData.pic",imageArr.join("|"));
sendToFlash("strBtnData.picSize",picsizeArr.join("|"));
sendToFlash("strBtnData.SelectID",selectedArr.join("|"));
sendToFlash("strBtnData.nonSelectiveID",disabledArr.join("|"));
sendToFlash("strBtnData.price",priceArr.join("|"));
if(othersArr.length>0)sendToFlash("strBtnData.others",othersArr.join("|"));
sendToFlash("strBtnData.url",urlArr.join("|"));
}
function sendSelBtnData(){
sendToFlash("strBtnData.SelectID",selectedArr.join("|"));
sendToFlash("strBtnData.nonSelectiveID",disabledArr.join("|"));
}
function sendPDData(){
sendToFlash("strPDData.item",pdArr.join("|"));
sendToFlash("strPDData.sel",pdSelArr.join("|"));
}
function sendNoneBtn(){
keyArr=new Array();
imageArr=new Array();
selectedArr=new Array();
disabledArr=new Array();
picsizeArr=new Array();
priceArr=new Array();
othersArr=new Array();
urlArr=new Array();
keyArr.push("");
imageArr.push("");
selectedArr.push("");
disabledArr.push("");
picsizeArr.push("");
priceArr.push("");
othersArr.push("");
urlArr.push("");
}
function sendSelbtnStates(btnKey){
SelectedBtn(btnKey);
sendSelBtnData();
sendDataComp();
}
function sendInitData(){
if(send_init_data_flg)return;
send_init_data_flg=true;
sendToFlash("contents_type",contents_type);
sendToFlash("combi_type",combi_type);
var arrEna=new Array();
for(var i=0;i<Btn_Main.length;i++){
arrEna.push(getMainSubEnaArr(i).join(".")+","+getMainTagArr(i).join("."));
}
var arrTag=new Array();
for(var i=0;i<Btn_Tag.length;i++){
arrTag.push(getTagKey(i)+","+getTagNam(i)+","+getTagFlaAreaNam(i)+","+getTagFlaAreaNam2(i)+","+getTagFlaNamArr(i).join("."));
}
sendToFlash("Btn_Tag",arrTag.join("|"));
sendToFlash("aryEna_submenu",arrEna.join("|"));
sendToFlash("filter_flg",FILTER_FLG　?"1":"0");
sendToFlash("seq_flg",SEQ_FLG?"1":"0");
sendToFlash("spec_col",SPEC_COL);
sendToFlash("parts_tx_flg",PARTS_TX_FLG?"1":"0");
sendToFlash("GraTag",GRA_TAG);
sendToFlash("print_btn_ena",PRINT_BTN_ENA?"1":"0");
sendToFlash("request_btn_ena",REQUEST_BTN_ENA?"1":"0");
sendToFlash("TOP_BTN_ENA",TOP_BTN_ENA?"1":"0");
sendToFlash("CARSEL_BTN_ENA",CARSEL_BTN_ENA?"1":"0");
sendToFlash("CLOSE_BTN_ENA",CLOSE_BTN_ENA?"1":"0");
if(contents_type==1){
if(combi_type==1){
sendToFlash("\_root.strNow_SubMenu",start_submenu);
sendToFlash("\_root.strNow_Tag",start_tag);
}
else if(combi_type==2){
if(repageflg){
sendToFlash("\_root.f_transMode","0");
}
}
}
if(contents_type==3){
if(parent.g_now_bgm==false){
now_bgm=false;
sendToFlash("bgm_init_flg",now_bgm?"1":"0");
}
}
sendToFlash("init_data_flg","1");
}
function finishInitMenuFla(){
ctrl_ClickMenu(now_menu);
}
function sendWait(type){
sendToFlash("waitType",type);
menu.menuFla.TGotoLabel("\_root.rev_WaitMC","loop");
menu.menuFla.TPlay("\_root.rev_WaitMC");
}
function sendTag(tag){
var tag_idx=getTagIdx(getMainTag(now_menu,now_Submenu));
for(var i=0;i<getTagFlaNamArr(tag_idx).length;i++){
var mc="\_root.btnArea_menu.btnAreaTagSpace."+getTagFlaNamArr(tag_idx)[tag];
var f=(i==tag)?2:1;
menu.menuFla.TGotoFrame(mc,f);
}
}
function sendHeaderbtn(btnKey){
HeaderProc(parseInt(btnKey));
}
function sendEnableProc_header(){sendToFlash_head("wait_stopProcflg","0");sendToFlash_head("wait_stopProcflg_help","0");}
function sendNotEnableProc_header(){sendToFlash_head("wait_stopProcflg","1");sendToFlash_head("wait_stopProcflg_help","1");}
function change3DQualityBtn(){
if((now_menu==2)||(now_menu==3)||(getTagNamMS(now_menu,now_Submenu))=="Spec"){
header.HeaderFla.TGotoLabel("headerBtn_QUALITY","invalid");
}
else{
if(QualityFlg==true){
header.HeaderFla.TGotoLabel("headerBtn_QUALITY","valid");
header.HeaderFla.TGotoLabel("headerBtn_QUALITY.Btn","p_Quality");
}
else if(QualityFlg==false){
header.HeaderFla.TGotoLabel("headerBtn_QUALITY","valid");
header.HeaderFla.TGotoLabel("headerBtn_QUALITY.Btn","p_Speed");
}
}
}
function changememoBtn(){
if((now_menu==1)||(now_menu==2)||(now_menu==3)||(now_menu==4)||((getTagNamMS(now_menu,now_Submenu))=="Spec")){
header.HeaderFla.TGotoLabel("headerBtn_MEMO","invalidBtn");
}
else{
header.HeaderFla.TGotoLabel("headerBtn_MEMO","memoOff");
}
}
function sendShowAlert(t){
if(t>=100){
sendToFlash("alert_mes",alert_mes);
}
sendToFlash("alert_flg",(t>99)?100:t);
}
function sendPrint(){
menu.menuFla.TGotoLabel("\_root.print_WaitMC","play");
menu.menuFla.TPlay("\_root.print_WaitMC");
}
function sendPrintEna(flg){
if(PRINT_BTN_ENA){
var frame=flg?"off":"invalid";
menu.menuFla.TGotoLabel("\_root.printBtn",frame);
}
}
function sendFullScreen(flg){
if(flg){
sendToFlash("fullscreen_flg",1);
this.menu.menuFla.TGotoLabel("\_root.headerLoop.headerBtn_FULLSCREEN","off_def");
}else{
sendToFlash("fullscreen_flg",0);
this.menu.menuFla.TGotoLabel("\_root.headerLoop.headerBtn_FULLSCREEN","off");
}
}
function sendfirstStopRotFlg(flg){
if(flg=="0"){
Quit_firstStopRot();
firstStopRotFlg=false;
}
else{
alert("FLASH/javascript連携エラー");
}
}
function ChangeRotIcon(rotact){
menu.menuFla.SetVariable("\_root.strRotFlg",rotact);
}
function stop3DTour(key){
if(tourTimeFlg && tourNum>0 && stoppingTour==0){
stoppingTour=1;
triggerAction("tour-stop",tmp);
triggerAction("Tour_stop",tmp);
triggerAction("stopTour",tmp);
if(contents_type==3){
if(tourTimer1!=null){
ExTx_closeMsg(tourNum-1);
clearTimeout(tourTimer1);
tourTimer1=null;
}
if(tourTimer2!=null){
clearTimeout(tourTimer2);
tourTimer2=null;
}
}
}
}
function selectMenuTag_fla(arg){
aryMT=new Array();
aryMT=arg.split(",");
selectMenuTag(parseInt(aryMT[0]),parseInt(aryMT[1]),parseInt(aryMT[2]));
}
function selectBtn_fla(arg){selectBtn(parseInt(arg));}
function FromF_selectP(arg){
var ary=arg.split(",");
structPos=parseInt(ary[0]);
movePos=parseInt(ary[1]);
}
function FromF_nowPageinfo(arg){
var ary=arg.split(",");
now_PageBtnNum_H=parseInt(ary[0]);
now_PageBtnNum_W=parseInt(ary[1]);
now_page=parseInt(ary[2]);
}
function sendEstimate(){
var strTotal=PNtoCamma(estTotal_tax);
sendToFlash("Total",strTotal);
}
function sendPriceNote(show){
var frame=(show==0)?"hide":"show"+show;
menu.menuFla.TGotoLabel("\_root.price_note",frame);
}
function sendNavi(frame){
now_navi=frame;
menu.menuFla.TGotoLabel("\_root.navi",frame);
menu.menuFla.TPlay("\_root.navi");
}
function sendScrVRollOver(pos){
contents.scrVFla.SetVariable("\_root.clickPos",pos);
contents.scrVFla.TGotoLabel("\_root.overMC","RollOver");
contents.scrVFla.TPlay("\_root.overMC");
}
function sendScrVClick(pos){
contents.scrVFla.SetVariable("\_root.clickPos",pos);
contents.scrVFla.TGotoLabel("\_root.clickMC","Click");
contents.scrVFla.TPlay("\_root.clickMC");
}
function sendCloseIntText(pos){
var n="Tx00";
contents.document.all.item(n).TGotoLabel("\_root","change");
contents.document.all.item(n).TPlay("\_root");
}
function sendIntRollOver(pos){
contents.intePanoFla.SetVariable("\_root.clickPos",pos);
contents.intePanoFla.TGotoLabel("\_root.overMC","RollOver");
contents.intePanoFla.TPlay("\_root.overMC");
}
function sendIntClick(pos){
contents.intePanoFla.SetVariable("\_root.clickPos",pos);
contents.intePanoFla.TGotoLabel("\_root","click");
contents.intePanoFla.TPlay("\_root");
}
function sendIntClose(){
contents.intePanoFla.TGotoLabel("\_root","closeText");
contents.intePanoFla.TPlay("\_root");
}
function sendIntSeatPlay(){
contents.intePanoFla.TGotoLabel("\_root.playMC","play");
contents.intePanoFla.TPlay("\_root.playMC");
}
function sendIntSeatStop(){
contents.intePanoFla.TGotoLabel("\_root.playMC","stop");
contents.intePanoFla.TPlay("\_root.playMC");
}
function ctrl_ClickMenu(id){
sendToFlash("ctrl_click_menu",getMainKey(id));
sendToFlash("ctrl_click_Type","M");
sendToFlash("BtnClick_flg","1");
}
function ctrl_ClickSub(id){
sendToFlash("ctrl_click_sub",id);
sendToFlash("ctrl_click_Type","S");
sendToFlash("BtnClick_flg","1");
}
function ctrl_ClickBtn(idx){
sendToFlash("ctrl_click_btn",idx);
sendToFlash("ctrl_click_Type","B");
sendToFlash("BtnClick_flg","1");
}
function ctrl_ClickAlertBtn(idx){
sendToFlash("ctrl_click_alertbtn",idx);
sendToFlash("ctrl_click_Type","A");
sendToFlash("BtnClick_flg","1");
}
function ctrl_RollOverMenu(id){
sendToFlash("ctrl_Vpos",getMainKey(id));
sendToFlash("ctrl_Rover_Type","M");
menu.menuFla.TGotoLabel("\_root.ctrl_WaitMC_OVER","RollOver");
menu.menuFla.TPlay("\_root.ctrl_WaitMC_OVER");
}
function ctrl_RollOverSub(id){
sendToFlash("ctrl_Vpos",id);
sendToFlash("ctrl_Rover_Type","S");
menu.menuFla.TGotoLabel("\_root.ctrl_WaitMC_OVER","RollOver");
menu.menuFla.TPlay("\_root.ctrl_WaitMC_OVER");
}
function ctrl_RollOverBtn(idx){
sendToFlash("ctrl_Vpos",idx);
sendToFlash("ctrl_Rover_Type","B");
menu.menuFla.TGotoLabel("\_root.ctrl_WaitMC_OVER","RollOver");
menu.menuFla.TPlay("\_root.ctrl_WaitMC_OVER");
}
function ctrl_RollOverAlertBtn(idx){
sendToFlash("ctrl_Vpos",idx);
sendToFlash("ctrl_Rover_Type","A");
menu.menuFla.TGotoLabel("\_root.ctrl_WaitMC_OVER","RollOver");
menu.menuFla.TPlay("\_root.ctrl_WaitMC_OVER");
}
function ctrl_RollOutMenu(id){
sendToFlash("ctrl_Upos",getMainKey(id));
sendToFlash("ctrl_Rout_Type","M");
menu.menuFla.TGotoLabel("\_root.ctrl_WaitMC_OUT","RollOut");
menu.menuFla.TPlay("\_root.ctrl_WaitMC_OUT");
}
function ctrl_RollOutSub(id){
sendToFlash("ctrl_Upos",id);
sendToFlash("ctrl_Rout_Type","S");
menu.menuFla.TGotoLabel("\_root.ctrl_WaitMC_OUT","RollOut");
menu.menuFla.TPlay("\_root.ctrl_WaitMC_OUT");
}
function ctrl_RollOutBtn(idx){
sendToFlash("ctrl_Upos",idx);
sendToFlash("ctrl_Rout_Type","B");
menu.menuFla.TGotoLabel("\_root.ctrl_WaitMC_OUT","RollOut");
menu.menuFla.TPlay("\_root.ctrl_WaitMC_OUT");
}
function ctrl_RollOutAlertBtn(idx){
sendToFlash("ctrl_Upos",idx);
sendToFlash("ctrl_Rout_Type","A");
menu.menuFla.TGotoLabel("\_root.ctrl_WaitMC_OUT","RollOut");
menu.menuFla.TPlay("\_root.ctrl_WaitMC_OUT");
}
function SelectOutBtn(idx){
sendToFlash("ctrl_Upos",idx);
sendToFlash("ctrl_Rout_Type","SB");
menu.menuFla.TGotoLabel("\_root.ctrl_WaitMC_OUT","RollOut");
menu.menuFla.TPlay("\_root.ctrl_WaitMC_OUT");
}
function NSF_sendClick(no,type,btnName){
sendToFlash("checkMode",type);
sendToFlash("clickBtnName",btnName);
menu.menuFla.TGotoLabel("\_root.navi.navi_WaitMC_CLICK","play");
menu.menuFla.TPlay("\_root.navi.navi_WaitMC_CLICK");
}
function NSF_sendRollOver(no,type,btnName){
sendToFlash("checkModeV",type);
sendToFlash("overBtnName",btnName);
menu.menuFla.TGotoLabel("\_root.navi.navi_WaitMC_OVER","play");
menu.menuFla.TPlay("\_root.navi.navi_WaitMC_OVER");
}
function NSF_sendRollOut(no,type,btnName){
sendToFlash("checkModeU",type);
sendToFlash("offBtnName",btnName);
menu.menuFla.TGotoLabel("\_root.navi.navi_WaitMC_OUT","play");
menu.menuFla.TPlay("\_root.navi.navi_WaitMC_OUT");
}
function menu_header2_sendRollOver(no){
sendToFlash("overBtnName",getHead2Btn(no));
menu.menuFla.TGotoLabel("\_root.headerLoop.ctrl_WaitMC_OVER","play");
menu.menuFla.TPlay("\_root.headerLoop.ctrl_WaitMC_OVER");
}
function menu_header2_sendRollOut(no){
sendToFlash("offBtnName",getHead2Btn(no));
menu.menuFla.TGotoLabel("\_root.headerLoop.ctrl_WaitMC_OUT","play");
menu.menuFla.TPlay("\_root.headerLoop.ctrl_WaitMC_OUT");
}
function header_sendClick(no){
sendToFlash_head("clickedBtnName",getHeadBtn(no));
sendToFlash_head("flg_states","click");
}
function header_sendRollOver(no){
sendToFlash_head("overBtnName",getHeadBtn(no));
header.HeaderFla.TGotoLabel("\_root.ctrl_WaitMC_OVER","play");
header.HeaderFla.TPlay("\_root.ctrl_WaitMC_OVER");
}
function header_sendRollOut(no){
sendToFlash_head("offBtnName",getHeadBtn(no));
header.HeaderFla.TGotoLabel("\_root.ctrl_WaitMC_OUT","play");
header.HeaderFla.TPlay("\_root.ctrl_WaitMC_OUT");
}
function header_sendCtrlHelpClose(){
sendToFlash("viewCtrlHelp","0");
if(ctrlFlg==0)menu_header2_sendRollOut(5);
else if(ctrlFlg==1)menu_header2_sendRollOver(5);
}
function header_sendHelpClose(){
sendToFlash("viewHelp","0");
if(ctrlFlg==0)menu_header2_sendRollOut(0);
else if(ctrlFlg==1)menu_header2_sendRollOver(0);
}
function header_sendBGMStart(mode){
sendToFlash("header_now_menu",now_menu);
if(mode==true)menu.menuFla.TGotoLabel("\_root.headerLoop.bgmMC","play");
else if(mode==false)menu.menuFla.TGotoLabel("\_root.headerLoop.bgmMC","stop");
menu.menuFla.TPlay("\_root.headerLoop.bgmMC");
}
function header_sendQualityInvalid(mode){
quality_invalid=mode;
var flg=0;
headerBtnNum=Btn_Header.length-1;
if(mode){headerBtnNum--;flg=1;}
sendToFlash("inv_quality",flg);
menu.menuFla.TGotoLabel("\_root.headerLoop.invalid_WaitMC","play");
menu.menuFla.TPlay("\_root.headerLoop.invalid_WaitMC");
}
function header_sendFullScreenInvalid(mode){
fullscreen_invalid=mode;
var flg=0;
if(mode){flg="1";}
sendToFlash("inv_fs",flg);
menu.menuFla.TGotoLabel("\_root.headerLoop.invalid_WaitMC","play");
menu.menuFla.TPlay("\_root.headerLoop.invalid_WaitMC");
}
function ctrlHELP_sendClick(){
sendToFlash_ctrlhelp("flg_states","close");
}
function HELP_sendClick(){
sendToFlash_help("flg_states","close");
}
