/*
 CALL TO CORRECT DIRECTORY
 CALL TO CORRECT DIRECTORY
 CALL TO CORRECT DIRECTORY
 CALL TO CORRECT DIRECTORY
*/
var directCall="";
//IF home variable is declared
if (window.homepage)
	{
	//alert ("this is home");
	directCall="";
	}
else if (document.URL=="http://www.mountaincu.org/home.html") {
	directCall=""	
	}
else if (document.URL=="http://www.mountaincu.org/") {
	directCall=""	
	}
else if (document.URL=="http://www.mountaincu.org/home.html") {
	directCall=""	
	}
else {
	directCall="../"
}


var directCall2="";
//IF home variable is declared
if (window.homepage)
	{
	directCall2="site/";
	}
else if (document.URL=="http://www.mountaincu.org/home.html") {
	directCall2="site/"	
	}
else if (document.URL=="http://www.mountaincu.org/") {
	directCall2="site/"	
	}
else if (document.URL=="http://www.mountaincu.org/home.html") {
	directCall2="site/"	
	}
else if (document.URL=="http://www.mountaincu.org") {
	directCall2="site/"	
	}  
else if (document.URL=="http://www.mountaincu.org/") {
	directCall2="site/"	
	}    
/*else if (window.guestbook)
{

}	*/  

else {
	directCall2=""
}
//alert(window.home);
//alert("directcall: " + directCall + "\n directcall2: " + directCall2);



/* DHTML*/


if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;


HM_PG_MenuWidth = 175;
HM_PG_FontFamily = "Arial,sans-serif";
HM_PG_FontSize = 9;
HM_PG_FontBold = 0;
HM_PG_FontItalic = 0;
HM_PG_FontColor = "#181EA5";
HM_PG_FontColorOver = "#EEEEEE";
HM_PG_BGColor = "#EEEEEE";
HM_PG_BGColorOver = "#181EA5";
HM_PG_ItemPadding = 3;

HM_PG_BorderWidth = 1;
HM_PG_BorderColor = "#181EA5";
HM_PG_BorderStyle = "solid";
HM_PG_SeparatorSize = 1;
HM_PG_SeparatorColor = "#181EA5";
HM_PG_ImageSrc = directCall +"images/tri.gif";
HM_PG_ImageSrcLeft = directCall +"images/triL.gif";

HM_PG_ImageSize = 5;
HM_PG_ImageHorizSpace = 2;
HM_PG_ImageVertSpace = 4;

HM_PG_KeepHilite = true; 
HM_PG_ClickStart = 0;
HM_PG_ClickKill = 0  /*0 = false;  1 = true*/
HM_PG_ChildOverlap = 6;
HM_PG_ChildOffset = 10;
HM_PG_ChildPerCentOver = null;
HM_PG_TopSecondsVisible = 1;
HM_PG_StatusDisplayBuild =0;
HM_PG_StatusDisplayLink = 0;
HM_PG_UponDisplay = null;
HM_PG_UponHide = null;
HM_PG_RightToLeft = false;

HM_PG_CreateTopOnly = 1;
HM_PG_ShowLinkCursor = 1;
HM_PG_NSFontOver = true;




/* What season is it? */
var seasonpic=Math.ceil((Math.random()* 2));  	
var total = new Date; 
var month = total.getMonth();

if (month==11 || month==0 || month==1){
	var season = '<img src="'+ directCall +'images/pic-winter-'+seasonpic+'.jpg" width="508" height="74" alt="" border="0">';
	}
else if (month==2 || month==3 || month==4){
	var season = '<img src="'+ directCall +'images/pic-spring-'+seasonpic+'.jpg" width="508" height="74" alt="" border="0">';
	}
else if (month==5 || month==6 || month==7){
	var season = '<img src="'+ directCall +'images/pic-summer-'+seasonpic+'.jpg" width="508" height="74" alt="" border="0">';
	}
