$(document).ready(function(){
	// This is here because of the large background images in some of the right columns.
	// This will remove the horizontal scrollbars from computers with a screen width of 1024 or greater.
	if (screen.width >= 1024)	$("body").css({"overflow-x":"hidden"});

	// hides default text in newsletter form
	$("#newsletter").focus(function(){
		this.val('');
	});

	// Print page
	$("#print").click(function(e){
		e.preventDefault();
		window.print();
	});

	// Options toolbar to increase font size	
	$("#small-text").click(function(e){
		e.preventDefault();
		$("body").css({ fontSize: "14px" });
	});

	$("#medium-text").click(function(e){
		e.preventDefault();
		$("body").css({ fontSize:"16px" });
	});

	$("#large-text").click(function(e){
		e.preventDefault();
		$("body").css({ fontSize:"18px" });
	});

	// Adds dropdown functionality that works cross-browser.
	$("#mainNav li").hover(function(){
		$(this).addClass("on");
	},function(){
		$(this).removeClass("on");
	});

	if ($('#cforms2form').length > 0) {
		if ($('div#usermessage2a.success').length > 0) {
			$('#cforms2form > *').hide();
		}
	}

});