﻿
var menu_w_1="";
var menu_h_1="";
var menu_w_2="";
var menu_h_2="";
var header_w_1="";
var header_h_1="";
var header_w_2="";
var header_h_2="";
var co_area_obj_w_1="";
var co_area_obj_h_1="";
var co_area_obj_anti_value_1="";
var co_area_fla_w_1="";
var co_area_fla_h_1="";
var in_tx_col_value_1="";
var estimate_fla_top_1="";
var estimate_fla_w_1="";
var estimate_fla_h_1="";
var estimate_fla_w_2="";
var estimate_fla_h_2="";
var loading_w_1="";
var loading_h_1="";
var loading_w_2="";
var loading_h_2="";
if(contents_type==1){
menu_w_1="100%";
menu_h_1="30%";
menu_w_2="1280";
menu_h_2="305";
header_w_1="100%";
header_h_1="100%";
header_w_2="1280";
header_h_2="94";
co_area_obj_w_1="100%";
co_area_obj_h_1="100%";
co_area_obj_anti_value_1="1000";
co_area_fla_w_1="100%";
co_area_fla_h_1="100%";
in_tx_col_value_1="#000000";
estimate_fla_top_1="625px";
estimate_fla_w_1="1280px";
estimate_fla_h_1="399px";
estimate_fla_w_2="1280";
estimate_fla_h_2="399";
loading_w_1="100%";
loading_h_1="100%";
loading_w_2="1280";
loading_h_2="625";
}
else{
menu_w_1="800px";
menu_h_1="191px";
menu_w_2="800";
menu_h_2="191";
header_w_1="800px";
header_h_1="61px";
header_w_2="800";
header_h_2="60";
co_area_obj_w_1="800px";
co_area_obj_h_1="348px";
co_area_obj_anti_value_1="1";
co_area_fla_w_1="800px";
co_area_fla_h_1="348px";
in_tx_col_value_1="#ffffff";
estimate_fla_top_1="0px";
estimate_fla_w_1="595px";
estimate_fla_h_1="842px";
estimate_fla_w_2="595";
estimate_fla_h_2="842";
loading_w_1="800px";
loading_h_1="348px";
loading_w_2="800";
loading_h_2="348";
}
function writeMenuPage(d){
var strObjTag="";
strObjTag+=menuFlash();
d.write(strObjTag);
}
function menuFlash(){
var str="";
str+='<div id="LayerMenu" style="position:absolute; left:0px; top:0px; width:'+menu_w_1+'; height:'+menu_h_1+';z-index:1; visibility:visible;">';
str+='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
str+=' codebase="http:/' + '/fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ';
str+=' width="100%" height="100%" id="menuFla" align="middle">';
str+='<param name="allowScriptAccess" value="sameDomain"/>';
str+='<param name="movie" value="flash/menu.swf">';
str+='<param name="quality" value="high"/>';
str+='<param name="bgcolor" value="#ffffff"/>';
str+='<param name="menu" value="false"/>';
str+='　<param name="wmode" value="transparent"/>';
str+='<embed src="flash/menu.swf" quality="high" bgcolor="#ffffff" width="'+menu_w_2+'" height="'+menu_h_2+'" name="menuFla" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http:/' + '/www.macromedia.com/go/getflashplayer"/>';
str+='</object>';
str+='</div>';
return str;
}
function writeHeaderPage(d){
var strObjTag="";
strObjTag+=headerFlash();
d.write(strObjTag);
}
function headerFlash(){
var str="";
str+='<div id="LayerHeader" style="position:absolute; left:0px; top:0px; width:'+header_w_1+'; height:'+header_h_1+'; z-index:1; visibility:visible; ">';
str+='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
str+=' codebase="http:/' + '/fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ';
str+=' width="100%" height="100%" id="HeaderFla" align="middle">';
str+='<param name="allowScriptAccess" value="sameDomain"/>';
str+='<param name="movie" value="flash/header.swf"/>';
str+='<param name="quality" value="high"/>';
str+='<param name="bgcolor" value="#000000"/>';
str+='<param name="menu" value="false"/>';
str+='　<param name="wmode" value="transparent"/>';
str+='<embed src="flash/header.swf" quality="high" bgcolor="#000000" width="'+header_w_2+'" height="'+header_h_2+'" name="HeaderFla" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http:/' + '/www.macromedia.com/go/getflashplayer"/>';
str+='</object>';
str+='</div>';
return str;
}
function COobject(cofile){
var str="";
str+='<div id="LayerCO" style="position:absolute; left:0px; top:0px; width:'+co_area_obj_w_1+'; height:'+co_area_obj_h_1+';z-index:1; visibility:hidden;">';
str+='<OBJECT style="visibility:hidden" ID="CultObject" ';
str+=' CLASSID="clsid:31B7EB4E-8B4B-11D1-A789-00A0CC6651A8"';
str+=' CODEBASE="http:/' + '/www.cult3d.com/download/cult.cab#version=5,3,0,212"';
str+=' BORDER="0" WIDTH="0%" HEIGHT="0%">';
str+='<PARAM NAME="SRC" VALUE="co/';
str+=cofile;
str+='" />';
str+='<PARAM NAME="axis" VALUE="X"/>';
str+='<PARAM NAME="speed" VALUE="0.1"/>';
if(now_menu==2){
str+='<PARAM NAME="antialiasing" VALUE="1"/>';
str+='<PARAM NAME="DISABLEHW" VALUE="1"/>';
}
else{
str+='<PARAM NAME="antialiasing" VALUE="0"/>';
str+='<PARAM NAME="DISABLEHW" VALUE="0"/>';
}
str+='<PARAM NAME="antialiasingdelay" VALUE="'+co_area_obj_anti_value_1+'"/>';
str+='<PARAM NAME="VIEWFINISHED" VALUE="0"/>';
str+='<PARAM NAME="DISABLEPB" VALUE="1"/>';
str+='<PARAM NAME="PBCOLOR" VALUE="000000"/>';
str+='<PARAM NAME="MENU" value="FALSE"/>';
str+='　<PARAM NAME="WMODE" value="TRANSPARENT"/>';
str+='</OBJECT>';
str+='</div>';
return str;
}
function COAreaFlash(Flafile){
var str="";
str+='<div id="LayerIntSeat" style="position:absolute; left:0px; top:0px;width:'+co_area_fla_w_1+'; height:'+co_area_fla_h_1+';z-index:1; visibility:hidden;">';
str+='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
str+=' codebase="http:/' + '/fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ';
str+=' width="0%" height="0%" id="intePanoFla" align="middle">';
str+='<param name="allowScriptAccess" value="sameDomain"/>';
str+='<param name="movie" value="flash/';
str+=Flafile;
str+='"> ';
str+='<param name="quality" value="high"/>';
str+='<param name="bgcolor" value="#ffffff"/>';
str+='<param name="menu" value="false"/>';
str+='<embed src="flash/';
str+=Flafile;
str+='" quality="high" bgcolor="#ffffff" width="1280" height="625" name="intePanoFla" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http:/'+'/www.macromedia.com/go/getflashplayer" />';
str+='</object>';
str+='</div>';
return str;
}
function write3DSimuPage(d){
var strObjTag="";
var posAry=getIntPosAry(getIntIdx(now_intPano));
strObjTag+=COobject("exterior.co");
strObjTag+=TxFlash(0);
strObjTag+=nowLoadingFlash();
d.write(strObjTag);
}
function writeSpecPage(d){
var strObjTag="";
var sh=screen.height;
var sw=sh*1.25;
var w1=sw;
var h1=sh*0.6103515625;
strObjTag+='<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>';
strObjTag+='<TR>';
strObjTag+='<TD width="'+w1+'">';
strObjTag+='<IFRAME id="inf" src="spec.htm" name="inf" width="'+w1+'" height="'+h1+'" scrolling="yes">';
strObjTag+='</IFRAME>';
strObjTag+='</TD>';
strObjTag+='</TR>';
strObjTag+='</TABLE>';
HtmTagAlert(strObjTag);
d.write(strObjTag);
}
function writeInteriorPanoramaPage(d){
var flaFlg=false;
var posAry=getIntPosAry(getIntIdx(now_intPano));
var strObjTag="";
if(getIntCO(getIntIdx(now_intPano))!=""){
strObjTag+=COobject(getIntCO(getIntIdx(now_intPano)));
}else{
flaFlg=true;
strObjTag+=COAreaFlash(getIntFla(getIntIdx(now_intPano)));
}
strObjTag+=TxFlash(0);
strObjTag+=nowLoadingFlash();
HtmTagAlert(strObjTag);
d.write(strObjTag);
return flaFlg;
}
function writeInteriorSeatPage(d){
var strObjTag="";
var FileName;
FileName=getInSeatFla(getInSeatIdx(now_intSeat));
strObjTag+=COAreaFlash(FileName);
strObjTag+=nowLoadingFlash();
d.write(strObjTag);
}
function TxFlash(flg){
var FileSize=new Array();
FileSize[0]=1000;
FileSize[1]=1000;
var FileName="tx.swf";
if(flg==1)FileName="tx_o.swf";
var FlaNo="00";
var str="";
str+='<div id="LayerTx' + FlaNo + '"';
if(contents_type==1){
str+=' style="position:absolute; left:-2000px; top:10px; width:'+ FileSize[0] +'%; height:'+ FileSize[1] +'%; z-index:2; visibility:visible; ">';
}else{
str+=' style="position:absolute; left:-2000px; top:10px; width:'+ FileSize[0] +'px; height:'+ FileSize[1] +'px; z-index:2; visibility:visible; ">';
}
str+='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
str+=' codebase="http:/' + '/fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ';
str+=' width="'+ FileSize[0] +'" height="'+ FileSize[1] +'" id="Tx'+ FlaNo +'">';
str+='<param name="allowScriptAccess" value="sameDomain"/>';
str+='<param name="movie" value="flash/'+ FileName +'">';
str+='<param name="quality" value="high"/>';
str+='<param name="bgcolor" value="'+in_tx_col_value_1+'"/>';
str+='<param name="menu" value="false"/>';
str+='<param name="scale" value="noscale"/>';
str+='<param name="salign" value="TL"/>';
str+='<embed src="flash/'+ FileName +'" quality="high" bgcolor="'+in_tx_col_value_1+'" width="'+ FileSize[0] +'" height="'+ FileSize[1] +'" name="InTx'+ FlaNo +'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http:/' + '/www.macromedia.com/go/getflashplayer"/>';
str+='</object>';
str+='</div>';
return str;
}
function writeGalleryPage(d){
switch(ARR_GALLERY[now_Submenu]){
case 0:
writeGalleryPhotoPage(d);
break;
case 1:
writeGalleryTVCFPage(d);
break;
case 2:
writeGalleryWallPaperPage(d);
break;
case 3:
writeGalleryScreenSaverPage(d);
break;
case 4:
break;
default:
break;
}
}
function writeGalleryPhotoPage(d){
var strObjTag="";
strObjTag+='<img src="images/';
strObjTag+=getPhtPic(getPhtIdx(now_Gallery));
strObjTag+='.jpg"';
strObjTag+=' alt="" name="image" style="visibility:visible">';
d.write(strObjTag);
}
function writeGalleryTVCFPage(d){
var strObjTag="";
strObjTag+='<img src="images/';
strObjTag+=TV_image+'"';
strObjTag+=' alt="" name="image" style="visibility:visible">';
d.write(strObjTag);
}
function WriteTVCFMoviePage(arg){
var str='';
str+='<OBJECT ID="MediaPlayer" WIDTH="100%" HEIGHT="100%" CLASSID="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6" TYPE="application/x-oleobject">';
str+='<PARAM NAME="URL" VALUE="images/';
str+=arg;
str+='">';
str+='</OBJECT>';
document.write(str);
}
function writeGalleryWallPaperPage(d){
var strObjTag="";
strObjTag+='<img src="images/';
strObjTag+=WP_image+'"';
strObjTag+=' alt="" name="image" style="visibility:visible">';
d.write(strObjTag);
}
function writeGalleryScreenSaverPage(d){
var strObjTag="";
strObjTag+='<img src="images/';
strObjTag+=SS_image+'"';
strObjTag+=' alt="" name="image" style="visibility:visible">';
d.write(strObjTag);
}
function writeEstimatePage(d){
var strObjTag="";
strObjTag+=estimateFlash();
d.write(strObjTag);
}
function estimateFlash(){
var str="";
str+='<div id="LayerMenu" style="position:absolute; left:0px; top:'+estimate_fla_top_1+'; width:'+estimate_fla_w_1+'; height:'+estimate_fla_h_1+';z-index:1; visibility:visible;">';
str+='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
str+=' codebase="http:/' + '/fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ';
str+=' width="100%" height="100%" id="EstimateFla" align="middle">';
str+='<param name="allowScriptAccess" value="sameDomain"/>';
str+='<param name="movie" value="flash/estimate.swf">';
str+='<param name="quality" value="high"/>';
str+='<param name="bgcolor" value="#ffffff"/>';
str+='<param name="menu" value="false"/>';
str+='　<param name="wmode" value="transparent"/>';
str+='<embed src="flash/estimate.swf" quality="high" bgcolor="#ffffff" width="'+estimate_fla_w_2+'" height="'+estimate_fla_h_2+'" name="EstimateFla" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http:/' + '/www.macromedia.com/go/getflashplayer"/>';
str+='</object>';
str+='</div>';
return str;
}
function nowLoadingFlash(){
var str="";
str+='<div id="LayerLoading" style="position:absolute; left:0px; top:0px; width:'+loading_w_1+'; height:'+loading_h_1+';z-index:1; visibility:visible;">';
str+='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
str+=' codebase="http:/' + '/fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ';
str+=' width="100%" height="100%" id="loading" align="">';
str+='<param name="allowScriptAccess" value="sameDomain"/>';
str+='<param name="movie" value="flash/loading.swf">';
str+='<param name="quality" value="high"/>';
str+='<param name="bgcolor" value="#ffffff"/>';
str+='<param name="menu" value="false"/>';
str+='<embed src="flash/loading.swf" quality="high" bgcolor="#ffffff" width="'+loading_w_2+'" height="'+loading_h_2+'" name="loading" align="" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http:/' + '/www.macromedia.com/go/getflashplayer"/>';
str+='</object>';
str+='</div>';
return str;
}
function writeEstimateCo(d){
var strObjTag="";
strObjTag+=COobject("exterior.co");
strObjTag+=nowLoadingFlash();
d.write(strObjTag);
}
