<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">

jQuery.loadScript = function (url, callback) {
    jQuery.ajax({
        url: url,
        dataType: 'script',
        success: callback,
        async: false
    });
}

/* -- [ PRELOADER ] --------------------------------------------------------- */
$(window).load(function() {
  $('#status').fadeOut();
  $('#preloader').delay(350).fadeOut('slow');
  //$('body').delay(350).css({'overflow':'visible'});
});

function openshadowtext(mythis)
{
	$("#shadowbox").show();
	$("#centralbox").html("&lt;div class='shadowtext'&gt;"+atob(mythis.attr("shadowtext"))+"&lt;/div&gt;");
}


$('.clicca').bind('click', function(){
  $('#modal1Title').html($(this).data('title'));
  $('#modal1Img').attr('src', $(this).data('img'));
  $('#modal1Desc').html($(this).data('description'));
  
  _id  = ( $(this).data('imgid') );
  _uri = encodeURI('http://www.' + website_domain + '/gallery/' + _id);
  $('#modal_fbLike').html('&lt;div class="fb-like" data-href="' + _uri + '" data-layout="button_count" data-action="like" data-show-faces="false" data-share="true"&gt;&lt;\/div&gt;');
  FB.XFBML.parse();
});

$('#link_1').bind('click', function(){
  var intViewportWidth = window.innerWidth;
  if(intViewportWidth &lt;= 768) {
  
    if ($(this).attr('data-more') === 'false') {
      $('.section_img_1').css('width', '0');
      $('.section_img_1').css('padding-bottom', '0');
      $(this).attr('data-more', 'true');
    } else {
      $('.section_img_1').css('width', '100%');
      $('.section_img_1').css('padding-bottom', '100%');
      $(this).attr('data-more', 'false');
    }
    
  }
  
  if(intViewportWidth &gt; 768) {
  
    if ($(this).attr('data-more') === 'false') {
      $('.section_img_1').css('width', '0');
      $(this).attr('data-more', 'true');
    } else {
      $('.section_img_1').css('width', '100%');
      $(this).attr('data-more', 'false');
    }
    
  }
});

$('#link_2').bind('click', function(){
  if ($(this).attr('data-more') === 'false') {
    $('.section_img_2').css('width', '0');
    $(this).attr('data-more', 'true');
  } else {
    $('.section_img_2').css('width', '100%');
    $(this).attr('data-more', 'false');
  }
});

$('#link').bind('click', function(){
  if ($(this).attr('data-more') === 'false') {
    $('.section_img').css('width', '0');
    $(this).attr('data-more', 'true');
  } else {
    $('.section_img').css('width', '100%');
    $(this).attr('data-more', 'false');
  }
});

/* -- [ MENU SCROLL] -------------------------------------------------------- */

