/**
	* preload javascript
	*/
var g_overFn = null;
var imgBank = Array();	/* preload image bank */
var imgBase = ''; /* base location for images */
/* over function handlers */
function navOver(obj,state){
	obj.src=imgBase+obj.name+'_'+(state?'over':'btn')+'.jpg';
}
/* over function installer and image preloader*/
function installOvers(base) {	
	var jdx = 0;
	imgBase = base;
	for (var idx = 0; idx < document.images.length; idx++, jdx++) {
		imgBank[jdx] = new Image;
		imgBank[jdx++].src = imgBase+document.images[idx].src;
		if (document.images[idx].name.length > 0) {
			imgBank[jdx] = new Image;
			imgBank[jdx++].src = imgBase+document.images[idx].name+'_over.jpg';
			if (g_overFn != null) {
				document.images[idx].onmouseover = function() { g_overFn(this,1); };
				document.images[idx].onmouseout = function() { g_overFn(this,0); };
			}
			else {
				document.images[idx].onmouseover = function() { navOver(this,1); };
				document.images[idx].onmouseout = function() { navOver(this,0); };
			}
		}
	}
}
/* end */