else if (month==8 || month==9 || month==10){
	var season = '<img src="'+ directCall +'images/pic-fall-'+seasonpic+'.jpg" width="508" height="74" alt="" border="0">';
	}
	
	
/*
 ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW
 ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW
 ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW
*/

  browserName = navigator.appName;
  browserVer = parseInt(navigator.appVersion);
  if (((browserName == "Netscape") && (browserVer >= 3)) || ((browserName == "Microsoft Internet Explorer") && (browserVer >= 4))) {
    version = "ok";

    directory = new Image(52,317);   	directory.src = directCall + "images/nav-directory-on.jpg";
	home = new Image (52,317);          home.src = directCall + "images/nav-home-on.jpg";
	kidspage = new Image(52,317);      	kidspage.src = directCall + "images/nav-kidspage-on.jpg";
	//money = new Image(52,317);   	   	money.src = directCall + "images/nav-money-on.jpg";
	news = new Image(52,317);   		news.src = directCall + "images/nav-news-on.jpg";
	online = new Image(52,317);   	    online.src = directCall + "images/nav-online-on.jpg";
	products = new Image(52,317);      	products.src = directCall + "images/nav-products-on.jpg";
	rates = new Image(52,317);          rates.src = directCall + "images/nav-rates-on.jpg";
	whatsnew = new Image(52,317);    	whatsnew.src = directCall + "images/nav-whatsnew-on.jpg";

  }
  else 
    version = "x";
  function img_act(imgName) {
    if (version == "ok") {
       imgOn = eval(imgName + ".src");
       document ["blank"].src = imgOn;
    }
  }
  function img_inact(imgName) {
    window.status = "";
    if (version == "ok") {
      document ["blank"].src = directCall +"images/clearpix.gif";
    }
  }
 /* 
 ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE
 ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE
 ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE  
*/

/*style sheet sniffer */
if (location.protocol!='https:'){
	navigator.userAgent.indexOf('Mac') != -1 ? document.write('<link href="' + directCall2 + '_macstyle.css" rel="stylesheet"') : document.write('<link href="' + directCall2 + '_winstyle.css" rel="stylesheet">');
	}



/* RANDOM PICTURE GENERATOR*/
var picpic=Math.ceil((Math.random()* 5));  
var photo='<img src="'+ directCall +'images/photo'+picpic+'.jpg" border="0" align="right">'
//<img src="../images/photo1.jpg" width="201" height="133" alt="" border="0">
//this is for the kids section
var picture=Math.ceil((Math.random()* 3));
var kidphoto='<img src="'+ directCall +'images/funphoto1.gif" border="0" align="right">'
var kidphoto2='<img src="'+ directCall +'images/funphoto3.gif" width="170" height="111" border="0" align="right">'
var kidphoto3='<img src="'+ directCall +'images/apple-photo.gif" width="170" height="111" border="0" align="right">'
/* RANDOM Liberty Image picker*/
var libertyNum=Math.ceil((Math.random()* 2));  
var liberty='<table width="500" border="0"><tr><td align="center"><a href="http://qspace.iplace.com/cobrands/172/" target="_new"><img src="'+directCall +'images/home-creditreport.jpg" alt="" border="0" align="absmiddle" hspace="1" vspace="1"></a></td><td align="center"><a href="https://reorder.libertysite.com/login.asp" target="_new"><img src="'+directCall +'images/home-liberty'+libertyNum+'.gif" border="0" hspace="1" vspace="1" alt="" align="absmiddle"></a></td><td align="center"><a href="http://www.nadaguides.com/linkedvalues.asp?linkid=4137" target="_new"><img src="'+directCall +'images/home-nadaguide.gif" alt="" border="0" align="absmiddle" hspace="1" vspace="1"></a></td></tr></table>'

var liberty2='<a href="https://reorder.libertysite.com/login.asp" target="_new"><img src="'+directCall +'images/liberty'+libertyNum+'.gif" border="0" align="right"></a>'

