NS4 = (document.layers)? true:false;
IE4 = (document.all)? true:false;
N6 = (document.getElementById && !document.all) ? true:false;
function stopError() {
// return true;
}
window.onerror = stopError;

function preload(imgObj,imgSrc) { // function prelaods all images 
	if (document.images) {
		eval(imgObj+' = new Image()')
		eval(imgObj+'.src = "'+imgSrc+'"')
	}
}

function change(imgName,imgObj) {
		document.images[imgName].src = eval(imgObj+'.src');
}

preload ('shim', 'images/spacer.gif');

function changeTD(id){
	document.getElementById(id).style.backgroundColor = "#FFFFFF";
}

function restoreTD(id){
	document.getElementById(id).style.backgroundColor = "#F0F0F0";

}

function changeTDContact(id){
	document.getElementById(id).style.backgroundColor = "#0E3367";
}

function restoreTDContact(id){
	document.getElementById(id).style.backgroundColor = "#0950A2";

}

function changeTDSub(id){
	document.getElementById(id).style.backgroundColor = "#999999";
}

function restoreTDSub(id){
	document.getElementById(id).style.backgroundColor = "#C7C7C7";

}

function to_old_win(url)
{
	opener.location.href = url;
	opener.location.focus();
}
function popUp(page,name,h,w) {
				specs = "toolbar=no,location=no,directories=no,status=no,scrollbars=yes,width="+ w +",height="+ h +",menubar=no";
				nw = window.open(page, name, specs);
				nw.focus();
			}
function casePopUp(page, name) {
				specs = "toolbar=no,location=no,directories=no,status=no,scrollbars=no,width=450,height=630,menubar=no";
				nw = window.open(page, name, specs);
				nw.focus();
			}			
