function getElementsByClass(searchClass,node,tag) {
	var classElements = new Array();
	if ( node == null )
		node = document;
	if ( tag == null )
		tag = '*';
	var els = node.getElementsByTagName(tag);
	var elsLen = els.length;
	var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)");
	for (i = 0, j = 0; i < elsLen; i++) {
		if ( pattern.test(els[i].className) ) {
			classElements[j] = els[i];
			j++;
		}
	}
	return classElements;
}

function resizeImgs()  {
  a = getElementsByClass("imgResize",document,"img")
  for(i=0;i<a.length;i++)  {
 //   (a[i].width > imgMaxWidth || a[i].height > imgMaxHeight) ? (a[i].width > a[i].height ? a[i].width = imgMaxWidth : a[i].height = imgMaxHeight) : "";
    a[i].width = imgMaxWidth;
  }
}

function UnboldNav()  {
  a = getElementsByClass("blacknav",document,"td")
//debugger;
  for(i=0;i<a.length;i++)  {
    if(a[i].navitm != CurrentTitle)  {
      a[i].style.fontWeight = "";
    }
  }
//  alert(CurrentTitle);
}
