window.status = "picacreditunion.com"
var selectedColor = "#ff9000";
var half = "Navigation_Tray";
var nhalf = "menuItems";
var temp = "";		
  
  function aHoverMenu(p)
 {	
	MenuColorReset();
	closeMenu();	
	if(p.bgColor != selectedColor) p.bgColor="#807c80";		
	p.style.cursor="default";
	if(p.id != ""){dropMenu(p.id + "menuItems")};
 } 

 function aHoverOn(p)
 {		
	p.bgColor="#807c80";
	p.style.cursor="hand";
	p.style.color="#ff9000";		
 }
 
  function aHoverOff(p)
 {	
	p.style.color="#ffffff";
	if(p.bgColor != selectedColor) p.bgColor="#9c999d";	
 }
 
 function dropMenu(menu)
{ 
    if (document.all)
    {
      document.all[menu].style.visibility = "visible";
    }
    else if (document.layers)
    {
      document[menu].visibility = "show";
    }
    else if (document.getElementById)
    {
      document.getElementById(menu).style.visibility = "visible";
    }    
}

 function closeMenu()
{ 		
	for(var i=1;i<=6;i++){
		temp = half + i + nhalf;				
		document.all[temp].style.visibility = "hidden";							
     }    
     showSubMenuOff();    
}

 function MenuColorReset()
{
	for(var i=1;i<=6;i++){		
		temp = half + i;	
		if(document.all[temp].bgColor != selectedColor) document.all[temp].bgColor="#9c999d";					
     }      
}

setTimeout("autoMate('art/logowink.gif')", 2000);
setTimeout("autoMate('art/logo.gif')", 3000);
	
function autoMate(src){
	document.all.motocon.src =src;	
}

 function showSubMenu(pid, id)
{
	document.all[pid].style.visibility = "visible";
	document.all[id].style.visibility = "visible";
}
 function showSubMenuOff()
{
	document.all['rates'].style.visibility = "hidden";
	document.all['banking'].style.visibility = "hidden";
	document.all['creditcards'].style.visibility = "hidden";
}
function submitRTform()
{	
	window.location = "siteSearch.aspx?ask=" + document.rt.searchText.value;
}
function ThirdPartyLink()
{
	var strDisclaimerText;
	strDisclaimerText = "PFCU Disclosure\n\nYou are now leaving\nPicaCreditUnion.Com\nand linking to an alternate\nweb site not operated by the\nCredit Union.The Credit Union\nis not responsible for the\ncontent of the alternate web\nsite and does not represent\neither the third party or the \nmember if the two enter into\na transaction. Be aware that\nthe privacy and security\npolicies may differ from\nthose practiced by the Credit\nUnion.\n\n\nThank You\nPicatinny Federal Credit Union";
	alert(strDisclaimerText);
	return true;
}
function OpenNewWindow(file)
{
	window.open(file,"mywindow","width=805,height=512");
	return false;
}