/*window.onresize=resize;
function resize(){
self.location.href=self.location.href;
}*/

// for Cool Menus
if(window.event + "" == "undefined") event = null; function showMenu(){return false}; function mout(){return false}; function dummyObject() {this.mout=mout}; oM = new dummyObject();



function stopError() {
 // return true;
}

window.onerror = stopError;


var dir="diFiles/skins/default";

var imgdir ="diFiles/skins/default";

function makeNavImage(name,width,height){
this.name_on="nav_" + name +"_on.gif";
this.name_off="nav_" + name +"_off.gif";
this.width=width;
this.height=height;
this.newimage_on = new Image(width,height);
this.newimage_on.src = dir + '/images/' + this.name_on;
this.newimage_off = new Image(width,height);
this.newimage_off.src = dir + '/images/' + this.name_off;
}

var nav_heights=28;

var navitems = new Array();
navitems["savings"] = new makeNavImage("savings",79,nav_heights);
navitems["checking"] = new makeNavImage("checking",82,nav_heights);
navitems["investments"] = new makeNavImage("investments",106,nav_heights);
navitems["loans"] = new makeNavImage("loans",68,nav_heights);
navitems["credit"] = new makeNavImage("credit",104,nav_heights);
navitems["business"] = new makeNavImage("business",134,nav_heights);
navitems["online"] = new makeNavImage("online",117,nav_heights);

function img_act(imgName){

document[imgName].src =  navitems[imgName].newimage_on.src;
}

function img_inact(imgName){
window.status = "";
document[imgName].src =  navitems[imgName].newimage_off.src;
}


function wcInternalPopup(url, height, width){
    var wide=width;
    var tall=height;
    var halfwide = (wide/2);
    var halftall = (tall/2);
    var pWidth = ( ((parseInt(screen.width) / 2)) - halfwide);
    var pHeight = (((parseInt(screen.height) / 2)) - halftall);
    var features = 'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width='+wide+',height='+tall+',top='+pHeight+',left='+pWidth;
    window.open(url,'internalpopup',features);
} 

function wcPopup(url, height, width, disclaimer){
    var wide=width;
    var tall=height;
    var halfwide = (wide/2);
    var halftall = (tall/2);
    var pWidth = ( ((parseInt(screen.width) / 2)) - halfwide);
    var pHeight = (((parseInt(screen.height) / 2)) - halftall);
    var features = 'toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,width='+wide+',height='+tall+',top='+pHeight+',left='+pWidth;
    window.open(url,'externalpopup',features);
} 

/************************************************************************************************************
* This function is used in the onclick of the a tag to display the external site warning. 
* @param msg - Integer specifying the which message to display.
* @param lk - The a link object
* Usage: <a href="http://wwww.mysite.com" onclick="return displayThirdPartyAlert(1,this);">My Site</a>
**************************************************************************************************************/
function displayThirdPartyAlert(msg,lk){
	var description = lk.innerHTML;
	if(description.indexOf('alt="') != -1){
		var x = description.indexOf('alt="')+5;
		var temp = description.substring(x);
		description = temp.substring(0,temp.indexOf("\""));
	}
	showWarning(lk.href, description, lk.target, msg)
	return false;
}

