// keep track of which fulls core info sections are open and closed
shown= new Object();
fullinfo = new Object();
//FMD - SHOWN_OBJECT_INIT

// WRL -- Links
fullinfo["40"] =
	'<ul>' +
	'	<li><a href="http://biogeo.berkeley.edu/worldclim/worldclim.htm" target="_blank">WorldClim</a><br />' +
	'		&nbsp;&nbsp;GIS grids at different resolutions for 19 weather variables</li>' +
	'	<li><a href="http://www.ghcc.msfc.nasa.gov/GOES/globalir.html" target="_blank">NASA, Global Hydrology &amp; Climate Center data</a><br />' +
	'		&nbsp;&nbsp;Satellite Pics for atmosphere moisture</li>' +
	'	<li><a href="http://cimss.ssec.wisc.edu/goes/burn/wfabba/wfabba_sag12.html" target="_blank">GOES-12 Wildfire</a><br />' +
	'		&nbsp;&nbsp;satellite data for South America</li>' +
	'	<li><a href="http://www.ndbc.noaa.gov/" target="_blank">National Data Buoy Center</a><br />' +
	'		&nbsp;&nbsp;ocean &amp; atmospheric data for N.Am, Carib. and Parts of Europe</li>' +
	'	<li><a href="http://www.ssec.wisc.edu/data/" target="_blank">Space Science and Engineering Center, U of Wis, Mad.</a><br />' +
	'		&nbsp;&nbsp;Real-Time Satellite Images</li>' +
	'	<li><a href="http://www.worldclimate.com/" target="_blank">World Climate</a><br />' +
	'		&nbsp;&nbsp;enter a city, get historical averages of temp., rainfall, etc. by month</li>' +
	'</ul>';

fullinfo["50"] =
	'<table>' +
	'<tr>' +
	'	<td>&nbsp;</td>' +
	'	<td><img id="show51" onclick="show(51)" alt="Show related links" src="images/plus.png" border="0" />&nbsp;' +
	'		<img src="./images/sphere_blue_sml.gif" name="blueBal2aa" width="10" height="10" border="0" alt="" onMouseOut="MM_swapImgRestore()" onclick="show(51)" onMouseOver="MM_swapImage(' + "'blueBal2aa','','./images/sphere_red_sml.gif',1)" + '"\>' +
	'	</td>' +
	'	<td><span class="bold">United States</span></td>' +
	'	<td>&nbsp;</td>' +
	'</tr>' +
	'<tr>' +
	'	<td>&nbsp;</td>' +
	'	<td><img id="show52" onclick="show(52)" alt="Show related links" src="images/plus.png" border="0" />&nbsp;' +
	'		<img src="./images/sphere_blue_sml.gif" name="blueBal2ab" width="10" height="10" border="0" alt="" onMouseOut="MM_swapImgRestore()" onclick="show(52)" onMouseOver="MM_swapImage(' + "'blueBal2ab','','./images/sphere_red_sml.gif',1)" + '"\>' +
	'	</td>' +
	'	<td><span class="bold">United Kingdom</span></td>' +
	'	<td>&nbsp;</td>' +
	'</tr>' +
	'<tr>' +
	'	<td>&nbsp;</td>' +
	'	<td><img id="show53" onclick="show(53)" alt="Show related links" src="images/plus.png" border="0" />&nbsp;' +
	'		<img src="./images/sphere_blue_sml.gif" name="blueBal2ac" width="10" height="10" border="0" alt="" onMouseOut="MM_swapImgRestore()" onclick="show(53)" onMouseOver="MM_swapImage(' + "'blueBal2ac','','./images/sphere_red_sml.gif',1)" + '"\>' +
	'	</td>' +
	'	<td><span class="bold">Australia</span></td>' +
	'	<td>&nbsp;</td>' +
	'</tr>' +
	'<tr>' +
	'	<td>&nbsp;</td>' +
	'	<td><img id="show54" onclick="show(54)" alt="Show related links" src="images/plus.png" border="0" />&nbsp;' +
	'		<img src="./images/sphere_blue_sml.gif" name="blueBal2ad" width="10" height="10" border="0" alt="" onMouseOut="MM_swapImgRestore()" onclick="show(54)" onMouseOver="MM_swapImage(' + "'blueBal2ad','','./images/sphere_red_sml.gif',1)" + '"\>' +
	'	</td>' +
	'	<td><span class="bold">New Zealand</span></td>' +
	'	<td>&nbsp;</td>' +
	'</tr>' +
	'<tr>' +
	'	<td>&nbsp;</td>' +
	'	<td><img id="show55" onclick="show(55)" alt="Show related links" src="images/plus.png" border="0" />&nbsp;' +
	'		<img src="./images/sphere_blue_sml.gif" name="blueBal2ae" width="10" height="10" border="0" alt="" onMouseOut="MM_swapImgRestore()" onclick="show(55)" onMouseOver="MM_swapImage(' + "'blueBal2ae','','./images/sphere_red_sml.gif',1)" + '"\>' +
	'	</td>' +
	'	<td><span class="bold">European Union</span></td>' +
	'	<td>&nbsp;</td>' +
	'</tr>' +
	'</table>';

