<!--
function setup(){
	document.getElementById("logo").src="images/logo99_grey.gif";
	var item;
	if(buttonHActive!=0){
		item = "buttonh" + buttonHActive;
		document.getElementById(item).style.color = "#FF0000";
	}
	if(buttonVActive!=0){
		item = "buttonv" + buttonVActive;
		document.getElementById(item).style.color = "#FF0000";
	}
	if(typeof buttonYActive == 'undefined'){
	}else{
		if(buttonYActive!=0){
			item = "buttony" + buttonYActive;
			document.getElementById(item).style.color = "#FF0000";
		}
	}
	//doMatchHeights();
	doDonate();
}

var matchHeights = true;
function doMatchHeights(){
	// get content header height if present
	var ch = document.getElementById("layer103");
	var ch_height = ch.style.height;
	//alert("ch: " + ch + " ch_height: " + ch_height);
	
	// get image height & top position
	var img = document.getElementById("layer99");
	var img_tp = img.style.top;
	
	// calc overall height
	var o_height = imageHeight + ch_height + img_tp;
	
	// reset left button height if less than overall height 
	var lb = document.getElementById("layer112");
	var lb_height = lb.style.height;
	//alert("matchHeights: cont-hdr: " + ch_height + " img-top: " + img_tp + " overall: " + o_height + " lb-height: " + lb_height);
	if(matchHeights){
		if(lb_height < o_height){
			lb.style.height = o_height;
		}
	}
}

function deleteRow() {
	return;
	var rowRef = document.getElementById('row1Del');
	rowRef.parentNode.removeChild(rowRef);
	rowRef = document.getElementById('row2Del');
	rowRef.parentNode.removeChild(rowRef);
	var selTD = document.getElementById('amendRowSpan');
	selTD.setAttribute("rowSpan",selTD.getAttribute("rowSpan")-1);
	selTD = document.getElementById('colWidth');
	selTD.setAttribute("width",165);

	var colRef = ""; var colID = "";
	for(var x=1; x<20; x++){
		colID = "col1Del" + x;
		colRef = document.getElementById(colID);
		if(colRef == null) break;
		colRef.parentNode.removeChild(colRef);
	}
	colID = "col1Del20";
	colRef = document.getElementById(colID);
	colRef.parentNode.removeChild(colRef);
}


var prevCol = "";
function over(n){
	var item = "buttonh" + n;
	prevCol = document.getElementById(item).style.color;
	//alert(item + " col:" + col);	
	document.getElementById(item).style.color = buttonHOver;
}

function out(n){
	var item = "buttonh" + n;
	document.getElementById(item).style.color = prevCol;
}

function click(n, to){
	alert("clicking");
	var item = "buttonh" + n;
	document.getElementById(item).style.color = "#121212";
 	var location=("http://192.168.2.4:8080/where_we_work.htm");
    this.location.href = location;
}
function vover(n){
	var item = "buttonv" + n;
	prevCol = document.getElementById(item).style.color;
	//alert(item + " col:" + col);	
	document.getElementById(item).style.color = buttonVOver;
}

function vout(n){
	var item = "buttonv" + n;
	document.getElementById(item).style.color = prevCol;
}

function vclick(n, to){
	alert("clicking");
	var item = "buttonv" + n;
	document.getElementById(item).style.color = buttonVClick;
 	var location=("http://192.168.2.4:8080/where_we_work.htm");
    this.location.href = location;
}

var prevColy;
function yover(n){
	var item = "buttony" + n;
	prevColy = document.getElementById(item).style.color;
	//alert(item + " col:" + col);	
	document.getElementById(item).style.color = buttonYOver;
}

function yout(n){
	var item = "buttony" + n;
	document.getElementById(item).style.color = prevColy;
}


