// JavaScript Document
$(document).ready(
	function(){ 
	$('#new').innerfade({
	animationtype: 'slide',
	speed: 550,
	timeout: 5000,
	type: 'random',
	containerheight: '1em' 
});
} ); 

function carica_pagina(id,sez,sez_t,posizione) {
        
		$("#"+sez).load("dr-page.php?p="+id+"");
		$("#"+sez_t).load("dr-page.php?p="+id+"&t=yes");
		goToByScroll(posizione);
}
	
	
		function goToByScroll(id){
     			$('html,body').animate({scrollTop: $("#"+id).offset().top},'slow');
		}
		

       $(document).ready(function() {
			$("#card").fancybox({
				width				: 700,
				height				: 550,
				autoScale			: false,
				transitionIn		: 'none',
				transitionOut		: 'none',
				type				: 'iframe'
				
			});
		});
		
		
		$(document).ready(function() {
			$("#eventi").fancybox({
				width				: 700,
				height				: 550,
				autoScale			: false,
				transitionIn		: 'none',
				transitionOut		: 'none',
				type				: 'iframe'
				
			});
		});
		$(document).ready(function() {
			$("#eventi1").fancybox({
				width				: 700,
				height				: 550,
				autoScale			: false,
				transitionIn		: 'none',
				transitionOut		: 'none',
				type				: 'iframe'
				
			});
		});
		$(document).ready(function() {
			$("#eventi2").fancybox({
				width				: 700,
				height				: 550,
				autoScale			: false,
				transitionIn		: 'none',
				transitionOut		: 'none',
				type				: 'iframe'
				
			});
		});
		$(document).ready(function() {
			$("#locali").fancybox({
				width				: 700,
				height				: 550,
				autoScale			: false,
				transitionIn		: 'none',
				transitionOut		: 'none',
				type				: 'iframe'
				
			});
		});
		$(document).ready(function() {
			$("#locali1").fancybox({
				width				: 700,
				height				: 550,
				autoScale			: false,
				transitionIn		: 'none',
				transitionOut		: 'none',
				type				: 'iframe'
				
			});
		});
		$(document).ready(function() {
			$("#locali2").fancybox({
				width				: 700,
				height				: 550,
				autoScale			: false,
				transitionIn		: 'none',
				transitionOut		: 'none',
				type				: 'iframe'
				
			});
		});
		$(document).ready(function() {
			$("#lavora").fancybox({
				width				: 700,
				height				: 550,
				autoScale			: false,
				transitionIn		: 'none',
				transitionOut		: 'none',
				type				: 'iframe'
				
			});
		});
		$(document).ready(function() {
			$("#lavora1").fancybox({
				width				: 700,
				height				: 550,
				autoScale			: false,
				transitionIn		: 'none',
				transitionOut		: 'none',
				type				: 'iframe'
				
			});
		});
		$(document).ready(function() {
			$("#lavora2").fancybox({
				width				: 700,
				height				: 550,
				autoScale			: false,
				transitionIn		: 'none',
				transitionOut		: 'none',
				type				: 'iframe'
				
			});
		});
		$(document).ready(function() {
			$("#recupera").fancybox({
				width				: 700,
				height				: 550,
				autoScale			: false,
				transitionIn		: 'none',
				transitionOut		: 'none',
				type				: 'iframe'
				
			});
		});
		$(document).ready(function() {
			$("#news0").fancybox({
				width				: 700,
				height				: 550,
				autoScale			: false,
				transitionIn		: 'none',
				transitionOut		: 'none',
				type				: 'iframe'
				
			});
		});
		$(document).ready(function() {
			$("#news1").fancybox({
				width				: 700,
				height				: 550,
				autoScale			: false,
				transitionIn		: 'none',
				transitionOut		: 'none',
				type				: 'iframe'
				
			});
		});
		$(document).ready(function() {
			$("#news2").fancybox({
				width				: 700,
				height				: 550,
				autoScale			: false,
				transitionIn		: 'none',
				transitionOut		: 'none',
				type				: 'iframe'
				
			});
		});
		$(document).ready(function() {
			$("#news3").fancybox({
				width				: 700,
				height				: 550,
				autoScale			: false,
				transitionIn		: 'none',
				transitionOut		: 'none',
				type				: 'iframe'
				
			});
		});
		$(document).ready(function() {
			$("#news4").fancybox({
				width				: 700,
				height				: 550,
				autoScale			: false,
				transitionIn		: 'none',
				transitionOut		: 'none',
				type				: 'iframe'
				
			});
		});
    
