function setFontPlus(id){var size = document.getElementById(id).style.fontSize;if(size == "" || size == null) {size = 14;} else {size = size.substr(0,2);}if(size < 16) {if(size == 15) {size = eval(size) + 2;} else {size = eval(size) + 1;}var fontSize = size + "px";document.getElementById(id).style.fontSize=fontSize}}// end setFontPlusfunction setFontMinus(id){var size = document.getElementById(id).style.fontSize;if(size == "" || size == null) {size = 10; } else {size = size.substr(0,2);} if(size > 12) {if(size == 16) {size = eval(size) - 2;} else {size = eval(size) - 1;}var fontSize = size + "px";document.getElementById(id).style.fontSize=fontSize}}function revertStyles(id){var size = document.getElementById(id).style.fontSize;if(size == "" || size == null) {size = 11; } else {size = size.substr(0,2);} if(size > 10) {if(size == 16) {size = 11;} else {size = 11;}var fontSize = size + "px";document.getElementById(id).style.fontSize=fontSize}changecss('body','color','black');changecss('a','color','black');changecss('a:hover','color','#7EACD6');}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+';'); } } }}// end function changecssfunction fontRed(){initFontColor();for(i=0;i<font.length;i++) {		    font[i].style.color = "red"}for(i=0;i<span.length;i++) {	  span[i].style.color = "red"}	  	for(i=0;i<td.length;i++) {  td[i].style.color = "red"}changecss('.style13','color','red');changecss('ul.tabsscentric li a','color','red');changecss('ul.tabsscentric li','color','red');changecss('ul.tabss1 li a','color','red');changecss('ul.tabss1 li','color','red');changecss('div#hijri_date_info ','color','red');changecss('div#date_info','color','red');changecss('div#location','color','red');changecss('.language_live','color','red');changecss('.language_live a:hover','color','red');changecss('.language_live a:link','color','red');changecss('.language_live a:visited','color','red');changecss('.language_live a','color','red'); changecss('.sws-nav-submenu a','color','red');changecss('navigation a','color','red');changecss('.style1','color','red');changecss('.font_header','color','red');changecss('body','color','red');changecss('.footer1 a','color','red');changecss('.home_titlefont','color','red');changecss('.home_contentfont a','color','red');changecss('a','color','red');changecss('#nav a','color','red');changecss('a:hover','color','red');changecss('a:visited','color','red');changecss('.title2_font','color','red');changecss('.content_font','color','red');changecss('.footer_font a','color','red');changecss('.topbartext a','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 fontBlue(){initFontColor();	   for(i=0;i<font.length;i++) {		    font[i].style.color = "blue"}for(i=0;i<span.length;i++) {	  span[i].style.color = "blue"}	  	for(i=0;i<td.length;i++) {  td[i].style.color = "blue"}changecss('.style13','color','blue');changecss('ul.tabsscentric li a','color','blue');changecss('ul.tabsscentric li','color','blue');changecss('ul.tabss1 li a','color','blue');changecss('ul.tabss1 li ','color','blue');changecss('div#hijri_date_info ','color','blue');changecss('div#date_info','color','blue');changecss('div#location','color','blue');changecss('.language_live','color','blue');changecss('.language_live a:hover','color','blue');changecss('.language_live a:link','color','blue');changecss('.language_live a:visited','color','blue');changecss('.language_live a','color','blue');changecss('.sws-nav-submenu a','color','blue');changecss('.style1','color','blue');changecss('.font_header','color','blue');changecss('.portlet-title','color','blue');changecss('.home_contentfont a','color','blue');changecss('.home_titlefont','color','blue');changecss('.footer1 a','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('.footer_font a','color','blue');changecss('a:hover','color','blue');changecss('a:visited','color','blue');changecss('.topbartext 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 fontGreen(){initFontColor();	   for(i=0;i<font.length;i++) {		    font[i].style.color = "#008000"}for(i=0;i<span.length;i++) {	  span[i].style.color = "#008000"}	  	for(i=0;i<td.length;i++) {  td[i].style.color = "#008000"}changecss('.style13','color','#008000');changecss('ul.tabsscentric li a','color','#008000');changecss('ul.tabsscentric li','color','#008000');changecss('ul.tabs_berita li a','color','#008000');changecss('ul.tabss1 li a','color','#008000');changecss('ul.tabss1 li ','color','#008000');changecss('div#hijri_date_info ','color','#008000');changecss('div#date_info','color','#008000');changecss('div#location','color','#008000');changecss('.language_live','color','#008000');changecss('.language_live a:hover','color','#008000');changecss('.language_live a:link','color','#008000');changecss('.language_live a:visited','color','#008000');changecss('.sws-nav-submenu a','color','#008000');changecss('.style1','color','#008000');changecss('.font_header','color','#008000');changecss('.portlet-title','color','#008000');changecss('.home_contentfont a','color','#008000');changecss('.home_titlefont','color','#008000');changecss('body','color','#008000');changecss('.footer1 a','color','#008000');changecss('#nav a','color','#008000');changecss('a','color','#008000');changecss('.title2_font','color','#008000');changecss('.content_font','color','#008000');changecss('a:hover','color','#008000');changecss('a:visited','color','#008000');changecss('.footer_font a','color','#008000');changecss('.topbartext a','color','#008000');changecss('input[type="text"], input[type="password"], input[type="file"],input[type="submit"], input[type="button"], input[type="reset"], select, textarea, .textarea','color','#008000');}  function fontOrange(){initFontColor();	   for(i=0;i<font.length;i++) {		    font[i].style.color = "#E58B33"}for(i=0;i<span.length;i++) {	  span[i].style.color = "#E58B33"}	  	for(i=0;i<td.length;i++) {  td[i].style.color = "#E58B33"}changecss('.style13','color','#E58B33');changecss('ul.tabsscentric li a','color','#E58B33');changecss('ul.tabsscentric li','color','#E58B33');changecss('ul.tabs_berita li a','color','#E58B33');changecss('ul.tabss1 li a','color','#E58B33');changecss('ul.tabss1 li ','color','#E58B33');changecss('div#hijri_date_info ','color','#E58B33');changecss('div#date_info','color','#E58B33');changecss('div#location','color','#E58B33');changecss('.language_live','color','#E58B33');changecss('.language_live a:hover','color','#E58B33');changecss('.language_live a:link','color','#E58B33');changecss('.language_live a:visited','color','#E58B33');changecss('.sws-nav-submenu a','color','#E58B33');changecss('.style1','color','#E58B33');changecss('.font_header','color','#E58B33');changecss('.portlet-title','color','#E58B33');changecss('.home_contentfont a','color','#E58B33');changecss('.home_titlefont','color','#E58B33');changecss('body','color','#E58B33');changecss('.footer1 a','color','#E58B33');changecss('#nav a','color','#E58B33');changecss('a','color','#E58B33');changecss('.title2_font','color','#E58B33');changecss('.content_font','color','#E58B33');changecss('a:hover','color','#E58B33');changecss('a:visited','color','#E58B33');changecss('.footer_font a','color','#E58B33');changecss('.topbartext a','color','#E58B33');changecss('input[type="text"], input[type="password"], input[type="file"],input[type="submit"], input[type="button"], input[type="reset"], select, textarea, .textarea','color','#E58B33');} var min=8;var max=14;var font = document.getElementsByTagName('font');var span = document.getElementsByTagName('span');	   var link = document.getElementsByTagName('a');	   var td = document.getElementsByTagName('td');	   var div = document.getElementsByTagName('div');var defaultFont = Array(0);var defaultSpan = Array(0);	   var defaulttd = Array(0);	function initFontColor() {if(defaultFont.length == 0 && defaultSpan.length == 0 && defaulttd.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<td.length;i++) {      defaulttd[i] = td[i].style.color;   }}}function redFont() {   initFontColor();   for(i=0;i<font.length;i++) {		        font[i].style.color = "red"   }      for(i=0;i<span.length;i++) {	      span[i].style.color = "red"   }	  	   for(i=0;i<td.length;i++) {      td[i].style.color = "red"   }}function blueFont() {   initFontColor();	      for(i=0;i<font.length;i++) {		        font[i].style.color = "blue"   }      for(i=0;i<span.length;i++) {	      span[i].style.color = "blue"   }	  	   for(i=0;i<td.length;i++) {      td[i].style.color = "blue"   }}function greenFont() {   initFontColor();	      for(i=0;i<font.length;i++) {		        font[i].style.color = "#008000"   }      for(i=0;i<span.length;i++) {	      span[i].style.color = "#008000"   }	  	   for(i=0;i<td.length;i++) {      td[i].style.color = "#008000"   }}function orangeFont() {   initFontColor();	      for(i=0;i<font.length;i++) {		        font[i].style.color = "#E58B33"   }      for(i=0;i<span.length;i++) {	      span[i].style.color = "#E58B33"   }	  	   for(i=0;i<td.length;i++) {      td[i].style.color = "#E58B33"   }}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<td.length;i++) {      td[i].style.fontSize = "";      td[i].style.color = defaulttd[i];   }   changecss('.style13','color','white');changecss('ul.tabsscentric li a','color','black');changecss('ul.tabsscentric li','color','black');changecss('ul.tabs_berita li a','color','black');changecss('div#hijri_date_info ','color','white');changecss('div#date_info','color','white');changecss('div#location','color','white');changecss('.sws-nav-submenu a','color','white');changecss('.style1','color','white');changecss('.language_live a:hover','color','white');changecss('.language_live a:link','color','white');changecss('.language_live a:visited','color','white');changecss('.language_live a','color','white'); changecss('.language_live','color','white');    changecss('.font_header','color','#ffffff');   	changecss('.home_titlefont','color','#3E8091');changecss('.home_contentfont a','color','black');   changecss('.portlet-title','color','black');changecss('#nav a','color','#ffffff');changecss('.footer1 a','color','#ffffff');changecss('body','color','black');changecss('a','color','#5078AA');changecss('a:hover','color','#7EACD6');changecss('a:visited','color','#5078AA');changecss('.title2_font','color','#0000FF');changecss('.content_font','color','#000000');changecss('.footer_font a','color','#660099');changecss('.topbartext 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','black');}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 = 13;      }      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 = 13;      }      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 = 13;      }      if(s!=max) { s += 1;      }      link[i].style.fontSize = s+"px"   }	   for(i=0;i<td.length;i++) {		        if(td[i].style.fontSize) { var s = parseInt(td[i].style.fontSize.replace("px",""));      } else { var s = 13;      }      if(s!=max) { s += 1;      }      td[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 = 13;      }      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 = 13;      }      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 = 13;      }      if(s!=min) { s -= 1;      }      link[i].style.fontSize = s+"px"   }	         for(i=0;i<td.length;i++) {      if(td[i].style.fontSize) { var s = parseInt(td[i].style.fontSize.replace("px",""));      } else { var s = 12;      }      if(s!=min) { s -= 1;      }      td[i].style.fontSize = s+"px"   }  	   	  } 