fullinfo["51"] =
	'<h3>Country Specific: United States-</h3>' +
	'<ul>' +
	'	<li><a href="http://www.detrick.army.mil/tenants/afmic.cfm" target="_blank">Armed Forces Medical Intelligence Center (AFMIC)</a><br> /' +
	'		&nbsp;&nbsp;The Armed Forces Medical Intelligence Center is a field production activity of the Defense Intelligence Agency and the sole Department of Defense producer of medical intelligence.</li>' +
	'	<li><a href="http://www.aphis.usda.gov/vs/ceah/cnahs/" target="_blank">Center for National Animal Health Surveillance (CNAHS)</a><br />' +
	'		&nbsp;&nbsp;Center for National Animal Health Surveillance -- part of the USDA</li>' +
	'	<li><a href="http://www.cia.gov/" target="_blank">CIA</a><br />' +
	'		&nbsp;&nbsp;Central Intelligence Agency</li>' +
	'	<li><a href="http://www.dhs.gov/" target="_blank">Department of Homeland Security (DHS)</a><br />' +
	'		&nbsp;&nbsp;United States Department of Homeland Security</li>' +
	'	<li><a href="http://www.fsis.usda.gov/" target="_blank">Food Safety and Inspection Service (FSIS)</a><br />' +
	'		&nbsp;&nbsp;USDA Food Safety and Inspection Service</li>' +
	'	<li><a href="http://www.ars.usda.gov/plum/" target="_blank">Plum Island</a><br />' +
	'		&nbsp;&nbsp;USDA Research at the Plum Island Animal Disease Center</li>' +
	'	<li><a href="http://www.usaid.gov/" target="_blank">US AID</a><br />' +
	'		&nbsp;&nbsp;The United States Agency For International Development</li>' +
	'	<li><a href="http://www.army.mil/" target="_blank">US Army</a><br />' +
	'		&nbsp;&nbsp;United States Army Website</li>' +
	'	<li><a href="http://www.usda.gov/" target="_blank">USDA</a><br />' +
	'		&nbsp;&nbsp;United States Department of Agriculture</li>' +
	'	<li><a href="http://www.usaid.gov/" target="_blank">USITC</a><br />' +
	'		&nbsp;&nbsp;United States International Trade Commission</li>' +
	'	<li><a href="http://www.census.gov/foreign-trade/balance/" target="_blank">FTD - Statistics - Coutry Data</a><br />' +
	'		&nbsp;&nbsp;U.S. Trade (Imports, Exports and Balance) by Country</li>' +
	'	<li><a href="http://www.beef.org/" target="_blank">NCBA</a><br />' +
	'		&nbsp;&nbsp;National Cattleman\'s Beef Association</li>' +
	'	<li><a href="http://www.nppc.org/" target="_blank">NPPC</a><br />' +
	'		&nbsp;&nbsp;National Pork Producers Council</li>' +
	'</ul>' +
	'<hr width="50%">';

fullinfo["52"] =
	'<h3>Country Specific: United Kingdom-</h3>' +
	'<ul>' +
	'	<li><a href="http://www.defra.gov.uk/" target="_blank">DEFRA</a><br />' +
	'		&nbsp;&nbsp;Department for Environment Food and Rural Affairs</li>' +
	'	<li><a href="http://www.iah.bbsrc.ac.uk/virus/Picornaviridae/Aphthovirus/index.html" target="_blank">WRL Pirbright</a><br />' +
	'		&nbsp;&nbsp;World Reference Laboratory, Pirbright United Kingdom</li>' +
	'</ul>' +
	'<hr width="50%">';

fullinfo["53"] =
	'<h3>Country Specific: Australia-</h3>' +
	'<ul>' +
	'	<li><a href="http://www.csiro.au/" target="_blank">Commonwealth Scientific and Industrial Research Organisation</a></li>' +
	'	<li><a href="http://www.daff.gov.au/" target="_blank">Australian Government, Dept of Agriculture, Fisheries and Forestry</a></li>' +
	'</ul>' +
	'<hr width="50%">';