/************************************************************************************************************
* This function is used in the href of the a tag to display the external site warning. 
* @param lk - The url of the site to be opened
* @param desc - The description of the site to be opened, i.e. the name of the site.
* @param target - Allows for the window to opened in a new window
* @param msg - Integer specifying the which message to display.
* Usage: <a href="javascript:('http://wwww.mysite.com');">My Site</a>
**************************************************************************************************************/
function showWarning(lk, desc, target, msg){
	desc = (desc) ? desc : "Third Party Site";
	target = (target) ? target : "";
	msg = (msg) ? msg : 0;
	
	var messages = new Array(6);
	messages[0] = '<h2 style="margin-left:75px;">Third Party Site Disclaimer</h2><br/>You are leaving Landmark Credit Union\'s website. Links that may be accessed via <strong>' +desc+ '</strong> are for the convenience of informational purposes only. Any products and services accessed through <strong>'+ lk +'</strong> are not provided or guaranteed by Landmark Credit Union. The site you are about to visit may have a privacy policy that is different than Landmark Credit Union\'s. Please review their privacy policy. Landmark Credit Union does not endorse the content contained in these sites, nor the organizations publishing those sites, and hereby disclaims any responsibility for such content.';
	
	messages[1] = '<h1 style="text-align:center;">Third Party Site Disclaimer</h1><br/>By accessing the noted link you will be leaving your financial institution\'s website and entering a website hosted by another party. Your financial institution has not approved this as a reliable partner site. Please be advised that you will no longer be subject to, or under the protection of, the privacy and security policies of your financial institution\'s website. We encourage you to read and evaluate the privacy and security policies of the site you are entering, which may be different than those of your financial institution\'s.';
	
	messages[2] = '<h1 style="margin-left:100px;">Non-Secure Email Disclaimer</h1><br/>As a convenience to you and to provide additional means of communications between you and Landmark Credit Union, you can use electronic mail (e-mail) to contact the bank regarding general inquiries and general access and maintenance issues. However communication via e-mail is not considered secure, and you agree that you will not use e-mail to transmit sensitive and/or confidential information such as account numbers, user IDs, or PINs, or to request or authorize any financial transaction.';
	
	messages[3] = '<h1>Third Party Site Disclaimer</h1><br/>You are leaving Landmark Credit Union\'s website. Links that may be accessed via <strong>' +desc+ '</strong> are for the convenience of informational purposes only. Any products and services accessed through <strong>'+ lk +'</strong> are not provided or guaranteed by Landmark Credit Union. The site you are about to visit may have a privacy policy that is different than Landmark Credit Union\'s. Please review their privacy policy. Landmark Credit Union does not endorse the content contained in these sites, nor the organizations publishing those sites, and hereby disclaims any responsibility for such content.';
	
	messages[4] = '<h1>Third Party Site Disclaimer</h1><br/>You are leaving Landmark Credit Union\'s website. Links that may be accessed via <strong>' +desc+ '</strong> are for the convenience of informational purposes only. Any products and services accessed through <strong>'+ lk +'</strong> are not provided or guaranteed by Landmark Credit Union. The site you are about to visit may have a privacy policy that is different than Landmark Credit Union\'s. Please review their privacy policy. Landmark Credit Union does not endorse the content contained in these sites, nor the organizations publishing those sites, and hereby disclaims any responsibility for such content.';
	
	messages[5] = '<h1>Third Party Site Disclaimer</h1><br/>You are leaving Landmark Credit Union\'s website. Links that may be accessed via <strong>' +desc+ '</strong> are for the convenience of informational purposes only. Any products and services accessed through <strong>'+ lk +'</strong> are not provided or guaranteed by Landmark Credit Union. The site you are about to visit may have a privacy policy that is different than Landmark Credit Union\'s. Please review their privacy policy. Landmark Credit Union does not endorse the content contained in these sites, nor the organizations publishing those sites, and hereby disclaims any responsibility for such content.';

	var content = new Array();
	var index = 0;
	content[index++] = messages[msg];
	content[index++] = '<br /><br /><br />';
	content[index++] = '<div align="center"><a href="'+lk+'" class="disclink" target="'+target+'" onclick="document.getElementById(\'ex_dis\').style.display = \'none\'">Continue</a>&#160;&#160;<a href="javascript:void(\'0\');" class="disclink" onclick="document.getElementById(\'ex_dis\').style.display = \'none\'">Decline</a></div></div>';	
	document.getElementById("ex_dis").innerHTML = content.join("");
	document.getElementById("ex_dis").style.display = "block";
	scrollTo(0,0);
}

