/*** HashThat! ***/
var facts = new Array(15);

facts[0] = "<strong>The Shaved-Head Secret Mail: For all your encrypted postal requirements.</strong> In ancient Greece, to send messages secretly, the Greek generals shaved the head of their servants, wrote the message on their heads, waited for the hair to grow back and sent them on their way to the recipient.";

facts[1] = "<strong>Navajo code talkers: </strong>During World War II, the US Army enlisted people from the Navajo tribe to translate the secret messages to be sent by wires, into the Navajo native language, which only a handful of people knew at that time. It would be Greek and Latin, rather Navajo, to anyone trying to tap the lines!";

facts[2] = "<strong>The Beale Cipher: </strong>This cipher text contains instructions to locate buried treasure in Virginia estimated to be worth over 30 million US Dollars today.";

facts[3] = "It is said that the ancient Chinese wrote messages on silk, crushed it into a tiny ball and made the 'post man' swallow it after covering it with wax! Cryptography taken to ne limits.";

facts[4] = "Mission Impossible 3, the movie, featured a microdot containing a video file. It was hidden behind a postage stamp.";

facts[5] = "<strong>Kerckhoffs' Principle: </strong>A cryptosystem's security must depend only on the secrecy of its key and not on the secrecy of its cryptoalgorithm. This law is a fundamental requirement of modern public-key encryption algorithms, whose algorithms are publicly available.";

facts[6] = "Charles Babbage, well-known for his contribution to the field of computing in the form of the Difference Engine and the Analytical Engine, also cracked the Vigenere Cipher and the auto key cipher, the former often described as an 'unbreakable cipher' in his time.";

facts[7] = "The Vigenere Cipher was not invented by Vigenere, though it is named after him! It was invented by Giovan Batista Belas in 1553. Blaise de Vigenere, invented the auto-key cipher.";

facts[8] = "Acupuncture Encryption: In the 1800s, some used to send secret messages by pricking minute holes over the required letters in newspapers.";

facts[9] = "The Fibonacci series is used in a modern crypto algorithm called FISH - FIbonacci Shrinking introduced by Siemens in 1993.";

facts[10] = "Johannes Trithemus, associated with the Tabula Recta was a German monk.";

facts[11] = "The Four Academy Awards Winner, A Beautiful Mind, shows a mathematician, John Nash, who 'gets involved' with the United Stated Department of Defense to crack complex codes. There's an interesting twist in the middle of the movie, which we don't want to give out here, for the sake of those who haven't watched the movie yet.";

facts[12] = "'The most significant organisation driving crypto development by companies such as Intel and Microsoft is not the NSA but Walt Disney.' - Ross Anderson";

facts[13] = "Alvins' secret code written by Clifford Hicks is one of the few kids books which is based on cryptography. It covers everything from the history of cryptography to random experiments!";

facts[14] = "Quantum cryptography is an encryption technique which is a combination of both physics and mathematics. It makes allowance for two communication channels to have a pool of shared and secret information.";

var findex;

function fact()
{
	findex = Math.floor(Math.random() * facts.length);
	
	if(document.getElementById("factinfo"))
	{
		document.getElementById("factinfo").innerHTML = '<img src="images/fact.gif" alt="Knowthat?" />' + facts[findex];	 
	}
}

xAddEventListener(window,"load",fact,false);
