PageSourceSearch

https://www.virtuscastenedolo.it/js/defer.php?lu=29072026191724

js virtuscastenedolo.it collected 2026-10-03 18:49:00 UTC 22,551 bytes, 858 lines download raw bytes

1/* JavaScript Document
2 piccoli script caricati in defer
3 quando si usa il jquery $(document).ready() si usa il defer */
4
5
6	
7/* INIZIO REFRESH CAPTCHA */		
8$JQCaptcha = jQuery.noConflict();
9
10$JQCaptcha(document).ready(function () {	
11	Inizializzazione();	
12});
13
14function Inizializzazione() {	
15	$JQCaptcha("span[id^='refreshCaptcha_']").click(function() {
16		
17		var identificatore=$JQCaptcha(this).attr("id");
18		var arrayIdentificatore=identificatore.split("_");
19			
20		var par_fcpt=arrayIdentificatore[1];
21		
22		RefreshCaptcha(par_fcpt);					
23	});	
24}
25
26function RefreshCaptcha(par_fcpt) {	
27				
28	$JQCaptcha.ajax({
29		url: "captcha_gestione.php",
30		type: "POST",
31		data: "azione=rigeneraCaptcha&par_fcpt="+par_fcpt,
32		success: function(data) {
33			$JQCaptcha("#formcaptchaContenitore_"+par_fcpt).html(data);
34			
35			Inizializzazione();
36		}
37	});	
38}
39/* FINE REFRESH CAPTCHA */
40
41
42
43/* INIZIO CHECK FORM */
44var $jQCheckForm = jQuery.noConflict();
45
46$jQCheckForm(document).ready(function () {
47	
48	InizializzazioneCheckForm();
49	
50});
51	
52function InizializzazioneCheckForm()
53    {	
54    $jQCheckForm("form.checkJq").submit(function() {
55       
56        var modulo=$jQCheckForm(this).attr("id");
57       
58		if(!checkModulo("#"+modulo))
59			{
60			console.log("errori");
61			return false;
62			}
63	});
64    }
65	
66	
67	
68function checkModulo(modulo)
69    {
70    var erroriTOT=0;
71		
72    $jQCheckForm(modulo+" .obbligatorio, "+modulo+" input[class*='formato_']").each(function() {
73    	var errori=0;			
74		
75		if($jQCheckForm(this).is(":disabled")==false)
76			{			
77	        var valore=$jQCheckForm.trim($jQCheckForm(this).val());
78			var identificatore=$jQCheckForm(this).attr("id"); 
79			 
80			var classe=$jQCheckForm.trim($jQCheckForm(this).attr("class"));
81			var arrayClasse=classe.split(" ");
82					
83						
84			$jQCheckForm.each(arrayClasse, function(kClass, vClass) {
85	
86				if(vClass=="obbligatorio")
87					{
88					if(valore=="")
89			         	{
90			         	errori++;
91			            }
92					}	
93
94				if(vClass=="formato_cap")
95					{					
96					if(valore!="")
97						{					
98						var dtRegex = new RegExp(/^[0-9]{5}$/);			
99			   	        
100			            if(!dtRegex.test(valore))
101			               	{ 
102		                    errori++;
103		                    }
104		                }	
105					}
106
107				if(vClass=="formato_piva")
108					{					
109					if(valore!="")
110						{					
111						var dtRegex = new RegExp(/^[0-9]{11}$/);			
112			   	        
113			            if(!dtRegex.test(valore))
114			               	{ 
115		                    errori++;
116		                    }
117		                }	
118					}
119
120				if(vClass=="formato_cf")
121					{					
122					if(valore!="")
123						{									
124						var dtRegex = new RegExp(/^[0-9]{11}$/);	
125						var dtRegex2 = new RegExp(/^[a-zA-Z]{6}[0-9]{2}[a-zA-Z]{1}[0-9]{2}[a-zA-Z]{1}[0-9]{3}[a-zA-Z]{1}$/);		
126			   	        				   	        
127			            if(!dtRegex.test(valore) && !dtRegex2.test(valore))
128			               	{ 
129		                    errori++;
130		                    }
131		                }	
132					}
133
134				if(vClass=="formato_int")
135					{					
136					if(valore!="")
137						{									
138						var dtRegex = new RegExp(/^\d*$/);		
139			   	        				   	        
140			            if(!dtRegex.test(valore))
141			               	{ 
142		                    errori++;
143		                    }
144		                }	
145					}
146
147				if(vClass=="formato_telefono")
148					{					
149					if(valore!="")
150						{									
151						var dtRegex = new RegExp(/^[+./0123 456789-]+$/);		
152			   	        				   	        
153			            if(!dtRegex.test(valore))
154			               	{ 
155		                    errori++;
156		                    }
157		                }	
158					}
159
160				if(vClass=="formato_email")
161					{					
162					if(valore!="")
163						{									
164						var dtRegex = new RegExp(/^([\w-\.]+@([\w-]+\.)+[\w-]{2,6})?$/);		
165			   	        				   	        
166			            if(!dtRegex.test(valore))
167			               	{ 
168		                    errori++;
169		                    }
170						}
171					}			
172
173				if(vClass=="formato_email")
174					{					
175					if(valore!="")
176						{									
177						var dtRegex = new RegExp(/^([\w-\.]+@([\w-]+\.)+[\w-]{2,6})?$/);		
178			   	        				   	        
179			            if(!dtRegex.test(valore))
180			               	{ 
181		                    errori++;
182		                    }
183						}
184					}		
185
186				if(vClass.indexOf("formato_obb_se_not_")>=0)
187					{				
188					if(valore=="")
189						{
190						var altroCampo=vClass.replace("formato_obb_se_not_","");	
191						var valoreAltroCampo=$jQCheckForm.trim($jQCheckForm(modulo+" #"+altroCampo).val());	
192							   	        
193			            if(valoreAltroCampo=="")
194			               	{ 
195		                    errori++;
196		                    }
197						}
198					}
199					
200					
201				if(errori>0)
202	               	{			
203	                $jQCheckForm(modulo+" #"+identificatore).addClass("field-errore");
204                
205					if($jQCheckForm(modulo+" label[for='"+identificatore+"']").length>0)
206						{						
207						$jQCheckForm(modulo+" label[for='"+identificatore+"']").addClass("label-errore");	
208						}
209                    }
210                else
211                    {     
212	                $jQCheckForm(modulo+" #"+identificatore).removeClass("field-errore");
213					    
214					if($jQCheckForm(modulo+" label[for='"+identificatore+"']").length>0)
215						{						
216						$jQCheckForm(modulo+" label[for='"+identificatore+"']").removeClass("label-errore");	
217						} 
218                    }
219			
220			});
221			
222			}			
223				
224		erroriTOT=parseInt(erroriTOT)+parseInt(errori);
225	});
226	    
227    
228	if(erroriTOT==0)
229		{
230    	return true;
231		}
232	else
233		{
234    	return false;
235		}
236    }
237/* FINE CHECK FORM */
238
239
240
241/* INIZIO SCROLL CON ANCORA */
242var $jQScrollOnElement = jQuery.noConflict();
243
244function gestisciScrollAncora()
245{
246	if (location.hash)
247	{
248		var hash = location.hash.replace("#", "");
249		var elemento = "#" + hash;
250
251		/* fallback per ancora vecchio stile */
252		if ($jQScrollOnElement(elemento).length == 0)
253		{
254			elemento = "a[name='" + hash + "']";
255		}
256
257		/* casi speciali tuoi */
258		if (hash.indexOf("Formrichiesteinfo") === 0)
259		{
260			elemento = "#modulo" + hash;
261		}
262		else if (hash.indexOf("box") === 0)
263		{
264			var numero = hash.substring(3);
265			if (/^[1-9][0-9]*$/.test(numero))
266			{
267				elemento = "#box" + numero;
268			}
269		}
270		else if (hash.indexOf("contenitoreBox") === 0)
271		{
272			var numero = hash.substring(14);
273			if (/^[1-9][0-9]*$/.test(numero))
274			{
275				elemento = "#contenitoreBox" + numero;
276			}
277		}
278		else if (hash.indexOf("paragrafoPagina") === 0)
279		{
280			var numero = hash.substring(15);
281			if (/^[1-9][0-9]*$/.test(numero))
282			{
283				elemento = "#paragrafoPagina" + numero;
284			}
285		}
286		else if (hash.indexOf("contenitoreParagrafi") === 0)
287		{
288			var numero = hash.substring(20);
289			if (/^[1-9][0-9]*$/.test(numero))
290			{
291				elemento = "#contenitoreParagrafi" + numero;
292			}
293		}
294
295		if ($jQScrollOnElement(elemento).length > 0)
296		{
297			ScrollOnElement(elemento, 150);
298		}
299	}
300}
301
302function ScrollOnElement(element, riduci)
303{
304	if (typeof riduci == "undefined") riduci = 0;
305
306	var top = ($jQScrollOnElement(element).offset().top) - riduci;
307
308	if ($jQScrollOnElement(".box-barra-alta").length)
309	{
310		top = top - $jQScrollOnElement(".box-barra-alta").outerHeight(true);
311	}
312
313	if ($jQScrollOnElement("#banner-anteprima").length)
314	{
315		top = top - $jQScrollOnElement("#banner-anteprima").outerHeight(true);
316	}
317
318	$jQScrollOnElement(".menu-orizzontale-con-blocco").each(function () {
319		top = top - ($jQScrollOnElement(this).outerHeight(true) * 2);
320	});
321
322	$jQScrollOnElement("html, body").stop().animate(
323		{ scrollTop: top },
324		800
325	);
326}
327
328$jQScrollOnElement(document).ready(function () {
329
330	/* scroll al caricamento pagina */
331	gestisciScrollAncora();
332
333	/* click su link con ancora */
334	$jQScrollOnElement("a[href^='#']").click(function(e){
335
336		var target = $jQScrollOnElement(this).attr("href");
337
338		if (target.length > 1 && $jQScrollOnElement(target).length)
339		{
340			e.preventDefault();
341
342			/* aggiorna URL senza far saltare il browser */
343			if (history.pushState)
344			{
345				history.pushState(null, null, target);
346			}
347			else
348			{
349				location.hash = target;
350			}
351
352			ScrollOnElement(target, 150);
353		}
354	});
355
356});
357/* FINE SCROLL CON ANCORA */
358
359
360
361/* INIZIO SORTBY PER LE PAGINE DI ELENCO */
362var $JQordinaSortBy= jQuery.noConflict();
363
364$JQordinaSortBy(document).ready(function (){
365
366	let phpSelfDoveSono=$JQMenuTastiAttivi("input[id='phpSelfDoveSono']").val();
367	let phpSelfDoveSono2=$JQMenuTastiAttivi("input[id='phpSelfDoveSono2']").val();
368	
369	if(phpSelfDoveSono=="categorie.php" || phpSelfDoveSono2=="categorie.php")
370		{
371		if($JQordinaSortBy("#ordinaSortBy").length ) {
372						
373			$JQordinaSortBy("#ordinaSortBy").change(function() {
374				
375				$JQordinaSortBy("form[id='paginazione'] #ordinaPer").val($JQordinaSortBy( "#ordinaSortBy option:selected" ).val());
376				$JQordinaSortBy("form[id='paginazione'] #pagina").val(""); /*annullo la pagina altrimenti non funziona più il lazy loading */
377				$JQordinaSortBy("form[id='paginazione']").submit();			
378			});		
379		}
380 	}
381	
382});
383/* FINE SORTBY PER LE PAGINE DI ELENCO */		
384		
385
386
387/* INIZIO FILTRI PER LE PAGINE DI ELENCO */
388var $JQfiltri= jQuery.noConflict();
389
390$JQfiltri(document).ready(function (){
391		
392	let phpSelfDoveSono=$JQMenuTastiAttivi("input[id='phpSelfDoveSono']").val();
393	let phpSelfDoveSono2=$JQMenuTastiAttivi("input[id='phpSelfDoveSono2']").val();
394	
395	if(phpSelfDoveSono=="categorie.php" || phpSelfDoveSono2=="categorie.php")
396		{
397		$JQfiltri("a[name='area-filtri']").click(function(e, first){			
398				e.preventDefault();	 			  
399		
400				var display=$JQfiltri("+ div.area-filtri", $JQfiltri(this)).css("display");
401				$JQfiltri("+ div.area-filtri", $JQfiltri(this)).slideToggle(first ? 0 : 400);
402			
403				return false;
404		});
405	
406	
407		if($JQfiltri("div[id^='filtroElenco']").length ) 
408			{  		
409			$JQfiltri("div[id^='filtroElenco']").click(function() {
410				 
411				var arrayFiltri=new Array(); 
412				
413				if($JQfiltri("form[id='paginazione'] #filtri").val()!="")
414					{
415					arrayFiltri=$JQfiltri("form[id='paginazione'] #filtri").val().split(",");
416					}
417					
418				var nArray=count(arrayFiltri);
419			
420				var arrayIdentificatoreFiltro=$JQfiltri(this).attr("id").split("filtroElenco");
421	
422				if($JQfiltri.inArray(arrayIdentificatoreFiltro[1], arrayFiltri)<0)
423					{
424					arrayFiltri[nArray]=arrayIdentificatoreFiltro[1];
425					}
426				
427				$JQfiltri("form[id='paginazione'] #filtri").val(implode(",",arrayFiltri));
428				$JQfiltri("form[id='paginazione'] #azione").val("cercaspec");
429				$JQfiltri("form[id='paginazione'] #pagina").val(""); /*annullo la pagina altrimenti non funziona più il lazy loading */
430				$JQfiltri("form[id='paginazione']").submit();
431			});
432			}
433
434		if($JQfiltri("select[id^='filtroSelect']").length ) 
435			{  		
436			$JQfiltri("select[id^='filtroSelect']").change(function() {
437				 
438				var arrayFiltri=new Array(); 
439				
440				$JQfiltri("select[id^='filtroSelect']").each(function() {
441					
442					var valore=$JQfiltri(this).val();
443					
444					if(valore!="")
445						{
446						var nArray=count(arrayFiltri);
447										
448						if($JQfiltri.inArray(valore, arrayFiltri)<0)
449							{
450							arrayFiltri[nArray]=valore;
451							}	
452						}
453				});
454				
455				$JQfiltri("form[id='paginazione'] #filtri").val(implode(",",arrayFiltri));
456				$JQfiltri("form[id='paginazione'] #azione").val("cercaspec");
457				$JQfiltri("form[id='paginazione'] #pagina").val(""); /*annullo la pagina altrimenti non funziona più il lazy loading */
458				$JQfiltri("form[id='paginazione']").submit();
459			});
460			}
461	
462			
463		if( $JQfiltri("div[id^='filtroElenco']").length || $JQfiltri("select[id^='filtroSelect']").length || $JQfiltri("img[id^='filtroElimina']").length )
464			{		 		
465			$JQfiltri("#filtroEliminaTutti").click(function() {
466			
467				$JQfiltri("form[id='paginazione'] #filtri").val("");
468				$JQfiltri("form[id='paginazione'] #azione").val("cercaspec");
469				$JQfiltri("form[id='paginazione'] #pagina").val(""); /*annullo la pagina altrimenti non funziona più il lazy loading */
470				$JQfiltri("form[id='paginazione']").submit();			
471			});	
472				 		
473			$JQfiltri("img[id^='filtroElimina'], #filtroEliminaTutti").click(function() {
474			
475				var arrayFiltri=new Array(); 
476				
477				if($JQfiltri("form[id='paginazione'] #filtri").val()!="")
478					{
479					arrayFiltri=$JQfiltri("form[id='paginazione'] #filtri").val().split(",");
480					}
481					
482				var nArray=count(arrayFiltri);
483			
484				var arrayIdentificatoreFiltro=$JQfiltri(this).attr("id").split("filtroElimina");
485				
486				arrayFiltri.splice($JQfiltri.inArray(arrayIdentificatoreFiltro[1], arrayFiltri),1);
487				
488				$JQfiltri("form[id='paginazione'] #filtri").val(implode(",",arrayFiltri));
489				$JQfiltri("form[id='paginazione'] #azione").val("cercaspec");
490				$JQfiltri("form[id='paginazione'] #pagina").val(""); /*annullo la pagina altrimenti non funziona più il lazy loading */
491				$JQfiltri("form[id='paginazione']").submit();
492			});
493			}
494		}
495});
496/* FINE FILTRI PER LE PAGINE DI ELENCO */
497
498
499
500/* INZIO CAMBIO VALUTA */
501var $jQValuta = jQuery.noConflict();
502
503$jQValuta(document).ready(function (){
504	
505	if($jQValuta("#idvalutaopzionale").length )
506		{
507		$jQValuta("#idvalutaopzionale").change(function() {
508			CambiaValuta($jQValuta(this).val());			
509		});
510		}
511});
512
513function CambiaValuta(value)
514	{
515	$jQValuta.ajax({
516		url: 'box/box_cambiavaluta.php',
517		type: 'POST',
518		data: 'azione=cambiavaluta&valutascelta=' + value,
519		success: function() {
520			location.reload();		
521		}
522	});	
523	}
524/* FINE CAMBIO VALUTA */
525
526
527
528/* INIZIO TORNA IN CIMA ALLE PAGINE */
529var $JQscrolltop = jQuery.noConflict(); 
530
531function tornaSu()
532	{
533	$JQscrolltop('html,body').animate({scrollTop:0}, 'slow');
534	}	
535	
536$JQscrolltop(document).ready(function (){
537	
538	$JQscrolltop("#tornasu").click(function(){
539		tornaSu();
540	});
541});
542
543$JQscrolltop(window).scroll(function(e){
544	
545	var mioscroll = $JQscrolltop(window).scrollTop();
546	
547	if(mioscroll >= 300)
548		{
549		$JQscrolltop("#tornasu").fadeIn();
550		}
551	else
552		{
553		$JQscrolltop("#tornasu").fadeOut();
554		}
555});
556/* FINE TORNA IN CIMA ALLE PAGINE */
557
558
559
560/* INIZIO RESIZE FORM */
561var $jQresizeFormBox = jQuery.noConflict();
562
563$jQresizeFormBox(document).ready(function () {
564	
565		resizeFormBox();
566	});
567	
568function resizeFormBox()
569	{
570	if($jQresizeFormBox(window).width() > 800)
571		{
572		$jQresizeFormBox(".boxcerca form, .box-generico form[id^='moduloFormrichiesteinfo']").each(function (e){
573			
574			var w=$jQresizeFormBox(this).outerWidth();
575			
576			if(w<260)
577				{
578				$jQresizeFormBox(this).find(".formcontattiriga").each(function (e1){
579					$jQresizeFormBox(this).css({"display": "block"});
580				});
581				
582				$jQresizeFormBox(this).find(".formcontattirigacampo").each(function (e2){
583					$jQresizeFormBox(this).css({"width": "100%", "padding-right": "0"});
584				});
585				}
586		});
587		}
588	}
589/* FINE RESIZE FORM */
590
591
592
593/* INIZIO ADATTAMENTO SWF ALLA LARGHEZZA DEL CONTENITORE */
594var $jQEmbed = jQuery.noConflict();
595
596$jQEmbed(document).ready(function (){
597	$jQEmbed(".embedcontainer").each(function(){
598	 
599	var w=$jQEmbed(this).find("input[name='larghezzaswf']").val();
600	var h=$jQEmbed(this).find("input[name='altezzaswf']").val();	
601	var wContainer=$jQEmbed(this).width();
602	
603	var from_w=w;
604	var from_h=h;
605	
606	var to_w = wContainer;
607	
608	if(from_w<to_w)
609		{
610		to_w=w;
611		to_h = h;
612		}
613	else
614		{
615		var percent = (to_w/from_w); 
616		var to_h=(from_h*percent);
617		}
618	
619	$jQEmbed(this).find("embed").width(to_w);
620	$jQEmbed(this).find("embed").height(to_h);
621	});
622});
623/* FINE ADATTAMENTO SWF ALLA LARGHEZZA DEL CONTENITORE */
624
625
626/* INIZIO JQUERY GENERICO */
627var $jQGenerico = jQuery.noConflict();
628
629$jQGenerico(document).ready(function () {
630	
631	resizeScreen();
632		
633	var idResize;
634	$jQGenerico(window).resize(function() {
635	    clearTimeout(idResize);
636	    idResize = setTimeout(doneResizing, 500);		    
637	});
638		
639	// inizio spostamento contenuto sito e altro secondo altezza barra alta
640	if($jQGenerico("#banner-anteprima").length>0 || $jQGenerico(".box-barra-alta").length>0 || $jQGenerico("#box-barra-alta-mobile").length>0 || $jQGenerico("#banner-avviso-modello").length>0)	
641		{
642		var height=0;
643		var height2=0;
644		
645		if($jQGenerico(".box-barra-alta").length>0)
646			{
647			height=$jQGenerico(".box-barra-alta").outerHeight(true);
648			}	
649		else if($jQGenerico("#box-barra-alta-mobile").length>0)
650			{
651			height=$jQGenerico("#box-barra-alta-mobile").outerHeight(true);
652			}	
653			
654		if($jQGenerico("#banner-avviso-modello").length>0 || $jQGenerico("#banner-anteprima").length>0)
655			{					
656			if($jQGenerico("#banner-avviso-modello").length>0)
657				{
658				height2=parseFloat(height2)+parseFloat($jQGenerico("#banner-avviso-modello").outerHeight(true));
659				}	
660			if($jQGenerico("#banner-anteprima").length>0)
661				{
662				height2=parseFloat(height2)+parseFloat($jQGenerico("#banner-anteprima").outerHeight(true));
663				}
664			
665			height=parseFloat(height)+parseFloat(height2);
666			
667			$jQGenerico(".box-barra-alta").css({"top":height2+"px"});
668			
669			
670			if($jQGenerico("#box-barra-alta-mobile").length)
671				{
672				$jQGenerico("#box-barra-alta-mobile").css({"top":height2+"px"});
673				$jQGenerico("#menu-burger-nav-mobile").css({"top":height2+"px"});
674				}
675			}	
676		
677		$jQGenerico("#sfondo-sito-home, #sfondo-sito").css({"padding-top":height+"px", "-webkit-transition":"padding-top .5s linear", "-moz-transition":"padding-top .5s linear", "-ms-transition":"padding-top .5s linear", "-o-transition":"padding-top .5s linear", "transition":"padding-top .5s linear"});
678		$jQGenerico(".menu-burger-nav").css({"top":(height+1)+"px"});
679		}
680	// fine spostamento contenuto sito e altro secondo altezza barra alta
681		
682	
683		
684	// inizio lingua browser per successivo popup siti collegati 
685	const getLanguage = () => navigator.userLanguage || (navigator.languages && navigator.languages.length && navigator.languages[0]) || navigator.language || navigator.browserLanguage || navigator.systemLanguage || "it";
686
687	var linguaBrowser=getLanguage();
688	linguaBrowser1=linguaBrowser.toLowerCase();		
689	linguaBrowser2=linguaBrowser1.split("-");
690	linguaBrowser2=linguaBrowser2[0];
691	
692	
693	array_lingue = new Array();
694
695	$jQGenerico("#linguabrowser").html("lingua browser: "+linguaBrowser+" | lingua browser 1: "+linguaBrowser1+" | lingua browser 2: "+linguaBrowser2);
696	$jQGenerico("#linguasitoweb").html("it");
697	
698	if($jQGenerico(".windows_SitiWebLingua").length>0)
699		{		
700		if(linguaBrowser1!="it")
701			{	
702			if(
703				linguaBrowser2!="it" ||
704				
705				(
706					linguaBrowser2=="it" &&
707					in_array (linguaBrowser1, array_lingue)
708				)
709			)
710				{
711				// mostro popup siti in lingua
712				$jQGenerico(".windows_SitiWebLingua_sfondo").show();	
713				$jQGenerico(".windows_SitiWebLingua").css({"display":"flex"});
714				}
715			}
716		
717		$jQGenerico(".windows_SitiWebLingua .winsitiweblingua-boxscelta").click(function (e)
718			{				
719			var url=$jQGenerico(this).attr("data-url");
720			
721			window.location = url;
722			});
723			
724		$jQGenerico(".windows_SitiWebLingua .winsitiweblingua-boxattuale").click(function (e)
725			{				
726			$jQGenerico(".windows_SitiWebLingua .windows_small_chiudi").trigger("click");
727			});
728
729		$jQGenerico(".windows_SitiWebLingua .windows_small_chiudi").click(function (e)
730			{				
731			$jQGenerico.post("https://www.virtuscastenedolo.it/piede.php", {"azione": "setwinlinguasitoweb"});
732			});			
733		}
734	// fine lingua browser per successivo popup siti collegati 
735	
736	
737	$jQGenerico(".windows_small_chiudi").click(function (e)
738		{
739		$jQGenerico(".windowsSfondo").fadeOut(1000);			
740		$jQGenerico(".windows").fadeOut(1000);
741		});
742	
743	
744	$jQGenerico(".calDateEvento div[data-navlink]").click(function() {
745				
746		var url=$jQGenerico(this).attr("data-urllink");	
747		var opzioni=$jQGenerico(this).attr("data-navlink");		
748		var obj = jQuery.parseJSON(opzioni);		
749		var querystring = $jQGenerico.param(obj);
750		
751		var redirect=window.location.protocol+"//"+window.location.hostname+"/"+url+"?"+querystring;
752		
753		$jQGenerico(location).attr("href",redirect);
754	});
755});
756
757	
758	
759function doneResizing()
760	{		
761  	if(typeof PiedeFisso == "function")
762		{
763		PiedeFisso();
764		}
765	if(typeof resizeFormBox == "function")
766		{
767		resizeFormBox();
768		}
769	if(typeof resizeScreen == "function")
770		{	
771		resizeScreen();
772		}
773	}
774	
775	
776function resizeScreen()
777	{			
778	var risoluzionedimensione_prima=$jQGenerico("#risoluzioneschermo #risoluzionedimensione").html().split(" × ");
779	var detectmobile_prima=$jQGenerico("#risoluzioneschermo #detectmobile").html();
780	
781	$jQGenerico.post("https://www.virtuscastenedolo.it/intestazione_css.php", { azione: "resizescreen", windowwidth: $jQGenerico(window).width(), windowheight: $jQGenerico(window).height() }, function(response) {
782		
783		$jQGenerico("#risoluzioneschermo #risoluzionedimensione").html($jQGenerico(window).width()+" × "+$jQGenerico(window).height());
784		$jQGenerico("#risoluzioneschermo #detectmobile").html(response);
785		
786		var risoluzionedimensione_dopo=$jQGenerico("#risoluzioneschermo #risoluzionedimensione").html().split(" × ");
787		var detectmobile_dopo=$jQGenerico("#risoluzioneschermo #detectmobile").html();
788		
789		if(detectmobile_prima!="" && detectmobile_prima!=detectmobile_dopo)
790			{
791			location.reload();			
792			}
793	});		    
794	}
795	
796	
797function ShowWindow(win)
798	{
799	$jQGenerico(win+"_sfondo").fadeIn(1000);
800	$jQGenerico(win).fadeIn(1000);	
801	}
802	
803
804function HideWindow(win)
805	{
806	$jQGenerico(win+"_sfondo").fadeOut(1000);			
807	$jQGenerico(win).fadeOut(1000);
808	} 
809
810
811function shareFacebook(url,titolo) 
812	{
813	window.open("http://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(url),"sharer","toolbar=0,status=0,width=626,height=436");
814	}	
815
816
817function shareTwitter(url,titolo) 
818	{
819	window.open("https://twitter.com/intent/tweet?url="+encodeURIComponent(url),"sharer","toolbar=0,status=0,width=626,height=436");
820	}	
821	
822
823function shareWhatsapp(url,titolo) 
824	{
825	window.open("https://api.whatsapp.com/send?phone=&text="+encodeURIComponent(url)+"%0A%0A"+titolo,"sharer","toolbar=0,status=0,width=650,height=660");
826	}
827	
828	
829function shareMessenger(url) 
830	{			
831	window.open("https://www.facebook.com/dialog/send?app_id=767547120467610&link="+encodeURIComponent(url)+"&redirect_uri="+encodeURIComponent(url)+"&display=popup","sharer","toolbar=0,status=0,width=626,height=436");
832	}
833
834
835function shareTelegram(url,titolo) 
836	{
837	window.open("https://t.me/share?url="+encodeURIComponent(url)+"&text="+titolo,"sharer","toolbar=0,status=0,width=626,height=436");
838	}		
839
840
841function copyUrl(url,questo)
842	{			
843	var sampleTextarea = document.createElement("textarea");
844	
845	document.body.appendChild(sampleTextarea);
846	sampleTextarea.value = url; //save main text in it
847	sampleTextarea.select(); //select textarea contenrs
848	document.execCommand("copy");
849	document.body.removeChild(sampleTextarea);
850	
851	
852	questo.after("<div class=\"confermacopyurl\">Link copiato negli appunti</div>");
853	setTimeout(function(){
854	  		$jQGenerico(".confermacopyurl").remove();
855	  	},3000);
856	}
857
858/* FINE JQUERY GENERICO */

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.