$(function(){

	/* BGS */
	if($('body').attr('id') == 'home'){
		$.backstretch("img/bg-1.jpg");
	} else if ($('body').attr('id') == 'contato'){
		$.backstretch("img/bg-3.jpg");
	} else {
		$.backstretch("img/bg-2.jpg");
	}


	/* COUTURE */
	if($('body').attr('id') == 'noivas' || $('body').attr('id') == 'sapatos'){
		$("#fotos a").fancybox({
			'titlePosition' : 'inside',
			'padding' : 5,
			'overlayOpacity' : 0.3,
			'overlayColor' : '#000',
			'showNavArrows' : true,
			'margin' : 30,
			'autoScale' : true
		});
	
		//carousel('#fotos', 5, true, 2, 600);
		carousel('#fotos', 5, false, 2, 600);
	}


	/* ESTILISTA */
	if($('body').attr('id') == 'estilista'){
		var altura = $('body').height() - ($('#topo').innerHeight() + $('#menu').height());
		$('#bg1, #bg2').css('height', altura);

		$(window).resize(function() {
			var altura = $('body').height() - ($('#topo').innerHeight() + $('#menu').height());
			$('#bg1, #bg2').css('height', altura);
		});

	}


	/* CLIENTES */
	if($('body').attr('id') == 'festa'){
		//carousel('#clientsList', 3, false, 2, 800);

		$("#fotos a").fancybox({
			'titlePosition' : 'inside',
			'padding' : 5,
			'overlayOpacity' : 0.3,
			'overlayColor' : '#000',
			'showNavArrows' : true,
			'margin' : 30,
			'autoScale' : true
		});
		//carousel('#fotos', 5, true, 5, 600);
		carousel('#fotos', 5, false, 2, 600);
	}


	/* CLIPPING */
	if($('body').attr('id') == 'clipping'){
		carousel('#clippingList', 3, false, 2, 800);
	}

});

