var dont_prompt_for_home_page = "";
var bookmarkurl = "http://www.skillcircle.com/";
var bookmarkurl_alt = "http://www.skillcircle.com/index.html?hp";
var bookmarktitle = "SkillCircle.com";

var no_home_page_prompt = 0;

if ((dont_prompt_for_home_page == "Yes") || (skip_home_page)) {
	no_home_page_prompt = 1;
}

if (!no_home_page_prompt && hasCookies) {
	setRunMeLast(promptForHomePage);
}

function promptForHomePage() {
	if (hasCookies) {
		if (isIE && browserVersion >= 5){
			document.body.style.behavior = "url('#default#homepage')"; 

			var been_here_before = getCookie("ASKED_HOMEPAGE");
			if (!been_here_before) {
				if (!document.body.isHomePage(bookmarkurl) && !document.body.isHomePage(bookmarkurl_alt)) {
					var days_to_save_cookie = 90;
					if (isDev) {
						days_to_save_cookie = 1;
					}
					setCookie("ASKED_HOMEPAGE", "1", days_to_save_cookie * 24 * 60 * 60, bookmarktitle.toLowerCase())
					setCookie("ASKED_HOMEPAGE", "1", days_to_save_cookie * 24 * 60 * 60)
					document.body.setHomePage(bookmarkurl_alt);
					if (document.body.isHomePage(bookmarkurl_alt)) {
						setCookie("SET_HOMEPAGE", bookmarkurl_alt, days_to_save_cookie * 24 * 60 * 60, bookmarktitle.toLowerCase())
						setCookie("SET_HOMEPAGE", bookmarkurl_alt, days_to_save_cookie * 24 * 60 * 60)
					}
				}
			}
		} else if (isNav && browserVersion >= 6) {
			//if (window.sidebar && window.sidebar.addPanel) {
			if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) {
				var been_here_before = getCookie("ASKED_HOMEPAGE");
				if (!been_here_before) {
					var days_to_save_cookie = 90;
					if (isDev) {
						days_to_save_cookie = 1;
					}
					setCookie("ASKED_HOMEPAGE", "1", days_to_save_cookie * 24 * 60 * 60, bookmarktitle.toLowerCase())
					setCookie("ASKED_HOMEPAGE", "1", days_to_save_cookie * 24 * 60 * 60)
					window.sidebar.addPanel(bookmarktitle, bookmarkurl_alt, "");
					setCookie("SET_HOMEPAGE", bookmarkurl_alt, days_to_save_cookie * 24 * 60 * 60, bookmarktitle.toLowerCase())
					setCookie("SET_HOMEPAGE", bookmarkurl_alt, days_to_save_cookie * 24 * 60 * 60)
				}
			}
		}
	}
}
