var cstObject="object";var cstOn="on";var numAlturaResize;var numLarguraResize;var numClientHeight;var numClientWidth;var booLoad=false;function redimensionaSite(){ numClientHeight=document.body.clientHeight; numClientWidth=document.body.clientWidth; var numIfrAltura=numClientHeight-(document.getElementById("cabecalho").clientHeight+document.getElementById("rodape").clientHeight); var numIfrLargura=document.body.clientWidth-10; numAlturaResize=numIfrAltura; numLarguraResize=numIfrLargura; document.getElementById("conteudo").style.height=(numIfrAltura-16)+"px"; document.getElementById("divConteudo").style.height=(numIfrAltura-16)+"px"; document.getElementById("conteudo").style.width=(numIfrLargura-10)+"px"; document.getElementById("divConteudo").style.width=(numIfrLargura-10)+"px"; booLoad=true;}function redimensionaSite2(){ var numDifClientHeight; var numDifClientWidth; numDifClientHeight=numClientHeight-document.body.clientHeight; numDifClientWidth=numClientWidth-document.body.clientWidth; document.getElementById("conteudo").style.height=((numAlturaResize-numDifClientHeight)-16)+"px"; document.getElementById("divConteudo").style.height=((numAlturaResize-numDifClientHeight)-16)+"px"; document.getElementById("conteudo").style.width=((numLarguraResize-numDifClientWidth)-10)+"px"; document.getElementById("divConteudo").style.width=((numLarguraResize-numDifClientWidth)-10)+"px";}atachamentoDinamico("LEBJSFrameWork","Recursos/JSFrameWork/JSFrameWork.js");function TrataEvento(objElementoDestino,strNomeEvento,Function,blnAdicionarEvento){ var objFrameWork=new LEBJSFrameWork(); if(typeof(objElementoDestino).toLowerCase()!=cstObject){if(document.getElementById(objElementoDestino)){objElementoDestino=document.getElementById(objElementoDestino);}} if(strNomeEvento.substring(0,2).toLowerCase()==cstOn){strNomeEvento=strNomeEvento.substring(2,strNomeEvento.length);} if(blnAdicionarEvento!=false&&objFrameWork.pTrim(blnAdicionarEvento)){blnAdicionarEvento=true;} if(objElementoDestino){if(objElementoDestino.attachEvent){if(blnAdicionarEvento){ objElementoDestino.detachEvent("on"+strNomeEvento,Function); objElementoDestino.attachEvent("on"+strNomeEvento,Function);}else{ objElementoDestino.detachEvent("on"+strNomeEvento,Function);}}else{if(blnAdicionarEvento){ objElementoDestino.removeEventListener(strNomeEvento,Function,true); objElementoDestino.addEventListener(strNomeEvento,Function,true);}else{ objElementoDestino.removeEventListener(strNomeEvento,Function,true);}}}}function checaVazio(strValor){ try{if(strValor!=null&&strValor!=""){return false;}else{return true;}} catch(e){return false;}}function atachamentoDinamico(strObjeto,strPath,strJanela){strJanela=(strJanela==undefined?"window":strJanela);var cstObject="object";var cstFunction="function";var cstJS="js";var cstComplete="complete";var arrPath=strPath.split(".");var blnJS=(arrPath[arrPath.length-1]==cstJS);var strTipo=eval("typeof("+strJanela+"."+strObjeto+");");var objJanela=eval(strJanela);var blnCSS=false;if(!blnJS){for(var i=0;i<document.styleSheets.length;i++){if(document.styleSheets[i].href&&document.styleSheets[i].href.indexOf(strObjeto+".css")!=-1){blnCSS=true;break;}}}if((!blnJS&&!blnCSS)||(blnJS&&strTipo!=cstObject&&strTipo!=cstFunction)){ if(document.all&&blnJS&&(objJanela.document.readyState!=cstComplete)){objJanela.document.write('<scr'+'ipt language="javascript" type="text/javascript" src="/'+strPath+'"></scr'+'ipt>');}else{var objScript;if(blnJS){objScript=document.createElement("script");objScript.setAttribute("language","javascript");objScript.setAttribute("type","text/javascript");objScript.setAttribute("src","/"+strPath);}else{objScript=document.createElement("link");objScript.setAttribute("rel","stylesheet");objScript.setAttribute("type","text/css");objScript.setAttribute("href","/"+strPath);}try{objJanela.document.getElementsByTagName("head")[0].appendChild(objScript);}catch(e){try{objJanela.document.getElementsByTagName("body")[0].appendChild(objScript);}catch(e){}}}}}