function showLeaveSiteWarning(str_URL, bol_newWindow, str_message)
{
	alert (str_message);

	if(bol_newWindow == '' || bol_newWindow == 'false')
	{
		document.location.href=str_URL;
	}else{
		splashWin = window.open(str_URL,'newWindow', 'fullscreen=0,toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1');
	}

}

function openGlossaryWindow(str_word, str_currentLevel)
{
	splashWin = window.open(str_currentLevel + 'library/scripts/glossaryEngine.asp?word=' + str_word,'glossary', 'width=200,height=200,fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1');
}

function loadDocument()
{
	var useLargeFonts = GetCookie('useLargeFonts');

	if(useLargeFonts != null) {
		if(useLargeFonts=="false")
			setLargeFonts(false);
		else
			setLargeFonts(true);
	}
	else{
		setLargeFonts(true);
	}
}

function setLargeFonts(disabled)
{
	var ss = document.getElementById("style" + largeFontStyleID + "O");
	
	ss.disabled = disabled;

	//SetCookie('fonttextsize','default',null,'/')
	SetCookie('useLargeFonts',disabled,5);
}

function SetCookie (name,value,days)
{
    if (days) {
    var date = new Date();
    date.setTime(date.getTime()+(days*24*60*60*1000));
    var expires = "; expires="+date.toGMTString();
  }
  else expires = "";
  document.cookie = name+"="+value+expires+"; path=/";
}

function GetCookie (name)
{
  var arg = name + "=";
  var alen = arg.length;
  var clen = document.cookie.length;
  var i = 0;
  while (i < clen) {
    var j = i + alen;
    if (document.cookie.substring(i, j) == arg)
      return getCookieVal (j);
    i = document.cookie.indexOf(" ", i) + 1;
    if (i == 0) break; 
  }
  return null;
}

function getCookieVal (offset)
{
  var endstr = document.cookie.indexOf (";", offset);
  if (endstr == -1)
    endstr = document.cookie.length;
  return unescape(document.cookie.substring(offset, endstr));
}

try{
	if(alternateStyleSheets)
		loadDocument();
}
catch(e){}

function mouseOver(obj){
	obj.src = obj.str_imageOverFileName
}

function mouseOut(obj){
	obj.src = obj.str_imageFileName
}

