// -------GLOBAL----------------
// FUNCTION: Browser Sniff / CSS selection
// DESCRIPTION: Determine user browser/OS and place correct CSS
// -----------------------
var browser =""
var agt=navigator.userAgent.toLowerCase();
var is_vr = parseInt(navigator.appVersion);
var is_nav = (agt.indexOf('mozilla')!=-1);
var is_nav4 = (is_nav && (is_vr == 4));
var is_nav5up = (is_nav && (is_vr >= 5));
var is_ie = (agt.indexOf("msie") != -1);
var is_ie4 = (is_ie && (is_vr == 4) && (agt.indexOf("msie 5.0")==-1) );
var is_ie4up = (is_ie && (is_vr >= 4) && (is_vr < 5));
var is_ie5up = (is_ie && (agt.indexOf("msie 5.")!=-1));
var is_mac=(agt.indexOf("mac")!= -1 || agt.indexOf("mac_powerpc")!= -1);
if (is_mac) {
if (is_ie5up)
{document.write('')
browser = "ie5up"
}
else if (is_nav5up)
{document.write('')
browser = "nav5up"
}
else
{document.write('')
browser = "mac"
}
}
else if (is_ie4up)
{document.write('')
browser = "ie4up"
}
else if (is_nav5up)
{document.write('')
browser = "nav5up"
}
else if (is_nav4)
{document.write('')
browser = "nav4"
}
else
{document.write('')
browser = "ie4up"
}
// -----------------------
// FUNCTION: Browser Sniff / CSS selection
// DESCRIPTION: Determine user browser/OS and place correct CSS
// ------END--------------
// ---------------------
// FUNCTION: Homepage Div On/Off
// DESCRIPTION: turns homepage left nav div's on and off
// ------BEGIN--------
function divOn(i,j){
if (document.layers && document.layers[i] != null) {
document.layers[i].visibility = 'hidden';
document.layers[j].visibility = 'visible';
}
else if (document.all) {
document.all[i].style.visibility = 'hidden';
document.all[j].style.visibility = 'visible';
}
else {
document.getElementById(i).style.visibility="hidden";
document.getElementById(j).style.visibility="visible";
}
}
// ---------------------
// FUNCTION: Homepage Div On/Off
// DESCRIPTION: turns homepage left nav div's on and off
// ------END--------
// ---------------------
// FUNCTION: Graph rollovers
// DESCRIPTION: turns the graph icon rollovers on and off
// ------BEGIN--------
//Use to Pre-Load images
if (document.images) {
var graphOff = new Image(); // for the inactive image
graphOff.src = "/bcf/images/graph.gif";
var graphOn = new Image(); // for the active image
graphOn.src = "/bcf/images/graph_on.gif";
}
//Function to "light up" image
function clapOn(imgName) {
if (document.images)
if (imgName != null)
document[imgName].src = eval("graph" + "On.src");
}
//Function to "turn off" image
function clapOff(imgName) {
if (document.images) {
if (imgName != null)
document[imgName].src = eval("graph" + "Off.src");
}
}
// ---------------------
// FUNCTION: Graph rollovers
// DESCRIPTION: turns the graph icon rollovers on and off
// ------END--------
// ---------------------
// FUNCTION: Popup
// DESCRIPTION: Pops up the window for selected pages
// ------BEGIN--------
function openInterestRates() {
window.open("/bcf/InterestRates.do","mywin","height=400,top=100,width=400,status=0,locationbar=0,scrollbars=0,resizable=1,toolbar=0");
}
function openLoanQuoteEmail(param) {
var newWin=
window.open(param,"mywin","height=210,top=100,width=341,status=0,locationbar=0,scrollbars=0,resizable=1,toolbar=0");
newWin.opener = self;
newWin.focus();
}
function openLoanQuoteHelp(location) {
var newWin=
window.open("/bcf/user/LoanQuoteHelp.do#"+[location]+"","helpwin","height=400,top=50,width=400,status=0,locationbar=0,scrollbars=1,resizable=1,toolbar=0");
newWin.opener = self;
newWin.focus();
}
// ---------------------
// FUNCTION: Popup
// DESCRIPTION: Pops up the window for selected pages
// ------END--------