function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_showHideLayers() { //v3.0A Modified by Al Sparber and Massimo Foti for NN6 Compatibility
  var i,p,v,obj,args=MM_showHideLayers.arguments;if(document.getElementById){
   for (i=0; i<(args.length-2); i+=3){ obj=tmt_findObj(args[i]);v=args[i+2];
   v=(v=='show')?'visible':(v='hide')?'hidden':v;
   if(obj)obj.style.visibility=v;}} else{
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }}
}

function tmt_findObj(n){
	var x,t; if((n.indexOf("?"))>0&&parent.frames.length){t=n.split("?");
	x=eval("parent.frames['"+t[1]+"'].document.getElementById('"+t[0]+"')");
	}else{x=document.getElementById(n)}return x;
}

function fnNoLines(){
for (l=0;l<document.links.length;l++) {
document.links[l].onfocus = document.links[l].blur;
}
}

	function displayWindow(theURL,winName,width,height,features) { //v3.1
    var ver = parseInt(navigator.appVersion.substring(0,1));
	var window_width = width;
    var window_height = height;
    var newfeatures= features;
    var window_top = (screen.height-window_height)/2;
    var window_left = (screen.width-window_width)/2;
    newWindow=window.open(''+ theURL + '',''+ winName + '','width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + ',features=' + newfeatures + '');
    if ((!((navigator.appName == "Netscape")&&(ver==2))) && (!((navigator.appName == "Microsoft Internet Explorer")&&(ver<4))))
		{
				setTimeout("if (newWindow) newWindow.focus();",250);
		}    
}
		
function popup(fname,pname,m)
{
	ver = parseInt(navigator.appVersion.substring(0,1));
	if (navigator.appname == "Netscape")
		{ newWin=window.open(fname,pname,'scrollbars=auto,resizable=no,height=480,width=480');}
	else
		{ newWin=window.open(fname,pname,'scrollbars=auto,resizable=no,height=480,width=476');}
	
	//workaround for netscape2 bug on mac
			if ((navigator.appName == "Netscape")&&(ver==2))
			{
					newWin=window.open(fname,pname,'scrollbars=auto,resizable=no,height=480,width=480');
					newWin=window.open(fname,pname,'scrollbars=auto,resizable=no,height=480,width=480');
			}
			if ((!((navigator.appName == "Netscape")&&(ver==2))) && (!((navigator.appName == "Microsoft Internet Explorer")&&(ver<4)))){
					setTimeout("if (newWin) newWin.focus();",1000);
			}
}

function popup640(fname,pname,m)
{
	ver = parseInt(navigator.appVersion.substring(0,1));
	if (navigator.appname == "Netscape")
		{ newWin=window.open(fname,pname,'scrollbars=auto,resizable=no,height=480,width=640');}
	else
		{ newWin=window.open(fname,pname,'scrollbars=auto,resizable=no,height=480,width=636');}
	
	//workaround for netscape2 bug on mac
			if ((navigator.appName == "Netscape")&&(ver==2))
			{
					newWin=window.open(fname,pname,'scrollbars=auto,resizable=no,height=480,width=640');
					newWin=window.open(fname,pname,'scrollbars=auto,resizable=no,height=480,width=640');
			}
			if ((!((navigator.appName == "Netscape")&&(ver==2))) && (!((navigator.appName == "Microsoft Internet Explorer")&&(ver<4)))){
					setTimeout("if (newWin) newWin.focus();",1000);
			}
}




var howMany = 36;
var facts = new Array(howMany+1);

function rndnumber(){
var randscript = -1;
while (randscript < 1 || randscript > howMany || isNaN(randscript)){
randscript = parseInt(Math.random()*(howMany+1))+1;
}
return randscript;
}
function doquote()
{
facts[1]=" &#147;Always do sober what you said you'd do drunk. That will teach you to keep your mouth shut.&#148; <i>Ernest Hemingway</i>"
facts[2]=" &#147;In wine there is wisdom. In beer there is strength. In water there is bacteria.&#148; <i>German Proverb</i>"
facts[3]=" &#147;Yes, madam, I am drunk. But in the morning I will be sober and you will still be ugly.&#148; <i>Winston Churchill</i>"
facts[4]=" &#147;To alcohol! The cause of... and solution to all of life's problems!&#148; <i>Homer Simpson</i>"
facts[5]=" &#147;People who drink to drown their sorrow should be told that sorrow knows how to swim.&#148; <i>Ann Landers</i>"
facts[6]=" &#147;The first draught serveth for health, the second for pleasure, the third for shame, the fourth for madness.&#148; <i>Sir Walter Raleigh</i>"
facts[7]=" &#147;My books are water; those of the great geniuses are wine. Fortunately, everybody drinks water.&#148;  <i>Mark Twain</i> "
facts[8]=" &#147;Ethyl alcohol is a colourless flammable liquid used to preserve fish.&#148; <i>World Bank</i>"
facts[9]=" &#147;A bottle of wine contains more philosophy that all the books in the world.&#148;<i>Louis Pasteur</i>"
facts[10]=" &#147;Drink to me.&#148; <i>Pablo Picasso's last words</i>"
facts[11]=" &#147;...it [alcohol] provokes the desire, but it takes away the performance...&#148; <i>Shakespeare (Macbeth,   Act 2 scene 3)</i>"
facts[12]=" &#147;Work is the curse of the drinking class.&#148; <i>Oscar Wilde</i>"
facts[13]=" &#147;Drinking makes such fools of people, and people are such fools to begin with, that it's compounding a felony.&#148; <i>Robert Benchley</i>"
facts[14]=" &#147;Oh that a man puts an enemy to his lips that steals his brains away.&#148; <i>Anon</i>"
facts[15]=" &#147;When the wine is in, the wit is out.&#148; <i>Dutch proverb</i>"
facts[16]=" &#147;The problem with some people is that when they aren't drunk, they're sober.&#148; <i>William Butler Yeats</i> "
facts[17]=" &#147;He that drinks fast, pays slow.&#148;<i> Benjamin Franklin</i>"
facts[18]=" &#147;En vino veritas&#148; (Translated: In wine there is truth.) <i>Anon</i>"
facts[19]=" &#147;Always remember that I have taken more out of alcohol than alcohol has taken out of me.&#148; <i>Winston Churchill</i>"
facts[20]=" &#147;Value water, but drink wine.&#148; <i>Czech proverb</i>"
facts[21]=" &#147;Let us have wine and women, mirth and laughter. Sermons and soda water the day after.&#148; <i>Lord Byron</i>"
facts[22]=" &#147;Drunkenness is temporary suicide: the happiness that it brings is merely negative, a momentary cessation of unhappiness.&#147; <i>Bertrand Russell</i>"
facts[23]=" &#147;Give strong drink unto him that is ready to perish, and wine unto those that be of heavy hearts. Let him drink, and forget his poverty, and remember his misery no more.&#148; <i>Proverbs 31: 6-7 </i>"
facts[24]=" &#147;Alcohol is the anesthesia by which we endure the operation of life.&#148; <i>George Bernard Shaw</i>"
facts[25]=" &#147;Claret is the liquor for boys; port for men; but he who aspires to be a hero must drink brandy.&#148; <i>Samuel Johnson</i>"
facts[26]=" The most expensive bottle of wine was sold at an auction at Christies, London, in December 1985. The buyer paid &pound;105,000 for a bottle of 1787 Chateau Lafitte claret that was engraved with the initials of Thomas Jefferson. Eleven months after the sale, the cork dried out, slipped into the bottle and spoiled the wine, making it the most expensive bottle of vinegar!" 
facts[27]=" The strongest alcohol is an Estonian liquor distilled from potatoes between the two world wars. It was 98 per cent alcohol." 
facts[28]=" Alcohol features in almost a third of all UK divorce petitions, which means that the drinking habits of one or both partners have contributed to the bust up." 
facts[29]=" Alcohol is believed to feature as reason behind 25% of school exclusions in the UK." 
facts[30]=" &pound;200 million is spent each year on alcohol advertising." 
facts[31]=" Alcohol-related absenteeism and poor work performance costs British industry more than &pound;2bn a year."
facts[32]=" A circa 1116BC Chinese imperial edict claimed that the use of alcohol in moderation was required by heaven." 
facts[33]=" Researchers have determined that 1 acre of potatoes can yield 1,200 gallons of ethyl alcohol in a year." 
facts[34]=" In olden times, saloons offered free lunches, most of which were overly salted, forcing the thirsty diner to buy an alcoholic drink. Just goes to show there's no such thing as a free lunch." 
facts[35]=" At an extravagant party thrown by the Hon. Edward Russel, captain general of the English forces, the fountain in his garden was used as a giant punch bowl. The cocktail included 560 gallons of brandy, 1,300 pounds of sugar, 25,000 lemons, 20 gallons of lime juice, and 5 pounds of nutmeg. Russel's bartender rowed about in a small boat, filling up the punch cups for the awed guests." 
facts[36]=" A traditional drink found throughout Andean countries is chicha, made from fermented maize or rice. The fermentation process is augmented by human saliva in some rural parts of Ecuador. Chicha makers, usually women, chew the ingredients and spit them back in the pot to brew." 
quo = rndnumber();

return facts[quo];}
