$(	function () {
	if ( $( '[rel="external"]' ).length > 0 ) {
		$( '[rel="external"]' ).each( function () {
			$( this ).attr( "target", "_blank" );
		} );
	}
} ); // al posto di externalLinks (deprecata)
$( function () {
	if ( $( "#slideshowTesta > li" ).length > 1 ) {
		setTimeout( "animaSlideshowTesta( 0, 1 )", 5000 );
	}
} );
function animaSlideshowTesta( i1, i2 ) {
	$( "#slideshowTesta > li:eq(" + i1 + ")" ).fadeOut();
	$( "#slideshowTesta > li:eq(" + i2 + ")" ).fadeIn();
	var count =  $( "#slideshowTesta > li" ).length;
	i1 = i2;
	i2 = ( i2 == count - 1 ) ? 0 : i2 + 1;
	setTimeout( "animaSlideshowTesta( " + i1 + ", " + i2 + " )", 5000 );
}
function lightboxGallery() {
	$( "[rel=lightboxGallery]" ).lightBox();
}
function video() { 
	win = window.open( "video1.html", "video", "width=400,height=300,top=50,left=100,scrollbars=1" );
	win.focus();
}
function video2() { 
	win = window.open( "video2.html", "video", "width=500,height=300,top=50,left=100,scrollbars=1" );
	win.focus();
}
function video3() { 
	win = window.open( "http://www.noventartestoria.it/webcam/", "webcam", "width=850,height=650,top=50,left=100,scrollbars=1" );
	win.focus();
}
function convalidaRichiestaInformazioni() {
	return true;
}
function spedisci( email ) {
	location = "mailto:" + email.replace( "[presso]", "@" );
}
