346
| <![CDATA[<script type="text/javascript">
jQuery(document).ready(function () {
var url = 'http://www.defesacivil.rj.gov.br/';
function setCookie(c_name,value,exdays,domain)
{
if (domain) {domain = '; domain=' + domain}
var exdate=new Date();
exdate.setDate(exdate.getDate() + exdays);
var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString()) + "; path=/" + domain;
document.cookie=c_name + "=" + c_value;
}
function readCookie(name) {
var nameEQ = name + "=";
var jb = document.cookie.split(';');
for(var i=0;i < jb.length;i++) {
var c = jb[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
var $jb_cookie = jQuery('.jb.cookie');
var $jb_infoaccept = jQuery('.jb.accept');
var jbcookies = readCookie('jbcookies');
if(!(jbcookies == "yes")){
$jb_cookie.delay(1000).slideDown('fast');
$jb_infoaccept.click(function(){
setCookie("jbcookies","yes",90,"");
$jb_cookie.slideUp('slow');
jQuery('.jb.cookie-decline').fadeIn('slow', function() {});
});
}
jQuery('.jb.decline').click(function(){
setCookie("jbcookies","",0,"");
window.location.reload();
});
});
</script>]]>
|