express_skl_licensecode=3772; express_skl_customercode=244; var interval=100; var update_interval_max=5000; var update_interval_avg=500; var update_interval_min=50; var x$=0; var y$=0; var ox$=0; var oy$=0; var x$up=0; var y$up=0; var x$down=0; var y$down=0; var mdown$=0; var clk$=0; var clk$h=0; var x$scrool=0; var y$scrool=0; var movehelp$=0; var opacityhelp$=1; var x$leftt=0; var x$rightt=0; var y$upt=0; var y$downt=0; var x$leftx=0; var x$rightx=0; var y$upy=0; var y$downy=0; //var moveinit$=0; var w$ = top.innerWidth; var wc$ = innerWidth; //|| document.documentElement.clientWidth //|| document.body.clientWidth; var h$ = top.innerHeight; var hc$ = innerHeight; //|| document.documentElement.clientHeight //|| document.body.clientHeight; //var originalx$ = top.innerWidth; //|| document.documentElement.clientWidth //|| document.body.clientWidth; //var originaly$ = top.innerHeight; function init_fx(){} function scan_fx(){} function click_fx(){} function show_fx(){} function hide_fx(){} function scan_run(){ frame_run(); scan_fx(); setTimeout(function(){ scan_run(); }, window["interval"]); } function invert(xbool){ if (""+xbool=="1"){return 0;}else{return 1;} } function frame_run(){ if(window.name!=undefined){if(window.name!=""){ if(parent.document.getElementById(window.name)!=undefined){ if (clk$==1){ if(getPROP("inp$")!=undefined){ if(getPROP("inp$")!=null){ if(""+getPROP("inp$")!=""){ //check if input properties configured clk$=0; temptitile=getPROP("inptitle"); if (temptitile==""){temptitile="Enter value:";} if (temptitile==null){temptitile="Enter value:";} inppopup(temptitile,getPROP("inp$"),getPROP("inppattern")); }}}} if (clk$==1){ if(getPROP("c$")!=undefined){ if(getPROP("c$")!=null){ if(""+getPROP("c$")!=""){ setPARAM("c$",clk$); //alert("clk$"); clk$=0; }}}} if (clk$==1){ if(getPROP("cc$")!=undefined){ if(getPROP("cc$")!=null){ if(""+getPROP("cc$")!=""){ if (getPARAM("cc$")==clk$){setPARAM("cc$","0");}else{setPARAM("cc$",clk$);} //alert("clk$"); clk$=0; }}}} if (movehelp$==0){ if(getPROP("x$")!=undefined){ if(getPROP("x$")!=null){ if(""+getPROP("x$")!=""){ if(mdown$==0){ //tag1z.innerHTML=getPARAM("x$"); if(parent.document.getElementById(window.name).style.left!=getPARAM("x$")){ parent.document.getElementById(window.name).style.left=getPARAM("x$");} }}}} if(getPROP("y$")!=undefined){ if(getPROP("y$")!=null){ if(""+getPROP("y$")!=""){ if(mdown$==0){ //tag2z.innerHTML=getPARAM("y$"); if(parent.document.getElementById(window.name).style.top!=getPARAM("y$")){parent.document.getElementById(window.name).style.top=getPARAM("y$"); } }}}} if(getPROP("xa$")!=undefined){ if(getPROP("xa$")!=null){ if(""+getPROP("xa$")!=""){ if(mdown$==0){ jtemp1=1; if((""+parent.document.getElementById(window.name).style.left).replace("px","")!=""+getPARAM("xa$")){ //if (0+parent.document.getElementById(window.name).style.left.replace("px","")getPARAM("xa$")){parent.document.getElementById(window.name).style.left= -1 +parent.document.getElementById(window.name).style.left;} //alert(parent.document.getElementById(window.name).style.left); if(""+parent.document.getElementById(window.name).style.left==""){ parent.document.getElementById(window.name).style.left=getPARAM("xa$");} else{ jtemp1=Math.round(Math.abs(getPARAM("xa$")-((parent.document.getElementById(window.name).style.left).replace("px","")))/10); if (0+parent.document.getElementById(window.name).style.left.replace("px","")<0+getPARAM("xa$")){parent.document.getElementById(window.name).style.left= 1* parent.document.getElementById(window.name).style.left.replace("px","") +jtemp1;} if (0+parent.document.getElementById(window.name).style.left.replace("px","")>0+getPARAM("xa$")){ if(0+parent.document.getElementById(window.name).style.left.replace("px","")>20+getPARAM("xa$")){parent.document.getElementById(window.name).style.left=getPARAM("xa$");}else{ parent.document.getElementById(window.name).style.left= 1* parent.document.getElementById(window.name).style.left.replace("px","") - jtemp1;} } } //alert(parent.document.getElementById(window.name).style.left); } }}}} if(getPROP("ya$")!=undefined){ if(getPROP("ya$")!=null){ if(""+getPROP("ya$")!=""){ if(mdown$==0){ if((""+parent.document.getElementById(window.name).style.top).replace("px","")!=""+getPARAM("ya$")){ if(""+parent.document.getElementById(window.name).style.top==""){ parent.document.getElementById(window.name).style.top=getPARAM("ya$");} else{ if (0+parent.document.getElementById(window.name).style.top.replace("px","")<0+getPARAM("ya$")){parent.document.getElementById(window.name).style.top= 0+ parent.document.getElementById(window.name).style.top.replace("px","") +1;} if (0+parent.document.getElementById(window.name).style.top.replace("px","")>0+getPARAM("ya$")){ if(0+parent.document.getElementById(window.name).style.top.replace("px","")>20+getPARAM("ya$")){parent.document.getElementById(window.name).style.top=getPARAM("ya$");}else{ parent.document.getElementById(window.name).style.top= 0+ (parent.document.getElementById(window.name).style.top.replace("px","")) - 1;} } } //alert(parent.document.getElementById(window.name).style.top); } }}}} } if(getPROP("v$")!=undefined){ if(getPROP("v$")!=null){ if(""+getPROP("v$")!=""){ if (getPARAM("v$")!=0){ //document.body.style.display="";}else{document.body.style.display="none"; //document.body.style.visibility="";}else{document.body.style.visibility="hidden"; if (parent.document.getElementById(window.name).style.display!=""){parent.document.getElementById(window.name).style.display=""; show_fx();} }else{if (parent.document.getElementById(window.name).style.display!="none"){parent.document.getElementById(window.name).style.display="none"; hide_fx();} //parent.document.getElementById(window.name).style.visibility="";}else{parent.document.getElementById(window.name).style.visibility="hidden"; } }}} if(getPROP("s$")!=undefined){ if(getPROP("s$")!=null){ if(""+getPROP("s$")!=""){ temp$_3=1*getPARAM("s$")/100; if (parent.document.getElementById(window.name).style.transform!="scale("+temp$_3+","+temp$_3+");"){parent.document.getElementById(window.name).style.transform="scale("+temp$_3+","+temp$_3+")"; } }}} if(getPROP("r$")!=undefined){ if(getPROP("r$")!=null){ if(""+getPROP("r$")!=""){ if(parent.document.getElementById(window.name).style.transform!="rotate("+getPARAM("r$")+"deg)"){parent.document.getElementById(window.name).style.transform="rotate("+getPARAM("r$")+"deg)";} }}} if(getPROP("w$")!=undefined){ if(getPROP("w$")!=null){ if(""+getPROP("w$")!=""){ if(parent.document.getElementById(window.name).width!=getPARAM("w$")){parent.document.getElementById(window.name).width=getPARAM("w$");} }}} if(getPROP("h$")!=undefined){ if(getPROP("h$")!=null){ if(""+getPROP("h$")!=""){ if(parent.document.getElementById(window.name).height!=getPARAM("h$")){parent.document.getElementById(window.name).height=getPARAM("h$");} }}} if(getPROP("t$")!=undefined){ if(getPROP("t$")!=null){ if(""+getPROP("t$")!=""){ if(parent.document.getElementById(window.name).style.opacity!=getPARAM("t$")/100){parent.document.getElementById(window.name).style.opacity=getPARAM("t$")/100;} //transparency }}} } } }} function sleepx(msecx){ var waitUntil = new Date().getTime() + msecx; while(new Date().getTime() < waitUntil) true; } function partx(){ interval=getTAG("interval"); init_fx(); setTimeout(function(){ scan_run(); }, interval); //starting input if(""+getPROP("mouse$")=="1"){ window.addEventListener("mousemove", mmove, false); window.document.body.addEventListener("touchmove", mtouch, false); window.document.body.addEventListener("touchend", mtouche, false); window.document.body.addEventListener("touchcancel", mtouche, false); window.document.body.addEventListener("touchstart", mtouchc, false); window.addEventListener("click", mclk, false); window.addEventListener("mouseup", mup, false); window.addEventListener("mousedown", mdown, false); window.addEventListener("dblclick", xdblclick, false); if(""+getPROP("pointeroff$")!="1"){ window.document.body.style.cursor="pointer";} //loading limits if (getPROP("leftx$")!=""){if (getPROP("leftx$")!=null){x$leftt=1;x$leftx=getPROP("leftx$");if(x$leftx=="w$"){x$leftx=w$;}}} if (getPROP("rightx$")!=""){if (getPROP("rightx$")!=null){x$rightt=1;x$rightx=getPROP("rightx$");if(x$rightx=="w$"){x$rightx=w$;}}} if (getPROP("upy$")!=""){ if (getPROP("upy$")!=null){y$upt=1;y$upy=getPROP("upy$");if(y$upy=="h$"){y$upy=h$;}}} if (getPROP("downy$")!=""){if (getPROP("downy$")!=null){y$downt=1;y$downy=getPROP("downy$");if(y$downy=="h$"){y$downy=h$;}}} } } document.addEventListener("DOMContentLoaded", function(event){ //load exchange frame once if (top.exch== undefined){ var exch = top.document.createElement('iframe'); exch.style.display = "none"; //exch.style.position = "absolute"; //exch.style.left = 200; exch.style.visibility = "hidden"; // exch.width = 1; // exch.height = 1; exch.src = "exchange.php?123456789012345678901234567890"; exch.id="exch"; exch.name="exch"; top.document.body.appendChild(exch); if (top.inp== undefined){ var inp = top.document.createElement('iframe'); //inp.style.display = "none"; inp.style.visibility= "hidden"; inp.style.position= "fixed"; inp.width="100%"; inp.height="100%"; inp.style.width="100%"; inp.style.height="100%"; inp.style.left=0; inp.style.zIndex=999; inp.style.top=0; //inp.style.visibility = "hidden"; inp.src = "obj_input.html?0000000000000"; inp.id="inp"; inp.name="inp"; top.document.body.appendChild(inp); // inp.style.display = "none"; ////inp.style.visibility= ""; //top.document.body.style.scrool="no"; //inp.style.left=0; //inp.style.display = "none"; } } //load attributes from parent to template if (document.getElementById("properties")!=null){ if (parent!=undefined){ if (window.name!=""){ if (parent.document.getElementById(window.name)!=undefined){ for (i = 0; i < properties.attributes.length ; i++) { if (properties.attributes[i].name!="id"){if (properties.attributes[i].name!="name"){ if (properties.attributes[i].name!="style"){ ///alert("x-"+parent.document.getElementById(window.name).getAttribute(properties.attributes[i].name)); if (parent.document.getElementById(window.name).getAttribute(properties.attributes[i].name)!=undefined){ //alert(properties.attributes[i].name); // alert(properties.attributes[i].name+"="+properties.attributes[i].value); properties.attributes[i].value=parent.document.getElementById(window.name).getAttribute(properties.attributes[i].name); } }}}} }}} //load attributes in faceplate //copy from properties to corresponded iframe if (document.getElementById("references")!=null){ // if (document.references!= undefined){ for (i = 0; i < references.attributes.length ; i++) { if (references.attributes[i].name!="id"){if (references.attributes[i].name!="name"){ if (references.attributes[i].name!="style"){ sourceobj=""; sourceattribute=""; sourcestring=references.attributes[i].value; if (sourcestring.lastIndexOf(".")>1){sourceobj= sourcestring.substring(0, sourcestring.lastIndexOf(".")); sourceattribute= sourcestring.substring(1+sourcestring.lastIndexOf("."),100); if (sourceobj!=""){if(sourceattribute!=""){ if (document.getElementById(sourceobj)!=undefined){if(document.getElementById(sourceobj).attributes[sourceattribute]!=undefined){ if (properties.attributes[references.attributes[i].name]!= undefined){document.getElementById(sourceobj).attributes[sourceattribute].value=properties.getAttribute(references.attributes[i].name); } }}}}}}}}}} } //assign scan function if(window.scan!=undefined){if (typeof(scan)=="function"){scan_fx=scan;}} if(window.init!=undefined){if (typeof(init)=="function"){init_fx=init;}} if(window.obj_click!=undefined){if (typeof(obj_click)=="function"){click_fx=obj_click;}} if(window.obj_hide!=undefined){if (typeof(obj_hide)=="function"){hide_fx=obj_hide;}} if(window.obj_show!=undefined){if (typeof(obj_show)=="function"){show_fx=obj_show;}} if(window.obj_dblclick!=undefined){if (typeof(obj_dblclick)=="function"){dblclick_fx=obj_dblclick;}} if(window.menu!=undefined){if (typeof(menu)=="function"){menu_fx=menu;}} if(window.menuitem!=undefined){if (typeof(menuitem)=="function"){menuitem_fx=menuitem;}} //window.document.body.addEventListener("load", init_fx, false); interval=getTAG("interval"); if (interval==undefined){interval=100;} if (top.document.readyState!="completed"){ setTimeout(function(){ partx(); }, 500);} else{partx();} }); function xdblclick(){dblclick_fx();} function dblclick_fx(){} function mclk(ev){ x$=ev.clientX; y$=ev.clientY; clk$=1; mdown$=0; click_fx(); } function objmove(){ //if(x$<0){x$=0;} //if(y$<0){y$=0;} //if(x$>w$){x$=w$;} //if(y$>h$){y$=h$;} //if (moveinit$==0){ //moveinit$=1; //ox$=parent.document.getElementById(window.name).style.offsetLeft; //oy$=parent.document.getElementById(window.name).style.offsetTop; //parent.document.getElementById(window.name).style.position="absolute"; //parent.document.getElementById(window.name).style.left=ox$; //parent.document.getElementById(window.name).style.top=oy$; //} if(mdown$==1){ //window.blur(); if(""+getPROP("movex$")=="1"){ om_p0=parent.document.getElementById(window.name).style.left; if(om_p0==null){om_p0=0;} om_p0=""+om_p0.replace("px",""); om_p0=1*om_p0; om_p1=1*x$-1*x$down+1*om_p0; //top.exch.window["tag17"]=x$rightt; if(x$leftt==1){if (om_p1 < x$leftx){om_p1=x$leftx;}} if(x$rightt == 1){if (om_p1>x$rightx){om_p1=x$rightx;} if (x$rightx=="wc$"){if (om_p1>w$ - innerWidth){om_p1=w$ - innerWidth;}} } //top.exch.window["tag17"]=om_p1; //parent.document.getElementById("x2").value=om_p1; //screenw=1*window.screen.width; //if (window.orientation==90){screenw=1*window.screen.height;} //if (window.orientation==-90){screenw=1*window.screen.height;} //if(1*om_p1>1*screenw - 1*parent.document.getElementById(window.name).width){om_p1=1*screenw - 1*parent.document.getElementById(window.name).width; } //if(1*om_p1< 0){ om_p1=0;} //alert(om_p1); parent.document.getElementById(window.name).style.left=om_p1; } if(""+getPROP("movey$")=="1"){ om_p2=parent.document.getElementById(window.name).style.top; if(om_p2==null){om_p2=0;} om_p2=""+om_p2.replace("px",""); om_p2=1*om_p2; om_p3=1*y$-1*y$down+1*om_p2; if(y$upt==1){if (om_p3y$downy){om_p3=y$downy;} if (y$downy=="hc$"){if (om_p3>h$-innerHeight){om_p3=h$-innerHeight;}} } //parent.document.getElementById("x1").value=om_p3; parent.document.getElementById(window.name).style.top=om_p3; } //window.blur(); }} function mmove(ev){ //ev.preventDefault(); x$=ev.clientX; y$=ev.clientY; objmove(); if(mdown$==1){if(0+ev.buttons==0){mdown$=0;}} //return false; } function mmoveendhelp(){ movehelp$=0;} function mmoveend(){ //update object coordinates if(getPROP("ix$")!=undefined){ if(getPROP("ix$")!=null){ if(""+getPROP("ix$")!=""){ temp_1$=parent.document.getElementById(window.name).style.left; setPARAM("ix$",1*(temp_1$.replace('px',''))); }}} if(getPROP("iy$")!=undefined){ if(getPROP("iy$")!=null){ if(""+getPROP("iy$")!=""){ //alert(parent.document.getElementById(window.name).style.top); temp_2$=parent.document.getElementById(window.name).style.top; //alert(1*("0"+temp_2$.replace('px',''))); setPARAM("iy$",1*(temp_2$.replace('px',''))); }}} movehelp$=1; setTimeout(function(){ mmoveendhelp(); }, 500); } function mtouchfixedoff(){ top.document.body.style.position="fixed"; } function mtouchc(ev){ //ev.preventDefault(); //x$=ev.touches[0].pageX; //y$=ev.touches[0].pageY; //if (mdown$==0){ //x$down=x$; //y$down=y$; //mdown$=1;} mdown$=0; ////mmoveend(); //top.document.body.scrollTop=0; //top.document.body.style.position="fixed"; //// setTimeout(function(){ mtouchhelp(); }, 500); //top.document.body.scrollTop=y$scrool; opacityhelp$=parent.document.getElementById(window.name).style.opacity; parent.document.getElementById(window.name).style.opacity=1; clk$=1; //clk$h=1; y$scrool=top.document.body.scrollTop; //ev.preventDefault(); } function mtouchhelp(){ if(mdown$==0){ top.document.body.style.position="relative"; parent.document.getElementById(window.name).style.opacity=opacityhelp$; //top.document.body.style.display = ''; } } function mtouche(ev){ //ev.preventDefault(); if (clk$h==1){ //if (mdown$==0){ //top.style.position=""; mdown$=0; mmoveend(); //top.document.body.style.scroll=scroll$helper; //clk$=1; //} } mdown$=0; clk$h=0; //top.document.body.style.position="relative"; setTimeout(mtouchhelp, 500); //top.document.body.scrollTop=y$scrool; //top.pageYOffset=0; //x$=ev.touches[0].pageX; //y$=ev.touches[0].pageY; //return false; } function mtouchscroll(){ top.document.body.scrollTop=0;//y$scrool; } function mtouch(ev){ //setTimeout(mtouchscroll, 300); x$=ev.touches[0].pageX; y$=ev.touches[0].pageY; if (mdown$==0){ //if (x$down!=x$){if(y$down!=y$){ x$down=x$; y$down=y$; mdown$=1; clk$h=1; top.document.getElementById('scrollbar').style.display = 'block'; //top.pageXOffset=0;top.pageUOffset=0; //y$scrool=top.document.body.scrollTop; //scroll$helper=top.document.body.style.scroll; //top.document.body.style.display = 'block'; //top.document.body.style.position="fixed"; ////top.document.body.style.scroll= "no"; if (1!=parent.document.getElementById(window.name).style.opacity){ opacityhelp$=parent.document.getElementById(window.name).style.opacity; parent.document.getElementById(window.name).style.opacity=1;} //top.pageYOffset=y$scrool; //clk$h=0; //}} } //else{top.pageYOffset=y$scrool;} objmove(); //ev.preventDefault(); //ev.stopImmediatePropagation(); //return false; } function mtouche2(ev){ //ev.preventDefault(); //alert("touchend"); lx_p=0; ly_p=0; x$=ev.touches[0].pageX; y$=ev.touches[0].pageY; //if (mdown$==1){ //x$up=x$; //y$up=y$; mdown$=0; top.document.getElementById('scrollbar').style.display = ''; lx_p=x$down - x$; ly_p=y$down - y$; if (lx_p<0){lx_p=-1* lx_p;} if (ly_p<0){ly_p=-1* ly_p;} if (lx_p<10){ if(ly_p<10){ //x$down=x$; //y$down=y$; clk$=1; }else {clk$=0;}}else {clk$=0;} //return false; } function mup(ev){ //ev.preventDefault(); x$up=ev.clientX; y$up=ev.clientY; mdown$=0; mmoveend(); //return false; } function mdown(ev){ //ev.preventDefault(); x$down=ev.clientX; y$down=ev.clientY; mdown$=1; //return false; } function getEVAL(p_eval){ return eval(p_eval); } function getTAG(p_tagname){ return top.exch.window[p_tagname]; } function setTAG(p_tagname, p_value){ top.exch.updx(p_tagname,p_value); } function getPROP(p_param){if(document.getElementById("properties")!=null){return properties.getAttribute(p_param);}} function setPROP(p_param,p_value){properties.attributes[p_param].value=p_value;} function getPARAM(p_param){ gp_out=undefined; gp_prop=getPROP(p_param); gp_type="const"; if(""+gp_prop!=""){ if(""+gp_prop.substring(0,1)=="$"){gp_type="tag";} //ok if(""+gp_prop.substring(0,1)=="@"){gp_type="eval";}//ok if(""+gp_prop.substring(0,1)=="*"){gp_type="local var";} if(""+gp_prop.substring(0,1)=="%"){gp_type="global var";} if(""+gp_prop.substring(0,2)=="%%"){gp_type="global var invert";} if(""+gp_prop.substring(0,1)=="!"){gp_type="object property";} if(""+gp_prop.substring(0,1)==":"){gp_type="self";} } if (gp_type=="const"){gp_out=gp_prop;} if (gp_type=="tag"){gp_out=getTAG(gp_prop.substring(1,100));} if (gp_type=="eval"){gp_out=getEVAL(gp_prop.substring(1,100));} if (gp_type=="global var"){gp_out=top.exch.window[gp_prop.substring(1,100)];} if (gp_type=="global var invert"){gp_out=invert(top.exch.window[gp_prop.substring(2,100)]);} if (gp_out==undefined){gp_out="";} return gp_out; } function setPARAM(p_param,p_value){ gp_out=undefined; gp_prop=getPROP(p_param); gp_type="const"; if(""+gp_prop!=""){ if(""+gp_prop.substring(0,1)=="$"){gp_type="tag";} //ok if(""+gp_prop.substring(0,1)=="@"){gp_type="eval";}//ok if(""+gp_prop.substring(0,1)=="*"){gp_type="local var";} if(""+gp_prop.substring(0,1)=="%"){gp_type="global var";} if(""+gp_prop.substring(0,2)=="%%"){gp_type="global var invert";} if(""+gp_prop.substring(0,1)=="!"){gp_type="object property";} if(""+gp_prop.substring(0,1)==":"){gp_type="self";} } if (gp_type=="const"){setPROP(p_param,p_value);} if (gp_type=="tag"){setTAG(gp_prop.substring(1,100),p_value);} if (gp_type=="eval"){gp_out=getEVAL(gp_prop.substring(1,100));} if (gp_type=="global var"){top.exch.window[gp_prop.substring(1,100)]=p_value;} if (gp_type=="global var invert"){top.exch.window[gp_prop.substring(2,100)]=invert(p_value);} //return gp_out; } //alert("load"); function runMap( lat$, lng$, zoom$) { var markers = new Array(); function ShowMapElements() { //reading properties and creating popups if (document.getElementById("properties")!=null){ for (i_p = 0; i_p < properties.children.length; i_p++) { var myLatlng = new google.maps.LatLng(properties.children[i_p].getAttribute("lat"), properties.children[i_p].getAttribute("lng")); pointleft=-12; pointtop=-40; pointwidth=26; pointheight=40; pointwidth=properties.children[i_p].getAttribute('pointwidth'); pointheight=properties.children[i_p].getAttribute('pointheight'); pointleft=properties.children[i_p].getAttribute('pointleft'); pointtop=properties.children[i_p].getAttribute('pointtop'); if (pointleft==null){pointleft=-12;} if (pointtop==null){pointtop=-40;} if (pointwidth==null){pointwidth=26;} if (pointheight==null){pointheight=40;} var overlay = new CustomMarker( myLatlng, map, {html_content:''},pointleft,pointtop); markers.push(overlay); var overlay = new CustomMarker( myLatlng, map, {html_content:''} ,0,0); }}} function createPopupMarker(){ ShowMapElements(); } map = new google.maps.Map(document.getElementById('map'), { center: {lat: lat$, lng: lng$}, zoom: zoom$ }); function CustomMarker(latlng, map, args, shiftX, shiftY) { this.latlng = latlng; this.args = args; this.setMap(map); this.shiftX=shiftX; this.shiftY=shiftY; } CustomMarker.prototype = new google.maps.OverlayView(); CustomMarker.prototype.draw = function() { var self = this; var div = this.div; if (!div) { div = this.div = document.createElement('div'); div.id = 'marker_div'; div.className = 'htmlMarker'; div.style.position = 'absolute'; div.style.cursor = 'pointer'; div.innerHTML = self.args.html_content; if (typeof(self.args.marker_id) !== 'undefined') { div.dataset.marker_id = self.args.marker_id; } google.maps.event.addDomListener(div, "click", function(event) { google.maps.event.trigger(self, "click"); }); var panes = this.getPanes(); panes.overlayImage.appendChild(div); } var point = this.getProjection().fromLatLngToDivPixel(this.latlng); if (point) { div.style.left = point.x + self.shiftX+ 'px'; div.style.top = point.y + self.shiftY + 'px'; } }; CustomMarker.prototype.remove = function() { if (this.div) { this.div.parentNode.removeChild(this.div); this.div = null; } }; CustomMarker.prototype.getPosition = function() { return this.latlng; }; ////var myLatlng = new google.maps.LatLng(51.520014, -0.128384); ////var myLatlng2 = new google.maps.LatLng(60, 10); //////// var overlay = new CustomMarker( myLatlng, map, {html_content:''} ,-12,-40); //////// var overlay2 = new CustomMarker( myLatlng2, map, {html_content:''} ,-12,-40); // To add the marker to the map, call setMap(); ////markers.push(overlay); ////markers.push(overlay2); createPopupMarker(); //var mapDiv = document.getElementById('marker_div'); ////google.maps.event.addDomListener(overlay, "click", function(event) { ////google.maps.event.trigger(self, "click"); //// window['xLondon'](); ////}); //google.maps.event.addDomListener(overlay2, "click", function(event) { //google.maps.event.trigger(self, "click"); // window['xNew'](); //}); var bounds = new google.maps.LatLngBounds(); for (var i = 0; i < markers.length; i++) { bounds.extend(markers[i].getPosition()); } map.fitBounds(bounds);} function menu_fx(ddd){} function menuitem_fx(ddd){} function obj_menu(obj){menu_fx(obj);} function obj_menuitem(obj){menuitem_fx(obj);} function inppopup(xtitle,xtag,xpattern){ top.inp.inpshow(xtitle,xtag,xpattern);} function scanon(){top.exch.scanon();} function scanoff(){top.exch.scanoff();}