<!--
// simple style-switcher
function change(id, newClass) {

identity=document.getElementById(id);

identity.className=newClass;

}

var prependValue;

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
 
  // edits for CDC
  clearSettings();
  var x=document.getElementById("form1");
	for (var i=0;i<x.length;i++)
  {
  //document.write(x.elements[i].name + ' - ');
  //document.write(x.elements[i].value);
  //document.write("<br />");
  

  //categoryradiobuttons - aboutcdc<br>categoryradiobuttons - ourwebsite<br>categoryradiobuttons - accessibility<br>categoryradiobuttons - health<br>menutopiccdc - <br>menutopichealth - topicbt<br>submit - Complete the Contact CDC Form<br>

	switch (x.elements[i].name) {
		case "menutopiccdc":
			document.cookie = "menutopiccdc = " + x.elements[i].value + "; domain=.cdc.gov";
		break;
			
		case "menutopichealth":
		if (x.elements[i].value == "topictravel") {
				args[0] = "parent";
				args[1] = "/travel/contactus.htm";
			} else {
			document.cookie = "menutopichealth = " + x.elements[i].value + "; domain=.cdc.gov";
			}
		break;	
		
		case "menutopicnotopic":
			if (x.elements[i].value == "topicaccessibility") {
				args[0] = "parent";
				args[1] = "accessibility.html";
			} else {
				document.cookie = "menutopicnotopic = " + x.elements[i].value + "; domain=.cdc.gov";
			}
		break;
	}


  }
  
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function updatePage() {
	// initialize the arrays
	buildArrays();
	var arrayIndex;
	
	if (getCookie("menutopiccdc") != "") {
		// About CDC topics
		arrayIndex = findIndex(getCookie("menutopiccdc"));
		if (arrayIndex == -1) {
			// set a default state here.
		} else {
			setPhone(arrayIndex);
			setEmail(arrayIndex);
			setTopicDisplay(arrayIndex);
			prependValue = topic_arr[arrayIndex];
		}
		
	}
	
	if (getCookie("menutopicnotopic") != "") {
		// About CDC topics
		arrayIndex = findIndex(getCookie("menutopicnotopic"));
		if (arrayIndex == -1) {
			// set a default state here.
		} else {
			setPhone(arrayIndex);
			setEmail(arrayIndex);
			setTopicDisplay(arrayIndex);
			prependValue = topic_arr[arrayIndex];
		}
		
	}
	
	if (getCookie("menutopichealth") != "") {
		// CDC Health topics
		arrayIndex = findIndex(getCookie("menutopichealth"));
		if (arrayIndex == -1) {
			// set a default state here.
		} else {
			setPhone(arrayIndex);
			setEmail(arrayIndex);
			setTopicDisplay(arrayIndex);
			prependValue = topic_arr[arrayIndex];
		}
	}
	
}

function findIndex(curTopic) {
	var i;
	var curIndex = -1;
	for (i=0; i < topic_arr.length; i++) {
		
		if (topic_arr[i] == curTopic) {
			curIndex = i;	
		}
	}
	return curIndex;
}

function setPhone(arrayIndex) {
	document.getElementById("cdcphone").innerHTML = phone_arr[arrayIndex];
}

function setTopicDisplay(arrayIndex) {
	document.getElementById("formcategory").innerHTML = topicDisplay_arr[arrayIndex];
}

function setEmail(arrayIndex) {
	document.getElementById("RCPT").value = email_arr[arrayIndex];
	document.getElementById("mailto").href = "mailto:" + email_arr[arrayIndex];
	document.getElementById("cdcemail").innerHTML = email_arr[arrayIndex];
	
}

function prependAndSend() {
	var fromID=document.getElementById("from").value
	
	document.getElementById("Comments").value = prependValue + "\n\n" + document.getElementById("Comments").value;
	if(fromID.indexOf("@") == -1) {
		document.getElementById("from").value = "anonymous@cdc.gov"
	}
	this.submit()
}

function clearSettings() {
	document.cookie = "menutopiccdc = xxx; domain=.cdc.gov"; // set to invalid data
	document.cookie = "menutopichealth = xxx; domain=.cdc.gov"; // set to invalid data
}

function clearSelects() {
	document.getElementById("form1").reset();	
}

function changeNoTopic(type) {
	switch(type) {
		case "Website":
			document.getElementById("menutopicnotopic").selectedIndex = 0;
		break;
		case "Accessibility":
			document.getElementById("menutopicnotopic").selectedIndex = 1;
		break;
		
	}
}


// set global variables and arrays
var topic_arr = new Array();
var phone_arr = new Array();
var email_arr = new Array();
var topicDisplay_arr = new Array();

