jQuery(document).ready(function() {
  

   $('#carouselHacked').carousel();
  
     
     
     //this code is for animation nav
     jQuery(window).scroll(function() {
        var windowScrollPosTop = jQuery(window).scrollTop();

        if(windowScrollPosTop >= 150) {
          jQuery(".header").css({"background": "#B193DD",});
          jQuery(".top-header img.logo").css({"margin-top": "5px", "margin-bottom": "10px"});
          jQuery(".navbar-default").css({"margin-top": "-5px",});
        }
        else{
          jQuery(".header").css({"background": "transparent",});
           jQuery(".top-header img.logo").css({"margin-top": "18px", "margin-bottom": "15px"});
           jQuery(".navbar-default").css({"margin-top": "8px", "margin-bottom": "0"});
          
        }
     });
  

});



function setCookie()
{
	document.cookie="cookies=isencia; expires=0; path=/";
        document.getElementById("cookies").style.display="none";
}

function getCookie(cname) {
    var name = cname + "=";
    var ca = document.cookie.split(';');
    for (var i = 0; i < ca.length; i++) {
        var c = ca[i];
        while (c.charAt(0) == ' ') c = c.substring(1);
        if (c.indexOf(name) != -1) return c.substring(name.length, c.length);
    }
    return "";
}

function initCookie(){
    var cookiename = getCookie("cookies");
        document.getElementById("cookies").style.display=(cookiename != "isencia")?"block":"none";
    
}
window.onload=initCookie;