﻿// Função CONDICIOMAIS
/*CSS Browser Selector v0.3.2Rafael Lima (http://rafael.adm.br)http://rafael.adm.br/css_browser_selectorLicense: http://creativecommons.org/licenses/by/2.5/Contributors: http://rafael.adm.br/css_browser_selector#contributors*/function css_browser_selector(u){var ua = u.toLowerCase(),is=function(t){return ua.indexOf(t)>-1;},g='gecko',w='webkit',s='safari',h=document.getElementsByTagName('html')[0],b=[(!(/opera|webtv/i.test(ua))&&/msie\s(\d)/.test(ua))?('ie ie'+RegExp.$1):is('firefox/2')?g+' ff2':is('firefox/3')?g+' ff3':is('gecko/')?g:/opera(\s|\/)(\d+)/.test(ua)?'opera opera'+RegExp.$2:is('konqueror')?'konqueror':is('chrome')?w+' chrome':is('applewebkit/')?w+' '+s+(/version\/(\d+)/.test(ua)?' '+s+RegExp.$1:''):is('mozilla/')?g:'',is('j2me')?'mobile':is('iphone')?'iphone':is('ipod')?'ipod':is('mac')?'mac':is('darwin')?'mac':is('webtv')?'webtv':is('win')?'win':is('freebsd')?'freebsd':(is('x11')||is('linux'))?'linux':'','js']; c = b.join(' '); h.className += ' '+c; return c;}; css_browser_selector(navigator.userAgent); 

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('t 6=1L.6||{};6.8={D:j,7:j,k:j,x:{1n:"E",1o:"F",Y:"1M",O:"1N"},n:"",i:0,F:0,E:0,Z:!!1O.1P.1Q(/1R/g),r:j,y:10,P:l,o:m.11("G"),H:l,Q:0,1S:9(a){5.D=m.1T(a.1U);5.y=a.y||5.y;5.n=a.n||5.n;5.x=a.x||5.x;f(1p 12=="1V"){12=0}5.H=H=(m.I.1q("1r=1")==-1)?s:l;5.7=5.D.z("1W");5.13(5.i);5.1s();f(5.7.p==1){a.14=s}q{5.1t()}f(m.I.1q("15=1")!=-1){a.14=s}f(!a.14){5.R()}q{5.A("O")}},16:{S:9(a){f(a.S){a.S()}q{a.1X=l}},1u:9(c,b,a){f(m.1v){c.1v("1Y"+b,a)}q{f(m.1w){c.1w(b,a,s)}}}},R:9(a){f((!a&&5.r==j)||(a&&5.r!=j)){1x(5.r);5.r=1Z(9(){6.8.17(1)},6.8.y*1y);m.I="15=0; 18=/";5.A("Y")}q{m.I="15=1; 18=/";1x(5.r);5.r=j;5.A("O")}},A:9(a){f(5.k!=j){t b=5.k.z("a")[1];b.v="20"+a;b.19=5.x[a]}},13:9(a){5.i=(21(a)+(5.i||5.7.p))%5.7.p;5.F=((5.i||5.7.p)-1)%5.7.p;5.E=((5.i||5.7.p)+1)%5.7.p},B:9(b,d,c){f(d){b.h.T=0;b.h.C="1a(1b=0)"}q{b.h.T=1;b.h.C="1a(1b=1z)"}6.8.P=s;1c(t a=1;a<=10;a++){1d(9(e){22 9(){f(6.8.Z){b.h.C="1a(1b="+(d?10*e:1z-10*e)+")"}q{b.h.T=(d?0.1*e:1-0.1*e)}f(e==10){6.8.P=l;f(1p c=="9"){c()}}}}(a),23*a)}},1A:9(){m.I="1r=1; 18=/";5.H=l;24(6.8.1B);5.1e()},1e:9(){5.B(5.o,l,9(){6.8.o.h.U="V";6.8.k.h.U="1C"});5.B(5.k,s,j)},17:9(b){t a=5.i;5.25=l;5.Q++;f(12==1&&5.H&&5.Q>0&&5.Q%5.7.p==0){5.o.h.U="1C";5.o.v="o";5.o.19=\'<a w="\'+26+\'" J="27"><K 1f="\'+28+\'" 1g="0" /></a><G L="29"><K 1f="1D://1E.K.M.1F.1G/1H/2a.1I" L="2b" 1g="0" /><a w="2c:2d(0)" 2e="6.8.1A()"><K 1f="1D://1E.K.M.1F.1G/1H/o-2f.1I" 1g="0" /></G>\';5.D.1h(5.o);5.B(5.o,s,9(){6.8.k.h.U="V"});5.B(5.k,l,j);f(5.r!=j){6.8.1B=1d(9(){6.8.1e()},6.8.y*1y)}}q{5.13(b);5.7[5.i].v=5.7[5.i].v.W(/1i/g,"");5.7[5.i].h.1j=3;5.7[a].h.1j=4;5.7[5.i].h.T=1;5.7[5.i].h.C="V";5.B(5.7[a],l,9(){f(6.8.Z){6.8.7[a].h.C=6.8.7[a].h.C="V"}6.8.7[a].v="1i";6.8.7[a].h.1j=2});5.1k();f(5.r==j){5.A("O")}q{5.A("Y")}}},1t:9(){5.k=m.11("G");5.k.v="2g";5.1k();5.D.1h(5.k)},1s:9(){t b=m.11("G");b.v="2h";1c(t a=0;a<5.7.p;a++){f(a>0){5.7[a].v+=" 1i"}5.7[a].1h(b.2i(s))}},1k:9(){5.k.19="<a N=\'-1\' w=\'"+5.7[5.F].z("a")[0].w.W(/(^.*?X\\.M.*?1l\\=).*?(&u\\=.*?)$/g,"$1"+5.n+"$2")+"\' L=\'F\' 1m=\'"+5.n+"\'>"+5.x.1o+"</a>      <a N=\'0\' w=\'"+5.7[5.i].z("a")[0].w.W(/(^.*?X\\.M.*?1l\\=).*?(&u\\=.*?)$/g,"$1"+5.n+"$2")+"\' L=\'\' 1m=\'"+5.n+"\'></a>      <a N=\'+1\' w=\'"+5.7[5.E].z("a")[0].w.W(/(^.*?X\\.M.*?1l\\=).*?(&u\\=.*?)$/g,"$1"+5.n+"$2")+"\' L=\'E\' 1m=\'"+5.n+"\'>"+5.x.1n+"</a>";t b=5.k.z("a");1c(t a=0;a<b.p;a++){5.16.1u(b[a],"X",9(c){6.8.1J(c)})}},1J:9(a){6.8.16.S(a);f(a.1K&&!a.J){a.J=a.1K}f(a.J.N==0){6.8.R()}q{f(6.8.P==l){1d(9(){6.8.17(a.J.N);6.8.R(s)},2j)}}}};',62,144,'|||||this|UOLLib|itens|rotativoDeChamadas|function||||||if||style|ativado|null|botoes|false|document|botoesRefClickUOL|banner|length|else|timeOut|true|var||className|href|botoesTxts|timer|getElementsByTagName|setBtStopPlay|fadeIO|filter|painel|proximo|anterior|div|showBanner|cookie|target|img|class|uol|rel|play|animando|contaTrocas|stopPlay|preventDefault|opacity|display|none|replace|click|stop|navMSIE||createElement|mostrabanner|setNavegacao|startOff|rotativoDeChamadasStop|events|navegar|path|innerHTML|Alpha|Opacity|for|setTimeout|bannerFadeOut|src|border|appendChild|desativado|zIndex|writeBotoesHTML|rf|name|next|prev|typeof|indexOf|rotativoDeChamadasNoBanner|aplicarSombras|montarBotoes|add|attachEvent|addEventListener|clearInterval|1000|100|fecharBanner|bannerFadeOutTimer|block|http|home|com|br|h3|gif|btNavegacaoClick|srcElement|window|parar|executar|navigator|userAgent|match|MSIE|init|getElementById|id|undefined|li|returnValue|on|setInterval|bt|parseInt|return|75|clearTimeout|removerBanner|mostrabannerLINK|_blank|mostrabannerIMG|rodape|pub_h_120_b|txtPublicidade|javascript|void|onclick|fechar|botoesNavegacao|sombra|cloneNode|30'.split('|'),0,{}))