$(document).ready(function() {
  
  $('a[href*="#"]:not([href="#"])').click(function() {
    if (location.pathname.replace(/^\//,'') === this.pathname.replace(/^\//,'') &amp;&amp; location.hostname === this.hostname) {
      var target = $(this.hash);
      target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
      if (target.length) {
        $('html, body').animate({
          scrollTop: target.offset().top
        }, 1000);
        return false;
      }
    }
  });
  

  $("#owa-tracker-post-container").css("display", "none");
});

/* -- [ OWL CAROUSEL ] ------------------------------------------------------ */

$(document).ready(function() {
  
 owlinitialize(); 
  
});

function owlinitialize()
{
		$("#owl-servizi").owlCarousel
		({
			
			// Most important owl features
			items : 3,
			itemsCustom : false,
			itemsDesktop : [1280,3],
			itemsDesktopSmall : [980,3],
			itemsTablet: [768,1],
			itemsTabletSmall: false,
			itemsMobile : [479,1],
			singleItem : false,
			itemsScaleUp : false,
		 
			//Basic Speeds
			slideSpeed : 200,
			paginationSpeed : 800,
			rewindSpeed : 1000,
		 
			//Autoplay
			autoPlay : servicesOwlAutoplay,
			stopOnHover : false,
		 
			// Navigation
			navigation : false,
			navigationText : ["prev","next"],
			rewindNav : true,
			scrollPerPage : false,
		 
			//Pagination
			pagination : true,
			paginationNumbers: false,
		 
			// Responsive 
			responsive: true,
			responsiveRefreshRate : 200,
			responsiveBaseWidth: window

		});
		  
		$("[owl-servizi='true']").owlCarousel
		({
			
			// Most important owl features
			items : 3,
			itemsCustom : false,
			itemsDesktop : [1280,3],
			itemsDesktopSmall : [980,3],
			itemsTablet: [768,1],
			itemsTabletSmall: false,
			itemsMobile : [479,1],
			singleItem : false,
			itemsScaleUp : false,
		 
			//Basic Speeds
			slideSpeed : 200,
			paginationSpeed : 800,
			rewindSpeed : 1000,
		 
			//Autoplay
			autoPlay : servicesOwlAutoplay,
			stopOnHover : false,
		 
			// Navigation
			navigation : false,
			navigationText : ["prev","next"],
			rewindNav : true,
			scrollPerPage : false,
		 
			//Pagination
			pagination : true,
			paginationNumbers: false,
		 
			// Responsive 
			responsive: true,
			responsiveRefreshRate : 200,
			responsiveBaseWidth: window

		});		
		
		$("#owl-slider").owlCarousel
		({
			
			// Most important owl features
			items : 3,
			itemsCustom : false,
			itemsDesktop : [1280,3],
			itemsDesktopSmall : [980,3],
			itemsTablet: [768,1],
			itemsTabletSmall: false,
			itemsMobile : [479,1],
			singleItem : false,
			itemsScaleUp : false,
		 
			//Basic Speeds
			slideSpeed : 200,
			paginationSpeed : 800,
			rewindSpeed : 1000,
		 
			//Autoplay
			autoPlay : servicesOwlAutoplay,
			stopOnHover : false,
		 
			// Navigation
			navigation : false,
			navigationText : ["prev","next"],
			rewindNav : true,
			scrollPerPage : false,
		 
			//Pagination
			pagination : true,
			paginationNumbers: false,
		 
			// Responsive 
			responsive: true,
			responsiveRefreshRate : 200,
			responsiveBaseWidth: window

		}); 
}

/* -- [ COOKIES ALERT ] ----------------------------------------------------- */

$(document).ready(function() {
	if( typeof startcookiesDirective === 'undefined' || startcookiesDirective==true)
	{
		$.cookiesDirective({
				privacyPolicyUri: link_privacy,
				explicitConsent: false,
				position : 'bottom',
				duration: 5,
				scriptWrapper: function(){},
				cookieScripts: null,
				fontFamily: 'helvetica',
				fontColor: '#ffffff',
				fontSize: '13px',
				backgroundColor: '#000000',
				backgroundOpacity: '80',
				linkColor: '#ffffff'
		});
	}
});

/* -- [ DROPDOWN MENU ] ----------------------------------------------------- */

/* nasconde o mostra dropdown a seconda che dropbtn sia visibile o meno */
$( window ).resize(function() {
	if ($('.dropbtn').is(':hidden')) {
		$('.dropdown-content').show();
	} else {
		$('.dropdown-content').hide();
	}
});

/* quando dropbtn Ã¨ visible effettua il toggle al click */
$('.dropdown').click(function() {
	if ($('.dropbtn').is(':visible')) {
		$('.dropdown-content').toggle();
	}
});

/* -- [ MODAL JS ] ---------------------------------------------------------- */

// Get the modal
var modal = $('#myModal');

// Get the image and insert it inside the modal - use its "alt" text as a caption
var img = $('myImg');
var modalImg = $("#img01");
var captionText = $('#caption');

$('div#myImg').bind('click', function() {
    modal.css('display', 'block');
    
    var bg = $(this).css('background-image');
    bg = bg.replace(/.*\s?url\([\'\"]?/, '').replace(/[\'\"]?\).*/, '');
    modalImg.attr('src', bg);
    
    modalImg.attr('alt', $(this).attr('alt'));
    captionText.html($(this).attr('alt'));
});

$('div#myImg').click(function() {
    _id  = ( $(this).data('imageid') );
    _uri = encodeURI('http://www.' + website_domain + '/gallery/' + _id);
    $('#modal_fbLike').html('&lt;div class="fb-like" data-href="' + _uri + '" data-layout="button_count" data-action="like" data-show-faces="false" data-share="true"&gt;&lt;\/div&gt;');
    FB.XFBML.parse();
});

// Get the &lt;span&gt; element that closes the modal
var span = $('.close')[0];

// When the user clicks on &lt;span&gt; (x), close the modal
$('#myModal .close').bind('click', function() { 
  modal.css('display', 'none');
});

/* -- [ News Effect ] ------------------------------------------------------- */

$('.quadrato_news').mouseover(function(){
    $(this).children('.quadrato_mask').css('transform', 'translateY(0)');
    $(this).children('.quadrato_mask').css('opacity', '1');
});

$('.quadrato_news').mouseout(function(){
    $(this).children('.quadrato_mask').css('transform', 'translateY(100%)');
    $(this).children('.quadrato_mask').css('opacity', '0');
});

</pre></body></html>