// JavaScript Document

function setcolheights(cols) {
	var columns = new Array();
	columns = cols.split(',');
	var h = 0;
	for(var i = 0; i < columns.length; i++) {
		thecol = document.getElementById(columns[i]);
		if(thecol.offsetHeight > h) {
			h = thecol.offsetHeight;
		}
	}
	for(var j = 0; j < columns.length; j++) {
		thecol = document.getElementById(columns[j]).style.height = (h - 21) + "px";
	}
}

function imgswap(imgid, newimg, t) {
	if(t == 1) {
		/* Nav */
		var pathto = 'assets/templates/hid/images/topnav/';
	} else {
		/* not nav */
		var pathto = 'assets/images/';
	}
	var img = document.getElementById(imgid);
	img.src = pathto+newimg;
}