fullinfo["54"] =
	'<h3>Country Specific: New Zealand-</h3>' +
	'<ul>' +
	'	<li><a href="http://www.biosecurity.govt.nz/" target="_blank">Biosecurity New Zealand</a></li>' +
	'</ul>' +
	'<hr width="50%">';

fullinfo["55"] =
	'<h3>Country Specific: European Union (EU)-</h3>' +
	'<ul>' +
	'	<li><a href="http://europa.eu.int/comm/agriculture/index_en.htm" target="_blank">EUROPA -- European Commission on Agriculture</a></li>' +
	'	<li><a href="http://www.fao.org/ag/againfo/commissions/en/eufmd/eufmd.html" target="_blank">EUFMD</a><br />' +
	'		&nbsp;&nbsp;European Union Commission on FMD</li>' +
	'</ul>' +
	'<hr width="50%">';

fullinfo["60"] =
	'<table>' +
	'<tr>' +
	'	<td>&nbsp;</td>' +
	'	<td><img id="show61"onclick="show(61)" alt="Show related links" src="images/plus.png" border="0" />&nbsp;' +
	'		<img src="./images/sphere_blue_sml.gif" name="blueBal3" width="10" height="10" border="0" alt="" onMouseOut="MM_swapImgRestore()" onclick="show(61)" onMouseOver="MM_swapImage(' + "'blueBal3','','./images/sphere_red_sml.gif',1)" + '"\>' +
	'	</td>' +
	'	<td><span class="bold">FMD data and databases</span></td>' +
	'	<td>&nbsp;</td>' +
	'</tr>' +
	'<tr>' +
	'	<td>&nbsp;</td>' +
	'	<td><img id="show62"onclick="show(62)" alt="Show related links" src="images/plus.png" border="0" />&nbsp;' +
	'		<img src="./images/sphere_blue_sml.gif" name="blueBal4a" width="10" height="10" border="0" alt="" onMouseOut="MM_swapImgRestore()" onclick="show(62)" onMouseOver="MM_swapImage(' + "'blueBal4a','','./images/sphere_red_sml.gif',1)" + '"\>' +
	'	</td>' +
	'	<td><span class="bold">Other databases</span></td>' +
	'	<td>&nbsp;</td>' +
	'</tr>' +
	'</table>';

fullinfo["61"] =
	'<h3>FMD data and databases:</h3>' +
	'<ul>' +
	'	<li><a href="http://www.fao.org/ag/aga/glipha/index.jsp" target="_blank">Global Livestock Production and Health Atlas (GLiPHA)</a><br />' +
	'		&nbsp;&nbsp;The Global Livestock Production and Health Atlas (GLiPHA), is a user-friendly, highly interactive electronic atlas using the Key Indicator Mapping System (KIMS) developed by the World Agriculture Information Centre of FAO. The atlas provides a scaleable overview of spatial and temporal variation of quantitative information related to animal production and health through the combination of maps, tables and charts.</li>' +
	'	<li><a href="http://www.oie.int/hs2/report.asp?lang=en" target="_blank">HANDISTATUS II</a><br />' +
	'		&nbsp;&nbsp;OIE sponsered site that has data based on Region, Country, Disease and Year</li>' +
	'	<li><a href="http://bvs.panaftosa.org.br/cgi-bin/wxis1660.exe/lildbi/iah/?IsisScript=lildbi/iah/iah.xic&base=PANAFTOSA&lang=i" target="_blank">PANAFTOSA iAH Search Interface</a><br />' +
	'		&nbsp;&nbsp;Allows users to search the PANAFTOSA database of Veterinary Public Health</li>' +
	'	<li><a href="http://www.panaftosa.org.br/" target="_blank">Panaftosa </a><br />' +
	'		&nbsp;&nbsp;- Centro Panamericano de Fiebre Aftosa</li>' +
	'</ul>' +
	'<hr width="50%">';
fullinfo["62"] =
	'<h3>Other databases:</h3>' +
	'<ul>' +
	'	<li><a href="http://www.census.gov/foreign-trade/balance/" target="_blank">FTD - Statistics - Country Data</a><br />' +
	'		&nbsp;&nbsp;U.S. Trade Balance with all the countries of the world</li>' +
	'	<li><a href="http://www.fas.usda.gov/ustrade/USTImFatus.asp?QI=" target="_blank">U.S. Trade Imports - FATUS Commodity Aggregations</a><br />' +
	'		&nbsp;&nbsp;UNITED STATES DEPARTMENT OF AGRICULTURE FOREIGN AGRICULTURAL SERVICE, searchable database </li>' +
	'	<li><a href="http://faostat.fao.org/" target="_blank">FAOSTAT Home Page</a><br />' +
	'		&nbsp;&nbsp;Food And Agriculture Organization of The United Nations: FAOSTAT is an on-line and multilingual database currently containing over 3 million time-series records covering international statistics in many areas</li>' +
	'</ul>' +
	'<hr width="50%">';

