// JavaScript Document

window.onload=show;
function show(val)
{
		//return the initial state of the buttons: health, about,learn
		clear();
		
		if(val == 1)
		{
			document.getElementById('apDiv7').innerHTML = '';
			
		}
		else if(val == 2)
		{
			document.getElementById('apDiv7').innerHTML = "<span><a href='http://www.gyneflex.com/urinary_incontinence.html' class='subLink'>Urinary Incontinence </a></span>&nbsp;|&nbsp;<span><a href='http://www.gyneflex.com/vaginal_stretching.html' class='subLink'>Post Partum Vaginal Stretching </a></span>&nbsp;|&nbsp;<span><a href='http://www.gyneflex.com/vaginal_weakening.html' class='subLink'>Pelvic Floor Muscle Weakening</a></span><br><span><a href='http://www.gyneflex.com/sexual_function_1.html' class='subLink'>Better Orgasms </a></span>&nbsp;|&nbsp;<span><a href='http://www.gyneflex.com/index2.html' class='subLink'>Healthcare Practitioners </a></span>";
			//this would retain the onmouseover image
			document.getElementById('apDiv3').style.backgroundImage="url(images/menuOn_02.jpg)";
		}
		else if(val == 3){

			document.getElementById('apDiv7').innerHTML = "<span><a href='http://www.gyneflex.com/what_is_gyneflex.html' class='subLink'>What is Gyneflex? </a></span>&nbsp;|&nbsp;<span><a href='http://www.gyneflex.com/instructions.html' class='subLink'>Instructions </a></span>&nbsp;|&nbsp;<span><a href='http://www.gyneflex.com/gyneflex_in_the_news.html' class='subLink'>GyneFlex in the News </a></span>&nbsp;|&nbsp;<span><a href='http://www.gyneflex.com/testimonials.html' class='subLink'>What People are Saying </a></span><br><span><a href='http://www.gyneflex.com/flex_strengths.html' class='subLink'>Flex Strengths </a></span>&nbsp;|&nbsp;<span><a href='http://www.gyneflex.com/faq.html' class='subLink'>Frequently Asked Questions</a></span>";
			//this would retain the onmouseover image
			document.getElementById('apDiv4').style.backgroundImage="url(images/menuOn_03.jpg)";
			}
		else if(val == 4)
		{
			document.getElementById('apDiv7').innerHTML = "<span><a href=' http://www.gyneflex.com/kegel_article.html' class='subLink'>Dr. Kegel Original Article </a></span>&nbsp;|&nbsp;<span><a href='http://www.gyneflex.com/female_patient.pdf' class='subLink' target='_blank' >The Female Patient Article</a></span>&nbsp;|&nbsp;<span><a href='http://www.gyneflex.com/animation.html' class='subLink'>GyneFlex Animation </a></span>&nbsp;|&nbsp;<span><a href='http://www.gyneflex.com/log.html' class='subLink'>Exercise Log</a></span><br><span><a href='http://www.gyneflex.com/dont_work.html' class='subLink'>Why Kegels Don't Work</a></span>&nbsp;|&nbsp;<span><a href='http://www.gyneflex.com/benefits.html' class='subLink'>Additional Benefits </a></span>&nbsp;|&nbsp;<span><a href='http://www.gyneflex.com/vtp.html' class='subLink'>VTP<sup>TM</sup>Vaginal Tightening Program </a></span>";			
			//this would retain the onmouseover image
			document.getElementById('apDiv5').style.backgroundImage="url(images/menuOn_04.jpg)";
		}
		
		else if(val == 5)
		{
			document.getElementById('apDiv7').innerHTML = "";				
		}
}

function clear()
{
		document.getElementById('apDiv3').style.backgroundImage="url(images/menu_02.jpg)";	
		document.getElementById('apDiv4').style.backgroundImage="url(images/menu_03.jpg)";
		document.getElementById('apDiv5').style.backgroundImage="url(images/menu_04.jpg)";
		
}