/* Google Analytics/Urchin Tracker */ 
_uacct = "UA-663425-1";
urchinTracker();


var navbase = "/images/nav/";
function onImg(e,imgname) {
	var iName = navbase + imgname + "_on.gif";
	e.src = iName;
}
function offImg(e,imgname) {
	var iName = navbase + imgname + "_of.gif";
	e.src = iName;
}


//window.onload = fourborders;

function fourborders()
{
theTagName = 'div';
theClassName = 'fourborders';

theElements = document.getElementsByTagName(theTagName);
for (i=0; i<theElements.length; i++)
	{
	if ( theElements[i].className == theClassName )
		{
		theID = theElements[i].id;
		theGuts = theElements[i].innerHTML;
		
		theClone = document.createElement(theTagName);
		theClone.id = theID;
		theClone.innerHTML = theGuts;

		d1 = document.createElement('div');
		d2 = document.createElement('div');
		d3 = document.createElement('div');
		d4 = document.createElement('div');

		d1.className = 'border-left';
		d2.className = 'border-right';
		d3.className = 'border-top';
		d4.className = 'border-bottom';

		elParent = theElements[i].parentNode;
		elParent.replaceChild(d1, theElements[i]); 

		d1.appendChild(d2);
		d2.appendChild(d3);
		d3.appendChild(d4);
		d4.appendChild(theClone);
		}
	}
}