var pe = "";
try {
  document.execCommand("BackgroundImageCache", false, true);
} catch(err) {}


sfHover = function() {
	var sfEls = document.getElementById("nav1").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+="sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp("sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);


function spryMyLinks() 
	{
	var myDiv = document.getElementById('bionav');
	var aLinks=myDiv.getElementsByTagName('a');
	for(var i=0;i<aLinks.length;i++) 
		{
			var myCurrentItem = aLinks[i];
			//aLinks[i].setAttribute('onclick', 'pe.loadContent(this.href);return false;');
			if( myCurrentItem.attachEvent )
				{
				   myCurrentItem.setAttribute('name', myCurrentItem.href);
				   myCurrentItem.href = 'javascript: pe.loadContent("' + myCurrentItem.href + '")';				   
				} 
			else 
				{
				   myCurrentItem.setAttribute('name', myCurrentItem.href);
				   myCurrentItem.setAttribute('onClick', 'pe.loadContent(this.href);return false;');
				}
			
		}
	}

function spryMyNav()
{
if(document.getElementById('bionav'))
	{
	pe = new Spry.Widget.HTMLPanel("bioArea");	
	var mybDiv = document.getElementById('bionav');
	var bLinks=mybDiv.getElementsByTagName('a');
	var myFirstItem = bLinks[0];
	spryMyLinks();
	if ( (top.location.href) == (window.location.href) )
		{
		pe.loadContent(myFirstItem.name);
		}
	}
}
