var typeOpenJane = 0;
var arVersion = navigator.appVersion.split("MSIE");
var version = parseFloat(arVersion[1]);
var varTimeSend=null;
var damsh=false;


//document.getElementById().firstChild
var libleolar = {
	variaveis:{
		navegador:navigator.appName,doc:document,javaboyLibREst:false,ObjGet:function(obj){return document.getElementById(obj);},objCaixa:null,preloadImg:new Array(),imgLoadSucess:false,loadImages:new Array(),time:0,timeTopLeft:0,TimeResetUser:null,finalProcedimento:null,finalProcedimento2:null,ObjTemporario:null,xmlhttp:null,Question:false,ObjClose:null,funcExeOnClose:null,FExec:null,TExec:null,StringUrlSender:null,LimitMaxItenAjaxSend:5,QuestionYesNoCloseBox:null,msgSendAjax:'',hintCreate:null,filaAjax:new Array(),objSlideAtual:null,debugStringSenderAjax:false,debugStringSenderAjaxDelte:false,varDebugString:new Array(),closeConfirmBox:true,objetos:new Array(),legendBoxSlide:false,ns6:(!document.all && document.getElementById), ie4:(document.all), ns4:(document.layers), noCloseBox:true, processReturnNoCloseBox:false,mensagemBlockFinal:'',caixaBoxNoScroll:true,objQuestion:false,ativeModeFxAdvance:false,escolhaUserQuestion:null,ObjRetornAjax:null,objLoadThis:null,varExecFunc:null,abortRequisicao:false,grupo_imagens:null,ativeJavaFxTemp:false,AddInputForm:null,TimeProcess:true,functionTerminoExec:null
	},
	
	objetos:{
		NewObj:function(){
			var lib = libleolar.variaveis, ns6 = (!lib.doc.all && lib.doc.getElementById), ie4 = (lib.doc.all), ns4 = (lib.doc.layers), A = arguments[0][0];
			this.objeto = A.element!=undefined && A.element!=''?lib.doc.createElement(A.element):lib.doc.createElement('div');
			j = [{s:this.objeto.style,o:this.objeto,c:(A.clone!=undefined?A.clone.style:undefined),t:(A.clone!=undefined?A.clone:undefined),y:(A.cloneYX!=undefined?A.cloneYX.style:undefined),x:(A.cloneYX!=undefined?A.cloneYX:undefined),w:(A.cloneWH!=undefined?A.cloneWH.style:undefined),h:(A.cloneWH!=undefined?A.cloneWH:undefined)}][0];
			(j.t!=undefined && typeof(j.t)!='object')?alert('Objeto para clonagem não é valido'):null;(j.x!=undefined && typeof(j.x)!='object')?alert('Objeto para clonagem YX não é valido'):null;(j.h!=undefined && typeof(j.h)!='object')?alert('Objeto para clonagem WH não é valido'):null;
			lmp = function(str){ str = new String(str); while(str.indexOf('px')>=0 || str.indexOf(' ')>=0){ str = str.replace('px',''); str = str.replace(' ',''); } return str!=''?str:false; };(A.t!=undefined ? j.s.top = ( lmp(A.t) ? lmp(A.t)+'px' : '' ) : j.x!=undefined ? j.s.top = j.y.top : j.t!=undefined ? j.s.top = j.c.top : undefined );
			(A.l!=undefined ? j.s.left = ( lmp(A.l) ? lmp(A.l)+'px' : '' ) : j.x!=undefined ? j.s.left = j.y.left : j.t!=undefined ? j.s.left = j.c.left : undefined );
			(A.w!=undefined ? j.s.width = ( lmp(A.w) ? lmp(A.w)+'px' : '' ) : j.h!=undefined ? j.s.width = j.w.width : j.t!=undefined ? j.s.width = j.c.width : undefined );
			(A.h!=undefined ? j.s.height = ( lmp(A.h) ? lmp(A.h)+'px' : '' ) : j.h!=undefined ? j.s.height = j.w.height : j.t!=undefined ? j.s.height = j.c.height : undefined );			
			(A.p!=undefined ? j.s.padding = ( lmp(A.p) ? lmp(A.p)+'px' : '' ) : j.t!=undefined ? j.s.padding = j.c.paddingTop : undefined );
			(A.iD != undefined ? j.o.id = A.iD : null );(A.sC != undefined ? j.o.src = A.sC : j.t!=undefined ? j.o.src = j.t.src : null );(A.aL != undefined ? j.o.alt = A.aL : j.t!=undefined ? j.o.alt = j.t.alt : null );(A.sTAttrib != undefined && A.sTAttrib.length==2 ? j.o.setAttribute(A.sTAttrib[0],A.sTAttrib[1]) : null );
			(A.d != undefined ? j.s.display = A.d : j.t!=undefined ? j.s.display = j.c.display : null );
			(A.b != undefined ? j.s.background = A.b : j.t!=undefined ? j.s.background = j.c.background : null );
			(A.o != undefined ? j.s.overflow = A.o : j.t!=undefined ? j.s.overflow = j.c.overflow : null );
			(A.c != undefined ? j.s.color = A.c : j.t!=undefined ? j.s.color = j.c.color : null );
			(A.fF != undefined ? j.s.fontFamily = A.fF : j.t!=undefined ? j.s.fontFamily = j.c.fontFamily : j.s.fontFamily = 'Verdana' );
			(A.fS != undefined ? j.s.fontStyle = A.fS : j.t!=undefined ? j.s.fontStyle = j.c.fontStyle : null );
			(A.fZ != undefined ? j.s.fontSize = A.fZ : j.t!=undefined ? j.s.fontSize = j.c.fontSize : j.s.fontSize = '11px' );
			(A.tA != undefined ? j.s.textAlign = A.tA : j.t!=undefined ? j.s.textAlign = j.c.textAlign : j.s.textAlign = 'center' );
			(A.pS != undefined ? j.s.position = A.pS : j.t!=undefined ? j.s.position = j.c.position : null );
			(A.element!='img')?j.o.innerHTML = (A.iN!=undefined? A.iN : '&nbsp;') : null ;
			(A.gL != undefined?function(){g = A.gL==10?(ns4 || ns6)?1.0:100:(ns4 || ns6)?'0.'+A.gL:(A.gL*10); j.s.filter="alpha(opacity="+g+")"; j.s.opacity=g; j.s.MozOpacity=g; }(): null );
			(A.insBefore!=undefined ? function(){oIb = typeof(A.insBefore)=='object'?A.insBefore:typeof(A.insBefore)=='string' && lib.ObjGet(A.insBefore)!=null?lib.ObjGet(A.insBefore):null;if (oIb==null){alert('Objeto para InsBefore não existe!'); return;}oIb.parentNode.insertBefore(j.o,oIb);}(): null);
			(A.append!=undefined ? function(){oa = typeof(A.append)=='object'?A.append:typeof(A.append)=='string' && lib.ObjGet(A.append)!=null?lib.ObjGet(A.append):null;if (oa==null){ alert('Objeto para InsAppend não existe!'); return; } oa.appendChild(j.o); }(): null );
			(A.onclick!=undefined ? j.o.onclick = A.onclick : null);(A.onmouseover!=undefined ? j.o.onmouseover = A.onmouseover : null );(A.onmouseout!=undefined ? j.o.onmouseout = A.onmouseout : null );return this.objeto;
		},
		
		objLoad:function(Arr,Irr,Objts){
			var contagem = 0, glass = 0, Obj = Objts, Arr = Arr, Irr = Irr, tme = null, ns6 = (!document.all && document.getElementById), ie4 = (document.all), ns4 = (document.layers), $gLObj = null;
			if (Obj[2].nextSibling==null)return;
			fader_in = function(){ if ($gLObj==null)return;
				if(ie4){ glass+=10; $gLObj.style.filter='alpha(opacity='+glass+')'; }
				if(ns6 || ns4){ glass+=0.1; $gLObj.style.opacity=glass; $gLObj.style.MozOpacity=glass; }
				if ((ie4 && glass<100) || ((ns6 || ns4) && glass<1.0)){ tme = setTimeout(fader_in,40); }else{ clearTimeout(tme); 
					Obj[1].innerHTML = $gLObj.getAttribute('alt')!=undefined && $gLObj.getAttribute('alt')!='' ?
					function(){ libleolar.variaveis.legendBoxSlide=true; return $gLObj.getAttribute('alt'); }():function(){ libleolar.variaveis.legendBoxSlide=false; return ''; }();				tme = setTimeout(function(){ if (contagem<(Arr.length-1))contagem++; else contagem=0; glass=0; execLoad();},Obj[3]*1000); if ($gLObj.previousSibling!=null)$gLObj.parentNode.removeChild($gLObj.previousSibling); } };
				var execLoad = function(){ clearTimeout(tme);
					if (Obj[2].nextSibling==null)return;
					if (Arr[contagem].target!=false){Obj[2].nextSibling.onclick = function(){ if (Arr[contagem].target=='novo')window.open(Arr[contagem].alk,'eventClick'+contagem);if (Arr[contagem].target=='neste')document.location.href = Arr[contagem].alk; }; Obj[2].nextSibling.style.cursor = 'pointer';
					}else{ Obj[2].nextSibling.style.cursor = '';}
					$gLObj = new libleolar.objetos.NewObj([{element:'img',gL:0,cloneWH:Obj[2],clone:Arr[contagem],insBefore:Obj[0],t:0,l:0,pS:'absolute',sTAttrib:['JavaBoy-brSlideFxHTMLvs1','johny_webmaster@hotmail.com']}]); fader_in(); };
			var start_load = function(){
				Arr[contagem] = Arr[contagem]==undefined?new Image():Arr[contagem];
				Arr[contagem].src==''?Arr[contagem].src=Irr[contagem].url:null;
				Arr[contagem].alt = Irr[contagem].legend!=undefined?Irr[contagem].legend:'';
				Arr[contagem].alk = Irr[contagem].urlLink;
				Arr[contagem].target = Irr[contagem].urlLink!=undefined && Irr[contagem].urlLink!='' ? Irr[contagem].target!=undefined ? Irr[contagem].target : 'novo' : false;
				if (Arr[contagem].complete)contagem++;
				if (contagem<Irr.length)tme = setTimeout(start_load,10); else{ clearTimeout(tme); contagem=0; setTimeout(execLoad,1000); }
			};start_load();
		},
		
		/*
		var bgPos = 0;
var scrollDelay = 50;

function Scroller(){

if (document.getElementById) {
document.getElementById("pnrm").style.backgroundPositionX = bgPos + 'px';
bgPos == 773? bgPos = 0 : bgPos = bgPos + 1;
setTimeout("Scroller()", scrollDelay);
}
}
Scroller();
//--></script> 

<script language="JavaScript">
/* Visit http://www.yaldex.com/ for full source code
and get more free JavaScript, CSS and DHTML scripts!
<!-- Begin
document.body.background="marble.gif";
var backgroundOffset = 0;
var bgObject = eval('document.body');
function scrollBG(maxSize) {
backgroundOffset = backgroundOffset + 1;
if (backgroundOffset > maxSize) backgroundOffset = 0;
bgObject.style.backgroundPosition = "0 " + backgroundOffset;
}
var ScrollTimer = window.setInterval("scrollBG(300)", 70);
// End -->
</script>
		
		*/
		
		objectPostionNew:function(){
			var ob = arguments[0];	
			if (!ob)return;
			var ObjThisRef = ob!='' && typeof(ob)=="string"? libleolar.variaveis.ObjGet(ob) : typeof(ob)=="object"? ob : undefined ;	
			this.velocidade = 0.5;
			var returnZero = 0;
			this.SetPosition = new String('top');
			var timeContador=-1587;
			var timeProcess=null;
			var setPostionNew = function(){
				clearTimeout(timeProcess);	
				if (timeContador>=returnZero)timeContador=-1587; else timeContador++;	
				ObjThisRef.style.left = Math.ceil(timeContador)+"px";
				//document.getElementById('casd').innerHTML = Math.ceil(timeContador)+"px";
				timeProcess = setTimeout(setPostionNew,50);
			};setPostionNew();
			
		}
		
		/*objectPostionNewsss:function(){
			var ob = arguments[0];	
			if (!ob)return;
			var ObjThisRef = ob!='' && typeof(ob)=="string"? libleolar.variaveis.ObjGet(ob) : typeof(ob)=="object"? ob : undefined ;	
			this.velocidade = 0.5;
			var returnZero = 1160;
			this.SetPosition = new String('top');
			var timeContador=0;
			var timeProcess=null;
			var setPostionNew = function(){
				clearTimeout(timeProcess);	
				if (timeContador>returnZero)timecontador=0; else timeContador++;	
				
				//ObjThisRef.style.backgroundPositionX = Math.ceil(timeContador);
				
				//document.getElementById('clouds').style.backgroundPosition = "top; left 150";
				
				//alert(3);
				timeProcess = setTimeout(setPostionNew,50);
			
			};setPostionNew();
			
		}*/
	},
	
	transformar:{
		
		setFader:function(){
			if (!document.body.hasChildNodes())return;
			var documents = ['div','table'], lib = libleolar.variaveis;
			for(Iw=0;Iw<documents.length;Iw++){
				var documentFader = document.body.getElementsByTagName(documents[Iw]);
				for(i=0;i<documentFader.length;i++){
					var attrib = documentFader.item(i).getAttribute('class');
					(attrib!=null && attrib.indexOf('$jvbFxFader{')>=0?function(){
						attrib = attrib.replace(/([a-z])|([A-Z])|([$:{:}])/g,'');
						if(!attrib || isNaN(attrib))return;
						var r = documentFader.item(i).style;
						var g = attrib==10?(lib.ns4 || lib.ns6)?1.0:100:(lib.ns4 || lib.ns6)?'0.'+attrib:(attrib*10);
						r.filter="alpha(opacity="+g+")";r.opacity=g;r.MozOpacity=g;
					}(): undefined );
				}
			}
			return true;
		},
		
		newPositionObj:function(){
			
		}
	},
	
	funcoes:{
		
		galeria:{
			
			timeLoadCancelLoad:null,
			
			loadSliderImageGaleria:function(objectList){
				libl = libleolar.variaveis;
				(libleolar.variaveis.imgLoadSucess==false?function(){
					verificaloadImagens = function(){
						if (libleolar.variaveis.imgLoadSucess==true){
							(objectList[0].ob.length>0?function(){
								libl.ObjGet(objectList[0].idLPs[0]).innerHTML = '<table cellpadding="0" cellspacing="0" border="0">'+
								   '<tr>'+
								   '<td width="1" height="1"><img src="'+libleolar.variaveis.preloadImg['border_left_top'].src+'"></td>'+
								   '<td width="1" height="1" background="'+libleolar.variaveis.preloadImg['border_top'].src+'"></td>'+
								   '<td width="1" height="1"><img src="'+libleolar.variaveis.preloadImg['border_right_top'].src+'"></td>'+
								   '</tr>'+
								   '<tr>'+
									   '<td width="1" height="1" background="'+libleolar.variaveis.preloadImg['border_left'].src+'"></td>'+
									   '<td bgcolor="#DDE4E4" align="left" id="loadSliderExibir">'+
											'<div style="background-color:#FFF; padding:10px; width:200px;" align="center"><img src="'+libleolar.variaveis.preloadImg['load'].src+'" align="absmiddle">&nbsp;Carregando&nbsp;galeria...</div>'+
									   '</td>'+
									   '<td width="1" height="1" background="'+libleolar.variaveis.preloadImg['border_right'].src+'"></td>'+
								   '</tr>'+
								   '<tr>'+
									   '<td width="1" height="1"><img src="'+libleolar.variaveis.preloadImg['border_left_down'].src+'"></td>'+
									   '<td width="1" height="1" background="'+libleolar.variaveis.preloadImg['border_down'].src+'"></td>'+
									   '<td width="1" height="1" background="'+libleolar.variaveis.preloadImg['border_right_down'].src+'"><img src="'+libleolar.variaveis.preloadImg['border_right_down'].src+'"></td>'+
								   '</tr>'+
								'</table>';
								btnClickRet = libl.doc.createElement('input');	
								btnClickRet.type = 'button';
								btnClickRet.style.margin = '3px';
								btnClickRet.style.marginRight = '0px';
								btnClickRet.setAttribute('value',objectList[0].btns[1]);	
								btnClickRet.setAttribute('disabled','disabled');
								btnClickRet.onclick = function(){
									contaImgs = parseInt(document.getElementById('imgLoadCarregada').getAttribute('positionImg'))-1;
									(contaImgs>0?
										function(){btnClickRet.removeAttribute('disabled');}()
									:function(){btnClickRet.setAttribute('disabled','disabled');}());
									(contaImgs==(objectList[0].ob.length-1)?
										function(){btnClickPrx.setAttribute('disabled','disabled');}()
									:function(){btnClickPrx.removeAttribute('disabled');}());
									divledLoad.innerHTML = '<img src="'+libleolar.variaveis.preloadImg['load'].src+'" align="absmiddle"> '+objectList[0].display;			
									loadImagemShow(contaImgs);	
									verificarCarregamento();				
								};	
								libl.ObjGet(objectList[0].btns[0]).appendChild(btnClickRet);
								btnClickSl = libl.doc.createElement('input');	
								btnClickSl.type = 'button';
								btnClickSl.style.margin = '3px';
								btnClickSl.style.marginRight = '0px';
								btnClickSl.setAttribute('value',objectList[0].btns[2]);	
								btnClickSl.onclick = function(){
									timeSliderConfig = objectList[0].timeSl;	
									progressSlider = 1;
									timeProgress = function(){
										if (libleolar.funcoes.galeria.timeLoadCancelLoad==false){
											clearTimeout("timeProgress()");	divledLoad.innerHTML = '';
										}else{
											if (progressSlider<timeSliderConfig){
												divledLoad.innerHTML = 'Proxima ('+progressSlider+')';
												progressSlider++;	
												setTimeout("timeProgress()",1000);
												clearTimeout("timeProgress()");		
											}else{
												contaImgs = parseInt(document.getElementById('imgLoadCarregada').getAttribute('positionImg'))+1;
												contaImgs = (contaImgs==(objectList[0].ob.length)?0:contaImgs);
												divledLoad.innerHTML = '<img src="'+libleolar.variaveis.preloadImg['load'].src+'" align="absmiddle"> '+objectList[0].display;	
												loadImagemShow(contaImgs);	
												verificarCarregamento();
												progressSlider = 1;
												setTimeout("timeProgress()",2000);
												clearTimeout("timeProgress()");
											}
										}
									}; 
									if (this.getAttribute('value')==objectList[0].btns[4]){
										libleolar.funcoes.galeria.timeLoadCancelLoad = false;
										this.setAttribute('value',objectList[0].btns[2]);
										contaImgs = parseInt(document.getElementById('imgLoadCarregada').getAttribute('positionImg'));
										(contaImgs>0?
											function(){btnClickRet.removeAttribute('disabled');}()
										:function(){btnClickRet.setAttribute('disabled','disabled');}());
										(contaImgs==(objectList[0].ob.length-1)?
											function(){btnClickPrx.setAttribute('disabled','disabled');}()
										:function(){btnClickPrx.removeAttribute('disabled');}());
									}else{
										libleolar.funcoes.galeria.timeLoadCancelLoad = true;
										this.setAttribute('value',objectList[0].btns[4]);
										btnClickRet.setAttribute('disabled','disabled');
										btnClickPrx.setAttribute('disabled','disabled');
										timeProgress();
									}
								};	
								libl.ObjGet(objectList[0].btns[0]).appendChild(btnClickSl);
								btnClickPrx = libl.doc.createElement('input');	
								btnClickPrx.type = 'button';
								btnClickPrx.style.margin = '3px';
								btnClickPrx.style.marginRight = '0px';
								btnClickPrx.setAttribute('value',objectList[0].btns[3]);	
								btnClickPrx.onclick = function(){
									contaImgs = parseInt(document.getElementById('imgLoadCarregada').getAttribute('positionImg'))+1;
									(contaImgs>0?
										function(){btnClickRet.removeAttribute('disabled');}()
									:function(){btnClickRet.setAttribute('disabled','disabled');}());
									(contaImgs==(objectList[0].ob.length-1)?
										function(){btnClickPrx.setAttribute('disabled','disabled');}()
									:function(){btnClickPrx.removeAttribute('disabled');}());
									divledLoad.innerHTML = '<img src="'+libleolar.variaveis.preloadImg['load'].src+'" align="absmiddle"> '+objectList[0].display;			
									loadImagemShow(contaImgs);	
									verificarCarregamento();	
								};	
								libl.ObjGet(objectList[0].btns[0]).appendChild(btnClickPrx);
								divledLoad = libl.doc.createElement('div');
								divledLoad.style.padding = '5px';
								divledLoad.style.color = '#FFF';
								libl.ObjGet(objectList[0].btns[0]).appendChild(divledLoad);
								for(i=0;i<imagensLoad.length;i++){
									img = new Image();
									img.id = i;
									img.src = imagensLoad[i].imgMin;
									img.style.marginRight='5px';
									img.style.cursor='pointer';
									img.style.border='thin solid #CCC';
									img.onclick = function(){
										divledLoad.innerHTML = '<img src="'+libleolar.variaveis.preloadImg['load'].src+'" align="absmiddle"> '+objectList[0].display;							
										(this.getAttribute('id')==0?
											function(){btnClickRet.setAttribute('disabled','disabled');}()
										:function(){btnClickRet.removeAttribute('disabled');}());
										(this.getAttribute('id')==(objectList[0].ob.length-1)?
											function(){btnClickPrx.setAttribute('disabled','disabled');}()
										:function(){btnClickPrx.removeAttribute('disabled');}());
										loadImagemShow(this.getAttribute('id'));
										verificarCarregamento();
									};
									libl.ObjGet(objectList[0].idLPs[1]).appendChild(img);
								}	
								var carregar;						
								loadImagemShow = function(i){ carregar = new Image(); carregar.id = 'imgLoadCarregada'; carregar.setAttribute('positionImg',i); carregar.style.border='thin solid #000'; carregar.title = objectList[0].ob[i].title; carregar.src = objectList[0].ob[i].url;}; 
								verificarCarregamento=function(){
									if (carregar.complete){
										divNewLoaded = libl.doc.createElement('div');
										divNewLoaded.id = 'DivOpenLoad';
										divNewLoaded.style.overflow='hidden';
										divNewLoaded.style.width = '200px';
										divNewLoaded.style.height = '30px';
										divNewLoaded.appendChild(carregar);
										divNewTitle = libl.doc.createElement('div');
										divNewTitle.id = 'divNewTitle';
										divNewTitle.style.overflow='hidden';
										divNewTitle.style.width = '0px';
										divNewTitle.style.height = '0px';
										libl.ObjGet('loadSliderExibir').innerHTML = '';
										libl.ObjGet('loadSliderExibir').appendChild(divNewLoaded);
										libl.ObjGet('loadSliderExibir').appendChild(divNewTitle);
										libleolar.variaveis.ativeModeFxAdvance=objectList[0].efect;
										divNewTitle.innerHTML = '<div style="padding:5px; padding-left:0px; font-size:12px; overflow:hidden; width:'+libl.ObjGet('imgLoadCarregada').offsetWidth+'px" id="CarregandoProxAnt">'+carregar.title+'</div>';
										divledLoad.innerHTML = '';
										libleolar.variaveis.functionTerminoExec = "libleolar.funcoes.progressUpWiHe('divNewTitle',"+libl.ObjGet('imgLoadCarregada').offsetWidth+",20)";
										libleolar.funcoes.progressUpWiHe('DivOpenLoad',libl.ObjGet('imgLoadCarregada').offsetWidth,libl.ObjGet('imgLoadCarregada').offsetHeight,objectList[0].mod);
									}else{ setTimeout("verificarCarregamento()",100); }
								};
								loadImagemShow(0);
								verificarCarregamento();			
							}():null);
						}else setTimeout("verificaloadImagens();",100);
					}; verificaloadImagens();
				}():null);
			}
		},
		
		questoes:function(){
			args = (arguments[0]!=undefined && typeof(arguments[0])=='object')?arguments[0]:null;
			if (args==null){alert('Array invalida no 1 argumento!');return;}
			txtQuest = (args.txtQuest==undefined?'':args.txtQuest.replace(/ /g,'&nbsp;'));
			ExibirIconMensagem = (args.ExibirIconMensagem==undefined?0:args.ExibirIconMensagem);
			tipoBtnExibir = (args.tipoBtnExibir==undefined?false:(args.tipoBtnExibir==0?false:true));
			ExbirBtns = (args.ExbirBtns==undefined?true:args.ExbirBtns);
			faderConteudo = (args.faderConteudo==undefined?true:args.faderConteudo);
			simExecFunc = args.simExecFunc; naoExecFunc = args.naoExecFunc;
			libleolar.escriores.caixa(libleolar.escriores.mensagens(ExibirIconMensagem,txtQuest),ExbirBtns,faderConteudo,tipoBtnExibir);
			var timeProcessaQuestao = setInterval(function(){
				if (libleolar.variaveis.escolhaUserQuestion!=null){
					clearInterval(timeProcessaQuestao);	
					switch(libleolar.variaveis.escolhaUserQuestion){
						case 1:{ if (simExecFunc!=undefined)eval(simExecFunc); }break;
						case 0:{ if (naoExecFunc!=undefined)eval(naoExecFunc); }break;
					} 
					libleolar.variaveis.escolhaUserQuestion=null;
				}
			},10);
		},
		
		moveObjetos:function(){
			function initDragDrop() {
				__dragX = 0; 
				__dragY = 0; 
				__dragId = ''; 
				__dragging = false;
				document.body.onmousedown = __dragDown;
				document.body.onmousemove = __dragMove;
				document.body.onmouseup = function() { __dragging = false; };	
			}
			function __dragDown(e) {
				e = e ? e : window.event;
				__dragEl = document.getElementById(__dragId) || null;
				var _target = document.all ? e.srcElement : e.target;
				  if(!__dragEl || !(/drag/.test(_target.className))) return;
				__dragX = e.clientX - __dragEl.offsetLeft;
				__dragY = e.clientY - __dragEl.offsetTop;
				__dragging = true;
			};
			 
			function __dragMove(e) {
				if(typeof __dragging == 'undefined' || !__dragging) return;
				e = e ? e : window.event;
				
				if((e.clientX - __dragX)>0){
					__dragEl.style.left = (e.clientX - __dragX)+'px';	
				}
				if((e.clientY - __dragY)>0){
					__dragEl.style.top = (e.clientY - __dragY)+'px';
				}
			};
			initDragDrop();
		},
		
		/*
		
		function initDragDrop() {
__dragX = 0; 
__dragY = 0; 
__dragId = ''; 
__dragging = false;
document.body.onmousedown = __dragDown;
document.body.onmousemove = __dragMove;
document.body.onmouseup = function() { __dragging = false; };
}
 
function __dragDown(e) {
e = e ? e : window.event;
__dragEl = document.getElementById(__dragId) || null;
var _target = document.all ? e.srcElement : e.target;
  if(!__dragEl || !(/drag/.test(_target.className))) return;
__dragX = e.clientX - __dragEl.offsetLeft;
__dragY = e.clientY - __dragEl.offsetTop;
__dragging = true;
};
 
function __dragMove(e) {
	if(typeof __dragging == 'undefined' || !__dragging) return;
e = e ? e : window.event;
__dragEl.style.left = (e.clientX - __dragX)+'px';
__dragEl.style.top = (e.clientY - __dragY)+'px';
};
		
		*/
		
		errorJavaScript:function(msg, url, line){
			try{
				libleolar.variaveis.filaAjax=null;
				var string = 'Uma exceção ocorreu!';
					string += '\n\nMensagem de Erro: ' + msg;
					string += '\n\nURL: ' + url;
					string += '\n\nLinha: ' + line;
					alert(string);	
			}catch(e){}
		},
		
		ativeFxAlink:function(){
			var fxAlinkGet = libleolar.variaveis.doc.getElementsByTagName('a');
			for(i=0;i<fxAlinkGet.length;i++){
				var validCreate = fxAlinkGet.item(i).getAttribute('fxJavaBoy');
				if (validCreate==1){
					var clickAlinkAction=function(){
						/*var openLoad = this.getAttribute('openLoad')=='' || this.getAttribute('openLoad')==null?null:this.getAttribute('openLoad');
						
						if (openLoad!=null){
							var idGetOpen = Array();
							idGetOpen = openLoad.split(',');
							//loadItensOpc,false,50,0,false,false
							//alert(idGetOpen[4]);
							var wiIr = idGetOpen[1]==false || idGetOpen[1]==null?300:idGetOpen[1];
							var heIr = idGetOpen[2]==false || idGetOpen[2]==null?30:idGetOpen[2];
							var mtho = idGetOpen[3]==false || idGetOpen[3]==null?false:function(){if (idGetOpen[3]=='false')return false; else return true;}();
							var fade = idGetOpen[4]==false || idGetOpen[4]==null?false:function(){if (idGetOpen[4]=='false')return false; else return true;}();
							var scrl = idGetOpen[5]==false || idGetOpen[5]==null?false:function(){if (idGetOpen[5]=='false')return false; else return true;}();
							libleolar.funcoes.progressUpWiHe(idGetOpen[0],parseInt(wiIr),parseInt(heIr),parseInt(mtho),fade,scrl);
						}*/
						var icon = this.getAttribute('icon')=='' || this.getAttribute('icon')==null?1:this.getAttribute('icon');
						var block = this.getAttribute('block')=='' || this.getAttribute('icon')==null?false:this.getAttribute('block');
						var idLoad = this.getAttribute('idLoad')=='' || this.getAttribute('idLoad')==null?'tableLoadItens':this.getAttribute('idLoad');
						var idRetorno = this.getAttribute('idRetorno')=='' || this.getAttribute('idRetorno')==null?'tableLoadItens':this.getAttribute('idRetorno');
						var mensagem = this.getAttribute('mensagem')=='' || this.getAttribute('mensagem')==null?'Carregando...':this.getAttribute('mensagem');
						var hrefItem = this.getAttribute('href');
						hrefItem = hrefItem.substr(hrefItem.indexOf('#'),hrefItem.length);
						libleolar.funcoes.loadSenderAjaxIfrom(0,'keyLan='+MD5('javaboy')+'&documentLoad='+(hrefItem),'leo/',idLoad,idRetorno,mensagem,icon,block,false,false);
					};
					//var hrefItem = fxAlinkGet.item(i).getAttribute('href');
					//hrefItem = hrefItem.substr(hrefItem.indexOf('#'),hrefItem.length);
					//fxAlinkGet.item(i).setAttribute('href','/'+hrefItem);
					fxAlinkGet.item(i).onclick=clickAlinkAction;
				}
			}
		},
		
		ativeFxAlink2:function(){
			var fxAlinkGet = libleolar.variaveis.doc.getElementsByTagName('a');
			for(i=0;i<fxAlinkGet.length;i++){
				var validCreate = fxAlinkGet.item(i).getAttribute('varFx');
				if (validCreate && validCreate!=''){
					var clickAlinkAction=function(){
						if (libleolar.variaveis.finalProcedimento==true && libleolar.variaveis.imgLoadSucess==true){
							var getString = this.getAttribute('varFx');
							if (getString=='')return;
							eval('var stt = '+getString);
							if (stt[0].fx!='fxLinkAjaxRequest')return;
							var idLoad = stt[0].ld!=undefined?stt[0].ld:null;
							var idRet = stt[0].rt!=undefined? stt[0].rt : idLoad!=null ? idLoad : null;
							idLoad = idLoad!=null ? idLoad : idRet!=null ? idRet : null;
							var msg = stt[0].msg!=undefined?stt[0].msg:'';
							var block = stt[0].bk!=undefined?true:false;
							var icon = stt[0].ic!=undefined?stt[0].ic:1;
							var hrf =  stt[0].hf!=undefined?stt[0].ic:this.getAttribute('href');
							var process =  stt[0].pc!=undefined?stt[0].pc:'leo/';
							hrf = hrf.substr(hrf.indexOf('#'),hrf.length);
							if (!hrf || hrf=='')return; window.scrollTo(0,this.offsetHeight);
							libleolar.funcoes.loadSenderAjaxIfrom(0,'keyLan='+MD5('fxLinkAjaxRequest')+'&documentLoad='+(hrf),process,idLoad,idRet,msg,icon,block,false,false);
						}
					};
					fxAlinkGet.item(i).onclick=clickAlinkAction;
				}	
			}
		},
		
		insertImg:function(idFile,idObj){
			if (libleolar.variaveis.javaboyLibREst==false)return false;
			idFileExt = idFile.value.substring(idFile.value.lastIndexOf('.')+1,idFile.value.length);
			idFileExt = idFileExt.toLowerCase();
			extPrm = (arguments[2]==undefined?Array('png','jpg','jpeg','gif'):arguments[2]);
			limitString = (arguments[3]==undefined?20:arguments[3]);
			Array.prototype.has = function (search){
				for (var i=0; i < this.length; i++) { if (this[i] == search) { return true; } } return false; }
			if (extPrm.has(idFileExt)==false) {idFile.removeAttribute('value');idFile.setAttribute('value',''); libleolar.funcoes.questoes({txtQuest:'Tipo de arquivo &eacute; inv&aacute;lido!',ExibirIconMensagem:0,tipoBtnExibir:0}); return false; }			
			var image = new Image();
			image.src = idFile.value;
			var tmW = idFile.width;
			var tmH = idFile.height;
			ImgName = idFile.value.substring(idFile.value.lastIndexOf('\\')+1,idFile.value.length);
			string = 'Arquivo: '+ImgName;// - resol.: <b>'+tmW+'x'+tmH+'</b>';
			if(string.length > limitString){ string = string.slice(0,limitString)+'.../'+ImgName.substring(ImgName.lastIndexOf('.')+1,ImgName.length); }
			document.getElementById(idObj).innerHTML=string;
		},
		
		detectPngClass:function(){
			if (libleolar.variaveis.javaboyLibREst==false)return false;
			if ((version >= 5.5) && (document.body.filters)){
			   for(var i=0; i<document.images.length; i++)
			   {
				  var img = document.images[i]
				  var imgName = img.src.toUpperCase()
				  if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
				  {
					 var imgID = (img.id) ? "id='" + img.id + "' " : ""
					 var imgClass = (img.className) ? "class='" + img.className + "' " : ""
					 var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
					 var imgStyle = "display:inline-block;" + img.style.cssText 
					 if (img.align == "left") imgStyle = "float:left;" + imgStyle
					 if (img.align == "right") imgStyle = "float:right;" + imgStyle
					 if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
					 var strNewHTML = "<span " + imgID + imgClass + imgTitle
					 + " style=\"" + "width:" + img.width + "px; height:"+img.height+"px;" + imgStyle + ";"
					 + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
					 + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
					 img.outerHTML = strNewHTML
					 i = i-1
				  }
			   }
			}
			
		},
		
		getPosXYElement:function(elemID){
			if (libleolar.variaveis.javaboyLibREst==false)return false;
			var offsetTrail = document.getElementById(elemID);
			var offsetLeft = 0;
			var offsetTop = 0;
			while (offsetTrail) {
				offsetLeft += offsetTrail.offsetLeft;
				offsetTop += offsetTrail.offsetTop;
				offsetTrail = offsetTrail.offsetParent;
			}
			if (navigator.userAgent.indexOf("Mac") != -1 && 
				typeof document.body.leftMargin != "undefined") {
				offsetLeft += document.body.leftMargin;
				offsetTop += document.body.topMargin;
			}
			var Wid = document.getElementById(elemID).offsetWidth;
			var Hei = document.getElementById(elemID).offsetHeight;
			return {l:offsetLeft, t:offsetTop, w:Wid, h:Hei};
		},
		
		formatar:function(src, mask){
			var i = src.value.length;
			var saida = mask.substring(0,1);
			var texto = mask.substring(i)
			if (texto.substring(0,1) != saida){
				src.value += texto.substring(0,1);
			}
		},

		hinteTexto:function(obj){
			var im = arguments[1]?true:false;
			if (libleolar.variaveis.javaboyLibREst==false)return false;
			if (libleolar.variaveis.imgLoadSucess==false)return false;
			var objThis = document.getElementById(obj);
			var mask = this.hinteTexto.arguments[2]==null?false:true;
			var maskFormt = this.hinteTexto.arguments[2]==null?'':this.hinteTexto.arguments[2];
			var permiCaracteres = this.hinteTexto.arguments[3]==null?'':this.hinteTexto.arguments[3];
			if (objThis.getAttribute('maxLength')!=null || objThis.getAttribute('maxLength')!=undefined){
				var OnKeyExist = objThis.getAttribute('onkeypress')!=undefined?objThis.getAttribute('onkeypress'):null;
				if (OnKeyExist!=null){objThis.setAttribute('onkeypressExistente',OnKeyExist);	}
				var ElementPai = objThis.parentNode;
				if (document.getElementById('processText')!=null){
					var divTemp = document.getElementById('processText');
					var paiDele = divTemp.parentNode;
					paiDele.removeChild(divTemp);
				}
				var widthObj = this.getPosXYElement(obj).w;
				var DivHint = document.createElement('div');
				(im==false?function(){ DivHint.style.position = 'absolute';}():null);
				DivHint.style.width = '0px';
				DivHint.style.height = '7px';
				DivHint.style.top = this.getPosXYElement(obj).t+this.getPosXYElement(obj).h+"px";
				DivHint.style.left = this.getPosXYElement(obj).l+"px";
				DivHint.style.overflow = 'hidden';
				DivHint.style.backgroundColor='red';
				DivHint.style.opacity='0.4';
				DivHint.style.filter='alpha(opacity=40)';
				DivHint.style.MozOpacity='0.4';
				DivHint.id = 'processText';
				var imgProg = libleolar.variaveis.preloadImg['process'];
				if (imgProg!=null){ imgProg.style.height = '7px'; imgProg.style.width = widthObj+"px";}
				DivHint.appendChild(imgProg);
				ElementPai.appendChild(DivHint);
				var porcentagem = (objThis.value.length/objThis.getAttribute('maxLength'))*widthObj;
				document.getElementById('processText').style.width = Math.round(porcentagem)+"px";
				var functionKeyPress=function(e){
					var keyID = (window.event) ? event.keyCode : e.keyCode;
					if (permiCaracteres!=''){
						if (keyID != 8){
							var digits=permiCaracteres;
							var campo_temp;
							for (var i=0;i<objThis.value.length;i++){  
								campo_temp=objThis.value.substring(i,i+1);
								if (digits.indexOf(campo_temp)==-1){  
									objThis.value = objThis.value.substring(0,i);  
								}
							}
						}
					}
					if (keyID != 8){
					if (mask==true){libleolar.funcoes.formatar(objThis,maskFormt);	}}
					if (objThis.getAttribute('onkeypressExistente')!=undefined){eval(objThis.getAttribute('onkeypressExistente'));}
					if (objThis.value.length > objThis.getAttribute('maxLength')) {
						objThis.value = objThis.value.substring(0,objThis.getAttribute('maxLength'));
					} else {
						var porcentagem = (objThis.value.length/objThis.getAttribute('maxLength'))*widthObj;
						document.getElementById('processText').style.top =  libleolar.funcoes.getPosXYElement(objThis.id).t+ libleolar.funcoes.getPosXYElement(objThis.id).h+"px";
						document.getElementById('processText').style.left = libleolar.funcoes.getPosXYElement(objThis.id).l+"px";
						document.getElementById('processText').style.width = Math.round(porcentagem)+"px";
					}
				};
				
				var onBlurInput=function(){
					var ElementPai = document.getElementById('processText').parentNode;
					ElementPai.removeChild(document.getElementById('processText'));
				};
				if (objThis.getAttribute('onblur')==null){
					objThis.onblur=onBlurInput;
				}
				objThis.onkeydown=functionKeyPress;
				objThis.onkeyup=functionKeyPress;
				objThis.onkeypress=functionKeyPress;
			}
		},

		mais_menos:function(refnc){
			if (libleolar.variaveis.javaboyLibREst==false)return false;
			refMod= refnc[0];
			refMod.ref= (typeof(refMod.ref)=='object'?refMod.ref:document.getElementById(refMod.ref));
			wvRef = (refMod.wRef==null?null:(refMod.ref.style.width!=''?(refMod.ref.style.width).replace('px',''):refMod.ref.offsetWidth));
			hvRef = (refMod.hRef==null?null:(refMod.ref.style.height!=''?(refMod.ref.style.height).replace('px',''):refMod.ref.offsetHeight));
			libleolar.variaveis.caixaBoxNoScroll = (refMod.fullOpen==undefined?true:false);
			objeDimencoes = document.getElementById(refMod.ref);
			if (refMod.javafx==true)libleolar.variaveis.ativeJavaFxTemp=true;
			(refMod.obj.getAttribute('jxP')==null?function(){ refMod.obj.setAttribute('jxP','');
				(refMod.retIten!=undefined?function(){o=(typeof(refMod.retIten)=='object'?refMod.retIten:document.getElementById(refMod.retIten));o.innerHTML='[-]';}():null);
				libleolar.funcoes.progressUpWiHe(refMod.ref,refMod.wRef,refMod.hRef,(refMod.metodo==undefined?1:refMod.metodo),(refMod.fade==undefined?false:refMod.fade));
				refnc[0].wRef = wvRef; refnc[0].hRef = hvRef; 
				refMod.obj.onclick=function(){libleolar.funcoes.mais_menos(refnc);};
			}():function(){ refMod.obj.removeAttribute('jxP');
				(refMod.retIten!=undefined?function(){o=(typeof(refMod.retIten)=='object'?refMod.retIten:document.getElementById(refMod.retIten));o.innerHTML='[+]';}():null);				
				libleolar.funcoes.progressUpWiHe(refMod.ref,refMod.wRef,refMod.hRef,(refMod.metodo==undefined?1:refMod.metodo),(refMod.fade==undefined?false:refMod.fade));
				refnc[0].wRef = wvRef; refnc[0].hRef = hvRef;
				refMod.obj.onclick=function(){libleolar.funcoes.mais_menos(refnc);};
			}());
			//libleolar.funcoes.mais_menos([{obj:objClick,ref:objOpen,wRef:width,hRef:height,retIten:objPrint("-+"),metodo:1,fade:true,javafx:true,fullOpen:true}])
		},
		
		/*
		mais_menos:function(Obj,ObjOpen,wiIr,heIr,wiVt,heVt){
			if (libleolar.variaveis.javaboyLibREst==false)return false;
			heVt = arguments[5]==undefined?0:arguments[5];
			var retornItemInner = arguments[7]==undefined?false:arguments[7];
			var fade = libleolar.funcoes.mais_menos.arguments[8]==undefined?false:libleolar.funcoes.mais_menos.arguments[8];
			var javafx = arguments[9]==undefined?false:arguments[9];
			if (javafx==true)libleolar.variaveis.ativeJavaFxTemp=true;
			if (status==true){
				//if (retornItemInner)Obj.innerHTML = Obj.innerHTML; else Obj.innerHTML = '[-]';
				if (retornItemInner)Obj.innerHTML = '[-]';
				libleolar.funcoes.progressUpWiHe(ObjOpen,wiIr,heIr,1,fade);
				Obj.onclick=function(){
					libleolar.funcoes.mais_menos(Obj,ObjOpen,false,wiIr,heIr,wiVt,heVt,retornItemInner,fade,javafx);
				};
			}else{
				//if (retornItemInner)Obj.innerHTML = Obj.innerHTML; else Obj.innerHTML = '[+]';
				if (retornItemInner)Obj.innerHTML = '[+]';
				libleolar.funcoes.progressUpWiHe(ObjOpen,wiVt,heVt,1,fade);
				Obj.onclick=function(){ 
					libleolar.funcoes.mais_menos(Obj,ObjOpen,true,wiIr,heIr,wiVt,heVt,retornItemInner,fade,javafx);
				};
			}
			
		},
		*/
		abrirJan:function(fullShow,theURL,winName,features){			
			var ScreenWidth  = window.screen.width-30;
			var ScreenHeight = window.screen.height-80;
			var wiJan = arguments[4]==undefined?ScreenWidth:arguments[4];
			var heJan = arguments[5]==undefined?ScreenHeight:arguments[5];
			var mineJane;
			switch(fullShow){ 
				case 0:{
					mineJane = window.open(theURL,winName,features+',width='+wiJan+',height='+heJan);
				}break;
				case 1:{
					//var wiJan = libleolar.funcoes.abrirJan.arguments[4]=='' || libleolar.funcoes.abrirJan.arguments[4]==null?wiJan:libleolar.funcoes.abrirJan.arguments[4];
					//var heJan = libleolar.funcoes.abrirJan.arguments[5]=='' || libleolar.funcoes.abrirJan.arguments[5]==null?wiJan:libleolar.funcoes.abrirJan.arguments[5];
					mineJane = window.open(theURL,winName,features+',width='+wiJan+',height='+heJan);			
				}break;
				case 2:{//center window
					pTop  = (ScreenHeight-heJan)/2;
					pLeft = (ScreenWidth-wiJan)/2;
					mineJane = window.open(theURL,winName,features+',top='+pTop+',left='+pLeft+',width='+wiJan+',height='+heJan);	
				}break;
			}
			if (!mineJane)libleolar.escriores.caixa(libleolar.escriores.mensagens(0,'Desculpe,&nbsp;seu&nbsp;navegador&nbsp;est&aacute;&nbsp;bloqueando&nbsp;a&nbsp;janela,&nbsp;desabilite&nbsp;o&nbsp;bloqueios&nbsp;de&nbsp;POPUPS para&nbsp;continuar e fa&ccedil;a o login novamente, obrigado.'),true);
		},
		
		reloadImagem:function(settings){
			//[{id:'reLoadImg',im:'imgSeciruty',ul:'seguranca?javaboy=security',ld:'Carregando...'}]
			dload = new Date();
			dload = dload.getMilliseconds();
			settings = settings[0];
			refr  = document.getElementById(settings.im);
			document.getElementById(settings.id).innerHTML = settings.ld;
			imgNewReload = new Image();
			imgNewReload.src = settings.ul+'&NOVA=['+dload+']';
			imgNewReload.id = refr.id;
			imgNewReload.style.width = refr.style.width;
			imgNewReload.style.height = refr.style.height;
			newLoadImagem = setInterval(function(){	
				if (imgNewReload.complete){
					clearInterval(newLoadImagem);
					document.getElementById(settings.id).innerHTML = '';
					document.getElementById(settings.id).appendChild(imgNewReload);
				}
			},1);			
		},
		
		carregar_imagens:function(){
			if (libleolar.variaveis.javaboyLibREst==false)return false;
			if (libleolar.variaveis.loadImages[libleolar.variaveis.loadImages.length-1]==null)return;			
			idLoadContLed = libleolar.variaveis.loadImages[libleolar.variaveis.loadImages.length-1].idload;
			pathloadImages = libleolar.variaveis.loadImages.pop().pathImagem;
			if (libleolar.variaveis.loadImages.length==0){
				libleolar.variaveis.imgLoadSucess=true;
				if (libleolar.variaveis.ObjGet(idLoadContLed)!=null){libleolar.variaveis.ObjGet(idLoadContLed).innerHTML = 'Conclu&iacute;do, executando...';}
				return false;
			}
			ocntImgLoad=0;
			
			var timeLoadImgsObrigatorie = setInterval(function(){	
				nameFileAray = libleolar.variaveis.loadImages[ocntImgLoad].src.substring(0,libleolar.variaveis.loadImages[ocntImgLoad].src.indexOf('.'));	
				libleolar.variaveis.preloadImg[nameFileAray] = typeof(libleolar.variaveis.preloadImg[nameFileAray])=='undefined'?new Image():libleolar.variaveis.preloadImg[nameFileAray];
				libleolar.variaveis.preloadImg[nameFileAray].src = pathloadImages+libleolar.variaveis.loadImages[ocntImgLoad].src;
				if (libleolar.variaveis.preloadImg[nameFileAray].complete || libleolar.variaveis.loadImages[ocntImgLoad].compl==false)ocntImgLoad++;
				if (libleolar.variaveis.ObjGet(idLoadContLed)!=null){libleolar.variaveis.ObjGet(idLoadContLed).innerHTML = 'Aguarde, Carregando...('+libleolar.variaveis.loadImages.length + ' / '+ocntImgLoad+')';}
				if (ocntImgLoad>=libleolar.variaveis.loadImages.length){
					if (libleolar.variaveis.ObjGet(idLoadContLed)!=null){
						libleolar.variaveis.ObjGet(idLoadContLed).innerHTML = 'Conclu&iacute;do, executando...';
					}
					clearInterval(timeLoadImgsObrigatorie); libleolar.variaveis.imgLoadSucess=true;
				}
			},1);
		},
		
		slideLinkFx:function(){
			divs = document.body.getElementsByTagName('div');
			for(i=0;i<divs.length;i++){
				divsGetAttribute = divs.item(i).getAttribute('javaboyFxScrollLink');	
				if (divsGetAttribute!=null && divs.item(i).hasChildNodes()){
					divsGetAttribute = divs.item(i).removeAttribute('javaboyFxScrollLink');
					divWidGeral = new Object();
					divWidGeral.TimeBuller=typeof(divs.item(i).getAttribute('javaboyFxTheTime'))=='string'?parseInt(divs.item(i).getAttribute('javaboyFxTheTime'))*1000:5000;
					divWidGeral.methd = divs.item(i).getAttribute('javaboyFxMeth')==1 || divs.item(i).getAttribute('javaboyFxMeth')==0?divs.item(i).getAttribute('javaboyFxMeth'):0;
					divs.item(i).style.position='relative';
					ObjtInT = divs.item(i).getElementsByTagName('div');
					divWidGeral.id = 'objtmp'+i;
					divWidGeral.widthAll = 0; divWidGeral.heightTm = 0;
					for(objI=0;objI<ObjtInT.length;objI++){
						if (ObjtInT.item(objI).offsetHeight>divWidGeral.heightTm)divWidGeral.heightTm=ObjtInT.item(objI).offsetHeight;
						divWidGeral.widthAll=divWidGeral.widthAll+ObjtInT.item(objI).offsetWidth; }
					divs.item(i).style.height = divWidGeral.heightTm+'px';
					divWidGeral.innerHtmlGet = divs.item(i).innerHTML; divs.item(i).innerHTML = '';
					divWidGeral.divCreateOv = document.createElement('div');
					divWidGeral.divCreateOv.id = 'divWidGeral.divCreateOv'+i;
					divWidGeral.divCreateOv.style.position='relative';
					divWidGeral.divCreateOv.style.width = divWidGeral.widthAll+'px';
					divWidGeral.divCreateOv.style.height = divWidGeral.heightTm+'px';
					divWidGeral.divCreateOv.innerHTML = divWidGeral.innerHtmlGet;
					divWidGeral.divCreateFx = document.createElement('div');
					divWidGeral.divCreateFx.style.overflow='hidden';
					divWidGeral.divCreateFx.style.position='relative';
					divWidGeral.divCreateFx.style.width = divs.item(i).offsetWidth+'px';
					divWidGeral.divCreateFx.style.height = divs.item(i).offsetHeight+'px';
					divWidGeral.divCreateFx.appendChild(divWidGeral.divCreateOv);
					divs.item(i).appendChild(divWidGeral.divCreateFx);
					contagem=1;contagemWidth=0;
					divWidGeral.timeExecProcess = function(){												  
						divWidGeral.contFxSlider = divWidGeral.divCreateOv.getElementsByTagName('div');
						if (divWidGeral.methd==1){
							if (contagem>=divWidGeral.contFxSlider.length){
								contagem=0;
								contagemWidth = divWidGeral.contFxSlider.item(contagem).offsetLeft;
							}else{ contagemWidth = "-"+divWidGeral.contFxSlider.item(contagem).offsetLeft; }
						}else contagemWidth = "-"+(divWidGeral.contFxSlider.item(contagem).offsetLeft);
						libleolar.funcoes.progressTopDownLeftRight(divWidGeral.divCreateOv,contagemWidth,0);
						divWidGeral.timeExecProcessVerific=setInterval(function(){
							if (libleolar.variaveis.finalProcedimento2==true){
								if (divWidGeral.methd==0){
									divWidGeral.divCreateOv.appendChild(divWidGeral.contFxSlider.item(0));
									divWidGeral.divCreateOv.style.left = '0px';
								}else contagem++;
								clearInterval(divWidGeral.timeExecProcessVerific);
								setTimeout(divWidGeral.timeExecProcess,divWidGeral.TimeBuller);
							}
						},100);
					};divWidGeral.timeOut = setTimeout(divWidGeral.timeExecProcess,divWidGeral.TimeBuller);
				}				
			}
		},
		
		slideImagemFx:function(){
			var lib = libleolar.variaveis;
			var ns6 = (!lib.doc.all && lib.doc.getElementById);
			var ie4 = (lib.doc.all);
			var ns4 = (lib.doc.layers);	
			javafx = document.body.getElementsByTagName('div');			
			for(i=0;i<javafx.length;i++){
				divsGetAttribute = javafx.item(i).getAttribute('javafx');
				if (divsGetAttribute!=null){
					javafx.item(i).removeAttribute('javafx');
					pai = javafx.item(i);
					configuracoes = [{evalStringGet:divsGetAttribute,imgsLoad:Array(),timeout:null}];
					eval('var settings = '+configuracoes[0].evalStringGet);
					libleolar.variaveis.objetos['div_princ_'+i] = new libleolar.objetos.NewObj(
					[{iD:'div_princ_',w:settings[0].largura,h:settings[0].altura,pS:'relative',o:'hidden',b:'',fZ:'11px',iN:'Carregando...',append:pai,sTAttrib:['pTLd',settings[0].positLegend],tA:'center'}]);
					libleolar.variaveis.objetos['legendBox_'+i] = new libleolar.objetos.NewObj(
					[{clone:libleolar.variaveis.objetos['div_princ_'+i],t:(settings[0].positLegend=='baixo'?settings[0].altura:-30),l:0,p:5,b:'black',h:'',pS:'absolute',iD:'legendBox_'+i,append:libleolar.variaveis.objetos['div_princ_'+i],gL:7}]);
					libleolar.variaveis.objetos['LegendText_'+i] = new libleolar.objetos.NewObj(
					[{clone:libleolar.variaveis.objetos['legendBox_'+i],c:'white',b:'',iN:'Legenda...',append:libleolar.variaveis.objetos['div_princ_'+i]}]);
					over = settings[0].ativeLegend!=undefined && settings[0].ativeLegend==true?function(){
						if (libleolar.variaveis.legendBoxSlide==false)return;
						var filhos = this.parentNode.firstChild.childNodes;
						if (this.parentNode.firstChild.getAttribute('pTLd')=='baixo')
							cimabaixo=this.offsetHeight - filhos[filhos.length-1].offsetHeight;
							else cimabaixo=filhos[filhos.length-1].offsetHeight - filhos[filhos.length-1].offsetHeight; 
						libleolar.funcoes.progressTopDownLeftRight(filhos[filhos.length-2],null,cimabaixo);
						libleolar.funcoes.progressTopDownLeftRight(filhos[filhos.length-1],null,cimabaixo);
					}:null;
					out = settings[0].ativeLegend!=undefined && settings[0].ativeLegend==true?function(){
						var filhos = this.parentNode.firstChild.childNodes;
						if (this.parentNode.firstChild.getAttribute('pTLd')=='baixo')cimabaixo=this.offsetHeight+30; else cimabaixo=-(filhos[filhos.length-1].offsetHeight+30);
						libleolar.funcoes.progressTopDownLeftRight(filhos[filhos.length-2],null,cimabaixo);
						libleolar.funcoes.progressTopDownLeftRight(filhos[filhos.length-1],null,cimabaixo);
					}:null;
					libleolar.variaveis.objetos['div_final_'+i] = new libleolar.objetos.NewObj([{gL:0,b:'blue',pS:'absolute',t:(libleolar.variaveis.objetos['div_princ_'+i].offsetTop),l:(libleolar.variaveis.objetos['div_princ_'+i].offsetLeft),clone:libleolar.variaveis.objetos['div_princ_'+i],append:pai,onmouseover:over,onmouseout:out}]);
					libleolar.variaveis.objetos['objCarregar_over_'+i] = new libleolar.objetos.objLoad(configuracoes[0].imgsLoad,settings[0].ArrImagens,[libleolar.variaveis.objetos['legendBox_'+i],libleolar.variaveis.objetos['LegendText_'+i],libleolar.variaveis.objetos['div_princ_'+i],settings[0].timeLoad]);
				}
			}
		},
			
		progressTopDownLeftRight:function(obj,lAt,tAt){
			obj = typeof(obj)=='string'?document.getElementById(obj):obj;
			var argus = libleolar.funcoes.progressTopDownLeftRight.arguments;
			//var delay = argus[4]==null?0:argus[4];
			var mth = argus[3]==null?0:argus[3];
			var posX = obj.offsetLeft;
			var posY = obj.offsetTop;
			var velox = argus[4]==null?10:argus[4];
			var gravidade = 5;
			var limpar;
			libleolar.variaveis.finalProcedimento2=false;
			function process(){
				clearInterval(libleolar.variaveis.timeTopLeft);
				libleolar.variaveis.timeTopLeft=0;
				this.time = 0;
			}
			var peso=100;	
			switch(mth){
				case 0:{
					if (posX>lAt || posY>tAt){
						var kiss = new process();
						kiss.time=setInterval(function(){
							if (posX>lAt){
								parseIntStrngX = Math.ceil((obj.offsetLeft - lAt) / velox);
								posX-=parseIntStrngX;	
								obj.style.left = posX+'px';
										
								//document.getElementById('objTestLeftTopX').innerHTML=posX + "px";
								
							}else limpar=limpar+1;
							
							if (posY>tAt){
								parseIntStrngY = Math.ceil((obj.offsetTop - tAt) / velox);	
								posY-=parseIntStrngY;
								obj.style.top = posY+'px';
								
								
								//document.getElementById('objTestLeftTopY').innerHTML=posY + "px";
								
								
							}else limpar=limpar+1;
							if (posY<=tAt && posX<=lAt){ clearInterval(kiss.time);  delete kiss; libleolar.variaveis.finalProcedimento2=true;}
						},1);
					}
					if (posX<lAt || posY<tAt){
						var eyes = new process();
						eyes.time=setInterval(function(){
							if (posX<lAt){
								parseIntStrngX = Math.ceil((lAt - obj.offsetLeft) / velox);

								posX+=parseIntStrngX;
								obj.style.left = posX+'px';
								//document.getElementById('objTestLeftTopX').innerHTML=posX + "px";
							}else limpar=limpar+1;
							
							if (posY<tAt){
								parseIntStrngY = Math.ceil((tAt - obj.offsetTop) / velox);	
								posY+=parseIntStrngY;
								obj.style.top = posY+'px';
								//document.getElementById('objTestLeftTopY').innerHTML=posY + "px";
							}else limpar=limpar+1;
							if (posY>=tAt && posX>=lAt){clearInterval(eyes.time); delete eyes; libleolar.variaveis.finalProcedimento2=true;}
						},1);
					}
				}break;
			}
		},
		
		progressUpWiHe:function(obj,wAt,hAt){
			obj = (typeof(obj)=='object'?obj.id:obj);
			var lib = libleolar.variaveis;			
			var ns6 = (!lib.doc.all && lib.doc.getElementById);
			var ie4 = (lib.doc.all);
			var ns4 = (lib.doc.layers);			
			if (lib.ObjGet(obj)==null)return;
			var ObjWi = lib.ObjGet(obj).offsetWidth;
			var ObjHe = lib.ObjGet(obj).offsetHeight;
			var bdy = document.body;
			var divNew = document.createElement('div');
			divNew.style.position='absolute';
			divNew.style.top='0px';
			divNew.style.left='0px';
			divNew.style.width='100%';
			divNew.style.height='100%';
			divNew.id='ObjTempWidthHeight';
			bdy.appendChild(divNew);
			overAtual = lib.ObjGet(obj).style.overflow;
			ObjTemp = lib.ObjGet('ObjTempWidthHeight');	
			ObjWiMax = ObjTemp.offsetWidth-80;
			ObjHeMax = ObjTemp.offsetHeight-100;
			bdy.removeChild(ObjTemp);
			ObjThis = libleolar.funcoes.progressUpWiHe.arguments;
			args  = (ObjThis[3]=="undefined" || ObjThis[3]==null)?null:parseInt(ObjThis[3]);
			fader = (ObjThis[4]=="undefined" || ObjThis[4]==null || ObjThis[4]==true)?true:false;
			scrollQust = (ObjThis[5]=="undefined" || ObjThis[5]==null || ObjThis[5]==false)?false:true;
			lib.ObjGet(obj).style.border='none';
			//if (libleolar.variaveis.caixaBoxNoScroll==false){lib.ObjGet(obj).style.overflow='hidden';}
			velx = 5;	
			AtiveScrollX=false,AtiveScrollY=false;
			if (libleolar.variaveis.javaboyLibREst==false)return false;
			classUp = 0;
			if (fader==true){if(ie4)lib.ObjGet(obj).style.filter='alpha(opacity=00)'; if(ns6)lib.ObjGet(obj).style.opacity='.0'; if(ns4)lib.ObjGet(obj).style.MozOpacity='0.0';
			}else{if(ie4)lib.ObjGet(obj).style.filter='alpha(opacity=100)'; if(ns6)lib.ObjGet(obj).style.opacity='1.0'; if(ns4)lib.ObjGet(obj).style.MozOpacity='1.0';}
			wAt = wAt==null?null:parseInt(wAt);
			hAt = hAt==null?null:parseInt(hAt);
			if (libleolar.variaveis.caixaBoxNoScroll){
				if (wAt!=null){
					if (wAt>ObjWiMax){wAt = (libleolar.variaveis.ObjTemporario==null?ObjWiMax:wAt); hAt=hAt==null?null:hAt+15;
					scrollQust=(libleolar.variaveis.ObjTemporario!=null?true:false); AtiveScrollX=true;}else wAt=wAt; }
				if (hAt!=null){
					if (hAt>ObjHeMax){hAt = (libleolar.variaveis.ObjTemporario==null?ObjHeMax:hAt); wAt=wAt==null?null:wAt+15;
					scrollQust=(libleolar.variaveis.ObjTemporario!=null?true:false);; AtiveScrollY=true; }else hAt=hAt;}
			}
			if (libleolar.variaveis.ativeModeFxAdvance==false && libleolar.variaveis.ativeJavaFxTemp==false){
				libleolar.variaveis.finalProcedimento=false;
				var proximo=null;
				if (wAt!=null){lib.ObjGet(obj).style.width = wAt+"px";}
				if (hAt!=null){lib.ObjGet(obj).style.height = hAt+"px";}
				var execFader = function(){
					if (lib.ObjGet(obj)!=null){
						if(ie4){ classUp+=10; lib.ObjGet(obj).style.filter='alpha(opacity='+classUp+')'; }
						if(ns6 || ns4){ classUp+=0.1; lib.ObjGet(obj).style.opacity=classUp; lib.ObjGet(obj).style.MozOpacity=classUp; }
						if ((ie4 && classUp<100) || ((ns6 || ns4) && classUp<1.0)){setTimeout(execFader,1);}else{ proximo=1; }
					}else{ proximo=1; }
				};
				var verificaFim = function(){
					if (lib.ObjGet(obj)!=null){
						if (fader==true && proximo==null)execFader(); else{ proximo=1;}
						if (proximo==1){
							if (scrollQust){
								if (AtiveScrollY){ lib.ObjGet(obj).style.border='thin dashed #333'; lib.ObjGet(obj).style.overflowY='scroll'; }
								if (AtiveScrollX){ lib.ObjGet(obj).style.border='thin dashed #333'; lib.ObjGet(obj).style.overflowX='scroll'; } 
								libleolar.variaveis.finalProcedimento=true;
							}else libleolar.variaveis.finalProcedimento=true;
						}else setTimeout(verificaFim,100);
					}else libleolar.variaveis.finalProcedimento=true;
					if (libleolar.variaveis.functionTerminoExec!=null){
						feExec = libleolar.variaveis.functionTerminoExec;
						libleolar.variaveis.functionTerminoExec=null;
						eval(feExec);	
					}
				}; verificaFim();
			}else{
				libleolar.variaveis.ativeJavaFxTemp=false;	
				clearInterval(lib.time); lib.time=0;
				switch(args){
					case 1:{
						var processWidth = function(){
							lib.ObjGet(obj).style.overflow='hidden';
							if (lib.ObjGet(obj)!=null){
								if (ObjWi<wAt){ dis = Math.ceil((wAt - ObjWi) / velx); ObjWi+=dis;}
								if (ObjWi>wAt){ dis = Math.ceil((ObjWi - wAt) / velx); ObjWi-=dis;}
								lib.ObjGet(obj).style.width = parseInt(ObjWi)+"px";
								if (ObjWi<wAt || ObjWi>wAt)lib.time = setTimeout(processWidth,1);
									else processHeight();
							}
						};
						var processHeight = function(){
							lib.ObjGet(obj).style.overflow='hidden';
							if (lib.ObjGet(obj)!=null){
								if (ObjHe<hAt){ dis = Math.ceil((hAt - ObjHe) / velx); ObjHe+=dis;}
								if (ObjHe>hAt){ dis = Math.ceil((ObjHe - hAt) / velx); ObjHe-=dis;}
								lib.ObjGet(obj).style.height = parseInt(ObjHe)+"px";
								if (ObjHe<hAt || ObjHe>hAt)lib.time = setTimeout(processHeight,1);
									else execFader(fader);
							}
						};
						var execFader = function(){
							if (lib.ObjGet(obj)!=null && fader==true){
								if(ie4){ classUp+=10; lib.ObjGet(obj).style.filter='alpha(opacity='+classUp+')'; }
								if(ns6 || ns4){ classUp+=0.1; lib.ObjGet(obj).style.opacity=classUp; lib.ObjGet(obj).style.MozOpacity=classUp; }
								if ((ie4 && classUp<100) || ((ns6 || ns4) && classUp<1.0)) setTimeout(execFader,1);
									else verificaFim();
							}else verificaFim();
						};
						
						var verificaFim = function(){							
							if (scrollQust){
								if (AtiveScrollY){ lib.ObjGet(obj).style.border='thin solid #333'; lib.ObjGet(obj).style.overflowY='scroll'; }
								if (AtiveScrollX){ lib.ObjGet(obj).style.border='thin solid #333'; lib.ObjGet(obj).style.overflowX='scroll'; }
							}
							idPOstiGet = 0;
							if (lib.ObjGet(obj).childNodes[0].id==undefined){idPOstiGet=1}
							if (lib.ObjGet(obj).offsetHeight == lib.ObjGet(obj).childNodes[idPOstiGet].offsetHeight){
								lib.ObjGet(obj).style.overflowY='';
								lib.ObjGet(obj).style.height=''; }
							if (lib.ObjGet(obj).offsetWidth == lib.ObjGet(obj).childNodes[idPOstiGet].offsetWidth){
								lib.ObjGet(obj).style.overflowX='';
								lib.ObjGet(obj).style.width=''; }
							libleolar.variaveis.finalProcedimento=true;
							if (libleolar.variaveis.functionTerminoExec!=null){
								feExec = libleolar.variaveis.functionTerminoExec;
								libleolar.variaveis.functionTerminoExec=null;
								eval(feExec);	
							}
						};
						if (wAt!=null && (ObjWi<wAt || ObjWi>wAt))processWidth(); else{
							if ((wAt==null && hAt!=null) || (ObjHe<hAt || ObjHe>hAt))processHeight();
						}
					}break;
					default:{
						var processWidth = function(){
							lib.ObjGet(obj).style.overflow='hidden';
							if (lib.ObjGet(obj)!=null){
								if (ObjWi<wAt){ dis = Math.ceil((wAt - ObjWi) / velx); ObjWi+=dis; }
								if (ObjWi>wAt){ dis = Math.ceil((ObjWi - wAt) / velx); ObjWi-=dis; }
								lib.ObjGet(obj).style.width = parseInt(ObjWi)+"px";
								if (ObjWi<wAt || ObjWi>wAt)lib.time = setTimeout(processWidth,1);
									else processHeight();
							}
						};
						var processHeight = function(){
							lib.ObjGet(obj).style.overflow='hidden';
							if (lib.ObjGet(obj)!=null){
								if (ObjHe<hAt){ dis = Math.ceil((hAt - ObjHe) / velx); ObjHe+=dis; }
								if (ObjHe>hAt){ dis = Math.ceil((ObjHe - hAt) / velx); ObjHe-=dis; }
								lib.ObjGet(obj).style.height = parseInt(ObjHe)+"px";
								if (ObjHe<hAt || ObjHe>hAt)lib.time = setTimeout(processHeight,1);
									else execFader(fader);
							}
						};
						var execFader = function(){
							if (lib.ObjGet(obj)!=null && fader==true){
								if(ie4){ classUp+=10; lib.ObjGet(obj).style.filter='alpha(opacity='+classUp+')'; }
								if(ns6 || ns4){ classUp+=0.1; lib.ObjGet(obj).style.opacity=classUp; lib.ObjGet(obj).style.MozOpacity=classUp; }
								if ((ie4 && classUp<100) || ((ns6 || ns4) && classUp<1.0)) setTimeout(execFader,1);
									else verificaFim();
							}else verificaFim();
						};
						var verificaFim = function(){
							if (scrollQust){
								if (AtiveScrollY){ lib.ObjGet(obj).style.border='thin solid #333'; lib.ObjGet(obj).style.overflowY='scroll'; }
								if (AtiveScrollX){ lib.ObjGet(obj).style.border='thin solid #333'; lib.ObjGet(obj).style.overflowX='scroll'; }
							}
							idPOstiGet = 0;
							if (lib.ObjGet(obj).childNodes[0].id==undefined){idPOstiGet=1}
							if (lib.ObjGet(obj).offsetHeight == lib.ObjGet(obj).childNodes[idPOstiGet].offsetHeight){
								lib.ObjGet(obj).style.overflowY='';
								lib.ObjGet(obj).style.height=''; }
							if (lib.ObjGet(obj).offsetWidth == lib.ObjGet(obj).childNodes[idPOstiGet].offsetWidth){
								lib.ObjGet(obj).style.overflowX='';
								lib.ObjGet(obj).style.width=''; }
							libleolar.variaveis.finalProcedimento=true;
							if (libleolar.variaveis.functionTerminoExec!=null){
								feExec = libleolar.variaveis.functionTerminoExec;
								libleolar.variaveis.functionTerminoExec=null;
								eval(feExec);	
							}
						};
						if (wAt!=null && (ObjWi<wAt || ObjWi>wAt))processWidth();
						if ((wAt==null && hAt!=null) || (ObjHe<hAt || ObjHe>hAt))processHeight();
					}break;
				}
			}
			if(libleolar.variaveis.grupo_imagens!=null && libleolar.variaveis.grupo_imagens.length>0){
				Obj_lib = libleolar.variaveis.grupo_imagens;
				objSpa  = document.createElement('span');
				objSpa.innerHTML = '<table cellpadding="0" cellspacing="3" border="0" width="100%" style="position:fixed; top:0px; left:0px;"><tr><td valign="middle" width="1px"><img src="img_script/btn_img_left.png" onClick="document.getElementById(\'imagens_grupo_selected\').scrollLeft = document.getElementById(\'imagens_grupo_selected\').scrollLeft-285;" style="cursor:pointer;"/></td><td valign="middle" align="center"><div align="center" style="width:'+(window.screen.availWidth-78)+'px; overflow:hidden;" id="imagens_grupo_selected"></div></td><td valign="middle" width="1px"><img src="img_script/btn_img_right.png" onmousedown="document.getElementById(\'imagens_grupo_selected\').scrollLeft = document.getElementById(\'imagens_grupo_selected\').scrollLeft+285;" style="cursor:pointer;"/></td></tr></table>';
				libleolar.variaveis.ObjTemporario.appendChild(objSpa);
				div_conteudo = document.createElement('div');
				div_conteudo.id = 'div_grupoImagens';
				div_conteudo.style.width = '10000px';
				for(i=0;i<Obj_lib[0].urlimg.length;i++){
					
					img = '<div style="float:left; padding:3px;"><img id="img_grupo_'+i+'" style="border:thin solid #FFF; cursor:pointer" src="'+Obj_lib[0].urlimg[i]+'" onmouseover="this.style.width=this.width+10" onmouseout="this.style.width=this.width-10" onclick="var imgsn_gp = document.getElementById(\'div_grupoImagens\').getElementsByTagName(\'img\'); for(i=0;i<imgsn_gp.length;i++){ imgsn_gp[i].style.width = \''+Obj_lib[0].widthDefault+'px\'; imgsn_gp[i].setAttribute(\'onmouseout\',\'this.style.width=this.width-5\'); imgsn_gp[i].setAttribute(\'onmouseover\',\'this.style.width=this.width+5\');} this.style.width=this.width+10; this.onmouseout=\'\'; this.style.width=this.width+5; this.onmouseover=\'\';  libleolar.funcoes.loadSenderAjaxIfrom(0,\''+Obj_lib[0].linkImg[i]+'\',\'?\',null,null,\'abrindo&nbsp;imagem...\',1,true,false,false,false,false);" ></div>';
					div_conteudo.innerHTML=div_conteudo.innerHTML+(img);
					
				}
				document.getElementById('imagens_grupo_selected').appendChild(div_conteudo);
				filhos = document.getElementById('div_grupoImagens').getElementsByTagName('img');
				filhos[Obj_lib[0].position].style.width = filhos[Obj_lib[0].position].width+10;
				filhos[Obj_lib[0].position].onmouseout = ''
				filhos[Obj_lib[0].position].onmouseover= '';
			}
			libleolar.variaveis.grupo_imagens=null;
		},
		
		rolarScroll:function(obj,DownUp){
			
		},
		
		processaCarregamentoPagina:function(modSend,StringSend,fileRequest,ObjLoad,ObjRetorn,MsgExb,IconMsg,bloqueLoad,btnClose,fader){
			var processaGarramento = function(){
				var objLoadThis = ObjLoad!='' ? typeof(ObjLoad)=='string' ? libleolar.variaveis.ObjGet(ObjLoad) : typeof(ObjLoad)=='object' ? ObjLoad : null : null;
				if (objLoadThis!=null){
					objLoadThis.innerHTML = '<table cellpadding="2" cellspacing="0" border="0" style="width:auto; height:auto; color:red; font-family:Verdana; font-weight:bold; font-size:11px;"><tr><td valign="top" align="center" width="1"></td><td valign="middle" align="left">Aguarde, carregando a p&aacute;gina...</td></tr></table>';
				}
				if (libleolar.variaveis.imgLoadSucess==true){
					libleolar.funcoes.loadSenderAjaxIfrom(modSend,StringSend,fileRequest,ObjLoad,ObjRetorn,MsgExb,IconMsg,bloqueLoad,btnClose,fader);
					clearTimeout(processaGarramento);
				}else setTimeout(processaGarramento,10);	
			};processaGarramento();
		},
		
		loadSenderAjaxIfrom:function(modSend,StringSend,fileRequest,ObjLoad,ObjRetorn,MsgExb,IconMsg,bloqueLoad,btnClose,fader){		
			var ObjThis = this.loadSenderAjaxIfrom.arguments;
			MsgExb = MsgExb==null?new String('Processando...'):MsgExb;
			if (libleolar.variaveis.javaboyLibREst==false)return false;
			btnClose = (btnClose=="undefined" || btnClose==null || btnClose==false)?false:true;
			fader = (fader=="undefined" || fader==null || fader==true)?true:false;
			bloqueLoad = (bloqueLoad=="undefined" || bloqueLoad==null || bloqueLoad==true)?true:false;
			if (modSend==0){if (libleolar.variaveis.filaAjax.toString().indexOf(StringSend.substring(StringSend.length-10,StringSend.length)+'_idLoadItemAjaxSend')>=0 || libleolar.variaveis.filaAjax.length>libleolar.variaveis.LimitMaxItenAjaxSend){return false;}}
			libleolar.variaveis.QuestionYesNoCloseBox=btnClose;
			var objLoadThis = ObjLoad!='' ? typeof(ObjLoad)=='string' ? libleolar.variaveis.ObjGet(ObjLoad) : typeof(ObjLoad)=='object' ? ObjLoad : null : null;
			var ObjRetornThis = ObjRetornThis!='' ? typeof(ObjRetorn)=='string' ? libleolar.variaveis.ObjGet(ObjRetorn) : typeof(ObjRetorn)=='object' ? ObjRetorn : null : null;
			if (libleolar.variaveis.imgLoadSucess==false){
				if (objLoadThis!=null){
					libleolar.funcoes.processaCarregamentoPagina(modSend,StringSend,fileRequest,ObjLoad,ObjRetorn,MsgExb,IconMsg,bloqueLoad,btnClose,fader);
				}
				return;	
			}
			libleolar.variaveis.ObjRetornAjax = ObjRetorn;
			switch(modSend){
				case 0:{
					if (libleolar.variaveis.xmlhttp==null){
						libleolar.variaveis.xmlhttp=null;
						try{
							libleolar.variaveis.xmlhttp=new XMLHttpRequest();
						}catch(e){
							try{
								libleolar.variaveis.xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
							}catch(e){
								libleolar.variaveis.xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
							}
						}
						xmlHTMLSender = libleolar.variaveis.xmlhttp;
						if (xmlHTMLSender==null){
							var timeFinallyRodc=setInterval(function(){
								if (libleolar.variaveis.imgLoadSucess==true){
									libleolar.escriores.caixa(libleolar.escriores.mensagens(0,'Desculpe,&nbsp;seu&nbsp;navegador&nbsp;n&atilde;o&nbsp;tem&nbsp;suporte&nbsp;para&nbsp;tecnologia&nbsp;"sincronismo&nbsp;de&nbsp;conte&uacute;do"!\nFa&ccedil;a&nbsp;um&nbsp;atualiza&ccedil;&atilde;o&nbsp;de&nbsp;seu&nbsp;navegador'),true);
								}
							},1);
							return false;
						}
					}
					if (objLoadThis!=null && objLoadThis.innerHTML=='') objLoadThis.innerHTML = libleolar.escriores.mensagens(2,'Aguarde...');	
					//if (libleolar.variaveis.abortRequisicao==false){
						libleolar.variaveis.filaAjax.push([StringSend,fileRequest,ObjRetornThis,StringSend.substring(StringSend.length-10,StringSend.length)+'_idLoadItemAjaxSend',objLoadThis,IconMsg,MsgExb,bloqueLoad,btnClose,fader]);//}
						if (libleolar.variaveis.debugStringSenderAjax==true){
							if (libleolar.variaveis.ObjGet('divAjaxFila')==null){
								var htmlDivDebug = '<div style="top:0px; left:0px; background-color:#F00; width:'+(window.screen.width-40)+'px; overflow:auto; border:thin #FFFFFF dashed; padding:5px; position:absolute; font-size:12px; font-family:Arial; color:#FFFFFF; -moz-opacity: 0.8;opacity:0.8;filter: alpha(opacity=80);" id="divAjaxFila"></div>';
								var bdy = libleolar.variaveis.doc.body;
								var spanIdDebug = document.createElement('span');
								spanIdDebug.style.backgroundColor = '#F00';
								spanIdDebug.innerHTML = htmlDivDebug
								bdy.appendChild(spanIdDebug);
							}
							libleolar.variaveis.varDebugString.push([StringSend,fileRequest,ObjRetornThis,StringSend.substring(StringSend.length-10,StringSend.length)+'_idLoadItemAjaxSend']);
							var divAjaxFila = libleolar.variaveis.ObjGet('divAjaxFila');
							divAjaxFila.style.display = 'inline';
							var divSpanId = libleolar.variaveis.doc.createElement('p');
							var textoString = libleolar.variaveis.doc.createTextNode(libleolar.variaveis.varDebugString.toString()+' ');
							libleolar.variaveis.varDebugString.shift();
							divSpanId.appendChild(textoString);
							divSpanId.id = StringSend.substring(StringSend.length-10,StringSend.length)+'_idLoadItemAjaxSend';
							if (iconDelete==undefined){
								var iconDelete = new Array();
								if (iconDelete.length==0){
									contItem = 0;	
								}else contItem++;
							}
							iconDelete[contItem] = document.createElement('img');
							iconDelete[contItem].style.verticalAlign='middle';
							iconDelete[contItem].style.cursor= 'pointer';
							iconDelete[contItem].src = libleolar.variaveis.preloadImg['cancel'].src;
							iconDelete[contItem].id = StringSend.substring(StringSend.length-10,StringSend.length)+'_idLoadItemAjaxSend';
							iconDelete[contItem].onclick=function(){
								var divAjaxFilaIcon = libleolar.variaveis.ObjGet('divAjaxFila');
								var thisIconItem = this.parentNode;
								divAjaxFilaIcon.removeChild(thisIconItem);						
							};
							divSpanId.appendChild(iconDelete[contItem]);
							divAjaxFila.appendChild(divSpanId);
						}
										
					funcProcessFile=function(){
						proximo = libleolar.variaveis.filaAjax[0];
						if(proximo[7]==true){
							var timeFinallyRodc=setInterval(function(){
								if (libleolar.variaveis.imgLoadSucess==true){
									clearInterval(timeFinallyRodc);		
									libleolar.escriores.caixa(libleolar.escriores.mensagens(proximo[5],proximo[6]),proximo[8]);
								}
							},1);
						}else{
							(proximo[4]!=null?function(){ proximo[4].innerHTML = libleolar.escriores.mensagens(proximo[5],proximo[6]);}():null);	
						}
						var timeContProcess=0;
						var timeXmlHtml;
						clearInterval(libleolar.variaveis.TimeResetUser);
						libleolar.variaveis.TimeResetUser=setInterval(function(){	
							/*if (document.getElementById('timerCont')==null){
								var divCont = document.createElement('div');
								divCont.style.backgroundColor = '#F00';
								divCont.style.position = 'absolute';
								divCont.style.top = '0px';
								divCont.style.left = '0px';
								divCont.style.padding = '3px';
								divCont.id = 'timerCont';
								document.body.appendChild(divCont);
							}
							document.getElementById('timerCont').innerHTML = "Timer Ajax.Post: "+timeContProcess;	*/
							
							if (timeContProcess<60){
								timeContProcess++;
							}else{
								xmlHTMLSender.abort();
								clearInterval(libleolar.variaveis.TimeResetUser);
								clearTimeout(libleolar.variaveis.time);
								var stringSendFile = proximo[0];
								var fileSend = proximo[1];
								for(io=0;io<libleolar.variaveis.filaAjax.length;io++){
									if (libleolar.variaveis.filaAjax[io][2].id!=libleolar.variaveis.filaAjax[io][4].id)libleolar.variaveis.filaAjax[io][4].innerHTML='';
									libleolar.variaveis.filaAjax.shift(); }
								libleolar.variaveis.filaAjax.length = 0;
								var funcEx=function(){
									libleolar.funcoes.loadSenderAjaxIfrom(modSend,stringSendFile,fileSend,ObjLoad,ObjRetorn,MsgExb,IconMsg,bloqueLoad,btnClose,fader);
								};
								objLoadThis.innerHTML='';
								libleolar.variaveis.TExec=funcEx;
								libleolar.escriores.caixa(libleolar.escriores.mensagens(3,'Desculpe,&nbsp;tempo&nbsp;de&nbsp;resposta&nbsp;esgotado,&nbsp;sua&nbsp;requisi&ccedil;&atilde;o&nbsp;foi&nbsp;cancelada!\n\nDeseja&nbsp;fazer&nbsp;novamente?'),true,true,true);
								return;
							}
						},1000);
						xmlHTMLSender.open("POST",proximo[1],true);
						xmlHTMLSender.onreadystatechange=function(){
							if(xmlHTMLSender.readyState==4 || xmlHTMLSender.readyState==200 || xmlHTMLSender.readyState=="complete"){
								retorno=xmlHTMLSender.responseText;
								timeXmlHtml = function(){						
									/*if (libleolar.variaveis.abortRequisicao==true){
										xmlHTMLSender.abort();
										clearInterval(libleolar.variaveis.TimeResetUser);
										clearTimeout(libleolar.variaveis.time);
										clearTimeout(funcProcessFile);
										clearTimeout(timeXmlHtml);
										for(io=0;io<libleolar.variaveis.filaAjax.length;io++){libleolar.variaveis.filaAjax.shift(); }
										libleolar.variaveis.filaAjax.length = 0;
										libleolar.variaveis.abortRequisicao=false;
										alert('abort ajax;');
										return;
									}*/
									if (libleolar.variaveis.ObjTemporario==null && proximo[7]==false)libleolar.variaveis.finalProcedimento=true;
									if (libleolar.variaveis.finalProcedimento==true && libleolar.variaveis.imgLoadSucess==true){
										
										if (libleolar.variaveis.debugStringSenderAjax==true && libleolar.variaveis.debugStringSenderAjaxDelte==true){
											var divAjaxFila = libleolar.variaveis.ObjGet('divAjaxFila');
											var idRemove = divAjaxFila.firstChild;
											divAjaxFila.removeChild(idRemove);
										}
										defineRetornoForm = retorno.indexOf('<idRetornoAjax=')>=0?retorno.replace('<idRetornoAjax="',''):null;
										defineRetornoForm = defineRetornoForm!=null?
											defineRetornoForm.substr(0,defineRetornoForm.indexOf('"'))
												:null;
										defineRetornoForm = document.getElementById(defineRetornoForm)!=null?document.getElementById(defineRetornoForm):null;
										//if (defineRetornoForm==null){alert('Id de Retorno error!'); return;}
										clearTimeout(libleolar.variaveis.time); clearInterval(libleolar.variaveis.TimeResetUser);
										if (libsite.processaRetorno(retorno)==true) return;
										stringObjRetorno = retorno.indexOf('JavaBoyboxExec')>=0?0:retorno.indexOf('JavaBoyEvalExec')>-1?1:2;
										switch(stringObjRetorno){
											case 0:{
												if (retorno.indexOf('btnClose=false')>-1)btnClose=false;else btnClose=true;
												(proximo[2]!=null && proximo[4]!=null ? proximo[4].innerHTML = '' : false );
												libleolar.escriores.caixa(retorno,btnClose); libleolar.variaveis.filaAjax.shift();
												if (libleolar.variaveis.filaAjax.length>0)libleolar.variaveis.time = setTimeout(funcProcessFile,100);
											}break;
											case 1:{
												//alert(retorno);
												eval(retorno); libleolar.variaveis.filaAjax.shift();
												if (libleolar.variaveis.filaAjax.length>0)libleolar.variaveis.time = setTimeout(funcProcessFile,100);
											}break;
											default:{
												if (defineRetornoForm!=null){
													defineRetornoForm.innerHTML=retorno;libleolar.escriores.CloseDialogo(false);libleolar.variaveis.noCloseBox=true;defineRetornoForm=null;
												}else{
													(proximo[2]!=null ? function(){ proximo[2].innerHTML=retorno; }() : false );
												}
												((proximo[4]!=null && proximo[4].id!=proximo[2].id) ? proximo[4].innerHTML = '' : false );
												libleolar.variaveis.filaAjax.shift();
												if (libleolar.variaveis.filaAjax.length==0 && libleolar.variaveis.ObjTemporario!=null)setTimeout(
													function(){
														//if (libleolar.variaveis.noCloseBox==true){libleolar.escriores.CloseDialogo(false);}
														if (libleolar.variaveis.processReturnNoCloseBox==true){
															libleolar.variaveis.ObjGet('mensagemCarregandoMenus').innerHTML=libleolar.variaveis.mensagemBlockFinal;
															libleolar.funcoes.progressUpWiHe(libleolar.variaveis.ObjClose,320,30,1,true,false);
														}
														if (libleolar.variaveis.varExecFunc!=null){eval(libleolar.variaveis.varExecFunc); libleolar.variaveis.varExecFunc=null;}
														libleolar.variaveis.varExecFunc=null;
														libleolar.variaveis.noCloseBox=true;
													},10);
												if (libleolar.variaveis.filaAjax.length>0) libleolar.variaveis.time = setTimeout(funcProcessFile,10);
											}break;
										}
										libleolar.funcoes.ativeFxAlink(true);
										libleolar.funcoes.slideImagemFx();
										libleolar.funcoes.slideLinkFx();
									}else setTimeout(timeXmlHtml,10);
								};setTimeout(timeXmlHtml,10);
							}
						};
						xmlHTMLSender.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
						xmlHTMLSender.setRequestHeader("Cache-Control", "no-store, no-cache, must-revalidate");
						xmlHTMLSender.setRequestHeader("Cache-Control", "post-check=0, pre-check=0");
						xmlHTMLSender.setRequestHeader("Pragma", "no-cache");
						//xmlHTMLSender.setRequestHeader("Connection", "close"); 
						xmlHTMLSender.send(proximo[0]);
					}; setTimeout(funcProcessFile,1);
				}break;
				case 1:{
					html_erro_http='<table cellpadding="2" cellspacing="0" border="0" width="100%" height="1"><tr><td valign="top" algin="left" width="0px"><img src="'+libleolar.variaveis.preloadImg['notificar'].src+'"></td><td valign="top" align="left"><font style="color:red;"> Tempo esgotado, superior a 120 segundos!<br>Talves sua conexão esteja lenta, tente novamente.<br><input type="button" value="Tentar denovo" id="ReSendBtnClick"></td></tr></table>';
					StringSend = typeof(StringSend)=="string"?libleolar.variaveis.ObjGet(StringSend):StringSend;
				 	var erro="";
					if(StringSend==null || typeof(StringSend)=="undefined"){ erro += "O form passado no 1 parâmetro nao existe na página.\n";}
						else if(StringSend.nodeName!="FORM"){ erro += "O form passado no 1o parâmetro da função não é um form.\n";}
					if(ObjRetornThis==null){ erro += "O elemento passado no 3o parâmetro não existe na página.\n";}
					if(erro.length>0) {
						libleolar.escriores.caixa(libleolar.escriores.mensagens(0,'Erro ao chamar a função loadSenderAjaxIfrom:\n' + erro),true);					 
						return;
					}
					if (bloqueLoad==true){
						libleolar.escriores.caixa(libleolar.escriores.mensagens(IconMsg,MsgExb.replace(/ /g,'&nbsp;')),false);
					}else{ 
						libleolar.variaveis.objLoadThis = objLoadThis; 
						libleolar.variaveis.ObjRetornAjax = ObjRetorn;
						objLoadThis.innerHTML = libleolar.escriores.mensagens(IconMsg,MsgExb); }
					var iframe = document.createElement("iframe");
					iframe.setAttribute("id","JOHNY-temp");
					iframe.setAttribute("name","JOHNY-temp");
					iframe.setAttribute("width","0");
					iframe.setAttribute("height","0");
					iframe.setAttribute("border","0");
					iframe.setAttribute("style","width: 0; height: 0; border: none;");
					if (libleolar.variaveis.AddInputForm!=null){
						objectGet =	libleolar.variaveis.AddInputForm[0];
						typeObject= document.getElementById(objectGet.referencia).getElementsByTagName(objectGet.tag);
						for(i=0;i<typeObject.length;i++){
							attrib = typeObject.item(i).getAttribute('anuleObject');
							if (attrib==undefined && typeObject.item(i).checked){
								new_compo = document.createElement('input');
								new_compo.setAttribute('type','text');
								new_compo.name = typeObject.item(i).name;
								new_compo.value = typeObject.item(i).value;
								StringSend.appendChild(new_compo);
							}
						}
						libleolar.variaveis.AddInputForm=null;
					}
					StringSend.parentNode.appendChild(iframe);
					document.body.appendChild(iframe);
					window.frames['JOHNY-temp'].name="JOHNY-temp";
					var contTimeSend=0;
					libleolar.variaveis.TimeResetUser;
					/*if (libleolar.variaveis.TimeProcess){	
						var varTimeSend=setInterval(function(){
							/*if (document.getElementById('timerCont')==null){
								var divCont = document.createElement('div');
								divCont.style.backgroundColor = '#F00';
								divCont.style.position = 'absolute';
								divCont.style.top = '0px';
								divCont.style.left = '0px';
								divCont.style.padding = '3px';
								divCont.id = 'timerCont';
								document.body.appendChild(divCont);
							}
							document.getElementById('timerCont').innerHTML = "Timer Form.Post: "+contTimeSend;													 
														 
							if (contTimeSend>120){
								clearInterval(varTimeSend);		
								ObjRetornThis.innerHTML = html_erro_http;
								var onClickBtnReSend = function(){
									libleolar.funcoes.loadSenderAjaxIfrom(modSend,StringSend,fileRequest,ObjLoad,ObjRetorn,MsgExb,IconMsg,bloqueLoad,btnClose,fader);
								};
								if (document.getElementById('ReSendBtnClick')!=null || document.getElementById('ReSendBtnClick')!=undefined){document.getElementById('ReSendBtnClick').onclick = onClickBtnReSend;}else{clearInterval(varTimeSend);};
							}else{ contTimeSend++; }
						},1000);
					}else libleolar.variaveis.TimeProcess=true;*/
					var mif=false;
					var carregou = function() { 
						libleolar.funcoes.removeEventItem(libleolar.variaveis.ObjGet('JOHNY-temp'),"load", carregou); 
						FuncExecTeminoLoad = (libleolar.variaveis.functionTerminoExec!=null?libleolar.variaveis.functionTerminoExec:null);
						if (bloqueLoad==false){
							var cross = "javascript:";
							cross += "window.parent.document.getElementById(window.parent.libleolar.variaveis.ObjRetornAjax).innerHTML = document.body.innerHTML; clearInterval(window.parent.varTimeSend);";
							cross +="(window.parent.libleolar.variaveis.objLoadThis.id!=window.parent.libleolar.variaveis.ObjRetornAjax?window.parent.libleolar.variaveis.objLoadThis.innerHTML='':''); "+FuncExecTeminoLoad;
							libleolar.variaveis.functionTerminoExec=null;
							libleolar.variaveis.ObjGet('JOHNY-temp').src = cross;   
						}
						setTimeout(function(){ libleolar.funcoes.removeItem(libleolar.variaveis.ObjGet('JOHNY-temp'))}, 10);	
						clearInterval(varTimeSend);
					};
					if (mif==false){
						libleolar.funcoes.addEventItem(libleolar.variaveis.ObjGet('JOHNY-temp'),"load", carregou);
					}
					StringSend.setAttribute("target","JOHNY-temp");
					StringSend.setAttribute("action",fileRequest);
					StringSend.setAttribute("method","post");
					StringSend.setAttribute("enctype","multipart/form-data");
					StringSend.setAttribute("encoding","multipart/form-data");
					//StringSend.onsubmit = function(){return false;};
					StringSend.submit();
					try{ document.body.removeChild(StringSend); }catch(e){}
				}break;
			}
		},
		
		sendDadosInstAjax:function(){
			//sendDadosInstAjax([{str_name:'ld',str_value:'mural',url:'process/',ld_1:'ld_1',ld_2:'ld_2',led:'msg',tpLd:1,block:false,btnClose:false,fader:false},
			//{nameStr:['pag']},
			//{str:['<?=$i+1?>']}])	
			dt = new Date();
			divHidden = document.createElement('div');
			divHidden.style.display='none';	
			form = document.createElement('form');
			form.id = 'loadForm_'+dt.getTime();
			ary_str = arguments[0];
			keyLan = document.createElement('input');	
			keyLan.name = ary_str[0].str_name;
			keyLan.value = ary_str[0].str_value;
			form.appendChild(keyLan);
			for_cont = (ary_str[1].nameStr==undefined?ary_str[1].str:ary_str[1].nameStr);
			for(i=0;i<for_cont.length;i++){
				inp_new = document.createElement('input');	
				if(ary_str[1].nameStr==undefined){
					inp_new.name = i;
					inp_new.value = ary_str[1].str[i];	
				}else{
					inp_new.name = ary_str[1].nameStr[i];
					inp_new.value = ary_str[2].str[i];		
				}
				form.appendChild(inp_new);
			}
			divHidden.appendChild(form);		
			if (libleolar.variaveis.imgLoadSucess==false){
				var processaGarramento = function(){
					if (ary_str[0].ld_1!=null){
						document.getElementById(ary_str[0].ld_1).innerHTML = '<table cellpadding="2" cellspacing="0" border="0" style="width:auto; height:auto; color:red; font-family:Verdana; font-weight:bold; font-size:11px;"><tr><td valign="top" align="center" width="1"></td><td valign="middle" align="left">Aguarde, carregando a p&aacute;gina...</td></tr></table>';
					}
					if (libleolar.variaveis.imgLoadSucess==true){
						document.body.appendChild(divHidden);	
						libleolar.funcoes.loadSenderAjaxIfrom(1,form,ary_str[0].url,((ary_str[0].ld_1!=null && ary_str[0].ld_1!=undefined)?ary_str[0].ld_1:''),((ary_str[0].ld_2!=null && ary_str[0].ld_2!=undefined)?ary_str[0].ld_2:ary_str[0].ld_1),(ary_str[0].led!=null?ary_str[0].led:''),ary_str[0].tpLd,ary_str[0].block,ary_str[0].btnClose,ary_str[0].fader);
						clearTimeout(processaGarramento);
					}else setTimeout(processaGarramento,10);	
				};processaGarramento();
			}else{
				document.body.appendChild(divHidden);
				libleolar.funcoes.loadSenderAjaxIfrom(1,form,ary_str[0].url,((ary_str[0].ld_1!=null && ary_str[0].ld_1!=undefined)?ary_str[0].ld_1:''),((ary_str[0].ld_2!=null && ary_str[0].ld_2!=undefined)?ary_str[0].ld_2:ary_str[0].ld_1),(ary_str[0].led!=null?ary_str[0].led:''),ary_str[0].tpLd,ary_str[0].block,ary_str[0].btnClose,ary_str[0].fader);	
			}
			return false;
		},
		
		desativa:function(idObj,m){
			if (libleolar.variaveis.javaboyLibREst==false)return false;
			var frm  = typeof(idObj)=="string" ? libleolar.variaveis.ObjGet(idObj):idObj;
			if (m==0)frm.setAttribute("disabled","disabled");
			else frm.removeAttribute("disabled");5645
		},
		
		removeItem:function(quem){
		 quem.parentNode.removeChild(quem);
		},
		addEventItem:function(obj, evType, fn){
			if (obj.addEventListener){
				obj.addEventListener(evType, fn, false);
			}
			if (obj.attachEvent)
				obj.attachEvent("on"+evType, fn)
		},
		removeEventItem:function( obj, type, fn ) {
		  if ( obj.detachEvent ) {
			obj.detachEvent( 'on'+type, fn );
		  } else {
			obj.removeEventListener( type, fn, false ); }
		},
		abortRequisicao:function(){
			libleolar.variaveis.abortRequisicao=true;
			libleolar.variaveis.xmlhttp.abort();
			libleolar.escriores.CloseDialogo(false);
		}		
		
	},
	
	escriores:{
		mensagens:function(icon,txt){
			txt = txt==null?new String('Processando...'):txt;
			switch(icon){
				case 0:{ // error
					return '<table cellpadding="2" cellspacing="0" border="0" style="width:auto; height:auto; color:red; font-family:Verdana; font-weight:bold; font-size:11px;"><tr><td valign="top" align="center" width="1"><img src="'+libleolar.variaveis.preloadImg['notificar'].src+'" /></td><td valign="middle" align="left">'+txt+'</td></tr></table>';
				}break;
				case 1:{ // load
					return '<table cellpadding="2" cellspacing="0" border="0" style="color:#069; font-weight:bold; font-family:Verdana; font-size:11px;"><tr><td valign="top" align="center" width="1"><img src="'+libleolar.variaveis.preloadImg['load'].src+'" /></td><td valign="middle" align="left">'+txt+'</td></tr></table>';
				}break;
				case 2:{ // load
					return '<font>'+txt+'</font>';
				}break;
				case 3:{ // info
					return '<table cellpadding="2" cellspacing="0" border="0" style="color:#069; font-weight:bold; font-family:Verdana; font-size:11px;"><tr><td valign="top" align="center" width="1"><img src="'+libleolar.variaveis.preloadImg['question'].src+'" /></td><td valign="middle" align="left">'+txt+'</td></tr></table>';
				}break;
				case 4:{ // sucess
					return '<table cellpadding="2" cellspacing="0" border="0" style="color:#060; font-weight:bold; font-family:Verdana; font-size:11px;"><tr><td valign="top" align="center" width="1"><img src="'+libleolar.variaveis.preloadImg['sucess'].src+'" /></td><td valign="middle" align="left">'+txt+'</td></tr></table>';
				}break;
				case 5:{ // somente texto com img				
					return '<img src="'+libleolar.variaveis.preloadImg['load'].src+'" align="absmiddle"/> '+txt+'';
				}break;
				case 6:{ // load
					return '<table cellpadding="2" cellspacing="0" height="100px" border="0" style="color:#069; font-weight:bold; font-family:Verdana; font-size:11px; padding:10px;"><tr><td valign="middle" align="center" width="1px"><img src="'+libleolar.variaveis.preloadImg['load'].src+'" /></td><td valign="middle" align="left">'+txt+'</td></tr></table>';
				}break;
				case 7:{ // info
					return '<table cellpadding="2" cellspacing="0" border="0" style="color:#069; font-weight:bold; font-family:Verdana; font-size:11px;"><tr><td valign="top" align="center" width="1"><img src="'+libleolar.variaveis.preloadImg['information'].src+'" /></td><td valign="middle" align="left">'+txt+'</td></tr></table>';
				}break;
			}
		},
		
		btnOpcoesYesNo:function(question){
			if (libleolar.variaveis.javaboyLibREst==false)return false;
			libleolar.variaveis.escolhaUserQuestion=question;
			switch(question){
				case 0:{
					if (libleolar.variaveis.FExec==null){
						libleolar.escriores.CloseDialogo(false);
					}else{
						setTimeout(libleolar.variaveis.FExec,1);
						libleolar.variaveis.FExec=null;
						libleolar.escriores.CloseDialogo(false);
					}
				}break;
				case 1:{
					if (libleolar.variaveis.TExec==null){
						libleolar.escriores.CloseDialogo(false);
					}else{
						setTimeout(libleolar.variaveis.TExec,1);
						libleolar.variaveis.TExec=null;
						libleolar.escriores.CloseDialogo(false);
					}
				}break;
			}
		},
		
		CloseDialogo:function(){
			if (libleolar.variaveis.javaboyLibREst==false)return false;
			var objAcao = this.CloseDialogo.arguments[0]==null || this.CloseDialogo.arguments[0]==undefined || this.CloseDialogo.arguments[0]==true?true:false;
			if (objAcao==true){
				if (libleolar.variaveis.ObjTemporario!=null){
					var obj = 'ObjWiHeiProg';
					if (libleolar.variaveis.xmlhttp!=null)libleolar.variaveis.xmlhttp.abort();
					libleolar.variaveis.ObjGet(libleolar.variaveis.ObjClose).style.width='0px';
					libleolar.variaveis.ObjGet(libleolar.variaveis.ObjClose).style.height='0px';
					libleolar.variaveis.ObjGet('ObjWiHeiProg').innerHTML='';
					libleolar.funcoes.progressUpWiHe(obj,10,10,typeOpenJane,false);
					var timeClose = setInterval(function(){
						if (libleolar.variaveis.finalProcedimento==true){
							document.body.removeChild(libleolar.variaveis.ObjTemporario);
							libleolar.variaveis.ObjTemporario=null;
							clearInterval(timeClose);						
						}			
					},1);
				}
			}else{
				//if (libleolar.variaveis.closeConfirmBox==true){
					if (libleolar.variaveis.ObjGet('lightBox')!=null){
						objTempExclude = libleolar.variaveis.ObjGet('lightBox');
						pai = libleolar.variaveis.ObjGet('lightBox').parentNode;
						pai.removeChild(objTempExclude);
						if (libleolar.variaveis.xmlhttp!=null)libleolar.variaveis.xmlhttp.abort();
						libleolar.variaveis.ObjTemporario=null;
					}
				//}else{
				//	libleolar.variaveis.closeConfirmBox==true;
				//}
			}
		},
		
		caixa:function(conteudo){
			var args = libleolar.escriores.caixa.arguments;
			var timeFinally=setInterval(function(){
				if (libleolar.variaveis.imgLoadSucess==true){
					clearInterval(timeFinally);
					var ns6 = (!libleolar.variaveis.doc.all && libleolar.variaveis.doc.getElementById);
					var ie4 = (libleolar.variaveis.doc.all);
					var ns4 = (libleolar.variaveis.doc.layers);
					var bdy = libleolar.variaveis.doc.body;
					var fader = (args[2]=="undefined" || args[2]==null || args[2]==true)?true:false;
					var Fch = (args[1]=="undefined" || args[1]==null || args[1]==false)?false:true;
					var ObjProcessVar = 'ObjWiHeiProg';
					if (libleolar.variaveis.javaboyLibREst==false)return false;
					var itag = libleolar.variaveis.doc.body.getElementsByTagName('input');
					var ttag = libleolar.variaveis.doc.body.getElementsByTagName('textarea');
					for(i=0;i<itag.length;i++)itag.item(i).blur();
					for(i=0;i<ttag.length;i++)ttag.item(i).blur();
					//libleolar.variaveis.Question=false;
					var Quest= (args[3]=="undefined" || args[3]==null ||args[3]==false)?false:true;
					objTempGet = libleolar.variaveis.ObjTemporario!=null && libleolar.variaveis.ObjGet('lightBox')!=null?5:null;
					//alert(libleolar.variaveis.ObjGet(libleolar.variaveis.ObjTemporario)+' + '+objTempGet);
					if (objTempGet==null)libleolar.variaveis.ObjTemporario=null;
					//if(libleolar.variaveis.ObjClose!=null && libleolar.variaveis.ObjTemporario!=null){
					if (libleolar.variaveis.ObjTemporario!=null){
						libleolar.variaveis.ObjGet(libleolar.variaveis.ObjClose).style.width='1px';
						libleolar.variaveis.ObjGet(libleolar.variaveis.ObjClose).style.height='1px';}
					if (Quest==true){libleolar.variaveis.ObjClose='btnQuestion'; tmBtn=50;}else{libleolar.variaveis.ObjClose='btnCloseDiv';tmBtn=30}				
					if (libleolar.variaveis.ObjTemporario!=null){
						libleolar.variaveis.ObjGet(libleolar.variaveis.ObjClose).style.width='0px';
						libleolar.variaveis.ObjGet(libleolar.variaveis.ObjClose).style.height='0px';
						libleolar.variaveis.ObjGet(ObjProcessVar).innerHTML = '';
						ObjProgressTamanho = libleolar.variaveis.ObjGet(ObjProcessVar);
						ObjProgressTamanho.innerHTML=conteudo;
						//alert(ObjProgressTamanho.childNodes.length);
						//var objTamanhoReferente = ObjProgressTamanho.childNodes.length > 1 ? ObjProgressTamanho.childNodes[1] : ObjProgressTamanho.childNodes[0];
						var objTamanhoReferente = ObjProgressTamanho.childNodes[0];
						//alert(objTamanhoReferente.offsetWidth);
						if(objTamanhoReferente!=null){
							var legenda  = objTamanhoReferente.getAttribute('legendBox')!=null?objTamanhoReferente.getAttribute('legendBox'):'&nbsp;';
							libleolar.variaveis.ObjGet('legendaBox').innerHTML=legenda;
						}						
						//var ContRetorno = ObjProgressTamanho.firstChild==null?0:ObjProgressTamanho.firstChild;
						var ObjWiLegend = objTamanhoReferente.offsetWidth==undefined?3000:objTamanhoReferente.offsetWidth;
						var ObjWi = objTamanhoReferente.offsetWidth==undefined?3000:objTamanhoReferente.offsetWidth;
						var ObjHe = objTamanhoReferente.offsetHeight==undefined?3000:objTamanhoReferente.offsetHeight;
						libleolar.funcoes.progressUpWiHe(ObjProcessVar,ObjWi,ObjHe,typeOpenJane,fader);
						if (Fch==true){
							var timeCon2 = setInterval(function(){
								if (libleolar.variaveis.finalProcedimento==true){
									clearInterval(timeCon2);
									libleolar.funcoes.ativeFxAlink(true);
									//libleolar.variaveis.ObjGet(libleolar.variaveis.ObjClose).style.width = ObjWi+"px";
									//libleolar.variaveis.ObjGet(libleolar.variaveis.ObjClose).style.height = tmBtn+"px";
									libleolar.funcoes.progressUpWiHe(libleolar.variaveis.ObjClose,ObjWi,tmBtn,1,fader,false);							
								}
							},1);
						}
						return false;
					}
					libleolar.variaveis.ObjTemporario = libleolar.variaveis.doc.createElement('span');
					libleolar.variaveis.ObjTemporario.id = 'lightBox';
					var classImg=new Array();
					if (navigator.appVersion.indexOf('MSIE 6')>-1){as
						classImg[0] = 'class="bg_top"';classImg[1] = 'class="bg_left"';classImg[2] = 'class="bg_right"';classImg[3] = 'class="bg_down"';
					}else{
						classImg[0] = '';classImg[1] = '';classImg[2] = '';classImg[3] = ''; }
					var htmlJane = ('<table cellpadding="0" cellspacing="0" width="100%" height="100%" class="assdbody"><tr><td valign="middle" align="center"><table cellpadding="0" cellspacing="0" border="0" width="1%" height="1%" class="assdbody"><tr><td width="1" height="1"><img onClick="libleolar.escriores.CloseDialogo(false);" src="'+libleolar.variaveis.preloadImg['border_left_top'].src+'" /></td><td width="1" height="1" background="'+libleolar.variaveis.preloadImg['border_top'].src+'" '+classImg[0]+'></td><td width="1" height="1"><img src="'+libleolar.variaveis.preloadImg['border_right_top'].src+'" /></td></tr><tr><td width="1" height="1" background="'+libleolar.variaveis.preloadImg['border_left'].src+'" '+classImg[1]+'></td><td width="100%" height="100%" bgcolor="#DDE4E4" class="fontBox" align="center" valign="middle"><div id="'+ObjProcessVar+'" style="width:100px; height:5px; overflow:hidden;" align="left"></div><div style="width:0px; height:0px; overflow:hidden; padding-top:2px;" align="center" id="btnQuestion"><table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%"><tr><td valign="middle" align="center" width="50%"><img style="cursor:pointer;" src="'+libleolar.variaveis.preloadImg['btnSim'].src+'"  onClick="libleolar.escriores.btnOpcoesYesNo(1);"/></td><td valign="middle" align="center" width="50%"><img style="cursor:pointer;" src="'+libleolar.variaveis.preloadImg['btnNao'].src+'" onClick="libleolar.escriores.btnOpcoesYesNo(0);"/></td></tr></table></div><div style="width:0px; height:0px; overflow:hidden; padding-top:2px;" align="center" id="btnCloseDiv"><table cellpadding="0" cellspacing="0" border="0" width="100%" height="30px" class="assdbody"><tr><td valign="middle" align="left" style="color:#069; font-size:12px;" id="legendaBox"></td><td valign="middle" align="right" width="1px"><code id="btnHrefClose"><img border="0" src="'+libleolar.variaveis.preloadImg['closelabel'].src+'" style="cursor:pointer;" onclick="libleolar.escriores.CloseDialogo(false);"/></code></td></tr></table></div></td><td width="1" height="1" background="'+libleolar.variaveis.preloadImg['border_right'].src+'" '+classImg[2]+'></td></tr><tr><td width="1" height="1"><img src="'+libleolar.variaveis.preloadImg['border_left_down'].src+'" /><span id="cont"></span></td><td width="1" height="1" background="'+libleolar.variaveis.preloadImg['border_down'].src+'" '+classImg[3]+'></td><td width="1" height="1"><img src="'+libleolar.variaveis.preloadImg['border_right_down'].src+'" /></td></tr></table></td></tr></table>');
					var navigatorVersion = navigator.appVersion.indexOf('MSIE 6')>-1?'absolute':'fixed';
					var divTopCent   = libleolar.variaveis.doc.createElement('div');
					divTopCent.style.top='0px';
					divTopCent.style.left='0px';
					divTopCent.style.position=navigatorVersion;
					divTopCent.style.overflow='visible';
					divTopCent.style.width='100%';
					divTopCent.style.height='100%';
					divTopCent.align='center';
					divTopCent.id='divAllPrinc';
					var divBlack  = libleolar.variaveis.doc.createElement('div');	
					divBlack.style.position=navigatorVersion;
					divBlack.style.top='0px';
					divBlack.style.left='0px';
					divBlack.style.width='100%';
					divBlack.style.height='100%';
					divBlack.style.backgroundColor='#000';
					if(ie4)divBlack.style.filter='alpha(opacity=70)';
					if(ns6)divBlack.style.opacity='.7';
					if(ns4)divBlack.style.MozOpacity='0.7';
					divBlack.id='ClassBackPrinc';
					divTopCent.innerHTML = htmlJane;
					libleolar.variaveis.ObjTemporario.appendChild(divBlack);
					libleolar.variaveis.ObjTemporario.appendChild(divTopCent);
					bdy.appendChild(libleolar.variaveis.ObjTemporario);
					ObjProgressTamanho = libleolar.variaveis.ObjGet(ObjProcessVar);
					ObjProgressTamanho.innerHTML=conteudo;
					if(ObjProgressTamanho.firstChild!=null){
						var legenda  = ObjProgressTamanho.firstChild.getAttribute('legendBox')!=null?ObjProgressTamanho.firstChild.getAttribute('legendBox'):'&nbsp;';
						libleolar.variaveis.ObjGet('legendaBox').innerHTML=legenda; }
					var ContRetorno = ObjProgressTamanho.firstChild==null?0:ObjProgressTamanho.firstChild;
					var ObjWiLegend = ContRetorno.offsetWidth==undefined?3000:ContRetorno.offsetWidth;
					var ObjWi = ContRetorno.offsetWidth==undefined?3000:ContRetorno.offsetWidth;
					var ObjHe = ContRetorno.offsetHeight==undefined?3000:ContRetorno.offsetHeight;
					if (navigator.appVersion.indexOf('MSIE 6')>-1){ libleolar.funcoes.detectPngClass();}
					libleolar.funcoes.progressUpWiHe(ObjProcessVar,ObjWi,ObjHe,typeOpenJane,fader);
					if (Fch==true){
						var time = setInterval(function(){
							if (libleolar.variaveis.finalProcedimento==true){
								clearInterval(time);
								libleolar.funcoes.ativeFxAlink(true);
								//libleolar.variaveis.ObjGet(libleolar.variaveis.ObjClose).style.width = ObjWi+"px";
								//libleolar.variaveis.ObjGet(libleolar.variaveis.ObjClose).style.height = tmBtn+"px";
								libleolar.funcoes.progressUpWiHe(libleolar.variaveis.ObjClose,ObjWi,tmBtn,1,fader,false);
							}
						},1);
					}
					/*if(libleolar.variaveis.grupo_imagens.length>0){
						var Obj_lib = libleolar.variaveis.grupo_imagens;
						var divImagens = document.createElement('div');
						divImagens.id = 'div_grupoImagens';
						divImagens.style.position = 'fixed';
						divImagens.style.top = '0px';
						divImagens.style.left = '0px';
						divImagens.style.padding = '3px';
						divImagens.style.cssOverflow = 'hidden';
						divImagens.style.width = '10000px';
						divImagens.align = 'center';
						for(i=0;i<Obj_lib[0].urlimg.length;i++){
							img = '<div style="float:left; padding:3px;"><img id="img_grupo_'+i+'" style="border:thin solid #FFF; cursor:pointer" src="'+Obj_lib[0].urlimg[i]+'" onmouseover="this.style.width=this.width+10" onmouseout="this.style.width=this.width-10" onclick="var imgsn_gp = document.getElementById(\'div_grupoImagens\').getElementsByTagName(\'img\'); for(i=0;i<imgsn_gp.length;i++){ imgsn_gp[i].style.width = \''+Obj_lib[0].widthDefault+'px\'; imgsn_gp[i].setAttribute(\'onmouseout\',\'this.style.width=this.width-5\'); imgsn_gp[i].setAttribute(\'onmouseover\',\'this.style.width=this.width+5\');} this.style.width=this.width+10; this.onmouseout=\'\'; this.style.width=this.width+5; this.onmouseover=\'\';  libleolar.funcoes.loadSenderAjaxIfrom(0,\''+Obj_lib[0].linkImg[i]+'\',\'?\',null,null,\'abrindo&nbsp;imagem...\',1,true,false,false,false,false);" ></div>';
							divImagens.innerHTML=divImagens.innerHTML+(img);
						}
						libleolar.variaveis.ObjTemporario.appendChild(divImagens);
						filhos = document.getElementById('div_grupoImagens').getElementsByTagName('img');
						filhos[Obj_lib[0].position].style.width = filhos[Obj_lib[0].position].width+10;
						filhos[Obj_lib[0].position].onmouseout = ''
						filhos[Obj_lib[0].position].onmouseover= '';
					}*/
				}
			},100);
		}
	},
	
	__construct:function(){
		libleolar.funcoes.carregar_imagens();
	}	
}
//window.onerror = libleolar.funcoes.errorJavaScript;

