var min=8;var max=14;var font = document.getElementsByTagName('font');var span = document.getElementsByTagName('span');	   var link = document.getElementsByTagName('a');	   var table = document.getElementsByTagName('table');	   var div = document.getElementsByTagName('div');var defaultFont = Array(0);var defaultSpan = Array(0);	   var defaultTable = Array(0);	function initFontColor() {if(defaultFont.length == 0 && defaultSpan.length == 0 && defaultTable.length == 0){   for(i=0;i<font.length;i++) {		        defaultFont[i] = font[i].style.color;   }      for(i=0;i<span.length;i++) {			      defaultSpan[i] = span[i].style.color;   }	  	   for(i=0;i<table.length;i++) {      defaultTable[i] = table[i].style.color;   }}}function changecss(theClass,element,value) {//Last Updated on May 21, 2008//documentation for this script at//http://www.shawnolson.net/a/503/altering-css-class-attributes-with-javascript.html var cssRules; if (document.all) { cssRules = 'rules'; } else if (document.getElementById) { cssRules = 'cssRules'; } var added = false; for (var S = 0; S < document.styleSheets.length; S++){ for (var R = 0; R < document.styleSheets[S][cssRules].length; R++) { if (document.styleSheets[S][cssRules][R].selectorText == theClass) { if(document.styleSheets[S][cssRules][R].style[element]){ document.styleSheets[S][cssRules][R].style[element] = value; added=true; break; } } } if(!added){ if(document.styleSheets[S].insertRule){ document.styleSheets[S].insertRule(theClass+' { '+element+': '+value+'; }',document.styleSheets[S][cssRules].length); } else if (document.styleSheets[S].addRule) { document.styleSheets[S].addRule(theClass,element+': '+value+';'); } } }}function redFont() {   initFontColor();   for(i=0;i<font.length;i++) {		        font[i].style.color = "#FF0000"   }      for(i=0;i<span.length;i++) {	      span[i].style.color = "#FF0000"   }	  	   for(i=0;i<table.length;i++) {      table[i].style.color = "#FF0000"   }      changecss('body','color','red');   changecss('a','color','red');   changecss('#nav a','color','red');   changecss('a:hover','color','red');   changecss('#nav li a','color','red');   changecss('div.language a.malay','color','red');   changecss('div.language a.english','color','red');   changecss('#disclaimer a','color','red');   changecss('#copyright','color','red');   changecss('.applemenu div.silverheader a','color','red');   changecss('div.topmenu a','color','red');   changecss('.lfr-dock li a','color','red');   changecss('.title2_font','color','red');      changecss('.content_font','color','red');   changecss('input[type="text"], input[type="password"], input[type="file"],input[type="submit"], input[type="button"], input[type="reset"], select, textarea, .textarea','color','red');}function blueFont() {   initFontColor();	      for(i=0;i<font.length;i++) {		        font[i].style.color = "#0000FF"   }      for(i=0;i<span.length;i++) {	      span[i].style.color = "#0000FF"   }	  	   for(i=0;i<table.length;i++) {      table[i].style.color = "#0000FF"   }      changecss('.portlet-title','color','blue');changecss('body','color','blue');changecss('a','color','blue');changecss('#nav a','color','blue');changecss('.title2_font','color','blue');changecss('.content_font','color','blue');changecss('a:hover','color','blue');changecss('#nav li a','color','blue');   changecss('div.language a.malay','color','blue');   changecss('div.language a.english','color','blue');   changecss('#disclaimer a','color','blue');   changecss('#copyright','color','blue');   changecss('.applemenu div.silverheader a','color','blue');   changecss('div.topmenu a','color','blue');   changecss('.lfr-dock li a','color','blue');changecss('input[type="text"], input[type="password"], input[type="file"],input[type="submit"], input[type="button"], input[type="reset"], select, textarea, .textarea','color','blue');}function greenFont() {   initFontColor();	      for(i=0;i<font.length;i++) {		        font[i].style.color = "#00FF00"   }      for(i=0;i<span.length;i++) {	      span[i].style.color = "#00FF00"   }	  	   for(i=0;i<table.length;i++) {      table[i].style.color = "#00FF00"   }changecss('.portlet-title','color','#00FF00');changecss('body','color','#00FF00');changecss('a','color','#00FF00');changecss('#nav a','color','#00FF00');changecss('.title2_font','color','#00FF00');changecss('.content_font','color','#00FF00');changecss('a:hover','color','#00FF00');changecss('#nav li a','color','#00FF00');   changecss('div.language a.malay','color','#00FF00');   changecss('div.language a.english','color','#00FF00');   changecss('#disclaimer a','color','#00FF00');   changecss('#copyright','color','#00FF00');   changecss('.applemenu div.silverheader a','color','#00FF00');   changecss('div.topmenu a','color','#00FF00');   changecss('.lfr-dock li a','color','#00FF00');changecss('input[type="text"], input[type="password"], input[type="file"],input[type="submit"], input[type="button"], input[type="reset"], select, textarea, .textarea','color','#00FF00');}function resetFontSize() {      for(i=0;i<font.length;i++) {		        font[i].style.fontSize = "";      font[i].style.color = defaultFont[i];   }      for(i=0;i<span.length;i++) {	      span[i].style.fontSize = "";      span[i].style.color = defaultSpan[i];   }	      	   for(i=0;i<link.length;i++) {	      link[i].style.fontSize = "";   }	   for(i=0;i<table.length;i++) {      table[i].style.fontSize = "";      table[i].style.color = defaultTable[i];   }      changecss('.portlet-title','color','#FFFFFF');changecss('body','color','#000000');changecss('a','color','#000000');changecss('#nav a','color','#FFFFFF');changecss('.title2_font','color','#FFFFFF');changecss('.content_font','color','#FFFFFF');changecss('a:hover','color','#000000');changecss('#nav li a','color','#000000');   changecss('div.language a.malay','color','#FFFFFF');   changecss('div.language a.english','color','#FFFFFF');   changecss('#disclaimer a','color','#000000');   changecss('#copyright','color','#000000');   changecss('.applemenu div.silverheader a','color','#000000');   changecss('div.topmenu a','color','#FFFFFF');   changecss('.lfr-dock li a','color','#FFFFFF');changecss('input[type="text"], input[type="password"], input[type="file"],input[type="submit"], input[type="button"], input[type="reset"], select, textarea, .textarea','color','#000000');}function increaseFontSize() {      for(i=0;i<font.length;i++) {		        if(font[i].style.fontSize) { var s = parseInt(font[i].style.fontSize.replace("px",""));      } else { var s = 12;      }      if(s!=max) { s += 1;      }      font[i].style.fontSize = s+"px"   }      for(i=0;i<span.length;i++) {		        if(span[i].style.fontSize) { var s = parseInt(span[i].style.fontSize.replace("px",""));      } else { var s = 12;      }      if(s!=max) { s += 1;      }      span[i].style.fontSize = s+"px"   }	      	   for(i=0;i<link.length;i++) {		        if(link[i].style.fontSize) { var s = parseInt(link[i].style.fontSize.replace("px",""));      } else { var s = 12;      }      if(s!=max) { s += 1;      }      link[i].style.fontSize = s+"px"   }	   for(i=0;i<table.length;i++) {		        if(table[i].style.fontSize) { var s = parseInt(table[i].style.fontSize.replace("px",""));      } else { var s = 12;      }      if(s!=max) { s += 1;      }      table[i].style.fontSize = s+"px"   }}function decreaseFontSize() {      for(i=0;i<font.length;i++) {      if(font[i].style.fontSize) { var s = parseInt(font[i].style.fontSize.replace("px",""));      } else { var s = 12;      }      if(s!=min) { s -= 1;      }      font[i].style.fontSize = s+"px"   }        for(i=0;i<span.length;i++) {      if(span[i].style.fontSize) { var s = parseInt(span[i].style.fontSize.replace("px",""));      } else { var s = 12;      }      if(s!=min) { s -= 1;      }      span[i].style.fontSize = s+"px"   }   	         for(i=0;i<link.length;i++) {      if(link[i].style.fontSize) { var s = parseInt(link[i].style.fontSize.replace("px",""));      } else { var s = 12;      }      if(s!=min) { s -= 1;      }      link[i].style.fontSize = s+"px"   }	         for(i=0;i<table.length;i++) {      if(table[i].style.fontSize) { var s = parseInt(table[i].style.fontSize.replace("px",""));      } else { var s = 12;      }      if(s!=min) { s -= 1;      }      table[i].style.fontSize = s+"px"   }  	   	  }