s_sponsor_brand='';s_sponsor_program='';
function init()	{
	try
	{
		if(document.getElementById && document.createTextNode) 
		{

			var mn=document.getElementById('az-nav');
			var as=mn.getElementsByTagName('a');		
			for (var i=0;i<as.length;i++)
			{
				as[i].onclick=function()
				{
					show(this); 
					highlight(this);
					wmdPageview('doctor.qa01.webmd.com/physician_finder/specialties', 1);
					return false
				}
				as[i].onkeypress=function()
				{
					show(this); 
					highlight(this); 
					return false
				}
			}
		
			hidem();
		
			/* load A -- top 150 */
			document.getElementById('tabA').parentNode.className = 'selected';
			document.getElementById('showA').style.display='block';
			
			/* load subnav if in search all  */
			if (document.getElementById('az-box').className == 'sall') 
			{
				document.getElementById('showAsubNav').style.display='block';
			}
		}
	}
	catch (e)
	{
	}
}


function highlight (l) {
	var mn=document.getElementById('az-nav');
	var as=mn.getElementsByTagName('a');
	
	for (var i=0;i<as.length;i++){	
	as[i].parentNode.className = '';
	}
	l.parentNode.className = 'selected';
}

function show(l) {
	hidem();
	var id=l.href.match(/#(\w.+)/)[1];
	document.getElementById(id).style.display='block';
	
	if (document.getElementById('az-box').className == 'sall') {
		document.getElementById(id + 'subNav').style.display='block';
	}
	
}

function hidem() {
	var wd = document.getElementById('az-box');

	for (var i=0;i<wd.getElementsByTagName('div').length;i++)
	{
		wd.getElementsByTagName('div')[i].style.display='none';
	}
}

//addLoadEvent(init);	 
window.onload=init;
	 
