// JavaScript Document

var iPath = 'images/';
var iExt = 'gif';
var suffix = new Array('on', 'off');

if(document.images)
{

	//Navigation Images
	//Navigation Images
	//Navigation Images		
	nav_programs_on = new Image(161,28);
	nav_programs_on.src = iPath + "nav_programs_on.gif";
	nav_programs_off = new Image(161,28);
	nav_programs_off.src = iPath + "nav_programs_off.gif"; 
	
	nav_cas_inside_on = new Image(161,28);
	nav_cas_inside_on.src = iPath + "nav_cas_inside_on.gif";
	nav_cas_inside_off = new Image(161,28);
	nav_cas_inside_off.src = iPath + "nav_cas_inside_off.gif"; 
	
	nav_apply_on = new Image(161,28);
	nav_apply_on.src = iPath + "nav_apply_on.gif";
	nav_apply_off = new Image(161,28);
	nav_apply_off.src = iPath + "nav_apply_off.gif"; 

	nav_faqs_on = new Image(161,28);
	nav_faqs_on.src = iPath + "nav_faqs_on.gif";
	nav_faqs_off = new Image(161,28);
	nav_faqs_off.src = iPath + "nav_faqs_off.gif"; 	
	
	nav_international_on = new Image(161,48);
	nav_international_on.src = iPath + "nav_international_on.gif";
	nav_international_off = new Image(161,48);
	nav_international_off.src = iPath + "nav_international_off.gif"; 

	nav_financial_on = new Image(161,28);
	nav_financial_on.src = iPath + "nav_financial_on.gif";
	nav_financial_off = new Image(161,28);
	nav_financial_off.src = iPath + "nav_financial_off.gif"; 
	
	nav_request_on = new Image(161,28);
	nav_request_on.src = iPath + "nav_request_on.gif";
	nav_request_off = new Image(161,28);
	nav_request_off.src = iPath + "nav_request_off.gif"; 
	
	nav_cashome_on = new Image(161,28);
	nav_cashome_on.src = iPath + "nav_cashome_on.gif";
	nav_cashome_off = new Image(161,28);
	nav_cashome_off.src = iPath + "nav_cashome_off.gif"; 


}



function rollOver(iName, iState)
{
  if(document.images && self[iName + '_' + iState])
  {
    document.images[iName].src = self[iName + '_' + iState].src;
  }
}


//make image alwyas appear on by replaceing img src and mouseoffstate with on state
function postLoad(iName)
{
  //define reg exp and replace _off.gif with _on.gif
  var re = new RegExp ('_off.gif', 'gi') ;
  document.images[iName].src = document.images[iName].src.replace(re, '_on.gif') ;  //acutal image
  eval(iName + '_off').src = document.images[iName].src; //now we set the off state the same as the on state
}