/*header & footer*/



var URLtocheck = location.href;

if (location == 'http://www.mountaincu.org/home.html' ||  location == 'http://www.mountaincu.org'){
	var section = 'home';
	var alttag = 'Welcome to Mountain Credit Union!';
	}
else if (URLtocheck.indexOf("template")>0){
	var section = 'join';
	var alttag = 'TEMPLATE FILE';
	}
else if (URLtocheck.indexOf("directory-guestbook")>0 || URLtocheck.indexOf("cgi/general_app.cgi")>0 || URLtocheck.indexOf("directory-email")>0){
	var section = 'directory'; 
   
	var alttag = 'Contact Mountain Credit Union!';
	}
else if (URLtocheck.indexOf("join")>0 && !(URLtocheck.indexOf("about")>0)&& !(URLtocheck.indexOf("kids")>0)){
	var section = 'join';
	var alttag = 'Join Mountain Credit Union!';
	}
else if (URLtocheck.indexOf("kids")>0){
	var section = 'kidspage';
	var alttag = 'Mountain Credit Union Kids';
	}
else if (URLtocheck.indexOf("money")>0){
	var section = 'money';
	var alttag = 'Money Management is EASY with Mountain Credit Union!';
	}
else if (URLtocheck.indexOf("online")>0){
	var section = 'online';
	var alttag = 'Online Banking with Mountain Credit Union';
	}
else if (URLtocheck.indexOf("products")>0){
	var section = 'products';
	var alttag = 'Mountain Credit Union Products and Services';
	}
else if (URLtocheck.indexOf("rates")>0){
	var section = 'rates';
	var alttag = 'Mountain Credit Union Rates';
	}
else if (URLtocheck.indexOf("whatsnew")>0){
	var section = 'whatsnew';
	var alttag = 'Find out About Our New Featured Products and Services!';
	}
else if (URLtocheck.indexOf("calculators")>0){
	var section = 'calculators';
	var alttag = 'calculators';
	}
else if (URLtocheck.indexOf("news")>0){
	var section = 'news';
	var alttag = 'MCU News and Information';
	}
else if (URLtocheck.indexOf("locations")>0){
	var section = 'branchlocations';
	var alttag = 'Branch Locations';
	}
else if (URLtocheck.indexOf("atm")>0){
	var section = 'atmlocations';
	var alttag = 'ATM Locations';
	}
else if (URLtocheck.indexOf("about")>0){
	var section = 'aboutus';
	var alttag = 'About Us'; 
	}
else{
	var section = 'home';
	var alttag = 'Welcome to Mountain Credit Union!';
	}
	
var header='<img src="'+ directCall +'images/hed-'+ section +'.gif" width="530" height="33" alt="'+ alttag +'" border="0" onMouseOver="window.status=\''+ alttag +'\'">';
var footer='<img src="'+ directCall +'images/nav-'+ section +'-photo.jpg" width="178" height="146" alt="'+ alttag +'" border="0">';


/*
find a location with drop down functionality
*/
function redir() {
    if (window.document.forms[0].drop.options[window.document.forms[0].drop.selectedIndex].value) 
      window.location = window.document.forms[0].drop.options[window.document.forms[0].drop.selectedIndex].value;
    else
      alert("Please select a banking location near you.");
  }


/*open calculator windows*/
 function showCalc(calc){
 	/*if(newWin != null){
		newWin.close();
		}*/
	var pWidth = ( ((parseInt(screen.width) / 2)) - 275 )
	var pHeight = (((parseInt(screen.height) / 2)) -240)
	      newWin = window.open(calc,'hello',"width=550,height=480,left=" + pWidth + ",top=" + pHeight + ",resizable=1,scrollbars=1");
	}





	
	

