function checkNav() {
	
	if((pageid) && (pageid!="")){
		
		if(document.getElementById(pageid)) {
			nImg=document.getElementById(pageid).src.replace(".gif","-on.gif");
			document.getElementById(pageid).src=nImg;

		}
	}
}

function initRollover() {
  if (!document.getElementById) return
  var imgarr = document.getElementById('nav').getElementsByTagName('img');
  var tempImgSrc;

	for (var i = 0; i < imgarr.length; i++) {
			if (imgarr[i].getAttribute('src').indexOf("-on.gif")==-1) {
				imgarr[i].onmouseover = function() {
					tempImgSrc = this.getAttribute('src').replace(".gif","-on.gif");
		      		this.setAttribute('src',tempImgSrc);
				}

					
		       	imgarr[i].onmouseout = function() {
					tempImgSrc = this.getAttribute('src').replace("-on.gif",".gif");
		          	this.setAttribute('src',tempImgSrc);
		       }

			}
	}   
}
