function newImage(arg) {
	obj = new Image();
	obj.src = arg;
	return obj;
}

imgPFlag = false;
function preloadImages(basepath) {

	arrowup_off = newImage("../images/arrowup.gif");
	arrowup_over = newImage("../images/arrowup-r.gif");
	arrowdown_off = newImage("../images/arrowdown.gif");
	arrowdown_over = newImage("../images/arrowdown-r.gif");

	imgPFlag = true;
}
function getDown(o) {
	if (imgPFlag) document[o].src = eval(o+"_over.src");
}

function getUp(o) {
	if (imgPFlag) document[o].src = eval(o+"_off.src");
}

function popup(loc, width, height, scrollbars) {
	var _params = "width="+width+",height="+height+",toolbar=no,location=no,status=no,menubar=no,scrollbars="+scrollbars+",resizable=yes,top=" + (screen.height-height)/2 + ",left=" + (screen.width-width)/2;

	var newWin = window.open(loc, 'window', _params);
	newWin.focus();
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}