fullinfo["90"] = "<ul><li><h4>More Links Will Go Here</h4></li></ul>";
fullinfo["100"] = "<ul><li><h4>More Links Will Go Here</h4></li></ul>";
fullinfo["200"] = "<ul><li><h4>More Links Will Go Here</h4></li></ul>";
fullinfo["300"] = "<ul><li><h4>More Links Will Go Here</h4></li></ul>";
fullinfo["400"] = "<ul><li><h4>More Links Will Go Here</h4></li></ul>";
fullinfo["500"] = "<ul><li><h4>More Links Will Go Here</h4></li></ul>";
fullinfo["600"] = "<ul><li><h4>More Links Will Go Here</h4></li></ul>";
fullinfo["700"] = "<ul><li><h4>More Links Will Go Here</h4></li></ul>";
fullinfo["800"] = "<ul><li><h4>More Links Will Go Here</h4></li></ul>";
fullinfo["900"] = "<ul><li><h4>More Links Will Go Here</h4></li></ul>";
fullinfo["1000"] =
	'<ul>' +
	'	<li><a href="http://www.arriah.ru/portal/en/index.html" target="_blank">ARRIAH</a></li>' +
	'	<li><a href="http://www.panaftosa.org.br/" target="_blank">PANAFTOSA</a></li>' +
	'	<li><a href="http://www.wrlfmd.org/" target="_blank">WRL Pirbright</a></li>' +
	'</ul>';


function show(id) {
	var idx = 0;
	var limit = 1;
	if (id==60 && shown[id]) { // show database submenus
		idx=62;
		limit=3;	// there are 2 more to close besides the main entry
	}
	if (id==50 && shown[id]) { // show database submenus
		idx=55;
		limit=6;	// there are 5 more to close besides the main entry
	}
	if (idx!=0 && shown[id]){
		//alert("id ="+id+" idx="+ idx );
		for (var ii=1; ii<=limit; ii++) {
			if (shown[idx]) { // changing - to +
				//alert("idx = " + idx + "\nlimit="+limit+"\nii = "+ii + "\nwe are in show");
				td_to_change = document.getElementById("info" + idx).innerHTML="";
				shown[idx]=false;
				set_plus_minus(idx);
			}
			idx--;
		}
	}
	else {
		if(shown[id]){
			// alert("id = " + id + "\nwe are in show");
			td_to_change = document.getElementById("info" + id).innerHTML="";
			shown[id]=false;
		} else {
			// alert("id = " + id + "\nwe are in show--not shownid");
			td_to_change = document.getElementById("info" + id).innerHTML=fullinfo[id];
			shown[id]=true;
		}
		set_plus_minus(id);
	}
}

function set_plus_minus(id) {
	if(shown[id]){
		// alert("id = " + id + "\n we are in set_plus_minus");
		document.getElementById("show" + id).src="images/minus.png";
	}
	else{
		//alert("id = " + id + "\n we are in set_plus_minus -- else section");
		document.getElementById("show" + id).src="images/plus.png";
	}
}


function MM_swapImgRestore() { //v3.0
	var i,x,a=document.MM_sr;
	for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)
		x.src=x.oSrc;
}

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];
			}
	}
}

function MM_findObj(n, d) { //v4.01
	var p,i,x;
	if(!d)
		d=document;
	if((p=n.indexOf("?"))>0&&parent.frames.length){
		d=parent.frames[n.substring(p+1)].document;
		n=n.substring(0,p);
	}
	if(!(x=d[n])&&d.all)
		x=d.all[n];
	for (i=0;!x&&i<d.forms.length;i++)
		x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++)
		x=MM_findObj(n,d.layers[i].document);
	if(!x && d.getElementById)
		x=d.getElementById(n);
	return x;
}

function MM_swapImage() { //v3.0
	var i,j=0,x,a=MM_swapImage.arguments;
	document.MM_sr=new Array;
	for(i=0;i<(a.length-2);i+=3)
		if((x=MM_findObj(a[i]))!=null){
			document.MM_sr[j++]=x;
			if(!x.oSrc)
				x.oSrc=x.src;
			x.src=a[i+2];
		}
}
