// Popup window function for applyonline page: http://www1.pba.edu/admissions/applyonline.cfm
//function apply(myVar)
//		{
//			window.open('http://www1.pba.edu/admissions/customcf/applyonline.cfm?type=' + myVar,'ApplytoPBA','width=800,height=650,resizable=no,scrollbars=yes,toolbar=no,directories=no,status=no,menubar=no,copyhistory=no'); 
//		}

function addCaptionRight(oImgElem)
{
  // Insert Caption
  var oCaptionElem = document.createElement("div");
  oCaptionElem.className = "captionright";
  // Insert Alt text into Caption
  var oCaptionText = document.createTextNode( oImgElem.alt );
  oCaptionElem.appendChild(oCaptionText );
  // Place Caption in correct order
  if(oImgElem.nextSibling) 
    oImgElem.parentNode.insertBefore(oCaptionElem,
      oImgElem.nextSibling);
  else
    oImgElem.parentNode.appendChild(oCaptionElem);
  // Set width of Caption
  with(oImgElem.style)
  {
    oCaptionElem.style.width = (oImgElem.width+borderLeft+
      borderRight+paddingLeft+paddingRight)+"px";
  }
  return true; 
}

function addCaptionLeft(oImgElem)
{
  // Insert Caption
  var oCaptionElem = document.createElement("div");
  oCaptionElem.className = "captionleft";
  // Insert Alt text into Caption
  var oCaptionText = document.createTextNode( oImgElem.alt );
  oCaptionElem.appendChild(oCaptionText );
  // Place Caption in correct order
  if(oImgElem.nextSibling) 
    oImgElem.parentNode.insertBefore(oCaptionElem,
      oImgElem.nextSibling);
  else
    oImgElem.parentNode.appendChild(oCaptionElem);
  // Set width of Caption
  with(oImgElem.style)
  {
    oCaptionElem.style.width = (oImgElem.width+borderLeft+
      borderRight+paddingLeft+paddingRight)+"px";
  }
  return true; 
}
//	Son of Suckerfish Dropdowns by Patrick Griffiths and Dan Webb
//	   http://www.htmldog.com/articles/suckerfish/dropdowns/
//	
sfHover = function() {
	var sfEls = document.getElementById("nav").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);