/**author Anubhav Chopra
 * 
 * Instructions on how to add new Fun Facts:
 * 			1.	NOTE: It does not matter whether you add the Fun Facts text on top or the bottom, since its "random"
 * 			2.  NOTE: The total_item++ automatically takes care of index, so you don't have to manually type it in :)
 * 			3.  Just copy textArray[total_items++] = ""; add this under the 'Add new item here' comment.
 * 			4.	Now inside the "" or textArray[total_items++] = ""; just add your text. 
 * 			5.	It should be working! :)
 * 			6.	NOTE: It is random, so you might not be able to see it right away, but keep on refreshing the browser. 
 * **/

/*DO NOT TOUCH*/
var rand;
var total_items = 0;
var textArray = new Array();
/**************/

/*Add new item here, either on top or bottom -it does not matter since its random!*/
textArray[total_items++] = "When provoked, the hagfish, or \"snot eel\", secretes copious amounts of sticky mucous to help slip away from predators. It then cleans itself of its own slime by tying itself in knots!";
textArray[total_items++] = "Seahorses and pipefishes are the only species in the animal kingdom in which the males \"give birth.\" The male seahorse carries and fertilizes the egg of the female.";
textArray[total_items++] = "The coelacanth has limb-like fins, suggesting that it may be a close living ancestor of the tetrapods. Coelacanths were thought to be extinct since the Cretaceous, that is, until one turned up in a shark gill net off the coast of South Africa in 1938.";	
textArray[total_items++] = "The remora, or suckerfish, has a modified first dorsal fin that allows it to suction onto its host. They often attach themselves to sharks and feed on their leftover food and feces. Some species of remora can grow up to three feet long!";
textArray[total_items++] = "The Antarctic icefishes have special adaptations which allow them to survive the chilly sub-zero temperatures of the Southern Ocean: most species have antifreeze in their blood!";
textArray[total_items++] = "In some species of anglerfish, the tiny males latch onto the larger female and never let go! The parasitic males bite onto the flank of the female and secrete a digestive enzyme that fuses the pair together to the point where they share one circulatory system.";
textArray[total_items++] = "Flying gurnards don't actually fly, but walk along the sea floor on their pelvic fins. The name stems from their enlarged, wing-like pectoral fins.";
textArray[total_items++] = "When agitated, the mottled soapfish secretes a lather of toxic mucous through its skin. These fish probably have few predators because their soapy secretion causes hemolysis -- the bursting open of red blood cells -- in their attacker.";
textArray[total_items++] = "Cookiecutter sharks of the genus <em>Isistius</em> use their pale green bioluminescent underbellies to match the sea surface. A small non-luminescent patch of skin deceives the shark's prey into thinking the shark is a much smaller fish.";
textArray[total_items++] = "The anomalopid flashlight fishes have light organs beneath their eyes. These fishes can regulate the amount of light they give off by rotating the organ downward or by \"blinking\" a black membrane to cover it.";
textArray[total_items++] = "<em>Barbourisia rufa</em>, the velvet whalefish, earned its named because its body and fins are covered in tiny spicules, rendering it velvety to the touch.";
textArray[total_items++] = "Cichlids are important to the study of evolution and speciation. The famous cichlids of the African Rift Valley lakes of Victoria, Malawi and Tanganyika are very closely related but also specialized and morphologically diverse.";
textArray[total_items++] = "The sculptured sea-dragon, <em>Pegasus lancifer</em>, is found off the southern coast of Australia. Its entire head, body and tail are armored by an array of bony, thorny rings, arranged in a star-shaped pattern.";
textArray[total_items++] = "Thresher sharks use their enormous tails to strike and stun their prey. The thresher shark tail is can be as long or longer than the rest of the shark.";
textArray[total_items++] = "The common mudskipper is an amphibious air-breather. Spending most of its time out out of the water, it is able to survive as long as it is able to stays wet.";
textArray[total_items++] = "The four-eyed fish, <em>Anableps anableps</em> can see both above and below the water at the same time. The lens of its eye is asymmetrical.";
textArray[total_items++] = "The blind tetra, <em>Astyanax jordani</em> has eyes that are completely covered by skin and other tissue. They begin life with normal eyes, but within two weeks the eyes distort and tissue begins to grow over them.";
textArray[total_items++] = "The hatchet-shaped hatchetfish of the family Sternoptychidae use the strategy of counterillumination to evade predators. Photophores on their bellies produce light which disguises their silhouette from potential predators lurking below.";
textArray[total_items++] = "The ghost shark, also known as the elephant shark, has a remarkable trunk-like snout which resembles the cutting blade of a plough.";
textArray[total_items++] = "<em>Catlocarpio siamensis</em>, the giant barb, is one of the largest members of the carp family, growing up to 3 m in length.";
textArray[total_items++] = "The razorfish, <em>Centriscus scutatus</em>, forms large schools in the 'head down' position.";
textArray[total_items++] = "The Salt Creek pupfish, found only in Death Valley, California can tolerate extreme climate conditions. It inhabits shallow, salty, warm waters of Salt Creek which dry up into a series of marshes during the summer months.";
textArray[total_items++] = "The blobfish, <em>Psychrolutes marcidus</em>, has no gas bladder, but instead maintains its bouyancy because its body (a fleshy gelatinous mass) is less dense than the surrounding seawater.";
textArray[total_items++] = "The placoderms (extinct in the late Devonian) have armored plates all over their bodies and were among the first of the jawed fishes.";
textArray[total_items++] = "California beaches are famous for their \"grunion runs.\" During the summer months for four nights after the full moon and for four nights after the new moon, the small silver grunions exit the water in numbers to spawn on the beach.";
textArray[total_items++] = "The zebra danio, a popular aquarium fish, is also the standard research animal for the study of developmental genetics.";
textArray[total_items++] = "The cyprinid carps are the first fish to develop pharyngeal dentition. They have a second set of jaws in the throat that are derived from modified tooth-bearing pharyngeal arches.";
textArray[total_items++] = "Some members of the family Cyprinidae display polyploidy, that is, instead of 2 homologous sets of chromosomes in the cell nucleus (like humans), some cyprinids have 3 (triploid), 4 (tetraploid), or 5 (hexaploid), etc.";
textArray[total_items++] = "Molas, or ocean sunfishes, are the most advanced among the teleosts. They're also among the most fecund.  A female <em>Mola mola</em> can produce up to 300 million eggs at a time.";
textArray[total_items++] = "Molas do not have true tails. Their \"pseudocaudal\" tail fin is formed by modified elements of the dorsal and anal fins.";
textArray[total_items++] = "The common mola (<em>Mola mola</em>) is the world's heaviest bony fish, achieving weights as much as 2235 kg (4927 lbs).";
textArray[total_items++] = "What do car tires, cuckoo clocks and --- all have in common? They've all purportedly been found in the belly of the great white shark -- Carcharodon carcharias.";

/*DO NOT TOUCH*/
rand_box();
function rand_box(){
  rand = parseInt(Math.random()*(total_items-1));

}

document.write('<div id="rand_box_ff">');
document.write('<h3 class ="rand_duk_ff">Fun Facts</h3>');
document.write('<div class = "rand_box_text_ff">'+textArray[rand]+'</div></div>');