function openCCAppPlatinum() {
	desc = "Credit Card Disclaimer";
	target = "";
	msg =  0;
	
	
	var content = new Array();
var index = 0;
content[index++] = '<div align="center">';
content[index++] = '<span class="discheader">Landmark Ultra Value VISA&reg; Platinum Disclosures</span>';
content[index++] = ' 	<table border="0" cellpadding="1" cellspacing="2" bgcolor="#4C86F1" width="400">';
content[index++] = ' 		<tr>';
content[index++] = ' 			<td>';
content[index++] = ' 			<table border="0" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC">';
content[index++] = ' 				<tr><td colspan="2" class="discwhitetext" bgcolor="#4C86F1">Designed for those who either carry a balance or pay off their card each month.</td></tr>';
content[index++] = ' 				<TR><td class="discficontent" width="150" valign="top">';
content[index++] = '				<strong>Annual Percentage Rate (APR) for purchases</strong>';
content[index++] = '				</td>	';
content[index++] = '				<td class="discficontent" width="250">';
content[index++] = '				<strong style="font-size: 18pt">0%</strong> fixed introductory rate for the first 180 days from the date your account was opened, then <br><strong style="font-size: 18pt">7.9%</strong> fixed thereafter';
content[index++] = '				</td></tr>';
content[index++] = ' 				<tr><td class="discficontent" valign="top">';
content[index++] = '				<strong>Other APRs: Non-Landmark Balance Transfers</strong>';
content[index++] = '				<br>';
content[index++] = '				<br>';
content[index++] = '				<br>';
content[index++] = '				<br>';
content[index++] = '				<br>';
content[index++] = '				<br>';
content[index++] = '				<strong>Cash Advances</strong>';
content[index++] = '				</td>	 ';
content[index++] = '				<td class="discficontent">';
content[index++] = '				<strong style="font-size: 18pt">1%</strong> fixed introductory rate ';
content[index++] = '                on non-Landmark balance transfers for the first 180 days from the date your account was opened, then<br>';
content[index++] = '				<strong style="font-size: 18pt">7.9%</strong> fixed thereafter <br>';
content[index++] = '				<strong style="font-size: 18pt">7.9%</strong> fixed ';
content[index++] = '				</td></tr>';
content[index++] = '				<tr>';
content[index++] = '				<td class="discficontent" valign="top">';
content[index++] = '				<strong>Default Rate</strong>';
content[index++] = '				</td>  ';
content[index++] = '				<td class="discficontent">';
content[index++] = '				18% Default rate effective starting with billing date following default. 18% APR remains until account has been paid on time for 3 consecutive billing periods.';
content[index++] = '				</td></tr>';
content[index++] = ' 				<tr>';
content[index++] = '				<td class="discficontent">';
content[index++] = '				<strong>Grace period for purchases (No grace period for cash advances.)</strong>';
content[index++] = '				</td>  ';
content[index++] = '				<td class="discficontent">';
content[index++] = '				<strong>25 days</strong> from the billing date provided you have paid your balance in full by the due date.';
content[index++] = '				</td></tr>';
content[index++] = ' 				<tr>';
content[index++] = '				<td class="discficontent">';
content[index++] = '				<strong>Balance calculation method for purchases or cash advances</strong></td>  ';
content[index++] = '				<td class="discficontent">';
content[index++] = '				Average Daily Balance (Including New Purchases)';
content[index++] = '				</td></tr>';
content[index++] = '				<tr>';
content[index++] = '				<td class="discficontent">';
content[index++] = '				<strong>Annual Fee</strong>';
content[index++] = '				</td>  ';
content[index++] = '				<td class="discficontent">';
content[index++] = '				<strong>None</strong>';
content[index++] = '				</td></tr>';
content[index++] = '				<tr>';
content[index++] = '				<td class="discficontent">';
content[index++] = '				<strong>Cash Advance Fees</strong>';
content[index++] = '				</td>  ';
content[index++] = '				<td class="discficontent">';
content[index++] = '				$2 or 2% of the amount of the cash advance up to a maximum of $5 per cash advance.';
content[index++] = '				</td></tr>';
content[index++] = '				<tr>';
content[index++] = '				<td class="discficontent">';
content[index++] = '				<strong>Minimum Finance Charge</strong>';
content[index++] = '				</td>  ';
content[index++] = '				<td class="discficontent">';
content[index++] = '				$.50';
content[index++] = '				</td></tr>';
content[index++] = '				<tr>';
content[index++] = '				<td class="discficontent">';
content[index++] = '				<strong>Over-credit-limit fee</strong></td>  ';
content[index++] = '				<td class="discficontent">';
content[index++] = '				$10</td></tr>';
content[index++] = '				<tr>';
content[index++] = '				<td class="discficontent">';
content[index++] = '				<strong>Late payment fee</strong></td>  ';
content[index++] = '				<td class="discficontent">';
content[index++] = '				$15';
content[index++] = '				</td></tr>';
content[index++] = '				<tr>';
content[index++] = '				<td class="discficontent">';
content[index++] = '				<strong>International Service Assessment Fee</strong></td>  ';
content[index++] = '				<td class="discficontent">';
content[index++] = '				1% of Transaction Amount</td></tr>';
content[index++] = ' 			</table>';
content[index++] = ' 			</td>';
content[index++] = ' 		</tr>';
content[index++] = ' 	</table>';
content[index++] = ' 	<table width="400" border="0">';
content[index++] = '		<tr>';
content[index++] = '			<td class="discdisclaimer">Card cost information described in this disclosure is accurate as of ';
content[index++] = '            April, 2005 and may have changed after that date. To find out any ';
content[index++] = '			changes, call (262) 796-4500,or write:  <strong>Landmark Credit Union</strong>, Credit Card Dept., Box 14308,Milwaukee, WI 53214-0308.</td>';
content[index++] = '		</tr>';
content[index++] = '	</table>';
content[index++] = '	<br>';
content[index++] = '	<br>';
content[index++] = '	';
content[index++] = '	<table width="400" border="0">';
content[index++] = '		<tr>';
content[index++] = '			<td class="discficontent">By clicking the "I Accept" button below, you are acknowledging that you have read the preceding disclosures and that you agree to them.</td>';
content[index++] = '		</tr>';
content[index++] = '	</table>';
content[index++] = '</div>';

	content[index++] = '<br /><br /><br />';
	content[index++] = '<div align="center"><a href="https://www.landmarkcu.com/home/?pageLabel=app.app_creditcard" class="disclink" target="'+target+'" onclick="document.getElementById(\'ex_dis\').style.display = \'none\'">Continue</a>&#160;&#160;<a href="javascript:void(\'0\');" class="disclink" onclick="document.getElementById(\'ex_dis\').style.display = \'none\'">Decline</a></div></div>';	
	document.getElementById("ex_dis").innerHTML = content.join("");
	document.getElementById("ex_dis").style.display = "block";
	scrollTo(0,0);
	
}

