/* Replace the default "Did you know?" quote with random quote. */
/* krudd@uow.edu.au - 28/08/06 */

(function()
{
	// list of quotes
	var quotesList = [
		"There are now only 8 planets? Pluto was (or has just been) demoted to being a dwarf planet in August, 2006?",
		"That there are 206 bones in the adult human body and there are 300 in children (as they grow some of the bones fuse together)?",
		"The poison arrow frogs of South and Central America are the most poisonous animals in the world?",
		"It takes approximately 12 hours for food to entirely digest?",
		"Human jaw muscles can generate a force of 90 kilograms on the molars?",
		"The longest living cells in the body are brain cells which can live an entire lifetime?",
		"The ears of a cricket are located on the front legs, just below the knee?",
		"The Earth's average velocity orbiting the sun is 107,220 km per hour?",
		"A stroke of lightning discharges from 10 to 100 million volts &amp; 30,000 amperes of electricity?",
		"Hydrogen is the most abundant element in the Universe (75%)?",
		"There are more beetles than any other kind of creature in the world?",
		"It takes 8 minutes 17 seconds for light to travel from the Sun's surface to the Earth?",
		"The thermometer was invented in 1607 by Galileo?",
		"The Universe contains over 100 billion galaxies?",
	    "Dolphins use echo-location to catch fish in total darkness?",
		"Some species of bamboo grow at a rate of 90 cm per day?",
		"Oceans cover 71% of the Earth's surface - 360 million square km?",
		"The colour black absorbs heat. White reflects it?",
		"There are 2.5 trillion stars in the Milky Way?",
		"Human ears can detect sounds between frequencies of 20hz and 20,000hz?",
		"Cystallite is the material snooker balls are made from?",
		"The moon moves about two inches away from the Earth each year?",
		"Due to gravitational effects, you weigh slightly less when the moon is directly overhead?",
		"A cows stomach has four compartments?",
		"Mars has two moons, Phobos and Deimos?",
		"It takes two earth years for Mars to complete one orbit around the Sun?",
		"The life span of a taste bud is ten days?",
		"Red has the longest visible wavelength of light, at about 0.7 micrometers?",
		"Butterflies taste with their feet?",
		"The surface of the planet Venus is hotter than Mercury's, although it is almost twice as far from the sun?",
		"Sweat doesn't have a smell; the smell is created by bacteria that thrive in the wetness it creates?",
		"Hearing a sound that is higher than 130 db is painful to humans?",
		"The left lung is smaller than the right lung to provide room for the heart?",
		"A dragonfly's eye contains 30,000 lenses?",
		"Hot water is heavier than cold water?",
		"Lava lamps contain coloured wax and water?",
		"There are 31 pairs of nerves in the spine?",
		"Only 3% of the world's water can be used as drinking water?",
		"Au, the symbol for gold in the periodic table, comes from the Latin word for gold 'aurum'?",
		"The most primitive multicellular animals are sponges?",
		"Zinc is a trace mineral that helps the human body keep its immune system functioning properly?",
		"Dinosaurs existed on the Earth for over 100 million years?",
		"The planet in the solar system with the lowest density is Saturn?",
		"The human nose contains about 5 million scent receptors?",
		"The individual hairs in a polar bear's fur are hollow and transparent?",
		"Relative to size, the strongest muscle in the body is the tongue?",
		"Only female mosquitoes bite?"
		
	];
	
	function setRandomQuote( )
	{
		// get quote div
		var quoteDIV = document.getElementById( "didyouknow" );
		if ( !quoteDIV ) return;
	
		// get paragraph
		var quoteP = quoteDIV.getElementsByTagName( 'p' );
		if ( !quoteP ) return;

		// pick a quote
		var pnum = Math.floor( Math.random() * quotesList.length );
		
		// replace paragraph text	
		quoteP[ 0 ].innerHTML = quotesList[ pnum ];
	}

	window.onload = setRandomQuote;

})();

function insertMovie( movie, width, height )
{
	document.write(
		'<object width="' + width + '" height="' + height + '" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab">' +
		'<param name="src" value="' + movie + '">' +
		'<param name="autoplay" value="false">' +
		'</object>'
	);
}
