/* *************************************
IE MENU FIX
****************************************/
function list1(elementName) 
{
	if (document.all&&document.getElementById) 
	{
		navRoot = document.getElementById(elementName);
//alert("elementName:" + elementName);
//alert(navRoot.childNodes.length);
		for (i=0; i<navRoot.childNodes.length; i++) 
		{
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") 
			{
				node.onmouseover=function list1(elementName) 
				{
					this.className+="over";
				}
				node.onmouseout=function list1(elementName) 
				{
					this.className=this.className.replace("over", "");
				}
			}
		}
	}
}


/* *************************************
MENU FIX
****************************************/
function addDropDownsToList()
{
	list1("nav1");
	list1("nav2");
	list1("nav3");
	list1("nav4");
	list1("nav5");
	list1("nav6");
	list1("nav7");
}

/* *************************************
SMALL IMAGE ROTATE (BRANCH PAGES)
****************************************/
var smimgbr = new Array(2);
smimgbr[0] = "<img src='../../images/house_blue.jpg' width='158' height='119' border='0' />";
smimgbr[1] = "<img src='../../images/house_brown.jpg' width='158' height='119' border='0' />";
smimgbr[2] = "<img src='../../images/house_yellow.jpg' width='158' height='119' border='0' />";

function smallimagebr() 
{
	currentdate = new Date();
	core = currentdate.getSeconds();
	core %= smimgbr.length;
	return(smimgbr[core]);
}

/* *************************************
SMALL IMAGE ROTATE
****************************************/
var smimg = new Array(2);
smimg[0] = "<img src='images/house_blue.jpg' width='158' height='119' border='0' />";
smimg[1] = "<img src='images/house_brown.jpg' width='158' height='119' border='0' />";
smimg[2] = "<img src='images/house_yellow.jpg' width='158' height='119' border='0' />";

function smallimage() 
{
	currentdate = new Date();
	core = currentdate.getSeconds();
	core %= smimg.length;
	return(smimg[core]);
}

/* *************************************
IMAGE ROTATE
****************************************/
var img = new Array(2);
img[0] = "<img name='img_media_pac' src='images/img_media_pac.jpg' width='775' height='85' border='0' usemap='#m_img_media_pac' alt='software license management'>";
img[1] = "<img 'img_media_ce' src='images/img_media_ce.jpg' width='775' height='85' border='0' usemap='#m_img_media_ce' alt='asset management software'>";


function image() 
{
	currentdate = new Date();
	core = currentdate.getSeconds();
	core %= img.length;
	return(img[core]);
}


/* *************************************
TESTIMONIAL ROTATE
****************************************/
var qte = new Array(4);
qte[0] = "<li>'We chose Survey™ for its ease of use and extensive reporting options. It is simple to install and manage'</li><li style='list-style:none; text-align:right; '><b>Helen Alvarado</b><br />Texas State Auditor’s Office </li>";
qte[1] = "<li>'We will completely recover our investment on Survey™ with our first analysis of software licenses.'</li><li style='list-style:none; text-align:right; '><b>Jim Herzfeld</b><br />CIO<br />Milwaukee Journal Sentinel</li>";
qte[2] = "<li>'We’re already saving $100,000 on hardware expenses.'</li><li style='list-style:none; text-align:right;'><b>Phil Hayes</b><br />Manager IS Services<br />Country Energy </li>";
qte[3] = "<li>'We saved $122,000 on Visio™ licenses alone.'</li><li style='list-style:none; text-align:right; '><b>Bill P.</b><br />Manager of Network Operations</li>";


function qswap() 
{
	currentdate = new Date();
	core = currentdate.getSeconds();
	core %= qte.length;
	return(qte[core]);
}


/* *************************************
TESTIMONIAL ROTATE #2
****************************************/
var announce = new Array(2);
announce[0] = "<li style='list-style:none'>'Will HR 3915 affect your business? click below for details on how this law could change things'</li><li style='width:140px; text-align:left; color:#AECE7B; padding:2 0 0 72; margin:0; list-style:none; font-size:12pt;'><b>&raquo;</b>&nbsp;<a href='products.asp' style='color:#cccccc; font-size:8pt;'>Read More</a></li>";
announce[1] = "<li style='list-style:none'>'Refer to the Underwriting Section for changes to MI coverage for A Minus and Expanded Approval loans'</li><li style='width:140px; text-align:left; color:#AECE7B; padding:2 0 0 72; margin:0; list-style:none; font-size:12pt;'><b>&raquo;</b>&nbsp;<a href='products.asp' style='color:#cccccc; font-size:8pt;'>Read More</a></li>";


function announcements() 
{
	currentdate = new Date();
	core = currentdate.getSeconds();
	core %= announce.length;
	return(announce[core]);
}


/* *************************************
TESTIMONIAL ROTATE #2
****************************************/
var note = new Array(3);
note[0] = "<li style='list-style:none'>'HUD’s website will tell you which counties had an increase in their loan limits.  Check it out!'</li><li style='width:140px; text-align:left; color:#AECE7B; padding:2 0 0 72; margin:0; list-style:none; font-size:12pt;'><b>&raquo;</b>&nbsp;<a href='https://entp.hud.gov/idapp/html/hicostlook.cfm' style='color:#cccccc; font-size:8pt;'>Click Here</a></li>";
note[1] = "<li style='list-style:none'>'The UW Section of our website has the MI chart posted; Be sure to check it for the new changes.'</li><li style='width:140px; text-align:left; color:#AECE7B; padding:2 0 0 72; margin:0; list-style:none; font-size:12pt;'><b>&raquo;</b>&nbsp;<a href='underwriting.asp' style='color:#cccccc; font-size:8pt;'>Read More</a></li>";
note[2] = "<li style='list-style:none'>'Utilize Optimal Blue for a product finder - all your pricing and product needs are at your fingertips!'</li><li style='width:140px; text-align:left; color:#AECE7B; padding:2 0 0 72; margin:0; list-style:none; font-size:12pt;'><b>&raquo;</b>&nbsp;<a href='products.asp' style='color:#cccccc; font-size:8pt;'>Read More</a></li>";


function productnotices() 
{
	currentdate = new Date();
	core = currentdate.getSeconds();
	core %= note.length;
	return(note[core]);
}

/* *************************************
IMAGE SWAP RESTORE
****************************************/
function swapimgrest() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}


/* *************************************
IMAGE SWAP
****************************************/
function swapimg() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


/* *************************************
POP UP WINDOW
****************************************/
function MM_openBrWindow(theURL,winName,features) { //v2.0
		window.open(theURL,winName,features);
		}
									
									
	
/* *************************************
"<li style='list-style:none'>'Texas Cash-out options are being expanded to include options in addition to the Star Program and a better price on the fixed rate.  Options include a no Network fees option on the fixed rates.'</li><li style='width:140px; text-align:left; color:#AECE7B; padding:2 0 0 72; margin:0; list-style:none; font-size:12pt;'><b>&raquo;</b>&nbsp;<a href='products.asp' style='color:#cccccc; font-size:8pt;'>Read More</a></li>";
****************************************/	
