

///////////////////////////////////////////////////////////////////////////////////////////////
/* 	ponder.js
	Code was created by C. Eton. Statement author unknown.  
 
 	Only 1 item need to be edited:

	1.  The Statements array variable.

*///////////////////////////////////////////////////////////////////////////////////////////////



///////////////////////////////////////////////////////////////////////////////////////////////
// List the statements to display.  Add statements as necessary.  


var Statements = new Array(

	'Cats have lived with humans for about 4000 years. But they still wont come when you call them. ',
	'A cat named Towser eliminated 28,899 mice while he was employed by the Glenturret distillery near Crieff, Tayside, England, a cat world record. He retired at the ripe old age of 24 ', 
	'The only live animal allowed in ancient Roman temples was the cat. ', 
	'If man could be crossed with the cat, it would improve man and deteriorate the cat. - Mark Twain ', 
	'A cat has approximately 60 to 80 million olfactory cells while a human has about 5 to 20 million ', 
	'A group of cats is called a clowder, a group of kittens is called a kindle. ', 
	'In 1987 cats overtook dogs as the number one pet in America. ', 
	'There are two means of refuge from the miseries of life: music and cats. - Albert Schweitzer ', 
	'A cat can jump as much as seven times its height. ', 
	'A cat cannot see directly under its nose. This is why the cat cannot seem to find tidbits on the floor. ', 
	'A cat&#039;s jaw cannot move sideways. ',
	'The normal body temperature of a cat is 101.5 degrees F - 38.6 C ',
	'A fifteen year old cat has probably spent ten years of its life sleeping. ',
	'A large majority of white cats with blue eyes are deaf. White cats with only one blue eye are deaf only in the ear closest to the blue eye. ',
	'Abraham Lincoln loved cats. He had four of them while he lived in the White House. His cat, Tabby, was the first of several White House cats. ',
	'All cats are members of the family Felidea. Interestingly enough, the cat family split from the other mammals at least 40,000,000 years ago, making them one of the oldest mammalian families. ',
	'Ancient Egyptians believed that Bast was the mother of all cats on Earth. They also believed that cats were sacred animals. ',
	'A cat can sprint at about thirty miles per hour. ',
	
	'At night a cat can gather into the extra-large corneas and lenses of its eyes more than six times the amount of light than humans can. Seeing far better than humans do at night time and tending to focus best at a distance of eight to twenty feet makes cats excellent night time hunters.',

	'Black cat superstitions originated in America. In Asia and England, a black cat is considered lucky.',

	'Both humans and cats have identical regions in the brain responsible for emotion.',

	'Calico cats are nearly always female.',

	'Cardinal Richelieu was so fond of cats that he shared his home with 14 of them. Specially appointed attendants cared for them, and upon his death, the Cardinal left all his worldly wealth to his feline companions.',

	'Cat families usually play best in even numbers. Cats and kittens should be acquired in pairs whenever possible.',

	'Cat scratch disease, a benign but sometimes painful disease of short duration, is caused by a bacillus. Despite its name, the disease can be transmitted by many kinds of scratches besides those of cats.',

	'Cats are attracted to automobile antifreeze because of its sweet taste. IT IS POISONOUS!!!',
	
	'Cats are sometimes born with extra toes. This is called polydactyl.',

	'Cats are the only domestic animals that walk directly on their claws, not on their paws. This method of walking is called &#039;&#039;digitigrade.&#039;&#039; ',
	
	'When cats scratch furniture, it isn&#039;t an act of malice. They are actually tearing off the ragged edges of the sheaths of their talons to expose the new sharp ones beneath.',

	'Cats average 16 hours of sleep a day, more than any other mammal.',

	'Cats bury their feces to cover their trails from predators.',

	'Cats can donate blood to other cats.',

	'Cats can get &#039;&#039;age spots&#039;&#039;. These are black spots on the skin that are often seen around the lips, eyes, and nose; and usually start when the cat is three to five years of age.',

	'Cats can get bored. They show their boredom by excessive licking, chewing, or biting.',

	'Cats can have freckles. They can appear anywhere on a cat&#039;s skin and even in its mouth.',

	'Cats can learn tricks. They just sometimes choose not to.',

	'Cats can see color. Studies have shown that cats can distinguish between red and green&#059; red and blue&#059; red and gray&#059; green and blue&#059; green and gray&#059; blue and gray; yellow and blue, and yellow and gray.',

	'Cats can see up to 120 feet away. Their peripheral vision is about 285 degrees.',

	'Cats have 13 ribs.',

	'Cats have a homing ability that uses its biological clock, the angle of the sun, and the Earth&#039;s magnetic field.',

	'Cats have a third eyelid, called a haw, that is rarely visible. If it can be seen, it could be an indication of ill health.',

	'Cats have AB blood groups just like people.',
	
	'A cat is considered to be senior when they are 8 to 10 years human age. Cats over 12 years of human age are considered geriatric.',
	
	'The longest a cat has ever lived is 34 (!!!) years.'

);


/*
	GetStatement( ) is the primary function.  It assumes the following:
	
	1.  The HTML file contains a form named "statementform".
	2.  Within the statement form, there is a textarea or textbox named "statement".               
*/

function GetStatement(outputtype) //modified by javascriptkit.com to either write out result or set innerHTML prop

{
	if(++Number > Statements.length - 1) Number = 0;
	if (outputtype==0)
	document.write(Statements[Number])
	else if (document.getElementById)
	document.getElementById("cat_nips").innerHTML=Statements[Number];
}


//  The GetRandomNumber( ) function extracts a random number within a given range.


function GetRandomNumber(lbound, ubound) 
{
	return (Math.floor(Math.random() * (ubound - lbound)) + lbound);
}


// The Number variable keeps track of which statement to display.  It will start at a random point.                

var Number = GetRandomNumber(0, Statements.length - 1);
