try {
	wlsUsername; wlsPassword;
} catch (exception) {
	window.alert("Error: javascript variables wlsUsername and wlsPassword must be set.");
}
var showPaymentLogin;
var urlBase = "http://www.childcareresource.com/soc/";
//var urlBase = "http://jackal.gotdns.com/";

if (document.cookie == "") document.cookie = "hasCookies=true";
if (document.cookie == "") {
	window.onload = function() {
		var noCookiesDiv = document.getElementById("noCookies");
		if (noCookiesDiv) noCookiesDiv.style.display = "";
	}
} else {
	var flashvars = { 
		localeChain: "en_US",
		username: wlsUsername || "",
		password: wlsPassword || "",
		showPaymentLogin: showPaymentLogin,
		embeddedPlayer: true
	};
	var params = {
		bgcolor: "#ffffff",
		quality: "high",
		allowScriptAccess: "always",
		allowFullScreen: "true"
	};
	var attributes = {};
	
	var swfUrl = urlBase + "swf/index.swf?ver=19";

	swfobject.embedSWF(
		swfUrl, 
		"wlssocDiv",
		"100%", 
		"100%", 
		"9.0.115", 
		urlBase + "swf/expressInstall.swf",
		flashvars,
		params,
		attributes
	);
	
	function loadEventHandler() {
		var contentDiv = document.getElementById("wlssocDiv");
		if (contentDiv) contentDiv.style.display = "";
		//BrowserHistory.flexApplication = swfobject.getObjectById("wlssocDiv");
	}
	swfobject.addLoadEvent(loadEventHandler);
}
