try {
	var jq = $.noConflict();
} catch ( e ) {
	alert(e);
}

jq(document).ready(function () {

	jq("#header-utilinks a").attr("href", "#").click(function () {
		return false;
	});

	/**
	 * Search Form Events
	 */
	jq("#sub-navigation .t").focus(function () {
		if (this.value.toLowerCase() == "search our education center") {
			this.value = "";
		}
	}).blur(function () {
		if (this.value.replace(/[\s]+$/, "") == "") {
			this.value = "Search our Education Center";
		}
	});

	jq("#sub-navigation form").submit(function () {
		window.location = "http://" + document.location.host + "/?s=" + escape(jq(this).find("[name=s]").val());
		return false;
	});

	jq(".article-links .sharelink").click(function () {
		try {
			return addthis_open(this, "", window.location.href, document.title);
		} catch ( e ) {};
	}).mouseout(function () {
		try {
			return addthis_close();
		} catch ( e ) {};
	});

	jq(".article-links .printlink").click(function () {
		this.target = "_blank";
	});

});

function fnShowPageInOverlay ( url ) {
	alert(url);
}

function fnBookmarkPage ( url, title ) {
	if (window.sidebar) {
		window.sidebar.addPanel(title, url, "");
	} else if (document.all) {
		window.external.AddFavorite(url, title);
	}
	return false;
}

function fnFeedback () {
	void(0);
}

function fnFixFooter () {
}

/*jq("#dhctbl .footer.footer-bold a").click(function () {
	var mw = window.open(this.href, 'mw', 'toolbar=1,location=1,status=1,scrollbars=1,width=' + (screen.availWidth * .8) + ",height=" + screen.availHeight);
	return false;
});*/