var buttonArray=new Array();
buttonArray[0]="technicalHelp";
buttonArray[1]="faq";
buttonArray[2]="logout";
buttonArray[3]="sticky";

function replaceImage(n){
        //alert("hit");
        for(x in buttonArray){
                if(buttonArray[x]==n){
                        document.getElementById(n).src= "/images/fv/" + n + "_roll.gif";
                }
               // else{
               //         document.getElementById(buttonArray[x]).src="/images/fv/" + buttonArray[x] + ".gif";
                //}
        }
}
function restoreImage(n){
        document.getElementById(n).src= "/images/fv/" + n + ".gif";

}

var IE4 = (document.all) ? 1 : 0;
var NS4 = (document.layers) ? 1 : 0;
var ver4 = (IE4 || NS4) ? 1 : 0;
var currDesc = 0;

function getObject (obj) {
	if (IE4) { return eval("document.all." + obj); }
	else { return eval("document." + obj);	}
}

function getFormObject (obj) {
	if (IE4) { return eval("document.all." + obj); }
	else { return eval("document.forms[0]." + obj);	}
}

function setAction(thePage) {
	document.theForm.action = thePage;
}

function setNav(theNav) {
	var navFunctionObj = getFormObject("navFunction");
	navFunctionObj.value = theNav;
}

function submitTheForm() {
	var theFormObj = getObject("theForm");
	theFormObj.submit();
}

function navButton(theButton) {
	setNav(theButton);
	submitTheForm();
}

function popupLeftNav(p){
window.open(p,"popupP","height=400,width=650,titlebar,toolbar,resizable=yes,scrollbars=yes");

}

function popupTest(p){
	windowReference = window.open(p,"popupP","height=700,width=800,titlebar,toolbar=no,resizable=yes,scrollbars=yes");
	if (!windowReference.opener)
	windowReference.opener = self;
	}