// FIM da Função CONDICIOMAIS
function clickButton(e, buttonid){ 

      var evt = e ? e : window.event;

      var bt = document.getElementById(buttonid);

      if (bt){ 

          if (evt.keyCode == 13){ 

                bt.click(); 

                return false; 

          } 

      } 

}

//funcao para ie menu Drop-Down
function showmenu(elmnt)
        {
            document.getElementById(elmnt).style.display = "block";
        }
        
function hidemenu(elmnt)
        {
	        document.getElementById(elmnt).style.display = "none";    
        }
        

//funçao para limpar e escrever texto no input

 function limparPadrao(campo) 
        {
            if (campo.value == campo.defaultValue) 
            {
                campo.value = "";
            }
        }
        
        function escreverPadrao(campo) 
        {
            if (campo.value == "") 
            {
                campo.value = campo.defaultValue;
            }
        } 



//funçao para trocar o type do input de text para password
        

//var LoadHandler = {
//  handlers:[],
//  add:function(fn){
//    if(window.onload!=LoadHandler.theHandler) LoadHandler._push(window.onload);
//    LoadHandler._push(fn);
//    window.onload=LoadHandler.theHandler;
//  },
//  _push:function(fn){
//    if(typeof(fn)!='function') return;
//    LoadHandler.handlers[LoadHandler.handlers.length]=fn;
//  },
//  theHandler:function(){
//    var handlers=LoadHandler.handlers,i=-1,fn;
//    while(fn=handlers[++i]) fn();
//  }
//}

