// JavaScript Document

// Header
function writeHeader() {
	phinTop = '<!-- BEGIN FRAME -->' +
	'<div id="gbl-frame">' +
	'<!--  BEGIN GLOBAL NAVIGATION -->' +
	'<!-- BEGIN TOP NAV -->' +
	'<div id="gbl-topnav">' +
		'<div id="gbl-topnavcontainer">' +
		'<a href="http://www.cdc.gov/page.do">Home</a> | <a href="http://www.cdc.gov/aboutcdc.htm">About CDC</a> | <a href="http://www.cdc.gov/od/oc/media/">Press Room</a> | <a href="http://www.cdc.gov/az.do">A-Z Index</a> | <a href="http://www.cdc.gov/doc.do?id=0900f3ec80093d70">Contact Us</a>' +
		'</div>' +
	'</div>' +
	'<!-- END TOP NAV -->' +
	'<!-- BEGIN TOP HEADER BAR, LOGO -->' +
	'<div id="gbl-headerbar">' +
	'<a href="http://www.cdc.gov/">' +
    '<img src="/phin/images/logo_CDC.gif" alt="Image: CDC Centers for Disease Control and Prevention PHIN" border="0" width="557" height="71"></a>' +
	'</div>' +
	'<!-- END TOP HEADER BAR LOGO -->' +
	'<!-- BEGIN TOP HEADER BAR, SEARCH -->' +
	'<div id="gbl-search">' +
		'<div id="gbl-searchcontent" align="right">' +
			'<form name="searchForm" action="/search.do" method="get">' +
			'<input type="hidden" value="search" name="action"/>' +
			'<a href="http://www.cdc.gov/spanish/default.htm">CDC en Espa&ntilde;ol</a>' +
			'<br />' +
			'<img src="/phinconference/images/hr_search.gif" vspace="0" border="0" width="189" height="1">' +
			'<br />Search: <input maxlength="160" size="13" name="queryText" class="searchField"/>' +
			'&nbsp;<input name="image" type="image" src="/phinconference/images/btn_Go.gif" alt="Go" align="middle" class="gobtn" width="27" height="20" />' +
			'</form>' +
	  	'</div>' +
	 '</div>' +
	 '<!-- END TOP HEADER BAR, SEARCH -->' +
	 '<!-- END TOP HEADER BAR-->' ;
document.write(phinTop)
}

// Footer
function writeFooter() {
	cdcFooter = '<!-- BEGIN FOOTER -->' +
  '<div id="gbl-footer">' +
	  '<div id="gbl-footernav">' +
		'<ul>' +
			'<li><A href="http://www.cdc.gov/page.do">Home</A></li>' +
			'<li>|</li>' +
			'<li><A href="http://www.cdc.gov/doc.do/id/0900f3ec800cb856">Policies and Regulations</A></li>' +
			'<li>|</li>' +
			'<li><A href="http://www.cdc.gov/disclaimer.htm">Disclaimer</A></li>' +
			'<li>|</li>' +
			'<li><A href="http://www.cdc.gov/doc.do/id/0900f3ec801153ff">e-Government</A></li>' +
			'<li>|</li>' +
			'<li><A href="http://www.cdc.gov/od/foia/foi.htm">FOIA</A></li>' +
			'<li>|</li>' +
			'<li><A href="http://www.cdc.gov/doc.do/id/0900f3ec80093d70">Contact Us</A></li>' +
		'</ul>' +
	  '</div>' +
  '</div>' +
  '<div id="gbl-footercontainer">' +
		'<div id="gbl-footerContent">' +
			'<div id="gbl-address">' +
				'<img src="/phin/images/ftr_SaferHealthier.gif" alt="Safer Healthier People" width="150" height="7"><br />' +
				'<address>Centers for Disease Control and Prevention, 1600 Clifton Rd, Atlanta, GA 30333, U.S.A.<br />Tel: (404) 639-3311 / Public Inquiries: (404) 639-3534 / (800) 311-3435</address>' +
			'</div>' +
			'<div id="gbl-footerimage">' +
				'<a href="http://firstgov.gov/">' +
                '<img src="/phin/images/logo_FirstGov.gif" alt="FirstGov" border="0" width="147" height="52"></a>' +
				'<a href="http://www.hhs.gov/">' +
                '<img src="/phin/images/logo_dhhs.gif" alt="DHHS" border="0" width="58" height="52"></a>' +
				'<br />' +
				'<a href="http://www.air.org/concord/cdc/html_build/www.hhs.gov">Department of Health<br />and Human Services</a>' +
			'</div>' +
		'</div>' +
  '</div>' +
'<!-- END FOOTER -->';
	document.write(cdcFooter)
}

// ####
// Load all images on the page into a page-level array for later use
// ####
function MM_preloadImages() { //v3.0
  var d=document; 
  if(d.images)
  { 
  	if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; 
	for(i=0; i<a.length; i++)
    	if (a[i].indexOf("#")!=0)
		{ 
			d.MM_p[j]=new Image; 
			d.MM_p[j++].src=a[i];
		}
	}
}

// ####
// set a page-level variable for use in highlighting secondary navigation items
// ####
function MM_setPageName2(){
	var a=MM_setPageName2.arguments;
	document.MM_pn2=a[0];
	highlightTab2(document.MM_pn2 + 'Tab');
}

// ####
// Change the display of a tab in the sub-menu
// change the class of the tab (td object) and change the source of the image inside (the arrow)
// ####
function highlightTabSub(tabName)
{
	var tab = document.getElementById(tabName);
	tab.className='tabOnSub';
	var arrow = document.getElementById(tabName + "Arrow");
	arrow.src="/phinconference/images/nav-arrow-ovr.gif";
}

// ####
// Change the display of a tab in the sub-menu
// change the class of the tab (td object) and change the source of the image inside (the arrow)
// ####
function highlightTab2(tabName)
{
	var tab = document.getElementById(tabName);
	tab.className='tabOnSub';
	var arrow = document.getElementById(tabName + "Arrow");
	arrow.src="/phinconference/images/nav-arrow-ovr.gif";
}

// ####
// Change the display of a tab in the sub-menu back to the original (un-highlighted)
// change the class of the tab (td object) and change the source of the image inside(the arrow)
// only do this if the current page is NOT associated with the tab
// this is called in onMouseOut - when the mouse moves away, so if it is the appropriate tab, do not change it back
// ####

function unHighlightTab2(tabName)
{
	var tab = document.getElementById(tabName);
	var pn=document.MM_pn2;
	if (!pn) 
	{pn='none';}
	pn+='Tab';
	if (tabName!=pn)
	{
		tab.className='tabOff';
		var arrow = document.getElementById(tabName + "Arrow");
		arrow.src="/phinconference/images/nav-arrow.gif";
	}
}




