function resetFontSize() {
	//	Grab the value stored in the cookie	
	var initialFontSizeFromCookie = GetCookie("initialFontSize");

	//	Is there a cookie and does it have a value?
	if (initialFontSizeFromCookie == null || initialFontSizeFromCookie.length == 0) {
	//	If not, don't do anything
	} else {
	//	If there *is* something there, set the body's default font size to the cookie value
		changeTextSize(initialFontSizeFromCookie);
	}
}

/*	Assemble the text to be inserted into the font resize area to replace the link	*/
var engFontResize = 'Change Text Size<br />';
engFontResize += '<span id="font-resize-links"><a href="#" title="Small Font" onclick="changeTextSize(\'70%\'); return false;" class="ts-small">S</a>&nbsp;&nbsp;';
engFontResize += '<a href="#" title="Medium Font" onclick="changeTextSize(\'80%\'); return false;" class="ts-medium">M</a>&nbsp;&nbsp;';
engFontResize += '<a href="#" title="Large Font" onclick="changeTextSize(\'90%\'); return false;" class="ts-large">L</a>&nbsp;&nbsp;';
engFontResize += '<a href="#" title="Extra Large Font" onclick="changeTextSize(\'100%\');return false;" class="ts-xlarge">XL</a></span>';


var freFontResize = 'Modifier la taille du&nbsp;texte<br />';
freFontResize += '<span id="font-resize-links"><a href="#" title="Petit" onclick="changeTextSize(\'70%\'); return false;" class="ts-small">P</a>&nbsp;&nbsp;';
freFontResize += '<a href="#" title="Moyen" onclick="changeTextSize(\'80%\'); return false;" class="ts-medium">M</a>&nbsp;&nbsp;';
freFontResize += '<a href="#" title="Grand" onclick="changeTextSize(\'90%\'); return false;" class="ts-large">G</a>&nbsp;&nbsp;';
freFontResize += '<a href="#" title="Très grand" onclick="changeTextSize(\'100%\');return false;" class="ts-xlarge">TG</a></span>';


//	Replaces the content of the <li> that links to the page with help on changing the browse setting with the actual change font size tool
function replaceFontResizeTool() {
	if (document.createElement && document.getElementById && document.getElementById('font-resize-tool')) {
		if(window.location.href.indexOf("/english/") > 1) {
			document.getElementById('font-resize-tool').innerHTML = engFontResize;
		} else if(window.location.href.indexOf("/francais/") > 1) {
			document.getElementById('font-resize-tool').innerHTML = freFontResize;
		}
	}
}

//	This changes the font size
function changeTextSize(size) {
	document.body.style.fontSize = size;
	var tempAdjustValue = 8000/(parseFloat(size)) + "%";
	//	Now, need to re-adjust the size of the elements within the tool to reflect their actual size.
	document.getElementById('font-resize-links').style.fontSize = tempAdjustValue;
	SetCookie("initialFontSize",size,null, "/")
}
