addLoadEvent(blurLinks);



function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	}
	else {
		window.onload = function() {
			oldonload();
			func();
		}
	}
}


/* remove all focus lines from links when clicked */
function blurLinks() {
	var links = document.getElementsByTagName('a');
	for (i=0;i<links.length;i++) {
		links[i].onfocus = function() {
			this.blur();
		}
	}
}



/* misc functions */

function swap(strID, strImg) {
	var img = document.getElementById(strID);
	img.src = strImg;
}




function openWin(URL, strTitle, intWidth, intHeight, intScrollable) {
	newWindow = window.open(URL, strTitle, "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars="+intScrollable+",resizable=1,width="+intWidth+",height="+intHeight+",left=200,top=200")
	newWindow.focus();
}




function showImage(newImg) {
	var lrgImg = document.getElementById('fullImage');
	lrgImg.src=  'assets/images/development_pics/' + newImg;
}



