/*
HomeSpa JavaScript Library
(c) Copyright 2010. Mariposa Effects, Ltd.
*/

function showContactUs()
{
	$('contentHeader').update("Contact Us");
	
	new Ajax.Updater('contentBody', '/rest.php?func=getcontacttext', { method: 'get' });
	$('contentPane').show();
}

function showServiceDetail(serviceType)
{
	//if(serviceDetail);
	var str = "";
	
	if(serviceType == "mariposa_skin")
	{
		str = "<h3>Skin Care</h3>";
		
		str += "$69 Optimal Facial<br />";
		str += "<em>(approx. 45 mins with no deep-pore extractions)</em><br /><br />";
		str += "$96 Treatment Facial<br />";
		str += "<em>(approx 1:15 hr with deep-pore extractions)</em><br />";
		str += "Choose above between a facial with extractions or a";
		str += "facial without extractions, and let your aesthetician select the skin profile below that is best for you:<br /><br />";
		str += "Balancing (normal/oily skin)<br />";
		str += "basic cleansing, exfoliation, and hydration; very relaxing<br /><br />";
		str += "Calming (sensitive/couperose skin)<br />";
		str += "calms, strengthens, and protects; non-sensitizing<br /><br />";
		str += "Purifying (oily/congested skin)<br />";
		str += "decongests and unclogs pores; minimizes surface oiliness<br /><br />";
		str += "Revitalizing (dry/mature skin)<br />";
		str += "firms and improves skin's elasticity; cell-regenerating treatment<br /><br />";
		str += "Clarifying back Treatment $89<br />";
		str += "This is a :60 min facial for the skin on your back designed to combat breakouts, exfoliate dead cells, ";
		str += "even out the skin tone, and minimize surface bacteria. If you're prone to blemishes on your back and shoulders, this treatment is for you!<br /><br />";
		str += "Replenishing Eye Treatment $30<br />";
		str += "This is a :30 min skin-pampering eye treatment which focuses on increasing circulation, minimizing fine lines and dark circles, and reducing puffiness.";
	
	}
	else if(serviceType == "mariposa_waxing")
	{
		str = "<h3>Waxing</h3>";
		
		str += "Expert Eyebrow Sculpting by Maria  $33<br />";
		str += "Lip $10<br />";
		str += "Chin $12<br />";
		str += "Lip/Chin $20<br />";
		str += "Sideburns $16<br />";
		str +="Neck $16<br />";
		str += "Eyebrow Sculpting/Lip $40<br />";
		str += "Eyebrow Sculpting/Chin $42<br />";
		str += "Eyebrow Sculpting/Lip/Chin $52<br />";
		str += "Full Face (eyebrow, lip, chin, sideburns) $66<br />";
		str += "Full Face & Neck $80<br /><br />";
		str += "Please book your appointment for waxing well in advance!";
	}
	else if(serviceType == "mariposa_makeup")
	{
		str = "<h3>Makeup &amp; Lashes</h3>";
		str += "NovaLash<sup>TM</sup> Eyelash Extensions are a totally new way to extend the length and thickness of your eyelashes. They are applied on a hair-by-hair basis to your own lashes for a totally natural look. Properly applied NovaLash<sup>TM</sup> lashes can last up to two months, sometimes more &mdash; depending on how you care for them. Touch-ups and regularly scheduled fill-ins are highly recommended after the initial full set application to replace any lashes that might have fallen off and to keep your lashes looking fabulous for as long as possible. Plus, regular fill-ins follow your natural growth cycle and save you lots of money in the long run. Properly applied lashes will last for the length of the natural growth cycle of each eyelash hair. Care must be taken not to rub or scratch the eyes. Also, any creams, eye makeup removers, lotions, or cleansers containing glycols and carbonates can loosen the bond of NovaLash<sup>TM</sup> Lash Extensions. Care must be taken to apply eye cream sparingly with avoidance of the lash line area. The NovaLash<sup>TM</sup> After Care Kit has all you need to maintain your lashes between your fill-ins and touch-ups. Although you don't need to use mascara, water soluble mascara can be worn; however, constant use of mascara may shorten the life-span of your lashes. WATERPROOF MASCARA IS DEFINITELY NOT RECOMMENDED FOR USE, AS IT WILL DISSOLVE THE BOND WITH THE LASHES.<br /><br />";
		str += "<em>\"Unlike the older generation of lash extension adhesives made in Asia, NovaLash<sup>TM</sup>'s adhesive is of surgical quality, meeting the strictest guidelines for consumer safety in the US. Because the FDA does not yet regulate lash extension adhesives. I encourage consumers to ask their beauticians to provide ingredient lists and expiration dates when using adhesives that have been imported into the U.S. from foreign countries.\"</em>&mdash; J.D. Merszei, M.D., Head of Consumer Health & Safety<br /><br />";
		str += "Only One Eyelash Extension Adhesive Has Passed<br />";
		str += "The Standards of being American made - Pharmaceutical grade<br /><br />";
		str += "Did you know that the adhesive in almost all eyelash extension kits contain toxic chemicals like formaldehyde? NovaLash<sup>TM</sup>'s adhesive is the only eyelash extension product that is American made &mdash; Pharmaceutical grade and physician formulated for safety.<br /><br />";
		
		str += "$250 for full set of<br />";
		str += "regular brown or black lashes<br /><br />";

		str += "$275 for full set of<br />";
		str += "thick or colored lashes<br /><br />";

		str += "$300 for full set of<br />";
		str += "candied or curly lashes<br /><br />";

		str += "$75-$150 for fill ins<br />";
		str += "(price varies according to lash needs!)<br /><br />";
		
		str += "Keep your lashes looking perfectly natural and fabulous and save money <br />";
		str += "with regularly-scheduled fill-ins!<br /><br />";

		str += "$5625 for regular biweekly fill-ins (save 40%/yr)<br />";
		str += "$125 for regular monthly fill-ins (save 25%/yr)<br /><br />";

		str += "Lash Extensions are applied by appointment only by a <br />";
		str += "certified NovaLash<sup>TM</sup> technician at Mariposa Effects, LTD<br />";
		str += "Located at 300 Court St in Cobble Hill, Brooklyn, NY 11231";
	}
	else if(serviceType == "humble_treatments")
	{
		str = "<h3>Body Treatments</h3>";
		
		str += "Our Royal Treatments<br /><br />"
		str += "(No cell phones during services please.)<br /><br />";
		str += "Retexturizing Hand Treatment $45<br />";
		str += "This :30 min nourishing hand treatment* (not a manicure) relieves dryness, removes dead cells, helps to fade age spots, and refines the skin's surface, leaving you with silky, satiny, smooth hands.<br /><br />";
		

		str += "Renewing Foot Treatment $60<br />";
		str += "Better than a pedicure*, this :45 min 'foot facial' is wonderful for dry, tired, or sore feet. Includes foot massage, and exfoliation to soothe, increase circulation, and refine the skin.<br /><br />";

		str += "Aromatic BODY Scrub $75<br />";
		str += "An invigorating all-over body exfoliation to slough off the dead cells and increase circulation leaving the skin smooth and baby soft in under an hour. Using nylon mitts and our unique, enzymatic exfoliant, we effectively polish your skin to reveal a brand new you!<br /><br />";

		str += "Detoxifying FAR-infrared Treatment $125<br />";
		str += "Toxins from the air, water, food, and even our thoughts can be overwhelming to the body, causing premature aging, weight gain, low energy, poor health, and eventually disease. Our intensive Detoxifying Far-Infrared Treatment helps to increase metabolism, encourage weight loss, improve circulation, balance blood sugar, tonify the skin, relax the muscles, and aid in the effective removal of toxins (&mdash;even metals). Your therapist briskly removes superficial skin cells facilitating the penetration of nutrients while maximizing your body's ability to flush potentially harmful toxins from your tissues (especially those hidden in fat cells). Follow this treatment with a remineralizing supplement for best results. (This treatment is not recommended during pregnancy.)<br /><br />";

		str += "** We do not offer manicures or pedicures or any type of nail grooming services.<br /><br />";
		
	}
	else if(serviceType == "humble_detox")
	{
		str = "<h3>Detox</h3>";
		
		str += "Detoxifying FAR-infrared Treatment $125<br /><br />";
		str += "Toxins from the air, water, food, and even our thoughts can be overwhelming to the body, causing premature aging, weight gain, low energy, poor health, and eventually disease. Our intensive Detoxifying Far-Infrared Treatment helps to increase metabolism, encourage weight loss, improve circulation, balance blood sugar, tonify the skin, relax the muscles, and aid in the effective removal of toxins (&mdash;even metals). Your therapist briskly removes superficial skin cells facilitating the penetration of nutrients while maximizing your body's ability to flush potentially harmful toxins from your tissues (especially those hidden in fat cells). Follow this treatment with a remineralizing supplement for best results. (This treatment is not recommended during pregnancy.)";
	}
	else if(serviceType == "humble_tanning")
	{
		str = "<h3>The Healing Humble-Bee - Self-Tanning</h3> More info coming soon!";
	}
	else if(serviceType == "jade_acupuncture")
	{
		str = "<h3>Acupuncture</h3> More info coming soon!";
	}
	else if(serviceType == "jade_massage")
	{
		str = "<h3>Therapeutic Massage</h3>";
		
		str += "$70 MINI sessions are approximately :45 mins<br />";
		str += "$95 REGULAR sessions are approximately 1:15 hr<br />";
		str += "$120 MEGA sessions are approximately 1:45 hr<br /><br />";
		str += "(Your time includes filling out your massage consent sheet, dressing/undressing, bathroom time, etc. No cell phones during services please.)<br /><br />";
		
		str += "Swedish Massage<br /><br />";
		str += "A soothing, traditional massage which induces a state of total relaxation by the manipulation of deep muscle tissue. It's the modality most people think of when they think of massage. Our super-light massage gel with essential oils is used to ease muscle tension, increase circulation, encourage lymphatic flow, and relieve pain.<br /><br />";
		
		str += "Shiatsu Massage<br /><br />";
		str += "A Japanese form of massage concentrating on pressure points, stretching, and compression to balance vital energy in the meridians. It focuses on the entire body, positively affecting the muscular, circulatory and lymphatic systems, relieving stress and anxiety. Try our popular Swedish/Shiatsu combo!<br /><br />";

		str += "Reflexology<br /><br />";
		str += "An ancient Eastern therapeutic massage technique using the thumb and fingers to apply pressure to various points on the feet (and hands) to aid in rebalancing the functions of your internal organs. This treatment is beneficial in healing the entire body, and is a great pick-me-up for those who feel run-down.<br /><br />";

		str += "*All pregnant women must be at least 12 weeks or more in order to receive a massage at The HomeSpa&reg;. Consult your doctor prior to booking an appointment.<br /><br />";

		str += "*If you have a preference regarding the gender of your therapist, simply let us know when booking your appointment, and we'll do our best to accommodate you.";
	}
	else if(serviceType == "jade_herbs")
	{
		str = "<h3>Herbs &amp; Supplements</h3> More info coming soon!";
	}
	
	
	$('serviceDetail').update(str);
}

