//scripts related to the site

function flip(item) {
//	var has = $('#'+item+' .facialmore, #'+item+' .waxingmore').hasClass('slid');
//	alert(has);
//	if(has = true) {
//		$('#'+item).slideToggle(500, function() {}).removeClass('slid');
//	} else {
//		$('.slid').slideToggle(400, function() {}).removeClass('slid');
//		$('#'+item).slideToggle(500, function() {}).addClass('slid');
//	}
$('.slid').slideToggle(400, function() {}).removeClass('slid');
$('#'+item).slideToggle(500, function() {}).addClass('slid');
}

function subpage() { // really only comes into play on Skin Care page however it's reusable just in case
	var subpageheight = $(window).height();
	var sitefooterheight = $('footer.site').height();
	var containerheight = $('#container').height();
	
	if((containerheight + sitefooterheight) < subpageheight) {
		var newheight = subpageheight - sitefooterheight;
		$('#container').css({'min-height': newheight - 100});
	}

}

jQuery(document).ready(function($) {
	subpage();
	$(window).resize(function() {
		subpage();
	});

});
