$(document).ready(
	function()
	{
		$(".management_wrapper").addClass("js");
		$(".management_wrapper").each(function(){
		$(this).clone().insertAfter(this).addClass('pop');
	 });
	
	$('body').prepend('<div id="leavesite" style="display:none;"><h3>You clicked on an external link!</h3><p><strong>By accessing the noted link you will be leaving BankMeridian&lsquo;s website and entering a website hosted by another party.</strong> Although BankMeridian has 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 BankMeridian&rsquo;s website. We encourage you to read and evaluate the privacy and security policies on the site you are entering, which may be different than those of BankMeridian. </p><p>Do you want to go to <strong id="continuetitle"></strong>?</p><p><a href="#" style="font-size:16px; font-weight:bold;" id="continuelink">Yes, Please Continue.</a></p><p>or press the <code>ESC</code> key to cancel.</p></div>');
	$("a[target='_blank']").attr("rel","external");
	$("a[rel='external']").each(function() {
		$(this).addClass('thickbox');
		$(this).attr("alt", $(this).attr("href"));
		$(this).attr("href", "#TB_inline?height=350&width=400&inlineId=leavesite");
	});

	$("a[rel='external']").click(function(){
		var linkPath = $(this).attr("alt");
		var linkTitle = $(this).attr("title");
		if(linkTitle==""){linkTitle=linkPath;}
		$("#continuelink").attr("href", linkPath);
		$("#continuetitle").text(linkTitle);
	});


	
	}
);