var counter = 1;
  if (document.images)
   {
     image1= new Image(350,350);
     image1.src="../../photos/equipscale.jpg"; 
     image2= new Image(350,350);
     image2.src="../../photos/FECslide.jpg";
     image3= new Image(350,350);
     image3.src="../../photos/28mlnew.jpg";
     image4= new Image(350,350);
     image4.src="../../photos/2gramsbl.jpg";  
     image5= new Image(350,350);
     image5.src="../../photos/fecstrain.jpg";   
     image6= new Image(350,350);
     image6.src="../../photos/spoonstrainer.jpg";   
     image7= new Image(350,350);
     image7.src="../../photos/spfecstrbl.jpg";   
     image8= new Image(350,350);
     image8.src="../../photos/stir.jpg";
     image9= new Image(350,350);
     image9.src="../../photos/eyedropper.jpg";  
     image10= new Image(350,350);
     image10.src="../../photos/fillslide2.jpg";   
     image11= new Image(350,350);
     image11.src="../../photos/fillslide2ndside.jpg"; 
     image12= new Image(350,350);
     image12.src="../../photos/microscope2.jpg"; 
     image13= new Image(350,350);
     image13.src="../../photos/corner.jpg"; 
     image14= new Image(350,350);
     image14.src="../../photos/haemactual.jpg"; 
     image15= new Image(350,350);
     image15.src="../../photos/haemeggs2.jpg"; 
     image16= new Image(350,350);
     image16.src="../../photos/calculate-epg.png"; 
     image17= new Image(350,350);
     image17.src="../../photos/deworming-recs.png"; 
     image18= new Image(350,350);
     image18.src="../../photos/example-deworming.png"; 
     image19= new Image(350,350);
     image19.src="../../photos/end.png"; 
   }


function _onclick2()
{
window.close();
}


function _onclick(direction,picName)
{
   if (document.images)
    {
if (direction == '+') {counter++;}
else {counter--;}
if (counter < 1) {counter = 19;}
if (counter > 19) {counter = 1;}
var textName = 'text'+counter;
      text1 = 'Procedure for Conducting Fecal Egg Counts.  The basic equipment needed to conduct fecal egg counts using a scale is shown.  A microscope and McMaster fecal egg counting slide are also needed.';
      text2 = 'The McMaster fecal egg counting slide.  Note the two chambers each having six counting lanes.';
      text3 = '28 cc (ml) of flotation solution is put in a small dish.';
      text4 = '2 grams of feces are weighed.';
      text5 = 'The 2 grams of feces is put in a tea-strainer placed in the small dish.';
      text6 = 'A teaspoon is used to mash the feces into the floation solution taking roughly 2 minutes.';
      text7 = 'The tea-strainer with the fecal residue is removed.';
      text8 = 'Stir the solution 8 times using a back-and-forth motion.';
      text9 = 'An eyedropper is filled with the fecal solution.';
      text10 = 'The first counting chamber of the slide is filled.';
      text11 = 'Stir the solution 8 times as before and using the eyedropper, fill the second counting chamber of the slide.';
      text12 = 'The slide is then placed on a microscope and viewed at 100X (10X objective and 10X ocular).';
      text13 = 'Find a corner of the counting chamber to begin counting.';
      text14 = 'Use air bubbles, which will be perfectly round and are shaded from light to dark from the center outward, to adjust the focus and look for worm eggs, which are blunt football-shaped objects.  This pictute represents the view seen through the microscope.  Beginning in one corner, count all the eggs in all lanes on both counting chambers.  Multiply total count by 50 for eggs per gram';
      text15 = 'Close-up view of Haemonchus contortus eggs.';
      text16 = 'After counting the eggs, calculate the eggs per gram (EPG) to determine the need for deworming.  Add the number of eggs found in each chamber then multiply by 50 to find EPG.';
      text17 = 'After calculating EPG, the above guidelines for Barberpole worm (Haemonchus contortus) can help in determining whether animals need to be treated.  The Barberpole worm dominates during the warmer months of the year and causes most deaths in goats due to worms.  However, during cooler times of the year, and especially in cooler climates, other roundworm species may predominate.  Since these worms lay fewer eggs than the Barberpole worm, animals may need to be dewormed at lower EPG levels.  Consult your local veterinarian or state extension veterinarian for more information on which worm species are important during different seasons and what fecal egg counts indicate a need for deworming.';
      text18 = 'Example calculation.';
      text19 = 'Thank you.';


var textname = document.Myform.text.value = eval(textName);
      imgOn1=eval("image"+counter+".src");
      document[picName].src= imgOn1;
if (counter == 4) {hide('alt_fec','block');}
else {hide('alt_fec','none');}
    }
}