function comingsoon(topic){
	var popWidth = ( ((parseInt(screen.width) / 2))-153)
	var popHeight = (((parseInt(screen.height) / 2))-128)
	
	newWin = window.open('' , '' , 'width=306,height=256,toolbar=no,location=no,scrollbars=no,resizable=no,left=' + popWidth + ',top=' + popHeight + ',titlebar=no,dependent=yes,hotkeys=no,alwaysRaised=yes');
	var soon='<HTML><HEAD><TITLE>';
		soon+=topic;
		soon+='</TITLE><link rel="STYLESHEET" type="text/css" href="'+directCall2 +'_winstyle.css">	</HEAD><BODY BGCOLOR=#FFFFFF marginheight="3" marginwidth="3" leftmargin="3" topmargin="3">';
		soon+='<TABLE WIDTH=300 BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD COLSPAN=3><IMG SRC="'+directCall +'images/coming_soon_top.gif" WIDTH=300 HEIGHT=5></TD></TR><TR><TD><IMG SRC="'+directCall +'images/coming_soon_left.gif" WIDTH=16 HEIGHT=161></TD><TD WIDTH=270 HEIGHT=161 align="center" class="ficontent">';
		soon+='<span class="header">'+topic +'</span><br><br>'+topic+' is coming soon to Mountain Credit Union!<br>Check again soon!<br>';
		soon+='<img src="../images/clearpix.gif" width="270" height="1" alt="" border="0">';
		soon+='</TD><TD><IMG SRC="'+directCall +'images/coming_soon_right.gif" WIDTH=14 HEIGHT=161></TD></TR><TR><TD COLSPAN=3><a href="javascript:self.close()"><IMG SRC="'+directCall +'images/coming_soon_bottom.gif" WIDTH=300 HEIGHT=84 border="0"></a></TD></TR></TABLE></BODY></HTML>';
	
	newWin.document.write(soon);
	}

function comingsoon2(){
	var popWidth = ( ((parseInt(screen.width) / 2))-153)
	var popHeight = (((parseInt(screen.height) / 2))-128)
	
	newWin = window.open('' , '' , 'width=306,height=256,toolbar=no,location=no,scrollbars=no,resizable=no,left=' + popWidth + ',top=' + popHeight + ',titlebar=no,dependent=yes,hotkeys=no,alwaysRaised=yes');
	var soon='<HTML><HEAD><TITLE>';
		soon+='Members\' Financial Network';
		soon+='</TITLE><link rel="STYLESHEET" type="text/css" href="'+directCall2 +'_winstyle.css">	</HEAD><BODY BGCOLOR=#FFFFFF marginheight="3" marginwidth="3" leftmargin="3" topmargin="3">';
		soon+='<TABLE WIDTH=300 BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD COLSPAN=3><IMG SRC="'+directCall +'images/coming_soon_top.gif" WIDTH=300 HEIGHT=5></TD></TR><TR><TD><IMG SRC="'+directCall +'images/coming_soon_left.gif" WIDTH=16 HEIGHT=161></TD><TD WIDTH=270 HEIGHT=161 align="center" class="ficontent">';
		soon+='<span class="header">Coming Soon!</span><br><br><img src="'+directCall +'images/mfslogo.gif" width="190" height="76" alt="" border="0">';
		soon+='<img src="../images/clearpix.gif" width="270" height="1" alt="" border="0">';
		soon+='</TD><TD><IMG SRC="'+directCall +'images/coming_soon_right.gif" WIDTH=14 HEIGHT=161></TD></TR><TR><TD COLSPAN=3><a href="javascript:self.close()"><IMG SRC="'+directCall +'images/coming_soon_bottom.gif" WIDTH=300 HEIGHT=84 border="0"></a></TD></TR></TABLE></BODY></HTML>';
	
	newWin.document.write(soon);
	}
