text: // global vars section
  var isMobileView = false;
  
  $(document).ready(function(){
  
  	// showing/hiding top menu
  	$(document).on( "click", ".toggleMenuAction", function() {
  		$(".nav_container").slideToggle();
  	});
  
  	if ($(window).width() <= 745) {
  		isMobileView = true;
  	}
  
  	// mostro la fantastica barra dei cookie
  	lawCookieCompliance.createDivOnLoad();
  });
  
  function placeholder_support() {
  	Modernizr.load({
  		test: Modernizr.input.placeholder,
  		nope: ['/static/website/js/jquery.placeholder.js'],
  		complete: function(){
  			if (!Modernizr.input.placeholder) {
  				$('input, textarea').placeholder();
  			}
  		}
  	});
  
  	return true;
  }
  
  /* Object to manage law cookie div */
  // Creare's 'Implied Consent' EU Cookie Law Banner v:2.4
  // Conceived by Robert Kent, James Bavington & Tom Foyster
  var lawCookieCompliance = {
  	dropCookie : true, // false disables the Cookie, allowing you to style the banner
  	cookieDuration : 60, // Number of days before the cookie expires, and the banner reappears
  	cookieName : 'complianceCookie', // Name of our cookie
  	cookieValue : 'on', // Value of cookie
  
  	createDiv : function() {
  		var bodytag = document.getElementsByTagName('body')[0];
  		var div = document.createElement('div');
  		div.setAttribute('id', 'cookie-law');
  		div.innerHTML = '<p>Su questo sito utilizziamo i cookie. Per saperne di più <a href="/cookie-policy" rel="nofollow" title="Cookies Policy">clicca qui</a>. Continuando la navigazione acconsenti al loro utilizzo.&nbsp;&nbsp;<a class="close-cookie-banner" href="javascript:void(0);" onclick="lawCookieCompliance.removeMe();"><span>X</span></a></p>';
  		// bodytag.appendChild(div); // Adds the Cookie Law Banner just before the closing </body> tag
  		// or
  		bodytag.insertBefore(div, bodytag.firstChild); // Adds the Cookie Law Banner just after the opening <body> tag
  		document.getElementsByTagName('body')[0].className += ' cookiebanner'; //Adds a class tothe <body> tag when the banner is visible
  		this.createCookie(lawCookieCompliance.cookieName, lawCookieCompliance.cookieValue, lawCookieCompliance.cookieDuration); // Create the cookie
  	},
  
  	createCookie : function(name, value, days) {
  		if (days) {
  			var date = new Date();
  			date.setTime(date.getTime()+(days*24*60*60*1000)); 
  			var expires = "; expires="+date.toGMTString(); 
  		} else var expires = "";
  		if(lawCookieCompliance.dropCookie) { 
  			document.cookie = name+"="+value+expires+"; path=/"; 
  		}
  	},
  
  	checkCookie : function(name) {
  		var nameEQ = name + "=";
  		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,c.length);
  			if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
  		}
  		return null;
  	},
  
  	eraseCookie : function(name) {
  		this.createCookie(name,"",-1);
  	},
  
  	removeMe : function() {
  		var element = document.getElementById('cookie-law');
  		if(element) element.parentNode.removeChild(element);
  	},
  
  	createDivOnLoad : function() {
  		if(this.checkCookie(lawCookieCompliance.cookieName) != lawCookieCompliance.cookieValue){
  			this.createDiv(); 
  		}
  	},
  };
  