

function showWarning(url){
var content = new Array();
var index = 0;
content[index++] = "<h2>Third Party Site Disclaimer</h2>By accessing the noted link you will be leaving Liberty Federal Savings Bank's website and entering a website hosted by another party. Liberty Federal Savings Bank 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 Liberty Federal Savings Bank'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 Liberty Federal Savings Bank's.";
content[index++] = "<br /><br /><br />";
content[index++] = "<div align=\"center\"><a href=\"javascript:void('0');\" onclick=\"window.open('"+url+"');document.getElementById('ex_dis').style.visibility = 'hidden' \">Continue</a>&nbsp;&nbsp;<a href=\"javascript:void('0');\" onclick=\"document.getElementById('ex_dis').style.visibility = 'hidden' \">Decline</a></div></div>";	
document.getElementById("ex_dis").innerHTML = content.join("");
document.getElementById("ex_dis").style.visibility = "visible";
scrollTo(0, 0);
}


function email_warning(email){


	var content = new Array();
	
	var index = 0;
	
	content[index++] = "<h2>Email Security Warning</h2><br /><p>E-mail messages sent over the Internet are not secure. Please do not include any account or personal information such as social security numbers in the message.</p>";
	
	content[index++] = "<br /><br /><br />";
	
	content[index++] = "<div align=\"center\"><a href=\"mailto:"+ email +"\" onclick=\"document.getElementById('ex_dis').style.visibility = 'hidden'\">Continue</a>  <a href=\"#\" onclick=\"document.getElementById('ex_dis').style.visibility = 'hidden'\">Decline</a></div></div>";  
	
	document.getElementById("ex_dis").innerHTML = content.join("");
	
	document.getElementById("ex_dis").style.visibility = "visible";
	
	scrollTo(0, 0);

}


function checkSize()
{
    var myWidth = 800;
	if( typeof( window.innerWidth ) == 'number' )
	{
		//Non-IE
		myWidth = window.innerWidth;
	}
	else if( document.documentElement && ( document.documentElement.clientWidth ) )
	{
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
	}
	else if( document.body && ( document.body.clientWidth ) )
	{
		//IE 4 compatible
		myWidth = document.body.clientWidth;
	}
    return myWidth;
}



document.write('<div id="ex_dis" style="background-color: #ffffff; font-family: Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: normal; color: #000000; text-align: left; position:absolute; top:125px; left:' + (parseInt(checkSize()/2)-175) + 'px; border: thin solid #1A448E; padding: 15px; visibility: hidden; z-index: 100000; width:350px;"></div>');



// Rollovers jQuery Plugin

// privatize context and provide $ shortcut 
(function($){
	
	/**
	 * Will cause all image tags or input[@type="image"] elements inside of the selected
	 * elements to be made into rollovers if their source contains the string "_off" just
	 * before the image extension.
	 *
	 * @example $('div.rollovers').rollover();
	 * @before <div class="rollover"><img src="products_off.gif"/></div>
	 * @after //when cursor is hovering over the image
	 *        <div class="rollover"><img src="products_on.gif"/></div>
	 * @desc Will cause all <img/> or <input type="image"/> tags with an src attrib which contains
	 *       "_off" to have mouseover and mouseout handlers added that will change the image to
	 *       replace "_off" with "_on" in the image name. The "_off" has to be right before the
	 *       image extension.
	 *
	 * @param Object containing values to override defaults
	 *
	 * @type jQuery
	 * @cat Plugins/Rollovers
	 * @author Paul McLanahan <paul dot mclanahan at diginsite>
	 */
	$.fn.rollovers = function(opts){
		// default options
		var settings = $.extend({
			off : '_off', // string to look for in the src attrib
			on : '_on' // string to replace the off setting with in the src attrib
		},opts || {});
		return this.each(function(){
			var root = this;
			root.opts = $.extend({},settings);
			$('img,input[@type="image"]',this).filter('[@src*="'+root.opts.off+'."]').each(function(){
				el = this;
				// using Image objects for both so IE will preload correctly.
				el.overObj = new Image();
				el.outObj = new Image();
				el.outObj.src = el.src;
				el.overObj.src = el.src.replace(new RegExp(root.opts.off+"\.([a-z]{3,4})$",'i'),root.opts.on+".$1");
			}).hover(
				function(){ // mouseover
					this.src = this.overObj.src;
				},
				function(){ // mouseout
					this.src = this.outObj.src;
				}
			);
		});
	};

})(jQuery);

$(function(){
	$('.rollover').rollovers();
})

