//client stuff

function addPageTools()
{
var imgPath = '/imgs/icons/';
	$("#Breadcrumbs").after("<div id=\"PageTools\">" +
		"<h2 class=\"Hide\">Page Tools</h2>" +
		"<ul>" +
			"<li class=\"Print\">" +
				"<a href=\"#\">Print Page</a>" +
			"</li>" +
			"<li class=\"Email\">" +
				"<a href=\"#\">Email Page</a>" +
			"</li>" +
		"</ul>" +
	"</div>");	

	var clientDomainName = '[clientDomainName]';
	var clientSiteName = '[clientSiteName]';
	var titleEl = document.getElementsByTagName('title')[0];
	var currentPageTitle = "";
	if (titleEl.text)
	{
		currentPageTitle = escape(titleEl.text);
	}
	else
	{
		currentPageTitle = escape(title.data);
	}
	var currentPageUrl = document.location;
	var emailSubject = clientDomainName + ": " + currentPageTitle;
	var emailHref = "mailto:?subject=" + emailSubject + "&body=I thought you would be interested in a page on the " + clientSiteName + " Web site: " + currentPageTitle + " - " + currentPageUrl;
	$("li.Email a").attr({ href: emailHref});
	$("li.Print a").click(function() { print(); return false; });
}
function addTextSizer()
{
	var imgPath = '/imgs/icons/';
	var theHref = 'href="#"';
	$("#Breadcrumbs").after("<div id=\"TextSizer\" class=\"ClearFix\"><div>" +
			"<h2 class=\"Hide\">Text Size</h2>" +
			"<ul>" +
				"<li>" +
					"<a class=\"Normal\"" + theHref + "><img src=\"" + imgPath + "small_font.gif\" alt=\"Small Font Size\" height=\"20\" width=\"18\" /></a>" +
				"</li>" +
				"<li>" +
					"<a class=\"Large\"" + theHref + "><img src=\"" + imgPath + "medium_font.gif\" alt=\"Medium Font Size\" height=\"20\" width=\"18\" /></a>" +
				"</li>" +
				"<li>" +
					"<a class=\"X-Large\"" + theHref + "><img src=\"" + imgPath + "large_font.gif\" alt=\"Large Font Size\" height=\"20\" width=\"18\" /></a>" +
				"</li>" +
			"</ul>" +
		"</div></div>");
	$("a.Normal").click(function() { setFontSize('normal'); return false; });
	$("a.Large").click(function() { setFontSize('large'); return false; });
	$("a.X-Large").click(function() { setFontSize('x-large'); return false; });
}
$(document).ready(function(){addPageTools();});
$(document).ready(function(){addTextSizer();});

function addExtras()
{
// Home page
$('#Home #Col1 .cmspanel').wrapInner("<div class=\"InsideWrapper\"></div>");
$('.cmspanel .InsideWrapper .ContentSlider').parent(".InsideWrapper").addClass("ContentSliderDec");
$('.cmspanel .ContentSliderDec').parent(".cmspanel").addClass("ContentSliderWrapper");
// I Want To Panel Styling for Interior
$('.cmspanel .IWantTo').parent(".cmspanel").wrap("<div class=\"IWantToDec1\"></div>");
$('.cmspanel .IWantTo').parent(".cmspanel").wrap("<div class=\"IWantToDec2\"></div>");
$('.cmspanel .IWantTo').parent(".cmspanel").addClass("IWantToDec3");
//Removes banner area if empty (avoid white space in IE)
$('#Banner:empty').remove();
}

$(document).ready(function(){addExtras();});