function _alt()
{
var win1 = window.open('','AlternativeMeasuring','width=750,height=600');
win1.document.open('text/html');
win1.document.write('<html>\n');
win1.document.write('<head><title>Alternative</title>\n');
win1.document.write('<script language=\"JavaScript\">\n');
win1.document.write('var counter = 0;\n');
win1.document.write('if (document.images)\n{\n');
win1.document.write('image0= new Image(350,350); image0.src="../../photos/equipsyr2.jpg";\n');
win1.document.write('image1= new Image(350,350); image1.src="../../photos/3ml.jpg";\n');
win1.document.write('image2= new Image(350,350); image2.src="../../photos/cuttip.jpg";\n');
win1.document.write('image3= new Image(350,350); image3.src="../../photos/fillsyringe.jpg";\n');
win1.document.write('image4= new Image(350,350); image4.src="../../photos/syrfullfec.jpg";\n'); 
win1.document.write('image5= new Image(350,350); image5.src="../../photos/packfecsyr.jpg";\n');
win1.document.write('image6= new Image(350,350); image6.src="../../photos/2mlfecsyr.jpg";\n');
win1.document.write('image7= new Image(350,350); image7.src="../../photos/2mlfecinsyr.jpg";\n');
win1.document.write('image8= new Image(350,350); image8.src="../../photos/2mlpush.jpg";\n');  
win1.document.write('image9= new Image(350,350); image9.src="../../photos/2mlinstrainer.jpg";\n');  
win1.document.write('}\n');
win1.document.write('function _onclick2()\n{\nwindow.close();\n}');
win1.document.write('function _onclick(direction,picName)\n{\nif (document.images)\n{\n');
win1.document.write('if (direction == "+") {counter++;}\nelse {counter--;}\n');
win1.document.write('if (counter < 0) {counter = 9;}\nif (counter > 9) {counter = 0;}\n');
win1.document.write('var textName = "text"+counter;\n');
win1.document.write('text0 = \'An alternative procedure for measuring 2 grams of feces.  Shown are the basic equipment needed to conduct fecal egg counts using a 3 cc syringe instead of a scale.  A microscope and McMaster fecal egg counting slide are also needed.\';\n');
win1.document.write('text1 = \'An simple and cheaper alternative to purchasing a digital scale for weighing 2 grams of feces is to use a 3 cc (ml) syringe with tip cut off.\';\n');
win1.document.write('text2 = \'Use a sharp knife to cut off the very end of the syringe.\';\n');
win1.document.write('text3 = \'Fill the cut syringe to the 3 cc mark with feces.\';\n');
win1.document.write('text4 = \'The syringe full of feces will look like this.\';\n');
win1.document.write('text5 = \'To pack the syringe and get rid of air spaces, place the syringe upside down and press on the plunger.\';\n');
win1.document.write('text6 = \'After packing the feces, depress the plunger to the 2 cc mark and cut off the excess fecal material.\';\n');
win1.document.write('text7 = \'The syringe with 2 cc of feces should look like this.\';\n');
win1.document.write('text8 = \'Push the 2 cc of feces into the strainer.\';\n');
win1.document.write('text9 = \'Once the feces are in the strainer, the remaining steps are identical to the procedure using fecal pellets.\';\n');
win1.document.write('var textname = document.Myform.text.value = eval(textName);\n');
win1.document.write('imgOn1=eval("image"+counter+".src");\n');
win1.document.write('document[picName].src= imgOn1;\n}\n}\n');
win1.document.write('<\/script>');
win1.document.write('<style type="text/css">\n');
win1.document.write('.a { background: #ffffcc; color: #0000ff; font-size: 10pt; font-family: "comic sans ms", sans-serif; }\n');
win1.document.write('<\/style>\n');
win1.document.write('</head><body>\n');
win1.document.write('<form name="Myform">\n');
win1.document.write('<table align="center" cellpadding="10" cellspacing="0" frame="box" rules="groups" width="100%">\n');
win1.document.write('<tr>\n');
win1.document.write('<td colspan="2" align="center" width="100%"><img src="../../photos/equipsyr2.jpg" name="pic" height="350" width="350"></td>\n');
win1.document.write('</td>\n');
win1.document.write('</tr>\n');
win1.document.write('<tr>\n');
win1.document.write('<td colspan="2" align="center" width="100%"><textarea wrap="virtual" name="text" cols="95" rows="2" class="a">An alternative procedure for measuring 2 grams of feces.  Shown are the basic equipment needed to conduct fecal egg counts using a 3 cc syringe instead of a scale.  A microscope and McMaster fecal egg counting slide are also needed.</textarea></td>\n');
win1.document.write('</tr>\n');
win1.document.write('<tr>\n');
win1.document.write('<td align="center" width="50%"><button name="previous" type="button" onclick="_onclick(\'-\',\'pic\');">Previous</button></td><td align="center" width="50%"><button name="next" type="button" onclick="_onclick(\'+\',\'pic\');">Next</button></td>\n');
win1.document.write('</tr>\n');
win1.document.write('<tr>\n');
win1.document.write('<td colspan="2" align="center">\n');
win1.document.write('<INPUT onclick="window.close()" type=button value="Close" style="width: 5em;"></td></tr>\n');
win1.document.write('</table>\n');
win1.document.write('</form>\n');
win1.document.write('</body>\n');
win1.document.write('</html>');
win1.document.close();
}

function hide(mylayer_ref1,state) { 
if (document.all) { //IS IE 4 or 5 (or 6 beta) 
eval( "document.all." + mylayer_ref1 + ".style.display = state"); 
} 
if (document.layers) { //IS NETSCAPE 4 or below 
document.layers[mylayer_ref1].display = state; 
} 
if (document.getElementById &&!document.all) { 
hza1 = document.getElementById(mylayer_ref1); 
hza1.style.display = state; 
} 
} 

function reset_text ()
{
document.Myform.text.value = 'Procedure for Conducting Fecal Egg Counts.  The basic equipment needed to conduct fecal egg counts using a scale is shown.  A microscope and McMaster fecal egg counting slide are also needed.';
}    

