document.getElementById("home_div").onmousedown = function onhomedown(event) { window.location="http://www.qigongfrisco.com"; }

var pathname = location.pathname;
var short_path = pathname.split(".");
var filename = short_path[0].substr(pathname.lastIndexOf("/")+1);
var not_active = "";

for (i=1; i<8; i++) {
	var theNav = "nav"+i;
	if (theNav!=filename) {
		document.getElementById(theNav).onmouseover = function onmouseover(event) { m_over(this.id); }
		document.getElementById(theNav).onmouseout = function onmouseover(event) { m_out(this.id); }
		//document.getElementById(theNav).onmousedown = function onmousedown(event) { m_down(this.id); }
	} else {
		var theChild = document.getElementById(theNav).childNodes;
		theChild.item(0).src = 'imgs/'+theNav+'_down.jpg';
	}
}

//function m_down(nav) {
	/*
	for (i=1; i<9; i++) {
		var theNav = "nav"+i;
		
		if ((theNav!=nav)&&(theNav!=not_active)) {
			var theChild = document.getElementById(theNav).childNodes;
			theChild.item(0).src = 'imgs/'+theNav+'_normal.jpg';
			document.getElementById(theNav).onmouseover = function onmouseover() { m_over(this.id); }
			document.getElementById(theNav).onmouseout = function onmouseout() { m_out(this.id); }
		} 
	}*/
	//setTimeout ( 'window.location = "'+nav+'.html"', 150 );
	//window.location = nav+".html";
	//window.document.location.href = 'nav4.html';
	//window.location = "nav4.html";
	//alert("wtf");
//}
function m_over(nav){
	var theChild = document.getElementById(nav).childNodes;
	theChild.item(0).src = 'imgs/'+nav+'_over.jpg';
}
function m_out(nav){
	var theChild = document.getElementById(nav).childNodes;
	theChild.item(0).src = 'imgs/'+nav+'_normal.jpg';
}

function show_descript(num) {
	//alert(num);
	switch (num) {
		case 1: 
			document.getElementById("descript").innerHTML = 
			"<h2><i>Helps Qi flow through the spine and strengthens each organ system.</i></h2><br /><h5>as taught by <a href='http://www.qigongrochester.com' target='_blank'>Lisa B. O'Shea</a></h5>";
			break;
		case 2: 
			document.getElementById("descript").innerHTML = 
			"<h2><i>Helps the whole body and is especially good for the shoulders, arms, elbows, and wrists.  This set is done sitting down.</i></h2><br /><h5>as taught by <a href='http://www.qigongrochester.com' target='_blank'>Lisa B. O'Shea</a></h5>";
			break;
		case 3: 
			document.getElementById("descript").innerHTML = 
			"<h2><i>Developed over 2,000 years ago in China.  This version is taught by the Healing Tao Center.  It is believed that each organ in the body has a negative emotion it stores and a positive emotiion that can be cultivated there instead.  The sounds are the language understood by the organs.</i></h2><br /><h5>as taught by <a href='http://www.qigongrochester.com' target='_blank'>Lisa B. O'Shea</a></h5>";
			break;
		case 4: 
			document.getElementById("descript").innerHTML = 
			"<h2><i>Each season's set strengthens and supports particular organs and helps attune the body to that season.</i></h2><br /><h5>as taught by <a href='http://www.qigongrochester.com' target='_blank'>Lisa B. O'Shea</a></h5>";
			break;
		case 5: 
			document.getElementById("descript").innerHTML = 
			"<h2><i>An ancient Qi Gong exercise set created by a very famous and honorable commander of the Southern Sung Dynasty army.  These movements strengthen and support all the organs of the body with special emphasis on the Kidney system which is the root of all the energy in the body.</i></h2><br /><h5>as taught by <a href='http://www.ymaa.com' target='_blank'>Dr. Yang, Jwing-Ming</a></h5>";
			break;
		case 6: 
			document.getElementById("descript").innerHTML = 
			"<h2><i>Empowers women to reach their potential, addressing menstrual and hormonal imbalances, breast and uterine tumors/cysts, emotional ups and downs, menopausal symptoms, and more.</i></h2><br /><h5>as taught by <a href='http://www.radiantlotusqigong.com' target='_blank'>Daisy Lee</a></h5>";
			break;
		case 7: 
			document.getElementById("descript").innerHTML = 
			"<h2><i>A set from Sheng Zhen, meaning unconditional love or sacred truth.  These beautiful movements combined with their contemplations are extremely effective in healing the emotions as well as the body.</i></h2><br /><h5>as taught by <a href='http://www.shengzhen.org' target='_blank'>Master Li Jun Fen</a></h5>";
			break;
	}
	//alert("worked");
}
