$(function(){
	if ( $("#SideNav ul li").length == 0 ) {
		$("#SideNav").hide();
	}
	
	$("table.data tr:even").css("background-color", "#E0DED1");
	$("table.data tr:last-child td").css("border-top", "1px solid #a19d91");
	$("table.data tr:last-child td").css("padding-top", "5px");
 	$("table.data2 tr:odd").css("background-color", "#E0DED1");
	
	
	str=location.href;
	
	if (str.search("client-resources") > 0) {
	    $("#UL_root li a.on").removeClass("on");
	}
	
	if (str.search("contact-us") > 0) {
        $("#UL_level2").hide();
        $("#UL_root").height("40px");
	}
	
	if (str.search("news") > 0) {
        $("#UL_level2").hide();
        $("#UL_root").height("40px");
	}
	
	if (str.search("client-log-in") > 0) {
	    $("#UL_root li a.on").removeClass("on");

	$("#UL_level2").hide();
        $("#UL_root").height("40px");
	}



$("a").click(function() {
test_if_local = this.href.search("greatplainstrust.orajen.dev");
test_if_local2 = this.href.search("greatplainstrust.orajen.com");
test_if_local3 = this.href.search("greatplainstrust.com");

if (test_if_local == -1 && test_if_local2 == -1 && test_if_local3 == -1) {

if ($(this).attr("title")) {
	return(confirm("You are now leaving the Great Plains Trust website, and entering the "+$(this).	attr("title")+" website. Thank you for visiting. Click the ok button below to continue."));
} else {
	return(confirm("You are now leaving the Great Plains Trust website, and entering another website. Thank you for visiting. Click the ok button below to continue."));
}
}
return true;
});

	
});


