
	    	var timerID = null;
		var timerOn = false;
		var timecount = 1000;
		var what = null;
		var newbrowser = true;
		var check = false;

          if (document.layers) {
                        layerRef="document.layers";
                        styleSwitch="";
                        visibleVar="show";
			screenSize = window.innerWidth;
			what ="ns4";
			
	  	}else if(document.getElementById){
                        layerRef="document.getElementByID";
                        styleSwitch=".style";
                        visibleVar="visible";
			what="moz";
				
          	}else if(document.all){
                        layerRef="document.all";
                        styleSwitch=".style";
                        visibleVar="visible";
			screenSize = document.body.clientWidth + 18;
			what ="ie";


		  
	 	 }else{
			what="none";
			newbrowser = false;
		  }


        function showLayer(layerName,idName){
        	var idNameB=idName + "b";
        		if (what =="none"){
        			return;
        			}
	        	else if (what == "moz"){ 
                                document.getElementById(layerName).style.visibility="visible";
                                document.getElementById(idName).className="menubartopOn";
                                document.getElementById(idNameB).className="menubarbottomOn";

        			}
        		else{
                  		eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
                                alert(idName + "   " + idNameB);                  		
                  }
                  }
		     		
        function hideLayer(layerName,idC){
        		var idCb = idC + "b";
        		if (what =="none"){
        			return;
        			}
        		else if (what == "moz"){
        			document.getElementById(layerName).style.visibility="hidden";
        			}
        		else{
                  		eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
		}
        	}
        	
 		function hideAll(){
				hideLayer('Services');
				hideLayer('Contact');
				hideLayer('About');
				hideLayer('Success');
				backColor('nav1');
				backColor('nav2');
				backColor('nav3');
				backColor('nav4');
				backColor('nav5');
				
		}
		
		function startTime() {
	        		if (timerOn == false) {
                		timerID=setTimeout( "hideAll()" , timecount);
                		timerOn = true;
	        }
		}


		function stopTime() {
	        		if (timerOn) {
    	       			clearTimeout(timerID);
                		timerID = null;
                		timerOn = false;
	        }
		}

function flipColor(idName) {

	idName.style.backgroundColor="#fcee6b";
	idName.style.color="#000080";
	
	return;
	}
function backColor(idName) {
	var idC = idName + "b";
      document.getElementById(idName).className="menubartopOff";
      document.getElementById(idC).className="menubarbottomOff";
	return;
	}		

function colby(ename,sname,cname,dname)  {
if (dname) {
	edomain = dname;}
	else {
	edomain = "ksspecialties";}
	etld = "com";
document.write("<a class= "+ "'" + cname + "'" + " href= " + '"' + "mailto:" + ename + "&#64;" + edomain + "." + etld + '"' + ">" + sname + "<\/a>");
}

function dispSize() {
if(window.innerWidth) {
	var scrn=window.innerWidth;}
if(document.body.clientWidth) {
	var scrn=document.body.clientWidth; }
if(scrn>1018)  {
  if(document.all)  {
  	document.all["mainBody"].style.width='1000px'; 
  	} else {
  	document.getElementById("mainBody").style.width='1000px';   
  	}  }  
  	}
  	
function dispList()  {

var mfc=new Array();

mfcList(mfc);

var z = mfc.length;
var x = Math.floor(z/3);
var rowNumb = Math.ceil(z/3);
var y = rowNumb - x;
var y1;

if(y!=0) {
	y1 = (z+1)/3;
	if (rowNumb == y1) {
		mfc[z] = "";
		}
			else {
			mfc[z] = "";
			mfc[z+1] = ""

				}
	}

var tbl = "<table style=\"width:85%\; margin-left:20px\">";
var trStart = "<tr>";
var tdStd1 = "<td class=\"listTD\">";
var tdStd2 = "<td class=\"listTD\">";
var tdStd3 = "<td class=\"listTD\">";
var trEnd = "</tr>";
var tdEnd = "</td>";
var tblEnd = "</table>";

//disp = "Length = " + z + "<br>Floor = " + x + "<br>Ceiling = " + rowNumb + "<br>y2 = " + y2 + "<br><br>";
disp = tbl;

for (row = 0; row < rowNumb; row++)  {
		
disp += trStart + tdStd1 + mfc[row] + tdEnd + tdStd2 + mfc[row + rowNumb] + tdEnd + tdStd3 + mfc[row + (rowNumb * 2)] + tdEnd + trEnd;
	}
disp += tblEnd;

document.write(disp);

}
