// JavaScript Document
if(typeof(Shadowbox)!="undefined"){
	Shadowbox.init({
		skipSetup: true,
		players:    ["iframe"]
	});
}
$(document).ready(function() {
	$('a[rel=external]').attr("target","_blank");
	$('a[rel=external]').each(function(){ $(this).click(function(){ checkDisclosure($(this).attr("href")); return false; }) });
/*
	$('a[rel=external]').click(function() {
		alert("hi");
		return !window.open($(this).attr("href"));
	});
*/
});
function message1(website)	{
	if (confirm("You are about to leave the Collinsville Savings Society website. CSS is not responsible for the content or views of any other site. Please make youself aware of any third party website privacy policies prior to disclosing any personal information.")){
		window.open(website);
	}
}
function checkDisclosure(href){
	Shadowbox.open({
		content:    "/includes/check-disclosure.inc.php?href="+href,
		player:     ["iframe"],
		title:      "",
		height:     315,
		width:      414
	});
}