function comingsoon3(topic){
	var popWidth = ( ((parseInt(screen.width) / 2))-153)
	var popHeight = (((parseInt(screen.height) / 2))-128)
	
	newWin = window.open('' , '' , 'width=306,height=256,toolbar=no,location=no,scrollbars=no,resizable=no,left=' + popWidth + ',top=' + popHeight + ',titlebar=no,dependent=yes,hotkeys=no,alwaysRaised=yes');
	var soon='<HTML><HEAD><TITLE>';
		soon+=topic;
		soon+='</TITLE><link rel="STYLESHEET" type="text/css" href="'+directCall2 +'_winstyle.css">	</HEAD><BODY BGCOLOR=#FFFFFF marginheight="3" marginwidth="3" leftmargin="3" topmargin="3">';
		soon+='<TABLE WIDTH=300 BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD COLSPAN=3><IMG SRC="'+directCall +'images/coming_soon_top.gif" WIDTH=300 HEIGHT=5></TD></TR><TR><TD><IMG SRC="'+directCall +'images/coming_soon_left.gif" WIDTH=16 HEIGHT=161></TD><TD WIDTH=270 HEIGHT=161 align="center" class="ficontent">';
		soon+='<span class="header">'+topic +'</span><br><br>Mountain Credit Union will providing '+topic+' soon!<br>Check again soon!<br>';
		soon+='<img src="../images/clearpix.gif" width="270" height="1" alt="" border="0">';
		soon+='</TD><TD><IMG SRC="'+directCall +'images/coming_soon_right.gif" WIDTH=14 HEIGHT=161></TD></TR><TR><TD COLSPAN=3><a href="javascript:self.close()"><IMG SRC="'+directCall +'images/coming_soon_bottom.gif" WIDTH=300 HEIGHT=84 border="0"></a></TD></TR></TABLE></BODY></HTML>';
	
	newWin.document.write(soon);
	}

function warning(){
	var popWidth = ( ((parseInt(screen.width) / 2))-153)
	var popHeight = (((parseInt(screen.height) / 2))-128)
	
	dmx = window.open('' , '' , 'width=306,height=256,toolbar=no,location=no,scrollbars=no,resizable=no,left=' + popWidth + ',top=' + popHeight + ',titlebar=no,dependent=yes,hotkeys=no,alwaysRaised=yes');
	var soon='<HTML><HEAD><TITLE>Alert!';
		soon+='</TITLE><link rel="STYLESHEET" type="text/css" href="'+directCall2 +'_winstyle.css">	</HEAD><BODY BGCOLOR=#FFFFFF marginheight="3" marginwidth="3" leftmargin="3" topmargin="3">';
		soon+='<TABLE WIDTH=300 BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD COLSPAN=3><IMG SRC="'+directCall +'images/coming_soon_top.gif" WIDTH=300 HEIGHT=5></TD></TR><TR><TD><IMG SRC="'+directCall +'images/coming_soon_left.gif" WIDTH=16 HEIGHT=161></TD><TD WIDTH=270 HEIGHT=161 align="center" class="ficontent">';
		soon+='<span class="header">Attention!!!</span><br><br>You are leaving Mountain Credit Union\'s website.  These sites are independent of MCU, and MCU is not responsible for the content that you are about to see.';
		soon+='<img src="../images/clearpix.gif" width="270" height="1" alt="" border="0">';
		soon+='</TD><TD><IMG SRC="'+directCall +'images/coming_soon_right.gif" WIDTH=14 HEIGHT=161></TD></TR><TR><TD COLSPAN=3><a href="javascript:self.close()"><IMG SRC="'+directCall +'images/coming_soon_bottom.gif" WIDTH=300 HEIGHT=84 border="0"></a></TD></TR></TABLE></BODY></HTML>';
	
	dmx.document.write(soon);
    setTimeout("dmx.focus()",1300);
    setTimeout("dmx.close()",30000);
     ;
	}	
