var GC_GMapObj=false;var GC_GMapDiv=false;var GC_Obj=false;var GC_hdlZS=false;var GC_hdlMS=false;var GC_hdlME=false;var GC_hdlDMS=false;var GC_FLAG_NOCLICK=0;var GC_CB_POINTCLICK=0xFF01;var GC_CB_POINTMOUSEOVER=0xFF02;var GC_CB_POINTMOUSEOUT=0xFF03;var GC_CB_CLUSTERCLICK=0xFF04;var GC_CB_CLUSTERMOUSEOVER=0xFF05;var GC_CB_CLUSTERMOUSEOUT=0xFF06;var GC_CB_ONCREATEPOINT=0xFF07;var GC_CB_ONCREATECLUSTER=0xFF08;var GC_CB_ONLOADSTART=0xFF09;var GC_CB_ONLOADEND=0xFF10;var GC_CB_CLUSTERCLICK_RAW=0xFF11;var GC_CB_CLOUDCLICK=0xFF12;var GC_CB_CLOUDMOUSEOVER=0xFF13;var GC_CB_CLOUDMOUSEOUT=0xFF14;var GC_CB_ONCREATECLOUD=0xFF15;var GC_CB_CLOUDCLICK_RAW=0xFF16;var GC_IC_POINT=0xFE01;var GC_IC_POINTMOUSEOVER=0xFE02;var GC_IC_CLUSTER=0xFE03;var GC_IC_CLUSTERMOUSEOVER=0xFE04;var GC_IC_CLOUD=0xFE05;var GC_IC_CLOUDMOUSEOVER=0xFE06;var GC_OP_DEBUG=0xFD01;var GC_OP_DEBUGWINDOW=0xFD02;var GC_OP_CLUSTERCOUNT=0xFD03;var GC_OP_REALTIME=0xFD04;var GC_OP_SUSPEND_RENDER=0xFD05;var GC_OP_CLOUDCOUNT=0xFD06;var GC_RF_KEY=0xFC01;var GC_RF_CHANGE=0xFC02;var GC_RF_LIFETIME=0xFC03;var GC_VR_COUNTDESCR=0xFB01;var GC_RND_CUBES=0xFA01;var GC_RND_CLOUDS=0xFA02;var GC_FD1=1;var GC_FD2=2;var GC_FD3=3;var GC_FD4=4;var GC_FD5=5;var GC_EQ=1;var GC_LT=2;var GC_GT=3;var GC_LE=4;var GC_GE=5;var g=[];function r(){};r.prototype=new GControl();r.prototype.initialize=function(map){var ad=document.createElement("a");ad.style.background="url(http://api.geocubes.com/api/geocubes_clustered_by.png)";ad.style.cursor="pointer";ad.href="http://www.geocubes.com";ad.target="_blank";ad.title="geocubes website...";ad.style.width="120px";ad.style.height="34px";GC_GMapObj.getContainer().appendChild(ad);return ad;};r.prototype.getDefaultPosition=function(){return new GControlPosition(G_ANCHOR_BOTTOM_LEFT,new GSize(1,38));};function o(point,i,gccObj){this.point_=point;this.i_=i;this.gccObj_=gccObj;};o.prototype=new GOverlay();o.prototype.initialize=function(map){var div=document.createElement("div");div.style.display="block";div.style.border="0px solid #000000";div.style.position="absolute";div.style.marginTop="25px";div.style.padding="0px";div.style.textAlign="center";div.style.color="white";div.style.fontFamily="Arial";div.style.fontSize="9px";div.style.lineHeight="64px";div.style.cursor="pointer";div.style.width="64px";div.style.height="64px";var c=map.fromLatLngToDivPixel(this.point_);div.style.left=(c.x-div.offsetWidth/2)+"px";div.style.top=(c.y-div.offsetHeight/2)+"px";div.innerHTML=this.i_;if(GC_Obj.B[GC_VR_COUNTDESCR])div.innerHTML+=" "+GC_Obj.B[GC_VR_COUNTDESCR];GEvent.bindDom(div,"click",this,function(a){if(!GC_FLAG_NOCLICK)GEvent.trigger(this.gccObj_,"click",this.gccObj_);});GEvent.bindDom(div,"mouseover",this,function(){if(this.gccObj_.ab)return;else{for(var i=0;i<g.length;i++){if(g[i].ab==true){g[i].ab=false;GEvent.trigger(g[i],"mouseout");}}this.gccObj_.ab=true;GEvent.trigger(this.gccObj_,"mouseover",this.gccObj_);}});GEvent.bindDom(div,"mouseout",this,function(){if(this.gccObj_.ab){GEvent.trigger(this.gccObj_,"mouseout",this.gccObj_);this.gccObj_.ab=false;}});map.getPane(G_MAP_MARKER_SHADOW_PANE).appendChild(div);this.map_=map;this.div_=div;};o.prototype.remove=function(){this.div_.parentNode.removeChild(this.div_);};o.prototype.copy=function(){return new o(this.point_,this.icon_);};o.prototype.redraw=function(force){if(!force)return;this.div_.style.width="64px";var c=this.map_.fromLatLngToDivPixel(this.point_);this.div_.style.left=(c.x-this.div_.offsetWidth/2)+"px";this.div_.style.top=(c.y-this.div_.offsetHeight/2)+"px";};var inMouseOver=false;function j(point,icon,k){this.icon_=icon;this.point_=point;this.k_=k;this.count=GC_Obj.aa[k].i;this.cclayer=null;};j.prototype=new GOverlay();j.prototype.initialize=function(map){var div=document.createElement("div");div.style.align="left";div.style.border="0px";div.style.position="absolute";div.style.width="64px";div.style.height="64px";div.style.cursor="pointer";div.innerHTML='<img src="'+this.icon_.image+'" style="border: 0px; width: 64px; height: 64px;">';g.push(this);this.ak=g.length-1;this.ab=false;GEvent.bindDom(div,"click",this,function(a){if(!GC_FLAG_NOCLICK)GEvent.trigger(this,"click",this);});GEvent.bindDom(div,"mouseover",this,function(m){if(this.ab)return;else{for(var i=0;i<g.length;i++){if(g[i].ab==true){g[i].ab=false;GEvent.trigger(g[i],"mouseout");}}this.ab=true;GEvent.trigger(this,"mouseover",this);}});GEvent.bindDom(div,"mouseout",this,function(a,b){GEvent.trigger(this,"mouseout",this);this.ab=false;});if(GC_Obj.l[GC_OP_CLUSTERCOUNT]==1||GC_Obj.l[GC_OP_CLOUDCOUNT]==1){this.cclayer=new o(new GLatLng(this.point_.lat(),this.point_.lng()),GC_Obj.aa[this.k_].i,div);GC_GMapObj.addOverlay(this.cclayer);}else this.cclayer=1;map.getPane(G_MAP_MAP_PANE).appendChild(div);this.map_=map;this.div_=div;};j.prototype.remove=function(){this.div_.parentNode.removeChild(this.div_);};j.prototype.copy=function(){return new j(this.bounds_,this.weight_,this.color_,this.backgroundColor_,this.opacity_);};j.prototype.redraw=function(force){if(!force)return;this.div_.style.width="64px";this.div_.style.height="64px";var c=this.map_.fromLatLngToDivPixel(this.point_);this.div_.style.left=(c.x-this.div_.offsetWidth/2)+"px";this.div_.style.top=(c.y-this.div_.offsetHeight/2)+"px";};j.prototype.setImage=function(a){this.div_.innerHTML='<img src="'+a+'" style="border: 0px; width: 64px; height: 64px;">';};j.prototype.getLatLng=function(){return this.point_;};j.prototype.onMouseDown=function(a){if(!GC_FLAG_NOCLICK)GEvent.trigger(this,"click",this);};j.prototype.getClusterCountDIV=function(){if(GC_Obj.l[GC_OP_CLUSTERCOUNT]==1||GC_Obj.l[GC_OP_CLOUDCOUNT]==1)return this.cclayer.div_;else return 0;};function gcGrid(GMapObj,I,dev){GC_Obj=this;GC_GMapObj=GMapObj;GC_GMapDiv=GMapObj.getContainer();if(!dev){this.C='http://api.geocubes.com';this.rt_conn='http://api.geocubes.com:7000';this.rt_url=this.C+'/api/rt_geocubes.js';this.T=this.C+'/bin/supermap';}else{this.C='http://virtual08:81';this.rt_conn='http://virtual08:7000';this.rt_url=this.C+'/gym/rt_geocubes_v1.js';this.T=this.C+'/bin/supermap';}this.U=I;this.ae=0;this.ag="";this.aa=new Array();this.am=new Array;this.filters="";this.aq="";this.ar=0;this.batchEntrys=new Array();this.batchPointer=0;this.rtActive=0;this.rtNoPoints= -1;this.rtObj=null;this.Q='';this.J=0;this.P=3600;this.eGLv=0;this.R=GC_RND_CUBES;this.v=function(event){if(event.stopPropagation)event.stopPropagation();else if(window.event){event=window.event;event.cancelBubble=true;}return false;};this.f=new Array();this.d=new Array();this.l=new Array();this.B=new Array();if(!window.ActiveXObject)document.domain=document.domain;this.log("gcGrid - Setting up Grid Object - "+GMapObj+" - "+I);};gcGrid.prototype.setIcon=function(type,icon){this.log("setIcon - "+type+" - "+icon);if(type==GC_IC_POINT||type==GC_IC_CLUSTER||type==GC_IC_POINTMOUSEOVER||type==GC_IC_CLUSTERMOUSEOVER||type==GC_IC_CLOUD||type==GC_IC_CLOUDMOUSEOVER)this.d[type]=icon;else this.d[type]=0;};gcGrid.prototype.setOption=function(type,oval){this.log("setOption - "+type+" - "+oval);if(type==GC_OP_CLUSTERCOUNT||type==GC_OP_DEBUG||type==GC_OP_DEBUGWINDOW||type==GC_OP_REALTIME||type==GC_OP_SUSPEND_RENDER||type==GC_OP_CLOUDCOUNT)this.l[type]=oval;else this.l[type]=0;};gcGrid.prototype.setCallback=function(type,M){this.log("setCallback - "+type+" - "+M);if(type==GC_CB_POINTCLICK||type==GC_CB_POINTMOUSEOVER||type==GC_CB_POINTMOUSEOUT||type==GC_CB_CLUSTERCLICK||type==GC_CB_CLUSTERMOUSEOVER||type==GC_CB_CLUSTERMOUSEOUT||type==GC_CB_ONCREATECLUSTER||type==GC_CB_ONCREATEPOINT||type==GC_CB_ONLOADSTART||type==GC_CB_ONLOADEND||type==GC_CB_CLUSTERCLICK_RAW||type==GC_CB_CLOUDCLICK||type==GC_CB_CLOUDMOUSEOVER||type==GC_CB_CLOUDMOUSEOUT||type==GC_CB_ONCREATECLOUD||type==GC_CB_CLOUDCLICK_RAW)this.f[type]=M;else this.f[type]=0;};gcGrid.prototype.setRendering=function(ap){this.log("setRendering - "+ap);if(ap==GC_RND_CUBES||ap==GC_RND_CLOUDS)this.R=ap;else this.R=GC_RND_CUBES;};gcGrid.prototype.setVar=function(type,oval){this.log("setVar - "+type+" - "+oval);if(type==GC_VR_COUNTDESCR)this.B[type]=oval;else this.B[type]=0;};gcGrid.prototype.eGL=function(){if(this.eGLv!=1){this.eGLv=1;GC_GMapObj.addControl(new r());}};gcGrid.prototype.F=function(ae){this.log("F - "+ae);this.ae=ae;if(ae==1000)this.ag="GMap Object could not be found!";else if(ae==1001)this.ag="Can't load Container!";return-1;};gcGrid.prototype.H=function(url,G){this.log("H - "+url+" - "+G);var A=document.createElement('script');A.type='text/javascript';A.onload=G;A.src=url;A.setAttribute('id','miScript');document.getElementsByTagName('head')[0].appendChild(A);};gcGrid.prototype.renderGrid=function(V){this.log("renderGrid - Rendering...");GC_FLAG_NOCLICK=0;GC_GMapObj.clearOverlays();g.length=0;this.aa=V;this.ar=0;this.batchPointer=0;this.batchEntrys=new Array();var bounds=GC_GMapObj.getBounds();var al=(90.0/Math.pow(2.0,GC_GMapObj.getZoom()))/2;for(k in this.aa){if(bounds.contains(new GLatLng(this.aa[k].lt-al,this.aa[k].lg-al))==true||bounds.contains(new GLatLng(this.aa[k].lt+al,this.aa[k].lg+al))==true){var ai;var latlng=new GLatLng(this.aa[k].lt,this.aa[k].lg);if(this.aa[k].t==1){var ac=(90.0/Math.pow(2,GC_GMapObj.getZoom()))/2.0;this.ar+=this.aa[k].i;this.aa[k].ai=this.L(latlng,1,k);this.aa[k].lgNE=latlng.lng()+ac;GC_GMapObj.addOverlay(this.aa[k].ai);if(this.f[GC_CB_ONCREATECLUSTER])this.f[GC_CB_ONCREATECLUSTER](this.aa[k].ai,new GLatLng(this.aa[k].ltNE,latlng.lng()+ac),new GLatLng(this.aa[k].ltSW,latlng.lng()-ac));}else if(this.aa[k].t==3){var ac=(90.0/Math.pow(2,GC_GMapObj.getZoom()))/2.0;this.ar+=this.aa[k].i;this.aa[k].ai=this.L(latlng,3,k);this.aa[k].lgNE=latlng.lng()+ac;GC_GMapObj.addOverlay(this.aa[k].ai);this.aa[k].ai.getClusterCountDIV().style.marginTop="0px";this.aa[k].ai.getClusterCountDIV().style.fontSize="14px";this.aa[k].ai.getClusterCountDIV().style.fontWeight="bold";if(this.f[GC_CB_ONCREATECLOUD])this.f[GC_CB_ONCREATECLOUD](this.aa[k].ai,new GLatLng(this.aa[k].ltNE,latlng.lng()+ac),new GLatLng(this.aa[k].ltSW,latlng.lng()-ac),this.aa[k].w);}else if(this.aa[k].t==2){this.ar++;if(!this.aa[k].f1)this.aa[k].f1=0;if(!this.aa[k].f2)this.aa[k].f2=0;if(!this.aa[k].ft)this.aa[k].ft="";this.aa[k].ai=this.L(latlng,2,k);GC_GMapObj.addOverlay(this.aa[k].ai);if(this.f[GC_CB_ONCREATEPOINT])this.f[GC_CB_ONCREATEPOINT](this.aa[k].ai,this.aa[k].ti,this.aa[k].ft,this.aa[k].f1,this.aa[k].f2);}}}if(this.l[GC_OP_DEBUG]==1)document.getElementById('spruntime').innerHTML='<center><b>clustered in '+this.aa[this.aa.length-2].xx+' seconds</b></center>';document.getElementsByTagName('head')[0].removeChild(document.getElementById('miScript'));if(this.f[GC_CB_ONLOADEND])this.f[GC_CB_ONLOADEND]();if(GC_GMapDiv.addEventListener)GC_GMapDiv.removeEventListener('mouseover',this.v,true);else GC_GMapDiv.detachEvent('onmouseover',this.v);this.rtNoPoints=1;};gcGrid.prototype.D=function(){if(this.l[GC_OP_SUSPEND_RENDER]!=1){this.log("D - Requesting new Data from Supermap");if(this.rtNoPoints== -1&&this.l[GC_OP_REALTIME]==1){this.enableRealtime(function(){GC_Obj.rtObj=new gcRT();GC_Obj.rtObj.connectRT(GC_Obj.rt_conn+'/',null);window.setTimeout(function(){GC_Obj.rtObj.loadKill();},2000);});}this.rtNoPoints=0;var bounds=GC_GMapObj.getBounds();var af=GC_GMapObj.getCurrentMapType().getProjection();var zoom=GC_GMapObj.getZoom();var pt=af.fromLatLngToPixel(new GLatLng(bounds.getNorthEast().lat(),bounds.getNorthEast().lng()),zoom);var ah=af.fromLatLngToPixel(new GLatLng(bounds.getSouthWest().lat(),bounds.getSouthWest().lng()),zoom);var aj=af.fromPixelToLatLng(new GPoint(Math.floor(ah.x/256)*256,Math.floor(ah.y/256)*256),zoom);var url=this.T+'?key='+this.U+'&tr='+(this.R==GC_RND_CLOUDS?2:1)+'&fk='+this.Q+'&fc='+this.J+'&fl='+this.P+'&tf='+this.aq+'&f='+this.filters+'&host='+window.location.host+'&slg='+aj.lng()+'&z='+zoom+'&pty='+(Math.floor(pt.y/256)*256)+'&h='+GC_GMapObj.getSize().height+'&w='+GC_GMapObj.getSize().width+'&os='+Math.random()*100000000;if(this.f[GC_CB_ONLOADSTART])this.f[GC_CB_ONLOADSTART]();if(this.rtObj&&this.rtObj.rtActive==1){this.rtObj.changePos('?key='+this.U+'&z='+zoom+'&nelt='+bounds.getNorthEast().lat()+'&nelg='+bounds.getNorthEast().lng()+'&swlt='+bounds.getSouthWest().lat()+'&swlg='+bounds.getSouthWest().lng());}this.J=0;this.H(url,function(){});}};gcGrid.prototype.zoomIn=function(point){if(GC_GMapObj.getZoom()+3>GC_GMapObj.getCurrentMapType().getMaximumResolution())GC_GMapObj.setCenter(new GLatLng(point.lat(),point.lng()),GC_GMapObj.getCurrentMapType().getMaximumResolution());else GC_GMapObj.setCenter(new GLatLng(point.lat(),point.lng()),GC_GMapObj.getZoom()+3);};gcGrid.prototype.loadKill=function(){var load_kill_ifr;load_kill_ifr=document.createElement('iframe');document.body.appendChild(load_kill_ifr);document.body.removeChild(load_kill_ifr);};gcGrid.prototype.K=function(){this.log("K - Enable Debug Mode");var s=document.createElement('span');s.setAttribute('id','spruntime');s.innerHTML="<center><b></b></center>";s.style.display="block";s.style.padding="3px 3px";s.style.position="absolute";s.style.fontSize="10px";s.style.fontFamily="Verdana";s.style.top="30px";s.style.right="7px";s.style.lineHeight="7px";s.style.width="180px";s.style.backgroundColor="#FFFFFF";s.style.height="10px";s.style.border='1px #000000 solid';s.style.opacity=0.80;s.style.filter='alpha(opacity = 80)';GC_GMapDiv.appendChild(s);};gcGrid.prototype.renderError=function(msg){this.log("renderError - show renderError Message");alert(msg);};gcGrid.prototype.O=function(){this.log("O - Disable Debug Mode");if(document.getElementById('spruntime'))GC_GMapDiv.removeChild(document.getElementById('spruntime'));};gcGrid.prototype.log=function(lt){if(this.l[GC_OP_DEBUG]==1&&this.l[GC_OP_DEBUGWINDOW])this.l[GC_OP_DEBUGWINDOW].innerHTML="&nbsp;"+lt+"<br>\n"+this.l[GC_OP_DEBUGWINDOW].innerHTML;};gcGrid.prototype.enableRealtime=function(G){this.log("enableRealtime - "+this.rt_url+" - "+G);var rtScript=document.createElement('script');rtScript.type='text/javascript';rtScript.onload=G;rtScript.src=this.rt_url;rtScript.setAttribute('id','rtScript');document.getElementsByTagName('head')[0].appendChild(rtScript);};gcGrid.prototype.enableRenderGrid=function(){this.log("enableRenderGrid - enable Grid rendering");if(!GC_GMapObj.isLoaded())return this.F(1000);if(!GC_GMapDiv)return this.F(1001);if(this.l[GC_OP_DEBUG]==1)this.K();if(!this.d[GC_IC_POINT]){this.d[GC_IC_POINT]=new GIcon();this.d[GC_IC_POINT].image=this.C+"/images/default_gc_point.png";this.d[GC_IC_POINT].iconSize=new GSize(22,24);this.d[GC_IC_POINT].iconAnchor=new GPoint(11,24);}if(!this.d[GC_IC_CLUSTER]){this.d[GC_IC_CLUSTER]=new GIcon();this.d[GC_IC_CLUSTER].image=this.C+"/images/default_gc_cluster.png";this.d[GC_IC_CLUSTER].iconSize=new GSize(64,64);this.d[GC_IC_CLUSTER].iconAnchor=new GPoint(32,32);}if(!this.d[GC_IC_CLOUD]){this.d[GC_IC_CLOUD]=new GIcon();this.d[GC_IC_CLOUD].image=this.C+"/images/default_gc_bubble.png";this.d[GC_IC_CLOUD].iconSize=new GSize(64,64);this.d[GC_IC_CLOUD].iconAnchor=new GPoint(32,32);}GC_hdlDMS=GEvent.addDomListener(GC_GMapDiv,"DOMMouseScroll",function(m){if(!m)m=window.event;if(m.preventDefault)m.preventDefault();m.returnValue=false;});GC_hdlZS=GEvent.addListener(GC_GMapObj,"zoomstart",function(){if(GC_GMapDiv.addEventListener)GC_GMapDiv.addEventListener('mouseover',GC_Obj.v,true);else GC_GMapDiv.attachEvent('onmouseover',GC_Obj.v);});GC_hdlMS=GEvent.addListener(GC_GMapObj,"movestart",function(){if(GC_GMapDiv.addEventListener)GC_GMapDiv.addEventListener('mouseover',GC_Obj.v,true);else GC_GMapDiv.attachEvent('onmouseover',GC_Obj.v);GC_FLAG_NOCLICK=1;});GC_hdlME=GEvent.addListener(GC_GMapObj,"moveend",function(){GC_Obj.D();});this.D();};gcGrid.prototype.disableRenderGrid=function(){this.log("disableRenderGrid - disable Grid rendering");GEvent.removeListener(GC_hdlZS);GEvent.removeListener(GC_hdlMS);GEvent.removeListener(GC_hdlME);GEvent.removeListener(GC_hdlDMS);this.O();GC_GMapObj.clearOverlays();};gcGrid.prototype.L=function(point,type,k){var ai;if(type==1){ai=new j(point,this.d[GC_IC_CLUSTER],k);GEvent.addDomListener(ai,"mouseover",function(){var ac=(90.0/Math.pow(2,GC_GMapObj.getZoom()))/2.0;if(GC_Obj.d[GC_IC_CLUSTERMOUSEOVER])ai.setImage(GC_Obj.d[GC_IC_CLUSTERMOUSEOVER].image);if(GC_Obj.f[GC_CB_CLUSTERMOUSEOVER])GC_Obj.f[GC_CB_CLUSTERMOUSEOVER](ai,new GLatLng(GC_Obj.aa[k].ltNE,point.lng()+ac),new GLatLng(GC_Obj.aa[k].ltSW,point.lng()-ac));});GEvent.addDomListener(ai,"mouseout",function(){var ac=(90.0/Math.pow(2,GC_GMapObj.getZoom()))/2.0;if(GC_Obj.d[GC_IC_CLUSTERMOUSEOVER])ai.setImage(GC_Obj.d[GC_IC_CLUSTER].image);if(GC_Obj.f[GC_CB_CLUSTERMOUSEOUT])GC_Obj.f[GC_CB_CLUSTERMOUSEOUT](ai,new GLatLng(GC_Obj.aa[k].ltNE,point.lng()+ac),new GLatLng(GC_Obj.aa[k].ltSW,point.lng()-ac));});GEvent.addListener(ai,"click",function(){var ac=(90.0/Math.pow(2,GC_GMapObj.getZoom()))/2.0;if(GC_Obj.f[GC_CB_CLUSTERCLICK_RAW])GC_Obj.f[GC_CB_CLUSTERCLICK_RAW](ai,new GLatLng(GC_Obj.aa[k].ltNE,point.lng()+ac),new GLatLng(GC_Obj.aa[k].ltSW,point.lng()-ac));else{GC_Obj.zoomIn(point);if(GC_Obj.f[GC_CB_CLUSTERCLICK])GC_Obj.f[GC_CB_CLUSTERCLICK](ai,new GLatLng(GC_Obj.aa[k].ltNE,point.lng()+ac),new GLatLng(GC_Obj.aa[k].ltSW,point.lng()-ac));}});}else if(type==3){ai=new j(point,this.d[GC_IC_CLOUD],k);GEvent.addDomListener(ai,"mouseover",function(){var ac=(90.0/Math.pow(2,GC_GMapObj.getZoom()))/2.0;if(GC_Obj.d[GC_IC_CLOUDMOUSEOVER])ai.setImage(GC_Obj.d[GC_IC_CLOUDMOUSEOVER].image);if(GC_Obj.f[GC_CB_CLOUDMOUSEOVER])GC_Obj.f[GC_CB_CLOUDMOUSEOVER](ai,new GLatLng(GC_Obj.aa[k].ltNE,point.lng()+ac),new GLatLng(GC_Obj.aa[k].ltSW,point.lng()-ac));});GEvent.addDomListener(ai,"mouseout",function(){var ac=(90.0/Math.pow(2,GC_GMapObj.getZoom()))/2.0;if(GC_Obj.d[GC_IC_CLOUDMOUSEOVER])ai.setImage(GC_Obj.d[GC_IC_CLOUD].image);if(GC_Obj.f[GC_CB_CLOUDMOUSEOUT])GC_Obj.f[GC_CB_CLOUDMOUSEOUT](ai,new GLatLng(GC_Obj.aa[k].ltNE,point.lng()+ac),new GLatLng(GC_Obj.aa[k].ltSW,point.lng()-ac));});GEvent.addListener(ai,"click",function(){var ac=(90.0/Math.pow(2,GC_GMapObj.getZoom()))/2.0;if(GC_Obj.f[GC_CB_CLOUDCLICK_RAW])GC_Obj.f[GC_CB_CLOUDCLICK_RAW](ai,new GLatLng(GC_Obj.aa[k].ltNE,point.lng()+ac),new GLatLng(GC_Obj.aa[k].ltSW,point.lng()-ac));else{GC_Obj.zoomIn(point);if(GC_Obj.f[GC_CB_CLOUDCLICK])GC_Obj.f[GC_CB_CLOUDCLICK](ai,new GLatLng(GC_Obj.aa[k].ltNE,point.lng()+ac),new GLatLng(GC_Obj.aa[k].ltSW,point.lng()-ac));}});}else if(type==2){ai=new GMarker(point,this.d[GC_IC_POINT]);GEvent.addListener(ai,"mouseover",function(){if(GC_Obj.d[GC_IC_POINTMOUSEOVER])ai.setImage(GC_Obj.d[GC_IC_POINTMOUSEOVER].image);if(GC_Obj.f[GC_CB_POINTMOUSEOVER])GC_Obj.f[GC_CB_POINTMOUSEOVER](ai,GC_Obj.aa[k].ti,GC_Obj.aa[k].ft,GC_Obj.aa[k].f1,GC_Obj.aa[k].f2);});GEvent.addListener(ai,"mouseout",function(){if(GC_Obj.d[GC_IC_POINTMOUSEOVER])ai.setImage(GC_Obj.d[GC_IC_POINT].image);if(GC_Obj.f[GC_CB_POINTMOUSEOUT])GC_Obj.f[GC_CB_POINTMOUSEOUT](ai,GC_Obj.aa[k].ti,GC_Obj.aa[k].ft,GC_Obj.aa[k].f1,GC_Obj.aa[k].f2);});GEvent.addListener(ai,"click",function(){if(GC_Obj.f[GC_CB_POINTCLICK])GC_Obj.f[GC_CB_POINTCLICK](ai,GC_Obj.aa[k].ti,GC_Obj.aa[k].ft,GC_Obj.aa[k].f1,GC_Obj.aa[k].f2);});}return ai;};gcGrid.prototype.andFilter=function(an,op,ap){if(an==GC_FD1||an==GC_FD2||an==GC_FD3||an==GC_FD4||an==GC_FD5){if(op==GC_EQ||op==GC_LT||op==GC_GT||op==GC_LE||op==GC_GE){if(!isNaN(ap)){var ind=0;if(this.am.length)ind=this.am.length;this.am[ind]=new Object;this.am[ind].ao=1;this.am[ind].an=an;this.am[ind].op=op;this.am[ind].ap=ap;}}}};gcGrid.prototype.andFilterRelease=function(an,op,ap){var i;for(i=0;i<this.am.length;i++){if(this.am[i].ao==1&&this.am[i].an==an&&this.am[i].op==op&&this.am[i].ap==ap){this.am.splice(i,1);break;}}};gcGrid.prototype.orFilter=function(an,op,ap){if(an==GC_FD1||an==GC_FD2||an==GC_FD3||an==GC_FD4||an==GC_FD5){if(op==GC_EQ||op==GC_LT||op==GC_GT||op==GC_LE||op==GC_GE){if(!isNaN(ap)){var ind=0;if(this.am.length)ind=this.am.length;this.am[ind]=new Object();this.am[ind].ao=0;this.am[ind].an=an;this.am[ind].op=op;this.am[ind].ap=ap;}}}};gcGrid.prototype.orFilterRelease=function(an,op,ap){var i;for(i=0;i<this.am.length;i++){if(this.am[i].ao==0&&this.am[i].an==an&&this.am[i].op==op&&this.am[i].ap==ap){this.am.splice(i,1);break;}}};gcGrid.prototype.textFilter=function(ap){this.aq=ap;};gcGrid.prototype.textFilterRelease=function(){this.aq="";};gcGrid.prototype.renderFilter=function(){this.filters="";for(var i=0;i<this.am.length;i++)this.filters=this.filters+this.am[i].ao+""+this.am[i].an+""+this.am[i].op+"_"+this.am[i].ap+"!";this.D();};gcGrid.prototype.releaseFilters=function(){this.filters="";this.am=new Array();};gcGrid.prototype.getTotalCount=function(){return this.ar;};gcGrid.prototype.remoteFilter=function(type,value){if(type==GC_RF_KEY)this.Q=value;else if(type==GC_RF_CHANGE)this.J=value;else if(type==GC_RF_LIFETIME)this.P=value;}
