var cellName=null;
var imageDir="/graphics/";

//pre-load images if "Image" is defined


if(document.images)
   {
    var item_IMG_01_off = new Image();
    item_IMG_01_off.src = imageDir+"bu_about.off.gif"; 
    var item_IMG_01_on  = new Image();
    item_IMG_01_on.src  = imageDir+"bu_about.on.gif";

    var item_IMG_02_off = new Image();
    item_IMG_02_off.src = imageDir+"bu_proj.off.gif"; 
    var item_IMG_02_on  = new Image();
    item_IMG_02_on.src  = imageDir+"bu_proj.on.gif";

    var item_IMG_03_off = new Image();
    item_IMG_03_off.src = imageDir+"bu_carr.off.gif";
    var item_IMG_03_on  = new Image();
    item_IMG_03_on.src  = imageDir+"bu_carr.on.gif";
    
    var item_IMG_04_off = new Image();
    item_IMG_04_off.src = imageDir+"bu_affil.off.gif";
    var item_IMG_04_on  = new Image();
    item_IMG_04_on.src  = imageDir+"bu_affil.on.gif";
    
    var item_IMG_05_off = new Image();
    item_IMG_05_off.src = imageDir+"bu_news.off.gif"; 
    var item_IMG_05_on  = new Image();
    item_IMG_05_on.src  = imageDir+"bu_news.on.gif";
   
    var item_IMG_06_off = new Image();
    item_IMG_06_off.src = imageDir+"bu_ct.off.gif"; 
    var item_IMG_06_on  = new Image();
    item_IMG_06_on.src  = imageDir+"bu_ct.on.gif";

    var item_IMG_07_off = new Image();
    item_IMG_07_off.src = imageDir+"bu_home.off.gif"; 
    var item_IMG_07_on  = new Image();
    item_IMG_07_on.src  = imageDir+"bu_home.on.gif";

    var item_IMG_08_off = new Image();
    item_IMG_08_off.src = imageDir+"bu_ct.off.gif";
    var item_IMG_08_on  = new Image();
    item_IMG_08_on.src  = imageDir+"bu_ct.on.gif";
    
    var item_IMG_09_off = new Image();
    item_IMG_09_off.src = imageDir+"bu_home.off.gif";
    var item_IMG_09_on  = new Image();
    item_IMG_09_on.src  = imageDir+"bu_home.on.gif";
    
    var item_IMG_10_off = new Image();
    item_IMG_10_off.src = imageDir+"bu_view.off.gif"; 
    var item_IMG_10_on  = new Image();
    item_IMG_10_on.src  = imageDir+"bu_view.on.gif";

	var item_IMG_11_off = new Image();
    item_IMG_11_off.src = imageDir+"bu_build.off.gif"; 
    var item_IMG_11_on  = new Image();
    item_IMG_11_on.src  = imageDir+"bu_build.on.gif";

    var item_IMG_12_off = new Image();
    item_IMG_12_off.src = imageDir+"bu_scrush.off.gif"; 
    var item_IMG_12_on  = new Image();
    item_IMG_12_on.src  = imageDir+"bu_scrush.on.gif";

    var item_IMG_13_off = new Image();
    item_IMG_13_off.src = imageDir+"bu_giving.off.gif";
    var item_IMG_13_on  = new Image();
    item_IMG_13_on.src  = imageDir+"bu_giving.on.gif";
    
    var item_IMG_14_off = new Image();
    item_IMG_14_off.src = imageDir+"bu_join.off.gif";
    var item_IMG_14_on  = new Image();
    item_IMG_14_on.src  = imageDir+"bu_join.on.gif";
    
    var item_IMG_15_off = new Image();
    item_IMG_15_off.src = imageDir+"bu_tell.off.gif"; 
    var item_IMG_15_on  = new Image();
    item_IMG_15_on.src  = imageDir+"bu_tell.on.gif";


    }

function over(cellName) 
    {
     if(document.images) 
       {
        if(cellName == 'button1') {document[cellName].src = item_IMG_01_on.src;}
        if(cellName == 'button2') {document[cellName].src = item_IMG_02_on.src;}
        if(cellName == 'button3') {document[cellName].src = item_IMG_03_on.src;}
        if(cellName == 'button4') {document[cellName].src = item_IMG_04_on.src;}
        if(cellName == 'button5') {document[cellName].src = item_IMG_05_on.src;}
        if(cellName == 'button6') {document[cellName].src = item_IMG_06_on.src;}
        if(cellName == 'button7') {document[cellName].src = item_IMG_07_on.src;}
        if(cellName == 'button8') {document[cellName].src = item_IMG_08_on.src;}
        if(cellName == 'button9') {document[cellName].src = item_IMG_09_on.src;}
        if(cellName == 'button10') {document[cellName].src = item_IMG_10_on.src;}
        if(cellName == 'button11') {document[cellName].src = item_IMG_11_on.src;}
        if(cellName == 'button12') {document[cellName].src = item_IMG_12_on.src;}
        if(cellName == 'button13') {document[cellName].src = item_IMG_13_on.src;}
        if(cellName == 'button14') {document[cellName].src = item_IMG_14_on.src;}
        if(cellName == 'button15') {document[cellName].src = item_IMG_15_on.src;}
       
       }
}

