if (screen.width == 800) {document.write('<link rel="stylesheet" type="text/css" href="cssFiles/LOI_800.css">');}
if (screen.width == 819) {document.write('<link rel="stylesheet" type="text/css" href="cssFiles/LOI_2800.css">');}
if (screen.width == 1024) {document.write('<link rel="stylesheet" type="text/css" href="cssFiles/LOI_1024.css">');}
if (screen.width >= 1150) {document.write('<link rel="stylesheet" type="text/css" href="cssFiles/LOI_1280.css">');}

function LTrim(str){
   //Remove leading blanks
   var whitespace = new String(" \t\n\r");
   var s = new String(str);
   if (whitespace.indexOf(s.charAt(0)) != -1) {
      var j=0, i = s.length;
      while (j < i && whitespace.indexOf(s.charAt(j)) != -1)
         j++;
      s = s.substring(j, i);
   }
   return s;
}
function RTrim(str){
   //Remove trailing blanks
   var whitespace = new String(" \t\n\r");
   var s = new String(str);
   if (whitespace.indexOf(s.charAt(s.length-1)) != -1) {
      var i = s.length - 1;       
      while (i >= 0 && whitespace.indexOf(s.charAt(i)) != -1)
         i--;
      s = s.substring(0, i+1);
   }
   return s;
}
function Trim(str) { return RTrim(LTrim(str)); }

function removeClassName (elem, className) {
	elem.className = elem.className.replace(className, "").trim();
}
function addCSSClass (elem, className) {
	removeClassName (elem, className);
	elem.className = (elem.className + " " + className).trim();
}
String.prototype.trim = function() {
	return this.replace( /^\s+|\s+$/, "" );
}
function stripedTable() {
	if (document.getElementById && document.getElementsByTagName) {  
		var allTables = document.getElementsByTagName('table');
		if (!allTables) { return; }
		for (var i = 0; i < allTables.length; i++) {
			if (allTables[i].className.match(/[\w\s ]*scrollTable[\w\s ]*/)) {
				var trs = allTables[i].getElementsByTagName("tr");
				for (var j = 0; j < trs.length; j++) {
					removeClassName(trs[j], 'alternateRow');
					addCSSClass(trs[j], 'normalRow');
				}
				for (var k = 0; k < trs.length; k += 2) {
					removeClassName(trs[k], 'normalRow');
					addCSSClass(trs[k], 'alternateRow');
				}
			}
		}
	}
}
function go(){ document.getElementById('VSection').style.visibility = 'visible'; }
function goA(){ go(); stripedTable(); }


