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_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_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 env_SwapImage() { //v3.0 -- modified to reset images prior to replace, to replace 'onmouseout' functionality
  imgReset();
  var i,j=0,x,a=env_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];}
}

function imgOut(i,ref) { //image restore thingy - only needed for this page ;)
	document.images[i].src = ref;
}

function imgReset() { //resets rollover images to initial status
	document.images.left_a.src = 'images/left_a.gif';
	document.images.left_b.src = 'images/left_b.gif';
	document.images.left_c.src = 'images/left_c.gif';
	document.images.left_d.src = 'images/left_d.gif';
	document.images.left_e.src = 'images/left_e.gif';
	document.images.left_f.src = 'images/left_f.gif';
	document.images.right_g.src = 'images/right_g.gif';
	document.images.right_h.src = 'images/right_h.gif';
	document.images.right_i.src = 'images/right_i.gif';
	document.images.right_j.src = 'images/right_j.gif';
	document.images.right_k.src = 'images/right_k.gif';
	document.images.right_l.src = 'images/right_l.gif';
}

function listURL(SubId) { //dynamic URL list imagemap thingy
//
// the way this works is that the center image on the webpage
// contains an imagemap that has been split up into 11 rectangles,
// arranged vertically. each rectangle corresponds to an
// individual line of text in the center image (which dynamically
// changes, based on whichever heading is currently mouseover'ed).
//
// there are a total of 11 subheadings, therefore, each main
// heading (a thru l) requires 11 links, that need to be defined
// below within the javascript code.
//
// for example, for category a (about pesticides), the first
// subheading could point to 'a_1.html', and the second to
// 'a_2.html'. 'blank.html' is a placeholder right now. ultimately
// when all the content has been created and linked, unused
// subheadings should get a href of '#' alone to render them
// as 'unusable links', for example:
//     else if (SubId == 4) {window.location.href = "#";}
//
// therefore, for subheadings that span two lines (if they are too
// long), the link would have to be the same for two subsequent
// rectangles, for example:
//     else if (SubId == 4) {window.location.href = "x_4.html";}
//     else if (SubId == 5) {window.location.href = "x_4.html";}
//



	MainId = MainHeadId;

	if (MainId == 'a') { //about pesticides
		if (SubId == 1) {window.location.href = "a_1.htm";}
		else if (SubId == 2) {window.location.href = "a_2.htm";}
		else if (SubId == 3) {window.location.href = "a_3.htm";}
		else if (SubId == 4) {window.location.href = "a_4.htm";}
		else if (SubId == 5) {window.location.href = "a_5.htm";}
		else if (SubId == 6) {window.location.href = "a_6.htm";}
		else if (SubId == 7) {window.location.href = "a_7.htm";}
		else if (SubId == 8) {window.location.href = "a_8.htm";}
		else if (SubId == 9) {null;}
		else if (SubId == 10) {null;}
		else if (SubId == 11) {null;}
	}

	if (MainId == 'b') { //toxicity & hazard
		if (SubId == 1) {window.location.href = "b_1.htm";}
		else if (SubId == 2) {window.location.href = "b_2.htm";}
		else if (SubId == 3) {window.location.href = "b_3.htm";}
		else if (SubId == 4) {window.location.href = "b_4.htm";}
		else if (SubId == 5) {null;}
		else if (SubId == 6) {null;}
		else if (SubId == 7) {null;}
		else if (SubId == 8) {null;}
		else if (SubId == 9) {null;}
		else if (SubId == 10) {null;}
		else if (SubId == 11) {null;}
	}

	if (MainId == 'c') { //environmental protection
		if (SubId == 1) {window.location.href = "c_1.htm";}
		else if (SubId == 2) {window.location.href = "c_2.htm";}
		else if (SubId == 3) {window.location.href = "c_3.htm";}
		else if (SubId == 4) {window.location.href = "c_3.htm";}
		else if (SubId == 5) {null;}
		else if (SubId == 6) {null;}
		else if (SubId == 7) {null;}
		else if (SubId == 8) {null;}
		else if (SubId == 9) {null;}
		else if (SubId == 10) {null;}
		else if (SubId == 11) {null;}
	}

	if (MainId == 'd') { //safety precautions
		if (SubId == 1) {window.location.href = "d_1.htm";}
		else if (SubId == 2) {window.location.href = "d_1.htm";}
		else if (SubId == 3) {window.location.href = "d_3.htm";}
		else if (SubId == 4) {window.location.href = "d_4.htm";}
		else if (SubId == 5) {window.location.href = "d_5.htm";}
		else if (SubId == 6) {window.location.href = "d_6.htm";}
		else if (SubId == 7) {window.location.href = "d_7.htm";}
		else if (SubId == 8) {window.location.href = "d_8.htm";}
		else if (SubId == 9) {window.location.href = "d_9.htm";}
		else if (SubId == 10) {window.location.href = "#";}
		else if (SubId == 11) {window.location.href = "#";}
	}

	if (MainId == 'e') { //food, crop & livestock safety
		if (SubId == 1) {window.location.href = "e_1.htm";}
		else if (SubId == 2) {window.location.href = "e_1.htm";}
		else if (SubId == 3) {window.location.href = "e_1.htm";}
		else if (SubId == 4) {window.location.href = "e_4.htm";}
		else if (SubId == 5) {window.location.href = "e_4.htm";}
		else if (SubId == 6) {window.location.href = "e_4.htm";}
		else if (SubId == 7) {window.location.href = "e_4.htm";}
		else if (SubId == 8) {window.location.href = "e_4.htm";}
		else if (SubId == 9) {window.location.href = "e_4.htm";}
		else if (SubId == 10) {window.location.href = "e_10.htm";}
		else if (SubId == 11) {null;}
	}

	if (MainId == 'f') { //application equipment
		if (SubId == 1) {window.location.href = "f_1.htm";}
		else if (SubId == 2) {window.location.href = "f_2.htm";}
		else if (SubId == 3) {window.location.href = "f_3.htm";}
		else if (SubId == 4) {window.location.href = "f_4.htm";}
		else if (SubId == 5) {window.location.href = "f_5.htm";}
		else if (SubId == 6) {window.location.href = "f_6.htm";}
		else if (SubId == 7) {null;}
		else if (SubId == 8) {null;}
		else if (SubId == 9) {null;}
		else if (SubId == 10) {null;}
		else if (SubId == 11) {null;}
	}

	if (MainId == 'g') { //emergencies
		if (SubId == 1) {window.location.href = "g_1.htm";}
		else if (SubId == 2) {window.location.href = "g_1.htm";}
		else if (SubId == 3) {window.location.href = "g_1.htm";}
		else if (SubId == 4) {window.location.href = "g_4.htm";}
		else if (SubId == 5) {window.location.href = "g_5.htm";}
		else if (SubId == 6) {window.location.href = "g_6.htm";}
		else if (SubId == 7) {window.location.href = "g_7.htm";}
		else if (SubId == 8) {window.location.href = "g_8.htm";}
		else if (SubId == 9) {null;}
		else if (SubId == 10) {null;}
		else if (SubId == 11) {null;}
	}

	if (MainId == 'h') { //certification & news
		if (SubId == 1) {window.location.href = "h_1.htm";}
		else if (SubId == 2) {window.location.href = "h_1.htm";}
		else if (SubId == 3) {window.location.href = "h_3.htm";}
		else if (SubId == 4) {null;}
		else if (SubId == 5) {null;}
		else if (SubId == 6) {null;}
		else if (SubId == 7) {null;}
		else if (SubId == 8) {null;}
		else if (SubId == 9) {null;}
		else if (SubId == 10) {null;}
		else if (SubId == 11) {null;}
	}

	if (MainId == 'i') { //laws & regs
		if (SubId == 1) {window.location.href = "i_1.htm";}
		else if (SubId == 2) {window.location.href = "i.htm";}
		else if (SubId == 3) {window.location.href = "i_3.htm";}
		else if (SubId == 4) {window.location.href = "i_4.htm";}
		else if (SubId == 5) {window.location.href = "i_5.htm";}
		else if (SubId == 6) {window.location.href = "i_6.htm";}
		else if (SubId == 7) {null;}
		else if (SubId == 8) {null;}
		else if (SubId == 9) {null;}
		else if (SubId == 10) {null;}
		else if (SubId == 11) {null;}
	}

	if (MainId == 'j') { //pesticide registration
		if (SubId == 1) {window.location.href = "j_1.htm";}
		else if (SubId == 2) {window.location.href = "j_2.htm";}
		else if (SubId == 3) {window.location.href = "j_3.htm";}
		else if (SubId == 4) {window.location.href = "j_4.htm";}
		else if (SubId == 5) {window.location.href = "j_5.htm";}
		else if (SubId == 6) {null;}
		else if (SubId == 7) {null;}
		else if (SubId == 8) {null;}
		else if (SubId == 9) {null;}
		else if (SubId == 10) {null;}
		else if (SubId == 11) {null;}
	}

	if (MainId == 'k') { //pesticide labels
		if (SubId == 1) {window.location.href = "k_1.htm";}
		else if (SubId == 2) {window.location.href = "k_2.htm";}
		else if (SubId == 3) {window.location.href = "k_3.htm";}
		else if (SubId == 4) {window.location.href = "k_4.htm";}
		else if (SubId == 5) {window.location.href = "K-6.htm";}
		else if (SubId == 6) {window.location.href = "k_6.htm";}
		else if (SubId == 7) {window.location.href = "k_6.htm";}
		else if (SubId == 8) {null;}
		else if (SubId == 9) {null;}
		else if (SubId == 10) {null;}
		else if (SubId == 11) {null;}
	}

	if (MainId == 'l') { //other resources
		if (SubId == 1) {window.location.href = "l_1.htm";}
		else if (SubId == 2) {window.location.href = "l_2.htm";}
		else if (SubId == 3) {window.location.href = "l_3.htm";}
		else if (SubId == 4) {window.location.href = "l_4.htm";}
		else if (SubId == 5) {window.location.href = "l_5.htm";}
		else if (SubId == 6) {window.location.href = "l_6.htm";}
		else if (SubId == 7) {window.location.href = "l_7.htm";}
		else if (SubId == 8) {window.location.href = "l_8.htm";}
		else if (SubId == 9) {null;}
		else if (SubId == 10) {null;}
		else if (SubId == 11) {null;}
	}

}

