// ************************
// layer utility routines *
// ************************

function getStyleObject(objectId) {
    // cross-browser function to get an object's style object given its id
    if(document.getElementById && document.getElementById(objectId)) {
	// W3C DOM
	return document.getElementById(objectId).style;
    } else if (document.all && document.all(objectId)) {
	// MSIE 4 DOM
	return document.all(objectId).style;
    } else if (document.layers && document.layers[objectId]) {
	// NN 4 DOM.. note: this won't find nested layers
	return document.layers[objectId];
    } else {
	return false;
    }
} // getStyleObject

function changeObjectVisibility(objectId, newVisibility) {
    // get a reference to the cross-browser style object and make sure the object exists
    var styleObject = getStyleObject(objectId);
    if(styleObject) {
	styleObject.visibility = newVisibility;
	return true;
    } else {
	// we couldn't find the object, so we can't change its visibility
	return false;
    }
} // changeObjectVisibility

function moveObject(objectId, newXCoordinate, newYCoordinate) {
    // get a reference to the cross-browser style object and make sure the object exists
    var styleObject = getStyleObject(objectId);
    if(styleObject) {
	styleObject.left = newXCoordinate;
	styleObject.top = newYCoordinate;
	return true;
    } else {
	// we couldn't find the object, so we can't very well move it
	return false;
    }
} // moveObject

// OmSoft Popup Script
function launchWS(winName) {

	//window height and width
	myHeight = screen.height*.80;
	myWidth = 784;
	
	//widow height bounds
	if ( myHeight < 556 ) {
		myHeight = 556;
	} else if (myHeight>700) {
		myHeight = 700;
	}
	
	//get screen size, and cacl center screen positioning
	var height = screen.height;
	var width = screen.width;
	var leftpos = width / 2 - myWidth / 2;
	var toppos = (height / 2 - myHeight / 2) - 40; 

   //open window	
   msgWindow=window.open(winName,"ws_window","toolbar=no,location=no,directories=no,resizable=yes,menubar=no,scrollbars=no,status=yes,width=" + myWidth + ",height="+ myHeight + ", left=" + leftpos + ",top=" + toppos);  

   //focus window
   setTimeout('msgWindow.focus()',1);
}


