<!--

var is_input = document.URL.indexOf('?');
var varName = true;
var listOfVar = '';
var listOfVal = '';
var currVar = '';
var currVal = '';
var search = 'noPreviousSearch';
if (is_input != -1)
{
	// Create variable from ? in the url to the end of the string
	addr_str = document.URL.substring(is_input+1, document.URL.length);
	for (count = 0; count < addr_str.length; count++)
	{
		if (addr_str.charAt(count) == "&")
		{
			varName = true;
			listOfVal = listOfVal + ',';
			if (currVar == 'search') {
				var search = currVal
			}
			currVar = '';
			currVal = '';
		} else {
			if (addr_str.charAt(count) == "=") {
				varName = false;
				listOfVar = listOfVar + ',';
			} else {
				if (varName) {
					currVar = currVar + addr_str.charAt(count);
					listOfVar = listOfVar + addr_str.charAt(count);
				} else {
					currVal = currVal + addr_str.charAt(count);
					listOfVal = listOfVal + addr_str.charAt(count);
				}
			}
		}
	}
	if (currVar == 'search') {
		var search = currVal
	}
}

if (GetCookie('search') == null || GetCookie('search') == 'null') {
	SetCookie ('search',search)
}

function setScrn(){
	var scrnSize=GetCookie('scrnSize')
	chgScrn(scrnSize)
}
//Screen Size//
function chgScrn(scrnSize) {
	if (scrnSize=='bg'){
		document.getElementById('bodyWidth').className='bScrn';
		document.getElementById('main').className='none';
		document.getElementById('sidebar').className='none';
		//print();//
		if (document.getElementById('elfootnotesChild')) {
			if (document.getElementById('elfootnotesChild').style.display == "none") {
				document.getElementById('elfootnotesChild').style.display = "block";
				
				//expandIt('elfootnotes');
			}
		}
	}
	else{
		document.getElementById('bodyWidth').className='sScrn';
		document.getElementById('main').className='scroll';
		document.getElementById('sidebar').className='scroll';
		if (document.getElementById('elfootnotesChild')) {
			if (document.getElementById('elfootnotesChild').style.display == "block") {
				document.getElementById('elfootnotesChild').style.display = "none";
				//expandIt('elfootnotes');
			}
		}
	}
	/*set a cookie to remember*/
	SetCookie ('scrnSize',scrnSize)
}
function showBg(){
	document.getElementById('scrnLnkSm').className='hide';
	document.getElementById('scrnLnkBg').className='show';
	
}
function showSm(){
	document.getElementById('scrnLnkSm').className='show';
	document.getElementById('scrnLnkBg').className='hide';
}
function writeScrnLinks(){
	document.write('<span id=scrnLnkBg class=show><a class=navlinkL href="javascript:chgScrn(\'bg\')" onClick=\"showSm()\"><img src=\"..\/IMG\/PRINTER.GIF\" width=15 height=15 alt=Print border=0  align=absmiddle></a></span>')/*<font color=336699>Big</font>*/
	document.write('<span id=scrnLnkSm class=hide><a class=navlinkL href="javascript:chgScrn(\'sm\')" onClick=\"showBg()\"><img src=\"..\/IMG\/PRINTER.GIF\" width=15 height=15 alt=Print border=0  align=absmiddle></a></span>')/*<font color=336699>Small</font>*/
}
function popGlossary(id) {
	window.name = 'parentWnd';
	newWindow = window.open('popup_glossary.cfm?id='+id,'popGlossary','width=300,height=300,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
	newWindow.focus();
}
function popGlossaryStatic(id) {
	window.name = 'parentWnd';
	newWindow = window.open('GLO' + id + '.HTM','popGlossary','width=300,height=300,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
	newWindow.focus();
}
function popFootNotes(doc_id,language,noteNum) {
	window.name = 'parentWnd';
	newWindow = window.open('FNFRAME.HTM?doc_id=' + doc_id +'&language=' + language+ '&noteNum='+noteNum,'popupFootNotes','width=300,height=500,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,left=0,top=0');
	newWindow.focus();
}
// Standard Bill Dortch's cookie functions
function getCookieVal (offset) {
  var endstr = document.cookie.indexOf (";", offset);
  if (endstr == -1)
    endstr = document.cookie.length;
  return unescape(document.cookie.substring(offset, endstr));
}
function FixCookieDate (date) {
  var base = new Date(0);
  var skew = base.getTime(); // dawn of (Unix) time - should be 0
  if (skew > 0)  // Except on the Mac - ahead of its time
    date.setTime (date.getTime() - skew);
}
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 SetCookie (name,value,expires,path,domain,secure) {
  document.cookie = name + "=" + escape (value) +
    ((expires) ? "; expires=" + expires.toGMTString() : "") +
    ((path) ? "; path=" + path : "") +
    ((domain) ? "; domain=" + domain : "") +
    ((secure) ? "; secure" : "");
}
function DeleteCookie (name,path,domain) {
  if (GetCookie(name)) {
    document.cookie = name + "=" +
      ((path) ? "; path=" + path : "") +
      ((domain) ? "; domain=" + domain : "") +
      "; expires=Thu, 01-Jan-70 00:00:01 GMT";
  }
}


var bV=parseInt(navigator.appVersion);
NS4=(document.layers) ? true : false;
IE4=((document.all)&&(bV>=4))?true:false;
ver4 = (NS4 || IE4) ? true : false;

/*to verify this file is loaded*/
var hasJavaScript=true;
// -->

