var typeOpenJane = 0;
var arVersion = navigator.appVersion.split("MSIE");
var version = parseFloat(arVersion[1]);
var varTimeSend=null;
var damsh=false;

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,ObjRetornAjax:null,ativeModeFxAdvance:false,loadTimeoutAtive:true
	},
	
	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:{
		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();
			if (idFileExt!='jpeg' && idFileExt!='gif' && idFileExt!='png' && idFileExt!='jpg'){alert('Tipo de arquivo invalido!');	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 = 'Imagem: <b>'+ImgName+'</b>';// - resol.: <b>'+tmW+'x'+tmH+'</b>';
			if(string.length > 25){
				string = string.slice(0,20)+'.../'+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;
			var objThis = document.getElementById(obj);
			var mask = this.hinteTexto.arguments[1]==true?true:false;
			var maskFormt = this.hinteTexto.arguments[2]==null?'':this.hinteTexto.arguments[2];
			if (objThis.getAttribute('maxLength')!=null || objThis.getAttribute('maxLength')!=undefined){
				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(){
					if (mask==true){libleolar.funcoes.formatar(objThis,maskFormt);	}
					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(Obj,ObjOpen,status,wiIr,heIr,wiVt,heVt){
			if (libleolar.variaveis.javaboyLibREst==false)return false;
			var retornItemInner = libleolar.funcoes.mais_menos.arguments[7]==undefined?false:libleolar.funcoes.mais_menos.arguments[7];
			var fade = libleolar.funcoes.mais_menos.arguments[8]==undefined?false:libleolar.funcoes.mais_menos.arguments[8];
			if (status==true){
				if (retornItemInner)Obj.innerHTML = Obj.innerHTML; else Obj.innerHTML = '[-]';
				libleolar.funcoes.progressUpWiHe(ObjOpen,wiIr,heIr,1,fade,true);
				Obj.onclick=function(){
					libleolar.funcoes.mais_menos(Obj,ObjOpen,false,wiIr,heIr,wiVt,heVt,retornItemInner,fade);
				};
			}else{
				if (retornItemInner)Obj.innerHTML = Obj.innerHTML; else Obj.innerHTML = '[+]';
				libleolar.funcoes.progressUpWiHe(ObjOpen,wiVt,heVt,1,fade,true);
				Obj.onclick=function(){ 
					libleolar.funcoes.mais_menos(Obj,ObjOpen,true,wiIr,heIr,wiVt,heVt,retornItemInner,fade);
				};
			}
			
		},
		
		abrirJan:function(fullShow,theURL,winName,features){
			var wiJan = window.screen.availWidth;
			var heJan = window.screen.availHeight;
			var mineJane;
			switch(fullShow){
				case 0:{
					mineJane = window.open(theURL,winName,features+',width='+wiJan+',height='+heJan);
					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);
				}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);			
					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);
				}break;
			}
		},
		
		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){
			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');
			//var fxstyle = document.getElementById(obj).getAttribute('fxstyle');
			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);
			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:false;
			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;
			lib.ObjGet(obj).style.overflowX='hidden'; 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';}
			lib.ObjGet(obj).style.border='none';
			wAt = wAt==null?libleolar.variaveis.ObjGet(obj).offsetWidth:wAt;
			hAt = hAt==null?libleolar.variaveis.ObjGet(obj).offsetHeight:hAt;
			wAt=parseInt(wAt);hAt=parseInt(hAt)
			if (libleolar.variaveis.caixaBoxNoScroll){
				if (wAt>ObjWiMax){wAt = ObjWiMax; hAt=hAt+15; scrollQust=true; AtiveScrollX=true;}else wAt=wAt;
				if (hAt>ObjHeMax){hAt = ObjHeMax; wAt=wAt+15; scrollQust=true; AtiveScrollY=true; }else hAt=hAt;	
			}
			if (libleolar.variaveis.ativeModeFxAdvance==false){
				libleolar.variaveis.finalProcedimento=false;
				var proximo=null;
				lib.ObjGet(obj).style.width = wAt+"px";
				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;
				}; verificaFim();
			}else{
				wAt=parseInt(wAt);hAt=parseInt(hAt); 
				clearInterval(lib.time); lib.time=0;
				switch(args){
					case 1:{		
						processProximo=true;
						var processWidth = function(){
							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 libleolar.variaveis.finalProcedimento=true;
						};
						var processHeight = function(){
							if (lib.ObjGet(obj)!=null){
								processProximo=false; 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 processProximo=50;
							}else libleolar.variaveis.finalProcedimento=true;
						};
						var execFader = function(){
							if (lib.ObjGet(obj)!=null){
								fader=10; 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 processProximo=100;
							}else libleolar.variaveis.finalProcedimento=true;
						};
						var verificaFim = function(){
							if (lib.ObjGet(obj)!=null){
								if ((ObjHe<hAt || ObjHe>hAt) && ObjWi==wAt && processProximo==true)processHeight();
								if (ObjWi==wAt && ObjHe==hAt && processProximo==50 && fader==true)execFader();
								if (ObjWi==wAt && ObjHe==hAt && (processProximo==100 || fader==false)){
									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 setTimeout(verificaFim,1);
							}else libleolar.variaveis.finalProcedimento=true;
						}; verificaFim();
						if (ObjWi<wAt || ObjWi>wAt){processWidth();}
					}break;
					default:{
						var processWidth = function(){
							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 libleolar.variaveis.finalProcedimento=true;
						};
						var processHeight = function(){
							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 libleolar.variaveis.finalProcedimento=true;
						};
						var execFader = function(){
							if (lib.ObjGet(obj)!=null){
								fader=10; 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 fader=100;
							}else libleolar.variaveis.finalProcedimento=true;
						};
						var verificaFim = function(){
							if (lib.ObjGet(obj)!=null){
								if (ObjWi==wAt && ObjHe==hAt && fader==true)execFader();
								if (ObjWi==wAt && ObjHe==hAt && (fader==100 || fader==false)){
									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 setTimeout(verificaFim,1);
							}else libleolar.variaveis.finalProcedimento=true;
						}; verificaFim();
						if (ObjWi<wAt || ObjWi>wAt){processWidth();}
						if (ObjHe<hAt || ObjHe>hAt){processHeight();}
					}
				}
			}
		},
		
		loadSenderAjaxIfrom:function(modSend,StringSend,fileRequest,ObjLoad,ObjRetorn,MsgExb,IconMsg,bloqueLoad,btnClose,fader){				
			var ObjThis = this.loadSenderAjaxIfrom.arguments;
			MsgExb = MsgExb==null || MsgExb==''?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;
			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...');	
					libleolar.variaveis.filaAjax.push([StringSend,fileRequest,ObjRetornThis,StringSend.substring(StringSend.length-10,StringSend.length)+'_idLoadItemAjaxSend',objLoadThis,IconMsg,MsgExb,bloqueLoad,btnClose,fader]);
					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);
						if (libleolar.variaveis.loadTimeoutAtive==true){
							libleolar.variaveis.TimeResetUser=setInterval(function(){		   						   
								if (timeContProcess<30){
									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;
								}
							},3000);
						}else{ libleolar.variaveis.TimeResetUser = null; }
						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.ObjTemporario==null && proximo[7]==false)libleolar.variaveis.finalProcedimento=true;
									if (libleolar.variaveis.finalProcedimento==true && libleolar.variaveis.imgLoadSucess==true){
										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[2].id!=proximo[4].id ? 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:{
												eval(retorno); libleolar.variaveis.filaAjax.shift();
												if (libleolar.variaveis.filaAjax.length>0)libleolar.variaveis.time = setTimeout(funcProcessFile,100);
											}break;
											default:{
												(proximo[2]!=null ? function(){ proximo[2].innerHTML=retorno }() : false );
												(proximo[2].id!=proximo[4].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);
														}
													
													},10);
												if (libleolar.variaveis.filaAjax.length>0) libleolar.variaveis.time = setTimeout(funcProcessFile,100);
											}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.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 1o parâmetro não 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;
					}
					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;");
					StringSend.parentNode.appendChild(iframe);
					window.frames['JOHNY-temp'].name="JOHNY-temp";
					var contTimeSend=0;
					if (libleolar.variaveis.loadTimeoutAtive==true){
						var varTimeSend=setInterval(function(){
							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{ var varTimeSend = null; }
					var carregou = function() { 
						libleolar.funcoes.removeEventItem(libleolar.variaveis.ObjGet('JOHNY-temp'),"load", carregou); 
						clearInterval(varTimeSend);
						var cross = "javascript: ";
						cross += "window.parent.document.getElementById(window.parent.libleolar.variaveis.ObjRetornAjax).innerHTML = document.body.innerHTML; clearInterval(window.parent.varTimeSend); void(0);";
						libleolar.variaveis.ObjGet('JOHNY-temp').src = cross;   
						setTimeout(function(){ libleolar.funcoes.removeItem(libleolar.variaveis.ObjGet('JOHNY-temp'))}, 250);	
					};
					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");
					objLoadThis.innerHTML = libleolar.escriores.mensagens(IconMsg,MsgExb);
					StringSend.submit();			
				}break;
			}
		},
		
		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");
		},
		
		removeItem:function(quem){
		 quem.parentNode.removeChild(quem);
		},
		addEventItem:function(obj, evType, fn){
			if (obj.addEventListener)
				obj.addEventListener(evType, fn, true)
			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 ); }
		}
	},
	
	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:{ // limpo
					return txt;
				}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:{ // info
					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;
			}
		},
		
		btnOpcoesYesNo:function(question){
			if (libleolar.variaveis.javaboyLibREst==false)return false;
			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){
						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 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="class.imagens/btnSim.png"  onClick="libleolar.escriores.btnOpcoesYesNo(1);"/></td><td valign="middle" align="center" width="50%"><img style="cursor:pointer;" src="class.imagens/btnNao.png" 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=50)';
					if(ns6)divBlack.style.opacity='.5';
					if(ns4)divBlack.style.MozOpacity='0.5';
					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);
					}
				}
			},100);
		}
	},
	
	__construct:function(){
		libleolar.funcoes.carregar_imagens();
	}	
}
//window.onerror = libleolar.funcoes.errorJavaScript;

var libsite = {
	
	variaveis:{
		stringValores:null
	},
	
	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;
	},
	
	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;pelomenos&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;



