//****************************************************
// utilities for flipstart page...

function goNav(p_href){
	document.location = p_href;
};


function getImageSrc(p_src,p_delta){  //looks for the "_" back from the "."and works backward to create name
	var tmpString = new String(p_src);
	var tmpData = tmpString.substring(0,tmpString.lastIndexOf("_",tmpString.length));  //get everything before the last "_"
	var tmpType =  tmpString.substring(tmpString.lastIndexOf(".",tmpString.length));  //get everything after the "."
	//alert('rollover=' + tmpData + '_' + p_delta + tmpType)
	return(tmpData + '_' + p_delta + tmpType);
};

function hiliteMe(p_name,p_mode){  //mode="ovr" = rollover,"out" = mouseleave; p_obj = this
	var tmpObj = document.images[p_name]
	//alert(tmpObj);
	switch (p_mode) {
		case "ovr":
			tmpObj.src=getImageSrc(tmpObj.src,"OVR")
			break;
		case "out":
			tmpObj.src=getImageSrc(tmpObj.src,"OFF")
			break;
		default:
			alert("didn't get that:" + p_name)
	}
}

// preload all rollover button images here... *******************
// required
//var allIMGs;

function preLoadNavImages(){
	// load up the image list 
	// no need for this to be global... 
	var imgProxyArray = new Array ();
	/// go through all of the images on the page and preload the OVR states
	
	var allIMGs = document.getElementsByTagName('img');
 	for (nn= 0; nn <  allIMGs.length; nn++) {
		if(allIMGs[nn].src.indexOf('_OFF') > -1){  /// found one set for rollovers!
			imgProxyArray[nn] = new Image();
		//navImages.style.visible=false;
        	imgProxyArray[nn].src = getImageSrc(allIMGs[nn].src,"OVR");
		}
    }
};
// JavaScript Document