function Cookie(){function d(f){f=f.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var e="[\\?&]"+f+"=([^&#]*)";var h=new RegExp(e);var g=h.exec(window.location.href);if(g==null){return""}else{return g[1]}}this.getValorCookieClicrbsV2=b;function b(j){var i,f,g;try{i=j.split("(")[2].split(")")[0]}catch(h){i=""}try{f=j.split("(")[1].split(")")[0]}catch(h){f=""}try{g=j.split(":")[2].split("=")[1]}catch(h){g=""}return{uf:i,local:f,usuario:g}}this.getCookie=a;function a(h){var e=document.cookie+"";var g=e.indexOf(h+"=");if(g==-1||h==""){return""}var f=e.indexOf(";",g);if(f==-1){f=e.length}return unescape(e.substring(g+h.length+1,f))}this.gravaCookie=c;function c(e,h,j){var g=new Date();var f=Date.parse(g);g.setTime(f+j*24*60*60*1000);g=g.toUTCString();var i=e+"="+h+";path=/;";if(j>0){i+="EXPIRES="+g+";"}document.cookie=i}this.setCookieAndRedirect=function(h){var f,e,g;f="clicRBSv2.prefs";e=b(a(f)).uf;g=b(a(f)).local;if(e!="1"&&e!="2"){e="1";g="1"}h=h.replace(/((.)*)(uf=(\w*)(&|$))((.)*)/gi,"$1uf="+e+"$5$6");h=h.replace(/((.)*)(local=(\w*)(&|$))((.)*)/gi,"$1local="+g+"$5$6");location.href=h};this.setCookie=function(){}}var cookie=new Cookie();

