function initialize() {
	if (window.parent.scrollspeed!=0) {
		speed=window.parent.scrollspeed;
		scroll();
	}
}

function scroll() {
	temp=(document.all)? document.body.scrollTop : window.pageYOffset;
	alt=(alt==0)? 1 : 0;
	if (alt==0) {
		curpos1=temp;
	} else {
		curpos2=temp;
		window.scrollBy(0,speed);
	}
}

function highlightNav(imageRef,active) {
	if (active=='Off') {
		if (imageRef.src.indexOf('_On')>0) {
			imageRef.src = imageRef.src.replace("_On","_Off");
		} else {
			imageRef.src = imageRef.src.replace("_Off","_On");
		}
	}
}

function highlightSubNav(imageRef) {
	if (imageRef.src.indexOf('_On')>0) {
		imageRef.src = imageRef.src.replace("_On","_Off");
	} else {
		imageRef.src = imageRef.src.replace("_Off","_On");
	}
}

function displayFXInputs() {
	box = document.getElementById("More_Info").interest;
	selection = box.options[box.selectedIndex].value;
	if (selection=="foreign exchange") {
		document.getElementById("FX_Inputs").style.display = "block";
	} else {
		document.getElementById("FX_Inputs").style.display = "none";
	}
}

init = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("Menu");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}

function popUp(page) {
	var wint = (screen.height - 600) / 2;
	var winl = (screen.width - 600) / 2;
	if (page=="FIX_Specs") {
		window.open("LavaFlow_FIX_Specs_1-2.pdf", "FIX_Specs", "width=600,height=600,top="+wint+",left="+winl+",scrollbars=yes,menubar=no,toolbar=no,status=no");
	}
}