
		//rollover 
		function roll( arg_img, arg_fileName )
		{
		  document.images[arg_img].src = arg_fileName;
		}
		
		//create image array for preload
		function createImgArray()
		{
		  var imgArray = new Array('http://www.fanniemae.com/global/images/shared/ContactUs.gif' , 'http://www.fanniemae.com/global/images/shared/ContactUsRollOver.gif' , 'http://www.fanniemae.com/global/images/shared/FAQ.gif' , 'http://www.fanniemae.com/global/images/shared/FAQRollOver.gif',
			                         'http://www.fanniemae.com/global/images/shared/Sitemap.gif' , 'http://www.fanniemae.com/global/images/shared/SitemapRollOver.gif' , 'http://www.fanniemae.com/global/images/shared/Search.gif' , 'http://www.fanniemae.com/global/images/shared/SearchRollOver.gif',
															 'http://www.fanniemae.com/global/images/shared/legal.gif' , 'http://www.fanniemae.com/global/images/shared/legalOver.gif');
			preload( imgArray );                   
		}
		
		//preload images
		function preload( arg_imgArray )
		{
		  for (var i = 0; i < arg_imgArray.length; i ++)
			{
			  var newImage = new Image();
				newImage.src = arg_imgArray[i];
			}
		}
		
		window.onLoad = createImgArray();

// ---------------------------------------------------------------------------------
// PopupURLMenu(): This function opens a new window to display the passed in
// URL.
//
// Parameters:
//		mypage: The URL of the Page to display
//		myname:	The Name of the New Window
//		w:		The Width of the New Window
//		h:		The Height of the New Window
//		scroll:	Whether or not the window should be resizable ('yes' or 'no')
// ---------------------------------------------------------------------------------
function PopupURLMenu(mypage, myname, w, h, scroll,toolbar)
{
   var index = mypage.indexOf("//")
   var hostname = mypage.substring(index+2,index+19)
   if ( hostname == "www.fanniemae.com" || index == -1) 
   {
      document.location.href = mypage;
   }
   else
   {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	var toolOption = toolbar;
	if ( toolOption == null || toolOption == '') 
	   toolOption = 'yes';
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=yes,menubar=yes'+',toolbar='+toolOption
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4)
	{
		win.window.focus();
	}
   }
}
		
