$(document).ready(function(){
	var currSize = 10;
	if($.cookie('fontSizer') != null) {
		currSize = $.cookie('fontSizer');
		if (currSize == 12)
			$('body').css('font-size','75%');
		else if (currSize == 14)
			$('body').css('font-size','87.5%');
	}
	$('#textSizePlus').click(function(event){
		event.preventDefault();
		if (currSize == 10) {
			currSize = 12;
			$('body').css('font-size','75%'); //=12px baseline;
		}
		else if (currSize == 12) {
			currSize = 14;
			$('body').css('font-size','87.5%'); //=14px baseline;
		}
		$.cookie('fontSizer', currSize, { expires: 999 });
	})
	$('#textSizeMinus').click(function(event){
		event.preventDefault();
		if (currSize == 14) {
			currSize = 12;
			$('body').css('font-size','75%'); //=12px baseline;
		}
		else if (currSize == 12) {
			currSize = 10;
			$('body').css('font-size','62.5%'); //=14px baseline;
		}
		$.cookie('fontSizer', currSize, { expires: 999 });
	})
	
	/* This file is ubiquitous; attaching print here */
	$('#printPage').click(function(event){
		event.preventDefault();
		print();
	})

	$('#accountAgreement').click(function(event){
		event.preventDefault();
		window.open("http://metlifebank.com/AccountTerms.do","Link","toolbar=no,location=0,directories=0,status=0,menubar=yes,scrollbars=yes,resizable=yes,width=640,height=480,left=100,top=100");
	})
	$('#atm').click(function(event){
		event.preventDefault();
		window.open("http://metlifebank.com/ATM.do","Link","toolbar=no,location=0,directories=0,status=0,menubar=yes,scrollbars=yes,resizable=yes,width=640,height=480,left=100,top=100");
	})
	$('#atmNav').click(function(event){
		event.preventDefault();
		window.open("http://metlifebank.com/ATM.do","Link","toolbar=no,location=0,directories=0,status=0,menubar=yes,scrollbars=yes,resizable=yes,width=640,height=480,left=100,top=100");
	})

});
