
	//====================================================
	// flash active
	//====================================================
	
	if(typeof deconcept=="undefined"){var deconcept=new Object();}
	if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}
	if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}
	deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){
	if(!document.getElementById){return;}
	this.DETECT_KEY=_b?_b:"detectflash";
	this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);
	this.params=new Object();
	this.variables=new Object();
	this.attributes=new Array();
	if(_1){this.setAttribute("swf",_1);}
	if(id){this.setAttribute("id",id);}
	if(w){this.setAttribute("width",w);}
	if(h){this.setAttribute("height",h);}
	if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}
	this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();
	if(c){this.addParam("bgcolor",c);}
	var q=_8?_8:"high";
	this.addParam("quality",q);
	this.setAttribute("useExpressInstall",_7);
	this.setAttribute("doExpressInstall",false);
	var _d=(_9)?_9:window.location;
	this.setAttribute("xiRedirectUrl",_d);
	this.setAttribute("redirectUrl","");
	if(_a){this.setAttribute("redirectUrl",_a);}};
	deconcept.SWFObject.prototype={setAttribute:function(_e,_f){
	this.attributes[_e]=_f;
	},getAttribute:function(_10){
	return this.attributes[_10];
	},addParam:function(_11,_12){
	this.params[_11]=_12;
	},getParams:function(){
	return this.params;
	},addVariable:function(_13,_14){
	this.variables[_13]=_14;
	},getVariable:function(_15){
	return this.variables[_15];
	},getVariables:function(){
	return this.variables;
	},getVariablePairs:function(){
	var _16=new Array();
	var key;
	var _18=this.getVariables();
	for(key in _18){_16.push(key+"="+_18[key]);}
	return _16;
	},getSWFHTML:function(){
	var _19="";
	if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){
	if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");}
	_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";
	_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";
	var _1a=this.getParams();
	for(var key in _1a){_19+=key+"=\""+_1a[key]+"\" ";}
	var _1c=this.getVariablePairs().join("&");
	if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}
	_19+="/>";
	}else{if(this.getAttribute("doExpressInstall")){
	this.addVariable("MMplayerType","ActiveX");}
	_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";
	_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";
	var _1d=this.getParams();
	for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}
	var _1f=this.getVariablePairs().join("&");
	if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}
	_19+="</object>";}
	return _19;
	},write:function(_20){
	if(this.getAttribute("useExpressInstall")){
	var _21=new deconcept.PlayerVersion([6,0,65]);
	if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){
	this.setAttribute("doExpressInstall",true);
	this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));
	document.title=document.title.slice(0,47)+" - Flash Player Installation";
	this.addVariable("MMdoctitle",document.title);}}
	if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){
	var n=(typeof _20=="string")?document.getElementById(_20):_20;
	n.innerHTML=this.getSWFHTML();
	return true;
	}else{
	if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}
	return false;}};
	deconcept.SWFObjectUtil.getPlayerVersion=function(){
	var _23=new deconcept.PlayerVersion([0,0,0]);
	if(navigator.plugins&&navigator.mimeTypes.length){
	var x=navigator.plugins["Shockwave Flash"];
	if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}
	}else{
	try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}
	catch(e){try{
	var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
	_23=new deconcept.PlayerVersion([6,0,21]);
	axo.AllowScriptAccess="always";}
	catch(e){
	if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}
	catch(e){}}
	if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}
	return _23;};
	deconcept.PlayerVersion=function(_27){
	this.major=_27[0]!=null?parseInt(_27[0]):0;
	this.minor=_27[1]!=null?parseInt(_27[1]):0;
	this.rev=_27[2]!=null?parseInt(_27[2]):0;
	};
	deconcept.PlayerVersion.prototype.versionIsValid=function(fv){
	if(this.major<fv.major){return false;}
	if(this.major>fv.major){return true;}
	if(this.minor<fv.minor){return false;}
	if(this.minor>fv.minor){return true;}
	if(this.rev<fv.rev){return false;}
	return true;
	};
	deconcept.util={getRequestParameter:function(_29){
	var q=document.location.search||document.location.hash;
	if(q){
	var _2b=q.substring(1).split("&");
	for(var i=0;i<_2b.length;i++){
	if(_2b[i].substring(0,_2b[i].indexOf("="))==_29){
	return _2b[i].substring((_2b[i].indexOf("=")+1));}}}
	return "";}};
	deconcept.SWFObjectUtil.cleanupSWFs=function(){
	var _2d=document.getElementsByTagName("OBJECT");
	for(var i=0;i<_2d.length;i++){
	_2d[i].style.display="none";
	for(var x in _2d[i]){if(typeof _2d[i][x]=="function"){_2d[i][x]=null;}}}};
	if(typeof window.onunload=="function"){
	var oldunload=window.onunload;
	window.onunload=function(){
	deconcept.SWFObjectUtil.cleanupSWFs();
	oldunload();};
	}else{window.onunload=deconcept.SWFObjectUtil.cleanupSWFs;}
	if(Array.prototype.push==null){
	Array.prototype.push=function(_30){
	this[this.length]=_30;
	return this.length;};}
	
	var getQueryParamValue=deconcept.util.getRequestParameter;
	var FlashObject=deconcept.SWFObject; // for legacy support
	var SWFObject=deconcept.SWFObject;

	//====================================================
	// flash active
	//====================================================
	
	function getElem(id){
		if (document.getElementById(id)){
			return document.getElementById(id);
		}else{
			return false;	
		}
	}
	
	function loading(pagina,param,visible){
		var pagina = pagina + '?' + param;
		if (getElem('ifrRotinas')){
			getElem('ifrRotinas').src = pagina;
			if (visible == true){
				getElem('ifrRotinas').style.display = '';	
			}else{
				getElem('ifrRotinas').style.display = 'none';
			}
		}else{
			var ifr = document.createElement('iframe');
			ifr.id = 'ifrRotinas';
			ifr.style.width = '100%';
			ifr.style.height = '200px';
			if (visible == true){
				ifr.style.display = '';
			}else{
				ifr.style.display = 'none';
			}
			ifr.src = pagina;
			document.body.appendChild(ifr);
		}
	}

	function loadingReturn(elemento,tipo){
		if (tipo == 'FORM'){
			with(parent){
				if (getElem(elemento)){
					var splitName = elemento.split('_');
					alert(splitName[0] + ' já cadastrado.');
					getElem(elemento).value = '';
					getElem(elemento).focus();	
				}
			}
		}else{
			if (getElem(elemento)){
				var txt = getElem(elemento).innerHTML;
			}else{
				var txt = 'Elemento inexistente...';
			}
			with(parent){
				if (getElem(elemento)){
					getElem(elemento).innerHTML = txt;
				}
			}
			if (elemento != ''){
//				if (getElem(elemento)){
//					getElem(elemento).innerHTML = '';
//				}
			}
		}
	}
	
	function esqueci(id){
		if (getElem(id)){
			if (getElem(id).value != ''){
				if (getElem('ifrEsqueci')){
					getElem('ifrEsqueci').src = 'esqueci.asp?email=' + getElem(id).value;
				}else{
					var ifr = document.createElement('iframe');
					ifr.id = 'ifrEsqueci';
					ifr.src = 'esqueci.asp?email=' + getElem(id).value;
					ifr.style.display = 'none';
					document.body.appendChild(ifr);
				}
			}else{
				alert('E-mail não informado.');	
				getElem('E-mail Login_EML1').focus();
			}
		}
	}
	
	function informacoes(id){
		if (getElem('qtd_cursos')){
			var fx = parseInt(getElem('qtd_cursos').value);	
		}else{
			var fx = 20;	
		}
		for (x=0;x<fx;x++){
			if (getElem('curso_' + x)){
				if (parseInt(id) == x){
					if (getElem('div_' + id).style.display == 'none'){
						getElem('div_' + id).style.display = '';
						document.location = '#ancora_div_' + id;
					}else{
						getElem('div_' + id).style.display = 'none';
					}
				}else{
					getElem('div_' + x).style.display = 'none';
				}
			}
		}
	}
	
	function adicionar(creditos){
		var pagina = 'carrinho.asp?rot=add&creditos=' + creditos;
		window.open(pagina,'ifrRotinas');
	}
	
	function showhide(id){
		if (id == 'carrinho'){
			if (document.getElementById('meus_videos')){
				document.getElementById('meus_videos').style.display = 'none';
			}	
		}else if(id == 'meus_videos'){
			if (document.getElementById('carrinho')){
				document.getElementById('carrinho').style.display = 'none';
			}	
		}
		if (getElem(id)){
			if (getElem(id).style.display == 'none'){
				getElem(id).style.display = '';	
			}else{
				getElem(id).style.display = 'none';	
			}
		}	
	}
	
	function modificou(info){
		if (info != ''){
			getElem('div_oculta_botao').style.display = 'none';	
			getElem('div_oculta_botao_finalizar').style.display = '';	
		}
	}
	
	function atualizar_valores(){
		var creditos = getElem('Créditos_NUM1').value;
		document.location = 'carrinho-rotinas.asp?rot=upd&creditos=' + creditos + '&elemento=div_oculta_botao';
	}
	
	function formapagamento(){
		if (getElem('formapagamento')){
			getElem('td_atualizar_valores').style.display = 'none';
			getElem('td_comprar_mais').style.display = 'none';
			getElem('formapagamento').style.display = '';
			getElem('Créditos_NUM1').disabled = 'disabled';
			if (getElem('bto_finalizar')){
				getElem('div_oculta_botao_finalizar').style.display = '';
				getElem('bto_finalizar').innerHTML = '&raquo; Finalizar compra';
				getElem('bto_finalizar').onclick = function(){Enviar('form_carrinho');};
			}
		}
	}
	
	function finalizar(forma)
	{
		if (forma != '')
		{
			forma = parseInt(forma);
			if (getElem('div_parcelamento'))
			{
				if (forma == 3 || forma == 5)
				{
					getElem('div_parcelamento').style.display = '';	
				}
				else
				{
					getElem('div_parcelamento').style.display = 'none';
					
					// atualiza os juros
					try 
	                {
	                    var colecaoItens = document.getElementsByName('valorfinal');
	                    if (colecaoItens)
	                    {
	                        var item = colecaoItens[0];
        	                
        	                document.getElementById('TDValorTotal').innerHTML = item.value;
	                    }
	                    getElem('hdnJuros').value = getElem('hdnJurosAVista').value;
	                }
	                catch(erro){}
				}
			}
			getElem('div_oculta_botao_finalizar').style.display = 'none';
		}
		else
		{
			getElem('div_oculta_botao_finalizar').style.display = '';
		}
	}
	
	function materias(pagina,param,elemento){
		if (getElem(elemento)){
			getElem(elemento).innerHTML = 'Aguarde...';	
			param = param + '&elemento=' + elemento;
			loading(pagina,param,false);
		}
	}

	function videos(pagina,param,elemento){
		if (getElem(elemento)){
			getElem(elemento).innerHTML = 'Aguarde...';	
			param = param + '&elemento=' + elemento;
			loading(pagina,param,false);
		}
	}
	
	function fncCalcularCreditos(id){
		if (getElem(id)){
			var qtdCreditos = getElem(id).value;
			if (getElem(id).checked == true){
				loading('carrinho-rotinas.asp','rot=add&creditos=' + qtdCreditos + '&elemento=status',false);
			}else{
				loading('carrinho-rotinas.asp','rot=del&creditos=' + qtdCreditos + '&elemento=status',false);
			}	
		}
	}
	
	function fncSubtrairCreditos(creditos){
		loading('carrinho-rotinas.asp','rot=del&creditos=' + creditos + '&elemento=status',false);
	}

	function fncSomarCreditos(creditos){
		loading('carrinho-rotinas.asp','rot=add&creditos=' + creditos + '&elemento=status',false);
	}
	
	function matricular(pagina,curso,disc,materia,creditos){
		var mensagem = '';
		if (parseInt(creditos) > 0){
			mensagem = 'Será debitado ' + creditos + ' créditos. Confirmar matrícula?';
		}else{
			mensagem = 'Confirmar matrícula?';
		}
		if (confirm(mensagem)){
			document.location = pagina + '?idcurso=' + curso + '&iddic=' + disc + '&idmateria=' + materia + '&creditos=' + creditos;	
		}	
	}
	
	function fecharConteudosTema(id,comp){
		if (getElem(id)){
			if (getElem('div' + comp)){
				getElem('div' + comp).innerHTML = '';
			}
			getElem(id).style.display = 'none';
		}
	}
	
	function validar(elemento,materia,video,matricular){
		var chave = getElem('chave').value;
		if (chave != ''){
			loading('videos.asp','elemento=' + elemento + '&idmateria=' + materia + '&idvideo=' + video + '&matricular=' + matricular + '&chave=' + chave,false);
		}else{
			alert('Chave não informada.');
		}
	}
	
	function AcompanhaTema(id){
		if (getElem(id)){
			if (getElem(id).style.display == 'none'){
				getElem(id).style.display = '';
			}else{
				getElem(id).style.display = 'none';
			}
		}
	}
	
	function thickBoxPopup(){
		tb_show("Atenção!","popup-bloqueado.asp?TB_iframe=true&height=260&width=770'",false);
		//document.location.href='popup-bloqueado.asp?TB_iframe=true&height=530&width=700';
		//document.location.href.class='thickbox' ;
	} 
	
	function Boleto(pedido) {
		remote 					= window.open("","remotewin","'toolbar=no,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=no,copyhistory=no,width=720,height=500'");
		
		if(remote!=null)
		{
			remote.location.href 	= "boleto-bb.asp?numerodoc=" + pedido;
			remote.opener 			= window;
			remote.opener.name 		= "imagem1";
		}
		else
		{
			thickBoxPopup();
		}
	}
	
	function Ajuda(){
		var URL = '../ajuda/index.html';
		window.open(URL,'Ajuda','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=670,height=500,top=20,left=20');
	}
	
	function Requisitos(){
		if (document.getElementById('configuracao')){
			if (document.getElementById('configuracao').style.display == 'none'){
				document.getElementById('configuracao').style.display = '';
			}else{
				document.getElementById('configuracao').style.display = 'none';
			}
		}	
	}
	
	function Desconto(email){
		var chave = document.getElementById('Chave_TXT0').value;
		if (chave != ''){
			var desconto = Load('http://www.verbojuridico.com.br/indicacoes/verificar.asp?email=' + email + '&chave=' + chave + '&produto=1','GET',false);
			var valorcredito = document.getElementById('valorcredito').value;
			var qtdcreditos = document.getElementById('Créditos_NUM1').value;
			var valorfinal = Load('calcula-desconto.asp?valorcredito=' + valorcredito + '&qtdcreditos=' + qtdcreditos + '&desconto=' + desconto,'GET',false);
			if (parseInt(desconto) > 0){
				document.getElementById('TDValorTotal').innerHTML = valorfinal;
				document.getElementById('desconto').value = desconto;
				document.getElementById('btoDesconto').style.display = 'none';
				document.getElementById('Chave_TXT0').disabled = 'disabled';
				document.getElementById('chave').value = document.getElementById('Chave_TXT0').value;
				document.getElementById('div_oculta_botao_finalizar').style.display = 'none';
			}else{
				alert('Chave de desconto invalida.');
				document.getElementById('desconto').value = 0;
				document.getElementById('Chave_TXT0').focus();
			}
		}else{
			alert('Você deve informar a chave de desconto.');
			document.getElementById('Chave_TXT0').focus();
		}
	}
	
	function modificouChave(info){
		if (info != ''){
			getElem('div_oculta_botao_finalizar').style.display = '';
		}else{
			getElem('div_oculta_botao_finalizar').style.display = 'none';
		}
	}

	function Indicacoes(nome, cpf){
		window.open('http://www.verbojuridico.com.br/ead/conteudo/infoindicacoes.asp?n='+nome+'&c='+cpf,'Indicacoes','top=0px,left=0px,width=800px,height=600px');
	}
	
	function ShowUpload(id){
		if (document.getElementById('divUploadFile' + id)){
			if (document.getElementById('inputUploadFile' + id).checked == true){
				document.getElementById('divUploadFile' + id).style.display = '';	
			}else{
				document.getElementById('divUploadFile' + id).style.display = 'none';
			}
		}
	}
	
	
	function fechaBanner(){
		document.getElementById('fly_atual').innerHTML = '';
		document.getElementById('fly_atual').style.display = 'none';
	}
	
	function getBanner(idDiv){
		if (document.getElementById(idDiv)){
			var banners 			= document.getElementById(idDiv).childNodes;
			var hoje 				= new Date();
			var numero_de_imagens 	= banners.length;
			var segundos 			= hoje.getSeconds();
			var numero 				= segundos % numero_de_imagens;
			
			if (numero <= numero_de_imagens){
				numero = numero;
			}else{
				numero = numero_de_imagens;	
			}
			
			if (banners.length != 0){
				var id = banners[numero].id;
				
				if (document.getElementById(id)){
					document.getElementById(id).style.display = '';
					document.getElementById(idDiv).style.display = '';
				}
			}
		}
	}
	/**
	*  Atualiza o campo que exibe o valor total da compra assim que a página é carregada
	*  para que seja mostrado o valor correto - já com ocálculo dos juros
	**/
	function CarrinhoDeCompras()
	{
	    if (document.getElementById('CarrinhoDeCompras'))
	    {
	        try 
	        {
	            var colecaoItens = document.getElementsByName('valorfinal');
	            if (colecaoItens)
	            {
	                var item = colecaoItens[0];
	                
	                document.getElementById('TDValorTotal').innerHTML = item.value;
	            }
	        }
	        catch(erro){}
	    }
	}
	
	window.onload = function(){
		getBanner('fly_atual');
		
		// Função usada na página do carrinho de compras para 
		// trazer o valor inicial do carrinho com o cálculo dos juros
		CarrinhoDeCompras();
	}
	
	function ShowHideID(id){
		var elemento = document.getElementById(id);
		if (elemento){
			if (elemento.style.display == 'none'){
				elemento.style.display = '';
			}else{
				elemento.style.display = 'none';
			}
		}
	}
	