//LoadHandler.add(function(){
//  document.forms[0].onsubmit=function(){return false;}
//});




function changeInputType(
  oldElm, // a reference to the input element
  iType, // value of the type property: 'text' or 'password'
  iValue, // the default value, set to 'password' in the demo
  blankValue, // true if the value should be empty, false otherwise
  noFocus) {  // set to true if the element should not be given focus
  
  iValue='Senha';
  
  if(!oldElm || !oldElm.parentNode || (iType.length<4) || 
    !document.getElementById || !document.createElement) return;
  var isMSIE=/*@cc_on!@*/false; //http://dean.edwards.name/weblog/2007/03/sniff/
  if(!isMSIE){
    var newElm=document.createElement('input');
    newElm.type=iType;
  } else {
    var newElm=document.createElement('span');
    newElm.innerHTML='<input type="'+iType+'" name="'+oldElm.name+'">';
    newElm=newElm.firstChild;
  }
  var props=['name','id','className','size','tabIndex','accessKey'];
  for(var i=0,l=props.length;i<l;i++){
    if(oldElm[props[i]]) newElm[props[i]]=oldElm[props[i]];
  }
  newElm.onfocus=function(){return function(){
    if(this.hasFocus) return;
    var newElm=changeInputType(this,'password',iValue,
      (this.value.toLowerCase()==iValue.toLowerCase())?true:false);
    if(newElm) newElm.hasFocus=true;
  }}();
  newElm.onblur=function(){return function(){
    if(this.hasFocus)
    if(this.value=='' || (this.value.toLowerCase()==iValue.toLowerCase())) {
      changeInputType(this,'text',iValue,false,true);
    }
  }}();
 // hasFocus is to prevent a loop where onfocus is triggered over and over again
  newElm.hasFocus=false;
  // some browsers need the value set before the element is added to the page
  // while others need it set after
  if(!blankValue) newElm.value=iValue;
  oldElm.parentNode.replaceChild(newElm,oldElm);
  if(!isMSIE && !blankValue) newElm.value=iValue;
  if(!noFocus || typeof(noFocus)=='undefined') {
    window.tempElm=newElm;
    setTimeout("tempElm.hasFocus=true;tempElm.focus();",1);
  }
  return newElm;
}


// Example 2 (JS part 2)
//LoadHandler.add(function(){
//  // Normally I use object detection, however, in this case since I need to 
//  // detect Konqueror and Safari which don't have unique objects,
//  // I will use the user agent string to detect them. Only use this type of 
//  // detection as a last resort.
//  // I'm doing this because example 2 crashes Konqueror 3.4 and Safari 1.0

//  var ua=navigator.userAgent.toLowerCase();
//  if(!((ua.indexOf('konqueror')!=-1) && /khtml\/3\.[0-4]/.test(ua)) && 
//    !(((ua.indexOf('safari')!=-1) && !window.print))) {

//      // Set the third value to the text you want to appear in the field.
//      changeInputType(document.formiPortal.senha,'text','password',false,true);
//  }
//});
/* ]]> */