﻿$(document).ready(function() {
	//replace spaces in the nav with &nbsp; so that IE doesn't break nav items on spaces
	//	$(".secondary-nav li a:contains(' ')").each(function() {
	//		var myText = $(this).html();
	//		myText = myText.replace(/ /g, "&nbsp;");
	//		$(this).html(myText);
	//	});
	//	//replace spaces in the third-nav with &nbsp; so that IE doesn't break nav items on spaces
	//	$(".third-nav li a:contains(' ')").each(function() {
	//		var myText = $(this).html();
	//		myText = myText.replace(/ /g, "&nbsp;");
	//		$(this).html(myText);
	//	});

	//initialize the image rotators on the content pages
	$('#HeaderImageDiv').cycle();

	//hide the dividers on the second/third nav if they're the first character on the line
	//	$("li.separator").each(function() {
	//		var pos = $(this).position();
	//		if (pos.left < 70)
	//			$(this).hide();
	//	});

	//apply padding to content images - no longer used, but included for reference
	//	$(".PageCopy img[style*='left']").each(function() {
	//		$(this).addClass("floatedLeft");
	//	});
	//	$(".PageCopy img[style*='right']").each(function() {
	//		$(this).addClass("floatedRight");
	//	});

	//Forms--------------------------------------------------------------------------------------
	//add required marker to required form fields
	$("div.page-form div.info.required label").append("*");
	//Properly size the file input
	$("input.file-input").attr("size", "13");

	//DropDownMenu----------------------------------------------------------------------------
	//choose whether or not to display the menu based on child pages
	if ($('#menu ul').html() == null)
		$('#menu').hide();
});

