// JavaScript Document

function MM_findObj(n, d) { 
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() { 
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_swapImage() { //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];}
}

function MM_swapImgRestore() { //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;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

MM_preloadImages('/images/nav01-over.gif', '/images/nav02-over.gif', '/images/nav03-over.gif', '/images/nav04-over.gif');



$(document).ready(function(){
$(".speedbump").click(function(){alert("The link you have selected will transfer you to a web site not operated by Les Bois Federal Credit Union. The web site you will be visiting may have privacy and security policies different from those of Les Bois Federal Credit Union. Therefore, you are encouraged to review these policies once you arrive.  Because this web site is not operated by Les Bois Federal Credit Union, we cannot be responsible for its availability or content, nor do we represent either our members or the third party if you enter into a transaction with them.")});						   
						   
						   
						   
$("#business").hide();
$("#loans").hide();
$("#investments").hide();
$("#member").hide();
$("#quickfind").hide();

$("#tabs_personal").mouseover(function () {
	$(this).attr("src", "images/tabs_personal_over.jpg");
});
$("#tabs_business").mouseover(function () {
	$(this).attr("src", "images/tabs_business_over.jpg");
});
$("#tabs_loans").mouseover(function () {
	$(this).attr("src", "images/tabs_loans_over.jpg");
});
$("#tabs_investments").mouseover(function () {
	$(this).attr("src", "images/tabs_investments_over.jpg");
});
$("#tabs_member").mouseover(function () {
	$(this).attr("src", "images/tabs_member_over.jpg");
});
$("#tabs_personal").click(function(event){
	$("#business").hide();
	$("#loans").hide();
	$("#investments").hide();
	$("#member").hide();
	$("#personal").fadeIn(400);
});
$("#tabs_business").click(function(event){
	$("#personal").hide();
	$("#loans").hide();
	$("#investments").hide();
	$("#member").hide();
	$("#business").fadeIn(400);
});
$("#tabs_loans").click(function(event){
	$("#personal").hide();
	$("#business").hide();
	$("#investments").hide();
	$("#member").hide();
	$("#loans").fadeIn(400);
});
$("#tabs_investments").click(function(event){
	$("#personal").hide();
	$("#business").hide();
	$("#loans").hide();
	$("#member").hide();
	$("#investments").fadeIn(400);
});
$("#tabs_member").click(function(event){
	$("#personal").hide();
	$("#business").hide();
	$("#loans").hide();
	$("#investments").hide();
	$("#member").fadeIn(400);
});
$("#quickfind_link").click(function(event){
	$("#quickfind").fadeIn(400);
});
$("#quickfind_close").click(function(event){
	$("#quickfind").fadeOut(400);
});
$("#privacy_policy").click(function(event){
	$("#privacy").slideToggle(1100);
});

$("#terms_of_use").click(function(event){
	$("#terms_use").slideToggle(1100);
});
$("#privacy_close").click(function(event){
	$("#privacy").slideUp(1100);
});
$("#terms_close").click(function(event){
	$("#terms_use").slideUp(1100);
});

});

function click_faq(faqID){
	var faq = faqID;
	$(faq).slideToggle("slow");
}

var tab_select='tabs_personal';
function click_tab(tabid) {
	document.getElementById('tabs_personal').src='images/tabs_personal.jpg';
	document.getElementById('tabs_business').src='images/tabs_business.jpg';
	document.getElementById('tabs_loans').src='images/tabs_loans.jpg';
	document.getElementById('tabs_investments').src='images/tabs_investments.jpg';
	document.getElementById('tabs_member').src='images/tabs_member.jpg';
	tab_select=tabid;
	if (tabid == 'tabs_personal'){
	document.getElementById('tabs_personal').src='images/tabs_personal_over.jpg';
	}
	if (tabid == 'tabs_business'){
	document.getElementById('tabs_business').src='images/tabs_business_over.jpg';	
	}
	if (tabid == 'tabs_loans'){
	document.getElementById('tabs_loans').src='images/tabs_loans_over.jpg';	
	}
	if (tabid == 'tabs_investments'){
	document.getElementById('tabs_investments').src='images/tabs_investments_over.jpg';	
	}
	if (tabid == 'tabs_member'){
	document.getElementById('tabs_member').src='images/tabs_member_over.jpg';	
	}
}

function tab_restore(tabover) {
	if (tabover == tab_select) {
	document.getElementById(tabover).src='images/' + tabover + '_over.jpg';
	}else{
	document.getElementById(tabover).src='images/' + tabover + '.jpg';
	}
}



$(document).ready(function(){
//$("#faq").hide();
//$("#details").hide();

$("#tabs_internal_rates").mouseover(function () {
	$(this).attr("src", "/images/tabs_internal_rates_over.gif");
});
$("#tabs_internal_faq").mouseover(function () {
	$(this).attr("src", "/images/tabs_internal_faq_over.gif");
});
$("#tabs_internal_details").mouseover(function () {
	$(this).attr("src", "/images/tabs_internal_details_over.gif");
});
$("#tabs_internal_rates").click(function(event){
	$("#faq").hide();
	$("#details").hide();
	$("#rates").fadeIn(400);
});
$("#tabs_internal_faq").click(function(event){
	$("#rates").hide();
	$("#details").hide();
	$("#faq").fadeIn(400);
});
$("#tabs_internal_details").click(function(event){
	$("#faq").hide();
	$("#rates").hide();
	$("#details").fadeIn(400);
});

});

var details_tab_select='tabs_internal_rates';
function details_click_tab(product_tabid) {
	document.getElementById('tabs_internal_rates').src='/images/tabs_internal_rates.gif';
	document.getElementById('tabs_internal_faq').src='/images/tabs_internal_faq.gif';
	document.getElementById('tabs_internal_details').src='/images/tabs_internal_details.gif';
	details_tab_select=product_tabid;
	if (product_tabid == 'tabs_internal_rates'){
	document.getElementById('tabs_internal_rates').src='/images/tabs_internal_rates_over.gif';
	}
	if (product_tabid == 'tabs_internal_faq'){
	document.getElementById('tabs_internal_faq').src='/images/tabs_internal_faq_over.gif';	
	}
	if (product_tabid == 'tabs_internal_details'){
	document.getElementById('tabs_internal_details').src='/images/tabs_internal_details_over.gif';	
	}
}

function details_tab_restore(product_tabover) {
	if (product_tabover == details_tab_select) {
	document.getElementById(product_tabover).src='/images/' + product_tabover + '_over.gif';
	}else{
	document.getElementById(product_tabover).src='/images/' + product_tabover + '.gif';
	}
}