// WINDOW MANAGEMENT
// wrapperType 0 = no popup, no masthead
// wrapperType 1 = popup to size, with fat masthead, navigation menubar
// wrapperType 2 = no popup, with fat masthead
//				   (changed to popup, with toolbar, no address bar to mirror type 4)
// wrapperType 3 = popup to size, no masthead, no menubars
// wrapperType 4 = no popup, with skinny masthead
//				   (changed to popup, with toolbar, no address bar)
// wrapperType 5 = popup to size, with skinny masthead, navigation menubar
// wrapperType 6 = popup to size with skinny mast head and no navigation menubar
// wrapperType 7 = no popup, with fat masthead
// wrapperType 8 = same as 3 but for video player to eliminate multiple streams
function extLink(site,wrapperType,width,height) {

	var currDate = new Date();
	var time = currDate.getMilliseconds();
        if (wrapperType==9) {
                var newurl = site;
                var popupref='scrollbars=no,width=' + width + ',height=' + height + ',resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no,top=100,left=100';
                window.open(newurl,winName,popupref);
	} else if (wrapperType==0) {
		var newurl = site;
		document.location = newurl;
	} else if (wrapperType==2) {
		var wrapperimage = "spacer.gif";
		var popupref='scrollbars=no,width=' + width + ',height=' + height + ',resizable=yes,toolbar=yes,location=no,directories=no,status=no,menubar=no,copyhistory=no,top=100,left=100';
		var newurl="/business/wrapperframe/new/0,5391,,00.html??"+wrapperimage+'??'+site;
		window.open(newurl,winName,popupref);
	} else if (wrapperType==3) {
		var newurl = site;
		var popupref = window.open(newurl, 'help', 'scrollbars=yes,width=650,height=500,resizable=yes,toolbar=yes,location=no,directories=no,status=yes,menubar=yes,copyhistory=no,top=50,left=350');
	} else if (wrapperType==4) {
                winName='resource target';
		var newurl = site;
		var popupref = window.open(newurl, winName, 'scrollbars=yes,width=' + width + ',height=' + height + ',resizable=yes,toolbar=yes,location=no,directories=no,status=no,menubar=no,copyhistory=no,top=50,left=50');
	} else if (wrapperType==6) {
		var wrapperimage = "spacer.gif";
		var popupref='scrollbars=no,width=' + width + ',height=' + height + ',resizable=yes,toolbar=yes,location=no,directories=no,status=no,menubar=no,copyhistory=no,top=100,left=100';
		var newurl="/business/wrapperframe/new/0,5391,,00.html??"+wrapperimage+'??'+site;
		window.open(newurl,winName,popupref);
	} else if (wrapperType==7) {
		var newurl = "/business/wrapperframe/0,5303,csn=3,00.html?site=" + escape(site);
		document.location = newurl;
	} else if (wrapperType==8) {
		var winName = "vidFeature";
		var newurl = site;
		var popupref = window.open(newurl, winName, 'scrollbars=no,width=' + width + ',height=' + height + ',resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no,top=50,left=50');
	} else if (wrapperType==10) {
		var newurl = site;
		var popupref = window.open(newurl, winName, 'scrollbars=yes,width=' + width + ',height=' + height + ',resizable=yes,toolbar=yes,location=no,directories=no,status=no,menubar=yes,copyhistory=no,top=50,left=50');
	} else {
		if (wrapperType==1) {
			var newurl = "/business/wrapperframe/0,5303,csn=3,00.html?site=" + escape(site);
		} else if (wrapperType==5) {
			var newurl = "/business/wrapperframe/skinny/0,5325,csn=3,00.html?site=" + escape(site);
		}
		if (wrapperType==1 || wrapperType==5) {
			var iw, ih; // Set inner width and height
			if (window.innerWidth == null) {
				iw = document.body.clientWidth;
				ih = document.body.clientHeight;
			} else {
				iw = window.innerWidth;
				ih = window.innerHeight;
			}
			if (width == null) width = iw;
			if (height == null) height = ih;
			pw = 100;
			ph = 100;
			bw = 24;
			bh = 24;
			var sw = Math.round((iw - bw) * pw / 100);
			var sh = Math.round((ih - bh) * ph / 100);
			if ((width * sh) / (height * sw) < 1) sw = Math.round(width * sh / height);
			else sh = Math.round(height * sw / width);
			var popupref = window.open(newurl, winName, 'scrollbars=no,width=' + width + ',height=' + height + ',resizable=yes,toolbar=yes,location=no,directories=no,status=no,menubar=no,copyhistory=no');
			popupref.focus();
		}
	}
}
//-->
