var min=12;
var max=24;
function increaseFontSize() {
   var p = document.getElementById('main');
      if(p.style.fontSize) {
         var s = parseInt(p.style.fontSize.replace("px",""));
      } else {
         var s = 16;
      }
      if(s!=max) {
         s += 2;
      }
      p.style.fontSize = s+"px"
}
function decreaseFontSize() {
   var p = document.getElementById('main');
      if(p.style.fontSize) {
         var s = parseInt(p.style.fontSize.replace("px",""));
      } else {
         var s = 16;
      }
      if(s!=min) {
         s -= 2;
      }
      p.style.fontSize = s+"px"
}

function oldincreaseFontSize() {
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 16;
      }
      if(s!=max) {
         s += 2;
      }
      p[i].style.fontSize = s+"px"
   }
}
function olddecreaseFontSize() {
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 16;
      }
      if(s!=min) {
         s -= 2;
      }
      p[i].style.fontSize = s+"px"
   }
}


function sshowsection(testid) {

document.getElementById('bio').innerHTML=document.getElementById(testid).innerHTML;

}

function switchTabs(doon,dooff) {
	var tabon="switch"+doon;
	var buttonon="button"+doon;
	//var dooffs=dooff.split(":");
        for (i=1;i<=3;i++) {
                var buttonoff="button"+i;
                document.getElementById(buttonoff).className="switchbuttonoff";
        }	
	document.getElementById(buttonon).className="switchbuttonon";
        document.getElementById("showclinic").innerHTML=document.getElementById(tabon).innerHTML;
}

function oldswitchTabs(doon,dooff) {
        var buttonon="button"+doon;
        var tabon="switch"+doon;
        document.getElementById(tabon).style.display="block";
        document.getElementById(buttonon).className="switchbuttonon";

        var dooffs=dooff.split(":");
        for (i=0;i<dooffs.length;i++) {
                var buttonoff="button"+dooffs[i];
                var taboff="switch"+dooffs[i];
                document.getElementById(taboff).style.display="none";
                document.getElementById(buttonoff).className="switchbuttonoff";
        }

}