function buildArrays() {
	
	topic_arr[0] = "topicdirectory";
	phone_arr[0] = "404-639-3311";//done
	email_arr[0] = "inquiry@cdc.gov";//done
	topicDisplay_arr[0] = "<strong>Category: </strong>About CDC<br /><strong>Topic: </strong>Contacting a Specific CDC Employee<br />";
	
	topic_arr[1] = "topicfunding";
	phone_arr[1] = "404-639-3534<br />800-311-3435 (TTY)";//done
	email_arr[1] = "inquiry@cdc.gov";//done
	topicDisplay_arr[1] = "<strong>Category: </strong>About CDC<br /><strong>Topic: </strong>Funding &amp; Grants<br />";
	
	topic_arr[2] = "topicjobs";
	phone_arr[2] = "404-639-3534<br />800-311-3435 (TTY)";//done
	email_arr[2] = "inquiry@cdc.gov";//done
	topicDisplay_arr[2] = "<strong>Category: </strong>About CDC<br /><strong>Topic: </strong>Jobs<br />";
	
	topic_arr[3] = "topictraining";
	phone_arr[3] = "404-639-3534<br />800-311-3435 (TTY)";//done
	email_arr[3] = "inquiry@cdc.gov";//done
	topicDisplay_arr[3] = "<strong>Category: </strong>About CDC<br /><strong>Topic: </strong>Training<br />";
	
	topic_arr[4] = "topiccdcother";
	phone_arr[4] = "404-639-3534<br />800-311-3435 (TTY)";//done
	email_arr[4] = "inquiry@cdc.gov";//done
	topicDisplay_arr[4] = "<strong>Category: </strong>About CDC<br /><strong>Topic: </strong>About CDC Other<br />";
		
	topic_arr[5] = "topicasthma";
	phone_arr[5] = "800-CDC-INFO (800 232 4636)<br />888-232-6348 (TTY)";//done
	email_arr[5] = "inquiry@cdc.gov";//done
	topicDisplay_arr[5] = "<strong>Category: </strong>Health and Other Topics<br /><strong>Topic: </strong>Asthma<br />";
	
	topic_arr[6] = "topicbt";
	phone_arr[6] = "800-CDC-INFO (800 232 4636)<br />888-232-6348 (TTY)";//done
	email_arr[6] = "cdcinfo@cdc.gov";//done
	topicDisplay_arr[6] = "<strong>Category: </strong>Health and Other Topics<br /><strong>Topic: </strong>Bioterrorism<br />";
	
	topic_arr[7] = "topicbirthdefects";
	phone_arr[7] = "800-CDC-INFO (800 232 4636)<br />888-232-6348 (TTY)";//done
	email_arr[7] = "inquiry@cdc.gov";//done
	topicDisplay_arr[7] = "<strong>Category: </strong>Health and Other Topics<br /><strong>Topic: </strong>Birth Defects<br />";
	
	topic_arr[8] = "topiccancer";
	phone_arr[8] = "800-CDC-INFO (800 232 4636)<br />888-232-6348 (TTY)";//done
	email_arr[8] = "inquiry@cdc.gov";//done
	topicDisplay_arr[8] = "<strong>Category: </strong>Health and Other Topics<br /><strong>Topic: </strong>Cancer<br />";
	
	topic_arr[9] = "topicchem";
	phone_arr[9] = "800-CDC-INFO (800 232 4636)<br />888-232-6348 (TTY)";//done
	email_arr[9] = "cdcinfo@cdc.gov";//done
	topicDisplay_arr[9] = "<strong>Category: </strong>Health and Other Topics<br /><strong>Topic: </strong>Chemicals<br />";
	
	topic_arr[10] = "topiccfs";
	phone_arr[10] = "404-639-3534<br />800-311-3435 (TTY)";//done???
	email_arr[10] = "inquiry@cdc.gov";//done???
	topicDisplay_arr[10] = "<strong>Category: </strong>Health and Other Topics<br /><strong>Topic: </strong>Chronic Fatigue Syndrome<br />";
	
	topic_arr[11] = "topicdiabetes";
	phone_arr[11] = "800-CDC-INFO (800 232 4636)<br />888-232-6348 (TTY)";//done
	email_arr[11] = "cdcinfo@cdc.gov";//done
	topicDisplay_arr[11] = "<strong>Category: </strong>Health and Other Topics<br /><strong>Topic: </strong>Diabetes<br />";
	
	topic_arr[12] = "topicdisabilities";
	phone_arr[12] = "404-639-3534<br />800-311-3435 (TTY)";//done
	email_arr[12] = "cdcinfo@cdc.gov";//done
	topicDisplay_arr[12] = "<strong>Category: </strong>Health and Other Topics<br /><strong>Topic: </strong>Disabilities<br />";
	
	topic_arr[13] = "topicenvironmental";
	phone_arr[13] = "800-CDC-INFO (800 232 4636)<br />888-232-6348 (TTY)";//done
	email_arr[13] = "cdcinfo@cdc.gov";//done
	topicDisplay_arr[13] = "<strong>Category: </strong>Health and Other Topics<br /><strong>Topic: </strong>Environmental Health<br />";
	
	topic_arr[14] = "topicflu";
	phone_arr[14] = "800-CDC-INFO (800 232 4636)<br />888-232-6348 (TTY)";//done
	email_arr[14] = "cdcinfo@cdc.gov";//done
	topicDisplay_arr[14] = "<strong>Category: </strong>Health and Other Topics<br /><strong>Topic: </strong>Flu (Influenza)<br />";
	
	topic_arr[15] = "topicfoodborne";
	phone_arr[15] = "404-639-3534<br />800-311-3435 (TTY)";//done???
	email_arr[15] = "inquiry@cdc.gov";//done???
	topicDisplay_arr[15] = "<strong>Category: </strong>Health and Other Topics<br /><strong>Topic: </strong>Foodborne Illness<br />";
	
	topic_arr[16] = "topichealthstats";
	phone_arr[16] = "404-639-3534<br />800-311-3435 (TTY)";//done
	email_arr[16] = "inquiry@cdc.gov";//done
	topicDisplay_arr[16] = "<strong>Category: </strong>Health and Other Topics<br /><strong>Topic: </strong>Health Statistics<br />";
	
	topic_arr[17] = "topichepatitis";
	phone_arr[17] = "800-CDC-INFO (800 232 4636)<br />888-232-6348 (TTY)";//done
	email_arr[17] = "cdcinfo@cdc.gov";//done
	topicDisplay_arr[17] = "<strong>Category: </strong>Health and Other Topics<br /><strong>Topic: </strong>Hepatitis<br />";
	
	topic_arr[18] = "topicherpes";
	phone_arr[18] = "800-CDC-INFO (800 232 4636)<br />888-232-6348 (TTY)";//done
	email_arr[18] = "cdcinfo@cdc.gov";//done
	topicDisplay_arr[18] = "<strong>Category: </strong>Health and Other Topics<br /><strong>Topic: </strong>Herpes<br />";
	
	topic_arr[19] = "topichiv";
	phone_arr[19] = "800-CDC-INFO (800 232 4636)<br />888-232-6348 (TTY)";//done
	email_arr[19] = "cdcinfo@cdc.gov";//done
	topicDisplay_arr[19] = "<strong>Category: </strong>Health and Other Topics<br /><strong>Topic: </strong>HIV/AIDS<br />";
	
	topic_arr[20] = "topichpv";
	phone_arr[20] = "800-CDC-INFO (800 232 4636)<br />888-232-6348 (TTY)";//done
	email_arr[20] = "cdcinfo@cdc.gov";//done
	topicDisplay_arr[20] = "<strong>Category: </strong>Health and Other Topics<br /><strong>Topic: </strong>HPV (Human Papillomavirus)<br />";
	
	topic_arr[21] = "topicimmun";
	phone_arr[21] = "800-CDC-INFO (800 232 4636)<br />888-232-6348 (TTY)";//done
	email_arr[21] = "cdcinfo@cdc.gov";//done
	topicDisplay_arr[21] = "<strong>Category: </strong>Health and Other Topics<br /><strong>Topic: </strong>Immunization &amp; Vaccination<br />";
	
	topic_arr[22] = "topicic";
	phone_arr[22] = "404-639-3534<br />800-311-3435 (TTY)";//done
	email_arr[22] = "inquiry@cdc.gov";//done
	topicDisplay_arr[22] = "<strong>Category: </strong>Health and Other Topics<br /><strong>Topic: </strong>Infection Control<br />";
	
	topic_arr[23] = "topicinfectious";
	phone_arr[23] = "404-639-3534<br />800-311-3435 (TTY)";//done???
	email_arr[23] = "ncid@cdc.gov";//done???
	topicDisplay_arr[23] = "<strong>Category: </strong>Health and Other Topics<br /><strong>Topic: </strong>Infectious Diseases<br />";
	
	topic_arr[24] = "topicinjury";
	phone_arr[24] = "800-CDC-INFO (800 232 4636)<br />888-232-6348 (TTY)";//done
	email_arr[24] = "cdcinfo@cdc.gov";//done
	topicDisplay_arr[24] = "<strong>Category: </strong>Health and Other Topics<br /><strong>Topic: </strong>Injury Prevention<br />";
	
	topic_arr[25] = "topiclyme";
	phone_arr[25] = "404-639-3534<br />800-311-3435 (TTY)";//done
	email_arr[25] = "dvbid@cdc.gov";//done???
	topicDisplay_arr[25] = "<strong>Category: </strong>Health and Other Topics<br /><strong>Topic: </strong>Lyme Disease<br />";
	
	topic_arr[26] = "topicmalaria";
	phone_arr[26] = "404-639-3534<br />800-311-3435 (TTY)";//done
	email_arr[26] = "inquiry@cdc.gov";//done
	topicDisplay_arr[26] = "<strong>Category: </strong>Health and Other Topics<br /><strong>Topic: </strong>Malaria<br />";
	
	topic_arr[27] = "topicmold";
	phone_arr[27] = "800-CDC-INFO (800 232 4636)<br />888-232-6348 (TTY)";//done
	email_arr[27] = "cdcinfo@cdc.gov";//done
	topicDisplay_arr[27] = "<strong>Category: </strong>Health and Other Topics<br /><strong>Topic: </strong>Mold<br />";
	
	topic_arr[28] = "topicoccupational";
	phone_arr[28] = "404-639-3534<br />800-311-3435 (TTY)";//done
	email_arr[28] = "inquiry@cdc.gov";//done
	topicDisplay_arr[28] = "<strong>Category: </strong>Health and Other Topics<br /><strong>Topic: </strong>Occupational Health<br />";
	
	topic_arr[29] = "topicradiation";
	phone_arr[29] = "800-CDC-INFO (800 232 4636)<br />888-232-6348 (TTY)";//done
	email_arr[29] = "cdcinfo@cdc.gov";//done
	topicDisplay_arr[29] = "<strong>Category: </strong>Health and Other Topics<br /><strong>Topic: </strong>Radiation<br />";
	
	topic_arr[30] = "topictobacco";
	phone_arr[30] = "800-CDC-INFO (800 232 4636)<br />888-232-6348 (TTY)";//done???
	email_arr[30] = "tobaccoinfo@cdc.gov";//done???
	topicDisplay_arr[30] = "<strong>Category: </strong>Health and Other Topics<br /><strong>Topic: </strong>Smoking/Tobacco<br />";
	
	topic_arr[31] = "topicstds";
	phone_arr[31] = "800-CDC-INFO (800 232 4636)<br />888-232-6348 (TTY)";//done
	email_arr[31] = "cdcinfo@cdc.gov";//done
	topicDisplay_arr[31] = "<strong>Category: </strong>Health and Other Topics<br /><strong>Topic: </strong>STDs (Sexually Transmitted Diseases)<br />";
	
	topic_arr[32] = "topictravel";
	phone_arr[32] = "800-CDC-INFO (800 232 4636)<br />888-232-6348 (TTY)";//done
	email_arr[32] = "webtravel@cdc.gov";//done???
	topicDisplay_arr[32] = "<strong>Category: </strong>Health and Other Topics<br /><strong>Topic: </strong>Travel outside the U.S. (and necessary vaccinations)<br />";//done
	
	topic_arr[33] = "topictb";
	phone_arr[33] = "800-CDC-INFO (800 232 4636)<br />888-232-6348 (TTY)";//done
	email_arr[33] = "cdcinfo@cdc.gov";//done
	topicDisplay_arr[33] = "<strong>Category: </strong>Health and Other Topics<br /><strong>Topic: </strong>Tuberculosis<br />";//done
	
	topic_arr[34] = "topicviolence";
	phone_arr[34] = "800-CDC-INFO (800 232 4636)<br />888-232-6348 (TTY)";//done
	email_arr[34] = "cdcinfo@cdc.gov";//done
	topicDisplay_arr[34] = "<strong>Category: </strong>Health and Other Topics<br /><strong>Topic: </strong>Violence Prevention<br />";//done
	
	topic_arr[35] = "topicworkplace";
	phone_arr[35] = "800-CDC-INFO (800 232 4636)<br />888-232-6348 (TTY)";//done
	email_arr[35] = "cdcinfo@cdc.gov";//done
	topicDisplay_arr[35] = "<strong>Category: </strong>Health and Other Topics<br /><strong>Topic: </strong>Workplace Safety<br />";//done
	
	topic_arr[36] = "topichealthother";
	phone_arr[36] = "404-639-3534<br />800-311-3435 (TTY)";//done
	email_arr[36] = "inquiry@cdc.gov";//done
	topicDisplay_arr[36] = "<strong>Category: </strong>Health and Other Topics<br /><strong>Topic: </strong>Other Health Topic<br />";//done
	
	topic_arr[37] = "topicweb";
	phone_arr[37] = "404-639-3534<br />800-311-3435 (TTY)";//done
	email_arr[37] = "cdcweb@cdc.gov";//done
	topicDisplay_arr[37] = "<strong>Category: </strong>Our Website<br />";//done
	
	topic_arr[38] = "topicaccessibility";	
	phone_arr[38] = "404-639-3534<br />800-311-3435 (TTY)";//done
	email_arr[38] = "cdcweb@cdc.gov";//done	
	topicDisplay_arr[38] = "<strong>Category: </strong>Accessibility<br />";//done


}



//-->
