function chamaBannerOas(c,b,a,d,f,e){document.writeln('    <object id="globalnav-object" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+b+'" height="'+a+'" id="'+e+'" name="'+e+'">');document.writeln('        <param name="movie" value="'+c+'" />');document.writeln('        <param name="FlashVars" value="loc=en_US&htmlApp=false&gatewayURL=gwurl" />');document.writeln('        <param name="bgcolor" value="'+f+'" />');document.writeln('        <param name="menu" value="false" />');document.writeln('        <param name="quality" value="high" />');document.writeln('        <param name="salign" value="tl" />');document.writeln('        <param name="scale" value="noscale" />');document.writeln('        <param name="wmode" value="'+d+'" />');document.writeln('        <embed id="globalnav-embed" src="'+c+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="'+d+'" flashvars="loc=en_US&htmlApp=false&gatewayURL=gwurl" bgcolor="'+f+'" menu="false" quality="high" salign="tl" scale="noscale" id="'+e+'" width="'+b+'" height="'+a+'"></embed>');document.writeln("    </object>")}function chamaFlashOas(c,a,b,d){document.writeln('    <object id="globalnav-object" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+b+'" height="'+a+'" id="'+d+'" name="'+d+'">');document.writeln('        <param name="movie" value="'+c+'" />');document.writeln('        <param name="FlashVars" value="loc=en_US&htmlApp=false&gatewayURL=gwurl" />');document.writeln('        <param name="bgcolor" value="#ffffff" />');document.writeln('        <param name="menu" value="false" />');document.writeln('        <param name="quality" value="high" />');document.writeln('        <param name="salign" value="tl" />');document.writeln('        <param name="scale" value="noscale" />');document.writeln('        <param name="wmode" value="transparent" />');document.writeln('        <embed id="globalnav-embed" src="'+c+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" flashvars="loc=en_US&htmlApp=false&gatewayURL=gwurl" bgcolor="#ffffff" menu="false" quality="high" salign="tl" scale="noscale" id="'+d+'" width="'+b+'" height="'+a+'"></embed>');document.writeln("    </object>")}function openNewWindow(c,j,h,i,a,d,g,e,f,b,k){window.open(c,j,"resizable="+h+",location="+i+",directories="+a+",status="+d+",toolbar="+g+",menubar="+e+",scrollbars="+f+",width="+b+",height="+k)}function abrecs(a,b){window.open("/clicstation/jsp/player_compact.jsp?nomeVideo="+a+"&uf="+b,"clicStation","width=253,height=326")}function linkImagem(g,f,c,b,e,a,h,d){pwidth=400;pheight=450;openModal("/jsp/rt.jsp?rootdir=/shared&width="+g+"&height="+f+"&file="+c+"&author="+escape(b)+"&copyright="+escape(e)+"&legend="+escape(a)+"&id="+escape(h)+"&channel="+escape(d)+"&template=551.dwt",pwidth+100,pheight+100,"Fotos",1)}function linkFlash(i,c,e,h,g,b){var a=null;if(!e.elements){a=openModal("/jsp/rt.jsp?rootdir=/shared&width="+i+"&height="+c+"&file="+e+"&author="+escape(h)+"&copyright="+escape(g)+"&legend="+escape(b)+"&template=23.dwt",i+100,c+100,"Flash")}else{document.joker.p_comp.value=p_form.p_comp.value;document.joker.p_width.value=p_form.p_width.value;document.joker.p_height.value=p_form.p_height.value;document.joker.p_legend.value=p_form.p_legend.value;document.joker.p_author.value=p_form.p_author.value;document.joker.p_copyright.value=p_form.p_copyright.value;document.joker.p_type.value="F";var f=i+60;var d=c+100;a=window.open("/rbs/html/popup.htm","RBS","resizable=yes,location=no,directories=no,status=no,toolbar=no,menubar=no,scrollbars=no,width="+f+",height="+v_height)}}function linkTrailer(c,a,e,f){var d,b;iw56=parseInt(a);ih56=parseInt(e);if(iw56<=347){iw56=348}if(ih56<=359){ih56=360}d="/clicstation/jsp/clicstation_trailers.jsp?strNomevideo56="+c+"&w56="+iw56+"&h56="+ih56+"&struf="+f;window.open(d,"ClicStationTreiler","width="+iw56+",height="+ih56)}function linkAudio_old(a,b){abrecs("audio/"+a,b)}function linkVideo(a,b){abrecs("video/"+a,b)}function linkEncode(a,b){if(b==null){b="RS"}abrecs(a,b)}function linkPopup(a,b,d,c){popup=window.open("/jsp/popup.jsp?catgid="+a+"&template="+b+".dwt","PopUP","resizable=yes,location=no,directories=no,status=no,toolbar=no,menubar=no,scrollbars=no,width="+d+",height="+c)}function linkPdfBlog(a,c,b){popup=window.open("http://www.clicrbs.com.br/blog/pdf/"+a,"Pdf","resizable=yes,location=no,directories=no,status=no,toolbar=no,menubar=no,scrollbars=no,width="+c+",height="+b)}function linkRelacionadas(b,a){if(b!=null&a!=null){doSubmit(b,a,"200")}else{doSubmit("inc/ultimas_detalhe.jsp","html/"+b,"200")}}var oWindow=null;function openModal(a,c,e,r,p){var s,h,i,l;var f=((navigator.appName=="Netscape")&&(parseInt(navigator.appVersion)==4));var k=((navigator.appName=="Netscape")&&(parseFloat(navigator.appVersion)>4.04));var d=((navigator.appName=="Netscape")&&(parseInt(navigator.appVersion)==5));var b=((navigator.appName=="Netscape")&&(parseInt(navigator.appVersion)==6));var o=((navigator.appName.indexOf("Microsoft")>-1))&&(parseInt(navigator.appVersion)==4);var n=((navigator.appName.indexOf("Microsoft")>-1))&&(parseInt(navigator.appVersion)==5);var m=((navigator.appName.indexOf("Microsoft")>-1))&&(parseInt(navigator.appVersion)==6);var j=(o||n||m);var g=(f||k||d||b);var q=false;if(p!=null){q=p}if(f){s=window.screenX+((window.outerWidth-c)/2);h=window.screenY+((window.outerHeight-e)/2);i="screenX="+s+",screenY="+h+",location=no,toolbar=no,directories=no,status=no,resizable=no,dependent=yes,width="+c+",height="+e}else{s=(screen.width-c)/2;h=(screen.height-e)/2;i="left="+s+",top="+h+",location=no,toolbar=no,directories=no,status=no,resizable=no,width="+c+",height="+e}if(q){i+=",scrollbars=yes"}if(r==null){l="modal"}else{l=r}if(oWindow&&oWindow.open){closeModal()}oWindow=window.open(a,l,i);oWindow.focus()}function closeModal(){oWindow.close();oWindow=null}function doFaleConosco(d,a,b,c){openModal("/jsp/rt.jsp?template="+c+"&rootdir=/shared&uf="+d+"&l="+a+"&tab="+b,570,570,"POP",true)}function doFale(d,a,b,c){openModal("/jsp/rt.jsp?template="+c+"&rootdir=/shared&uf="+d+"&l="+a+"&tab="+b,570,570,"POP",true)}function doPops(d,a,b,c){openModal("/jsp/rt.jsp?template="+c+"&rootdir=/shared&uf="+d+"&l="+a+"&tab="+b,565,555,"FAQ")}function doFaq(d,a,b,c){openModal("/jsp/rt.jsp?template="+c+"&rootdir=/shared&uf="+d+"&l="+a+"&tab="+b,550,500,"FAQ",true)}function doPrint(a,c,b){openModal("/jornais/zerohora/jsp/printjornais.jsp?newsID="+a+"&chanID="+c+"&tmplID="+b,565,500,"PRINT",true)}function doFriend(a){openModal("/jornais/dsm/jsp/send_friend.jsp?title="+escape(a)+"&url="+escape(document.location),550,350,"FRIEND",true)}function doQuery(f,e,b,a,c,d){document.formQuery1.newsID.value=e;document.formQuery1.template.value=f;document.formQuery1.source.value=e;document.formQuery1.order.value=b;document.formQuery1.l.value=a;document.formQuery1.chanid.value=c;if(d!=null){document.formQuery1.tab.value=d}document.formQuery1.submit()}function OpenPopup(b,a,d,c){window.open(b,a,"resizable=yes,location=no,directories=no,status=no,toolbar=no,menubar=no,scrollbars=no,width="+d+",height="+c)}function open_chat(){var d=document.chat.user.value;var c=document.chat.screen.value;var e=document.chat.room.options[document.chat.room.selectedIndex].value;var b=document.chat.chatter.value;d=escape(d);var a="http://clicpapo.clicrbs.com.br/cgi-bin/inchat/inchat.pl?login=1&user="+d+"&screen="+c+"&room="+e+"&chatter="+b;window.open(a,"OpenInchat","width=710,height=525,top=0,left=0");return false}function doChat(){if(document.chat.user.value.length==0){alert("Por favor, informe o seu apelido.")}else{if(document.chat.room.options[document.chat.room.selectedIndex].value==""){alert("Por favor, escolha uma sala.")}else{open_chat()}}}function MM_openBrWindow(c,a,b){window.open(c,a,b)}function link_gallery(k,c,a,m,b,f,l,d,e,i){if(e==" "){e="1"}if(i==" "){i="1"}var j=c.length;if(j>0){var h=c.indexOf("/",0);if(h==0){c=c.substring(1,j)}j=c.length;h=c.lastIndexOf("/",j);if(h==(j-1)){c=c.substring(0,h)}}if(k=="1"){document.location.href="http://www.clicrbs.com.br/"+c+"/jsp/default.jsp?newsID=DYNAMIC%2Cgaleria.GalleryDelivery%2CphotosGalleryXml&pg=1&template="+a+"&groupid="+b+"&galeriaid="+m+"&uf="+e+"&local="+i+d}else{var g="http://www.clicrbs.com.br/"+c+"/jsp/default.jsp?template=1552.dwt&ids=null&initial=null&playsshow=false&b=1&arquivo_xml=galeria_"+m+"_"+b+".xml&uf="+e+"&local="+i+d;MM_openBrWindow(g,"Galeria","scrollbars=auto,resizable=yes,width="+f+",height="+l)}}function popupFormArq(c,b){var a="http://www.clicrbs.com.br/formulario/jsp/pop_formulario_arq.jsp?titulo="+c+"&emailAlvo="+b;window.open(a,"popup","width=590,height=540,scrollbars=1")}function popupFormMsg(c,b){var a="http://www.clicrbs.com.br/formulario/jsp/pop_formulario_msg.jsp?titulo="+c+"&emailAlvo="+b;window.open(a,"popup","width=590,height=540,scrollbars=1")}function popupFormArqKzuka(c,b){var a="http://www.clicrbs.com.br/kzuka/jsp/pop_formulario_arq2.jsp?titulo="+c+"&emailAlvo="+b;window.open(a,"popup","width=600,height=400,scrollbars=yes")}var produto="clicnoticias";var template_popup_resultado="2472.dwt";var template_popup_votacao="2473.dwt";function doVoteEF(c,b,a){MM_openBrWindow("http://www.clicrbs.com.br/jsp/seleciona_enquete.jsp?enquete_id="+c+"&grupo_id="+b+"&grupo_nome="+a+"&produto="+produto+"&tpr="+template_popup_resultado+"&tpv="+template_popup_votacao,"clicRBS","scrollbars=yes,width=277,height=296")}function doResultEF(c,b,a){MM_openBrWindow("http://www.clicrbs.com.br/itapemafm/jsp/interatividade.jsp?newsID=DYNAMIC%2Citools.xml.ItoolsDelivery3%2CgetEnqueteXml&groupid="+b+"&enqueteid="+c+"&b=1&template="+template_popup_resultado+"&grupoOAS="+a+"&interatividadeOAS=enquete","itapemafm","scrollbars=yes,width=296,height=260")}function selecionadaFoto(a,b,h){var d="";var f="";var i=1;var g=1;if(h!=""&&b!=""&&i!=""&&g!=""){d="default.jsp?template=1552.dwt&b=1&galeriaid="+h+"&groupid="+b+"&uf="+i+"&local="+g}if(b!=""&&h!=""){f="galeria_"+h+"_"+b+".xml"}var j=false;var c=0;var e="null";if(a!=""){j=true;e=a;a="null"}if(j==false){a="null";d+="&arquivo_xml="+f+"&ids="+a+"&initial="+e+"&playsshow=false"}else{d+="&arquivo_xml="+f+"&ids="+a+"&initial="+e+"&playsshow=false"}if(f!=""&&j){MM_openBrWindow(d,"Galeria","scrollbars=auto,resizable=yes,width=512,height=535")}}function limpaCampo(a){if(a.value==" Buscar"){a.value=""}}function OpenPopupRodape(a){if(a==1){duvida="http://www.clicrbs.com.br/atendimento/jsp/default.jsp?template=2856.dwt&newsID=DYNAMIC,atendimento.AtendimentoDataServer,getDuvidas&idcentral=154&logo=clic&dominio=clic";window.open(duvida,"Duvidas","resizable=no,location=no,directories=no,status=no,toolbar=no,menubar=no,scrollbars=yes, width=656, height=520")}if(a==2){fale="http://www.clicrbs.com.br/atendimento/jsp/default.jsp?template=2855.dwt&newsID=DYNAMIC,atendimento.AtendimentoDataServer,getFaleConosco&idcentral=154&logo=clic&dominio=clic";window.open(fale,"Fale","resizable=no,location=no,directories=no,status=no,toolbar=no,menubar=no,scrollbars=yes, width=656, height=520")}}function envieAmigo(c){var a="/blog/icon/";var b="http://www.clicrbs.com.br/blog/jsp/blog_popup_enviaramigo.jsp?post="+c+"&control=form&dir="+a+"&url="+escape(document.location);window.open(b,"Amigo","width=514,height=520,scrollbars=yes")}function doChatCapa(a){if(a!=null){window.open("http://www.clicrbs.com.br/jsp/popup_ingresso_chat.jsp?room="+a,"ingresso","toolbar=no,menubar=no,resizable=no,scrollbars=no,width=250,height=200")}}function popup(d,b,c,a){if(b==1){outrosBlogs="http://www.clicrbs.com.br/blog/jsp/default.jsp?source=DYNAMIC,blog.BlogDataServer,getOutrosBlogs&pg=1&uf=1&local=1&template=3365.dwt&tp=&section=Blogs&blog="+d+"&tipo=1";window.open(outrosBlogs,"Blogs","toolbars=0, scrollbars=yes, location=0, statusbars=0, menubars=0, resizable=0, width=370, height=400, left = 274.5, top = 124")}if(b==2){comentario="http://www.clicrbs.com.br/blog/jsp/default.jsp?source=DYNAMIC,blog.BlogDataServer,getComments&uf="+c+"&local="+a+"&template=3950.dwt&section=Blogs&postid="+d+"&pg=1&tp=10";window.open(comentario,"Comentarios","toolbars=0, scrollbars=yes, location=0, statusbars=0, menubars=0, resizable=0, width=514, height=520, left = 274.5, top = 124")}}function setTopoComentario(b){topoValue="";queryString=opener.location.search.substring(1);parms=queryString.split("&");for(var a=0;a<parms.length;a++){if(parms[a].indexOf("topo=")>=0){topoValue=parms[a];topoValue=topoValue.substring(topoValue.indexOf("=")+1)}}b.blog_topo.value=topoValue}function Cookies(b){this.dias=b;this.setCookie=function(c,d,f){var e=c+"="+escape(d)+";";if(f==undefined){f=this.dias}if(f>0){e+="EXPIRES="+a(f)+";"}e+="path=/;";document.cookie=e};this.getCookie=function(f){var c=document.cookie+"";var e=c.indexOf(f+"=");if(e==-1||f==""){return""}var d=c.indexOf(";",e);if(d==-1){d=c.length}return unescape(c.substring(e+f.length+1,d))};function a(f){var e;var d=new Date();var c=Date.parse(d);d.setTime(c+f*24*60*60*1000);return d.toUTCString()}}var cookiesBlogs=new Cookies(365);