function out(cellName) 
    {
     if(document.images) 
       {
        if(cellName == 'button1') {document[cellName].src = item_IMG_01_off.src;}
        if(cellName == 'button2') {document[cellName].src = item_IMG_02_off.src;}
        if(cellName == 'button3') {document[cellName].src = item_IMG_03_off.src;}
        if(cellName == 'button4') {document[cellName].src = item_IMG_04_off.src;}
        if(cellName == 'button5') {document[cellName].src = item_IMG_05_off.src;}
        if(cellName == 'button6') {document[cellName].src = item_IMG_06_off.src;}
        if(cellName == 'button7') {document[cellName].src = item_IMG_07_off.src;}
        if(cellName == 'button8') {document[cellName].src = item_IMG_08_off.src;}
        if(cellName == 'button9') {document[cellName].src = item_IMG_09_off.src;}
        if(cellName == 'button10') {document[cellName].src = item_IMG_10_off.src;}
        if(cellName == 'button11') {document[cellName].src = item_IMG_11_off.src;}
        if(cellName == 'button12') {document[cellName].src = item_IMG_12_off.src;}
        if(cellName == 'button13') {document[cellName].src = item_IMG_13_off.src;}
        if(cellName == 'button14') {document[cellName].src = item_IMG_14_off.src;}
        if(cellName == 'button15') {document[cellName].src = item_IMG_15_off.src;}
       
       }
}





if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;

HM_PG_MenuShove = 0;
HM_PG_MenuWidth = 114;
HM_PG_FontFamily = "arial,sans-serif";
HM_PG_FontSize = 8;
HM_PG_FontBold = 0;
HM_PG_FontItalic = 0;
HM_PG_FontColor = "ffffff";
HM_PG_FontColorOver = "#ffffff";
HM_PG_BGColor = "000000";
HM_PG_BGColorOver = "70855f";
HM_PG_ItemPadding = 4;

HM_PG_BorderWidth = 1;
HM_PG_BorderColor = "ffffff";
HM_PG_BorderStyle = "solid";
HM_PG_SeparatorSize = 1;
HM_PG_SeparatorColor = "#ffffff";
HM_PG_ImageSrc = "/graphics/tri.gif";
HM_PG_ImageSrcLeft = "/graphics/triL.gif";

HM_PG_ImageSize = 5;
HM_PG_ImageHorizSpace = 0;
HM_PG_ImageVertSpace = 2;

HM_PG_KeepHilite = true; 
HM_PG_ClickStart = 0;
HM_PG_ClickKill = false;
HM_PG_ChildOverlap = 20;
HM_PG_ChildOffset = 10;
HM_PG_ChildPerCentOver = null;
HM_PG_TopSecondsVisible = .25;
HM_PG_StatusDisplayBuild =0;
HM_PG_StatusDisplayLink = 0;
HM_PG_UponDisplay = null;
HM_PG_UponHide = null;
HM_PG_RightToLeft = false;

HM_PG_CreateTopOnly = 1;
HM_PG_ShowLinkCursor = 1;
HM_PG_NSFontOver = true;

//HM_a_TreesToBuild = [2];

var isNS4=document.layers?true:false;
var isIE=document.all?true:false;
var isIE6=isIE&&document.getElementById?true:false;
var isIE4=isIE&&!isIE6?true:false;
var isNS6=!isIE6&&document.getElementById?true:false;
var isNS=isNS4||isNS6;


function PopUp(loc) {
	config = 'height=280, width=350, toolbar=no ,location=no ,directories=no, dependent ,status ,menubar=no ,scrollbars=no ,resizable=yes';
	window.open(loc,"PopUp",config);
}
function popOriginInfo() {
	var refSubScript = document.moveReqForm.clientsID.selectedIndex - 1;
	if (refSubScript == -1) {
		document.moveReqForm.originAddress.value = "";
		document.moveReqForm.originAddress2.value = "";
		document.moveReqForm.originCity.value = "";
		document.moveReqForm.originState.value = "";
		document.moveReqForm.originZip.value = "";
	} else {
		document.moveReqForm.originAddress.value = clientAddresses[refSubScript][0];
		document.moveReqForm.originAddress2.value = clientAddresses[refSubScript][1];
		document.moveReqForm.originCity.value = clientAddresses[refSubScript][2];
		document.moveReqForm.originState.value = clientAddresses[refSubScript][3];
		document.moveReqForm.originZip.value = clientAddresses[refSubScript][4];
	}
}
function jspopup(myurl, w, h, tb, sb, st){
	var wnd = window.open(myurl,"popup","toolbar=" + tb + ",location=0,directories=0,status=" + st + ",menubar=0,scrollbars=" + sb + ",resizable=0,width=" + w + ",height=" + h);
	if (wnd.opener == null) wnd.opener = self;
}
function copyIt(theformObject){
	var tr = theformObject.createTextRange();
	tr.select();
	tr.execCommand("copy");
	alert("Email List copied to clipboard.");
}

function clientLookup() {
	var facNum;
	var found = 0;
	for (j=0; j < document.moveReqForm.clientsID.options.length; j++) {
		var pos = InStr(document.moveReqForm.clientsID.options[j].text,'#');
		if (pos >= 0) {
			facNum = Mid(document.moveReqForm.clientsID.options[j].text,pos+1,7);
			if (document.moveReqForm.clientsID2.value == facNum) {
				found = 1;
				document.moveReqForm.clientsID.selectedIndex = j;
				popOriginInfo();				
				break;
			}
		}
	} // end for
	if (!found)
		alert("You entered an invalid client.");
}
function InStr(strSearch, charSearchFor)
{
	for (i=0; i < Len(strSearch); i++) {
	    if (charSearchFor == Mid(strSearch, i, 1))
			return i;
	}
	return -1;
}
function Mid(str, start, len) {
	if (start < 0 || len < 0) return "";
	
	var iEnd, iLen = String(str).length;
	if (start + len > iLen)
		iEnd = iLen;
	else
		iEnd = start + len;
	
	return String(str).substring(start,iEnd);
}

function Len(str) {  return String(str).length;  }