
$(document).ready(function() {

	// Customer Logged In OR Logged Out
	if (loggedIn) {
		$(".logged-in").show();
		$(".logged-out").hide();
		// Update all URLS to become SSL if logged in
		$("a[href^='http://alpma.businesscatalyst.com'], a[href^='http://alpma.businesscatalyst.com']").each(function() {
			this.href = this.href.replace(/^http:\/\/w*\.*alpma\.businesscatalyst\.com/, "https://alpma.worldsecuresystems.com");
		});
	} else {
		$(".logged-in").hide();
		$(".logged-out").show();
	}
	
});

