<!--

//standard function header
/*
================================================================
Function:
Summary:
Parameters:
Return Value:
History:
================================================================
*/

/*
================================================================
Function Summary...
================================================================
-noOp
-setCookie
-getCookieValue
-getCookie
-setDateTo
-goToLocations
================================================================
*/


/*
================================================================
Constants, Global Variables, and preLoads
*/
var aryMenuZ;

aryMenuZ =new Array();
aryMenuZ[0] ='../images/menu/rmenubar_Home_L.gif'
aryMenuZ[1] ='../images/menu/rmenubar_Home_MO.gif'
aryMenuZ[2] ='../images/menu/rmenubar_Home_C.gif'

aryMenuZ[3] ='../images/menu/rmenubar_About_L.gif'
aryMenuZ[4] ='../images/menu/rmenubar_About_MO.gif'
aryMenuZ[5] ='../images/menu/rmenubar_About_C.gif'

aryMenuZ[6] ='../images/menu/rmenubar_PremP_L.gif'
aryMenuZ[7] ='../images/menu/rmenubar_PremP_MO.gif'
aryMenuZ[8] ='../images/menu/rmenubar_PremP_C.gif'

aryMenuZ[9] ='../images/menu/rmenubar_ManP_L.gif'
aryMenuZ[10] ='../images/menu/rmenubar_ManP_MO.gif'
aryMenuZ[11] ='../images/menu/rmenubar_ManP_C.gif'

aryMenuZ[12] ='../images/menu/rmenubar_Products_L.gif'
aryMenuZ[13] ='../images/menu/rmenubar_Products_MO.gif'
aryMenuZ[14] ='../images/menu/rmenubar_Products_C.gif'

aryMenuZ[15] ='../images/menu/rmenubar_RefD_L.gif'
aryMenuZ[16] ='../images/menu/rmenubar_RefD_MO.gif'
aryMenuZ[17] ='../images/menu/rmenubar_RefD_C.gif'

aryMenuZ[18] ='../images/menu/rmenubar_Contact_L.gif'
aryMenuZ[19] ='../images/menu/rmenubar_Contact_MO.gif'
aryMenuZ[20] ='../images/menu/rmenubar_Contact_C.gif'








/*
================================================================
Function:		noOp
Summary:
Parameters:
Return Value:	void
History:			initial -10.06.08 -swc
================================================================
*/
function noOp(){

	alert('Selection Scheduled For Future Development.\nPlease Click OK To Continue. . .');
	return;
} //noOp



/*
===============================================================================
Function:		setCookie
Summary:			Sets a cookie with the specified value, expiration, path, domain, and secure values
Parameters:
  -strName:		cookie name // argV[0]
  -strValue:	value to set cookie to //argV[1]
  -argV[2]:		cookie expiration date (expected format: Wdy, DD-MM-YYYY HH:MM:SS GMT)
  -argV[3]:		path value subdirectory for which the cookie is valid
  -argV[4]:		domain name for which the cookie is valid
  -argV[5]:		if true, the cookie will only be transmitted via a secure communication channel
Return Value:	void
History:			reEngineered -10.06.08 -swc
===============================================================================
*/
function setCookie(strName, strValue){
var argV =setCookie.arguments;
var argC =setCookie.arguments.length;
var expires =(argC >2)? argV[2] :null;
var path =(argC >3)? argV[3] :null;
var domain =(argC >4)? argV[4] :null;
var secure =(argC >5)? argV[5] :null;

	document.cookie =strName +'=' +escape(strValue) +
	((expires ==null) ?'' :('; expires=' +expires.toGMTString())) +
	((path ==null) ?'' :('; path=' +path)) +
	((domain ==null) ?'' :('; domain=' +domain)) +
	((secure ==true) ?'; secure' :'');
	
	return;
} //setCookie


/*
===============================================================================
Function:		getCookieValue
Summary:
Parameters:
Return Value:
History:			reEngineered -10.06.08 -swc
===============================================================================
*/
function getCookieValue(iOffSet){
var indxEndStr =document.cookie.indexOf(';', iOffSet);

	if(indxEndStr == -1)
		indxEndStr =document.cookie.length;
	return unescape(document.cookie.substring(iOffSet, indxEndStr));
} //getCookieValue


/*
===============================================================================
Function:		getCookie
Summary:			Returns the value of the cookie 'strName'
Parameters:
  -strName:		cookie name
Return Value:	string
Comments:		Dependant on getCookieValue function
History:			reEngineered -10.06.08 -swc
===============================================================================
*/
function getCookie(strName){
var argName =strName +'=';
var argLen =argName.length;
var cookieLen =document.cookie.length;
var iLCV =0;
var jLCV;

	while(iLCV < cookieLen){
		jLCV =iLCV +argLen;
		if(document.cookie.substring(iLCV, jLCV) ==argName)
			return getCookieValue(jLCV);
		iLCV =document.cookie.indexOf(' ', iLCV) +1;
		if(iLCV ==0)
			break;
	}
	return null;
} //getCookie


/*
================================================================
Function:		setDateTo
Summary:
Parameters:
	-objText:	form textBox object
	-sDate:		string date value
Return Value:	void
History:			initial -10.06.08 -swc
================================================================
*/
function setDateTo(objText, sDate){

	objText.value =sDate;
	return;
}//setDateTo


/*
================================================================
Function:		handleMouseOver
Summary:
Parameters:
Return Value:	void
History:			initial -10.31.08 -swc
================================================================
*/
function handleMouseOver(iMenuIDX){

	document.images.menuI.src =aryMenuZ[iMenuIDX +1];
return;
} //handleMouseOver


/*
================================================================
Function:		handleMouseOut
Summary:
Parameters:
Return Value:	void
History:			initial -10.31.08 -swc
================================================================
*/
function handleMouseOut(iMenuIDX){

   document.images.menuI.src =aryMenuZ[iMenuIDX];
return;
} //handleMouseOut


/*
================================================================
Function:		goToLocations
Summary:
Parameters:
Return Value:	void
History:			initial -10.31.08 -swc
================================================================
*/
function goToLocations(iMenuIDX){
   
   window.document.forms.goToLocationZ.submit();
   
return;
} //handleMouseOut




// -->