depreciados_compacto.js 16.8 KB
function i3GEOmantemCompatibilidade(){try{i3GEO.configura.oMenuData=oMenuData}catch(e){alert("funcao depreciada")}try{i3GEO.configura.tipoimagem=g_tipoimagem}catch(e){alert("funcao depreciada")}try{i3GEO.configura.tipotip=g_tipotip}catch(e){alert("funcao depreciada")}try{i3GEO.configura.funcaoTip=g_funcaoTip}catch(e){alert("funcao depreciada")}try{i3GEO.configura.map3d=g_3dmap}catch(e){alert("funcao depreciada")}try{i3GEO.configura.embedLegenda=g_embedLegenda}catch(e){alert("funcao depreciada")}try{i3GEO.configura.templateLegenda=g_templateLegenda}catch(e){alert("funcao depreciada")}try{if(objmapa.finaliza!="")i3GEO.finaliza=objmapa.finaliza}catch(e){alert("funcao depreciada")};g_arvoreClick="";g_arvoreClicks="";if($i("longlat")){atualizalonglat=function(){$i("longlat").innerHTML=objposicaocursor.dmsx+"   "+objposicaocursor.dmsy};YAHOO.util.Event.addListener($i("img"),"mousemove",atualizalonglat)}try{if(g_opcoesTemas=="nao"){i3GEO.arvoreDeCamadas.OPCOESTEMAS=false}}catch(e){alert("funcao depreciada")};try{i3GEO.maparef.fatorZoomDinamico=g_zoomRefDinamico}catch(e){alert("funcao depreciada")};try{i3GEO.configura.mashuppar=g_mashuppar}catch(e){alert("funcao depreciada")};try{if(!$i("arvoreAdicionaTema")){i3GEO.arvoreDeTemas.IDHTML=objmapa.guiaMenu+"obj"}else{i3GEO.arvoreDeTemas.IDHTML="arvoreAdicionaTema"}}catch(e){alert("funcao depreciada")};try{if(g_uploaddbf=="nao"){i3GEO.arvoreDeTemas.OPCOESADICIONAIS.uploaddbf=false}}catch(e){alert("funcao depreciada")};try{if(g_uploadlocal=="nao"){i3GEO.arvoreDeTemas.OPCOESADICIONAIS.uploadlocal=false}}catch(e){alert("funcao depreciada")};try{if(g_downloadbase=="nao"){i3GEO.arvoreDeTemas.OPCOESADICIONAIS.downloadbase=false}}catch(e){alert("funcao depreciada")};try{if(g_conectarwms=="nao"){i3GEO.arvoreDeTemas.OPCOESADICIONAIS.conectarwms=false}}catch(e){alert("funcao depreciada")};try{if(g_conectargeorss=="nao"){i3GEO.arvoreDeTemas.OPCOESADICIONAIS.conectargeorss=false}}catch(e){alert("funcao depreciada")};try{if(g_nuvemTags=="nao"){i3GEO.arvoreDeTemas.OPCOESADICIONAIS.nuvemTags=false}}catch(e){alert("funcao depreciada")};try{if(g_kml=="nao"){i3GEO.arvoreDeTemas.OPCOESADICIONAIS.kml=false}}catch(e){alert("funcao depreciada")};try{if(g_qrcode=="nao"){i3GEO.arvoreDeTemas.OPCOESADICIONAIS.qrcode=false}}catch(e){alert("funcao depreciada")};try{if(g_tipoacao!=""){i3GEO.barraDeBotoes.BOTAOPADRAO=g_tipoacao}}catch(e){alert("funcao depreciada")}try{if(g_listaPropriedades){i3GEO.configura.listaDePropriedadesDoMapa=g_listaPropriedades}}catch(e){alert("funcao depreciada")};try{if(g_tempo_aplicar){i3GEO.configura.tempoAplicar=g_tempo_aplicar}}catch(e){alert("funcao depreciada")};try{if(g_janelaMen=="nao"){i3GEO.configura.iniciaJanelaMensagens=false}}catch(e){alert("funcao depreciada")};try{if(g_locaplic){i3GEO.configura.locaplic=g_locaplic}}catch(e){alert("funcao depreciada")};try{if(g_tempotip){i3GEO.configura.tempoMouseParado=g_tempotip}}catch(e){alert("funcao depreciada")};try{if(g_mostraRosa){i3GEO.configura.mostraRosaDosVentos=g_mostraRosa}}catch(e){alert("funcao depreciada")};try{if(g_visual){i3GEO.configura.visual=g_visual}}catch(e){alert("funcao depreciada")};try{if(g_mapaRefDisplay){i3GEO.configura.mapaRefDisplay=g_mapaRefDisplay}}catch(e){alert("funcao depreciada")};try{if(g_docaguias){i3GEO.configura.liberaGuias=g_docaguias}}catch(e){alert("funcao depreciada")};if(window.location.href.split("?")[1]){g_sid=window.location.href.split("?")[1];if(g_sid.split("#")[0]){g_sid=g_sid.split("#")[0]}}else{g_sid=""}i3GEO.configura.sid=g_sid;try{i3GEO.guias.ATUAL=g_guiaativa}catch(e){alert("funcao depreciada")}try{i3GEO.navega.autoRedesenho.INTERVALO=g_autoRedesenho}catch(e){alert("funcao depreciada")}try{i3GEO.eventos.NAVEGAMAPA=g_funcoesNavegaMapaDefault}catch(e){alert("funcao depreciada")}try{i3GEO.eventos.MOUSEMOVE=g_funcoesMousemoveMapaDefault}catch(e){alert("funcao depreciada")}try{i3GEO.eventos.MOUSECLIQUE=g_funcoesClickMapaDefault}catch(e){alert("funcao depreciada")}try{i3GEO.configura.entorno=g_entorno}catch(e){alert("funcao depreciada")}try{i3GEO.navega.lente.POSICAOX=g_posicaoLenteX=0}catch(e){alert("funcao depreciada")}try{i3GEO.navega.lente.POSICAOY=g_posicaoLenteY}catch(e){alert("funcao depreciada")}try{i3GEO.navega.destacaTema.TAMANHO=destacaTamanho}catch(e){alert("funcao depreciada")}if(!$i("tip")){var novoel=document.createElement("div");novoel.id="tip";novoel.style.position="absolute";novoel.style.zIndex=5000;if(navm){novoel.style.filter="alpha(opacity=90)"}document.body.appendChild(novoel)}try{objmapa.atualizaListaTemas=function(temas){alert("atualizaListaTemas foi depreciado. Utilize i3GEO.arvoreDeCamadas")}}catch(e){alert("funcao depreciada")}}if(typeof(i3GEO)=='undefined'){i3GEO=[]}cpObj=new cpaint();cpObj.set_async("true");cpObj.set_response_type("JSON");function Mapa(e,m){alert("Funcao Mapa foi depreciada. Utilize i3GEO.cria()");i3GEO.cria();this.inicializa=function(){i3GEO.finaliza=this.finaliza;i3GEO.inicia()}}objaguarde={abre:function(){alert("objaguarde foi depreciada. Utilize i3GEO.janela");i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1"))},fecha:function(){alert("objaguarde foi depreciada. Utilize i3GEO.janela");i3GEO.janela.fechaAguarde("i3GEO.atualiza")}};function iCookie(nome,valor){alert("iCookie foi depreciado. Utilize i3GEO.util.insereCookie");i3GEO.util.insereCookie(nome,valor)}function pCookie(nome){alert("pCookie foi depreciado. Utilize i3GEO.util.pegaCookie");i3GEO.util.pegaCookie(nome)}function wdocaf(wlargura,waltura,wsrc,nx,ny,texto){var janela=i3GEO.janela.cria(wlargura,waltura,wsrc,nx,ny,texto)}function wdocaf2(wlargura,waltura,wsrc,nx,ny,texto){var id=YAHOO.util.Dom.generateId();i3GEO.janela.cria(wlargura,waltura,wsrc,nx,ny,texto,id,true)}function processevent1(exy1){alert("funcao depreciada")}function mensagemBanner(){alert("funcao depreciada")}function borra(){alert("funcao depreciada")}function movecursor(){alert("funcao depreciada");if($i("obj")){if($i("openlayers")||$i("flamingo")){$i("obj").style.display="none"}else{var obje=$i("obj").style;if($i("img")){eval("obje."+g_tipotop+"= objposicaocursor.telay + 9 + g_postpx");eval("obje."+g_tipoleft+"= objposicaocursor.telax + 9 + g_postpx")}else{eval("obje."+g_tipotop+"= objposicaocursor.telay - 15 + g_postpx");eval("obje."+g_tipoleft+"= objposicaocursor.telax + 15 + g_postpx")}}}if($i("box1")){var bx=$i("box1");if(bx.style.visibility!="visible"){bx.style.left=objposicaocursor.telax+g_postpx;bx.style.top=objposicaocursor.telay+g_postpx}}}function buscaRapida(){alert("funcao depreciada");i3geo_buscarapida()}function initJanelaZoom(qual){alert("funcao depreciada");i3GEO.barraDeBotoes.reativa(qual-1)}function sobeferramentas(){alert("funcao depreciada")}function desceferramentas(){alert("funcao depreciada")}function arvoreclick(itemID){alert("funcao depreciada");if(itemID.search("tema")==0){if($i(itemID).checked==true){$i(itemID).checked=false}else{$i(itemID).checked=true}}}function pegaTema(celula){alert("funcao depreciada");var nos=celula.parentNode.childNodes;var tempi=nos.length;for(var no=0;no<tempi;no++){if(nos[no].type=="checkbox"){return nos[no].value}}}function gerafilmef(qs){alert("funcao depreciada")}function gravaQuadro(variavel,valor){alert("funcao depreciada");i3GEO.gadgets.quadros.grava(variavel,valor)}function avancaQuadro(){alert("funcao depreciada");i3GEO.gadgets.quadros.avanca()}function zoomAnterior(){alert("funcao depreciada")}function zoomProximo(){alert("funcao depreciada")}function opcoesQuadros(){alert("funcao depreciada")}function filmef(o){alert("funcao depreciada")}function rebobinaf(){alert("funcao depreciada")}function filmezf(o){alert("funcao depreciada")}function quadrofilme(){alert("funcao depreciada")}function filmeanimaf(){alert("funcao depreciada")}function filmeanimarodaf(janima){alert("funcao depreciada")}function pegaimagens(){alert("funcao depreciada")}function calculaArea(pontos,pixel){alert("funcao depreciada");return(i3GEO.calculo.area(pontos,pixel))}function calculadistancia(lga,lta,lgb,ltb){alert("funcao depreciada");return(i3GEO.calculo.distancia(lga,lta,lgb,ltb))}function initJanelaRef(){alert("funcao depreciada");i3GEO.maparef.inicia()}function ajaxReferencia(retorno){alert("funcao depreciada");i3GEO.maparef.processaImagem(retorno)}function clicouRef(){alert("funcao depreciada")}function movimentoRef(obj){alert("funcao depreciada")}function mostraTip(retorno){alert("funcao depreciada");if(!$i("tip")){var novoel=document.createElement("div");novoel.id="tip";novoel.style.position="absolute";novoel.style.zIndex=5000;if(navm){novoel.style.filter="alpha(opacity=90)"}document.body.appendChild(novoel)}var i=$i("i3geo_rosa");if(i)i.style.display="none";var mostra=false;var retorno=retorno.data;if((retorno!="erro")&&(retorno!=undefined)){if($i("img")){$i("img").title=""}if(retorno!=""){var res="<div id='cabecatip' style='text-align:left;background-color:rgb(240,240,240)'><span style='color:navy;cursor:pointer;text-align:left' onclick='javascript:objmapaparado=\"cancela\"'>parar&nbsp;&nbsp;</span>";res+="<span style='color:navy;cursor:pointer;text-align:left' onclick='javascript:i3GEO.janela.TIPS.push($i(\"tip\"));$i(\"tip\").id=\"\";$i(\"cabecatip\").innerHTML =\"\";$i(\"cabecatip\").id =\"\"' >fixar</span></div>";var temas=retorno.split("!");var tema=temas.length-1;if(tema>=0){do{var titulo=temas[tema].split("@");if(g_tipotip=="completo"){res+="<span style='text-align:left;font-size:9pt'><b>"+titulo[0]+"</b></span><br>"}var ocorrencias=titulo[1].split("*");var ocorrencia=ocorrencias.length-1;if(ocorrencia>=0){do{if(ocorrencias[ocorrencia]!=""){var pares=ocorrencias[ocorrencia].split("##");var paresi=pares.length;for(var par=0;par<paresi;par++){var valores=pares[par].split("#");if(g_tipotip=="completo"){res=res+"<span class='tiptexto' style='text-align:left;font-size:9pt'>"+valores[0]+" <i>"+valores[1]+"</i></span><br>";var mostra=true}else{res=res+"<span class='tiptexto' style='text-align:left;font-size:9pt'><i>"+valores[1]+"</i></span><br>";var mostra=true}}}}while(ocorrencia--)}}while(tema--)}if(!mostra){$i("tip").style.display="none";return}if($i("janelaMen")){$i("janelaMenTexto").innerHTML=res}else{var i=$i("tip");i.innerHTML="<table style='text-align:left'><tr><td style='text-align:left'>"+res+"</td></tr></table>";ist=i.style;ist.top=objposicaocursor.telay-10;ist.left=objposicaocursor.telax-20;ist.display="block"}}}}function trataErro(){alert("funcao depreciada");i3GEO.janela.fechaAguarde()}function mostraguiaf(guia){alert("funcao depreciada");i3GEO.guias.mostra(guia)}function ativaGuias(){alert("funcao depreciada");for(var g=0;g<12;g++){if($i("guia"+g))var gpai=$i("guia"+g).parentNode}if(gpai){gpai.id="guiasYUI";gpai.className="yui-navset";var ins='<ul class="yui-nav" style="border-width:0pt 0pt 0px;border-color:rgb(240,240,240);border-bottom-color:white;">';try{if($i(objmapa.guiaTemas)){$i(objmapa.guiaTemas).innerHTML=$trad("g1")}if($i(objmapa.guiaMenu)){$i(objmapa.guiaMenu).innerHTML=$trad("g2")}if($i(objmapa.guiaLegenda)){$i(objmapa.guiaLegenda).innerHTML=$trad("g3")}if($i(objmapa.guiaListaMapas)){$i(objmapa.guiaListaMapas).innerHTML=$trad("g4")}}catch(e){alert("funcao depreciada")};for(var g=0;g<12;g++){if($i("guia"+g)){var tituloguia=$i("guia"+g).innerHTML;var re=new RegExp("&nbsp;","g");var tituloguia=tituloguia.replace(re,'');ins+='<li><a href="#"><em><div id="guia'+g+'" >'+tituloguia+'</div></em></a></li>'}}ins+="</ul>";gpai.innerHTML=ins;for(var g=0;g<12;g++){if($i("guia"+g)){eval('$i("guia'+g+'").onclick = function(){g_guiaativa = "guia'+g+'";mostraguiaf('+g+');}');$i("guia"+g).onmouseover=function(){var bcg=this.parentNode.parentNode.style;var cor=bcg.background.split(" ")[0];if(cor!="white")bcg.background="#bfdaff"};$i("guia"+g).onmouseout=function(){var bcg=this.parentNode.parentNode.style;var cor=bcg.background.split(" ")[0];if(cor!="white")bcg.background="transparent"};if($i("guia"+g+"obj")){$i("guia"+g+"obj").style.overflow="auto";$i("guia"+g+"obj").style.height=i3GEO.parametros.h}}}}if($i(objmapa.guiaTemas)){$i(objmapa.guiaTemas).onclick=function(){g_guiaativa=objmapa.guiaTemas;mostraguiaf(1)}}if($i(objmapa.guiaMenu)){$i(objmapa.guiaMenu).onclick=function(){g_guiaativa=objmapa.guiaMenu;mostraguiaf(2);if(!$i("arvoreAdicionaTema")){var ondeArvore=objmapa.guiaMenu+"obj"}else{var ondeArvore="arvoreAdicionaTema"}if(document.getElementById("outrasOpcoesAdiciona")){i3GEO.arvoreDeTemas.OPCOESADICIONAIS.idonde="outrasOpcoesAdiciona";i3GEO.arvoreDeTemas.OPCOESADICIONAIS.incluiArvore=false}i3GEO.arvoreDeTemas.cria(i3GEO.configura.sid,i3GEO.configura.locaplic,ondeArvore)}}if($i(objmapa.guiaLegenda)){$i(objmapa.guiaLegenda).onclick=function(){g_guiaativa=objmapa.guiaLegenda;mostraguiaf(4);objmapa.atualizaLegendaHTML()}}if($i(objmapa.guiaListaMapas)){$i(objmapa.guiaListaMapas).onclick=function(){g_guiaativa=objmapa.guiaListaMapas;mostraguiaf(5);if($i("banners")){$i("banners").innerHTML==$trad("o1");var p=i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=pegaMapas&g_sid="+i3GEO.configura.sid;cpObj.call(p,"pegaMapas",pegaMapas)}else{alert("id banners nao encontrado")}}}}function docaguias(){alert("funcao depreciada");i3GEO.guias.libera()}function autoRedesenho(opcao){alert("funcao depreciada")}function selecao(){alert("funcao depreciada")}function cliqueSelecao(){alert("funcao depreciada")}function zoomboxf(tipo){alert("funcao depreciada")}function i3geo_comboGruposMenu(funcaoOnchange,idDestino,idCombo,largura,altura){alert("funcao depreciada")}function i3geo_comboSubGruposMenu(funcaoOnchange,idDestino,idCombo,idGrupo,largura,altura){alert("funcao depreciada")}function i3geo_comboTemasMenu(funcaoOnchange,idDestino,idCombo,idGrupo,idSubGrupo,largura,altura){alert("funcao depreciada")}function remapaf(){i3GEO.atualiza("");alert("funcao depreciada")}function limpacontainerf(){alert("funcao depreciada")}function inseremarcaf(xi,yi,funcaoOnclick,container){alert("funcao depreciada");i3GEO.utl.insereMarca.cria(xi,yi,funcaoOnclick,container)}function moveSelecaoPoli(){alert("funcao depreciada")}function cliqueSelecaoPoli(){alert("funcao depreciada")}function ativaEntorno(){alert("funcao depreciada")}function geraURLentorno(){alert("funcao depreciada")}function ajustaEntorno(){alert("funcao depreciada")}function ajaxabrelente(retorno){alert("funcao depreciada")}function movelentef(){alert("funcao depreciada")}function ativaClicks(docMapa){alert("funcao depreciada")}function incluir(path){i3GEO.util.adicionaSHP(path);alert("funcao depreciada")}function pontosdist(){this.xpt=[];this.ypt=[];this.dist=[];this.xtela=[];this.ytela=[];this.ximg=[];this.yimg=[];this.linhas=[];alert("funcao depreciada")}function mudaiconf(i){i3GEO.barraDeBotoes.ativaIcone(i);alert("funcao depreciada")}function calcposf(){i3GEO.mapa.ajustaPosicao();alert("funcao depreciada")}function recuperamapa(){alert("funcao depreciada")}function desenhoRichdraw(tipo,objeto,n){alert("funcao depreciada")}function ajaxhttp(){alert("funcao depreciada");try{var objhttp1=new XMLHttpRequest()}catch(ee){try{var objhttp1=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{var objhttp1=new ActiveXObject("Microsoft.XMLHTTP")}catch(E){var objhttp1=false}}}return(objhttp1)}function ajaxexecAS(programa,funcao){alert("funcao depreciada");var ohttp=ajaxhttp();ohttp.open("POST",programa,true);var retorno="";ohttp.onreadystatechange=function(){if(ohttp.readyState==4){retorno=ohttp.responseText;var reg=/Warning/gi;if(retorno.search(reg)!=-1){alert("OOps! Ocorreu um erro\n"+retorno);return}var reg=/erro/gi;if(retorno.search(reg)!=-1){alert("OOps! Ocorreu um erro\n"+retorno);return}if(funcao!="volta"){eval(funcao+'("'+retorno+'")')}}};ohttp.send(null)}function ajaxexec(programa,funcao){alert("funcao depreciada");var objhttp=ajaxhttp();objhttp.open('GET',programa,false);objhttp.send(null);if(objhttp.status==200){if(funcao!="volta"){eval(funcao+'("'+objhttp.responseText+'")')}else{return objhttp.responseText}}}function ajaxLegendaHTML(retorno){alert("funcao depreciada")}function ajaxLegendaImagem(retorno){alert("funcao depreciada")}function mede(){alert("funcao depreciada")}function cliqueMede(){alert("funcao depreciada")}function moveMede(){alert("funcao depreciada")}function area(){alert("funcao depreciada")}function cliqueArea(){alert("funcao depreciada")}function moveArea(){alert("funcao depreciada")}function textofid(){alert("funcao depreciada")}function inserexy(){alert("funcao depreciada")}function cliqueInseretoponimo(){alert("funcao depreciada")}function cliqueInserexy(){alert("funcao depreciada")}function inseregrafico(){alert("funcao depreciada")}function cliqueInseregrafico(){alert("funcao depreciada")}function ativaHistoricoZoom(iddiv){alert("funcao depreciada")}function ajaxhttp(){alert("funcao depreciada");return i3GEO.util.ajaxhttp()}function ajaxCorpoMapa(retorno){i3GEO.mapa.corpo.veirifca(retorno);alert("funcao depreciada")}function ajaxredesenha(retorno){i3GEO.atualiza(retorno);alert("funcao depreciada")}function ajaxIniciaParametros(retorno){i3GEO.atualiza(retorno);alert("funcao depreciada")}function montaMenuSuspenso(iddiv){i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso.idhtml=iddiv;i3GEO.gadgets.mostraMenuSuspenso();alert("funcao depreciada")}