function showConnectBlurb()
{
	var str = "The HomeSpa&reg; has its very own social network &mdash; HomeSpa&reg; Connect! Come meet the faces behind the spa, and take part in a vibrant and rapidly-growing community.<br/><br />";
	str += "At HomeSpa&reg; Connect you can:";
	str += "<ul><li>Get advice on skin care and wellness</li><li>Share holistic healing tips &amp; tricks</li><li>Get caught up in interesting metaphysical discussions</li>";
	str += "<li>Meet new people with different experiences in skin care, reiki, hypnosis, pilates...the list goes on!</li></ul>";
	str += "<br /><br /><a href = \"http://homespa.ning.com\" target = \"_blank\">Click here</a> to check out HomeSpa&reg; Connect now!";
	
	$('contentHeader').update("Connect with the HomeSpa&reg; Community!");
	$('contentBody').update(str);
	$('contentPane').show();
	
}

function showServices()
{
	var str = "Check out <a href = 'http://homespa.ning.com/page/the-holistic-hangout'>http://homespa.ning.com/page/the-holistic-hangout</a> for more HomeSpa info!<br /><br /> <span class = \"jbold\">Click on the type of service you're interested in:</span><br /><br />";
	//var foo = "<h3>Adam</h3>abracadabra";
	
	str += "<table width = '100%'>";
	str += "<tr><td><strong>Mariposa Effects</strong><ul><li><a style = 'z-index:1000;' href = '#' onClick = \"showServiceDetail('mariposa_skin'); return false;\">Skin Care</a></li><!--<li><a href = '#' onClick = \"showServiceDetail('mariposa_waxing'); return false;\">Waxing</a></li>--><li><a style = 'z-index:1000;' href = '#' onClick = \"showServiceDetail('mariposa_makeup'); return false;\">Makeup &amp; Lashes</a></li></ul></td>";
	str += "<td><strong>The Healing Humble-Bee</strong><ul><li><a style = 'z-index:1000;'  href = '#' onClick = \"showServiceDetail('humble_treatments'); return false;\">Body Treatments</a></li><li><a style = 'z-index:1000;' href = '#' onClick = \"showServiceDetail('humble_detox'); return false;\">Detox Treatments</a></li></ul></td>";
	str += "<td><strong>The Jade Dragonfly</strong><ul><!--<li><a style = 'z-index:1000;' href = '#' onClick = \"showServiceDetail('jade_acupuncture'); return false;\">Acupuncture</a></li>--><li><a style = 'z-index:1000;' href = '#' onClick = \"showServiceDetail('jade_massage'); return false;\">Therapeutic Massage</a></li><li><a style = 'z-index:1000;' href = '#' onClick = \"showServiceDetail('jade_herbs'); return false;\">Herbs &amp; Supplements</a></li></ul></td></table>";
	
	str += "<div class = \"serviceDetail\" id = \"serviceDetail\"></div>";

	$('contentHeader').update("Services");
	//$('contentBody').update(str);
	$('contentBody').update(str);
	$('contentPane').show();

	
}