function openIB(){
    showMessage();
}

function showMessage(){
    var content = new Array();
	var index = 0;
	content[index++] = '<h1>Coming Soon!!</h1><br/><p>You are attempting to access a page or product that is not yet available.</p>  <p>Please check back often. It will be available soon.</p><p>Thank you!</p>';
	content[index++] = '<br /><br /><br />';
	content[index++] = '<div align="center"><a href="javascript:void(\'0\');" onclick="document.getElementById(\'ex_dis\').style.display = \'none\'"><strong>Close</strong></a></div></div>';	
	document.getElementById("ex_dis").innerHTML = content.join("");
	document.getElementById("ex_dis").style.display = "block";
	scrollTo(0,0);

}

function openWin(url,name,width,height,options){
var n = name;
var w = width;
var h = height;
var o = options;
n = (n==null)?"_blank":n;
w = (isNaN(w) || w==null)?700:w;
h = (isNaN(h) || h==null)?600:h;
o = (o==null)?"toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1":(o.indexOf(",")!=0)?","+o:o;

var posX = Math.ceil((parseInt(screen.width) - w) / 2);
var posY = Math.ceil((parseInt(screen.height) - h) / 2);
aWindow = window.open(url,n,"width=" + w + ",height=" + h + ",left=" + posX + ",top=" + posY + o);
}


function open_win(url)
{
openWin(url,"application",700,600,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,status=1");
}

function open_platinum(){
openDisc("/home/diFiles/skins/default/misc/visa_platinum_disc.html?location=https://www.landmarkcu.com/home/app/creditcard");
} 

function open_gold(){
openDisc("/home/diFiles/skins/default/misc/visa_gold_disc.html?location=https://www.landmarkcu.com/home/app/creditcard");
} 

function open_discs()
{
openDisc2("/home/diFiles/skins/default/misc/visa_gold_disc2.html?location=https://www.landmarkcu.com/home/app/creditcard");
//openDisc("diFiles/content/visa_platinum_disc.html?location=javascript:void(0)");
}

function open_discs_student()
{
openDisc2("/home/diFiles/skins/default/misc/visa_student_disc.html?location=https://www.landmarkcu.com/home/app/creditcard");
//openDisc("diFiles/content/visa_platinum_disc.html?location=javascript:void(0)");
}

function open_discs_gold()
{
openDisc2("/home/diFiles/skins/default/misc/visa_gold_disc2.html?location=https://www.landmarkcu.com/home/app/creditcard");

}

function open_discs_platinum()
{
openDisc2("/home/diFiles/skins/default/misc/visa_platinum_disc.html?location=https://www.landmarkcu.com/home/app/creditcard");

}

function open_discs_student()
{
openDisc2("/home/diFiles/skins/default/misc/visa_student_disc.html?location=https://www.landmarkcu.com/home/app/creditcard");

}

function openDisc(page)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 300)
var pHeight = (((parseInt(screen.height) / 2)) - 400)
bWindow = window.open(page,'discwin',"scrollbars=1,toolbar=0,location=0,directories=0,status=0,menubar=0,width=600,height=600,top=" + pHeight + ",left=" + pWidth);
	bWindow = null;
	return;
}

function openDisc2(page)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 300)
var pHeight = (((parseInt(screen.height) / 2)) - 400)
bWindow = window.open(page,'discwin2',"scrollbars=1,toolbar=0,location=0,directories=0,status=0,menubar=0,width=700,height=600,top=" + pHeight + ",left=" + pWidth);
	bWindow = null;
	return;
}

function secRedirect()
{
  if(self.location.href.indexOf('https:')<0)
 {
                       self.location.replace("https://"+self.location.href.substring(7));
}
                                
 

}
/*******Metavante Bill Pay Demo code **********************/
function openBPPDemo()
{
 bWindow=window.open('/bridge/GRP/metavante_flash_demo/index.html','mvdemo','scrollbars=no,menubar=no,status=no,width=770,height=520,left=0,top=0');
     bWindow = null;
     return;
}
/**********End Metavante Bill Pay Demo Code*******************/


//end of file