try{xmlhttp=new XMLHttpRequest}catch(ee){try{xmlhttp=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")}catch(E){xmlhttp=false}}}
function fxmlhttp(_,q){_.onreadystatechange=function(){if(_.readyState==4){var w=_.responseText;w=w.replace(/\+/g," ")
w=unescape(w);q.innerHTML=w}}
_.send(null)}
function loadAnim(){qual=carrMovie("index_topo")
eval(qual).loadAnimacao()}
function carrMovie(_){if(isIE()){return window[_]} else{return document[_]}}
function isIE(){return navigator.appName.indexOf("Microsoft")!=-1}
function cursos(w,q){var _=document.getElementById("conteudoDCursos");_.innerHTML='<br /><img src="../imagens/img_geral/loading.gif" alt="Carregando" width="32" height="32" align="middle" /> Carregando. <br />';xmlhttp.open("GET","../posgraduacao/"+w+"/"+q,true);fxmlhttp(xmlhttp,_)}
function graduacaoInfo(q,w){var _=document.getElementById("contentCursos");xmlhttp.open("GET","../graduacao_curso/"+q+"/"+w+".html",true);fxmlhttp(xmlhttp,_)}
function graduacao(w,q){var _=document.getElementById("conteudoGraduacao");_.innerHTML='<br /><img src="../imagens/img_geral/loading.gif" alt="Carregando" width="32" height="32" align="middle" /> Carregando. <br />';xmlhttp.open("GET","../graduacao_"+w+"/"+q+"?"+Math.ceil(Math.random()*100000),true);fxmlhttp(xmlhttp,_)}
function mudaImg(q,w){var _=document.getElementById(q);_.src="../imagens/"+w}
function show(q,w,e){olink=document.getElementById(q);if(e){x=getPageOffsetLeft(olink)
y=getPageOffsetTop(olink)+olink.offsetHeight-1} else{x=getPageOffsetLeft(olink)+olink.offsetWidth-1;y=getPageOffsetTop(olink)};var _=document.getElementById(w);_.style.left=x+"px";_.style.top=y+"px";_.style.visibility="visible"}
function hide(q){var _=document.getElementById("sub"+q);_.style.visibility="hidden"}
function getPageOffsetLeft(q){var _;_=q.offsetLeft;if(q.offsetParent!=null)
_+=getPageOffsetLeft(q.offsetParent);return _}
function getPageOffsetTop(q){var _;_=q.offsetTop;if(q.offsetParent!=null)
_+=getPageOffsetTop(q.offsetParent);return _}
function MM_openBrWindow(w,q,_){window.open(w,q,_)}
function mostraNoticia(_){resumo=document.getElementById("resumo"+_);descricao=document.getElementById("descricao"+_);opcao=document.getElementById("opcao"+_);resumo.className='esconde';descricao.className='';opcao.innerHTML='<a href="javascript:escondeNoticia('+_+');"><img src="../imagens/img_bts/bt_minimizar.gif" alt="Minimizar" width="65" height="16" border="0" /></a>'}
function escondeNoticia(_){resumo=document.getElementById("resumo"+_);descricao=document.getElementById("descricao"+_);opcao=document.getElementById("opcao"+_);resumo.className='';descricao.className='esconde';opcao.innerHTML='<a href="javascript:mostraNoticia('+_+');"><img src="../imagens/img_bts/bt_saiba.gif" alt="Saiba Mais" width="51" height="16" border="0" /></a>'}
function fotoEstrutura(_){obj=document.getElementById("fotoEstrutura");obj.innerHTML='<img src="../imagens/img_estrutura/'+_+'" alt="Campus UniFil" class="fotosGrandes" />'}
function fotoHanbebol(_){obj=document.getElementById("fotoHanbebol");obj.innerHTML='<img src="../imagens/img_handebol/'+_+'" alt="Handebol" class="fotosGrandes" />'}
function expandeOportunidade(_){obj=document.getElementById("oportunidade"+_);if(obj.style.display!==''){lopo=document.getElementById("lopo"+_);lopo.innerHTML="Minimizar"
obj.style.display=''} else{lopo=document.getElementById("lopo"+_);lopo.innerHTML="Ver Mais"
obj.style.display='none'}}
function selecionouCurso(q,_){id_curso=document.getElementById("curso").value;var w=document.getElementById("turmas");if(id_curso!==""){xmlhttp.open("GET","../admin/materiais/get_turmas.asp?local=site&id_curso="+id_curso+"&id_turma="+q+"&id_disciplina="+_+"&engana="+Math.ceil(Math.random()*100000),true);fxmlhttp(xmlhttp,w)}}
function selecionouTurma(_){id_turma=document.getElementById("turma").value;var q=document.getElementById("disciplinas");if(id_turma!==""){xmlhttp.open("GET","../admin/materiais/get_disciplinas.asp?id_turma="+id_turma+"&id_disciplina="+_+"&engana="+Math.ceil(Math.random()*100000),true);fxmlhttp(xmlhttp,q)}}
function selecionouDisciplina(){conteudo=document.getElementById("dentroConteudoGraduacao");id_turma=document.getElementById("turma").value;id_disciplina=document.getElementById("disciplina").value;if(id_turma!==""||id_disciplina!==""){xmlhttp.open("GET","../graduacao_curso/get_materiais.asp?id_turma="+id_turma+"&id_disciplina="+id_disciplina+"&engana="+Math.ceil(Math.random()*100000),true);fxmlhttp(xmlhttp,conteudo)}}
function someMateriais(){obj_mat=document.getElementById("pode");obj_mat.innerHTML='Você não tem acesso aos materiais desse curso.'}
function txtBoxFormat(i,o,a){var p,q,_,w,e,r,t,y;if(window.event){y=a.keyCode}else if(a.which){y=a.which}
if(y!=8){var u=i;_=u.value;expressao=/[\.\/\-\(\)\,\;\: ]/gi;_=_.toString().replace(expressao,'');w=_.length;e=o.length;p=0;q=0;t="";e=w;while(p<=e){r=((o.charAt(p)=="-")||(o.charAt(p)==".")||(o.charAt(p)=="/")||(o.charAt(p)==",")||(o.charAt(p)==";")||(o.charAt(p)==":"))
r=r||((o.charAt(p)=="(")||(o.charAt(p)==")")||(o.charAt(p)==" "))
if(r){t+=o.charAt(p);e++}else{t+=_.charAt(q);q++}
p++}
var u=i;u.value=t;if(y!=8){if(o.charAt(p-1)=="9"){return((y>47)&&(y<58))}else{return true}}else{return true}}}
function iframeCalc(q){document.getElementById(q).style.height=20;var _=document.getElementById(q).contentWindow.document.body.scrollHeight;document.getElementById(q).style.height=_+20}
function MM_findObj(w,r){var e,q,_;if(!r) r=document;if((e=w.indexOf("?"))>0&&parent.frames.length){r=parent.frames[w.substring(e+1)].document;w=w.substring(0,e)}
if(!(_=r[w])&&r.all) _=r.all[w];for(q=0;!_&&q<r.forms.length;q++) _=r.forms[q][w];for(q=0;!_&&r.layers&&q<r.layers.length;q++) _=MM_findObj(w,r.layers[q].document);if(!_&&r.getElementById) _=r.getElementById(w);return _}
function MM_validateForm(){var i,q,_,w,e,r,t,y,u='',o=MM_validateForm.arguments;for(i=0;i<(o.length-2);i+=3){e=o[i+2];val=MM_findObj(o[i]);if(val){w=val.name;w=w.replace(w.charAt(0),w.charAt(0).toUpperCase());w=w.replace("_"," ");w=w.replace("_"," ");if((val=val.value)!=""){if(e.indexOf('isEmail')!=-1){q=val.indexOf('@');if(q<1||q==(val.length-1)) u+='- '+w+' só aceita um endereço de e-mail valido.\n'} else if(e!='R'){r=parseFloat(val);if(isNaN(val)) u+='- '+w+' só aceita numeros.\n';if(e.indexOf('inRange')!=-1){q=e.indexOf(':');t=e.substring(8,q);y=e.substring(q+1);if(r<t||y<r) u+='- '+w+' só aceita numeros entre '+t+' e '+y+'.\n'}}} else if(e.charAt(0)=='R') u+='- '+w+' é obrigatorio.\n'}} if(u) alert('Validação:\n'+u);document.MM_returnValue=(u=='')}
function revista(w,q){var _=document.getElementById("conteudoDCursos");_.innerHTML='<br /><img src="../imagens/img_geral/loading.gif" alt="Carregando" width="32" height="32" align="middle" /> Carregando. <br />';xmlhttp.open("GET","../revista_terra_cultura/"+w+"/"+q,true);fxmlhttp(xmlhttp,_)}