var smpu=new Array();
var smpd=new Array();
var smpu2=new Array();
var smpd2=new Array();
var smpdef=new Array();
var smpe=new Array();
smpe[0]=new Array();
smpe[1]=new Array();
smpe[2]=new Array();
smpe[3]=new Array();
var smp00;
var smp01;
var smpY;
var smpZ;
var smpE=new Array();
var smpEX=new Array();
var smpEY=new Array();
var smpEZ=new Array();
var iMsw;
var iMsh;
var iMsEw=new Array();
var iMsEh=new Array();
var iSMDL;
var iSMDx;
var iSMDlx;
var iSMDex;
var iSMDy;
var iSMDly;
var iSMDey;
var iMFNum=0;
var iFMx=0;
var iFMy=0;
var iFMr=9;
var iFMEx=0;
var iFMEy=0;
var iFMEr=new Array();
iFMEr[0]=7;
iFMEr[1]=7;
iFMEr[2]=7;
iFMEr[3]=7;
var iOTFunction=0;
var iOv=new Array();
var oTimerTmp1;
var oTimerTmp2;
var oPlcrd=new Array();
var iPlcrd=new Array();
var iPlcrdX=new Array();
var iPlcrdY=new Array();
var oSlabel=new Array();
var oPlcrdIfno1;
var oPlcrdIfno2;
var iPlcrdIfno2;
var iPlcrdIfno2x;
var oCanvas;
var oCtx;
var oPolyLine=new Array();
var iPolyLine=new Array();
var sms_map_m_over;
var iMapViewW=-1;
var iMapViewH=-1;
var iPLAY_POLY_LINE_SPEED=1;
var iNeedDectIMG=0;
var bMouseClickEvent=true;
var bSwitchRCMenu=false;
var oSwitchRCMenu;
var iSetMapActionLinePnt=-1;
var plSetMapActionObject;
var smc00a;
var smc00b;
var smc01;
var smc02;
var smc03;
var smc04;
var smc05;
var smc08;
var smc09;
var smc10=new Array();
var smc11;
var smc12=new Array();
var smc13;
var CBClickEvent;
var CBRClickEvent;
var CBDBClickEvent;
var CBPlacardClickEvent;
var CBGetCursorXY;
var CBFlashMap;
var CBMapMove;
var CBPlacardK3Open;
var CBMapDragOver;
var CBPLDragOver;
var CBPLMouseOver;
var CBPLMouseOut;
var CBMapDragCreate;
var CBMapActionCreate;
var arNGVersion=navigator.appVersion.split("MSIE");
var iNGVersion=parseFloat(arNGVersion[1]);
setInterval("OnTimer()",10);
function GWMapViewInfo(){
this.iLayer=0;
this.iScale=0;
this.iRTx=0;
this.iRTy=0;
this.iLBx=0;
this.iLBy=0;
}
function GWMapIcon(_1,iw,ih,_4,_5){
this.soUrl=_1;
this.iow=iw;
this.ioh=ih;
this.iopx=_4;
this.iopy=_5;
}
function GWMapIcons(){
this.Icons=new Array();
this.iCount=0;
this.AddIcon=OAddIcon;
function OAddIcon(_6){
if(typeof (_6.soUrl)=="undefined"){
return -1;
}
this.Icons[this.iCount++]=_6;
return this.iCount;
}
}
function GWPolyLine(_7,_8,_9,_a){
this.StPoint=_7;
this.LtPoint=_7;
this.iLineWidth=_8;
this.sColor=_9;
this.AddPoint=OAddPoint;
if(typeof (_a)=="undefined"){
this.iType=0;
}else{
this.iType=_a;
}
function OAddPoint(_b){
_b.oPrePoint=this.LtPoint;
this.LtPoint.oNextPoint=_b;
this.LtPoint=_b;
}
}
function GWPoint(_c,_d,_e,_f){
this.iX=_c;
this.iY=_d;
this.iSize=_e;
this.sColor=_f;
this.oPrePoint;
this.oNextPoint;
}
var PLCRD_STATUS=new Array();
var oGPlcrd=new Array();
function GWPlcrd(_10,_11,_12,_13,ix,iy,_16,_17,_18,_19){
this.iStatus=0;
this.iKind=_10;
if(typeof (_11.soUrl)=="undefined"){
this.oIcon01=_11.Icons[0];
}else{
this.oIcon01=_11;
}
if(typeof (_12.soUrl)=="undefined"){
this.oIcon02=_12.Icons[0];
}else{
this.oIcon02=_12;
}
this.bCanClick=_13;
this.iLx=ix;
this.iLy=iy;
this.iLStr01=_16;
this.iLStr02=_17;
this.sVid=_18;
this.sTag=_19;
this.getCID=OgetCID;
this.getXY=OgetXY;
this.oNIcon01=_11;
this.oNIcon02=_12;
function OgetCID(){
return this.sVid;
}
function OgetXY(){
return Array(this.iLx,this.iLy);
}
}
function GWMap(mp){
var _1b;
var _1c;
this.AddPlacard=OAddPlacard;
this.AddPolyLine=OAddPolyLine;
this.ClosePlacardK3=OClosePlacardK3;
this.CloseRCMenu=OCloseRCMenu;
this.GetMapStatus=OGetMapStatus;
this.GetMapViewInfo=OGetMapViewInfo;
this.GetPlacardInfo=OGetPlacardInfo;
this.MoveTo=OMoveTo;
this.MoveToRXY=OMoveToRXY;
this.PlayPolyLine=OPlayPolyLine;
this.ReflashPlacard=OReflashPlacard;
this.ReflashPolyLine=OReflashPolyLine;
this.RemoveAllPlacard=ORemoveAllPlacard;
this.RemoveAllPolyLine=ORemoveAllPolyLine;
this.RemovePlacard=ORemovePlacard;
this.RemovePolyLine=ORemovePolyLine;
this.ScaleTo=OScaleTo;
this.SetCBFunction=OSetCBFunction;
this.SetMapAction=OSetMapAction;
this.SetMapDrag=OSetMapDrag;
this.SetMapStartRXY=OSetMapStartRXY;
this.SetMapStatus=OSetMapStatus;
this.SetMapStyle=OSetMapStyle;
this.SetPlacardDragDrog=OSetPlacardDragDrog;
this.SetPlayPLSpeed=OSetPlayPLSpeed;
this.SetRCMenuContent=OSetRCMenuContent;
this.ShowCrossPoint=OShowCrossPoint;
this.ShowDebugInfo=OShowDebugInfo;
this.ShowEagleEyeMap=OShowEagleEyeMap;
this.ShowLayerControl=OShowLayerControl;
this.ShowScale=OShowScale;
this.SwitchRCMenu=OSwitchRCMenu;
smp00=mp;
mp.style.overflow="hidden";
if(!mp.style.position){
mp.style.position="relative";
}
mp.style.MozUserSelect="none";
mp.unselectable="on";
mp.style.backgroundColor="#99B3CC";
smp01=document.createElement("div");
smp01.style.cssText="position:absolute; left:10px; top:10px;width:250px; height:20px;z-index:99;";
smp01.unselectable="on";
mp.appendChild(smp01);
OShowDebugInfo(SHOW_DEBUG_FLAG);
iMapViewW=smp00.clientWidth;
iMapViewH=smp00.clientHeight;
smc00a=document.createElement("img");
smc00a.style.cssText="position:absolute; left:"+((Math.floor(smp00.clientWidth/2)+1)-32)+"px; top:"+(Math.floor(smp00.clientHeight/2)+1)+"px;z-index:88;cursor:pointer;";
smc00a.style.visibility="hidden";
smc00a.src=MG_IMG_BASEURL+"CrossPointA.png";
mp.appendChild(smc00a);
smc00b=document.createElement("img");
smc00b.style.cssText="position:absolute; left:"+(Math.floor(smp00.clientWidth/2)+1)+"px; top:"+((Math.floor(smp00.clientHeight/2)+1)-32)+"px;z-index:88;cursor:pointer;";
smc00b.style.visibility="hidden";
smc00b.src=MG_IMG_BASEURL+"CrossPointB.png";
mp.appendChild(smc00b);
smc01=CLoadImageTransform(-100,-100,95,SCL_DIR_ICON_B*2+SCL_DIR_ICON_W,SCL_DIR_ICON_B*2+SCL_DIR_ICON_H,SCL_DIR_ICON_B,MG_IMG_BASEURL+SCL_DIR_ICON_IA[0],false);
ObjAttachEvent(smc01,"click",sm01c);
mp.appendChild(smc01);
smc02=CLoadImageTransform(-100,-100,95,SCL_DIR_ICON_B*2+SCL_DIR_ICON_W,SCL_DIR_ICON_B*2+SCL_DIR_ICON_H,SCL_DIR_ICON_B,MG_IMG_BASEURL+SCL_DIR_ICON_IA[1],false);
ObjAttachEvent(smc02,"click",sm02c);
mp.appendChild(smc02);
smc03=CLoadImageTransform(-100,-100,95,SCL_DIR_ICON_B*2+SCL_DIR_ICON_W,SCL_DIR_ICON_B*2+SCL_DIR_ICON_H,SCL_DIR_ICON_B,MG_IMG_BASEURL+SCL_DIR_ICON_IA[2],false);
ObjAttachEvent(smc03,"click",sm03c);
mp.appendChild(smc03);
smc04=CLoadImageTransform(-100,-100,95,SCL_DIR_ICON_B*2+SCL_DIR_ICON_W,SCL_DIR_ICON_B*2+SCL_DIR_ICON_H,SCL_DIR_ICON_B,MG_IMG_BASEURL+SCL_DIR_ICON_IA[3],false);
ObjAttachEvent(smc04,"click",sm04c);
mp.appendChild(smc04);
smc05=CLoadImageTransform(-100,-100,95,SCL_DIR_ICON_B*2+SCL_DIR_ICON_W,SCL_DIR_ICON_B*2+SCL_DIR_ICON_H,SCL_DIR_ICON_B,MG_IMG_BASEURL+SCL_DIR_ICON_IA[4],false);
ObjAttachEvent(smc05,"click",sm05c);
mp.appendChild(smc05);
smc08=CLoadImageTransform(-100,-100,95,SCL_DIR_ICON_B*2+SCL_DIR_ICON_W,SCL_DIR_ICON_B*2+SCL_DIR_ICON_H,SCL_DIR_ICON_B,MG_IMG_BASEURL+SCL_DIR_ICON_IA[5],false);
ObjAttachEvent(smc08,"click",sm08c);
mp.appendChild(smc08);
smc09=CLoadImageTransform(-100,-100,95,SCL_DIR_ICON_B*2+SCL_DIR_ICON_W,SCL_DIR_ICON_B*2+SCL_DIR_ICON_H,SCL_DIR_ICON_B,MG_IMG_BASEURL+SCL_DIR_ICON_IA[6],false);
ObjAttachEvent(smc09,"click",sm09c);
mp.appendChild(smc09);
for(_1b=MG_SMP_RLEVEL_MIN;_1b<=MG_SMP_RLEVEL_MAX;_1b++){
smc10[_1b]=CLoadImageTransform(-100,-100,95,SCL_DIR_ICON_B*2+SCL_DIR_ICON_W,SCL_DIR_ICON_B*2+SCL_DIR_ICON_M,SCL_DIR_ICON_B,MG_IMG_BASEURL+SCL_DIR_ICON_IB[_1b],false);
ObjAttachEvent(smc10[_1b],"click",sm10c);
mp.appendChild(smc10[_1b]);
}
smc11=document.createElement("div");
ObjAttachEvent(smc11,"mousedown",sm11m);
mp.appendChild(smc11);
OShowScale(SHOW_SCALE_FLAG,SCL_DIR_ICON_X,SCL_DIR_ICON_Y);
for(_1b=0;_1b<LCL_BTN_ICON_N;_1b++){
sms_map_m_over=-1;
smc12[_1b]=document.createElement("div");
ObjAttachEvent(smc12[_1b],"click",sm12c);
ObjAttachEvent(smc12[_1b],"mouseover",sm12mov);
ObjAttachEvent(smc12[_1b],"mouseout",sm12mot);
mp.appendChild(smc12[_1b]);
}
OShowLayerControl(SHOW_LCTRL_FLAG,LCL_BTN_ICON_X,LCL_BTN_ICON_Y);
smc13=CLoadImageTransform(LOGO_LCTN_X,LOGO_LCTN_Y,89,LOGO_LCTN_W,LOGO_LCTN_H,0,MG_IMG_BASEURL+LOGO_LOGO_URL,SHOW_LOGO_FLAG,true,true,true);
mp.appendChild(smc13);
iMsw=Math.floor(mp.clientWidth/MG_SMP_WIDTH)+2;
iMsh=Math.floor(mp.clientHeight/MG_SMP_HEIGHT)+2;
smpZ=document.createElement("div");
smpZ.style.cssText="position:absolute; left:0px; top:0px;width:"+(iMsw*MG_SMP_WIDTH)+"px; height:"+(iMsh*MG_SMP_HEIGHT)+"px;z-index:0;";
mp.appendChild(smpZ);
smpX=document.createElement("div");
smpX.style.cssText="position:absolute; left:0px; top:0px;width:100%; height:100%; cursor:pointer; z-index:85;";
smpX.unselectable="on";
smpX.onclick=smc;
smpX.onmousedown=smd;
smpX.onmouseover=smo;
smpX.ondblclick=smdc;
if(CTRL_MOUSE_SCROLL_FLAG){
ObjAttachEvent2(smpX,"DOMMouseScroll","mousewheel",smw);
}
ObjAttachEvent(document,"mousemove",smm);
ObjAttachEvent(document,"mouseup",smu);
ObjAttachEvent(document,"contextmenu",smrc);
smpX.style.background="url("+MG_IMG_BASEURL+"sapce.png)";
mp.appendChild(smpX);
smpY=document.createElement("div");
smpY.style.cssText="position:absolute; left:0px; top:0px;width:100%; height:100%; cursor:pointer; z-index:98;";
smpY.unselectable="on";
smpY.onclick=smc2;
smpY.style.visibility=CTRL_ALL_ENEVT_FLAG?"hidden":"";
mp.appendChild(smpY);
smpdef[0]=document.createElement("img");
smpdef[0].src=MG_IMG_BASEURL+MG_DFLT_MAPU_URL;
smpdef[1]=document.createElement("img");
smpdef[1].src=MG_IMG_BASEURL+MG_DFLT_MAPD_URL;
for(_1b=0;_1b<iMsh;_1b++){
for(_1c=0;_1c<iMsw;_1c++){
smpu[_1b*iMsw+_1c]=document.createElement("img");
smpu[_1b*iMsw+_1c].style.cssText="position:absolute; left:"+(_1c*MG_SMP_WIDTH)+"px; top:"+(_1b*MG_SMP_HEIGHT)+"px; z-index:3;";
smpZ.appendChild(smpu[_1b*iMsw+_1c]);
smpd[_1b*iMsw+_1c]=document.createElement("img");
smpd[_1b*iMsw+_1c].style.cssText="position:absolute; left:"+(_1c*MG_SMP_WIDTH)+"px; top:"+(_1b*MG_SMP_HEIGHT)+"px; z-index:2;";
smpZ.appendChild(smpd[_1b*iMsw+_1c]);
smpu2[_1b*iMsw+_1c]=document.createElement("img");
smpd2[_1b*iMsw+_1c]=document.createElement("img");
}
}
ChangeMapProfile();
for(_1b=0;_1b<MG_PlCRD_MAX;_1b++){
PLCRD_STATUS[_1b]=-1;
}
iPlcrdIfno2=-1;
iPlcrdIfno2x=-1;
for(_1b=0;_1b<MG_PlCRD_SHOW_MAX;_1b++){
iPlcrd[_1b]=-2;
}
oPlcrdIfno1=document.createElement("div");
oPlcrdIfno1.style.cssText="position:absolute;z-index:35;cursor:pointer;";
oPlcrdIfno1.style.fontSize="15px";
oPlcrdIfno1.style.visibility="hidden";
oPlcrdIfno1.unselectable="on";
smpZ.appendChild(oPlcrdIfno1);
oPlcrdIfno2=document.createElement("div");
oPlcrdIfno2.style.cssText="position:absolute;z-index:86;";
oPlcrdIfno2.style.visibility="hidden";
oPlcrdIfno2.unselectable="on";
mp.appendChild(oPlcrdIfno2);
oCanvas=document.createElement("canvas");
oCanvas.style.cssText="position:absolute; left:0px; top:0px;z-index:25;";
oCanvas.width=smpZ.clientWidth;
oCanvas.height=smpZ.clientHeight;
oCanvas.style.visibility="hidden";
smpZ.appendChild(oCanvas);
if(typeof G_vmlCanvasManager!="undefined"){
G_vmlCanvasManager.initElement(oCanvas);
oCanvas=smpZ.lastChild;
}
oCtx=oCanvas.getContext("2d");
oCtx.clearRect(0,0,oCanvas.width,oCanvas.height);
oCtx.lineJoin="round";
ORemoveAllPolyLine();
for(_1b=0;_1b<4;_1b++){
smpE[_1b]=document.createElement("div");
smpE[_1b].style.visibility="hidden";
smpE[_1b].unselectable="on";
mp.appendChild(smpE[_1b]);
smpEZ[_1b]=document.createElement("div");
smpE[_1b].appendChild(smpEZ[_1b]);
smpEY[_1b]=CLoadImageTransform(80,80,80,10,10,1,MG_IMG_BASEURL+"blue.png",false,false,false,true);
smpEY[_1b].unselectable=smp00.unselectable;
smpEY[_1b].style.position="absolute";
smpEY[_1b].style.overflow="hidden";
smpEY[_1b].style.border="1px solid gray";
smpE[_1b].appendChild(smpEY[_1b]);
smpEX[_1b]=document.createElement("div");
smpEX[_1b].style.cssText="position:absolute; left:0px; top:0px;width:100%; height:100%; cursor:pointer; z-index:85;";
smpEX[_1b].unselectable="on";
smpEX[_1b].onmousedown=smed;
smpEX[_1b].ondblclick=smedc;
if(CTRL_MOUSE_SCROLL_FLAG){
ObjAttachEvent2(smpEX[_1b],"DOMMouseScroll","mousewheel",smw);
}
smpEX[_1b].style.background="url("+MG_IMG_BASEURL+"sapce.png)";
smpE[_1b].appendChild(smpEX[_1b]);
OShowEagleEyeMap(_1b,MG_EGL_EYE_SH[_1b],MG_EGL_EYE_MW[_1b],MG_EGL_EYE_MH[_1b],MG_EGL_EYE_DR[_1b],MG_EGL_EYE_MS[_1b]);
}
OSetMapStartRXY(SMS_MAP_X,SMS_MAP_Y,SMS_MAP_R);
function OShowDebugInfo(bTF){
if(bTF==true){
SHOW_DEBUG_FLAG=true;
smp01.style.visibility="";
}else{
SHOW_DEBUG_FLAG=false;
smp01.style.visibility="hidden";
}
}
function OShowCrossPoint(bTF){
smc00a.style.visibility=bTF?"":"hidden";
smc00b.style.visibility=bTF?"":"hidden";
}
function ObjAttachEvent(_1f,_20,_21){
if(_1f.addEventListener){
_1f.addEventListener(_20,_21,false);
}else{
if(_1f.attachEvent){
_1f.attachEvent("on"+_20,_21);
}else{
_1f["on"+_20]=_21;
}
}
}
function ObjAttachEvent2(_22,_23,_24,_25){
if(_22.addEventListener){
_22.addEventListener(_23,_25,false);
}else{
if(_22.attachEvent){
_22.attachEvent("on"+_24,_25);
}else{
_22["on"+_24]=_25;
}
}
}
function OSetCBFunction(_26,_27){
switch(_26){
case "ClickEvent":
CBClickEvent=_27;
break;
case "RClickEvent":
CBRClickEvent=_27;
break;
case "DBClickEvent":
CBDBClickEvent=_27;
break;
case "PlacardClickEvent":
CBPlacardClickEvent=_27;
break;
case "GetCursorXY":
CBGetCursorXY=_27;
break;
case "FlashMap":
CBFlashMap=_27;
break;
case "MapMove":
CBMapMove=_27;
break;
case "PlacardK3Open":
CBPlacardK3Open=_27;
break;
case "MapDragOver":
CBMapDragOver=_27;
break;
case "PLDragOver":
CBPLDragOver=_27;
break;
case "PLMouseOver":
CBPLMouseOver=_27;
break;
case "PLMouseOut":
CBPLMouseOut=_27;
break;
case "MapDragCreate":
CBMapDragCreate=_27;
break;
case "MapActionCreate":
CBMapActionCreate=_27;
break;
default:
}
}
function OGetMapStatus(_28){
var _29;
if(typeof (_28)!="string"){
_28="0000000000000000000000000";
}else{
_28=_28+"0000000000000000000000000";
}
_29="MapX;"+GetCenterHX()+";";
_29=_29+"MapY;"+GetCenterHY()+";";
_29=_29+"MapR;"+iFMr+";";
_29=_29+"MapL;"+SMS_MAP_L+";";
if(_28.substr(0,1)=="1"){
_29=_29+"SCLF;"+SHOW_SCALE_FLAG+";";
_29=_29+"SCLX;"+SCL_DIR_ICON_X+";";
_29=_29+"SCLY;"+SCL_DIR_ICON_Y+";";
}
return escape(_29);
}
function OSetMapStatus(_2a){
var _2b;
var _2c=new Array();
var _2d;
if(typeof (_2a)!="string"){
return false;
}
try{
_2b=unescape(_2a).split(";");
}
catch(err){
return false;
}
for(_2d=0;typeof (_2b[_2d])=="string"&&typeof (_2b[_2d+1])=="string";_2d+=2){
_2c[_2b[_2d]]=_2b[_2d+1];
}
if(typeof (_2c["MapL"])=="string"){
OSetMapStyle(Math.floor(_2c["MapL"]));
}
if(typeof (_2c["MapX"])=="string"&&typeof (_2c["MapY"])=="string"&&typeof (_2c["MapR"])=="string"){
OMoveToRXY(_2c["MapX"]*1,_2c["MapY"]*1,Math.floor(_2c["MapR"]),false);
}
if(typeof (_2c["SCLF"])=="string"&&typeof (_2c["SCLX"])=="string"&&typeof (_2c["SCLY"])=="string"){
OShowScale(_2c["SCLF"]=="true",Math.floor(_2c["SCLX"]),Math.floor(_2c["SCLY"]));
}
}
function OGetMapViewInfo(_2e){
try{
_2e.iLayer=SMS_MAP_L;
_2e.iScale=iFMr;
_2e.iRTx=GetCenterHX(0);
_2e.iRTy=GetCenterHY(0);
_2e.iLBx=GetCenterHX(smp00.clientWidth+1);
_2e.iLBy=GetCenterHY(smp00.clientHeight+1);
}
catch(err){
return false;
}
}
function OSetPlayPLSpeed(_2f,_30){
iPLAY_POLY_LINE_SPEED=_2f;
if(typeof (_30)!="undefined"){
PLAY_POLY_LINE_TIMER=_30;
}
}
function OClosePlacardK3(){
if(iPlcrdIfno2x>=0){
oGPlcrd[iPlcrdIfno2x].iStatus=0;
oPlcrdIfno2.innerHTML="";
oPlcrdIfno2.style.visibility="hidden";
}
}
function OScaleTo(iLy){
OMoveToRXY(GetCenterHX(),GetCenterHY(),iLy,false);
}
function OMoveTo(fx,fy,sm){
OMoveToRXY(fx,fy,iFMr,sm);
}
function OSetPlacardDragDrog(_35){
if(typeof (_35)=="boolean"){
MG_PlCRD_DRAG_DROG=_35;
}else{
MG_PlCRD_DRAG_DROG=true;
}
}
function CreateRCMenu(){
oSetRCMenuContent=document.createElement("div");
oSetRCMenuContent.style.cssText="position:absolute;z-index:86;";
oSetRCMenuContent.style.visibility="hidden";
oSetRCMenuContent.unselectable="on";
mp.appendChild(oSetRCMenuContent);
}
function OSwitchRCMenu(_36){
bSwitchRCMenu=_36;
}
function OSetRCMenuContent(_37){
if(typeof (oSetRCMenuContent)!="object"){
CreateRCMenu();
}
oSetRCMenuContent.innerHTML=_37;
}
function OCloseRCMenu(){
if(typeof (oSetRCMenuContent)=="object"){
oSetRCMenuContent.style.visibility="hidden";
}
}
function OSetMapDrag(_38){
if(_38>-1&&_38<3){
MG_MAP_DRAG_MODE=Math.floor(_38);
}
}
function OSetMapAction(_39){
if(_39>-1&&_39<3){
MG_MAP_ACTION_MODE=Math.floor(_39);
}
}
}
function smc(_3a){
var iX,iY;
if(!_3a){
_3a=window.event;
}
if(bMouseClickEvent){
if(CheckPLCRDClick(_3a,true)==false){
if(typeof (CBClickEvent)=="function"){
CBClickEvent(GetCenterHX(GetMouseX(_3a)-smp00.offsetLeft),GetCenterHY(GetMouseY(_3a)-smp00.offsetTop),_3a);
}
}
if(MG_MAP_ACTION_MODE>0){
iX=GetCenterHX(GetMouseX(_3a)-smp00.offsetLeft);
iY=GetCenterHY(GetMouseY(_3a)-smp00.offsetTop);
if(iSetMapActionLinePnt<0){
plSetMapActionObject=new GWPolyLine(new GWPoint(iX,iY,MG_MAP_ACTION_PW,MG_MAP_ACTION_PC),MG_MAP_ACTION_LW,MG_MAP_ACTION_LC,MG_MAP_ACTION_MODE==1?0:2);
iSetMapActionLinePnt=OAddPolyLine(plSetMapActionObject);
}else{
if(iX!=plSetMapActionObject.LtPoint.iX||iY!=plSetMapActionObject.LtPoint.iY){
plSetMapActionObject.AddPoint(new GWPoint(iX,iY,MG_MAP_ACTION_PW,MG_MAP_ACTION_PC));
}
}
OReflashPolyLine();
}
}
}
function smc2(_3d){
if(CTRL_CLICK_STOP_PROGRESS){
OnTimer(true);
}
StopEvent(_3d);
}
function smd(_3e){
if(!_3e){
_3e=window.event;
}
if(isNaN(_3e.which)||_3e.button==0){
bMouseClickEvent=true;
if(CheckPLCRDClick(_3e,false)){
if(MG_PlCRD_DRAG_DROG&&iPLMouseIndex>=0){
iSMDx=GetMouseX(_3e);
iSMDy=GetMouseY(_3e);
iSMDlx=iPLMouseIndex;
iSMDly=-1;
iSMDex=oGPlcrd[iPLMouseIndex].iLx;
iSMDey=oGPlcrd[iPLMouseIndex].iLy;
iMFNum=4;
}
}else{
switch(MG_MAP_DRAG_MODE){
case 0:
iSMDx=GetMouseX(_3e);
iSMDy=GetMouseY(_3e);
iSMDlx=GetCenterHX();
iSMDly=GetCenterHY();
iSMDex=iSMDlx;
iSMDey=iSMDly;
iMFNum=1;
break;
case 1:
case 2:
iSMDx=-1;
iSMDy=-1;
iSMDlx=GetCenterHX(GetMouseX(_3e)-smp00.offsetLeft);
iSMDly=GetCenterHY(GetMouseY(_3e)-smp00.offsetTop);
iSMDex=iSMDlx;
iSMDey=iSMDly;
iMFNum=4+MG_MAP_DRAG_MODE;
break;
}
}
if(SHOW_DEBUG_FLAG){
smp01.innerHTML="smd = "+Math.floor(GetCenterHX())+" , "+Math.floor(GetCenterHY());
}
}
}
function smed(_3f){
var ix;
var iy;
var _42;
if(!_3f){
_3f=window.event;
}
ix=GetMouseX(_3f)-smp00.offsetLeft;
iy=GetMouseY(_3f)-smp00.offsetTop;
for(_42=0;_42<4;_42++){
if(MG_EGL_EYE_SH[_42]==true){
if(ix>=smpE[_42].offsetLeft&&ix<smpE[_42].offsetLeft+smpE[_42].clientWidth&&iy>=smpE[_42].offsetTop&&iy<smpE[_42].offsetTop+smpE[_42].clientHeight){
iSMDL=_42;
break;
}
}
}
iSMDx=GetMouseX(_3f);
iSMDy=GetMouseY(_3f);
iSMDlx=GetCenterHX();
iSMDly=GetCenterHY();
iSMDex=iSMDlx;
iSMDey=iSMDly;
iMFNum=3;
}
function smu(_43){
var _44;
switch(iMFNum){
case 1:
if((iSMDex!=iSMDlx||iSMDey!=iSMDly)&&typeof (CBMapDragOver)=="function"){
CBMapDragOver(iFMr,GetCenterHX(0),GetCenterHY(0),GetCenterHX(smp00.clientWidth),GetCenterHY(smp00.clientHidth));
}
break;
case 3:
if(iSMDex!=iSMDlx||iSMDey!=iSMDly){
OMoveToRXY(iSMDex,iSMDey,iFMr,true);
}
break;
case 4:
if(typeof (CBPLDragOver)=="function"){
CBPLDragOver(iSMDlx);
}
break;
case 5:
if(iSMDx>=0){
if(typeof (CBMapDragCreate)=="function"){
CBMapDragCreate(iSMDx,iSMDlx,iSMDly,iSMDex,iSMDey);
}
}
break;
case 6:
if(iSMDx>=0){
ORemovePolyLine(iSMDx);
OReflashPolyLine();
iSMDx=Math.abs(iSMDex-iSMDlx);
iSMDy=Math.abs(iSMDey-iSMDly);
for(_44=MG_SMP_RLEVEL_MIN;_44<MG_SMP_RLEVEL_MAX;_44++){
if(Math.abs(smp00.clientWidth/MG_MAP_LOCACTION_W[_44]*MG_MAP_LOCACTION_SW[_44]*1.2)>iSMDx&&Math.abs(smp00.clientHeight/MG_MAP_LOCACTION_H[_44]*MG_MAP_LOCACTION_SH[_44]*1.2)>iSMDy){
break;
}
}
OMoveToRXY((iSMDlx+iSMDex)/2,(iSMDly+iSMDey)/2,_44,false);
}
break;
}
iMFNum=0;
}
var iNeedRClick=1;
var lNeedRClickX=-1;
var lNeedRClickY=-1;
function smrc(_45){
if(!_45){
_45=window.event;
}
if(GetMouseX(_45)>=smp00.offsetLeft&&GetMouseX(_45)<=smp00.offsetLeft+smp00.clientWidth&&GetMouseY(_45)>=smp00.offsetTop&&GetMouseY(_45)<=smp00.offsetTop+smp00.clientHeight){
if(iNeedRClick==1||lNeedRClickX!=GetMouseX(_45)||lNeedRClickY!=GetMouseY(_45)){
iNeedRClick=0;
lNeedRClickX=GetMouseX(_45);
lNeedRClickY=GetMouseY(_45);
if(smpY.style.visibility==""){
smc2(_45);
}else{
if(typeof (CBRClickEvent)=="function"){
CBRClickEvent(GetCenterHX(GetMouseX(_45)-smp00.offsetLeft),GetCenterHY(GetMouseY(_45)-smp00.offsetTop),_45);
}
if(bSwitchRCMenu==true){
if(typeof (oSetRCMenuContent)!="object"){
CreateRCMenu();
}
oSetRCMenuContent.style.left=(GetMouseX(_45)-smp00.offsetLeft)+"px";
oSetRCMenuContent.style.top=(GetMouseY(_45)-smp00.offsetTop)+"px";
oSetRCMenuContent.style.visibility="";
}
}
}
StopEvent(_45);
return false;
}
}
function smm(_46){
var ix,iy;
if(!_46){
_46=window.event;
}
bMouseClickEvent=false;
ix=GetMouseX(_46);
iy=GetMouseY(_46);
switch(iMFNum){
case 1:
smm01(_46,ix,iy);
break;
case 2:
sm10c(_46);
if(isNaN(_46.which)&&_46.button!=MOUSE_BTN_LEFT){
smu(_46);
}
break;
case 3:
smm03(_46,ix,iy);
break;
case 4:
smm04(_46,ix,iy);
break;
case 5:
case 6:
smm05(_46,ix,iy);
break;
}
if(SHOW_DEBUG_FLAG){
smp01.innerHTML="smm = "+Math.floor(GetCenterHX())+" , "+Math.floor(GetCenterHY());
}
if(GetMouseX(_46)>=smp00.offsetLeft&&GetMouseX(_46)<=smp00.offsetLeft+smp00.clientWidth&&GetMouseY(_46)>=smp00.offsetTop&&GetMouseY(_46)<=smp00.offsetTop+smp00.clientHeight){
if(typeof (CBGetCursorXY)=="function"){
CBGetCursorXY(GetCenterHX(GetMouseX(_46)-smp00.offsetLeft),GetCenterHY(GetMouseY(_46)-smp00.offsetTop),_46);
}
}
CheckPLCRDClick(_46,false);
}
function smm01(_49,ix,iy){
iSMDex=iSMDlx+GetCenterHX(iSMDx)-GetCenterHX(ix);
iSMDey=iSMDly+GetCenterHY(iSMDy)-GetCenterHY(iy);
OMoveToRXY(iSMDex,iSMDey,iFMr,false);
if(typeof (CBMapMove)=="function"){
CBMapMove(iFMr,GetCenterHX(0),GetCenterHY(0),GetCenterHX(smp00.clientWidth),GetCenterHY(smp00.clientHidth));
}
if(isNaN(_49.which)&&_49.button!=MOUSE_BTN_LEFT){
smu(_49);
}
StopEvent(_49);
}
function smm03(_4c,ix,iy){
var _4f;
iSMDex=iSMDlx+(GetCenterHX(iSMDx)-GetCenterHX(ix))/((MG_MAP_LOCACTION_SW[iFMr]/MG_MAP_LOCACTION_W[iFMr])/(MG_MAP_LOCACTION_SW[iFMEr[iSMDL]]/MG_MAP_LOCACTION_W[iFMEr[iSMDL]]));
iSMDey=iSMDly+(GetCenterHY(iSMDy)-GetCenterHY(iy))/((MG_MAP_LOCACTION_SH[iFMr]/MG_MAP_LOCACTION_H[iFMr])/(MG_MAP_LOCACTION_SH[iFMEr[iSMDL]]/MG_MAP_LOCACTION_H[iFMEr[iSMDL]]));
for(_4f=0;_4f<4;_4f++){
OMoveToRXYE(_4f,iSMDex,iSMDey,iFMr,false);
}
if(isNaN(_4c.which)&&_4c.button!=MOUSE_BTN_LEFT){
smu(_4c);
}
StopEvent(_4c);
}
function smm04(_50,ix,iy){
var _53;
oGPlcrd[iSMDlx].iLx=iSMDex-GetCenterHX(iSMDx)+GetCenterHX(ix);
oGPlcrd[iSMDlx].iLy=iSMDey-GetCenterHY(iSMDy)+GetCenterHY(iy);
OReflashPlacard();
if(isNaN(_50.which)&&_50.button!=MOUSE_BTN_LEFT){
smu(_50);
}
StopEvent(_50);
}
function smm05(_54,ix,iy){
var _57;
var p1;
iSMDex=GetCenterHX(ix-smp00.offsetLeft<0?0:(ix-smp00.offsetLeft>=smp00.clientWidth?smp00.clientWidth-1:ix-smp00.offsetLeft));
iSMDey=GetCenterHY(iy-smp00.offsetTop<0?0:(iy-smp00.offsetTop>=smp00.clientHeight?smp00.clientHeight-1:iy-smp00.offsetTop));
if(iSMDx>=0){
ORemovePolyLine(iSMDx);
}
p1=new GWPolyLine(new GWPoint(iSMDlx,iSMDly),MG_MAP_DRAG_MSK_LW,MG_MAP_DRAG_MSK_COLOR,MG_MAP_DRAG_MSK_MODE);
p1.AddPoint(new GWPoint(iSMDlx,iSMDey));
p1.AddPoint(new GWPoint(iSMDex,iSMDey));
p1.AddPoint(new GWPoint(iSMDex,iSMDly));
iSMDx=OAddPolyLine(p1);
OReflashPolyLine();
if(isNaN(_54.which)&&_54.button!=MOUSE_BTN_LEFT){
smu(_54);
}
StopEvent(_54);
}
function smo(){
}
function smw(_59){
var _5a=0;
var _5b;
if(!_59){
_59=window.event;
}
if(_59.wheelDelta){
_5a=_59.wheelDelta/120;
if(window.opera){
_5a=-_5a;
}
}else{
if(_59.detail){
_5a=-1*_59.detail/3;
}
}
if(_5a<0){
_5b=iFMr+1;
}else{
if(_5a>0){
_5b=iFMr-1;
}else{
_5b=iFMr;
}
}
if(_5b!=iFMr){
OMoveToRXY(GetCenterHX(),GetCenterHY(),_5b,false);
}
if(SHOW_DEBUG_FLAG){
smp01.innerHTML="smw = "+iFMr+" , "+_5a;
}
StopEvent(_59);
return false;
}
function smdc(_5c){
if(!_5c){
_5c=window.event;
}
if(CheckPLCRDClick(_5c,false)==false){
switch(MG_MAP_ACTION_MODE){
case 0:
switch(MG_DBCLICK_TYPE){
case 2:
OMoveToRXY(GetCenterHX(GetMouseX(_5c)-smp00.offsetLeft),GetCenterHY(GetMouseY(_5c)-smp00.offsetTop),iFMr-1,false);
break;
default:
OMoveToRXY(GetCenterHX(GetMouseX(_5c)-smp00.offsetLeft),GetCenterHY(GetMouseY(_5c)-smp00.offsetTop),iFMr,true);
}
if(typeof (CBDBClickEvent)=="function"){
CBDBClickEvent(GetCenterHX(GetMouseX(_5c)-smp00.offsetLeft),GetCenterHY(GetMouseY(_5c)-smp00.offsetTop),_5c);
}
break;
case 1:
case 2:
if(iSetMapActionLinePnt>=0){
if(typeof (CBMapActionCreate)=="function"){
CBMapActionCreate(iSetMapActionLinePnt,plSetMapActionObject);
}
iSetMapActionLinePnt=-1;
}
break;
}
}
}
function smedc(_5d){
var ix;
var iy;
var _60;
if(!_5d){
_5d=window.event;
}
ix=GetMouseX(_5d)-smp00.offsetLeft;
iy=GetMouseY(_5d)-smp00.offsetTop;
for(_60=0;_60<4;_60++){
if(MG_EGL_EYE_SH[_60]==true){
if(ix>=smpE[_60].offsetLeft&&ix<smpE[_60].offsetLeft+smpE[_60].clientWidth&&iy>=smpE[_60].offsetTop&&iy<smpE[_60].offsetTop+smpE[_60].clientHeight){
ix=smp00.clientWidth/2-(smpE[_60].clientWidth/2-(ix-smpE[_60].offsetLeft-2))/((MG_MAP_LOCACTION_SW[iFMr]/MG_MAP_LOCACTION_W[iFMr])/(MG_MAP_LOCACTION_SW[iFMEr[_60]]/MG_MAP_LOCACTION_W[iFMEr[_60]]));
iy=smp00.clientHeight/2-(smpE[_60].clientHeight/2-(iy-smpE[_60].offsetTop-2))/((MG_MAP_LOCACTION_SH[iFMr]/MG_MAP_LOCACTION_H[iFMr])/(MG_MAP_LOCACTION_SH[iFMEr[_60]]/MG_MAP_LOCACTION_H[iFMEr[_60]]));
OMoveToRXY(GetCenterHX(ix),GetCenterHY(iy),iFMr,true);
break;
}
}
}
if(typeof (CBDBClickEvent)=="function"){
CBDBClickEvent(GetCenterHX(ix),GetCenterHY(iy),_5d);
}
}
function sm01c(_61){
if(!_61){
_61=window.event;
}
OMoveToRXY(GetCenterHX(),GetCenterHY(smp00.clientHeight/6),iFMr,true);
}
function sm02c(_62){
if(!_62){
_62=window.event;
}
OMoveToRXY(GetCenterHX(),GetCenterHY(smp00.clientHeight*5/6),iFMr,true);
}
function sm03c(_63){
if(!_63){
_63=window.event;
}
OMoveToRXY(GetCenterHX(smp00.clientWidth/6),GetCenterHY(),iFMr,true);
}
function sm04c(_64){
if(!_64){
_64=window.event;
}
OMoveToRXY(GetCenterHX(smp00.clientWidth*5/6),GetCenterHY(),iFMr,true);
}
function sm05c(_65){
if(!_65){
_65=window.event;
}
OMoveToRXY(SMS_MAP_X,SMS_MAP_Y,SMS_MAP_R,true);
}
function sm08c(_66){
if(!_66){
_66=window.event;
}
OMoveToRXY(GetCenterHX(),GetCenterHY(),iFMr-1,false);
}
function sm09c(_67){
if(!_67){
_67=window.event;
}
OMoveToRXY(GetCenterHX(),GetCenterHY(),iFMr+1,false);
}
function sm10c(_68){
var isy;
if(!_68){
_68=window.event;
}
isy=GetMapSCLLvl(_68);
if(isy!=iFMr){
OMoveToRXY(GetCenterHX(),GetCenterHY(),isy,false);
}
if(SHOW_DEBUG_FLAG){
smp01.innerHTML="sm10c = "+isy;
}
}
function sm11m(_6a){
iMFNum=2;
}
function sm12c(_6b){
var isy;
var lbx;
if(!_6b){
_6b=window.event;
}
lbx=LCL_BTN_ICON_X>=0?LCL_BTN_ICON_X:smp00.clientWidth+LCL_BTN_ICON_X-((LCL_BTN_ICON_W+LCL_BTN_ICON_B*2+LCL_BTN_ICON_S)*LCL_BTN_ICON_N-LCL_BTN_ICON_S);
isy=GetMouseX(_6b)-smp00.offsetLeft-lbx;
isy=Math.floor(isy/(LCL_BTN_ICON_B*2+LCL_BTN_ICON_W+LCL_BTN_ICON_S));
if(isy!=SMS_MAP_L){
OSetMapStyle(isy);
}
if(SHOW_DEBUG_FLAG){
smp01.innerHTML="sm12c = "+isy;
}
}
function sm12mov(_6e){
var isy;
var lbx;
if(!_6e){
_6e=window.event;
}
lbx=LCL_BTN_ICON_X>=0?LCL_BTN_ICON_X:smp00.clientWidth+LCL_BTN_ICON_X-((LCL_BTN_ICON_W+LCL_BTN_ICON_B*2+LCL_BTN_ICON_S)*LCL_BTN_ICON_N-LCL_BTN_ICON_S);
isy=GetMouseX(_6e)-smp00.offsetLeft-lbx;
isy=Math.floor(isy/(LCL_BTN_ICON_B*2+LCL_BTN_ICON_W+LCL_BTN_ICON_S));
if(isy!=SMS_MAP_L&&isy!=sms_map_m_over){
LoadImageTransform(smc12[isy],LCL_BTN_ICON_X+(LCL_BTN_ICON_W+LCL_BTN_ICON_B*2+LCL_BTN_ICON_S)*(LCL_BTN_ICON_X>=0?isy:(isy+1-LCL_BTN_ICON_N)),LCL_BTN_ICON_Y,97,LCL_BTN_ICON_W,LCL_BTN_ICON_H,LCL_BTN_ICON_B,MG_IMG_BASEURL+"lcl"+isy+"1.png",true,LCL_BTN_ICON_X<0,true);
sms_map_m_over=isy;
}
if(SHOW_DEBUG_FLAG){
smp01.innerHTML="sm12mov = "+isy;
}
}
function sm12mot(_71){
if(sms_map_m_over>=0){
if(sms_map_m_over!=SMS_MAP_L){
LoadImageTransform(smc12[sms_map_m_over],LCL_BTN_ICON_X+(LCL_BTN_ICON_W+LCL_BTN_ICON_B*2+LCL_BTN_ICON_S)*(LCL_BTN_ICON_X>=0?sms_map_m_over:(sms_map_m_over+1-LCL_BTN_ICON_N)),LCL_BTN_ICON_Y,97,LCL_BTN_ICON_W,LCL_BTN_ICON_H,LCL_BTN_ICON_B,MG_IMG_BASEURL+"lcl"+sms_map_m_over+"0.png",true,LCL_BTN_ICON_X<0,true);
}
sms_map_m_over=-1;
}
if(SHOW_DEBUG_FLAG){
smp01.innerHTML="sm12mot";
}
}
var iPLMouseIndex=-1;
function CheckPLCRDClick(_72,_73){
var isx;
var isy;
var _76;
var _77;
var iRV;
var _79;
var _7a;
var _7b;
var _7c;
if(!_72){
_72=window.event;
}
isx=GetMouseX(_72)-smp00.offsetLeft-iFMx;
isy=GetMouseY(_72)-smp00.offsetTop-iFMy;
iRV=false;
_7b=false;
_79=-1;
_7c=-1;
if(oPlcrdIfno1.style.visibility==""&&isx>=oPlcrdIfno1.offsetLeft&&isx<oPlcrdIfno1.offsetLeft+oPlcrdIfno1.clientWidth&&isy>=oPlcrdIfno1.offsetTop&&isy<oPlcrdIfno1.offsetTop+oPlcrdIfno1.clientHeight){
if(_73){
oPlcrdIfno1.style.visibility="hidden";
_79=99999999;
_7b=true;
iRV=true;
}else{
for(_76=MG_PlCRD_SHOW_MAX-1;_76>=0;_76--){
if(iPlcrd[_76]>=0){
switch(oGPlcrd[iPlcrd[_76]].iKind){
case 0:
case 3:
case 4:
if(oGPlcrd[iPlcrd[_76]].iStatus==1){
_79=_76;
_76=0;
}
}
}
}
iRV=true;
}
}else{
for(_77=0;_77<2;_77++){
for(_76=MG_PlCRD_SHOW_MAX-1;_76>=0;_76--){
if(iPlcrd[_76]>=0&&((_77==0&&iPlcrd[_76]==iPLMouseIndex)||_77==1)){
switch(oGPlcrd[iPlcrd[_76]].iKind){
case 0:
case 1:
case 3:
case 4:
if(iRV==false&&isx>=iPlcrdX[_76]-oGPlcrd[iPlcrd[_76]].oIcon01.iopx&&isx<iPlcrdX[_76]-oGPlcrd[iPlcrd[_76]].oIcon01.iopx+oPlcrd[_76].clientWidth&&isy>=iPlcrdY[_76]-oGPlcrd[iPlcrd[_76]].oIcon01.iopy&&isy<iPlcrdY[_76]-oGPlcrd[iPlcrd[_76]].oIcon01.iopy+oPlcrd[_76].clientHeight){
if(_73&&oGPlcrd[iPlcrd[_76]].iStatus==0){
if(oGPlcrd[iPlcrd[_76]].iKind==0||oGPlcrd[iPlcrd[_76]].iKind==3||oGPlcrd[iPlcrd[_76]].iKind==4){
oGPlcrd[iPlcrd[_76]].iStatus=1;
if(oGPlcrd[iPlcrd[_76]].iKind==0){
oPlcrdIfno1.innerHTML=GetHTMLPlacard(300,150,oGPlcrd[iPlcrd[_76]].iLStr01);
oPlcrdIfno1.style.left=(iPlcrdX[_76]+oGPlcrd[iPlcrd[_76]].oIcon01.iow/2)+"px";
oPlcrdIfno1.style.bottom=(smpZ.clientHeight-iPlcrdY[_76]+oGPlcrd[iPlcrd[_76]].oIcon01.ioh)+"px";
oPlcrdIfno1.style.visibility="";
iPlcrdIfno2x=-1;
oPlcrdIfno2.innerHTML="";
oPlcrdIfno2.style.visibility="hidden";
}else{
iPlcrdIfno2=_76;
iPlcrdIfno2x=iPlcrd[_76];
if(typeof (CBPlacardK3Open)=="function"){
CBPlacardK3Open(oPlcrdIfno2,iPlcrdIfno2x);
}else{
oPlcrdIfno2.innerHTML=GetHTMLPlacard(300,150,oGPlcrd[iPlcrdIfno2x].iLStr01);
}
oPlcrdIfno2.style.position="absolute";
oPlcrdIfno2.style.zIndex=86;
oPlcrdIfno2.style.left=(GetCenterLX(oGPlcrd[iPlcrdIfno2x].iLx)+iFMx+oGPlcrd[iPlcrdIfno2x].oIcon01.iow/2)+"px";
oPlcrdIfno2.style.bottom=(smp00.clientHeight-GetCenterLY(oGPlcrd[iPlcrdIfno2x].iLy)-iFMy+oGPlcrd[iPlcrdIfno2x].oIcon01.ioh)+"px";
oPlcrdIfno2.style.visibility="";
oPlcrdIfno1.style.visibility="hidden";
}
_7b=true;
}
}
if(oGPlcrd[iPlcrd[_76]].iStatus==0){
iRV=true;
}
_79=_76;
_77=2;
_76=0;
}
break;
}
}
}
}
}
if(_7b==true){
for(_76=MG_PlCRD_SHOW_MAX-1;_76>=0;_76--){
if(iPlcrd[_76]>=0){
switch(oGPlcrd[iPlcrd[_76]].iKind){
case 0:
case 3:
case 4:
if(_79>=0&&_79!=_76&&oGPlcrd[iPlcrd[_76]].iStatus==1){
oGPlcrd[iPlcrd[_76]].iStatus=0;
if(_79==99999999){
_79=_76;
}
}
}
}
}
}
if(_73==true&&iRV==true){
if(_79>=0&&typeof (CBPlacardClickEvent)=="function"){
CBPlacardClickEvent(iPlcrd[_79],oGPlcrd[iPlcrd[_79]].iStatus);
}
}
if(_79<0||_79==99999999){
_79=-1;
}else{
_79=iPlcrd[_79];
}
if(iPLMouseIndex!=_79){
var _7d;
var _7e;
_7d=false;
if(iPLMouseIndex!=-1){
if(typeof (CBPLMouseOut)=="function"){
CBPLMouseOut(iPLMouseIndex);
}
_7e=iPLMouseIndex;
if(typeof (oGPlcrd[_7e].oNIcon01.soUrl)=="undefined"){
oGPlcrd[_7e].oIcon01=oGPlcrd[_7e].oNIcon01.Icons[0];
_7d=true;
}
if(typeof (oGPlcrd[_7e].oNIcon02.soUrl)=="undefined"){
oGPlcrd[_7e].oIcon02=oGPlcrd[_7e].oNIcon02.Icons[0];
_7d=true;
}
}
if(_79!=-1){
if(typeof (CBPLMouseOver)=="function"){
CBPLMouseOver(_79);
}
_7e=_79;
if(oGPlcrd[_7e].iKind==4&&_73==false){
CheckPLCRDClick(_72,true);
}
if(typeof (oGPlcrd[_7e].oNIcon01.soUrl)=="undefined"){
oGPlcrd[_7e].oIcon01=oGPlcrd[_7e].oNIcon01.Icons[1];
_7d=true;
}
if(typeof (oGPlcrd[_7e].oNIcon02.soUrl)=="undefined"){
oGPlcrd[_7e].oIcon02=oGPlcrd[_7e].oNIcon02.Icons[1];
_7d=true;
}
}
if(_7d==true){
OReflashPlacard();
}
for(_76=0;_76<MG_PlCRD_SHOW_MAX;_76++){
if(iPlcrd[_76]==iPLMouseIndex&&iPLMouseIndex>=0){
oPlcrd[_76].style.zIndex=31;
}
if(iPlcrd[_76]==_79&&_79>=0){
oPlcrd[_76].style.zIndex=32;
}
}
iPLMouseIndex=_79;
}
return iRV;
}
function GetMapSCLLvl(_7f){
var isy;
isy=SCL_DIR_ICON_Y+(SCL_DIR_ICON_B*2+SCL_DIR_ICON_H+SCL_DIR_ICON_S)*4;
isy=GetMouseY(_7f)-smp00.offsetTop-isy;
if(SCL_DIR_ICON_B*2+SCL_DIR_ICON_M==0){
isy=MG_SMP_LRL_MIN[SMS_MAP_L];
}else{
isy=Math.floor(isy/(SCL_DIR_ICON_B*2+SCL_DIR_ICON_M))+MG_SMP_LRL_MIN[SMS_MAP_L];
}
return isy;
}
var iStartX=3;
var iStartY=1;
var iStartR=-1;
function ChangeMapPic(_81,_82){
var _83;
if(_81==0&&_82==0&&iStartR==iFMr){
return;
}
iStartX=iStartX+_81;
iStartY=iStartY+_82;
iStartR=iFMr;
ChangeMapPicT();
for(_83=0;_83<4;_83++){
ChangeMapEArea(_83);
}
}
var iSMS_MAP_LST=-1;
var iFMrST=-1;
var iStartXST=-1;
var iStartYST=-1;
function ChangeMapPicT(){
var _84;
var _85;
var ssu=new Array();
var ssd=new Array();
for(_84=0;_84<iMsh;_84++){
for(_85=0;_85<iMsw;_85++){
if(MG_MAP_LBDIR_U[SMS_MAP_L]!=""){
ssu[_84*iMsw+_85]=smpu[_84*iMsw+_85].src;
}
if(MG_MAP_LBDIR_D[SMS_MAP_L]!=""){
ssd[_84*iMsw+_85]=smpd[_84*iMsw+_85].src;
}
}
}
for(_84=0;_84<iMsh;_84++){
for(_85=0;_85<iMsw;_85++){
if(MG_MAP_LBDIR_U[SMS_MAP_L]!=""){
smpu2[_84*iMsw+_85].src=MG_MAP_BASEURL+MG_MAP_LBDIR_U[SMS_MAP_L]+iFMr+"/"+Math.floor((iStartY+_84)/4+1)+"/"+Math.floor((iStartX+_85)/5+1)+"/"+Math.floor((iStartY+_84)/4+1)+"_"+Math.floor((iStartX+_85)/5+1)+"_"+((iStartY+_84)%4+1)+"_"+((iStartX+_85)%5+1)+".png";
}
if(MG_MAP_LBDIR_D[SMS_MAP_L]!=""){
smpd2[_84*iMsw+_85].src=MG_MAP_BASEURL+MG_MAP_LBDIR_D[SMS_MAP_L]+iFMr+"/"+Math.floor((iStartY+_84)/4+1)+"/"+Math.floor((iStartX+_85)/5+1)+"/"+Math.floor((iStartY+_84)/4+1)+"_"+Math.floor((iStartX+_85)/5+1)+"_"+((iStartY+_84)%4+1)+"_"+((iStartX+_85)%5+1)+".png";
}
}
}
for(_84=0;_84<iMsh;_84++){
for(_85=0;_85<iMsw;_85++){
if(MG_MAP_LBDIR_U[SMS_MAP_L]!=""){
if(iSMS_MAP_LST==SMS_MAP_L&&iFMr==iFMrST&&iStartX+_85>=iStartXST&&iStartX+_85<iStartXST+iMsw&&iStartY+_84>=iStartYST&&iStartY+_84<iStartYST+iMsh){
smpu[_84*iMsw+_85].src=ssu[(_84+iStartY-iStartYST)*iMsw+_85+iStartX-iStartXST];
}else{
smpu[_84*iMsw+_85].src=smpdef[0].src;
}
}
if(MG_MAP_LBDIR_D[SMS_MAP_L]!=""){
if(iSMS_MAP_LST==SMS_MAP_L&&iFMr==iFMrST&&iStartX+_85>=iStartXST&&iStartX+_85<iStartXST+iMsw&&iStartY+_84>=iStartYST&&iStartY+_84<iStartYST+iMsh){
smpd[_84*iMsw+_85].src=ssd[(_84+iStartY-iStartYST)*iMsw+_85+iStartX-iStartXST];
}else{
smpd[_84*iMsw+_85].src=smpdef[1].src;
}
}
}
}
iSMS_MAP_LST=SMS_MAP_L;
iFMrST=iFMr;
iStartXST=iStartX;
iStartYST=iStartY;
iNeedDectIMG=1;
OReflashPlacard();
OReflashPolyLine();
if(typeof (CBFlashMap)=="function"){
CBFlashMap(iFMr,GetCenterHX(iFMx),GetCenterHY(iFMy),GetCenterHX(iFMx+iMsw*MG_SMP_WIDTH),GetCenterHY(iFMy+iMsh*MG_SMP_HEIGHT));
}
}
var StartEX=new Array();
var StartEY=new Array();
var StartER=new Array();
StartEX[0]=3;
StartEY[0]=1;
StartER[0]=-1;
StartEX[1]=3;
StartEY[1]=1;
StartER[1]=-1;
StartEX[2]=3;
StartEY[2]=1;
StartER[2]=-1;
StartEX[3]=3;
StartEY[3]=1;
StartER[3]=-1;
function ChangeMapPicE(_88,_89,_8a){
if(MG_EGL_EYE_SH[_88]==false){
return;
}
if(_89==0&&_8a==0&&StartER[_88]==iFMEr[_88]){
return;
}
StartEX[_88]=StartEX[_88]+_89;
StartEY[_88]=StartEY[_88]+_8a;
StartER[_88]=iFMEr[_88];
ChangeMapPicET(_88);
}
function ChangeMapPicET(_8b){
var _8c;
var _8d;
if(MG_EGL_EYE_SH[_8b]==false){
return;
}
for(_8c=0;_8c<iMsEh[_8b];_8c++){
for(_8d=0;_8d<iMsEw[_8b];_8d++){
if(MG_MAP_LBDIR_E[_8b][SMS_MAP_L]!=""){
smpe[_8b][_8c*iMsEw[_8b]+_8d].src=MG_MAP_BASEURL+MG_MAP_LBDIR_E[SMS_MAP_L][_8b]+iFMEr[_8b]+"/"+Math.floor((StartEY[_8b]+_8c)/4+1)+"/"+Math.floor((StartEX[_8b]+_8d)/5+1)+"/"+Math.floor((StartEY[_8b]+_8c)/4+1)+"_"+Math.floor((StartEX[_8b]+_8d)/5+1)+"_"+((StartEY[_8b]+_8c)%4+1)+"_"+((StartEX[_8b]+_8d)%5+1)+".png";
}
}
}
ChangeMapEArea(_8b);
}
function ChangeMapEArea(_8e){
var _8f;
var _90;
if(MG_EGL_EYE_SH[_8e]==false){
return;
}
_8f=Math.floor((MG_MAP_LOCACTION_SW[iFMr]/MG_MAP_LOCACTION_W[iFMr])/(MG_MAP_LOCACTION_SW[iFMEr[_8e]]/MG_MAP_LOCACTION_W[iFMEr[_8e]])*smp00.clientWidth);
_90=Math.floor((MG_MAP_LOCACTION_SH[iFMr]/MG_MAP_LOCACTION_H[iFMr])/(MG_MAP_LOCACTION_SH[iFMEr[_8e]]/MG_MAP_LOCACTION_H[iFMEr[_8e]])*smp00.clientHeight);
smpEY[_8e].style.left=Math.floor((smpE[_8e].clientWidth-_8f)/2)+"px";
smpEY[_8e].style.top=Math.floor((smpE[_8e].clientHeight-_90)/2)+"px";
smpEY[_8e].style.width=_8f+"px";
smpEY[_8e].style.height=_90+"px";
smpEY[_8e].style.visibility=MG_EGL_EYE_MS[_8e]==true?"":"hidden";
}
function StopEvent(_91){
if(window.event){
window.event.cancelBubble=true;
}
if(_91&&_91.stopPropagation){
_91.stopPropagation();
}
}
function GetCenterHX(iCx){
if(isNaN(iCx)){
iCx=Math.floor(smp00.clientWidth/2)+1;
}
return (iStartX*MG_SMP_WIDTH+iCx-iFMx)/MG_MAP_LOCACTION_W[iFMr]*MG_MAP_LOCACTION_SW[iFMr]+MG_MAP_LOCACTION_SX[iFMr];
}
function GetCenterHY(iCy){
if(isNaN(iCy)){
iCy=(Math.floor(smp00.clientHeight/2)+1);
}
return (iStartY*MG_SMP_HEIGHT+iCy-iFMy)/MG_MAP_LOCACTION_H[iFMr]*MG_MAP_LOCACTION_SH[iFMr]+MG_MAP_LOCACTION_SY[iFMr];
}
function GetCenterLX(iCx){
if(isNaN(iCx)){
iCx=0;
}
return (iCx-MG_MAP_LOCACTION_SX[iFMr])/MG_MAP_LOCACTION_SW[iFMr]*MG_MAP_LOCACTION_W[iFMr]-iStartX*MG_SMP_WIDTH;
}
function GetCenterLY(iCy){
if(isNaN(iCy)){
iCy=0;
}
return (iCy-MG_MAP_LOCACTION_SY[iFMr])/MG_MAP_LOCACTION_SH[iFMr]*MG_MAP_LOCACTION_H[iFMr]-iStartY*MG_SMP_HEIGHT;
}
function GetMouseX(_96){
if(!_96){
_96=window.event;
}
return _96.clientX+document.body.scrollLeft;
}
function GetMouseY(_97){
if(!_97){
_97=window.event;
}
return _97.clientY+document.body.scrollTop;
}
function OShowEagleEyeMap(iLC,iSH,iMW,iMH,iDR,iMS){
var _9e;
var _9f;
var _a0;
var _a1;
if(isNaN(iLC)==false){
_a1=iLC;
}
switch(_a1){
case 0:
_a0="left:0px; top:0px;";
break;
case 1:
_a0="right:0px; top:0px;";
break;
case 2:
_a0="left:0px; bottom:0px;";
break;
default:
_a1=3;
_a0="right:0px; bottom:0px;";
}
if(isNaN(iSH)==false){
MG_EGL_EYE_SH[_a1]=iSH;
}
if(isNaN(iMW)==false){
MG_EGL_EYE_MW[_a1]=iMW;
}
if(isNaN(iMH)==false){
MG_EGL_EYE_MH[_a1]=iMH;
}
if(isNaN(iDR)==false){
MG_EGL_EYE_DR[_a1]=iDR;
}
if(isNaN(iMS)==false){
MG_EGL_EYE_MS[_a1]=iMS;
}
smpE[_a1].style.cssText="position:absolute; "+_a0+"width:"+MG_EGL_EYE_MW[_a1]+"px; height:"+MG_EGL_EYE_MH[_a1]+"px;z-index:94;border:1px solid gray;";
smpE[_a1].style.visibility=MG_EGL_EYE_SH[_a1]?"":"hidden";
smpE[_a1].style.overflow="hidden";
if(!smp00.style.position){
smp00.style.position="relative";
}
smp00.style.MozUserSelect="none";
smpE[_a1].unselectable=smp00.unselectable;
smpE[_a1].style.backgroundColor=smp00.style.backgroundColor;
iMsEw[_a1]=Math.floor(MG_EGL_EYE_MW[_a1]/MG_SMP_WIDTH)+2;
iMsEh[_a1]=Math.floor(MG_EGL_EYE_MH[_a1]/MG_SMP_HEIGHT)+2;
smpEZ[_a1].style.cssText="position:absolute; left:0px; top:0px;width:"+(iMsEw[_a1]*MG_SMP_WIDTH)+"px; height:"+(iMsEh[_a1]*MG_SMP_HEIGHT)+"px;z-index:0;";
for(_9e=0;_9e<iMsEh[_a1];_9e++){
for(_9f=0;_9f<iMsEw[_a1];_9f++){
if(typeof (smpe[_a1][_9e*iMsEw[_a1]+_9f])=="undefined"){
smpe[_a1][_9e*iMsEw[_a1]+_9f]=document.createElement("img");
smpe[_a1][_9e*iMsEw[_a1]+_9f].style.cssText="position:absolute; left:"+(_9f*MG_SMP_WIDTH)+"px; top:"+(_9e*MG_SMP_HEIGHT)+"px; z-index:3;";
smpEZ[_a1].appendChild(smpe[_a1][_9e*iMsEw[_a1]+_9f]);
}else{
smpe[_a1][_9e*iMsEw[_a1]+_9f].style.left=(_9f*MG_SMP_WIDTH)+"px";
smpe[_a1][_9e*iMsEw[_a1]+_9f].style.top=(_9e*MG_SMP_HEIGHT)+"px";
smpe[_a1][_9e*iMsEw[_a1]+_9f].style.visibility="";
}
}
}
for(_9e=iMsEw[_a1]*iMsEh[_a1];typeof (smpe[_a1][_9e])!="undefined";_9e++){
smpe[_a1][_9e].style.visibility="hidden";
}
if(MG_EGL_EYE_SH[_a1]==true){
OMoveToRXYE(_a1,GetCenterHX(),GetCenterHY(),iFMr,false);
ChangeMapEArea(_a1);
}
}
function OMoveToRXY(fx,fy,ir,sm){
var iTx;
var iAx;
var iTy;
var iAy;
var _aa=new Array();
if(ir>MG_SMP_LRL_MAX[SMS_MAP_L]){
ir=MG_SMP_LRL_MAX[SMS_MAP_L];
}
if(ir<MG_SMP_LRL_MIN[SMS_MAP_L]){
ir=MG_SMP_LRL_MIN[SMS_MAP_L];
}
if(sm==true){
OnTimer(true);
smpY.style.visibility="";
iOTFunction=1;
iOv[0]=fx;
iOv[1]=fy;
iOv[2]=ir;
iOv[3]=20;
iOv[4]=GetCenterHX();
iOv[5]=GetCenterHY();
iOv[6]=20/2;
}else{
iTx=(fx-MG_MAP_LOCACTION_SX[ir])/MG_MAP_LOCACTION_SW[ir]*MG_MAP_LOCACTION_W[ir]-(Math.floor(smp00.clientWidth/2)+1);
iAx=Math.floor(iTx/MG_SMP_WIDTH);
iFMx=iAx*MG_SMP_WIDTH-iTx;
smpZ.style.left=iFMx+"px";
iTy=(fy-MG_MAP_LOCACTION_SY[ir])/MG_MAP_LOCACTION_SH[ir]*MG_MAP_LOCACTION_H[ir]-(Math.floor(smp00.clientHeight/2)+1);
iAy=Math.floor(iTy/MG_SMP_HEIGHT);
iFMy=iAy*MG_SMP_HEIGHT-iTy;
smpZ.style.top=iFMy+"px";
if(iFMr!=ir){
iFMr=ir;
OShowScale(SHOW_SCALE_FLAG);
}
ChangeMapPic(iAx-iStartX,iAy-iStartY);
if(typeof (CBMapMove)=="function"){
CBMapMove(iFMr,GetCenterHX(0),GetCenterHY(0),GetCenterHX(smp00.clientWidth),GetCenterHY(smp00.clientHidth));
}
if(oPlcrdIfno2.style.visibility==""){
oPlcrdIfno2.style.position="absolute";
oPlcrdIfno2.style.zIndex=86;
oPlcrdIfno2.style.left=(GetCenterLX(oGPlcrd[iPlcrdIfno2x].iLx)+iFMx+oGPlcrd[iPlcrdIfno2x].oIcon01.iow/2)+"px";
oPlcrdIfno2.style.bottom=(smp00.clientHeight-GetCenterLY(oGPlcrd[iPlcrdIfno2x].iLy)-iFMy+oGPlcrd[iPlcrdIfno2x].oIcon01.ioh)+"px";
}
for(iLp1=0;iLp1<4;iLp1++){
OMoveToRXYE(iLp1,fx,fy,ir,sm);
}
}
}
function OMoveToRXYE(_ab,fx,fy,ir,sm){
var iTx;
var iAx;
var iTy;
var iAy;
if(MG_EGL_EYE_SH[_ab]&&iOTFunction!=1){
ir+=MG_EGL_EYE_DR[_ab];
if(ir>MG_SMP_LRL_MAX[SMS_MAP_L]){
ir=MG_SMP_LRL_MAX[SMS_MAP_L];
}
if(ir<MG_SMP_LRL_MIN[SMS_MAP_L]){
ir=MG_SMP_LRL_MIN[SMS_MAP_L];
}
iTx=(fx-MG_MAP_LOCACTION_SX[ir])/MG_MAP_LOCACTION_SW[ir]*MG_MAP_LOCACTION_W[ir]-(Math.floor(MG_EGL_EYE_MW[_ab]/2)+1);
iAx=Math.floor(iTx/MG_SMP_WIDTH);
smpEZ[_ab].style.left=(iAx*MG_SMP_WIDTH-iTx)+"px";
iTy=(fy-MG_MAP_LOCACTION_SY[ir])/MG_MAP_LOCACTION_SH[ir]*MG_MAP_LOCACTION_H[ir]-(Math.floor(MG_EGL_EYE_MH[_ab]/2)+1);
iAy=Math.floor(iTy/MG_SMP_HEIGHT);
smpEZ[_ab].style.top=(iAy*MG_SMP_HEIGHT-iTy)+"px";
if(iFMEr[_ab]!=ir){
iFMEr[_ab]=ir;
}
ChangeMapPicE(_ab,iAx-StartEX[_ab],iAy-StartEY[_ab]);
}
}
function OShowScale(bTF,ix,iy){
SHOW_SCALE_FLAG=bTF;
if(isNaN(ix)==false&&isNaN(iy)==false){
SCL_DIR_ICON_X=ix;
SCL_DIR_ICON_Y=iy;
}
smc01.style.left=(SCL_DIR_ICON_X+SCL_DIR_ICON_B*2+SCL_DIR_ICON_W+SCL_DIR_ICON_S)+"px";
smc01.style.top=SCL_DIR_ICON_Y+"px";
smc02.style.left=(SCL_DIR_ICON_X+SCL_DIR_ICON_B*2+SCL_DIR_ICON_W+SCL_DIR_ICON_S)+"px";
smc02.style.top=(SCL_DIR_ICON_Y+SCL_DIR_ICON_B*4+SCL_DIR_ICON_H*2+SCL_DIR_ICON_S*2)+"px";
smc03.style.left=SCL_DIR_ICON_X+"px";
smc03.style.top=(SCL_DIR_ICON_Y+SCL_DIR_ICON_B*2+SCL_DIR_ICON_H+SCL_DIR_ICON_S)+"px";
smc04.style.left=(SCL_DIR_ICON_X+SCL_DIR_ICON_B*4+SCL_DIR_ICON_W*2+SCL_DIR_ICON_S*2)+"px";
smc04.style.top=(SCL_DIR_ICON_Y+SCL_DIR_ICON_B*2+SCL_DIR_ICON_H+SCL_DIR_ICON_S)+"px";
smc05.style.left=(SCL_DIR_ICON_X+SCL_DIR_ICON_B*2+SCL_DIR_ICON_W+SCL_DIR_ICON_S)+"px";
smc05.style.top=(SCL_DIR_ICON_Y+SCL_DIR_ICON_B*2+SCL_DIR_ICON_H+SCL_DIR_ICON_S)+"px";
smc08.style.left=(SCL_DIR_ICON_X+SCL_DIR_ICON_B*2+SCL_DIR_ICON_W+SCL_DIR_ICON_S)+"px";
smc08.style.top=(SCL_DIR_ICON_Y+(SCL_DIR_ICON_B*2+SCL_DIR_ICON_H+SCL_DIR_ICON_S)*3)+"px";
smc09.style.left=(SCL_DIR_ICON_X+SCL_DIR_ICON_B*2+SCL_DIR_ICON_W+SCL_DIR_ICON_S)+"px";
smc09.style.top=(SCL_DIR_ICON_Y+(SCL_DIR_ICON_B*2+SCL_DIR_ICON_H+SCL_DIR_ICON_S)*4+(SCL_DIR_ICON_B*2+SCL_DIR_ICON_M)*(MG_SMP_LRL_MAX[SMS_MAP_L]-MG_SMP_LRL_MIN[SMS_MAP_L]+1))+"px";
smc01.style.visibility=SHOW_SCALE_FLAG?"":"hidden";
smc02.style.visibility=SHOW_SCALE_FLAG?"":"hidden";
smc03.style.visibility=SHOW_SCALE_FLAG?"":"hidden";
smc04.style.visibility=SHOW_SCALE_FLAG?"":"hidden";
smc05.style.visibility=SHOW_SCALE_FLAG?"":"hidden";
smc08.style.visibility=SHOW_SCALE_FLAG?"":"hidden";
smc09.style.visibility=SHOW_SCALE_FLAG?"":"hidden";
for(iLp1=MG_SMP_RLEVEL_MIN;iLp1<=MG_SMP_RLEVEL_MAX;iLp1++){
smc10[iLp1].style.visibility=SHOW_SCALE_FLAG?"":"hidden";
smc10[iLp1].style.left=(iLp1>=MG_SMP_LRL_MIN[SMS_MAP_L]&&iLp1<=MG_SMP_LRL_MAX[SMS_MAP_L]?(SCL_DIR_ICON_X+SCL_DIR_ICON_B*2+SCL_DIR_ICON_W+SCL_DIR_ICON_S):"-100")+"px";
smc10[iLp1].style.top=(iLp1>=MG_SMP_LRL_MIN[SMS_MAP_L]&&iLp1<=MG_SMP_LRL_MAX[SMS_MAP_L]?(SCL_DIR_ICON_Y+(SCL_DIR_ICON_B*2+SCL_DIR_ICON_H+SCL_DIR_ICON_S)*4+(SCL_DIR_ICON_B*2+SCL_DIR_ICON_M)*(iLp1-MG_SMP_LRL_MIN[SMS_MAP_L])):"-100")+"px";
}
LoadImageTransform(smc11,SCL_DIR_ICON_X+SCL_DIR_ICON_B*2+SCL_DIR_ICON_W+SCL_DIR_ICON_S,SCL_DIR_ICON_Y+(SCL_DIR_ICON_B*2+SCL_DIR_ICON_H+SCL_DIR_ICON_S)*4+(SCL_DIR_ICON_B*2+SCL_DIR_ICON_M)*(iFMr-MG_SMP_LRL_MIN[SMS_MAP_L]),96,SCL_DIR_ICON_B*2+SCL_DIR_ICON_W,SCL_DIR_ICON_B*2+SCL_DIR_ICON_M,SCL_DIR_ICON_B,MG_IMG_BASEURL+SCL_DIR_ICON_IC[iFMr],SHOW_SCALE_FLAG);
}
function OSetMapStyle(il){
var _b8;
SMS_MAP_L=il<LCL_BTN_ICON_N?(il<0?0:il):LCL_BTN_ICON_N-1;
OShowLayerControl(SHOW_LCTRL_FLAG);
ChangeMapProfile();
if(iFMr>MG_SMP_LRL_MAX[SMS_MAP_L]){
OMoveToRXY(GetCenterHX(),GetCenterHY(),MG_SMP_LRL_MAX[SMS_MAP_L],true);
}else{
if(iFMr<MG_SMP_LRL_MIN[SMS_MAP_L]){
OMoveToRXY(GetCenterHX(),GetCenterHY(),MG_SMP_LRL_MIN[SMS_MAP_L],true);
}else{
ChangeMapPicT();
for(_b8=0;_b8<4;_b8++){
ChangeMapPicET(_b8);
}
}
}
OShowScale(SHOW_SCALE_FLAG);
}
function ChangeMapProfile(){
var _b9;
var _ba;
for(_b9=0;_b9<iMsh;_b9++){
for(_ba=0;_ba<iMsw;_ba++){
if(MG_MAP_LBDIR_U[SMS_MAP_L]!=""){
smpu[_b9*iMsw+_ba].style.visibility="";
if(iNGVersion>5){
smpu[_b9*iMsw+_ba].style.filter=MG_MAP_LBDIR_UAO[SMS_MAP_L]==100?"":"alpha(opacity="+MG_MAP_LBDIR_UAO[SMS_MAP_L]+");";
}else{
smpu[_b9*iMsw+_ba].style.MozOpacity=MG_MAP_LBDIR_UAO[SMS_MAP_L]/100;
}
}else{
smpu[_b9*iMsw+_ba].style.visibility="hidden";
}
if(MG_MAP_LBDIR_D[SMS_MAP_L]!=""){
smpd[_b9*iMsw+_ba].style.visibility="";
}else{
smpd[_b9*iMsw+_ba].style.visibility="hidden";
}
}
}
}
function OShowLayerControl(bTF,ix,iy){
SHOW_LCTRL_FLAG=bTF;
if(isNaN(ix)==false&&isNaN(iy)==false){
LCL_BTN_ICON_X=ix;
LCL_BTN_ICON_Y=iy;
}
for(iLp1=0;iLp1<LCL_BTN_ICON_N;iLp1++){
LoadImageTransform(smc12[iLp1],LCL_BTN_ICON_X+(LCL_BTN_ICON_W+LCL_BTN_ICON_B*2+LCL_BTN_ICON_S)*(LCL_BTN_ICON_X>=0?iLp1:(iLp1+1-LCL_BTN_ICON_N)),LCL_BTN_ICON_Y,97,LCL_BTN_ICON_W,LCL_BTN_ICON_H,LCL_BTN_ICON_B,MG_IMG_BASEURL+"lcl"+iLp1+(iLp1==SMS_MAP_L?"2":"0")+".png",SHOW_LCTRL_FLAG,LCL_BTN_ICON_X<0,true);
}
}
function OnTimer(_be){
var _bf;
var _c0;
var _c1;
switch(iOTFunction){
case 1:
iOv[3]=iOv[3]-1;
if(iOv[3]==0||isNaN(_be)==false){
iOTFunction=0;
OMoveToRXY(iOv[0],iOv[1],iOv[2],false);
smpY.style.visibility=CTRL_ALL_ENEVT_FLAG?"hidden":"";
}else{
if(iOv[3]%2==0){
_bf=iOv[3]/2;
OMoveToRXY((iOv[0]*(iOv[6]-_bf)+iOv[4]*_bf)/iOv[6],(iOv[1]*(iOv[6]-_bf)+iOv[5]*_bf)/iOv[6],iOv[2],false);
}
}
break;
case 2:
if(isNaN(_be)==false){
iOv[2]=0;
oTimerTmp1=oTimerTmp2;
}
if((iPLAY_POLY_LINE_SPEED!=0||(iOv[2]==0&&oTimerTmp1==oTimerTmp2))&&iOv[3]++%PLAY_POLY_LINE_TIMER==0){
if(iOv[2]==0){
OMoveToRXY(oTimerTmp1.iX,oTimerTmp1.iY,iOv[4],false);
if(oTimerTmp1==oTimerTmp2){
smpY.style.visibility=CTRL_ALL_ENEVT_FLAG?"hidden":"";
iOTFunction=0;
}else{
if(iOv[0]==0){
iOv[5]=(Math.sqrt(Math.pow(oTimerTmp1.iX-oTimerTmp1.oNextPoint.iX,2)+Math.pow(oTimerTmp1.iY-oTimerTmp1.oNextPoint.iY,2))/iOv[1])+1;
}else{
iOv[5]=(Math.sqrt(Math.pow(GetCenterLX(oTimerTmp1.iX)-GetCenterLX(oTimerTmp1.oNextPoint.iX),2)+Math.pow(GetCenterLY(oTimerTmp1.iY)-GetCenterLY(oTimerTmp1.oNextPoint.iY),2))/iOv[1])+1;
}
iOv[2]=1;
}
}else{
if(iFMr!=iOv[4]){
iOv[4]=iFMr;
iOv[2]=(iOv[2]-1)/iOv[5];
if(iOv[0]==0){
iOv[5]=(Math.sqrt(Math.pow(oTimerTmp1.iX-oTimerTmp1.oNextPoint.iX,2)+Math.pow(oTimerTmp1.iY-oTimerTmp1.oNextPoint.iY,2))/iOv[1])+1;
}else{
iOv[5]=(Math.sqrt(Math.pow(GetCenterLX(oTimerTmp1.iX)-GetCenterLX(oTimerTmp1.oNextPoint.iX),2)+Math.pow(GetCenterLY(oTimerTmp1.iY)-GetCenterLY(oTimerTmp1.oNextPoint.iY),2))/iOv[1])+1;
}
iOv[2]=iOv[5]*iOv[2]+1;
}
iOv[2]+=iPLAY_POLY_LINE_SPEED;
if(iOv[2]<=1&&iPLAY_POLY_LINE_SPEED<0){
OMoveToRXY(oTimerTmp1.iX,oTimerTmp1.iY,iOv[4],false);
if(typeof (oTimerTmp1.oPrePoint)=="undefined"){
smpY.style.visibility=CTRL_ALL_ENEVT_FLAG?"hidden":"";
iOTFunction=0;
}else{
oTimerTmp1=oTimerTmp1.oPrePoint;
if(iOv[0]==0){
iOv[5]=(Math.sqrt(Math.pow(oTimerTmp1.iX-oTimerTmp1.oNextPoint.iX,2)+Math.pow(oTimerTmp1.iY-oTimerTmp1.oNextPoint.iY,2))/iOv[1])+1;
}else{
iOv[5]=(Math.sqrt(Math.pow(GetCenterLX(oTimerTmp1.iX)-GetCenterLX(oTimerTmp1.oNextPoint.iX),2)+Math.pow(GetCenterLY(oTimerTmp1.iY)-GetCenterLY(oTimerTmp1.oNextPoint.iY),2))/iOv[1])+1;
}
iOv[2]=iOv[5]+1;
}
}else{
if(iOv[2]>=iOv[5]+1&&iPLAY_POLY_LINE_SPEED>=0){
oTimerTmp1=oTimerTmp1.oNextPoint;
iOv[2]=0;
}else{
OMoveToRXY(oTimerTmp1.iX+(oTimerTmp1.oNextPoint.iX-oTimerTmp1.iX)*(iOv[2]-1)/iOv[5],oTimerTmp1.iY+(oTimerTmp1.oNextPoint.iY-oTimerTmp1.iY)*(iOv[2]-1)/iOv[5],iOv[4],false);
}
}
}
}
break;
}
if((iMapViewW>=0&&iMapViewW!=smp00.clientWidth)||(iMapViewH>=0&&iMapViewH!=smp00.clientHeight)){
iMapViewW=smp00.clientWidth;
iMapViewH=smp00.clientHeight;
smc00a.style.left=((Math.floor(smp00.clientWidth/2)+1)-32)+"px";
smc00a.style.top=(Math.floor(smp00.clientHeight/2)+1)+"px";
smc00b.style.left=(Math.floor(smp00.clientWidth/2)+1)+"px";
smc00b.style.top=((Math.floor(smp00.clientHeight/2)+1)-32)+"px";
iMsw=Math.floor(smp00.clientWidth/MG_SMP_WIDTH)+2;
iMsh=Math.floor(smp00.clientHeight/MG_SMP_HEIGHT)+2;
smpZ.style.width=(iMsw*MG_SMP_WIDTH)+"px";
smpZ.style.height=(iMsh*MG_SMP_HEIGHT)+"px";
for(_c0=0;_c0<iMsh;_c0++){
for(_c1=0;_c1<iMsw;_c1++){
if(typeof (smpu[_c0*iMsw+_c1])=="undefined"){
smpu[_c0*iMsw+_c1]=document.createElement("img");
smpu[_c0*iMsw+_c1].style.cssText="position:absolute; left:"+(_c1*MG_SMP_WIDTH)+"px; top:"+(_c0*MG_SMP_HEIGHT)+"px; z-index:3;";
smpZ.appendChild(smpu[_c0*iMsw+_c1]);
smpd[_c0*iMsw+_c1]=document.createElement("img");
smpd[_c0*iMsw+_c1].style.cssText="position:absolute; left:"+(_c1*MG_SMP_WIDTH)+"px; top:"+(_c0*MG_SMP_HEIGHT)+"px; z-index:2;";
smpZ.appendChild(smpd[_c0*iMsw+_c1]);
smpu2[_c0*iMsw+_c1]=document.createElement("img");
smpd2[_c0*iMsw+_c1]=document.createElement("img");
}else{
smpu[_c0*iMsw+_c1].style.left=(_c1*MG_SMP_WIDTH)+"px";
smpu[_c0*iMsw+_c1].style.top=(_c0*MG_SMP_HEIGHT)+"px";
smpu[_c0*iMsw+_c1].style.visibility="";
smpd[_c0*iMsw+_c1].style.left=(_c1*MG_SMP_WIDTH)+"px";
smpd[_c0*iMsw+_c1].style.top=(_c0*MG_SMP_HEIGHT)+"px";
smpd[_c0*iMsw+_c1].style.visibility="";
}
}
}
for(_c0=iMsw*iMsh;typeof (smpu[_c0])!="undefined";_c0++){
smpu[_c0].style.visibility="hidden";
smpd[_c0].style.visibility="hidden";
}
ChangeMapProfile();
if(typeof G_vmlCanvasManager!="undefined"){
oCanvas.style.visibility="hidden";
oCanvas=document.createElement("canvas");
oCanvas.style.cssText="position:absolute; left:0px; top:0px;z-index:25;";
oCanvas.width=smpZ.clientWidth;
oCanvas.height=smpZ.clientHeight;
oCanvas.style.visibility="hidden";
smpZ.appendChild(oCanvas);
G_vmlCanvasManager.initElement(oCanvas);
oCanvas=smpZ.lastChild;
oCtx=oCanvas.getContext("2d");
oCtx.clearRect(0,0,oCanvas.width,oCanvas.height);
oCtx.lineJoin="round";
}else{
oCanvas.width=smpZ.clientWidth;
oCanvas.height=smpZ.clientHeight;
}
iSMS_MAP_LST=-1;
ChangeMapPicT();
}
if(iNeedDectIMG>0){
_bf=1;
for(_c0=0;_c0<iMsh;_c0++){
for(_c1=0;_c1<iMsw;_c1++){
if(MG_MAP_LBDIR_U[SMS_MAP_L]!=""&&smpu[_c0*iMsw+_c1].src==smpdef[0].src){
if(smpu2[_c0*iMsw+_c1].width==MG_SMP_WIDTH&&smpu2[_c0*iMsw+_c1].height==MG_SMP_HEIGHT){
smpu[_c0*iMsw+_c1].src=smpu2[_c0*iMsw+_c1].src;
}else{
_bf=0;
}
}
if(MG_MAP_LBDIR_D[SMS_MAP_L]!=""&&smpd[_c0*iMsw+_c1].src==smpdef[1].src){
if(smpd2[_c0*iMsw+_c1].width==MG_SMP_WIDTH&&smpd2[_c0*iMsw+_c1].height==MG_SMP_HEIGHT){
smpd[_c0*iMsw+_c1].src=smpd2[_c0*iMsw+_c1].src;
}else{
_bf=0;
}
}
}
}
if(_bf==1){
iNeedDectIMG=0;
}
}
iNeedRClick=1;
}
function OSetMapStartRXY(fx,fy,ir){
SMS_MAP_X=fx;
SMS_MAP_Y=fy;
SMS_MAP_R=ir;
OMoveToRXY(fx,fy,ir,false);
}
function OGetPlacardInfo(_c5){
return oGPlcrd[_c5];
}
function OAddPlacard(_c6,_c7,_c8,_c9,ix,iy,_cc,_cd,_ce,_cf){
var _d0;
var _d1;
for(_d1=0;_d1<MG_PlCRD_MAX;_d1++){
if(PLCRD_STATUS[_d1]==-1){
break;
}
}
if(_d1==MG_PlCRD_MAX){
return -1;
}
PLCRD_STATUS[_d1]=0;
if(typeof (_c6)=="object"){
oGPlcrd[_d1]=_c6;
}else{
oGPlcrd[_d1]=new GWPlcrd(_c6,_c7,_c8,_c9,ix,iy,_cc,_cd,_ce,_cf);
}
return _d1;
}
function ORemovePlacard(_d2){
PLCRD_STATUS[_d2]=-1;
}
function ORemoveAllPlacard(){
var _d3;
for(_d3=0;_d3<MG_PlCRD_MAX;_d3++){
ORemovePlacard(_d3);
}
}
function OReflashPlacard(){
var _d4;
var _d5;
var _d6;
var _d7;
for(_d4=0,_d5=0;_d4<MG_PlCRD_MAX&&_d5<MG_PlCRD_SHOW_MAX;_d4++){
if(PLCRD_STATUS[_d4]>=0){
iPlcrdX[_d5]=GetCenterLX(oGPlcrd[_d4].iLx);
iPlcrdY[_d5]=GetCenterLY(oGPlcrd[_d4].iLy);
if(iPlcrdX[_d5]>-500&&iPlcrdX[_d5]<smp00.clientWidth+500&&iPlcrdY[_d5]>-500&&iPlcrdY[_d5]<smp00.clientHeight+500){
if(iPlcrd[_d5]==-2){
oPlcrd[_d5]=document.createElement("div");
oPlcrd[_d5].style.cssText="position:absolute;z-index:31;cursor:pointer;";
oPlcrd[_d5].style.visibility="hidden";
smpZ.appendChild(oPlcrd[_d5]);
oPlcrd[_d5+MG_PlCRD_SHOW_MAX]=document.createElement("div");
oPlcrd[_d5+MG_PlCRD_SHOW_MAX].style.cssText="position:absolute;z-index:30;cursor:pointer;";
oPlcrd[_d5+MG_PlCRD_SHOW_MAX].style.visibility="hidden";
smpZ.appendChild(oPlcrd[_d5+MG_PlCRD_SHOW_MAX]);
}
iPlcrd[_d5++]=_d4;
}
}
}
for(;_d5<MG_PlCRD_SHOW_MAX&&iPlcrd[_d5]>-2;_d5++){
iPlcrd[_d5]=-1;
}
oPlcrdIfno1.style.visibility="hidden";
for(_d4=0,_d5=0;_d4<MG_PlCRD_SHOW_MAX&&iPlcrd[_d4]>-2;_d4++){
if(iPlcrd[_d4]<0){
oPlcrd[_d4].style.visibility="hidden";
oPlcrd[_d4+MG_PlCRD_SHOW_MAX].style.visibility="hidden";
}else{
oPlcrd[_d4].style.visibility="";
oPlcrd[_d4+MG_PlCRD_SHOW_MAX].style.visibility="";
switch(oGPlcrd[iPlcrd[_d4]].iKind){
case 0:
case 1:
case 3:
case 4:
LoadImageTransform(oPlcrd[_d4],iPlcrdX[_d4]-oGPlcrd[iPlcrd[_d4]].oIcon01.iopx,(iPlcrdY[_d4]-oGPlcrd[iPlcrd[_d4]].oIcon01.iopy),31,oGPlcrd[iPlcrd[_d4]].oIcon01.iow,oGPlcrd[iPlcrd[_d4]].oIcon01.ioh,0,oGPlcrd[iPlcrd[_d4]].oIcon01.soUrl,true);
LoadImageTransform(oPlcrd[_d4+MG_PlCRD_SHOW_MAX],iPlcrdX[_d4]-oGPlcrd[iPlcrd[_d4]].oIcon02.iopx,(iPlcrdY[_d4]-oGPlcrd[iPlcrd[_d4]].oIcon02.iopy),30,oGPlcrd[iPlcrd[_d4]].oIcon02.iow,oGPlcrd[iPlcrd[_d4]].oIcon02.ioh,0,oGPlcrd[iPlcrd[_d4]].oIcon02.soUrl,true);
if(oGPlcrd[iPlcrd[_d4]].iStatus==1){
if(oGPlcrd[iPlcrd[_d4]].iKind==0||oGPlcrd[iPlcrd[_d4]].iKind==1){
oPlcrdIfno1.innerHTML=GetHTMLPlacard(300,150,oGPlcrd[iPlcrd[_d4]].iLStr01);
oPlcrdIfno1.style.left=(iPlcrdX[_d4]+oGPlcrd[iPlcrd[_d4]].oIcon01.iow/2)+"px";
oPlcrdIfno1.style.bottom=(smpZ.clientHeight-iPlcrdY[_d4]+oGPlcrd[iPlcrd[_d4]].oIcon01.ioh)+"px";
oPlcrdIfno1.style.visibility="";
iPlcrdIfno2x=-1;
oPlcrdIfno2.innerHTML="";
oPlcrdIfno2.style.visibility="hidden";
}else{
var _d8;
_d8=iPlcrdIfno2x;
iPlcrdIfno2=_d4;
iPlcrdIfno2x=iPlcrd[_d4];
if(_d8!=iPlcrdIfno2x){
if(typeof (CBPlacardK3Open)=="function"){
CBPlacardK3Open(oPlcrdIfno2,iPlcrdIfno2x);
}else{
oPlcrdIfno2.innerHTML=GetHTMLPlacard(300,150,oGPlcrd[iPlcrdIfno2x].iLStr01);
}
}
oPlcrdIfno2.style.position="absolute";
oPlcrdIfno2.style.zIndex=86;
oPlcrdIfno2.style.left=(GetCenterLX(oGPlcrd[iPlcrdIfno2x].iLx)+iFMx+oGPlcrd[iPlcrdIfno2x].oIcon01.iow/2)+"px";
oPlcrdIfno2.style.bottom=(smp00.clientHeight-GetCenterLY(oGPlcrd[iPlcrdIfno2x].iLy)-iFMy+oGPlcrd[iPlcrdIfno2x].oIcon01.ioh)+"px";
oPlcrdIfno2.style.visibility="";
oPlcrdIfno1.style.visibility="hidden";
}
}
break;
case 2:
if(typeof (oSlabel[_d5])=="undefined"){
oSlabel[_d5]=document.createElement("label");
smpZ.appendChild(oSlabel[_d5]);
}
oSlabel[_d5].innerHTML=oGPlcrd[iPlcrd[_d4]].iLStr01;
_d6=0;
_d7=0;
switch(oGPlcrd[iPlcrd[_d4]].iLStr02){
case 2:
_d6=oSlabel[_d5].clientWidth/2;
break;
case 3:
_d6=oSlabel[_d5].clientWidth;
break;
case 4:
_d7=oSlabel[_d5].clientHeight/2;
break;
case 5:
_d6=oSlabel[_d5].clientWidth/2;
_d7=oSlabel[_d5].clientHeight/2;
break;
case 6:
_d6=oSlabel[_d5].clientWidth;
_d7=oSlabel[_d5].clientHeight/2;
break;
case 7:
_d7=oSlabel[_d5].clientHeight;
break;
case 8:
_d6=oSlabel[_d5].clientWidth/2;
_d7=oSlabel[_d5].clientHeight;
break;
case 9:
_d6=oSlabel[_d5].clientWidth;
_d7=oSlabel[_d5].clientHeight;
}
oSlabel[_d5++].style.cssText="position:absolute; left:"+(iPlcrdX[_d4]-_d6)+"px; top:"+(iPlcrdY[_d4]-_d7)+"px;z-index:31;cursor:pointer;";
oPlcrd[_d4].style.visibility="hidden";
oPlcrd[_d4+MG_PlCRD_SHOW_MAX].style.visibility="hidden";
break;
}
}
}
for(;typeof (oSlabel[_d5])!="undefined";_d5++){
oSlabel[_d5].style.visibility="hidden";
}
}
function OAddPolyLine(_d9){
var _da;
var _db;
for(_db=0;_db<MG_PlCRD_MAX;_db++){
if(iPolyLine[_db]==-1){
break;
}
}
if(_db==MG_PlCRD_MAX){
return -1;
}
iPolyLine[_db]=0;
oPolyLine[_db]=_d9;
return _db;
}
function ORemovePolyLine(_dc){
iPolyLine[_dc]=-1;
}
function ORemoveAllPolyLine(){
var _dd;
for(_dd=0;_dd<MG_PLINE_MAX;_dd++){
ORemovePolyLine(_dd);
}
}
function OReflashPolyLine(){
var _de;
var iX;
var iY;
var _e1;
var _e2;
_e2=0;
oCtx.clearRect(0,0,oCanvas.width,oCanvas.height);
for(_de=0;_de<MG_PLINE_MAX;_de++){
if(iPolyLine[_de]>=0){
_e2++;
oCtx.lineWidth=oPolyLine[_de].iLineWidth;
oCtx.strokeStyle=oPolyLine[_de].sColor;
oCtx.beginPath();
if(oPolyLine[_de].iType<3){
_e1=oPolyLine[_de].StPoint;
iX=GetCenterLX(_e1.iX);
iY=GetCenterLY(_e1.iY);
oCtx.moveTo(iX,iY);
while(_e1!=oPolyLine[_de].LtPoint){
_e1=_e1.oNextPoint;
iX=GetCenterLX(_e1.iX);
iY=GetCenterLY(_e1.iY);
oCtx.lineTo(iX,iY);
}
switch(oPolyLine[_de].iType){
case 1:
oCtx.closePath();
oCtx.strokeStyle=oPolyLine[_de].sColor;
oCtx.stroke();
break;
case 2:
oCtx.closePath();
oCtx.fillStyle=oPolyLine[_de].sColor;
oCtx.fill();
break;
default:
oCtx.strokeStyle=oPolyLine[_de].sColor;
oCtx.stroke();
}
}
_e1=oPolyLine[_de].StPoint;
iX=GetCenterLX(_e1.iX);
iY=GetCenterLY(_e1.iY);
if(!isNaN(_e1.iSize)){
switch(oPolyLine[_de].iType){
case 3:
case 4:
break;
default:
oCtx.beginPath();
oCtx.lineWidth=_e1.iSize;
if(typeof (_e1.sColor)!="undefined"){
oCtx.strokeStyle=_e1.sColor;
}else{
oCtx.strokeStyle=oPolyLine[_de].sColor;
}
oCtx.arc(iX,iY,_e1.iSize/2,0,Math.PI*2,true);
oCtx.closePath();
oCtx.stroke();
}
}
while(_e1!=oPolyLine[_de].LtPoint){
_e1=_e1.oNextPoint;
switch(oPolyLine[_de].iType){
case 3:
case 4:
oCtx.beginPath();
if(!isNaN(_e1.iSize)){
oCtx.lineWidth=_e1.iSize;
}else{
oCtx.lineWidth=oPolyLine[_de].iLineWidth;
}
if(oPolyLine[_de].iType==3){
if(typeof (_e1.sColor)!="undefined"){
oCtx.strokeStyle=_e1.sColor;
}else{
oCtx.strokeStyle=oPolyLine[_de].sColor;
}
oCtx.arc(iX,iY,Math.sqrt(Math.pow(GetCenterLX(_e1.iX)-iX,2)+Math.pow(GetCenterLY(_e1.iY)-iY,2)),0,Math.PI*2,true);
oCtx.closePath();
oCtx.stroke();
}else{
if(typeof (_e1.sColor)!="undefined"){
oCtx.fillStyle=_e1.sColor;
}else{
oCtx.fillStyle=oPolyLine[_de].sColor;
}
oCtx.arc(iX,iY,Math.sqrt(Math.pow(GetCenterLX(_e1.iX)-iX,2)+Math.pow(GetCenterLY(_e1.iY)-iY,2)),0,Math.PI*2,true);
oCtx.fill();
}
break;
default:
iX=GetCenterLX(_e1.iX);
iY=GetCenterLY(_e1.iY);
if(!isNaN(_e1.iSize)){
oCtx.beginPath();
oCtx.lineWidth=_e1.iSize;
if(typeof (_e1.sColor)!="undefined"){
oCtx.strokeStyle=_e1.sColor;
}else{
oCtx.strokeStyle=oPolyLine[_de].sColor;
}
oCtx.arc(iX,iY,_e1.iSize/2,0,Math.PI*2,true);
oCtx.closePath();
oCtx.stroke();
}
}
}
}
}
oCanvas.style.visibility=_e2>0?"":"hidden";
}
function OPlayPolyLine(_e3,_e4,_e5){
iPLAY_POLY_LINE_SPEED=1;
OnTimer(true);
smpY.style.visibility="";
iOTFunction=2;
iOv[0]=_e4;
iOv[1]=_e5;
iOv[2]=0;
iOv[3]=0;
iOv[4]=iFMr;
oTimerTmp1=_e3.StPoint;
oTimerTmp2=_e3.LtPoint;
}
function CLoadImageTransform(ix,iy,iz,iw,ih,ib,_ec,_ed,_ee,_ef,_f0){
var _f1;
_f1=document.createElement("div");
LoadImageTransform(_f1,ix,iy,iz,iw,ih,ib,_ec,_ed,_ee,_ef,_f0);
return _f1;
}
function LoadImageTransform(_f2,ix,iy,iz,iw,ih,ib,_f9,_fa,_fb,_fc,_fd){
_f2.style.cssText="position:absolute; "+(ix<0&&_fb==true?("right:"+(0-ix)):("left:"+ix))+"px; "+(iy<0&&_fc==true?("bottom:"+(0-iy)):("top:"+iy))+"px;"+(iw==0?"":"width:"+iw+"px; ")+(ih==0?"":"height:"+ih+"px; ")+"z-index:"+iz+";border:"+ib+"px solid black;cursor:pointer;"+(((iNGVersion>=5.5)&&(iNGVersion<7)&&(document.body.filters))?"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale src='"+_f9+"');":"");
_f2.style.visibility=_fa?"":"hidden";
_f2.style.fontSize="1px";
_f2.style.background=((iNGVersion>=5.5)&&(iNGVersion<7)&&(document.body.filters))?"":("url("+_f9+(_fd==true?")":") no-repeat"));
}
function GetHTMLPlacard(iw,ih,_100){
var _101;

_101="<table width="+iw+" height="+ih+" border=0 cellpadding=0 cellspacing=0>";
_101+="\t<tr height=0>";
_101+="\t\t<td width=16></td>";
_101+="\t\t<td width=20></td>";
_101+="\t\t<td width=65535></td>";
_101+="\t\t<td width=16></td>";
_101+="\t</tr>";
_101+="\t<tr>";
_101+="\t\t<td width=16>";
_101+="\t\t\t<img src="+MG_IMG_BASEURL+"pup_01.png></td>";
_101+="\t\t<td colspan=3 background="+MG_IMG_BASEURL+"pup_02.png> </td>";
_101+="\t\t<td width=16>";
_101+="\t\t\t<img src="+MG_IMG_BASEURL+"pup_04.png></td>";
_101+="\t</tr>";
_101+="\t<tr height=100%>";
_101+="\t\t<td background="+MG_IMG_BASEURL+"pup_05.png></td>";
_101+="\t\t<td colspan=3 align=left valign=top bgcolor=#FFFFFF>"+_100+"</td>";
_101+="\t\t<td background="+MG_IMG_BASEURL+"pup_13.png></td>";
_101+="\t</tr>";
_101+="\t<tr>";
_101+="\t\t<td colspan=2 rowspan=3 height=36><img src="+MG_IMG_BASEURL+"pup_08.png></td>";
_101+="\t\t<td height=13 bgcolor=#FFFFFF></td>";
_101+="\t\t<td rowspan=2 height=23 bgcolor=#FFFFFF></td>";
_101+="\t\t<td height=13 background="+MG_IMG_BASEURL+"pup_13.png></td>";
_101+="\t</tr>";
_101+="\t<tr>";
_101+="\t  <td height=10 bgcolor=#FFFFFF></td>";
_101+="\t\t<td rowspan=2 height=23><img src="+MG_IMG_BASEURL+"pup_10.png></td>";
_101+="\t</tr>";
_101+="\t<tr>";
_101+="\t\t<td colspan=2 height=13 background="+MG_IMG_BASEURL+"pup_11.png></td>";
_101+="\t</tr>";
_101+="</table>";
return _101;
}