function chooseContent(pickTD) {
	
	if(pickTD == 0) {
	document.getElementById('content').innerHTML="Yoga is a Sanskrit word, most frequently translated as union. Through the practice of yoga, we unite our body, mind and spirit to become healthier, happier and more aware. Yoga is a 5,000 year old tradition, and many different styles have evolved over time. We have divided our classes up into different types, but please know that each of our teachers has a unique blend of experience and training, and therefore each class will be different. We encourage you to check out a teacher's bio and try out several classes to find one that is a perfect fit for you.";
	}
	
	if(pickTD == 1) {
	document.getElementById('content').innerHTML="<strong>Advanced Postures</strong><p>This class is taught once a month for experienced students. Inversions, backbends and advanced versions of basic postures will be taught. Challenge yourself and watch your practice grow with Seva!</p>";
	}
	
	if(pickTD == 2) {
	document.getElementById('content').innerHTML="<strong>Ashtanga Yoga</strong><p>Ashtanga Yoga is a sequence of postures linked with breath designed to make the entire body strong and flexible. It is a challenging practice well suited for experienced students.</p>";
	}
	
	if(pickTD == 3) {
	document.getElementById('content').innerHTML="<strong>Beginner's Hatha</strong><p>Beginner's Hatha classes are a perfect introduction to yoga. Poses are broken down and extra time is taken to learn basic principles of alignment and breath awareness. Also beneficial for advanced students who wish to gain a more thorough understanding of yoga and those returning to yoga after not practicing for a time and those with injuries who would like to practice safely.</p>";
	}
	
	if(pickTD == 4) {
	document.getElementById('content').innerHTML="<strong>Children's Yoga</strong><p>Children's yoga is a wonderful way for little ones to develop balance, strength, coordination, breath awareness and the ability to relax. Classes are lively and fun. Please note that all children's yoga classes require an eight week enrollment. There is always a class for parents at the same time.</p>";
	}
	
	if(pickTD == 5) {
	document.getElementById('content').innerHTML="<strong>Family Yoga</strong><p>Family yoga is terrific activity for your whole family to share. Group and partner poses, relaxation techniques and lots of fun!</p>";
	}
	
	if(pickTD == 6) {
	document.getElementById('content').innerHTML="<strong>Forrest Yoga</strong><p>Hatha yoga taught in the style of Anna Forrest. Postures are challenging and there is a strong focus on the breath and finding your own yogic edge.</p>";
	}
	
	if(pickTD == 7) {
	document.getElementById('content').innerHTML="<strong>Gentle Hatha</strong><p>Gentle hatha classes are slow, relaxing and encourage students to practice very safely through the use of modifications. Great for seniors, those with injuries or chronic conditions such as arthritis.</p>";
	}
	
	if(pickTD == 8) {
	document.getElementById('content').innerHTML="<strong>Hatha</strong><p>Hatha yoga seeks to balance the body and mind through asana (yogic postures), breath work and mental focus. Regular practice results in improved strength, flexibility, endurance, balance and circulation. Hatha yoga also improves our ability to cope with stress and calm our minds. To find out more about individual classes, please read the teacher's biography.</p>";
	}
	
	if(pickTD == 9) {
	document.getElementById('content').innerHTML="<strong>Hatha Foundations</strong><p>These classes are for advanced beginners and those who would like to delve more deeply into the study of yoga. Postures are held for longer lengths of time and there is a focus on alignment and form. Appropriate for those who are learning to practice with a challenge such as an injury.</p>";
	}
	
	if(pickTD == 10) {
	document.getElementById('content').innerHTML="<strong>Infant Yoga</strong><p>These classes are paired with a hatha class for moms. The babies will listen to yogic music to stimulate brain development and be shown gentle movements. Moms and babies must enroll in a series to participate.</p>";
	}
	
	if(pickTD == 11) {
	document.getElementById('content').innerHTML="<strong>Kundalini</strong><p>Kundalini Yoga is known as the yoga of awareness. Breath, movement and mantra (sound) are combined to create a powerful form of yoga that strengthens all the systems of the body and connects you to your higher self.</p>";
	}
	
	if(pickTD == 12) {
	document.getElementById('content').innerHTML="<strong>Postnatal Yoga</strong><p>Postnatal Yoga classes are mom and baby classes which help women regain their strength after childbirth and discover ways to integrate yoga into their busy days. These classes are also an opportunity to connect with other moms to share birth stories and parenting tips.</p>";
	}
	
	if(pickTD == 13) {
	document.getElementById('content').innerHTML="<strong>Power Lunch</strong><p>Get all the benefits of yoga during this vigorous lunch hour class.</p>";
	}
	
	if(pickTD == 14) {
	document.getElementById('content').innerHTML="<strong>Prenatal Yoga</strong><p>Practicing prenatal yoga will help you move through the transformations of pregnancy with joy and ease. Prenatal yoga has proved beneficial in preparing the body for labor, birth and recovery. Poses are specifically chosen to promote strength, flexibility and mental strength and calmness. The classes also provide a very loving, community atmosphere for mothers to be. No previous yoga experience is required.</p>";
	}
	
	if(pickTD == 15) {
	document.getElementById('content').innerHTML="<strong>Rejuvenate and Recover</strong><p>These classes are great for helping women recover from childbirth-whether you had your baby a few weeks or many years ago. Classes include core strengthening, pelvic floor work, heart openers, shoulder and hip openers and relaxation techniques.</p>";
	}
	
	if(pickTD == 16) {
	document.getElementById('content').innerHTML="<strong>Restorative Yoga</strong><p>Restorative yoga is the use of props such as bolsters, blocks and blankets to support the body in various poses. Postures are held for 3-30 minutes, encouraging deep relaxation and healing. This type of yoga is beneficial for stress reduction, insomnia, menopausal symptoms, chronic fatigue, injury recovery and much more.</p>";
	}
	
	if(pickTD == 17) {
	document.getElementById('content').innerHTML="<strong>Teen Yoga</strong><p>Hatha yoga is extremely beneficial to teens. Classes will cover asana (yogic postures) as well as self esteem, emotional awareness and stress coping techniques.</p>";
	}
	
	if(pickTD == 18) {
	document.getElementById('content').innerHTML="<strong>Toddler Yoga</strong><p>Toddlers ages 2-4 will work on gross and fine motor skills, balance and coordination while they sing songs and have fun.</p>";
	}	
	
	if(pickTD == 19) {
	document.getElementById('content').innerHTML="<strong>Vinyasa Flow</strong><p>Vinyasa is a Sanskrit word with various meanings including 'putting together' or 'arrangement'. Vinyasa flow is a vigorous practice that links breath and movement to create continuous flow of postures. Classes are creative and free flowing. Vinyasa flow is recommended for experienced students.</p>";
	}	
	
	if(pickTD == 20) {
	document.getElementById('content').innerHTML="<strong>Vinyasa Flow Beginners</strong><p>Start your vinyasa practice in a knowledgeable way! These classes will connect breath with movement to create a continuous flow of postures while teaching the basic principles for a strong, safe vinyasa practice.</p>";
	}
	
	if(pickTD == 21) {
	document.getElementById('content').innerHTML="<strong>Week-end Yoga</strong><p>Finish your week with this fun, invigorating class.</p>";
	}
	
	if(pickTD == 22) {
	document.getElementById('content').innerHTML="<strong>Yoga Moms</strong><p>This is an eight-week workshop on mindful mothering using the 8 limbs of yoga. Connect with other moms and learn how to apply yoga and spiritual practices to your parenting. Class includes active practice, reading and discussion.</p>";
	}
	}