function showProducts()
{
	var str = "At The HomeSpa&reg; we have worked extra hard to bring you a refreshing line of bath and ";
	str += "body care products that is as nourishing to the skin as it is fragrant to the senses. ";
	str += "Our non-toxic, plant-based ingredients offer the best there is in skin-soothing bath ";
	str += "and body care. In addition to our body washes, lotions, bath oils, and ";
	str += "more, we've also created a superb line of super-scented candles to ";
	str += "make your every moment special and \"spa-like.\"<br/><br />";
	
	str += "<strong>Note:</strong> We're currently still building our automated shopping cart, so for the time being, please call us at 718.596.8668 to place your order, or email therealhomespa@gmail.com<br /><br />";
	
	str += "<h2>Products</h2>";
	str += "<table width = \"100%\">";
	str += "<tr><!--<td><strong>Image</strong></td>--><td><strong>Product Name</strong></td><td><strong>Price / size</strong></td><!--<td><strong>Cart</strong></td>--></tr>";
	str += "<tr><!--<td><img src = '#' width = '64' height = '64' /></td>--><td>Bath Bar</td><td>$4 / 4 oz.</td><!--<td><a href = '#'>Add to Cart</a></td>--></tr>";
	str += "<tr><!--<td><img src = '#' width = '64' height = '64' /></td>--><td>Body Scrub</td><td>$8 / 4 oz.</td><!--<td><a href = '#'>Add to Cart</a></td>--></tr>";
	str += "<tr><!--<td><img src = '#' width = '64' height = '64' /></td>--><td>Diffuser Oil</td><td>$9 / 2 oz.</td><!--<td><a href = '#'>Add to Cart</a></td>--></tr>";
	str += "<tr><!--<td><img src = '#' width = '64' height = '64' /></td>--><td>Body Butter</td><td>$9 / 8 oz.</td><!--<td><a href = '#'>Add to Cart</a></td>--></tr>";
	str += "<tr><!--<td><img src = '#' width = '64' height = '64' /></td>--><td>Bath &amp; Body Oil</td><td>$10 / 8 oz.</td><!--<td><a href = '#'>Add to Cart</a></td>--></tr>";
	str += "<tr><!--<td><img src = '#' width = '64' height = '64' /></td>--><td>Scented Tealights</td><td>$10 / 1 doz.</td><!--<td><a href = '#'>Add to Cart</a></td>--></tr>";
	str += "<tr><!--<td><img src = '#' width = '64' height = '64' /></td>--><td>Body Mist</td><td>$11 / 8 oz.</td><!--<td><a href = '#'>Add to Cart</a></td>--></tr>";
	str += "<tr><!--<td><img src = '#' width = '64' height = '64' /></td>--><td>Bath Crystals</td><td>$11 / 12 oz.</td><!--<td><a href = '#'>Add to Cart</a></td>--></tr>";
	str += "<tr><!--<td><img src = '#' width = '64' height = '64' /></td>--><td>Massage Gel</td><td>$12 / 8 oz.</td><!--<td><a href = '#'>Add to Cart</a></td>--></tr>";
	str += "<tr><!--<td><img src = '#' width = '64' height = '64' /></td>--><td>Body Wash</td><td>$12 / 8 oz.</td><!--<td><a href = '#'>Add to Cart</a></td>--></tr>";
	str += "<tr><!--<td><img src = '#' width = '64' height = '64' /></td>--><td>Body Lotion</td><td>$14 / 8 oz.</td><!--<td><a href = '#'>Add to Cart</a></td>--></tr>";
	str += "<tr><!--<td><img src = '#' width = '64' height = '64' /></td>--><td>Perfume Concentrate</td><td>$14 / 1 oz.</td><!--<td><a href = '#'>Add to Cart</a></td>--></tr>";
	str += "<tr><!--<td><img src = '#' width = '64' height = '64' /></td>--><td>Scented Candle</td><td>$16 / 11 oz.</td><!--<td><a href = '#'>Add to Cart</a></td>--></tr>";
	
	str += "</table>";
	
	$('contentHeader').update("About Our Products");
	$('contentBody').update(str);
	$('contentPane').show();
}

