  <!-- 
var fishtype=new Array("atlantic_salmon.jpg","ballan_rass.jpg","Bass.jpg","Bull_Huss.jpg","cod.jpg","congor_eel.jpg","Flounder.jpg","Garfish.jpg","Grey_mullet.jpg","Mackeral.jpg","painted_ray.jpg","pollack.jpg","Sea_trout.jpg","tope.jpg","Whiting_North_devon.jpg");
var game2_marker=1;
var lastfish=-1;
var correctcounter=0;
function start_game2(){
randomnumber2=Math.floor(Math.random()*14)
game_2_start=1;
correctcounter=0;
numberofgoes=document.getElementById('Game2goes').value;
document.getElementById('fish_game2').src ="images/fishing/"+fishtype[randomnumber2];
}
function getrandnumb2(){
randomnumber2=Math.floor(Math.random()*14);
return(randomnumber2);
}
function chkfish(fishid){
 if(game_2_start==0){
  alert("You must click on the GO button to start the game");
  return false;
 }

 if(randomnumber2 == fishid){
 document.getElementById('fishcol_'+randomnumber2).bgColor="#00FF00"
 alert("Well done you have picked the correct fish");
 correctcounter++;
 document.getElementById('fishcol_'+randomnumber2).bgColor="#FFFFFF"
 }else{
 document.getElementById('fishcol_'+fishid).bgColor="#FF5555";
 document.getElementById('fishcol_'+randomnumber2).bgColor="#00FF00"
 alert("Bad luck you have not chosen the correct fish. The correct fish is the one highlighted in green");
 document.getElementById('fishcol_'+randomnumber2).bgColor="#FFFFFF"
 document.getElementById('fishcol_'+fishid).bgColor="#FFFFFF"
  }
 if(game2_marker==numberofgoes){
 var endmsgvalue = (correctcounter/numberofgoes)*100;
 if(endmsgvalue <= 50){
   var endmsg="You need to bone up on your North Devon Fish!";
 }else if(endmsgvalue >50 & endmsgvalue <= 80){
 var endmsg="Well Done!";
 }else{
 var endmsg="Fantastic you know your North Devon Fish!";
 }
  alert("Game has ended and you scored "+correctcounter+" out of "+numberofgoes+". "+endmsg);
  game2_marker=1;
  game_2_start=0;
  document.getElementById('fish_game2').src ="images/fishing/blank_fish.jpg";
  return false;
 }
 randomnumber2=getrandnumb2();
 if(randomnumber2 == lastfish){
 getrandnumb2(randomnumber2);
 }else{
 lastfish=randomnumber2;
 }
 game2_marker++
 document.getElementById('fish_game2').src ="images/fishing/"+fishtype[randomnumber2];
}

//  End -->
