{"id":3608,"date":"2020-07-30T15:07:31","date_gmt":"2020-07-30T13:07:31","guid":{"rendered":"https:\/\/www.aichiosi.it\/?page_id=3608"},"modified":"2023-07-21T09:22:45","modified_gmt":"2023-07-21T07:22:45","slug":"photo","status":"publish","type":"page","link":"https:\/\/www.aichiosi.it\/en\/photo\/","title":{"rendered":"Photo"},"content":{"rendered":"<h2>Pontremoli<\/h2>\n\n\t\t\n        <script type=\"text\/javascript\">\n            jQuery(function() {\n\t\t\t\t\/\/check if the user made the\n\t\t\t\t\/\/mistake to open it with IE\n\t\t\t\tvar ie \t\t\t= false;\n\t\t\t\tif (jQuery.browser.msie)\n\t\t\t\t\tie = true;\n\t\t\t\t\/\/flag to control the click event\n\t\t\t\tvar flg_click\t= true;\n\t\t\t\t\/\/the wrapper\n                var $im_wrapper\t= jQuery('#merge-gallery-69918');\n\t\t\t\t\/\/the thumbs\n\t\t\t\tvar $thumbs\t\t= $im_wrapper.children('div:not(.gallery_image_width)');\n\t\t\t\t\/\/all the images\n\t\t\t\tvar $thumb_imgs = $thumbs.find('img');\n\t\t\t\t\/\/number of images\n\t\t\t\tvar nmb_thumbs\t= $thumbs.length;\n\t\t\t\t\/\/image loading status\n\t\t\t\tvar $im_loading\t= jQuery('#merge-gallery-69918-nav #im_loading');\n\t\t\t\t\/\/the next and previous buttons\n\t\t\t\tvar $im_next\t= jQuery('#merge-gallery-69918-nav #im_next');\n\t\t\t\tvar $im_prev\t= jQuery('#merge-gallery-69918-nav #im_prev');\n\t\t\t\t\/\/number of thumbs per line\n\t\t\t\tvar per_line\t= 4;\n\t\t\t\t\/\/number of thumbs per column\n\t\t\t\tvar per_col\t\t= Math.ceil(nmb_thumbs\/per_line)\n\t\t\t\t\/\/index of the current thumb\n\t\t\t\tvar current\t\t= -1;\n\t\t\t\t\/\/mode = grid | single\n\t\t\t\tvar mode\t\t= 'grid';\n\t\t\t\tvar $wrapper_width = $im_wrapper.width();\n\t\t\t\t\/\/an array with the positions of the thumbs\n\t\t\t\t\/\/we will use it for the navigation in single mode\n\t\t\t\tvar positionsArray = [];\n\t\t\t\tfor(var i = 0; i < nmb_thumbs; ++i)\n\t\t\t\t\tpositionsArray[i]=i;\n\n\t\t\t\t\/\/ Set container height\n\t\t\t\t$im_wrapper.height((($im_wrapper.find('.gallery_image_width').width()+20) * per_col) + 'px');\n\n\t\t\t\t\/\/preload all the images\n\t\t\t\t$im_loading.css('visibility','visible');\n\t\t\t\tvar loaded\t\t= 0;\n\t\t\t\t$thumb_imgs.each(function(){\n\t\t\t\t\tvar $this = jQuery(this);\n\t\t\t\t\tjQuery('<img\/>').load(function(){\n\t\t\t\t\t\t++loaded;\n\t\t\t\t\t\tif(loaded == nmb_thumbs*2)\n\t\t\t\t\t\t\tstart();\n\t\t\t\t\t}).attr('src',$this.attr('src'));\n\t\t\t\t\tjQuery('<img\/>').load(function(){\n\t\t\t\t\t\t++loaded;\n\t\t\t\t\t\tif(loaded == nmb_thumbs*2)\n\t\t\t\t\t\t\tstart();\n\t\t\t\t\t}).attr('src', $this.parent().attr('href'));\n\t\t\t\t});\n\n\t\t\t\t\/\/starts the animation\n\t\t\t\tfunction start(){\n\t\t\t\t\t$im_loading.css('visibility','hidden');\n\n\t\t\t\t\t$thumbs.css({\n\t\t\t\t\t\t'height' : $im_wrapper.find('.gallery_image_width').width()\n\t\t\t\t\t});\n\t\t\t\t\t\/\/disperse the thumbs in a grid\n\t\t\t\t\tdisperse();\n\t\t\t\t}\n\n\t\t\t\t\/\/disperses the thumbs in a grid based on windows dimentions\n\t\t\t\tfunction disperse(resizing) {\n\t\t\t\t\tif(!flg_click) return;\n\t\t\t\t\tsetflag();\n\t\t\t\t\tremoveNavigation();\n\n\t\t\t\t\t\/\/ Set container height\n\t\t\t\t\t$im_wrapper.height((($im_wrapper.find('.gallery_image_width').width()+20) * per_col) + 'px');\n\n\t\t\t\t\tvar $img_width  = $im_wrapper.find('.gallery_image_width').width();\n\t\t\t\t\t$im_wrapper.find('.gallery_image_width').height($img_width);\n\t\t\t\t\tvar $img_height = $im_wrapper.find('.gallery_image_width').height();\n\t\t\t\t\t$im_wrapper.css('visibility','visible');\n\n\t\t\t\t\tmode = 'grid';\n\n\t\t\t\t\t\/\/center point for first thumb\n\t\t\t\t\tvar spaces_h = 20;\n\n\t\t\t\t\t\/\/lets disperse the thumbs equally on the page\n\t\t\t\t\t$thumbs.each(function(i){\n\t\t\t\t\t\tvar $thumb = jQuery(this);\n\t\t\t\t\t\tvar $image = $thumb.find('img');\n\t\t\t\t\t\tvar spaces_w = ($im_wrapper.width() - (per_line * $thumb.outerWidth())) \/ (per_line-1);\n\n\t\t\t\t\t\t\/*\n\t\t\t\t\t\tcalculate left and top for each thumb,\n\t\t\t\t\t\tconsidering how many we want per line *\/\n\t\t\t\t\t\tvar left = ((spaces_w * (i%per_line)) + ($thumb.outerWidth() * (i%per_line)));\n\t\t\t\t\t\tvar top  = ((($img_height+20) * Math.ceil((i+1)\/per_line)) - ($img_height+20));\n\n\t\t\t\t\t\t\/\/lets give a random degree to each thumb\n\t\t\t\t\t\tvar r = Math.floor(Math.random()*41)-20;\n\t\t\t\t\t\t\/*\n\t\t\t\t\t\tnow we animate the thumb to its final positions;\n\t\t\t\t\t\twe also fade in its image, animate it to 115x115,\n\t\t\t\t\t\tand remove any background image\tof the thumb - this\n\t\t\t\t\t\tis not relevant for the first time we call disperse,\n\t\t\t\t\t\tbut when changing from single to grid mode\n\t\t\t\t\t\t *\/\n\n\t\t\t\t\t\tif(ie) {\n\t\t\t\t\t\t\tvar param = {\n\t\t\t\t\t\t\t\t'padding': '3px',\n\t\t\t\t\t\t\t\t'width'  : $im_wrapper.find('.gallery_image_width').width(),\n\t\t\t\t\t\t\t\t'height' : $im_wrapper.find('.gallery_image_width').height(),\n\t\t\t\t\t\t\t\t'left'   : left + 'px',\n\t\t\t\t\t\t\t\t'top'    : top + 'px'\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tvar param = {\n\t\t\t\t\t\t\t\t'padding': '3px',\n\t\t\t\t\t\t\t\t'width'  : $im_wrapper.find('.gallery_image_width').width(),\n\t\t\t\t\t\t\t\t'height' : $im_wrapper.find('.gallery_image_width').height(),\n\t\t\t\t\t\t\t\t'left'   : left + 'px',\n\t\t\t\t\t\t\t\t'top'    : top + 'px'\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ( resizing == true ) {\n\t\t\t\t\t\t\tvar speed = 0;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tvar speed = 750;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$thumb.stop()\n\t\t\t\t\t\t.animate(param, speed, function() {\n\t\t\t\t\t\t\tif(i==nmb_thumbs-1)\n\t\t\t\t\t\t\t\tsetflag();\n\t\t\t\t\t\t}).find('img').fadeIn(750, function() {\n\t\t\t\t\t\t\t$thumb.css({\n\t\t\t\t\t\t\t\t'background-image' : 'none'\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tjQuery(this).animate({\n\t\t\t\t\t\t\t\t\/*'width' : $image.width(),\n\t\t\t\t\t\t\t\t'height'  : $image.height(),*\/\n\t\t\t\t\t\t\t},150);\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t\t$im_wrapper.find(\".gallery-caption\").show();\n\t\t\t\t}\n\n\t\t\t\t\/\/ On windows resize call the disperse function\n\t\t\t\tfunction on_resize() {\n\t\t\t\t\tif ($wrapper_width != $im_wrapper.width()) {\n\t\t\t\t\t\t$thumbs.css({'width' : $im_wrapper.find('.gallery_image_width').width(), 'height' : $im_wrapper.find('.gallery_image_width').height()});\n\t\t\t\t\t\tdisperse(true);\n\t\t\t\t\t\t$wrapper_width = $im_wrapper.width();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfunction addResizeEvent(func) {\n\t\t\t\t\tvar oldResize = window.onresize;\n\t\t\t\t\twindow.onresize = function () {\n\t\t\t\t\t\tfunc();\n\t\t\t\t\t\tif (typeof oldResize === 'function') {\n\t\t\t\t\t\t\toldResize();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\taddResizeEvent(on_resize);\n\n\t\t\t\t\/\/controls if we can click on the thumbs or not\n\t\t\t\t\/\/if theres an animation in progress\n\t\t\t\t\/\/we don't want the user to be able to click\n\t\t\t\tfunction setflag() {\n\t\t\t\t\tflg_click = !flg_click\n\t\t\t\t}\n\n\t\t\t\t\/*\n\t\t\t\twhen we click on a thumb, we want to merge them\n\t\t\t\tand show the full image that was clicked.\n\t\t\t\twe need to animate the thumbs positions in order\n\t\t\t\tto center the final image in the screen. The\n\t\t\t\timage itself is the background image that each thumb\n\t\t\t\twill have (different background positions)\n\t\t\t\tIf we are currently seeing the single image,\n\t\t\t\tthen we want to disperse the thumbs again,\n\t\t\t\tand with this, showing the thumbs images.\n\t\t\t\t *\/\n\t\t\t\t$thumbs.bind('click',function(){\n\t\t\t\t\tif(!flg_click) return;\n\t\t\t\t\tsetflag();\n\n\t\t\t\t\tvar $this = jQuery(this);\n\t\t\t\t\tcurrent   = $this.index();\n\t\t\t\t\t$thumbs.css('position', 'absolute');\n\t\t\t\t\t$im_wrapper.find(\".gallery-caption\").hide();\n\n\t\t\t\t\tif(mode\t== 'grid') {\n\t\t\t\t\t\tmode = 'single';\n\t\t\t\t\t\t\/\/the source of the full image\n\t\t\t\t\t\tvar image_src\t= $this.find('img').parent().attr('href');\n\n\t\t\t\t\t\t$thumbs.each(function(i){\n\t\t\t\t\t\t\tvar $thumb = jQuery(this);\n\t\t\t\t\t\t\tvar $image = $thumb.find('img');\n\n\t\t\t\t\t\t\t\/\/first we animate the thumb image\n\t\t\t\t\t\t\t\/\/to fill the thumbs dimentions\n\t\t\t\t\t\t\t$image.stop().animate({\n\t\t\t\t\t\t\t\t\/*'width'\t\t: '270px',\n\t\t\t\t\t\t\t\t'height'\t: '270px',*\/\n\t\t\t\t\t\t\t\t'marginTop'\t: '0px',\n\t\t\t\t\t\t\t\t'marginLeft': '0px'\n\t\t\t\t\t\t\t},150,function() {\n\t\t\t\t\t\t\t\t\/\/calculate the dimentions of the full image\n\t\t\t\t\t\t\t\tvar f_w\t= per_line * (270);\n\t\t\t\t\t\t\t\tvar f_h\t= per_col * (270);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tvar f_l = jQuery('.merge-gallery').width()\/2 - f_w\/2\n\t\t\t\t\t\t\t\tvar f_t = $im_wrapper.find('.gallery_image_width').height()\/2 \/*- f_h\/2*\/\n\t\t\t\t\t\t\t\t\/*\n\t\t\t\t\t\t\t\tset the background image for the thumb\n\t\t\t\t\t\t\t\tand animate the thumbs postions and rotation\n\t\t\t\t\t\t\t\t *\/\n\t\t\t\t\t\t\t\tif(ie) {\n\t\t\t\t\t\t\t\t\tvar param = {\n\t\t\t\t\t\t\t\t\t\t'width'  : '270px',\n\t\t\t\t\t\t\t\t\t\t'height' : '270px',\n\t\t\t\t\t\t\t\t\t\t'padding': '0',\n\t\t\t\t\t\t\t\t\t\t'left'   : f_l + (i%per_line)*270 + 'px',\n\t\t\t\t\t\t\t\t\t\t'top'\t   : f_t + Math.floor(i\/per_line)*270 + 'px'\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tvar param = {\n\t\t\t\t\t\t\t\t\t\t'width'  : '270px',\n\t\t\t\t\t\t\t\t\t\t'height' : '270px',\n\t\t\t\t\t\t\t\t\t\t'padding': '0',\n\t\t\t\t\t\t\t\t\t\t'left'   : f_l + (i%per_line)*270 + 'px',\n\t\t\t\t\t\t\t\t\t\t'top'\t   : (f_t + Math.floor(i\/per_line)*270) - (f_t \/ 1.5) + 'px'\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t$thumb.css({\n\t\t\t\t\t\t\t\t\t'background-image' : 'url('+image_src+')',\n\t\t\t\t\t\t\t\t\t'background-size'  : ((270*per_line)) + 'px ' + ((270*per_col)) + 'px'\n\t\t\t\t\t\t\t\t}).stop()\n\t\t\t\t\t\t\t\t.animate(param, 1200, function() {\n\t\t\t\t\t\t\t\t\t\/\/insert navigation for the single mode\n\t\t\t\t\t\t\t\t\tif(i==nmb_thumbs-1) {\n\t\t\t\t\t\t\t\t\t\taddNavigation();\n\t\t\t\t\t\t\t\t\t\tsetflag();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\/\/fade out the thumb's image\n\t\t\t\t\t\t\t\t$image.fadeOut(700);\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsetflag();\n\t\t\t\t\t\t\/\/remove navigation\n\t\t\t\t\t\tremoveNavigation();\n\t\t\t\t\t\t$thumbs.css({'width' : ($im_wrapper.find('.gallery_image_width').width() + 10), 'height' : ($im_wrapper.find('.gallery_image_width').height() + 10)});\n\n\t\t\t\t\t\t\/\/if we are on single mode then disperse the thumbs\n\t\t\t\t\t\tdisperse();\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t\/\/removes the navigation buttons\n\t\t\t\tfunction removeNavigation() {\n\t\t\t\t\t$im_next.stop().animate({'right':'-60px'},300);\n\t\t\t\t\t$im_prev.stop().animate({'left':'-60px'},300);\n\t\t\t\t}\n\n\t\t\t\t\/\/add the navigation buttons\n\t\t\t\tfunction addNavigation() {\n\t\t\t\t\t$im_next.stop().animate({'right':'-2px'},300);\n\t\t\t\t\t$im_prev.stop().animate({'left':'-2px'},300);\n\t\t\t\t}\n\n\t\t\t\t\/\/User clicks next button (single mode)\n\t\t\t\t$im_next.bind('click', function() {\n\t\t\t\t\tif(!flg_click) return;\n\t\t\t\t\tsetflag();\n\n\t\t\t\t\t++current;\n\t\t\t\t\tvar $next_thumb\t= $im_wrapper.children('div:nth-child('+(current+1)+')');\n\t\t\t\t\tif($next_thumb.length>0) {\n\t\t\t\t\t\t$im_wrapper.find(\".gallery-caption\").hide();\n\t\t\t\t\t\tvar image_src\t= $next_thumb.find('img').parent().attr('href');\n\t\t\t\t\t\tvar arr \t\t= Array.shuffle(positionsArray.slice(0));\n\t\t\t\t\t\t$thumbs.each(function(i) {\n\t\t\t\t\t\t\t\/\/we want to change each divs background image\n\t\t\t\t\t\t\t\/\/on a different point of time\n\t\t\t\t\t\t\tvar t = jQuery(this);\n\t\t\t\t\t\t\tsetTimeout(function() {\n\t\t\t\t\t\t\t\tt.css({\n\t\t\t\t\t\t\t\t\t'background-image' : 'url('+image_src+')'\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tif(i == nmb_thumbs-1)\n\t\t\t\t\t\t\t\t\tsetflag();\n\t\t\t\t\t\t\t},arr.shift()*20);\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsetflag();\n\t\t\t\t\t\t--current;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t\/\/User clicks prev button (single mode)\n\t\t\t\t$im_prev.bind('click',function() {\n\t\t\t\t\tif(!flg_click) return;\n\t\t\t\t\tsetflag();\n\t\t\t\t\t--current;\n\t\t\t\t\tvar $prev_thumb\t= $im_wrapper.children('div:nth-child('+(current+1)+'):not(.gallery_image_width)');\n\t\t\t\t\tif($prev_thumb.length>0){\n\t\t\t\t\t\t$im_wrapper.find(\".gallery-caption\").hide();\n\t\t\t\t\t\tvar image_src\t= $prev_thumb.find('img').parent().attr('href');\n\t\t\t\t\t\tvar arr \t\t= Array.shuffle(positionsArray.slice(0));\n\t\t\t\t\t\t$thumbs.each(function(i){\n\t\t\t\t\t\t\tvar t = jQuery(this);\n\t\t\t\t\t\t\tsetTimeout(function(){\n\t\t\t\t\t\t\t\tt.css({\n\t\t\t\t\t\t\t\t\t'background-image' : 'url('+image_src+')'\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tif(i == nmb_thumbs-1)\n\t\t\t\t\t\t\t\t\tsetflag();\n\t\t\t\t\t\t\t},arr.shift()*20);\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsetflag();\n\t\t\t\t\t\t++current;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t\/\/function to shuffle an array\n\t\t\t\tArray.shuffle = function( array ) {\n\t\t\t\t\tfor(\n\t\t\t\t\tvar j, x, i = array.length; i;\n\t\t\t\t\tj = parseInt(Math.random() * i),\n\t\t\t\t\tx = array[--i], array[i] = array[j], array[j] = x\n\t\t\t\t);\n\t\t\t\t\treturn array;\n\t\t\t\t};\n            });\n\n\t\t\tjQuery(document).ready(function() {\n\t\t\t\tjQuery(\".merge-gallery\").click(function(event) {\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t});\n\t\t\t});\n        <\/script>\n        <div id=\"merge-gallery-69918\" class=\"merge-gallery galleryid-3608 gallery-columns-4 gallery-size-gallery-large\"><div class=\"span3 gallery_image_width\"><\/div><div style=\"background-position: -0px -0px;\" class='span3 '>\n\t\t\t\t\t<a href=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-2.2-Teatro-La-Rosa-e-Busticca1-1024x682.jpg\" class=\"no_thickbox\"><img loading=\"lazy\" decoding=\"async\" width=\"270\" height=\"270\" src=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-2.2-Teatro-La-Rosa-e-Busticca1-270x270.jpg\" class=\"span3\" alt=\"\" srcset=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-2.2-Teatro-La-Rosa-e-Busticca1-270x270.jpg 270w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-2.2-Teatro-La-Rosa-e-Busticca1-150x150.jpg 150w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-2.2-Teatro-La-Rosa-e-Busticca1-125x125.jpg 125w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-2.2-Teatro-La-Rosa-e-Busticca1-70x70.jpg 70w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a>\n\t\t\t\t\t<span class='wp-caption-text gallery-caption' style='bottom: 420px'>\n\t\t\t\t\t\t<span>Teatro La Rosa e la torre di Busticca<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t<\/div><div style=\"background-position: -270px -0px;\" class='span3 '>\n\t\t\t\t\t<a href=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-46.1-Piscina-Country-club-1024x682.jpg\" class=\"no_thickbox\"><img loading=\"lazy\" decoding=\"async\" width=\"270\" height=\"270\" src=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-46.1-Piscina-Country-club-270x270.jpg\" class=\"span3\" alt=\"\" srcset=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-46.1-Piscina-Country-club-270x270.jpg 270w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-46.1-Piscina-Country-club-150x150.jpg 150w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-46.1-Piscina-Country-club-125x125.jpg 125w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-46.1-Piscina-Country-club-70x70.jpg 70w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a>\n\t\t\t\t\t<span class='wp-caption-text gallery-caption' style='bottom: 420px'>\n\t\t\t\t\t\t<span>Piscina Country club<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t<\/div><div style=\"background-position: -540px -0px;\" class='span3 '>\n\t\t\t\t\t<a href=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-8.2-Ponte-Dosi-1024x682.jpg\" class=\"no_thickbox\"><img loading=\"lazy\" decoding=\"async\" width=\"270\" height=\"270\" src=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-8.2-Ponte-Dosi-270x270.jpg\" class=\"span3\" alt=\"\" srcset=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-8.2-Ponte-Dosi-270x270.jpg 270w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-8.2-Ponte-Dosi-150x150.jpg 150w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-8.2-Ponte-Dosi-125x125.jpg 125w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-8.2-Ponte-Dosi-70x70.jpg 70w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a>\n\t\t\t\t\t<span class='wp-caption-text gallery-caption' style='bottom: 420px'>\n\t\t\t\t\t\t<span>Ponte Dosi &#8211; Pontremoli<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t<\/div><div style=\"background-position: -810px -0px;\" class='span3  last'>\n\t\t\t\t\t<a href=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-12.3-Centro-storico-visto-dal-Castello-del-Piagnaro-1024x682.jpg\" class=\"no_thickbox\"><img loading=\"lazy\" decoding=\"async\" width=\"270\" height=\"270\" src=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-12.3-Centro-storico-visto-dal-Castello-del-Piagnaro-270x270.jpg\" class=\"span3\" alt=\"\" srcset=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-12.3-Centro-storico-visto-dal-Castello-del-Piagnaro-270x270.jpg 270w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-12.3-Centro-storico-visto-dal-Castello-del-Piagnaro-150x150.jpg 150w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-12.3-Centro-storico-visto-dal-Castello-del-Piagnaro-125x125.jpg 125w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-12.3-Centro-storico-visto-dal-Castello-del-Piagnaro-70x70.jpg 70w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a>\n\t\t\t\t\t<span class='wp-caption-text gallery-caption' style='bottom: 420px'>\n\t\t\t\t\t\t<span>Centro storico di Pontremoli visto dal Castello del Piagnaro<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t<\/div><div style=\"background-position: -0px -270px;\" class='span3 '>\n\t\t\t\t\t<a href=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/Giardini-della-Torre.jpg\" class=\"no_thickbox\"><img loading=\"lazy\" decoding=\"async\" width=\"270\" height=\"270\" src=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/Giardini-della-Torre-270x270.jpg\" class=\"span3\" alt=\"\" srcset=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/Giardini-della-Torre-270x270.jpg 270w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/Giardini-della-Torre-150x150.jpg 150w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/Giardini-della-Torre-125x125.jpg 125w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/Giardini-della-Torre-70x70.jpg 70w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a>\n\t\t\t\t\t<span class='wp-caption-text gallery-caption' style='bottom: 420px'>\n\t\t\t\t\t\t<span>Chiesa di Nostra Donna e Giardini della Torre<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t<\/div><div style=\"background-position: -270px -270px;\" class='span3 '>\n\t\t\t\t\t<a href=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-27-Ponte-di-Imoborgo-1024x682.jpg\" class=\"no_thickbox\"><img loading=\"lazy\" decoding=\"async\" width=\"270\" height=\"270\" src=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-27-Ponte-di-Imoborgo-270x270.jpg\" class=\"span3\" alt=\"\" srcset=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-27-Ponte-di-Imoborgo-270x270.jpg 270w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-27-Ponte-di-Imoborgo-150x150.jpg 150w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-27-Ponte-di-Imoborgo-125x125.jpg 125w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-27-Ponte-di-Imoborgo-70x70.jpg 70w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a>\n\t\t\t\t\t<span class='wp-caption-text gallery-caption' style='bottom: 420px'>\n\t\t\t\t\t\t<span>Ponte di Imoborgo &#8211; Pontremoli<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t<\/div><div style=\"background-position: -540px -270px;\" class='span3 '>\n\t\t\t\t\t<a href=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-31.2-Entrata-nel-centro-storico-dal-ponte-della-Creusa-1024x682.jpg\" class=\"no_thickbox\"><img loading=\"lazy\" decoding=\"async\" width=\"270\" height=\"270\" src=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-31.2-Entrata-nel-centro-storico-dal-ponte-della-Creusa-270x270.jpg\" class=\"span3\" alt=\"\" srcset=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-31.2-Entrata-nel-centro-storico-dal-ponte-della-Creusa-270x270.jpg 270w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-31.2-Entrata-nel-centro-storico-dal-ponte-della-Creusa-150x150.jpg 150w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-31.2-Entrata-nel-centro-storico-dal-ponte-della-Creusa-125x125.jpg 125w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-31.2-Entrata-nel-centro-storico-dal-ponte-della-Creusa-70x70.jpg 70w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a>\n\t\t\t\t\t<span class='wp-caption-text gallery-caption' style='bottom: 420px'>\n\t\t\t\t\t\t<span>Entrata nel centro storico dal ponte della Cresa<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t<\/div><div style=\"background-position: -810px -270px;\" class='span3  last'>\n\t\t\t\t\t<a href=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-33.11-Palazzo-Pavesi-salone-1024x682.jpg\" class=\"no_thickbox\"><img loading=\"lazy\" decoding=\"async\" width=\"270\" height=\"270\" src=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-33.11-Palazzo-Pavesi-salone-270x270.jpg\" class=\"span3\" alt=\"\" srcset=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-33.11-Palazzo-Pavesi-salone-270x270.jpg 270w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-33.11-Palazzo-Pavesi-salone-150x150.jpg 150w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-33.11-Palazzo-Pavesi-salone-125x125.jpg 125w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-33.11-Palazzo-Pavesi-salone-70x70.jpg 70w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a>\n\t\t\t\t\t<span class='wp-caption-text gallery-caption' style='bottom: 420px'>\n\t\t\t\t\t\t<span>Il salone del Palazzo Pavesi &#8211; Pontremoli<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t<\/div><div style=\"background-position: -0px -540px;\" class='span3 '>\n\t\t\t\t\t<a href=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-3-Da-Porta-Parma-1024x682.jpg\" class=\"no_thickbox\"><img loading=\"lazy\" decoding=\"async\" width=\"270\" height=\"270\" src=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-3-Da-Porta-Parma-270x270.jpg\" class=\"span3\" alt=\"\" srcset=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-3-Da-Porta-Parma-270x270.jpg 270w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-3-Da-Porta-Parma-150x150.jpg 150w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-3-Da-Porta-Parma-125x125.jpg 125w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-3-Da-Porta-Parma-70x70.jpg 70w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a>\n\t\t\t\t\t<span class='wp-caption-text gallery-caption' style='bottom: 420px'>\n\t\t\t\t\t\t<span>Pontremoli &#8211; Da Porta Parma<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t<\/div><div style=\"background-position: -270px -540px;\" class='span3 '>\n\t\t\t\t\t<a href=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/Pontremoli-Campanun.jpg\" class=\"no_thickbox\"><img loading=\"lazy\" decoding=\"async\" width=\"270\" height=\"270\" src=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/Pontremoli-Campanun-270x270.jpg\" class=\"span3\" alt=\"\" srcset=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/Pontremoli-Campanun-270x270.jpg 270w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/Pontremoli-Campanun-150x150.jpg 150w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/Pontremoli-Campanun-125x125.jpg 125w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/Pontremoli-Campanun-70x70.jpg 70w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a>\n\t\t\t\t\t<span class='wp-caption-text gallery-caption' style='bottom: 420px'>\n\t\t\t\t\t\t<span>Pontremoli &#8211; il Campanun, la torre campanaria della citt\u00e0<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t<\/div><div style=\"background-position: -540px -540px;\" class='span3 '>\n\t\t\t\t\t<a href=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/Neve-nel-viale-dei-chiosi-1024x683.jpg\" class=\"no_thickbox\"><img loading=\"lazy\" decoding=\"async\" width=\"270\" height=\"270\" src=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/Neve-nel-viale-dei-chiosi-270x270.jpg\" class=\"span3\" alt=\"\" srcset=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/Neve-nel-viale-dei-chiosi-270x270.jpg 270w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/Neve-nel-viale-dei-chiosi-150x150.jpg 150w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/Neve-nel-viale-dei-chiosi-125x125.jpg 125w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/Neve-nel-viale-dei-chiosi-70x70.jpg 70w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a>\n\t\t\t\t\t<span class='wp-caption-text gallery-caption' style='bottom: 420px'>\n\t\t\t\t\t\t<span>Neve nel viale dei chiosi<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t<\/div>\n\t\t\t<br style='clear: both;' \/>\n\t\t<\/div>\n\n\t\t<div id=\"merge-gallery-69918-nav\" style=\"position: relative;\">\n\t\t\t<div id=\"im_loading\" class=\"im_loading\"><\/div>\n\t\t\t<div id=\"im_next\" class=\"im_next\"><\/div>\n\t\t\t<div id=\"im_prev\" class=\"im_prev\"><\/div>\n\t\t<\/div>\n<div class=\"divider type_3\"><\/div>\n<h2>Lunigiana<\/h2>\n\n\t\t\n        <script type=\"text\/javascript\">\n            jQuery(function() {\n\t\t\t\t\/\/check if the user made the\n\t\t\t\t\/\/mistake to open it with IE\n\t\t\t\tvar ie \t\t\t= false;\n\t\t\t\tif (jQuery.browser.msie)\n\t\t\t\t\tie = true;\n\t\t\t\t\/\/flag to control the click event\n\t\t\t\tvar flg_click\t= true;\n\t\t\t\t\/\/the wrapper\n                var $im_wrapper\t= jQuery('#merge-gallery-89739');\n\t\t\t\t\/\/the thumbs\n\t\t\t\tvar $thumbs\t\t= $im_wrapper.children('div:not(.gallery_image_width)');\n\t\t\t\t\/\/all the images\n\t\t\t\tvar $thumb_imgs = $thumbs.find('img');\n\t\t\t\t\/\/number of images\n\t\t\t\tvar nmb_thumbs\t= $thumbs.length;\n\t\t\t\t\/\/image loading status\n\t\t\t\tvar $im_loading\t= jQuery('#merge-gallery-89739-nav #im_loading');\n\t\t\t\t\/\/the next and previous buttons\n\t\t\t\tvar $im_next\t= jQuery('#merge-gallery-89739-nav #im_next');\n\t\t\t\tvar $im_prev\t= jQuery('#merge-gallery-89739-nav #im_prev');\n\t\t\t\t\/\/number of thumbs per line\n\t\t\t\tvar per_line\t= 4;\n\t\t\t\t\/\/number of thumbs per column\n\t\t\t\tvar per_col\t\t= Math.ceil(nmb_thumbs\/per_line)\n\t\t\t\t\/\/index of the current thumb\n\t\t\t\tvar current\t\t= -1;\n\t\t\t\t\/\/mode = grid | single\n\t\t\t\tvar mode\t\t= 'grid';\n\t\t\t\tvar $wrapper_width = $im_wrapper.width();\n\t\t\t\t\/\/an array with the positions of the thumbs\n\t\t\t\t\/\/we will use it for the navigation in single mode\n\t\t\t\tvar positionsArray = [];\n\t\t\t\tfor(var i = 0; i < nmb_thumbs; ++i)\n\t\t\t\t\tpositionsArray[i]=i;\n\n\t\t\t\t\/\/ Set container height\n\t\t\t\t$im_wrapper.height((($im_wrapper.find('.gallery_image_width').width()+20) * per_col) + 'px');\n\n\t\t\t\t\/\/preload all the images\n\t\t\t\t$im_loading.css('visibility','visible');\n\t\t\t\tvar loaded\t\t= 0;\n\t\t\t\t$thumb_imgs.each(function(){\n\t\t\t\t\tvar $this = jQuery(this);\n\t\t\t\t\tjQuery('<img\/>').load(function(){\n\t\t\t\t\t\t++loaded;\n\t\t\t\t\t\tif(loaded == nmb_thumbs*2)\n\t\t\t\t\t\t\tstart();\n\t\t\t\t\t}).attr('src',$this.attr('src'));\n\t\t\t\t\tjQuery('<img\/>').load(function(){\n\t\t\t\t\t\t++loaded;\n\t\t\t\t\t\tif(loaded == nmb_thumbs*2)\n\t\t\t\t\t\t\tstart();\n\t\t\t\t\t}).attr('src', $this.parent().attr('href'));\n\t\t\t\t});\n\n\t\t\t\t\/\/starts the animation\n\t\t\t\tfunction start(){\n\t\t\t\t\t$im_loading.css('visibility','hidden');\n\n\t\t\t\t\t$thumbs.css({\n\t\t\t\t\t\t'height' : $im_wrapper.find('.gallery_image_width').width()\n\t\t\t\t\t});\n\t\t\t\t\t\/\/disperse the thumbs in a grid\n\t\t\t\t\tdisperse();\n\t\t\t\t}\n\n\t\t\t\t\/\/disperses the thumbs in a grid based on windows dimentions\n\t\t\t\tfunction disperse(resizing) {\n\t\t\t\t\tif(!flg_click) return;\n\t\t\t\t\tsetflag();\n\t\t\t\t\tremoveNavigation();\n\n\t\t\t\t\t\/\/ Set container height\n\t\t\t\t\t$im_wrapper.height((($im_wrapper.find('.gallery_image_width').width()+20) * per_col) + 'px');\n\n\t\t\t\t\tvar $img_width  = $im_wrapper.find('.gallery_image_width').width();\n\t\t\t\t\t$im_wrapper.find('.gallery_image_width').height($img_width);\n\t\t\t\t\tvar $img_height = $im_wrapper.find('.gallery_image_width').height();\n\t\t\t\t\t$im_wrapper.css('visibility','visible');\n\n\t\t\t\t\tmode = 'grid';\n\n\t\t\t\t\t\/\/center point for first thumb\n\t\t\t\t\tvar spaces_h = 20;\n\n\t\t\t\t\t\/\/lets disperse the thumbs equally on the page\n\t\t\t\t\t$thumbs.each(function(i){\n\t\t\t\t\t\tvar $thumb = jQuery(this);\n\t\t\t\t\t\tvar $image = $thumb.find('img');\n\t\t\t\t\t\tvar spaces_w = ($im_wrapper.width() - (per_line * $thumb.outerWidth())) \/ (per_line-1);\n\n\t\t\t\t\t\t\/*\n\t\t\t\t\t\tcalculate left and top for each thumb,\n\t\t\t\t\t\tconsidering how many we want per line *\/\n\t\t\t\t\t\tvar left = ((spaces_w * (i%per_line)) + ($thumb.outerWidth() * (i%per_line)));\n\t\t\t\t\t\tvar top  = ((($img_height+20) * Math.ceil((i+1)\/per_line)) - ($img_height+20));\n\n\t\t\t\t\t\t\/\/lets give a random degree to each thumb\n\t\t\t\t\t\tvar r = Math.floor(Math.random()*41)-20;\n\t\t\t\t\t\t\/*\n\t\t\t\t\t\tnow we animate the thumb to its final positions;\n\t\t\t\t\t\twe also fade in its image, animate it to 115x115,\n\t\t\t\t\t\tand remove any background image\tof the thumb - this\n\t\t\t\t\t\tis not relevant for the first time we call disperse,\n\t\t\t\t\t\tbut when changing from single to grid mode\n\t\t\t\t\t\t *\/\n\n\t\t\t\t\t\tif(ie) {\n\t\t\t\t\t\t\tvar param = {\n\t\t\t\t\t\t\t\t'padding': '3px',\n\t\t\t\t\t\t\t\t'width'  : $im_wrapper.find('.gallery_image_width').width(),\n\t\t\t\t\t\t\t\t'height' : $im_wrapper.find('.gallery_image_width').height(),\n\t\t\t\t\t\t\t\t'left'   : left + 'px',\n\t\t\t\t\t\t\t\t'top'    : top + 'px'\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tvar param = {\n\t\t\t\t\t\t\t\t'padding': '3px',\n\t\t\t\t\t\t\t\t'width'  : $im_wrapper.find('.gallery_image_width').width(),\n\t\t\t\t\t\t\t\t'height' : $im_wrapper.find('.gallery_image_width').height(),\n\t\t\t\t\t\t\t\t'left'   : left + 'px',\n\t\t\t\t\t\t\t\t'top'    : top + 'px'\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ( resizing == true ) {\n\t\t\t\t\t\t\tvar speed = 0;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tvar speed = 750;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$thumb.stop()\n\t\t\t\t\t\t.animate(param, speed, function() {\n\t\t\t\t\t\t\tif(i==nmb_thumbs-1)\n\t\t\t\t\t\t\t\tsetflag();\n\t\t\t\t\t\t}).find('img').fadeIn(750, function() {\n\t\t\t\t\t\t\t$thumb.css({\n\t\t\t\t\t\t\t\t'background-image' : 'none'\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tjQuery(this).animate({\n\t\t\t\t\t\t\t\t\/*'width' : $image.width(),\n\t\t\t\t\t\t\t\t'height'  : $image.height(),*\/\n\t\t\t\t\t\t\t},150);\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t\t$im_wrapper.find(\".gallery-caption\").show();\n\t\t\t\t}\n\n\t\t\t\t\/\/ On windows resize call the disperse function\n\t\t\t\tfunction on_resize() {\n\t\t\t\t\tif ($wrapper_width != $im_wrapper.width()) {\n\t\t\t\t\t\t$thumbs.css({'width' : $im_wrapper.find('.gallery_image_width').width(), 'height' : $im_wrapper.find('.gallery_image_width').height()});\n\t\t\t\t\t\tdisperse(true);\n\t\t\t\t\t\t$wrapper_width = $im_wrapper.width();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfunction addResizeEvent(func) {\n\t\t\t\t\tvar oldResize = window.onresize;\n\t\t\t\t\twindow.onresize = function () {\n\t\t\t\t\t\tfunc();\n\t\t\t\t\t\tif (typeof oldResize === 'function') {\n\t\t\t\t\t\t\toldResize();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\taddResizeEvent(on_resize);\n\n\t\t\t\t\/\/controls if we can click on the thumbs or not\n\t\t\t\t\/\/if theres an animation in progress\n\t\t\t\t\/\/we don't want the user to be able to click\n\t\t\t\tfunction setflag() {\n\t\t\t\t\tflg_click = !flg_click\n\t\t\t\t}\n\n\t\t\t\t\/*\n\t\t\t\twhen we click on a thumb, we want to merge them\n\t\t\t\tand show the full image that was clicked.\n\t\t\t\twe need to animate the thumbs positions in order\n\t\t\t\tto center the final image in the screen. The\n\t\t\t\timage itself is the background image that each thumb\n\t\t\t\twill have (different background positions)\n\t\t\t\tIf we are currently seeing the single image,\n\t\t\t\tthen we want to disperse the thumbs again,\n\t\t\t\tand with this, showing the thumbs images.\n\t\t\t\t *\/\n\t\t\t\t$thumbs.bind('click',function(){\n\t\t\t\t\tif(!flg_click) return;\n\t\t\t\t\tsetflag();\n\n\t\t\t\t\tvar $this = jQuery(this);\n\t\t\t\t\tcurrent   = $this.index();\n\t\t\t\t\t$thumbs.css('position', 'absolute');\n\t\t\t\t\t$im_wrapper.find(\".gallery-caption\").hide();\n\n\t\t\t\t\tif(mode\t== 'grid') {\n\t\t\t\t\t\tmode = 'single';\n\t\t\t\t\t\t\/\/the source of the full image\n\t\t\t\t\t\tvar image_src\t= $this.find('img').parent().attr('href');\n\n\t\t\t\t\t\t$thumbs.each(function(i){\n\t\t\t\t\t\t\tvar $thumb = jQuery(this);\n\t\t\t\t\t\t\tvar $image = $thumb.find('img');\n\n\t\t\t\t\t\t\t\/\/first we animate the thumb image\n\t\t\t\t\t\t\t\/\/to fill the thumbs dimentions\n\t\t\t\t\t\t\t$image.stop().animate({\n\t\t\t\t\t\t\t\t\/*'width'\t\t: '270px',\n\t\t\t\t\t\t\t\t'height'\t: '270px',*\/\n\t\t\t\t\t\t\t\t'marginTop'\t: '0px',\n\t\t\t\t\t\t\t\t'marginLeft': '0px'\n\t\t\t\t\t\t\t},150,function() {\n\t\t\t\t\t\t\t\t\/\/calculate the dimentions of the full image\n\t\t\t\t\t\t\t\tvar f_w\t= per_line * (270);\n\t\t\t\t\t\t\t\tvar f_h\t= per_col * (270);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tvar f_l = jQuery('.merge-gallery').width()\/2 - f_w\/2\n\t\t\t\t\t\t\t\tvar f_t = $im_wrapper.find('.gallery_image_width').height()\/2 \/*- f_h\/2*\/\n\t\t\t\t\t\t\t\t\/*\n\t\t\t\t\t\t\t\tset the background image for the thumb\n\t\t\t\t\t\t\t\tand animate the thumbs postions and rotation\n\t\t\t\t\t\t\t\t *\/\n\t\t\t\t\t\t\t\tif(ie) {\n\t\t\t\t\t\t\t\t\tvar param = {\n\t\t\t\t\t\t\t\t\t\t'width'  : '270px',\n\t\t\t\t\t\t\t\t\t\t'height' : '270px',\n\t\t\t\t\t\t\t\t\t\t'padding': '0',\n\t\t\t\t\t\t\t\t\t\t'left'   : f_l + (i%per_line)*270 + 'px',\n\t\t\t\t\t\t\t\t\t\t'top'\t   : f_t + Math.floor(i\/per_line)*270 + 'px'\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tvar param = {\n\t\t\t\t\t\t\t\t\t\t'width'  : '270px',\n\t\t\t\t\t\t\t\t\t\t'height' : '270px',\n\t\t\t\t\t\t\t\t\t\t'padding': '0',\n\t\t\t\t\t\t\t\t\t\t'left'   : f_l + (i%per_line)*270 + 'px',\n\t\t\t\t\t\t\t\t\t\t'top'\t   : (f_t + Math.floor(i\/per_line)*270) - (f_t \/ 1.5) + 'px'\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t$thumb.css({\n\t\t\t\t\t\t\t\t\t'background-image' : 'url('+image_src+')',\n\t\t\t\t\t\t\t\t\t'background-size'  : ((270*per_line)) + 'px ' + ((270*per_col)) + 'px'\n\t\t\t\t\t\t\t\t}).stop()\n\t\t\t\t\t\t\t\t.animate(param, 1200, function() {\n\t\t\t\t\t\t\t\t\t\/\/insert navigation for the single mode\n\t\t\t\t\t\t\t\t\tif(i==nmb_thumbs-1) {\n\t\t\t\t\t\t\t\t\t\taddNavigation();\n\t\t\t\t\t\t\t\t\t\tsetflag();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\/\/fade out the thumb's image\n\t\t\t\t\t\t\t\t$image.fadeOut(700);\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsetflag();\n\t\t\t\t\t\t\/\/remove navigation\n\t\t\t\t\t\tremoveNavigation();\n\t\t\t\t\t\t$thumbs.css({'width' : ($im_wrapper.find('.gallery_image_width').width() + 10), 'height' : ($im_wrapper.find('.gallery_image_width').height() + 10)});\n\n\t\t\t\t\t\t\/\/if we are on single mode then disperse the thumbs\n\t\t\t\t\t\tdisperse();\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t\/\/removes the navigation buttons\n\t\t\t\tfunction removeNavigation() {\n\t\t\t\t\t$im_next.stop().animate({'right':'-60px'},300);\n\t\t\t\t\t$im_prev.stop().animate({'left':'-60px'},300);\n\t\t\t\t}\n\n\t\t\t\t\/\/add the navigation buttons\n\t\t\t\tfunction addNavigation() {\n\t\t\t\t\t$im_next.stop().animate({'right':'-2px'},300);\n\t\t\t\t\t$im_prev.stop().animate({'left':'-2px'},300);\n\t\t\t\t}\n\n\t\t\t\t\/\/User clicks next button (single mode)\n\t\t\t\t$im_next.bind('click', function() {\n\t\t\t\t\tif(!flg_click) return;\n\t\t\t\t\tsetflag();\n\n\t\t\t\t\t++current;\n\t\t\t\t\tvar $next_thumb\t= $im_wrapper.children('div:nth-child('+(current+1)+')');\n\t\t\t\t\tif($next_thumb.length>0) {\n\t\t\t\t\t\t$im_wrapper.find(\".gallery-caption\").hide();\n\t\t\t\t\t\tvar image_src\t= $next_thumb.find('img').parent().attr('href');\n\t\t\t\t\t\tvar arr \t\t= Array.shuffle(positionsArray.slice(0));\n\t\t\t\t\t\t$thumbs.each(function(i) {\n\t\t\t\t\t\t\t\/\/we want to change each divs background image\n\t\t\t\t\t\t\t\/\/on a different point of time\n\t\t\t\t\t\t\tvar t = jQuery(this);\n\t\t\t\t\t\t\tsetTimeout(function() {\n\t\t\t\t\t\t\t\tt.css({\n\t\t\t\t\t\t\t\t\t'background-image' : 'url('+image_src+')'\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tif(i == nmb_thumbs-1)\n\t\t\t\t\t\t\t\t\tsetflag();\n\t\t\t\t\t\t\t},arr.shift()*20);\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsetflag();\n\t\t\t\t\t\t--current;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t\/\/User clicks prev button (single mode)\n\t\t\t\t$im_prev.bind('click',function() {\n\t\t\t\t\tif(!flg_click) return;\n\t\t\t\t\tsetflag();\n\t\t\t\t\t--current;\n\t\t\t\t\tvar $prev_thumb\t= $im_wrapper.children('div:nth-child('+(current+1)+'):not(.gallery_image_width)');\n\t\t\t\t\tif($prev_thumb.length>0){\n\t\t\t\t\t\t$im_wrapper.find(\".gallery-caption\").hide();\n\t\t\t\t\t\tvar image_src\t= $prev_thumb.find('img').parent().attr('href');\n\t\t\t\t\t\tvar arr \t\t= Array.shuffle(positionsArray.slice(0));\n\t\t\t\t\t\t$thumbs.each(function(i){\n\t\t\t\t\t\t\tvar t = jQuery(this);\n\t\t\t\t\t\t\tsetTimeout(function(){\n\t\t\t\t\t\t\t\tt.css({\n\t\t\t\t\t\t\t\t\t'background-image' : 'url('+image_src+')'\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tif(i == nmb_thumbs-1)\n\t\t\t\t\t\t\t\t\tsetflag();\n\t\t\t\t\t\t\t},arr.shift()*20);\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsetflag();\n\t\t\t\t\t\t++current;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t\/\/function to shuffle an array\n\t\t\t\tArray.shuffle = function( array ) {\n\t\t\t\t\tfor(\n\t\t\t\t\tvar j, x, i = array.length; i;\n\t\t\t\t\tj = parseInt(Math.random() * i),\n\t\t\t\t\tx = array[--i], array[i] = array[j], array[j] = x\n\t\t\t\t);\n\t\t\t\t\treturn array;\n\t\t\t\t};\n            });\n\n\t\t\tjQuery(document).ready(function() {\n\t\t\t\tjQuery(\".merge-gallery\").click(function(event) {\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t});\n\t\t\t});\n        <\/script>\n        <div id=\"merge-gallery-89739\" class=\"merge-gallery galleryid-3608 gallery-columns-4 gallery-size-gallery-large\"><div class=\"span3 gallery_image_width\"><\/div><div style=\"background-position: -0px -0px;\" class='span3 '>\n\t\t\t\t\t<a href=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/2-0-Cervara-Lago-Verde-1024x682.jpg\" class=\"no_thickbox\"><img loading=\"lazy\" decoding=\"async\" width=\"270\" height=\"270\" src=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/2-0-Cervara-Lago-Verde-270x270.jpg\" class=\"span3\" alt=\"\" srcset=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/2-0-Cervara-Lago-Verde-270x270.jpg 270w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/2-0-Cervara-Lago-Verde-150x150.jpg 150w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/2-0-Cervara-Lago-Verde-125x125.jpg 125w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/2-0-Cervara-Lago-Verde-70x70.jpg 70w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a>\n\t\t\t\t\t<span class='wp-caption-text gallery-caption' style='bottom: 420px'>\n\t\t\t\t\t\t<span>Il Lago Verde di Cervara<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t<\/div><div style=\"background-position: -270px -0px;\" class='span3 '>\n\t\t\t\t\t<a href=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/3-4.1-Pieve-di-S.-Stefano-Sorano-1024x682.jpg\" class=\"no_thickbox\"><img loading=\"lazy\" decoding=\"async\" width=\"270\" height=\"270\" src=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/3-4.1-Pieve-di-S.-Stefano-Sorano-270x270.jpg\" class=\"span3\" alt=\"\" srcset=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/3-4.1-Pieve-di-S.-Stefano-Sorano-270x270.jpg 270w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/3-4.1-Pieve-di-S.-Stefano-Sorano-150x150.jpg 150w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/3-4.1-Pieve-di-S.-Stefano-Sorano-125x125.jpg 125w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/3-4.1-Pieve-di-S.-Stefano-Sorano-70x70.jpg 70w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a>\n\t\t\t\t\t<span class='wp-caption-text gallery-caption' style='bottom: 420px'>\n\t\t\t\t\t\t<span>La Pieve di S. Stefano (Sorano)<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t<\/div><div style=\"background-position: -540px -0px;\" class='span3 '>\n\t\t\t\t\t<a href=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/5.9.4-Filetto-1024x768.jpg\" class=\"no_thickbox\"><img loading=\"lazy\" decoding=\"async\" width=\"270\" height=\"270\" src=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/5.9.4-Filetto-270x270.jpg\" class=\"span3\" alt=\"\" srcset=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/5.9.4-Filetto-270x270.jpg 270w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/5.9.4-Filetto-150x150.jpg 150w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/5.9.4-Filetto-125x125.jpg 125w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/5.9.4-Filetto-70x70.jpg 70w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a>\n\t\t\t\t\t<span class='wp-caption-text gallery-caption' style='bottom: 420px'>\n\t\t\t\t\t\t<span>Filetto<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t<\/div><div style=\"background-position: -810px -0px;\" class='span3  last'>\n\t\t\t\t\t<a href=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/10-1-Aulla-Fortezza-della-Brunella-1024x682.jpg\" class=\"no_thickbox\"><img loading=\"lazy\" decoding=\"async\" width=\"270\" height=\"270\" src=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/10-1-Aulla-Fortezza-della-Brunella-270x270.jpg\" class=\"span3\" alt=\"\" srcset=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/10-1-Aulla-Fortezza-della-Brunella-270x270.jpg 270w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/10-1-Aulla-Fortezza-della-Brunella-150x150.jpg 150w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/10-1-Aulla-Fortezza-della-Brunella-125x125.jpg 125w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/10-1-Aulla-Fortezza-della-Brunella-70x70.jpg 70w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a>\n\t\t\t\t\t<span class='wp-caption-text gallery-caption' style='bottom: 420px'>\n\t\t\t\t\t\t<span>Aulla &#8211; la Fortezza della Brunella<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t<\/div><div style=\"background-position: -0px -270px;\" class='span3 '>\n\t\t\t\t\t<a href=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/3-8.5-Prati-di-Logarghena-1024x682.jpg\" class=\"no_thickbox\"><img loading=\"lazy\" decoding=\"async\" width=\"270\" height=\"270\" src=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/3-8.5-Prati-di-Logarghena-270x270.jpg\" class=\"span3\" alt=\"\" srcset=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/3-8.5-Prati-di-Logarghena-270x270.jpg 270w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/3-8.5-Prati-di-Logarghena-150x150.jpg 150w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/3-8.5-Prati-di-Logarghena-125x125.jpg 125w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/3-8.5-Prati-di-Logarghena-70x70.jpg 70w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a>\n\t\t\t\t\t<span class='wp-caption-text gallery-caption' style='bottom: 420px'>\n\t\t\t\t\t\t<span>I Prati di Logarghena<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t<\/div><div style=\"background-position: -270px -270px;\" class='span3 '>\n\t\t\t\t\t<a href=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/8-5-Castevoli-Panorama-1024x682.jpg\" class=\"no_thickbox\"><img loading=\"lazy\" decoding=\"async\" width=\"270\" height=\"270\" src=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/8-5-Castevoli-Panorama-270x270.jpg\" class=\"span3\" alt=\"\" srcset=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/8-5-Castevoli-Panorama-270x270.jpg 270w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/8-5-Castevoli-Panorama-150x150.jpg 150w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/8-5-Castevoli-Panorama-125x125.jpg 125w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/8-5-Castevoli-Panorama-70x70.jpg 70w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a>\n\t\t\t\t\t<span class='wp-caption-text gallery-caption' style='bottom: 420px'>\n\t\t\t\t\t\t<span>Il panorama di Castevoli<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t<\/div><div style=\"background-position: -540px -270px;\" class='span3 '>\n\t\t\t\t\t<a href=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/12-6-Verrucola-Castello-1024x682.jpg\" class=\"no_thickbox\"><img loading=\"lazy\" decoding=\"async\" width=\"270\" height=\"270\" src=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/12-6-Verrucola-Castello-270x270.jpg\" class=\"span3\" alt=\"\" srcset=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/12-6-Verrucola-Castello-270x270.jpg 270w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/12-6-Verrucola-Castello-150x150.jpg 150w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/12-6-Verrucola-Castello-125x125.jpg 125w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/12-6-Verrucola-Castello-70x70.jpg 70w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a>\n\t\t\t\t\t<span class='wp-caption-text gallery-caption' style='bottom: 420px'>\n\t\t\t\t\t\t<span>Verrucola &#8211; il Castello<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t<\/div><div style=\"background-position: -810px -270px;\" class='span3  last'>\n\t\t\t\t\t<a href=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/13-2-Pieve-di-Codiponte-1024x682.jpg\" class=\"no_thickbox\"><img loading=\"lazy\" decoding=\"async\" width=\"270\" height=\"270\" src=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/13-2-Pieve-di-Codiponte-270x270.jpg\" class=\"span3\" alt=\"\" srcset=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/13-2-Pieve-di-Codiponte-270x270.jpg 270w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/13-2-Pieve-di-Codiponte-150x150.jpg 150w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/13-2-Pieve-di-Codiponte-125x125.jpg 125w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/13-2-Pieve-di-Codiponte-70x70.jpg 70w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a>\n\t\t\t\t\t<span class='wp-caption-text gallery-caption' style='bottom: 420px'>\n\t\t\t\t\t\t<span>La Pieve di Codiponte<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t<\/div><div style=\"background-position: -0px -540px;\" class='span3 '>\n\t\t\t\t\t<a href=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/Monumento-ai-Librai.jpg\" class=\"no_thickbox\"><img loading=\"lazy\" decoding=\"async\" width=\"270\" height=\"270\" src=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/Monumento-ai-Librai-270x270.jpg\" class=\"span3\" alt=\"\" srcset=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/Monumento-ai-Librai-270x270.jpg 270w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/Monumento-ai-Librai-150x150.jpg 150w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/Monumento-ai-Librai-125x125.jpg 125w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/Monumento-ai-Librai-70x70.jpg 70w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a>\n\t\t\t\t\t<span class='wp-caption-text gallery-caption' style='bottom: 420px'>\n\t\t\t\t\t\t<span>Monumento ai Librai<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t<\/div><div style=\"background-position: -270px -540px;\" class='span3 '>\n\t\t\t\t\t<a href=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/5-5-Villafranca-Piscine-1024x682.jpg\" class=\"no_thickbox\"><img loading=\"lazy\" decoding=\"async\" width=\"270\" height=\"270\" src=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/5-5-Villafranca-Piscine-270x270.jpg\" class=\"span3\" alt=\"\" srcset=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/5-5-Villafranca-Piscine-270x270.jpg 270w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/5-5-Villafranca-Piscine-150x150.jpg 150w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/5-5-Villafranca-Piscine-125x125.jpg 125w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/5-5-Villafranca-Piscine-70x70.jpg 70w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a>\n\t\t\t\t\t<span class='wp-caption-text gallery-caption' style='bottom: 420px'>\n\t\t\t\t\t\t<span>Le piscine a Villafranca<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t<\/div>\n\t\t\t<br style='clear: both;' \/>\n\t\t<\/div>\n\n\t\t<div id=\"merge-gallery-89739-nav\" style=\"position: relative;\">\n\t\t\t<div id=\"im_loading\" class=\"im_loading\"><\/div>\n\t\t\t<div id=\"im_next\" class=\"im_next\"><\/div>\n\t\t\t<div id=\"im_prev\" class=\"im_prev\"><\/div>\n\t\t<\/div>\n<div class=\"divider type_3\"><\/div>\n<h2>5 Terre, Portovenere and La Spezia gulf<\/h2>\n\n\t\t\n        <script type=\"text\/javascript\">\n            jQuery(function() {\n\t\t\t\t\/\/check if the user made the\n\t\t\t\t\/\/mistake to open it with IE\n\t\t\t\tvar ie \t\t\t= false;\n\t\t\t\tif (jQuery.browser.msie)\n\t\t\t\t\tie = true;\n\t\t\t\t\/\/flag to control the click event\n\t\t\t\tvar flg_click\t= true;\n\t\t\t\t\/\/the wrapper\n                var $im_wrapper\t= jQuery('#merge-gallery-1860');\n\t\t\t\t\/\/the thumbs\n\t\t\t\tvar $thumbs\t\t= $im_wrapper.children('div:not(.gallery_image_width)');\n\t\t\t\t\/\/all the images\n\t\t\t\tvar $thumb_imgs = $thumbs.find('img');\n\t\t\t\t\/\/number of images\n\t\t\t\tvar nmb_thumbs\t= $thumbs.length;\n\t\t\t\t\/\/image loading status\n\t\t\t\tvar $im_loading\t= jQuery('#merge-gallery-1860-nav #im_loading');\n\t\t\t\t\/\/the next and previous buttons\n\t\t\t\tvar $im_next\t= jQuery('#merge-gallery-1860-nav #im_next');\n\t\t\t\tvar $im_prev\t= jQuery('#merge-gallery-1860-nav #im_prev');\n\t\t\t\t\/\/number of thumbs per line\n\t\t\t\tvar per_line\t= 3;\n\t\t\t\t\/\/number of thumbs per column\n\t\t\t\tvar per_col\t\t= Math.ceil(nmb_thumbs\/per_line)\n\t\t\t\t\/\/index of the current thumb\n\t\t\t\tvar current\t\t= -1;\n\t\t\t\t\/\/mode = grid | single\n\t\t\t\tvar mode\t\t= 'grid';\n\t\t\t\tvar $wrapper_width = $im_wrapper.width();\n\t\t\t\t\/\/an array with the positions of the thumbs\n\t\t\t\t\/\/we will use it for the navigation in single mode\n\t\t\t\tvar positionsArray = [];\n\t\t\t\tfor(var i = 0; i < nmb_thumbs; ++i)\n\t\t\t\t\tpositionsArray[i]=i;\n\n\t\t\t\t\/\/ Set container height\n\t\t\t\t$im_wrapper.height((($im_wrapper.find('.gallery_image_width').width()+20) * per_col) + 'px');\n\n\t\t\t\t\/\/preload all the images\n\t\t\t\t$im_loading.css('visibility','visible');\n\t\t\t\tvar loaded\t\t= 0;\n\t\t\t\t$thumb_imgs.each(function(){\n\t\t\t\t\tvar $this = jQuery(this);\n\t\t\t\t\tjQuery('<img\/>').load(function(){\n\t\t\t\t\t\t++loaded;\n\t\t\t\t\t\tif(loaded == nmb_thumbs*2)\n\t\t\t\t\t\t\tstart();\n\t\t\t\t\t}).attr('src',$this.attr('src'));\n\t\t\t\t\tjQuery('<img\/>').load(function(){\n\t\t\t\t\t\t++loaded;\n\t\t\t\t\t\tif(loaded == nmb_thumbs*2)\n\t\t\t\t\t\t\tstart();\n\t\t\t\t\t}).attr('src', $this.parent().attr('href'));\n\t\t\t\t});\n\n\t\t\t\t\/\/starts the animation\n\t\t\t\tfunction start(){\n\t\t\t\t\t$im_loading.css('visibility','hidden');\n\n\t\t\t\t\t$thumbs.css({\n\t\t\t\t\t\t'height' : $im_wrapper.find('.gallery_image_width').width()\n\t\t\t\t\t});\n\t\t\t\t\t\/\/disperse the thumbs in a grid\n\t\t\t\t\tdisperse();\n\t\t\t\t}\n\n\t\t\t\t\/\/disperses the thumbs in a grid based on windows dimentions\n\t\t\t\tfunction disperse(resizing) {\n\t\t\t\t\tif(!flg_click) return;\n\t\t\t\t\tsetflag();\n\t\t\t\t\tremoveNavigation();\n\n\t\t\t\t\t\/\/ Set container height\n\t\t\t\t\t$im_wrapper.height((($im_wrapper.find('.gallery_image_width').width()+20) * per_col) + 'px');\n\n\t\t\t\t\tvar $img_width  = $im_wrapper.find('.gallery_image_width').width();\n\t\t\t\t\t$im_wrapper.find('.gallery_image_width').height($img_width);\n\t\t\t\t\tvar $img_height = $im_wrapper.find('.gallery_image_width').height();\n\t\t\t\t\t$im_wrapper.css('visibility','visible');\n\n\t\t\t\t\tmode = 'grid';\n\n\t\t\t\t\t\/\/center point for first thumb\n\t\t\t\t\tvar spaces_h = 20;\n\n\t\t\t\t\t\/\/lets disperse the thumbs equally on the page\n\t\t\t\t\t$thumbs.each(function(i){\n\t\t\t\t\t\tvar $thumb = jQuery(this);\n\t\t\t\t\t\tvar $image = $thumb.find('img');\n\t\t\t\t\t\tvar spaces_w = ($im_wrapper.width() - (per_line * $thumb.outerWidth())) \/ (per_line-1);\n\n\t\t\t\t\t\t\/*\n\t\t\t\t\t\tcalculate left and top for each thumb,\n\t\t\t\t\t\tconsidering how many we want per line *\/\n\t\t\t\t\t\tvar left = ((spaces_w * (i%per_line)) + ($thumb.outerWidth() * (i%per_line)));\n\t\t\t\t\t\tvar top  = ((($img_height+20) * Math.ceil((i+1)\/per_line)) - ($img_height+20));\n\n\t\t\t\t\t\t\/\/lets give a random degree to each thumb\n\t\t\t\t\t\tvar r = Math.floor(Math.random()*41)-20;\n\t\t\t\t\t\t\/*\n\t\t\t\t\t\tnow we animate the thumb to its final positions;\n\t\t\t\t\t\twe also fade in its image, animate it to 115x115,\n\t\t\t\t\t\tand remove any background image\tof the thumb - this\n\t\t\t\t\t\tis not relevant for the first time we call disperse,\n\t\t\t\t\t\tbut when changing from single to grid mode\n\t\t\t\t\t\t *\/\n\n\t\t\t\t\t\tif(ie) {\n\t\t\t\t\t\t\tvar param = {\n\t\t\t\t\t\t\t\t'padding': '3px',\n\t\t\t\t\t\t\t\t'width'  : $im_wrapper.find('.gallery_image_width').width(),\n\t\t\t\t\t\t\t\t'height' : $im_wrapper.find('.gallery_image_width').height(),\n\t\t\t\t\t\t\t\t'left'   : left + 'px',\n\t\t\t\t\t\t\t\t'top'    : top + 'px'\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tvar param = {\n\t\t\t\t\t\t\t\t'padding': '3px',\n\t\t\t\t\t\t\t\t'width'  : $im_wrapper.find('.gallery_image_width').width(),\n\t\t\t\t\t\t\t\t'height' : $im_wrapper.find('.gallery_image_width').height(),\n\t\t\t\t\t\t\t\t'left'   : left + 'px',\n\t\t\t\t\t\t\t\t'top'    : top + 'px'\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ( resizing == true ) {\n\t\t\t\t\t\t\tvar speed = 0;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tvar speed = 750;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$thumb.stop()\n\t\t\t\t\t\t.animate(param, speed, function() {\n\t\t\t\t\t\t\tif(i==nmb_thumbs-1)\n\t\t\t\t\t\t\t\tsetflag();\n\t\t\t\t\t\t}).find('img').fadeIn(750, function() {\n\t\t\t\t\t\t\t$thumb.css({\n\t\t\t\t\t\t\t\t'background-image' : 'none'\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tjQuery(this).animate({\n\t\t\t\t\t\t\t\t\/*'width' : $image.width(),\n\t\t\t\t\t\t\t\t'height'  : $image.height(),*\/\n\t\t\t\t\t\t\t},150);\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t\t$im_wrapper.find(\".gallery-caption\").show();\n\t\t\t\t}\n\n\t\t\t\t\/\/ On windows resize call the disperse function\n\t\t\t\tfunction on_resize() {\n\t\t\t\t\tif ($wrapper_width != $im_wrapper.width()) {\n\t\t\t\t\t\t$thumbs.css({'width' : $im_wrapper.find('.gallery_image_width').width(), 'height' : $im_wrapper.find('.gallery_image_width').height()});\n\t\t\t\t\t\tdisperse(true);\n\t\t\t\t\t\t$wrapper_width = $im_wrapper.width();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfunction addResizeEvent(func) {\n\t\t\t\t\tvar oldResize = window.onresize;\n\t\t\t\t\twindow.onresize = function () {\n\t\t\t\t\t\tfunc();\n\t\t\t\t\t\tif (typeof oldResize === 'function') {\n\t\t\t\t\t\t\toldResize();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\taddResizeEvent(on_resize);\n\n\t\t\t\t\/\/controls if we can click on the thumbs or not\n\t\t\t\t\/\/if theres an animation in progress\n\t\t\t\t\/\/we don't want the user to be able to click\n\t\t\t\tfunction setflag() {\n\t\t\t\t\tflg_click = !flg_click\n\t\t\t\t}\n\n\t\t\t\t\/*\n\t\t\t\twhen we click on a thumb, we want to merge them\n\t\t\t\tand show the full image that was clicked.\n\t\t\t\twe need to animate the thumbs positions in order\n\t\t\t\tto center the final image in the screen. The\n\t\t\t\timage itself is the background image that each thumb\n\t\t\t\twill have (different background positions)\n\t\t\t\tIf we are currently seeing the single image,\n\t\t\t\tthen we want to disperse the thumbs again,\n\t\t\t\tand with this, showing the thumbs images.\n\t\t\t\t *\/\n\t\t\t\t$thumbs.bind('click',function(){\n\t\t\t\t\tif(!flg_click) return;\n\t\t\t\t\tsetflag();\n\n\t\t\t\t\tvar $this = jQuery(this);\n\t\t\t\t\tcurrent   = $this.index();\n\t\t\t\t\t$thumbs.css('position', 'absolute');\n\t\t\t\t\t$im_wrapper.find(\".gallery-caption\").hide();\n\n\t\t\t\t\tif(mode\t== 'grid') {\n\t\t\t\t\t\tmode = 'single';\n\t\t\t\t\t\t\/\/the source of the full image\n\t\t\t\t\t\tvar image_src\t= $this.find('img').parent().attr('href');\n\n\t\t\t\t\t\t$thumbs.each(function(i){\n\t\t\t\t\t\t\tvar $thumb = jQuery(this);\n\t\t\t\t\t\t\tvar $image = $thumb.find('img');\n\n\t\t\t\t\t\t\t\/\/first we animate the thumb image\n\t\t\t\t\t\t\t\/\/to fill the thumbs dimentions\n\t\t\t\t\t\t\t$image.stop().animate({\n\t\t\t\t\t\t\t\t\/*'width'\t\t: '270px',\n\t\t\t\t\t\t\t\t'height'\t: '270px',*\/\n\t\t\t\t\t\t\t\t'marginTop'\t: '0px',\n\t\t\t\t\t\t\t\t'marginLeft': '0px'\n\t\t\t\t\t\t\t},150,function() {\n\t\t\t\t\t\t\t\t\/\/calculate the dimentions of the full image\n\t\t\t\t\t\t\t\tvar f_w\t= per_line * (270);\n\t\t\t\t\t\t\t\tvar f_h\t= per_col * (270);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tvar f_l = jQuery('.merge-gallery').width()\/2 - f_w\/2\n\t\t\t\t\t\t\t\tvar f_t = $im_wrapper.find('.gallery_image_width').height()\/2 \/*- f_h\/2*\/\n\t\t\t\t\t\t\t\t\/*\n\t\t\t\t\t\t\t\tset the background image for the thumb\n\t\t\t\t\t\t\t\tand animate the thumbs postions and rotation\n\t\t\t\t\t\t\t\t *\/\n\t\t\t\t\t\t\t\tif(ie) {\n\t\t\t\t\t\t\t\t\tvar param = {\n\t\t\t\t\t\t\t\t\t\t'width'  : '270px',\n\t\t\t\t\t\t\t\t\t\t'height' : '270px',\n\t\t\t\t\t\t\t\t\t\t'padding': '0',\n\t\t\t\t\t\t\t\t\t\t'left'   : f_l + (i%per_line)*270 + 'px',\n\t\t\t\t\t\t\t\t\t\t'top'\t   : f_t + Math.floor(i\/per_line)*270 + 'px'\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tvar param = {\n\t\t\t\t\t\t\t\t\t\t'width'  : '270px',\n\t\t\t\t\t\t\t\t\t\t'height' : '270px',\n\t\t\t\t\t\t\t\t\t\t'padding': '0',\n\t\t\t\t\t\t\t\t\t\t'left'   : f_l + (i%per_line)*270 + 'px',\n\t\t\t\t\t\t\t\t\t\t'top'\t   : (f_t + Math.floor(i\/per_line)*270) - (f_t \/ 1.5) + 'px'\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t$thumb.css({\n\t\t\t\t\t\t\t\t\t'background-image' : 'url('+image_src+')',\n\t\t\t\t\t\t\t\t\t'background-size'  : ((270*per_line)) + 'px ' + ((270*per_col)) + 'px'\n\t\t\t\t\t\t\t\t}).stop()\n\t\t\t\t\t\t\t\t.animate(param, 1200, function() {\n\t\t\t\t\t\t\t\t\t\/\/insert navigation for the single mode\n\t\t\t\t\t\t\t\t\tif(i==nmb_thumbs-1) {\n\t\t\t\t\t\t\t\t\t\taddNavigation();\n\t\t\t\t\t\t\t\t\t\tsetflag();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\/\/fade out the thumb's image\n\t\t\t\t\t\t\t\t$image.fadeOut(700);\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsetflag();\n\t\t\t\t\t\t\/\/remove navigation\n\t\t\t\t\t\tremoveNavigation();\n\t\t\t\t\t\t$thumbs.css({'width' : ($im_wrapper.find('.gallery_image_width').width() + 10), 'height' : ($im_wrapper.find('.gallery_image_width').height() + 10)});\n\n\t\t\t\t\t\t\/\/if we are on single mode then disperse the thumbs\n\t\t\t\t\t\tdisperse();\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t\/\/removes the navigation buttons\n\t\t\t\tfunction removeNavigation() {\n\t\t\t\t\t$im_next.stop().animate({'right':'-60px'},300);\n\t\t\t\t\t$im_prev.stop().animate({'left':'-60px'},300);\n\t\t\t\t}\n\n\t\t\t\t\/\/add the navigation buttons\n\t\t\t\tfunction addNavigation() {\n\t\t\t\t\t$im_next.stop().animate({'right':'-2px'},300);\n\t\t\t\t\t$im_prev.stop().animate({'left':'-2px'},300);\n\t\t\t\t}\n\n\t\t\t\t\/\/User clicks next button (single mode)\n\t\t\t\t$im_next.bind('click', function() {\n\t\t\t\t\tif(!flg_click) return;\n\t\t\t\t\tsetflag();\n\n\t\t\t\t\t++current;\n\t\t\t\t\tvar $next_thumb\t= $im_wrapper.children('div:nth-child('+(current+1)+')');\n\t\t\t\t\tif($next_thumb.length>0) {\n\t\t\t\t\t\t$im_wrapper.find(\".gallery-caption\").hide();\n\t\t\t\t\t\tvar image_src\t= $next_thumb.find('img').parent().attr('href');\n\t\t\t\t\t\tvar arr \t\t= Array.shuffle(positionsArray.slice(0));\n\t\t\t\t\t\t$thumbs.each(function(i) {\n\t\t\t\t\t\t\t\/\/we want to change each divs background image\n\t\t\t\t\t\t\t\/\/on a different point of time\n\t\t\t\t\t\t\tvar t = jQuery(this);\n\t\t\t\t\t\t\tsetTimeout(function() {\n\t\t\t\t\t\t\t\tt.css({\n\t\t\t\t\t\t\t\t\t'background-image' : 'url('+image_src+')'\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tif(i == nmb_thumbs-1)\n\t\t\t\t\t\t\t\t\tsetflag();\n\t\t\t\t\t\t\t},arr.shift()*20);\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsetflag();\n\t\t\t\t\t\t--current;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t\/\/User clicks prev button (single mode)\n\t\t\t\t$im_prev.bind('click',function() {\n\t\t\t\t\tif(!flg_click) return;\n\t\t\t\t\tsetflag();\n\t\t\t\t\t--current;\n\t\t\t\t\tvar $prev_thumb\t= $im_wrapper.children('div:nth-child('+(current+1)+'):not(.gallery_image_width)');\n\t\t\t\t\tif($prev_thumb.length>0){\n\t\t\t\t\t\t$im_wrapper.find(\".gallery-caption\").hide();\n\t\t\t\t\t\tvar image_src\t= $prev_thumb.find('img').parent().attr('href');\n\t\t\t\t\t\tvar arr \t\t= Array.shuffle(positionsArray.slice(0));\n\t\t\t\t\t\t$thumbs.each(function(i){\n\t\t\t\t\t\t\tvar t = jQuery(this);\n\t\t\t\t\t\t\tsetTimeout(function(){\n\t\t\t\t\t\t\t\tt.css({\n\t\t\t\t\t\t\t\t\t'background-image' : 'url('+image_src+')'\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tif(i == nmb_thumbs-1)\n\t\t\t\t\t\t\t\t\tsetflag();\n\t\t\t\t\t\t\t},arr.shift()*20);\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsetflag();\n\t\t\t\t\t\t++current;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t\/\/function to shuffle an array\n\t\t\t\tArray.shuffle = function( array ) {\n\t\t\t\t\tfor(\n\t\t\t\t\tvar j, x, i = array.length; i;\n\t\t\t\t\tj = parseInt(Math.random() * i),\n\t\t\t\t\tx = array[--i], array[i] = array[j], array[j] = x\n\t\t\t\t);\n\t\t\t\t\treturn array;\n\t\t\t\t};\n            });\n\n\t\t\tjQuery(document).ready(function() {\n\t\t\t\tjQuery(\".merge-gallery\").click(function(event) {\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t});\n\t\t\t});\n        <\/script>\n        <div id=\"merge-gallery-1860\" class=\"merge-gallery galleryid-3608 gallery-columns-3 gallery-size-gallery-large\"><div class=\"span3 gallery_image_width\"><\/div><div style=\"background-position: -0px -0px;\" class='span3 '>\n\t\t\t\t\t<a href=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/15-18-Fiascherino-1024x682.jpg\" class=\"no_thickbox\"><img loading=\"lazy\" decoding=\"async\" width=\"270\" height=\"270\" src=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/15-18-Fiascherino-270x270.jpg\" class=\"span3\" alt=\"\" srcset=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/15-18-Fiascherino-270x270.jpg 270w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/15-18-Fiascherino-150x150.jpg 150w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/15-18-Fiascherino-125x125.jpg 125w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/15-18-Fiascherino-70x70.jpg 70w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a>\n\t\t\t\t\t<span class='wp-caption-text gallery-caption' style='bottom: 420px'>\n\t\t\t\t\t\t<span>Fiascherino<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t<\/div><div style=\"background-position: -270px -0px;\" class='span3 '>\n\t\t\t\t\t<a href=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/15-15-Veduta-di-Portovenere-1024x682.jpg\" class=\"no_thickbox\"><img loading=\"lazy\" decoding=\"async\" width=\"270\" height=\"270\" src=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/15-15-Veduta-di-Portovenere-270x270.jpg\" class=\"span3\" alt=\"\" srcset=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/15-15-Veduta-di-Portovenere-270x270.jpg 270w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/15-15-Veduta-di-Portovenere-150x150.jpg 150w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/15-15-Veduta-di-Portovenere-125x125.jpg 125w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/15-15-Veduta-di-Portovenere-70x70.jpg 70w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a>\n\t\t\t\t\t<span class='wp-caption-text gallery-caption' style='bottom: 420px'>\n\t\t\t\t\t\t<span>Veduta di Portovenere<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t<\/div><div style=\"background-position: -540px -0px;\" class='span3  last'>\n\t\t\t\t\t<a href=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/15-17-Lerici-1024x682.jpg\" class=\"no_thickbox\"><img loading=\"lazy\" decoding=\"async\" width=\"270\" height=\"270\" src=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/15-17-Lerici-270x270.jpg\" class=\"span3\" alt=\"\" srcset=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/15-17-Lerici-270x270.jpg 270w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/15-17-Lerici-150x150.jpg 150w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/15-17-Lerici-125x125.jpg 125w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/15-17-Lerici-70x70.jpg 70w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a>\n\t\t\t\t\t<span class='wp-caption-text gallery-caption' style='bottom: 420px'>\n\t\t\t\t\t\t<span>Lerici<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t<\/div><div style=\"background-position: -0px -270px;\" class='span3 '>\n\t\t\t\t\t<a href=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/16-13-Manarola-Via-Azzurra-1024x682.jpg\" class=\"no_thickbox\"><img loading=\"lazy\" decoding=\"async\" width=\"270\" height=\"270\" src=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/16-13-Manarola-Via-Azzurra-270x270.jpg\" class=\"span3\" alt=\"\" srcset=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/16-13-Manarola-Via-Azzurra-270x270.jpg 270w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/16-13-Manarola-Via-Azzurra-150x150.jpg 150w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/16-13-Manarola-Via-Azzurra-125x125.jpg 125w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/16-13-Manarola-Via-Azzurra-70x70.jpg 70w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a>\n\t\t\t\t\t<span class='wp-caption-text gallery-caption' style='bottom: 420px'>\n\t\t\t\t\t\t<span>Manarola e la Via Azzurra<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t<\/div><div style=\"background-position: -270px -270px;\" class='span3 '>\n\t\t\t\t\t<a href=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/16-20-Monterosso-La-spiaggia-1024x682.jpg\" class=\"no_thickbox\"><img loading=\"lazy\" decoding=\"async\" width=\"270\" height=\"270\" src=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/16-20-Monterosso-La-spiaggia-270x270.jpg\" class=\"span3\" alt=\"\" srcset=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/16-20-Monterosso-La-spiaggia-270x270.jpg 270w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/16-20-Monterosso-La-spiaggia-150x150.jpg 150w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/16-20-Monterosso-La-spiaggia-125x125.jpg 125w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/16-20-Monterosso-La-spiaggia-70x70.jpg 70w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a>\n\t\t\t\t\t<span class='wp-caption-text gallery-caption' style='bottom: 420px'>\n\t\t\t\t\t\t<span>Monterosso &#8211; La spiaggia<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t<\/div>\n\t\t\t<br style='clear: both;' \/>\n\t\t<\/div>\n\n\t\t<div id=\"merge-gallery-1860-nav\" style=\"position: relative;\">\n\t\t\t<div id=\"im_loading\" class=\"im_loading\"><\/div>\n\t\t\t<div id=\"im_next\" class=\"im_next\"><\/div>\n\t\t\t<div id=\"im_prev\" class=\"im_prev\"><\/div>\n\t\t<\/div>\n<div class=\"divider type_3\"><\/div>\n<h2>Apuan Alpes, Garfagnana and Appennino Tosco-Emiliano<\/h2>\n\n\t\t\n        <script type=\"text\/javascript\">\n            jQuery(function() {\n\t\t\t\t\/\/check if the user made the\n\t\t\t\t\/\/mistake to open it with IE\n\t\t\t\tvar ie \t\t\t= false;\n\t\t\t\tif (jQuery.browser.msie)\n\t\t\t\t\tie = true;\n\t\t\t\t\/\/flag to control the click event\n\t\t\t\tvar flg_click\t= true;\n\t\t\t\t\/\/the wrapper\n                var $im_wrapper\t= jQuery('#merge-gallery-67954');\n\t\t\t\t\/\/the thumbs\n\t\t\t\tvar $thumbs\t\t= $im_wrapper.children('div:not(.gallery_image_width)');\n\t\t\t\t\/\/all the images\n\t\t\t\tvar $thumb_imgs = $thumbs.find('img');\n\t\t\t\t\/\/number of images\n\t\t\t\tvar nmb_thumbs\t= $thumbs.length;\n\t\t\t\t\/\/image loading status\n\t\t\t\tvar $im_loading\t= jQuery('#merge-gallery-67954-nav #im_loading');\n\t\t\t\t\/\/the next and previous buttons\n\t\t\t\tvar $im_next\t= jQuery('#merge-gallery-67954-nav #im_next');\n\t\t\t\tvar $im_prev\t= jQuery('#merge-gallery-67954-nav #im_prev');\n\t\t\t\t\/\/number of thumbs per line\n\t\t\t\tvar per_line\t= 3;\n\t\t\t\t\/\/number of thumbs per column\n\t\t\t\tvar per_col\t\t= Math.ceil(nmb_thumbs\/per_line)\n\t\t\t\t\/\/index of the current thumb\n\t\t\t\tvar current\t\t= -1;\n\t\t\t\t\/\/mode = grid | single\n\t\t\t\tvar mode\t\t= 'grid';\n\t\t\t\tvar $wrapper_width = $im_wrapper.width();\n\t\t\t\t\/\/an array with the positions of the thumbs\n\t\t\t\t\/\/we will use it for the navigation in single mode\n\t\t\t\tvar positionsArray = [];\n\t\t\t\tfor(var i = 0; i < nmb_thumbs; ++i)\n\t\t\t\t\tpositionsArray[i]=i;\n\n\t\t\t\t\/\/ Set container height\n\t\t\t\t$im_wrapper.height((($im_wrapper.find('.gallery_image_width').width()+20) * per_col) + 'px');\n\n\t\t\t\t\/\/preload all the images\n\t\t\t\t$im_loading.css('visibility','visible');\n\t\t\t\tvar loaded\t\t= 0;\n\t\t\t\t$thumb_imgs.each(function(){\n\t\t\t\t\tvar $this = jQuery(this);\n\t\t\t\t\tjQuery('<img\/>').load(function(){\n\t\t\t\t\t\t++loaded;\n\t\t\t\t\t\tif(loaded == nmb_thumbs*2)\n\t\t\t\t\t\t\tstart();\n\t\t\t\t\t}).attr('src',$this.attr('src'));\n\t\t\t\t\tjQuery('<img\/>').load(function(){\n\t\t\t\t\t\t++loaded;\n\t\t\t\t\t\tif(loaded == nmb_thumbs*2)\n\t\t\t\t\t\t\tstart();\n\t\t\t\t\t}).attr('src', $this.parent().attr('href'));\n\t\t\t\t});\n\n\t\t\t\t\/\/starts the animation\n\t\t\t\tfunction start(){\n\t\t\t\t\t$im_loading.css('visibility','hidden');\n\n\t\t\t\t\t$thumbs.css({\n\t\t\t\t\t\t'height' : $im_wrapper.find('.gallery_image_width').width()\n\t\t\t\t\t});\n\t\t\t\t\t\/\/disperse the thumbs in a grid\n\t\t\t\t\tdisperse();\n\t\t\t\t}\n\n\t\t\t\t\/\/disperses the thumbs in a grid based on windows dimentions\n\t\t\t\tfunction disperse(resizing) {\n\t\t\t\t\tif(!flg_click) return;\n\t\t\t\t\tsetflag();\n\t\t\t\t\tremoveNavigation();\n\n\t\t\t\t\t\/\/ Set container height\n\t\t\t\t\t$im_wrapper.height((($im_wrapper.find('.gallery_image_width').width()+20) * per_col) + 'px');\n\n\t\t\t\t\tvar $img_width  = $im_wrapper.find('.gallery_image_width').width();\n\t\t\t\t\t$im_wrapper.find('.gallery_image_width').height($img_width);\n\t\t\t\t\tvar $img_height = $im_wrapper.find('.gallery_image_width').height();\n\t\t\t\t\t$im_wrapper.css('visibility','visible');\n\n\t\t\t\t\tmode = 'grid';\n\n\t\t\t\t\t\/\/center point for first thumb\n\t\t\t\t\tvar spaces_h = 20;\n\n\t\t\t\t\t\/\/lets disperse the thumbs equally on the page\n\t\t\t\t\t$thumbs.each(function(i){\n\t\t\t\t\t\tvar $thumb = jQuery(this);\n\t\t\t\t\t\tvar $image = $thumb.find('img');\n\t\t\t\t\t\tvar spaces_w = ($im_wrapper.width() - (per_line * $thumb.outerWidth())) \/ (per_line-1);\n\n\t\t\t\t\t\t\/*\n\t\t\t\t\t\tcalculate left and top for each thumb,\n\t\t\t\t\t\tconsidering how many we want per line *\/\n\t\t\t\t\t\tvar left = ((spaces_w * (i%per_line)) + ($thumb.outerWidth() * (i%per_line)));\n\t\t\t\t\t\tvar top  = ((($img_height+20) * Math.ceil((i+1)\/per_line)) - ($img_height+20));\n\n\t\t\t\t\t\t\/\/lets give a random degree to each thumb\n\t\t\t\t\t\tvar r = Math.floor(Math.random()*41)-20;\n\t\t\t\t\t\t\/*\n\t\t\t\t\t\tnow we animate the thumb to its final positions;\n\t\t\t\t\t\twe also fade in its image, animate it to 115x115,\n\t\t\t\t\t\tand remove any background image\tof the thumb - this\n\t\t\t\t\t\tis not relevant for the first time we call disperse,\n\t\t\t\t\t\tbut when changing from single to grid mode\n\t\t\t\t\t\t *\/\n\n\t\t\t\t\t\tif(ie) {\n\t\t\t\t\t\t\tvar param = {\n\t\t\t\t\t\t\t\t'padding': '3px',\n\t\t\t\t\t\t\t\t'width'  : $im_wrapper.find('.gallery_image_width').width(),\n\t\t\t\t\t\t\t\t'height' : $im_wrapper.find('.gallery_image_width').height(),\n\t\t\t\t\t\t\t\t'left'   : left + 'px',\n\t\t\t\t\t\t\t\t'top'    : top + 'px'\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tvar param = {\n\t\t\t\t\t\t\t\t'padding': '3px',\n\t\t\t\t\t\t\t\t'width'  : $im_wrapper.find('.gallery_image_width').width(),\n\t\t\t\t\t\t\t\t'height' : $im_wrapper.find('.gallery_image_width').height(),\n\t\t\t\t\t\t\t\t'left'   : left + 'px',\n\t\t\t\t\t\t\t\t'top'    : top + 'px'\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ( resizing == true ) {\n\t\t\t\t\t\t\tvar speed = 0;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tvar speed = 750;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$thumb.stop()\n\t\t\t\t\t\t.animate(param, speed, function() {\n\t\t\t\t\t\t\tif(i==nmb_thumbs-1)\n\t\t\t\t\t\t\t\tsetflag();\n\t\t\t\t\t\t}).find('img').fadeIn(750, function() {\n\t\t\t\t\t\t\t$thumb.css({\n\t\t\t\t\t\t\t\t'background-image' : 'none'\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tjQuery(this).animate({\n\t\t\t\t\t\t\t\t\/*'width' : $image.width(),\n\t\t\t\t\t\t\t\t'height'  : $image.height(),*\/\n\t\t\t\t\t\t\t},150);\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t\t$im_wrapper.find(\".gallery-caption\").show();\n\t\t\t\t}\n\n\t\t\t\t\/\/ On windows resize call the disperse function\n\t\t\t\tfunction on_resize() {\n\t\t\t\t\tif ($wrapper_width != $im_wrapper.width()) {\n\t\t\t\t\t\t$thumbs.css({'width' : $im_wrapper.find('.gallery_image_width').width(), 'height' : $im_wrapper.find('.gallery_image_width').height()});\n\t\t\t\t\t\tdisperse(true);\n\t\t\t\t\t\t$wrapper_width = $im_wrapper.width();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfunction addResizeEvent(func) {\n\t\t\t\t\tvar oldResize = window.onresize;\n\t\t\t\t\twindow.onresize = function () {\n\t\t\t\t\t\tfunc();\n\t\t\t\t\t\tif (typeof oldResize === 'function') {\n\t\t\t\t\t\t\toldResize();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\taddResizeEvent(on_resize);\n\n\t\t\t\t\/\/controls if we can click on the thumbs or not\n\t\t\t\t\/\/if theres an animation in progress\n\t\t\t\t\/\/we don't want the user to be able to click\n\t\t\t\tfunction setflag() {\n\t\t\t\t\tflg_click = !flg_click\n\t\t\t\t}\n\n\t\t\t\t\/*\n\t\t\t\twhen we click on a thumb, we want to merge them\n\t\t\t\tand show the full image that was clicked.\n\t\t\t\twe need to animate the thumbs positions in order\n\t\t\t\tto center the final image in the screen. The\n\t\t\t\timage itself is the background image that each thumb\n\t\t\t\twill have (different background positions)\n\t\t\t\tIf we are currently seeing the single image,\n\t\t\t\tthen we want to disperse the thumbs again,\n\t\t\t\tand with this, showing the thumbs images.\n\t\t\t\t *\/\n\t\t\t\t$thumbs.bind('click',function(){\n\t\t\t\t\tif(!flg_click) return;\n\t\t\t\t\tsetflag();\n\n\t\t\t\t\tvar $this = jQuery(this);\n\t\t\t\t\tcurrent   = $this.index();\n\t\t\t\t\t$thumbs.css('position', 'absolute');\n\t\t\t\t\t$im_wrapper.find(\".gallery-caption\").hide();\n\n\t\t\t\t\tif(mode\t== 'grid') {\n\t\t\t\t\t\tmode = 'single';\n\t\t\t\t\t\t\/\/the source of the full image\n\t\t\t\t\t\tvar image_src\t= $this.find('img').parent().attr('href');\n\n\t\t\t\t\t\t$thumbs.each(function(i){\n\t\t\t\t\t\t\tvar $thumb = jQuery(this);\n\t\t\t\t\t\t\tvar $image = $thumb.find('img');\n\n\t\t\t\t\t\t\t\/\/first we animate the thumb image\n\t\t\t\t\t\t\t\/\/to fill the thumbs dimentions\n\t\t\t\t\t\t\t$image.stop().animate({\n\t\t\t\t\t\t\t\t\/*'width'\t\t: '270px',\n\t\t\t\t\t\t\t\t'height'\t: '270px',*\/\n\t\t\t\t\t\t\t\t'marginTop'\t: '0px',\n\t\t\t\t\t\t\t\t'marginLeft': '0px'\n\t\t\t\t\t\t\t},150,function() {\n\t\t\t\t\t\t\t\t\/\/calculate the dimentions of the full image\n\t\t\t\t\t\t\t\tvar f_w\t= per_line * (270);\n\t\t\t\t\t\t\t\tvar f_h\t= per_col * (270);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tvar f_l = jQuery('.merge-gallery').width()\/2 - f_w\/2\n\t\t\t\t\t\t\t\tvar f_t = $im_wrapper.find('.gallery_image_width').height()\/2 \/*- f_h\/2*\/\n\t\t\t\t\t\t\t\t\/*\n\t\t\t\t\t\t\t\tset the background image for the thumb\n\t\t\t\t\t\t\t\tand animate the thumbs postions and rotation\n\t\t\t\t\t\t\t\t *\/\n\t\t\t\t\t\t\t\tif(ie) {\n\t\t\t\t\t\t\t\t\tvar param = {\n\t\t\t\t\t\t\t\t\t\t'width'  : '270px',\n\t\t\t\t\t\t\t\t\t\t'height' : '270px',\n\t\t\t\t\t\t\t\t\t\t'padding': '0',\n\t\t\t\t\t\t\t\t\t\t'left'   : f_l + (i%per_line)*270 + 'px',\n\t\t\t\t\t\t\t\t\t\t'top'\t   : f_t + Math.floor(i\/per_line)*270 + 'px'\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tvar param = {\n\t\t\t\t\t\t\t\t\t\t'width'  : '270px',\n\t\t\t\t\t\t\t\t\t\t'height' : '270px',\n\t\t\t\t\t\t\t\t\t\t'padding': '0',\n\t\t\t\t\t\t\t\t\t\t'left'   : f_l + (i%per_line)*270 + 'px',\n\t\t\t\t\t\t\t\t\t\t'top'\t   : (f_t + Math.floor(i\/per_line)*270) - (f_t \/ 1.5) + 'px'\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t$thumb.css({\n\t\t\t\t\t\t\t\t\t'background-image' : 'url('+image_src+')',\n\t\t\t\t\t\t\t\t\t'background-size'  : ((270*per_line)) + 'px ' + ((270*per_col)) + 'px'\n\t\t\t\t\t\t\t\t}).stop()\n\t\t\t\t\t\t\t\t.animate(param, 1200, function() {\n\t\t\t\t\t\t\t\t\t\/\/insert navigation for the single mode\n\t\t\t\t\t\t\t\t\tif(i==nmb_thumbs-1) {\n\t\t\t\t\t\t\t\t\t\taddNavigation();\n\t\t\t\t\t\t\t\t\t\tsetflag();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\/\/fade out the thumb's image\n\t\t\t\t\t\t\t\t$image.fadeOut(700);\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsetflag();\n\t\t\t\t\t\t\/\/remove navigation\n\t\t\t\t\t\tremoveNavigation();\n\t\t\t\t\t\t$thumbs.css({'width' : ($im_wrapper.find('.gallery_image_width').width() + 10), 'height' : ($im_wrapper.find('.gallery_image_width').height() + 10)});\n\n\t\t\t\t\t\t\/\/if we are on single mode then disperse the thumbs\n\t\t\t\t\t\tdisperse();\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t\/\/removes the navigation buttons\n\t\t\t\tfunction removeNavigation() {\n\t\t\t\t\t$im_next.stop().animate({'right':'-60px'},300);\n\t\t\t\t\t$im_prev.stop().animate({'left':'-60px'},300);\n\t\t\t\t}\n\n\t\t\t\t\/\/add the navigation buttons\n\t\t\t\tfunction addNavigation() {\n\t\t\t\t\t$im_next.stop().animate({'right':'-2px'},300);\n\t\t\t\t\t$im_prev.stop().animate({'left':'-2px'},300);\n\t\t\t\t}\n\n\t\t\t\t\/\/User clicks next button (single mode)\n\t\t\t\t$im_next.bind('click', function() {\n\t\t\t\t\tif(!flg_click) return;\n\t\t\t\t\tsetflag();\n\n\t\t\t\t\t++current;\n\t\t\t\t\tvar $next_thumb\t= $im_wrapper.children('div:nth-child('+(current+1)+')');\n\t\t\t\t\tif($next_thumb.length>0) {\n\t\t\t\t\t\t$im_wrapper.find(\".gallery-caption\").hide();\n\t\t\t\t\t\tvar image_src\t= $next_thumb.find('img').parent().attr('href');\n\t\t\t\t\t\tvar arr \t\t= Array.shuffle(positionsArray.slice(0));\n\t\t\t\t\t\t$thumbs.each(function(i) {\n\t\t\t\t\t\t\t\/\/we want to change each divs background image\n\t\t\t\t\t\t\t\/\/on a different point of time\n\t\t\t\t\t\t\tvar t = jQuery(this);\n\t\t\t\t\t\t\tsetTimeout(function() {\n\t\t\t\t\t\t\t\tt.css({\n\t\t\t\t\t\t\t\t\t'background-image' : 'url('+image_src+')'\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tif(i == nmb_thumbs-1)\n\t\t\t\t\t\t\t\t\tsetflag();\n\t\t\t\t\t\t\t},arr.shift()*20);\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsetflag();\n\t\t\t\t\t\t--current;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t\/\/User clicks prev button (single mode)\n\t\t\t\t$im_prev.bind('click',function() {\n\t\t\t\t\tif(!flg_click) return;\n\t\t\t\t\tsetflag();\n\t\t\t\t\t--current;\n\t\t\t\t\tvar $prev_thumb\t= $im_wrapper.children('div:nth-child('+(current+1)+'):not(.gallery_image_width)');\n\t\t\t\t\tif($prev_thumb.length>0){\n\t\t\t\t\t\t$im_wrapper.find(\".gallery-caption\").hide();\n\t\t\t\t\t\tvar image_src\t= $prev_thumb.find('img').parent().attr('href');\n\t\t\t\t\t\tvar arr \t\t= Array.shuffle(positionsArray.slice(0));\n\t\t\t\t\t\t$thumbs.each(function(i){\n\t\t\t\t\t\t\tvar t = jQuery(this);\n\t\t\t\t\t\t\tsetTimeout(function(){\n\t\t\t\t\t\t\t\tt.css({\n\t\t\t\t\t\t\t\t\t'background-image' : 'url('+image_src+')'\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tif(i == nmb_thumbs-1)\n\t\t\t\t\t\t\t\t\tsetflag();\n\t\t\t\t\t\t\t},arr.shift()*20);\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsetflag();\n\t\t\t\t\t\t++current;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t\/\/function to shuffle an array\n\t\t\t\tArray.shuffle = function( array ) {\n\t\t\t\t\tfor(\n\t\t\t\t\tvar j, x, i = array.length; i;\n\t\t\t\t\tj = parseInt(Math.random() * i),\n\t\t\t\t\tx = array[--i], array[i] = array[j], array[j] = x\n\t\t\t\t);\n\t\t\t\t\treturn array;\n\t\t\t\t};\n            });\n\n\t\t\tjQuery(document).ready(function() {\n\t\t\t\tjQuery(\".merge-gallery\").click(function(event) {\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t});\n\t\t\t});\n        <\/script>\n        <div id=\"merge-gallery-67954\" class=\"merge-gallery galleryid-3608 gallery-columns-3 gallery-size-gallery-large\"><div class=\"span3 gallery_image_width\"><\/div><div style=\"background-position: -0px -0px;\" class='span3 '>\n\t\t\t\t\t<a href=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/14-15.1-Marmo-1024x768.jpg\" class=\"no_thickbox\"><img loading=\"lazy\" decoding=\"async\" width=\"270\" height=\"270\" src=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/14-15.1-Marmo-270x270.jpg\" class=\"span3\" alt=\"\" srcset=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/14-15.1-Marmo-270x270.jpg 270w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/14-15.1-Marmo-150x150.jpg 150w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/14-15.1-Marmo-125x125.jpg 125w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/14-15.1-Marmo-70x70.jpg 70w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a>\n\t\t\t\t\t<span class='wp-caption-text gallery-caption' style='bottom: 420px'>\n\t\t\t\t\t\t<span>Le cave di marmo a Carrara<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t<\/div><div style=\"background-position: -270px -0px;\" class='span3 '>\n\t\t\t\t\t<a href=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/14-12-Alpi-Apuane-Minucciano-1024x768.jpg\" class=\"no_thickbox\"><img loading=\"lazy\" decoding=\"async\" width=\"270\" height=\"270\" src=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/14-12-Alpi-Apuane-Minucciano-270x270.jpg\" class=\"span3\" alt=\"\" srcset=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/14-12-Alpi-Apuane-Minucciano-270x270.jpg 270w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/14-12-Alpi-Apuane-Minucciano-150x150.jpg 150w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/14-12-Alpi-Apuane-Minucciano-125x125.jpg 125w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/14-12-Alpi-Apuane-Minucciano-70x70.jpg 70w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a>\n\t\t\t\t\t<span class='wp-caption-text gallery-caption' style='bottom: 420px'>\n\t\t\t\t\t\t<span>Le Alpi Apuane da Minucciano<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t<\/div><div style=\"background-position: -540px -0px;\" class='span3  last'>\n\t\t\t\t\t<a href=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/14-10-Alpi-Apuane-Panorama-1024x682.jpg\" class=\"no_thickbox\"><img loading=\"lazy\" decoding=\"async\" width=\"270\" height=\"270\" src=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/14-10-Alpi-Apuane-Panorama-270x270.jpg\" class=\"span3\" alt=\"\" srcset=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/14-10-Alpi-Apuane-Panorama-270x270.jpg 270w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/14-10-Alpi-Apuane-Panorama-150x150.jpg 150w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/14-10-Alpi-Apuane-Panorama-125x125.jpg 125w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/14-10-Alpi-Apuane-Panorama-70x70.jpg 70w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a>\n\t\t\t\t\t<span class='wp-caption-text gallery-caption' style='bottom: 420px'>\n\t\t\t\t\t\t<span>Le Alpi Apuane<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t<\/div><div style=\"background-position: -0px -270px;\" class='span3 '>\n\t\t\t\t\t<a href=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/3-7.6-Monte-Marmagna-1024x682.jpg\" class=\"no_thickbox\"><img loading=\"lazy\" decoding=\"async\" width=\"270\" height=\"270\" src=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/3-7.6-Monte-Marmagna-270x270.jpg\" class=\"span3\" alt=\"\" srcset=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/3-7.6-Monte-Marmagna-270x270.jpg 270w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/3-7.6-Monte-Marmagna-150x150.jpg 150w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/3-7.6-Monte-Marmagna-125x125.jpg 125w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/3-7.6-Monte-Marmagna-70x70.jpg 70w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a>\n\t\t\t\t\t<span class='wp-caption-text gallery-caption' style='bottom: 420px'>\n\t\t\t\t\t\t<span>Il Monte Marmagna<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t<\/div><div style=\"background-position: -270px -270px;\" class='span3 '>\n\t\t\t\t\t<a href=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/3-7.5-Lago-Santo-1024x682.jpg\" class=\"no_thickbox\"><img loading=\"lazy\" decoding=\"async\" width=\"270\" height=\"270\" src=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/3-7.5-Lago-Santo-270x270.jpg\" class=\"span3\" alt=\"\" srcset=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/3-7.5-Lago-Santo-270x270.jpg 270w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/3-7.5-Lago-Santo-150x150.jpg 150w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/3-7.5-Lago-Santo-125x125.jpg 125w, https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/3-7.5-Lago-Santo-70x70.jpg 70w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/a>\n\t\t\t\t\t<span class='wp-caption-text gallery-caption' style='bottom: 420px'>\n\t\t\t\t\t\t<span>Il Lago Santo<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t<\/div>\n\t\t\t<br style='clear: both;' \/>\n\t\t<\/div>\n\n\t\t<div id=\"merge-gallery-67954-nav\" style=\"position: relative;\">\n\t\t\t<div id=\"im_loading\" class=\"im_loading\"><\/div>\n\t\t\t<div id=\"im_next\" class=\"im_next\"><\/div>\n\t\t\t<div id=\"im_prev\" class=\"im_prev\"><\/div>\n\t\t<\/div>\n<p><h2>\u00a0<\/h2><!--:--><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":6,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3608","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Photo - Bed and Breakfast Ai Chiosi<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.aichiosi.it\/en\/photo\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Photo - Bed and Breakfast Ai Chiosi\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.aichiosi.it\/en\/photo\/\" \/>\n<meta property=\"og:site_name\" content=\"Bed and Breakfast Ai Chiosi\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/AiChiosi\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-21T07:22:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-2.2-Teatro-La-Rosa-e-Busticca1-270x270.jpg\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.aichiosi.it\\\/en\\\/photo\\\/\",\"url\":\"https:\\\/\\\/www.aichiosi.it\\\/en\\\/photo\\\/\",\"name\":\"Photo - Bed and Breakfast Ai Chiosi\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.aichiosi.it\\\/en\\\/#website\"},\"datePublished\":\"2020-07-30T13:07:31+00:00\",\"dateModified\":\"2023-07-21T07:22:45+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.aichiosi.it\\\/en\\\/photo\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.aichiosi.it\\\/en\\\/photo\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.aichiosi.it\\\/en\\\/photo\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.aichiosi.it\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Photo\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.aichiosi.it\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/www.aichiosi.it\\\/en\\\/\",\"name\":\"Bed and Breakfast Ai Chiosi\",\"description\":\"Dormire a Pontremoli (MS) - Toscana\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.aichiosi.it\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.aichiosi.it\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.aichiosi.it\\\/en\\\/#organization\",\"name\":\"Bed and Breakfast Ai Chiosi\",\"url\":\"https:\\\/\\\/www.aichiosi.it\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.aichiosi.it\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.aichiosi.it\\\/wp-content\\\/uploads\\\/2004\\\/01\\\/logo_fiore_ai_chiosi1.png\",\"contentUrl\":\"https:\\\/\\\/www.aichiosi.it\\\/wp-content\\\/uploads\\\/2004\\\/01\\\/logo_fiore_ai_chiosi1.png\",\"width\":418,\"height\":392,\"caption\":\"Bed and Breakfast Ai Chiosi\"},\"image\":{\"@id\":\"https:\\\/\\\/www.aichiosi.it\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/AiChiosi\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Photo - Bed and Breakfast Ai Chiosi","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.aichiosi.it\/en\/photo\/","og_locale":"en_US","og_type":"article","og_title":"Photo - Bed and Breakfast Ai Chiosi","og_url":"https:\/\/www.aichiosi.it\/en\/photo\/","og_site_name":"Bed and Breakfast Ai Chiosi","article_publisher":"https:\/\/www.facebook.com\/AiChiosi","article_modified_time":"2023-07-21T07:22:45+00:00","og_image":[{"url":"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2013\/12\/1-2.2-Teatro-La-Rosa-e-Busticca1-270x270.jpg","type":"","width":"","height":""}],"twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.aichiosi.it\/en\/photo\/","url":"https:\/\/www.aichiosi.it\/en\/photo\/","name":"Photo - Bed and Breakfast Ai Chiosi","isPartOf":{"@id":"https:\/\/www.aichiosi.it\/en\/#website"},"datePublished":"2020-07-30T13:07:31+00:00","dateModified":"2023-07-21T07:22:45+00:00","breadcrumb":{"@id":"https:\/\/www.aichiosi.it\/en\/photo\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.aichiosi.it\/en\/photo\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.aichiosi.it\/en\/photo\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.aichiosi.it\/en\/"},{"@type":"ListItem","position":2,"name":"Photo"}]},{"@type":"WebSite","@id":"https:\/\/www.aichiosi.it\/en\/#website","url":"https:\/\/www.aichiosi.it\/en\/","name":"Bed and Breakfast Ai Chiosi","description":"Dormire a Pontremoli (MS) - Toscana","publisher":{"@id":"https:\/\/www.aichiosi.it\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.aichiosi.it\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.aichiosi.it\/en\/#organization","name":"Bed and Breakfast Ai Chiosi","url":"https:\/\/www.aichiosi.it\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.aichiosi.it\/en\/#\/schema\/logo\/image\/","url":"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2004\/01\/logo_fiore_ai_chiosi1.png","contentUrl":"https:\/\/www.aichiosi.it\/wp-content\/uploads\/2004\/01\/logo_fiore_ai_chiosi1.png","width":418,"height":392,"caption":"Bed and Breakfast Ai Chiosi"},"image":{"@id":"https:\/\/www.aichiosi.it\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/AiChiosi"]}]}},"_links":{"self":[{"href":"https:\/\/www.aichiosi.it\/en\/wp-json\/wp\/v2\/pages\/3608","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aichiosi.it\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.aichiosi.it\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.aichiosi.it\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aichiosi.it\/en\/wp-json\/wp\/v2\/comments?post=3608"}],"version-history":[{"count":0,"href":"https:\/\/www.aichiosi.it\/en\/wp-json\/wp\/v2\/pages\/3608\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.aichiosi.it\/en\/wp-json\/wp\/v2\/media?parent=3608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}