$(document).ready(function() {
		$('body').load(function() {  
			$.reject(); // Default Settings  
			return false;  
		});
		$('#RCcycle').cycle({
			fx: 'fade'
		});
		$(".infoleg").fancybox({
						'width'				: 650,
						'height'			: 650,
						'autoScale'     	: false,
				        'transitionIn'		: 'none',
						'transitionOut'		: 'none',
						'type'				: 'iframe'
					});
		$(".goog").fancybox({
						'width'				: 652,
						'height'			: 452,
						'transitionIn'		: 'none',
						'transitionOut'		: 'none',
						'type'				: 'iframe'
					});
		$(".contacts").fancybox({
						'width'				: 650,
						'height'			: 450,
						'transitionIn'		: 'none',
						'transitionOut'		: 'none',
						'type'				: 'iframe'
					});
		$("a[rel=w4]").fancybox({
						'cyclic'			:	false,
						'transitionIn'		: 'none',
						'transitionOut'		: 'none',
						'titlePosition' 	: 'over',
						'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
						    return '<span id="fancybox-title-over">RESIDENCE CELESTE - Come Eravamo ' +  (currentIndex + 1) + ' / ' + currentArray.length + '</span>';
						}
					});
		$("a[rel=w5]").fancybox({
						'cyclic'			:	false,
						'transitionIn'		: 'none',
						'transitionOut'		: 'none',
						'titlePosition' 	: 'over',
						'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
						    return '<span id="fancybox-title-over">RESIDENCE CELESTE - Cosa Dicono di Noi ' +  (currentIndex + 1) + ' / ' + currentArray.length + '</span>';
						}
					});			
		$("a[rel=w6]").fancybox({
						'cyclic'			:	false,
						'transitionIn'		: 'none',
						'transitionOut'		: 'none',
						'titlePosition' 	: 'over',
						'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
						    return '<span id="fancybox-title-over">RESIDENCE CELESTE - Visita Virtuale ' +  (currentIndex + 1) + ' / ' + currentArray.length + '</span>';
						}
					});
		$("#chained").scrollable({size: 2, hoverClass: 'hover'}).circular().navigator().autoscroll({steps: 2, interval: 3000}); 
		$(".tipTip").tipTip({maxWidth: "120px", edgeOffset: 1, delay: 100});
	});
animatedcollapse.addDiv('RCmenu', 'fade=1,speed=500,hide=0,group=00')
animatedcollapse.addDiv('CDC', 'fade=1,speed=500,group=RC')
animatedcollapse.addDiv('APT', 'fade=1,speed=500,group=RC')
animatedcollapse.addDiv('SRV', 'fade=1,speed=500,group=RC')
animatedcollapse.addDiv('T1', 'fade=1,speed=500,group=4T')
animatedcollapse.addDiv('T2', 'fade=1,speed=500,group=4T')
animatedcollapse.addDiv('T3', 'fade=1,speed=500,group=4T')
animatedcollapse.addDiv('T4', 'fade=1,speed=500,group=4T')
animatedcollapse.addDiv('T5', 'fade=1,speed=500,group=4T')
animatedcollapse.addDiv('DSlago', 'fade=1,speed=500,group=w2')
animatedcollapse.addDiv('DSsatellite', 'fade=1,speed=500,group=w2')
animatedcollapse.addDiv('google', 'fade=1,speed=500,group=w3')
animatedcollapse.addDiv('auto', 'fade=1,speed=500,group=w3')
animatedcollapse.addDiv('trenobus', 'fade=1,speed=500,group=w3')
animatedcollapse.init()