var gOrigBGColor;
var gOrigFGColor;
var gOVERCOLOR;
var gOVERBGCOLOR;
var gCLICKCOLOR;
var gCLICKBGCOLOR;

gURL = new Array(24);

/****************************************************************************
**	DETERMINE WHICH DOMAIN WE ARE USING...
*/
var HOMEPLATE;
var bResult;

//HOMEPLATE = WhereAmI( false );
HOMEPLATE = "http://www.cmsconnect.com"

gOVERCOLOR = cBLACK;
gOVERBGCOLOR = cKHAKI;
gOVERBGCOLOR2 = cKHAKI;
gCLICKCOLOR  = cMAGENTA;
gCLICKBGCOLOR = cLIGHTLIGHTSTEELBLUE;

gURL[0] = "/default.htm"
gURL[1] = "/Products.htm"
gURL[2] = "/faq.htm"
gURL[3] = "/downloads.htm"
gURL[4] = "/sales/pricequotemain.htm"
gURL[5] = "/Sales/OrderForms.htm"
gURL[6] = "/support.htm"
gURL[7] = "/comments.htm"
gURL[8] = "/news.htm"
gURL[9] = "/about.htm"

function doOnChangeMainPage(iIndex, vValue) {
   if( iIndex > 0 ) 
		parent.location = vValue;
}

//function doOnchange(f) {
//   var vIndex=f.lbQuickMail.selectedIndex;
//   if( vIndex > 0 ) {
//		parent.location = f.lbQuickMail.options[vIndex].value;
//		f.lbQuickMail.selectedIndex = 0;
//		parent.location = f.options[vIndex].value;
//		f.selectedIndex = 0;
//	}		
//}

/*****************************************************************************/	
function DoOver(t, iIndex) {

	gOrigBGColor = t.style.backgroundColor;
	gOrigFGColor = t.style.Color;

	t.style.backgroundColor = gOVERBGCOLOR;
	t.style.Color = gOVERCOLOR;
	t.style.fontWeight = 'bold';

	t.style.cursor='hand';
	
	window.status =  gURL[iIndex];
}	

/*****************************************************************************/	
//function DoOver2(t, iIndex) {
//
//	gOrigBGColor = t.style.backgroundColor;
//	gOrigFGColor = t.style.Color;
//
//	t.style.backgroundColor = cKHACKILIGHTLIGHT 
//	
//	t.style.Color = gOVERCOLOR;
//	t.style.fontWeight = 'bold';
//
//	t.style.cursor='hand';
//	
//	window.status =  HOMEPLATE + gURL[iIndex];
//
//}	

/*****************************************************************************/	
function DoOut(t) {

/*	t.style.backgroundColor = gOrigBGColor;
**	t.style.Color = gOrigFGColor;
*/
	t.style.backgroundColor = cWHITE;
	t.style.Color = cBLACK;

	t.style.fontWeight = 'normal';
	window.status = "";

}	

/*****************************************************************************/	
//function DoOut2(t) {
//
//	t.style.backgroundColor = cLIGHTLIGHTSKYBLUE;
//	t.style.Color = cBLACK;
//
//	t.style.fontWeight = 'normal';
//	window.status = "";
//}	



/*****************************************************************************/	
function DoClick(t, iIndex) {

	t.style.backgroundColor = gCLICKBGCOLOR;
	t.style.Color = gCLICKCOLOR ;

//alert( "HI: " + HOMEPLATE + " ... " + gURL[iIndex] );

	window.status =  HOMEPLATE + gURL[iIndex];
	window.location.href = HOMEPLATE + gURL[iIndex];
	
}	

/*****************************************************************************/	
//function DoOverCC(t, iIndex, vOverBG, vOverFG ) {
//
//	t.style.backgroundColor = vOverBG;
//	t.style.Color = vOverFG;
//	t.style.fontWeight = 'bold';
//	
//	window.status =  HOMEPLATE + gURL[iIndex];
//}	

/*****************************************************************************/	
//function DoOutCC(t, vOutBG, vOutFG) {
//
//	t.style.backgroundColor = vOutBG;
//	t.style.Color = vOutFG;
//
//	t.style.fontWeight = 'normal';
//	window.status = "";
//
//}	

/*****************************************************************************/	
function DoClickCC(t, iIndex, vClickBG, cClickFG) {

	t.style.backgroundColor = vClickBG;
	t.style.Color = cClickFG ;
	window.status =  HOMEPLATE + gURL[iIndex];
	window.location.href = HOMEPLATE + gURL[iIndex];
	
}	

