//  POP UP WINDOW FOR SIZE CHARTS

var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}





//  HIDE/DISPLAY CUSTOM OPTIONS

//function expandoptions()	{
//	if (document.getElementById('expand').checked == true)
//		{document.getElementById('extraoptions').style.display =  'block';
//		document.getElementById('extraoptions').innerHTML = document.getElementById('extraoptions-hidden').innerHTML;}
//	
//		else
//			{document.getElementById('extraoptions').style.display = 'none';
//			document.getElementById('extraoptions').innerHTML = '';	}
//	}	
	
	
	
//  LEFT NAVIGATION

function categorySwitch(clicked) {
	var a = document.getElementById('menuclinician');
    var b = document.getElementById('menuzandra');
	var c = document.getElementById('menutula');
	var sub_a = document.getElementById('submenuclinician');
	var sub_b = document.getElementById('submenuzandra');
	var sub_c = document.getElementById('submenutula');
	
  if (clicked == null) {
		a.style.color = '#604c3b';
		a.style.background = 'none';
		b.style.color = '#604c3b';
		b.style.background = 'none';
		c.style.color = '#604c3b';
		c.style.background = 'none';

		sub_a.style.display = 'none';
		sub_b.style.display = 'none';
		sub_c.style.display = 'none';
	
   } else if (clicked == '0') {
		a.style.color = '#a30046';
		a.style.background = 'url("/lib/yhst-14574694810612/bg-subNav.gif") 0 left no-repeat';		
		b.style.color = '#604c3b';
		b.style.background = 'none';
		c.style.color = '#604c3b';
		c.style.background = 'none';

		sub_a.style.display = 'block';
		sub_a.style.paddingLeft = '37px';
		sub_b.style.display = 'none';
		sub_c.style.display = 'none';

   }   else if (clicked == '1') {
		b.style.color = '#a30046';
		b.style.background = 'url("/lib/yhst-14574694810612/bg-subNav.gif") 0 left no-repeat';		
		a.style.color = '#604c3b';
		a.style.background = 'none';
		c.style.color = '#604c3b';
		c.style.background = 'none';

		sub_b.style.display = 'block';
		sub_b.style.paddingLeft = '37px';
		sub_a.style.display = 'none';
		sub_c.style.display = 'none';
		
	} else if (clicked == '2') {
		c.style.color = '#a30046';
		c.style.background = 'url("/lib/yhst-14574694810612/bg-subNav.gif") 0 left no-repeat';
		a.style.color = '#604c3b';
		a.style.background = 'none';		
		b.style.color = '#604c3b';
		b.style.background = 'none';		
		
		sub_c.style.display = 'block';
		sub_c.style.paddingLeft = '37px';
		sub_a.style.display = 'none';
		sub_b.style.display = 'none';
	}
}
