controlaBarra=true;function expande(a){window.setTimeout("expandemenu( "+a+")",700);controlaBarra=true}function encolhe(a){controlaBarra=false;window.setTimeout("expandemenu( "+a+")",100)}function expandeClic(a){controlaBarra=true;expandemenu(a)}function expandemenu(c){try{if(c!=undefined){c="_"+c}else{c=""}var h=document.getElementById("todos"+c);var f=document.getElementById("barralista"+c);var d=document.getElementById("barraconteudo");var g=document.getElementById("framelista");var b=document.getElementById("todos_1");var a=b.parentNode;if(controlaBarra){if(f!=undefined){f.style.display="block"}g.style.display="block";g.style.visibility="visible";g.style.position="absolute";g.style.left="0px";g.style.top="0px";g.style.zIndex=d.style.zIndex-2;g.style.width="624px";g.style.height=d.offsetHeight-3+"px";if(h!=undefined){h.className=h.className.replace("off","on")}hideFlash();a.style.cursor="pointer";a.style.backgroundPosition="left bottom";b.style.backgroundPosition="right bottom"}else{if(f!=undefined){f.style.display="none"}if(h!=undefined){h.className=h.className.replace("on","off")}showFlash();a.style.backgroundPosition="left top";b.style.backgroundPosition="right top"}}catch(e){}}function trocaFundo(a){var b=a.getElementsByTagName("A")[0];a.style.cursor="pointer";a.style.backgroundPosition="left bottom";b.style.backgroundPosition="right bottom"}function voltaFundo(a){var b=a.getElementsByTagName("A")[0];a.style.backgroundPosition="left top";b.style.backgroundPosition="right top"}function showFlash(){var b=document.getElementsByTagName("object");for(i=0;i<b.length;i++){b[i].style.visibility="visible"}var a=document.getElementsByTagName("embed");for(i=0;i<a.length;i++){a[i].style.visibility="visible"}}function hideFlash(){var b=document.getElementsByTagName("object");for(i=0;i<b.length;i++){b[i].style.visibility="hidden"}var a=document.getElementsByTagName("embed");for(i=0;i<a.length;i++){a[i].style.visibility="hidden"}}function addEvent(d,c,a){if(d.addEventListener){d.addEventListener(c,a,false);return true}else{if(d.attachEvent){var b=d.attachEvent("on"+c,a);return b}else{return false}}}function createIframe(){try{var b=document.getElementById("barralista_1");var a='<iframe id="framelista" src="javascript:false;" scrolling="no" frameborder="0" style="position:absolute; display:none; visibility:hidden; background-color:#FF0000;"></iframe>';b.innerHTML+=a}catch(c){}}function changeTargetToTop(){try{var a=document.getElementById("clic-barra");var b=a.getElementsByTagName("A");for(var c=0;c<b.length;c++){b[c].target="_top"}}catch(d){}}function buscaBarraClic(){var a=document.getElementById("frmSearch3");if(a!=null){a.onsubmit=function(){var l=a.c,d=a.c.value,f=escape(a.q.value),h=l.options[l.selectedIndex].text,b=a.cx.value,k=a.cof.value,j=a.ie.value,g;g=l.options[l.selectedIndex].className;if(buscaBarraClicValidate(a,f)){if(d=="local"){window.location.href="http://www.clicrbs.com.br/busca"+g+"t="+d+"&q="+f+"&c="+h}else{if(d=="web"){window.location.href="http://www.clicrbs.com.br/busca"+g+"q="+f+"&t="+d+"&cx="+b+"&cof="+k+"&ie="+j}}}return false}}}function buscaBarraClicValidate(b,a){if(a!=null&&a!=""){return true}else{alert("Preencha o campo de busca");return false}}addEvent(window,"load",createIframe);addEvent(window,"load",changeTargetToTop);addEvent(window,"load",buscaBarraClic);