var libsite = {
	
	variaveis:{
		stringValores:null,componentAdd:2
	},
	
	insertFormProposta:function(){
		//var contItens  = libleolar.variaveis.ObjGet('camposAddInsertNew').childNodes.length+1;
		var contItens = libsite.variaveis.componentAdd++;
		var newdiv = document.createElement('div');
		var espaco = document.createElement('div');
		espaco.style.height = '6px';
		newdiv.cellPadding=0;newdiv.cellSpacing=0;newdiv.style.border='thin dashed #999';newdiv.style.backgroundColor='#FFC';
		newdiv.innerHTML='<table cellpadding="2" cellspacing="2" border="0"><tr><td valign="middle" align="left" style="font-weight:bold" width="130px">Documento '+contItens+'</td><td valign="middle" align="left" width="620px"></td><td valign="middle" align="left" width="1px"><img style="cursor:pointer;" onclick="var bost = document.getElementById(\'document_'+contItens+'\'); document.getElementById(\'document_'+contItens+'\').parentNode.removeChild(bost);" src="crt.imagens/cancel.png"/></td></tr><tr><td valign="middle" align="left" style="font-weight:bold">Nome do documento</td><td valign="middle" align="left" colspan="2"><select name="nome[]" onchange="if (this.selectedIndex==10){document.getElementById(\'outro_doc_'+contItens+'\').style.display=\'inline\';}else{document.getElementById(\'outro_doc_'+contItens+'\').style.display=\'none\';}"><option value="" selected="selected"></option><option value="Proposta Frente">Proposta Frente</option><option value="Proposta Verso">Proposta Verso</option><option value="CPF">CPF</option><option value="RG">RG</option><option value="CPF/RG">CPF/RG</option><option value="Declaracao de Renda Formal">Declara&ccedil;&atilde;o de Renda Formal</option><option value="Carteira de Trabalho">Carteira de Trabalho</option><option value="Comprovante de Renda">Comprovante de Renda</option><option value="Comprovante Endereco">Comprovante Endere&ccedil;o</option><option value="Outros">Outros</option></select> <span id="outro_doc_'+contItens+'" style="display:none;"><input type="text" style="width:150px" name="outros[]" maxlength="30" />Obs: <input type="text" style="width:200px" name="outros_obs[]" maxlength="255" /></span></td></tr><tr><td valign="middle" align="left" style="font-weight:bold">Scanner</td><td valign="middle" align="left" colspan="2"><input name="file_post[]" type="file" onChange="libleolar.funcoes.insertImg(this,\'imgcreate_'+contItens+'\',Array(\'jpg\',\'jpeg\'),60);"/><br /><font id="imgcreate_'+contItens+'"></font><br /><small style="color:#00F">Somente JPG</small></td></tr></table>';
		newdiv.setAttribute('id','document_'+contItens);
		document.getElementById('camposAddInsertNew').appendChild(espaco);
		document.getElementById('camposAddInsertNew').appendChild(newdiv);
	},
		
	timeGet:function(){
		data = new Date();
		hora = data.getYear()+'-'+data.getMonth()+'-'+data.getDay()+' '+data.getHours()+':'+data.getMinutes()+':'+data.getSeconds();
		return hora;
	},
	
	lgoemailGurpo:function(){
		libleolar.funcoes.loadSenderAjaxIfrom(0,'frames=true&return=index.php&email='+libleolar.variaveis.ObjGet('user').value+'&password='+libleolar.variaveis.ObjGet('pass').value,'webmail/process.php','loadProcess','loadProcess','Verificando login e senha...',1,false,false,false); libleolar.variaveis.ObjGet('pass').value=''; libleolar.variaveis.ObjGet('user').select();
	},
	
	selectItem:function(obj){

		switch(obj.selectedIndex){
			case 2:{
				libleolar.variaveis.ObjGet('cursandoLabel').style.display='inline';	
			}break;
			case 3:{
				libleolar.variaveis.ObjGet('curso').style.display='inline';	
				libleolar.variaveis.ObjGet('cursandoLabel').style.display='none';
				libleolar.variaveis.ObjGet('labelDataCursoConclusao').innerHTML='Data de conclusão';
			}break;
			case 4:{
				libleolar.variaveis.ObjGet('curso').style.display='inline';
				libleolar.variaveis.ObjGet('cursandoLabel').style.display='inline';	
			}break;
			default:{
				libleolar.variaveis.ObjGet('cursandoLabel').style.display='none';	
				libleolar.variaveis.ObjGet('curso').style.display='none';
				libleolar.variaveis.ObjGet('labelDataCursoConclusao').innerHTML='Data de conclusão';
			}
		}
	},
	
	loadUrl:function(){
		var hrefGet = document.location.href;
		if (hrefGet.indexOf('#')>=0){
			hrefGet = hrefGet.substr(hrefGet.indexOf('#'),hrefGet.length);
		}else hrefGet = '#Main:home';
		var timeFinallyRodcSite=setInterval(function(){
			if (libleolar.variaveis.imgLoadSucess==true){
				clearInterval(timeFinallyRodcSite);			
				libleolar.funcoes.loadSenderAjaxIfrom(0,'keyLan='+MD5('javaboy')+'&documentLoad='+(hrefGet),'leo/','loadItensOpc','tableLoadItens','Carregando...',1,false,false,false);
			}
		},100);
	},
	
	//loadItens:function(obj,wAt,hAt,obj2,wAt2,hAt2,fader,scrollYes){
	loadItens:function(obj,wAt,hAt,methd,fader,scrollYes){	
		process = this.loadItens.arguments[8]==undefined || this.loadItens.arguments[8]==1?1:this.loadItens.arguments[8];
		if (obj==null || obj=='')return;
		var objs = obj.toString();
		objs  = objs.indexOf(',')>=0?obj.split(','):obj;
		var wAts = typeof(wAt)=='string'?wAt.toString():wAt;
		wAts  = typeof(wAts)=='string' && wAts.indexOf(',')>=0?wAt.split(','):wAt;
		var hAts = typeof(wAt)=='string'?hAt.toString():hAt;
		hAts  = typeof(hAts)=='string' && hAts.indexOf(',')>=0?hAt.split(','):hAt;
		var contExeWiHe=function(objAt,wAtAt,hAtAt,meth,fade,scrolly){
			hAtAt = typeof(hAtAt)=='number'?parseInt(hAtAt):hAtAt;
			wAtAt = typeof(wAtAt)=='number'?parseInt(wAtAt):wAtAt;
			libleolar.funcoes.progressUpWiHe(objAt,wAtAt,hAtAt,meth,fade,scrolly);
			if (typeof(objs)=='object'){objs.shift();}
			if (typeof(wAts)=='object' && wAts!=null){wAts.shift();}
			if (typeof(hAts)=='object' && hAts!=null){hAts.shift();}
		};
		var timeProcessCont = setInterval(function(){
			if (libleolar.variaveis.finalProcedimento==true || libleolar.variaveis.finalProcedimento==null){
				var o = typeof(hAts)=='object'?objs[0]:objs;
				var w = wAts==null || typeof(wAts)=='number' || typeof(wAts)=='string'?wAts:wAts[0];
				var h = hAts==null || typeof(hAts)=='number' || typeof(hAts)=='string'?hAts:hAts[0];
				if (objs.length==0){
					clearInterval(timeProcessCont);
				}else contExeWiHe(o,w,h,methd,fader,scrollYes);
			}		
		},100);
	},
	
	selectCkeckAll:function(obj,objInselectCkeckd){
		var ObjPai = document.getElementById(obj).getElementsByTagName('input');
		for(i=0;i<ObjPai.length;i++){
			if (objInselectCkeckd.checked)ObjPai.item(i).checked = true; else ObjPai.item(i).checked=false;
		}
	},
	
	sendProcess:function(){
		libleolar.funcoes.progressUpWiHe('loadProcessExibir',650,36,1,false,false);
		libleolar.funcoes.loadSenderAjaxIfrom(0,libleolar.variaveis.StringUrlSender+'&Array='+libsite.variaveis.stringValores,'process/','loadProcessExibirDados','loadProcessExibirDados',libleolar.variaveis.msgSendAjax+'&nbsp;('+libsite.variaveis.stringValores.length+')&nbsp;item&nbsp;processando,&nbsp;aguarde...!',1,false,false,true);
		libsite.variaveis.stringValores=null;
	},
	sendProcessBoxOpen:function(){
		libleolar.funcoes.loadSenderAjaxIfrom(0,libleolar.variaveis.StringUrlSender+'&Array='+libsite.variaveis.stringValores,'process/','loadProcessExibirDados','loadProcessExibirDados',libleolar.variaveis.msgSendAjax+'&nbsp;('+libsite.variaveis.stringValores.length+')&nbsp;item&nbsp;processando,&nbsp;aguarde...!',1,true,false,true);
		libsite.variaveis.stringValores=null;
	},
	
	senderLogin:function(){
		var lib = libleolar.variaveis;
		var ky = libleolar.variaveis.ObjGet('user').value;
		var ps = libleolar.variaveis.ObjGet('pass').value;
		if (ky==''){libleolar.escriores.caixa(libleolar.escriores.mensagens(0,'Usu&aacute;rio&nbsp;esta&nbsp;em&nbsp;branco!'),true);return false;}
		if (ps==''){libleolar.escriores.caixa(libleolar.escriores.mensagens(0,'Senha&nbsp;esta&nbsp;em&nbsp;branco!'),true); return false;}
		libleolar.funcoes.loadSenderAjaxIfrom(0,'keyLan='+lib.ObjGet('hashUserIdentif').value+'&fpost='+MD5('loginUser')+'&uPl='+(lib.ObjGet('user').value)+'&pP='+(lib.ObjGet('pass').value)+'&ipU='+lib.ObjGet('ipUser').value+'&htU='+lib.ObjGet('hostUser').value+'&iSv='+lib.ObjGet('ipServ').value+'&hSrb='+lib.ObjGet('hostServ').value,'process/','loadProcess','loadProcess','Autenticando,&nbsp;aguarde...!',1,true,false);
		lib.ObjGet('user').value='';lib.ObjGet('pass').value='';
	},
	focusObj:function(){
		libleolar.variaveis.ObjGet('pass').focus();
	},
	
	processaRetorno:function(retorno){
		//alert(retorno);
		if (retorno.indexOf('toolbar.php?folder=INBOX&amp;page=')>-1){
			libleolar.variaveis.filaAjax[0][2].innerHTML='';
			libleolar.funcoes.abrirJan(0,'webmail/main.php?folder=INBOX','webmailLeolar','fullscreen=no,toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,top=0,left=0');
			libleolar.variaveis.filaAjax.shift();
			return true;
		}
		if (retorno.indexOf('70e5193a839269e3b6a004d9aa475c17e129cba9 ')>-1){
			libleolar.variaveis.filaAjax[0][2].innerHTML=libleolar.escriores.mensagens(0,'Usuário ou senha são inválidos!');
			libleolar.variaveis.filaAjax.shift();
			return true;
		}
		if(retorno.indexOf('Parse error')>-1){
			libleolar.escriores.caixa('<div legendBox="Error de programação PHP" style="width:10000px; height:10000px;">'+retorno+'</div>',true);
			libleolar.variaveis.filaAjax.shift();
			libleolar.variaveis.filaAjax.length=0;
			return true;
		}
		return false;
	},
	
	selectItensSend:function(){
		//{objSelect:'homeS',txt:'txtExibir',quantItem:1,sendUrl:'a=34534&asdasd=345',bloqueScrean:true,icoProcess:1
		//,sendUrlFile:'process/',loadItem:'',loadReturn:'',metodo:0});
		var args = arguments[0]!=undefined?arguments[0]:null;
		if (args==null){alert('Error no 1 argumento!');return;}
		var paiSelect = document.getElementById(args.objSelect).getElementsByTagName('input');
		var metodo = args.metodo!=undefined?args.metodo:0;
		var loadItem = args.loadItem!=undefined?args.loadItem:null;
		var loadReturn = args.loadReturn!=undefined?args.loadReturn:null;
		var itemCheckd=Array();
		for(i=0;i<paiSelect.length;i++){
			if (paiSelect.item(i).checked==true && paiSelect.item(i).getAttribute('type')=='checkbox' && paiSelect.item(i).getAttribute('name')!=undefined){
				itemCheckd.push(paiSelect.item(i).value); } }
		if (itemCheckd.length==0){
			libleolar.funcoes.questoes({txtQuest:'Selecione pelo menos um item!',ExibirIconMensagem:0,tipoBtnExibir:0});return;}
		if (args.quantItem!=null && itemCheckd.length>args.quantItem){
			libleolar.funcoes.questoes({txtQuest:'Selecione no m&aacute;ximo '+args.quantItem+' item!',ExibirIconMensagem:0,tipoBtnExibir:0});return;}
		libleolar.funcoes.loadSenderAjaxIfrom(metodo,args.sendUrl+'&ar='+itemCheckd,args.sendUrlFile,loadItem,loadReturn,args.txt.replace(/ /g,'&nbsp;'),args.icoProcess,args.bloqueScrean,false,true);
		
	},
	
	selectItens:function(obj,msg,msgSender,stringSd,FExec,TExec){
		var contSelect = this.selectItens.arguments[8]==null || this.selectItens.arguments[8]==undefined ?0:this.selectItens.arguments[8];
		var pergunta = this.selectItens.arguments[7]==null || this.selectItens.arguments[7]==undefined ?true:this.selectItens.arguments[7];
		var bloq = this.selectItens.arguments[6]==null || this.selectItens.arguments[6]==undefined ?true:this.selectItens.arguments[6];
		var ObjPai = document.getElementById(obj).getElementsByTagName('input');	
		libsite.variaveis.stringValores = new Array();
		for(i=1;i<ObjPai.length;i++){
			if (ObjPai.item(i).checked==true){
				libsite.variaveis.stringValores.unshift(ObjPai.item(i).value);
			}
		}		
		if (contSelect!=0 && libsite.variaveis.stringValores.length > contSelect){
			libleolar.escriores.caixa(libleolar.escriores.mensagens(0,'Selecione&nbsp;no&nbsp;maximo&nbsp;'+contSelect+'&nbsp;item(ns)'),true,true,false);
			return false;
		}
		if (libsite.variaveis.stringValores.length==0){
			libleolar.escriores.caixa(libleolar.escriores.mensagens(0,'Selecione&nbsp;pelo&nbsp;menos&nbsp;um&nbsp;item!'),true,true,false);
		}else{
			libleolar.variaveis.StringUrlSender=stringSd;
			libleolar.variaveis.msgSendAjax = msgSender==''?'Processando':msgSender;
			libleolar.variaveis.FExec=FExec;
			libleolar.variaveis.TExec=TExec;			
			libleolar.variaveis.bloqueBlackBox=bloq;
			if (pergunta==true){
				libleolar.escriores.caixa(libleolar.escriores.mensagens(3,msg),true,true,true);
			}else{
				libleolar.funcoes.loadSenderAjaxIfrom(0,stringSd+'&Array='+libsite.variaveis.stringValores,'process/','loadProcessExibirDados','loadProcessExibirDados','Abrindo&nbsp;formul&aacute;rio,&nbsp;aguarde...!',1,true,false,true);
			}
		}
	}

}
var libvar = libleolar.variaveis;
var libfun = libleolar.funcoes;




