// JavaScript Document

function openIframe(name,ww,hh,closeButton) {
	$.fancybox({
		'width'				: ww,
		'height'			: hh,
		'padding'			: 0,
		'margin'			: 0,
		'autoScale'			: true,
		'transitionIn'		: 'fade',
		'transitionOut'		: 'fade',
		'type'				: 'iframe',
		'href'				: name,
		'scrolling'			: 'no',
		'overlayShow'		: true,
		'overlayOpacity'	: 0.5,
		'overlayColor'		: '#000',
		'showCloseButton'   : closeButton
	});
}

// open fancyBox solo per Antirougeurs
var again = false;
function OpenTrattamento(){
	var t=setTimeout("openIframe('trattamento-rossore.html',872,654,false);",500);
	//
}
function openAntirougeurs(name,ww,hh,closeButton) {
	$.fancybox({
		'width'				: ww,
		'height'			: hh,
		'padding'			: 0,
		'margin'			: 0,
		'autoScale'			: true,
		'transitionIn'		: 'fade',
		'transitionOut'		: 'fade',
		'type'				: 'iframe',
		'href'				: name,
		'scrolling'			: 'no',
		'overlayShow'		: true,
		'overlayOpacity'	: 0.5,
		'overlayColor'		: '#000',
		'showCloseButton'   : closeButton,
		'hideOnOverlayClick' : false,
		'onClosed': function() { if(again){OpenTrattamento();}}
	});
}



/*var openedContatti = false;
function ShowHideContatti() {
        if (openedContatti == false) {
			$("#box-CONTATTI").fadeIn({
			duration: 300,
			easing: 'swing'
			});
			openedContatti = true;
			return false;
        } else {
            $("#box-CONTATTI").fadeOut({
			duration: 200,
			easing: 'swing'
			});
			openedContatti = false;
            return false;
        }
    }*/