function warning2(){
	var popWidth = ( ((parseInt(screen.width) / 2))-153)
	var popHeight = (((parseInt(screen.height) / 2))-128)
	
	dmx = window.open('' , '' , 'width=306,height=256,toolbar=no,location=no,scrollbars=no,resizable=no,left=' + popWidth + ',top=' + popHeight + ',titlebar=no,dependent=yes,hotkeys=no,alwaysRaised=yes');
	var soon='<HTML><HEAD><TITLE>Alert!';
		soon+='</TITLE><link rel="STYLESHEET" type="text/css" href="'+directCall2 +'_winstyle.css">	</HEAD><BODY BGCOLOR=#FFFFFF marginheight="3" marginwidth="3" leftmargin="3" topmargin="3">';
		soon+='<TABLE WIDTH=300 BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD COLSPAN=3><IMG SRC="'+directCall +'images/coming_soon_top.gif" WIDTH=300 HEIGHT=5></TD></TR><TR><TD><IMG SRC="'+directCall +'images/coming_soon_left.gif" WIDTH=16 HEIGHT=161></TD><TD WIDTH=270 HEIGHT=161 align="center" class="ficontent">';
		soon+='<span class="header">Instructions</span><br><br><table><tr><td class="ficontent"><ol><li>Print out the application.</li><li>Complete the application.</li><li>Carry the completed application to your most convenient branch</li></ol></td></tr></table>';
		soon+='<img src="../images/clearpix.gif" width="270" height="1" alt="" border="0">';
		soon+='</TD><TD><IMG SRC="'+directCall +'images/coming_soon_right.gif" WIDTH=14 HEIGHT=161></TD></TR><TR><TD COLSPAN=3><a href="javascript:self.close()"><IMG SRC="'+directCall +'images/coming_soon_bottom.gif" WIDTH=300 HEIGHT=84 border="0"></a></TD></TR></TABLE></BODY></HTML>';
	
	dmx.document.write(soon);
    setTimeout("dmx.focus()",1300);
    setTimeout("dmx.close()",30000);
     
	}	
function warning3(){
	var popWidth = ( ((parseInt(screen.width) / 2))-153)
	var popHeight = (((parseInt(screen.height) / 2))-128)
	
	dmx = window.open('' , '' , 'width=306,height=256,toolbar=no,location=no,scrollbars=no,resizable=no,left=' + popWidth + ',top=' + popHeight + ',titlebar=no,dependent=yes,hotkeys=no,alwaysRaised=yes');
	var soon='<HTML><HEAD><TITLE>Alert!';
		soon+='</TITLE><link rel="STYLESHEET" type="text/css" href="'+directCall2 +'_winstyle.css">	</HEAD><BODY BGCOLOR=#FFFFFF marginheight="3" marginwidth="3" leftmargin="3" topmargin="3">';
		soon+='<TABLE WIDTH=300 BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD COLSPAN=3><IMG SRC="'+directCall +'images/coming_soon_top.gif" WIDTH=300 HEIGHT=5></TD></TR><TR><TD><IMG SRC="'+directCall +'images/coming_soon_left.gif" WIDTH=16 HEIGHT=161></TD><TD WIDTH=270 HEIGHT=161 align="center" class="ficontent">';
		soon+='<span class="header">Instructions</span><br><br><table><tr><td class="ficontent"><ol><li>Print out both forms.</li><li>Complete the forms.</li><li>Carry the completed forms to your most convenient branch</li></ol></td></tr></table>';
		soon+='<img src="../images/clearpix.gif" width="270" height="1" alt="" border="0">';
		soon+='</TD><TD><IMG SRC="'+directCall +'images/coming_soon_right.gif" WIDTH=14 HEIGHT=161></TD></TR><TR><TD COLSPAN=3><a href="javascript:self.close()"><IMG SRC="'+directCall +'images/coming_soon_bottom.gif" WIDTH=300 HEIGHT=84 border="0"></a></TD></TR></TABLE></BODY></HTML>';
	
	dmx.document.write(soon);
    setTimeout("dmx.focus()",1300);
    setTimeout("dmx.close()",30000);
     
	}	    











