// -- open CMS admin window:
function OpenAdmin(theURL){
	LeftPosition = (screen.width) ? (screen.width)-510 : 0;
	cmsheight = (screen.height) ? (screen.height)*.75 : 550;
	settings = 'height='+cmsheight+',width=500,top=0,left='+LeftPosition+',scrollbars=yes,resizable=yes'
	win = window.open(theURL,'viewit',settings)
}

//---- show/hide divs for links:
function showHideBox(boxID,aID) {
	var e = document.getElementById(boxID);
	var x = document.getElementById(aID);
	if (e.showing) {
		e.showing = false;
		e.style.display = "none";
		x.className = "arrow";
	} else {
		e.showing = true;
		e.style.display = "block";
		//change class of a to "arrow-down"
		x.className = "arrowdown";
	}
}

//---- show/hide divs on navmenu:
function showHideNav(boxID) {
	var n = document.getElementById(boxID);
	if (n.showing) {
		n.showing = false;
		n.style.display = "none";
	} else {
		n.showing = true;
		n.style.display = "block";
	}
}

// -- toggle ftp page alert box for IE6 --
function toggleDiv(divid){
	if(document.getElementById(divid).style.display == 'none'){
		document.getElementById(divid).style.display = 'block';
	}else{
		document.getElementById(divid).style.display = 'none';
	}
}