function showPackages()
{
	var str = "Coming soon.";
	
	$('contentHeader').update("Packages");
	$('contentBody').update(str);
	$('contentPane').show();
}

function showShoppingCart()
{
	$('contentHeader').update("Shopping Cart");
	var str = "The shopping cart is currently under construction. In the meantime, to place an order please ";
	str += "call 718.596.8668, or email therealhomespa@gmail.com to place your order.";
	//new Ajax.Updater('contentBody', '/homespa/rest.php?func=getcarthtml', { method: 'get', evalScripts: 'true' });
	$('contentBody').update(str);
	$('contentPane').show();
}

function showTeachers()
{
	$('contentHeader').update("Just for Teachers");
	new Ajax.Updater('contentBody', '/rest.php?func=getteacherstext', { method: 'get' });
	$('contentPane').show();
}

function showCalendar()
{
	var str = "<div style = 'align: center; text-align:center;'>Click to enlarge calendar<br /><a target = '_blank' href = 'images/200910Calendar.jpg'><img src = 'images/200910Calendar_sm.jpg' /></a></div>";
	
	$('contentHeader').update("Calendar");
	$('contentBody').update(str);
	$('contentPane').show();
}

function showMariposa()
{
	var str = "";
	str += "<strong>$75 Optimal Facial</strong><br />";
	str += "(approx. 45 mins with no deep-pore extractions)<br /><br />";
	str += "<strong>$100 Treatment Facial</strong><br />";
	str += "(approx 1:15 hr with deep-pore extractions)<br /><br />";
	
	str += "Choose above between a facial with extractions or a facial without extractions, and let your aesthetician select the skin profile below that is best for you:<br /><br />";

	str += "<ul><li><strong>Balancing</strong> <em>(normal/oily skin)</em><br />basic cleansing, exfoliation, and hydration; very relaxing</li>";
	str += "<li><strong>Calming</strong> <em>(sensitive/couperose skin)</em><br />";
	str += "calms, strengthens, and protects; non-sensitizing</li>";
	str += "<li><strong>Purifying</strong> <em>(oily/congested skin)</em><br />decongests and unclogs pores; minimizes surface oiliness</li>";
	str += "<li><strong>Revitalizing</strong> <em>(dry/mature skin)</em><br />firms and improves skin's elasticity; cell-regenerating treatment</li></ul>";
	str += "<br /><br /><strong>Clarifying back Treatment  $90</strong><br />This is a :60 min facial for the skin on your back designed to combat breakouts, exfoliate dead cells, even out the skin tone, and minimize surface bacteria. If you're prone to blemishes on your back and shoulders, this treatment is for you!";

	$('contentHeader').update("Mariposa Services");
	$('contentBody').update(str);
	$('contentPane').show();

	
}

