function getCookie(c_name){if (document.cookie.length>0)  {  c_start=document.cookie.indexOf(c_name + "=");  if (c_start!=-1)    {     c_start=c_start + c_name.length+1;     c_end=document.cookie.indexOf(";",c_start);    if (c_end==-1) c_end=document.cookie.length;    return unescape(document.cookie.substring(c_start,c_end));    }   }return "";}function setTagColor(tagName, hsColor){	   var eles=document.getElementsByTagName(tagName);	   for (e in eles) {			   if (eles[e].style) {				   eles[e].style.color = hsColor;			   }	   }}function setTagBackStyle(tagName, hsColor, hsStyle){	   var eles=document.getElementsByTagName(tagName);	   for (e in eles) {		   if (eles[e].className == hsStyle) {			   if (eles[e].style) {				   eles[e].style.backgroundColor = hsColor;			   }		   }	   }}function IncrByTwo(hsColor){	var nwColor = "";	if (hsColor.toUpperCase() == "F") nwColor="F";	if (hsColor.toUpperCase() == "E") nwColor="F";	if (hsColor.toUpperCase() == "D") nwColor="F";	if (hsColor.toUpperCase() == "C") nwColor="E";	if (hsColor.toUpperCase() == "B") nwColor="D";	if (hsColor.toUpperCase() == "A") nwColor="C";	if (hsColor.toUpperCase() == "9") nwColor="B";	if (hsColor.toUpperCase() == "8") nwColor="A";	if (hsColor.toUpperCase() == "7") nwColor="9";	if (hsColor.toUpperCase() == "6") nwColor="8";	if (hsColor.toUpperCase() == "5") nwColor="7";	if (hsColor.toUpperCase() == "4") nwColor="6";	if (hsColor.toUpperCase() == "3") nwColor="5";	if (hsColor.toUpperCase() == "2") nwColor="4";	if (hsColor.toUpperCase() == "1") nwColor="3";	if (hsColor.toUpperCase() == "0") nwColor="2";	return(nwColor);}function IncrementColor(hsColor){	var myStr=new String(hsColor);	myStr=myStr.slice(1);	var first=new String(myStr.substring(0,1));	var third=new String(myStr.substring(2,3));	var fifth=new String(myStr.substring(4,5));	var nwColor=new String("");	if (first.toUpperCase() == "F") {		if (third.toUpperCase() == "F") {			if (fifth.toUpperCase() == "F") {				nwColor=myStr;			}			else { 				nwColor=myStr.substring(0,4)+IncrByTwo(myStr.substring(4,5))+IncrByTwo(myStr.substring(5,6));			}		}		else { nwColor=myStr.substring(0,2)+IncrByTwo(myStr.substring(2,3))+IncrByTwo(myStr.substring(3,4))+IncrByTwo(myStr.substring(4,5))+IncrByTwo(myStr.substring(5,6));		}	}    else { 		if (fifth.toUpperCase == "F") {  nwColor=IncrByTwo(myStr.substring(0,1))+IncrByTwo(myStr.substring(1,2))+IncrByTwo(myStr.substring(2,3))+IncrByTwo(myStr.substring(3,4))+myStr.substring(4,6);		}		else { 			if (third.toUpperCase == "F") { 				nwColor=myStr;			}			else { 				nwColor=IncrByTwo(myStr.substring(0,1)) + IncrByTwo(myStr.substring(1,2))+IncrByTwo(myStr.substring(2,3))+IncrByTwo(myStr.substring(3,4))+IncrByTwo(myStr.substring(4,5))+IncrByTwo(myStr.substring(5,6));			}		}	}	nwColor = "#"+nwColor;	return(nwColor);}function checkCookie(){hsColor=getCookie('HSColor');if (hsColor==null || hsColor=="") hsColor="#FFFFFF";if (hsColor!=null && hsColor!=""){	   document.getElementById("theColor").value = hsColor;	   setTagColor("TD", hsColor);	   setTagColor("SPAN", hsColor);	   setTagColor("A", hsColor);}hsColor=getCookie('HSBack');if (hsColor==null || hsColor=="") hsColor="#800E16";if (hsColor!=null && hsColor!=""){	   document.getElementById("theBack").value = hsColor;	   setTagBackStyle("TD", hsColor, "hs-ministry-body");	   setTagBackStyle("SPAN", hsColor, "hs-ministry-body");	   setTagBackStyle("A", hsColor, "hs-ministry-body");	   hsColor = IncrementColor(hsColor);	   setTagBackStyle("TD", hsColor, "hs-menu");	   setTagBackStyle("SPAN", hsColor, "hs-menu");	   setTagBackStyle("A", hsColor, "hs-menu");	   hsColor = IncrementColor(hsColor);	   setTagBackStyle("TD", hsColor, "hs-header");	   setTagBackStyle("SPAN", hsColor, "hs-header");	   setTagBackStyle("A", hsColor, "hs-header");	   hsColor = IncrementColor(hsColor);	   setTagBackStyle("TD", hsColor, "hs-footer-body");	   setTagBackStyle("SPAN", hsColor, "hs-footer-body");	   setTagBackStyle("A", hsColor, "hs-footer-body");}hsColor=getCookie('HSBkGrnd');if (hsColor!=null && hsColor!=""){	document.body.style.backgroundImage = "url(images/" + hsColor + ".jpg)";}}function JSOpenR(OpenURL) {  win = window.open(OpenURL, "R",    "status=yes,toolbar=no,location=yes,menu=no,width=600,height=660, top=20,left=320, scrollbars=yes");}