
function insertFlashObject(ctlId, src, width, height)
{
    if (ctlId == "")
    {
        document.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\"" + width + "\" height=\"" + height + "\" align=\"middle\">");
    }
    else
    {
        document.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\"" + width + "\" height=\"" + height + "\" id=\"" + ctlId + "\" align=\"middle\">");
    }
    document.write("	<param name=\"allowScriptAccess\" value=\"always\" />");
    document.write("	<param name=\"movie\" value=\"" + src + "\" />");
    document.write("	<param name=\"quality\" value=\"high\" />");
    document.write("	<param name=\"bgcolor\" value=\"#333333\" />");
    document.write("	<param name=\"wmode\" value=\"transparent\" />");
    if (ctlId == "")
    {
        document.write("	<embed src=\"" + src + "\" width=\"" + width + "\" height=\"" + height + "\" align=\"middle\" quality=\"high\" bgcolor=\"#ff0000\" allowScriptAccess=\"always\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" wmode=\"transparent\" />");
    }
    else
    {
        document.write("	<embed src=\"" + src + "\" width=\"" + width + "\" height=\"" + height + "\" align=\"middle\" quality=\"high\" bgcolor=\"#ff0000\" allowScriptAccess=\"always\" type=\"application/x-shockwave-flash\" name=\"" + ctlId + "\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" wmode=\"transparent\" />");
    }
    document.write("</object>");
}


function hideSimpleMenu()
{
    document.getElementById("SimpleMenuDiv").style.display = "none";
}

function hideHomePageContent()
{
    document.getElementById("HomePageContentDiv").style.display = "none";
}

function navMenu(menuItem)
{

	switch (menuItem)
	{
		case "revitalise":
			window.location = "revitalise.php";
			break;
		case "relax":
			window.location = "relax.php";
			break;
		case "rejuvenate":
			window.location = "rejuvenate.php";
			break;
		case "beauty":
			window.location = "beauty.php";
			break;
		case "body":
			window.location = "body.php";
			break;
		case "findus":
			window.location = "findus.php";
			break;
	}

}

function showSlideShow()
{
	window.open("SlideshowXML/slideshow.php", "slideshow", "width=640,height=480,scrollbars=no");
}
