
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}
var preloadFlag = true;
function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

function popUp(url, width, height) {
	
	if (width && height) {
		window.open(url,"_blank","toolbar=no,height=" + height + ",width=" + width + ",location=no,address=no,directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no,copyhistory=true");
	} else {
		window.open(url,"_blank","toolbar=no,height=500,width=500,location=no,address=no,directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no,copyhistory=true");
	}
}

/* ROLLOVER MENU HEADER */

	var time = 100;
	function show(div) {
		document.getElementById(div).style.display = 'block';
	}
	function hide(div) {
		document.getElementById(div).style.display = 'none';
	}
	

	var li, hider;
	var lis = document.getElementById('menu-ul').getElementsByTagName('li');
	for (var a = 0; li = lis[a]; a++) {
		if (li.id.substring(0,8) != "menu-ul-") break;
		if (!document.getElementById("sub"+li.id)) continue;
		li.onmouseover = function() {
			if (document.getElementById("sub"+this.id).style.display == 'block') stopHider();
			show(document.getElementById("sub"+this.id));
		}
		li.onmouseout = function() { setHider(document.getElementById("sub"+this.id));}
		if (document.getElementById("sub"+li.id)) {
			document.getElementById("sub"+li.id).onmouseover = function() { stopHider(); }
			document.getElementById("sub"+li.id).onmouseout = function() { setHider(this); }
		}
	}
	function fake() { }
	function show(what) {what.style.display = 'block';}
	function hide(what) {what.style.display = 'none';}
	function setHider(what) {
		if (!what.id) what.style.display = 'none';
		hider = setTimeout('hide(document.getElementById("'+what.id+'"))',100);
	}
	function stopHider() {
		if (hider == null) return false;
		clearTimeout(hider);
		hider = null;
	}

