//window.onerror=function(){return true;};
var l=document.getElementsByTagName("a");for(var i=0,m=l.length;i<m;i++){if(l[i].href.indexOf(fullBase)==-1&&l[i].href.indexOf("mailto:")==-1){l[i].onclick=function(){window.open(this.href);return false;}}};
function addLine(text, el, testSpan) {
	var newSpan = document.createElement("span");
	newSpan.className = "line";
	newSpan.innerHTML = text;
	el.appendChild(newSpan);
	el.appendChild(document.createElement("br"));
}
function manualWrap(el) {
	var content = el.innerHTML;
	el.innerHTML = "";
	var words = content.split(" ");
	var testSpan = document.createElement("span");
	testSpan.style.display = "block";
	testSpan.style.paddingLeft = "10px";
	el.appendChild(testSpan);
	var lineHeight = 0;
	var newHeight = 0;
	var lastText = "";
	for (var i = 0, m = words.length; i < m; i++) {
		testSpan.innerHTML += words[i] + " ";
		newHeight = testSpan.offsetHeight;
		if (lineHeight == 0) {
			lineHeight = newHeight;
		}
		if (newHeight > lineHeight) {
			addLine(lastText, el, testSpan);
			testSpan.innerHTML = lastText = words[i] + " ";
			lastHeight = newHeight;
		} else {
			lastText += words[i] + " ";
		}
	}
	addLine(lastText + " ", el, testSpan);
	el.removeChild(testSpan);
}
function wrapIntros() {
	var paras = document.getElementsByTagName("P");
	for (var i = 0, m = paras.length; i < m; i++) {
		if (paras[i].className == "intro") {
			manualWrap(paras[i]);
		}
	}
}
if (navigator.userAgent.indexOf("KHTML") != -1) {
	window.onload = function() {
		setTimeout(wrapIntros, 100);
	}
} else {
	wrapIntros();
}