﻿// index.js
// Andyville index.html scripts v1.01.17; 5/26/05; last: 01/03/10; (C) 2005-2010 Dimbee
// v1.01.17 01/03/10: Replaced 10 Years banner with Est 1999 banner. Changes slogan 19 and 30 to "Shiny!" Increased popularity in slogan 24.
// v1.01.16 4/29/09: Added slogan 35
// v1.01.15 3/13/09: Changed title code to new, more modern, logo. Added Andy outline and 10 Years banner. Changed slogan 27 from 9 to 10 years
// v1.01.14 6/26/08: Changed title code to new logo that reflects ninjaandy.com domain. Added slogan 34.
// v1.01.13 4/20/08: Changed slogan 27 from 8 to 9 years. Added slogan 33
// v1.01.12 4/13/07: Changed old quote 5 to avoid problems with ATSPACE word filter. Changed slogan 27 from 7 to 8 years. Added slogan 32
// v1.01.11 2/20/07: Changed title code in outCommon to standard theme 
// v1.01.10 1/14/07: Changed title code in outCommon to Andy Revolution theme 
// v1.01.09 12/8/06: Disabled flying crap in complex output. 
// v1.01.08 11/15/06: Added new random quote
// v1.01.07 6/13/06: Added titleAV function, removed titleAdd and titleClean functions
// v1.01.06 6/11/06: Added titleAdd function and titleClean function
// v1.01.05 4/15/06: Added 6 slogans and 14 quotes
// v1.01.04 2/24/06: Pulled a slogan out of the pool
// v1.01.03 2/20/06: Tweaked orientation of slogan line in outSimple() for Firefox in Linux
// v1.01.02 1/11/06: Added link to version history in title code
// v1.01.01 11/6/05: Changed images in title code
// v1.01.00 10/2/05: Pulled all title code into script, creating non-ie friendly version and streamlining ie version
//			changed all instances of &quot to &#34 because of issues with *zilla
//			made changes to avoid odd characters appearing after inadvertant "1 and "4 usages
// v1.00.00 5/26/05: Initial Version.
// REQUIREMENTS: common.js (called from within)

var NUMQUOTES=101;
var NUMSLOGANS=41;

document.write("<script src='common.js' type='text/javascript'></script>"); //call common.js

function titleAV() //usage: document.title=document.title + titleAV(). Title MUST be specified on page
{
	return " v" + VERSION;
}

function pickQuote()
{
	var num=randInt(NUMQUOTES);
	
	if(num==1)
		quote="There is no such thing as &#34workahol&#34, &#34popahol&#34, or &#34sexahol&#34, thus, using those words makes you look like a blithering idiot."
	else if(num==2)
		quote="&#34Delivered to your door&#34 actually means &#34delivered to your mailbox.&#34 My mailbox is far from my door."
	else if(num==3)
		quote="We don't own magical browsers that know where we're going without us typing something in."
	else if(num==4)
		quote="Doesn't the &#34purchase&#34 cancel out the &#34free?&#34"
	else if(num==5)
		quote="So, if you're an eskimo buying a Compaq during a solar eclipse who's getting " + "M" + "S" + "N internet access, you're set, right?"
	else if(num==6)
		quote="Who is this leading brand anyway? They must suck because everybody claims to be ahead of them."
	else if(num==7)
		quote="It's not that it is such a bad song. It is just that he has no idea what he's talking about."
	else if(num==8)
		quote="The songwriter obviously doesn't know a //e from a PS/2."
	else if(num==9)
		quote="Maybe next time the stupid bitch will make sure she's not singing the utterings of a special ed dropout before she releases an album."
	else if(num==10)
		quote="Maybe I don't speak for everybody in the online public, but in my eyes, only the most idiotic people would buy something from an ad they saw in an unsolicited email from hgshkdgf@dfhhj.dy."
	else if(num==11)
		quote="It's like selecting a college because you saw it on a billboard!"
	else if(num==12)
		quote="However, do they expect you to think: &#34Hmm, I don't remember sending this to myself. Well, might as well open it!&#34"
	else if(num==13)
		quote="Apparently, illiteracy is a requirement."
	else if(num==14)
		quote="You also must have an indistinct foreign accent that the person you're calling can't quite put their finger on."
	else if(num==15)
		quote="You have to remember: THEY called ME! They're askin' for trouble!"
	else if(num==16)
		quote="I like to ask them questions about green cards and citizenship exams."
	else if(num==17)
		quote="In our day of modern conveniences and supposed enlightenment, you'd think people would have common sense."
	else if(num==18)
		quote="What good is this information to you? None really."
	else if(num==19)
		quote="I've heard many things from the common misconceptions to the utterly ridiculous"
	else if(num==20)
		quote="Will there be riots, chaos in the streets, killing, screaming, explosions, etc everywhere? I'm afraid so, but it will not be computer related."
	else if(num==21)
		quote="In theory, everyone would be equal, no one person better than any other. Ya know what they call that on a large scale? Communism."
	else if(num==22)
		quote="And what will they do in life? Most likely, absolutely nothing; probably live off someone else or the government for the rest of their life."
	else if(num==23)
		quote="Do you call a malfunctioning toaster a special toaster? Do you call a flaming car special?"
	else if(num==24)
		quote="On Friday, they don't have any work at all. It's party day. They watch movies and eat pizza and candy all day. I am not making this up! If there is no school on Friday, party day is Thursday."
	else if(num==25)
		quote="It's like calling a soap box derby the &#34special Indy 500.&#34"
	else if(num==26)
		quote="I tell you one thing, the kid in the electric wheelchair has a big advantage in the long distance race"
	else if(num==27)
		quote="Who I really feel sorry for is that really dumb, uncoordinated kid who's really not good at anything, but doesn't have a mental problem, so he has to repeat his senior year a couple of times, and get no help whatsoever from anybody."
	else if(num==28)
		quote="Or, in a car race, give the crappy driver a ten minute head start!"
	else if(num==29)
		quote="Sometimes people just don't get it."
	else if(num==30)
		quote="Duct tape can be used for everything from re-appolstering furniture, to replacing a fan belt, to even patching a tire on an old manure green Ford"
	else if(num==31)
		quote="Not only is this immoral and childish, but it borders on illegality."
	else if(num==32)
		quote="IT STARTS AT AN INNOCENT TOWN GATHERING, WITH A SHAMELESS TOBY KEITH PROMOTION. THEN, ALL OF THE SUDDEN, I WAS LOST."
	else if(num==33)
		quote="THEY HEAD OFF AND SOME IDJUT WITH AN EYEPATCH STARTS SHOOTIN AT EM!"
	else if(num==34)
		quote="THEN THEY GET CHASED BY RUSSIANS. RUSSIANS?!? WHAT?!?"
	else if(num==35)
		quote="THEY NEVER REALLY ACCOMPLISHED THE ORIGINAL GOAL, OR MUCH OF ANYTHING!"
	else if(num==36)
		quote="If you don't know the disclaimer by now, you obviously are one of the people talked about on this page."
	else if(num==37)
		quote="Am I the only person who is getting incredibly tired of stupid people?"
	else if(num==38)
		quote="While usually inperceptible in appearance, stupid people lurk amongst us every day."
	else if(num==39)
		quote="Actually, later I found out he was Canadian, which explained a lot."
	else if(num==40)
		quote="Then, she asked me a question: &#34You think if we put water in the tank it would be enough to get me to town?&#34"
	else if(num==41)
		quote="Then, she asked me: &#34If I'm out of gas, how come the radio works?&#34"
	else if(num==42)
		quote="I explained how a car has a magic device called a battery."
	else if(num==43)
		quote="Spark plugs was already on the board, so this woman asks Louie if spark plugs and shocks are the same thing."
	else if(num==44)
		quote="If I'm stupid, and I have a grade 3 letter grades over yours, what does that make you, gray matter?"
	else if(num==45)
		quote="I'm just a country boy trying to make sure the stupid people don't blow everything up."
	else if(num==46)
		quote="It's not calculus! It ain't even algebra! I've seen second graders that can barely read chuggin out these things!"
	else if(num==47)
		quote="Don't get all teary on me."
	else if(num==48)
		quote="Poké This!"
	else if(num==49)
		quote="It's been very easy to trick Americans into buying crap, especially children."
	else if(num==50)
		quote="Now you all think I'm cRaZy!"
	else if(num==51)
		quote="The views of Prime Minister Ninja Andrew Nathaniel Panda Jr do not necessarily reflect the views of Prime Minister Ninja Andrew Nathaniel Panda Jr."
	else if(num==52)
		quote="Sometimes, school things can be fun!"
	else if(num==53)
		quote="In no way have these answers been molested!"
	else if(num==54)
		quote="&#34My dad was is army in the civil war because it is fun to be freedom agin and agin but it's fun to do after civil war but it is fun to do when your in the civil war today and it is great to be home.&#34"
	else if(num==55)
		quote="&#34Can you tell me how to make it take I and how you take a pichtkore I'll but how you maka home tonight&#34"
	else if(num==56)
		quote="&#34You can ride in air plane was a fly people in the airplane today and tomorow and today and tomorow&#34"
	else if(num==57)
		quote="&#34We have to write or vote about 1820 weman said women shouldbe to have vote or write neot about a mill today or tonight and tomorow night&#34"
	else if(num==58)
		quote="&#34he soldsis car for #100 I need a newspaper to rea d and put a sine that said marry christmas ever body + one for all.&#34"
	else if(num==59)
		quote="&#34&#49.cook dinner<br>2.wash the cothing<br>3.pet the big cats&#34"
	else if(num==60)
		quote="&#34Because you space sute to the moon for him to float in the mide air tonight and it will be funny&#34"
	else if(num==61)
		quote="In 1983, Christopher Columbus sailed west from Utah."
	else if(num==62)
		quote="Cheese in the cheese began making some of their cheese in their new cheese."
	else if(num==63)
		quote="There were many battles between the aliens and the chimps. Many chimps were killed. But many more aliens and buffalo were killed."
	else if(num==64)
		quote="In 1998, the United States sent an AMC Gremlin named La Cucaracha to Cowling. The Gremlin blew up and 1260 Hobos were killed."
	else if(num==65)
		quote="Two countries, Friendsville and Bone Gap, are islands in the middle of land."
	else if(num==66)
		quote="Trust me, you won't learn anything from this website."
	else if(num==67)
		quote="...at present, contains thirty-seven peasants and a goat. For hundreds of years, its existence was unknown to the rest of the world after their entire population of thirty-eight serfs and a yak mysteriously disappeared."
	else if(num==68)
		quote="Archaeologists say that the city was actually constructed by traveling salesmen in 1300AD."
	else if(num==69)
		quote="For instance, they could predict the rising and setting of the sun within an error factor of twelve hours."
	else if(num==70)
		quote="Even though they accomplished amazing feats of architecture, including a suspension bridge six feet in length, they never figured out how to build a second floor on a building."
	else if(num==71)
		quote="The Mayor watches as Old Man Henderson shows off his &#34got your nose&#34 trick to an &#34ingrateful little whipper snapper.&#34"
	else if(num==72)
		quote="Refrain from pretending to be the canine unit over the radio by barking like an idiot."
	else if(num==73)
		quote="#3: When on duty, and nature calls, piss out the passenger side window from the driver side so that citizens don't see your &#34deputy&#34 hanging out the window. (Rule #3 does not apply to cops with partners.)"
	else if(num==74)
		quote="Although the back seat of a squad car is a convenient place to put inlaws, try not to leave them there over the weekend. That is the reason the car has a trunk."
	else if(num==75)
		quote="Please do not be fooled by cunning forgeries. Vehicles with license plates written in magic marker are probably not registered. Also, Drivers Licenses written in pencil are most likely not legitimate (unless you're in Indiana)"
	else if(num==76)
		quote="When in uniform, always keep up the dignity an officer of the law should. When about to do something dishonorable, strip out of the uniform, and act accordingly."
	else if(num==77)
		quote="&#34Hey toaster break people, your chicken soup lectrocuted kitty!&#34"
	else if(num==78)
		quote="A few people have asked me why I didn't just port Andyville. There are good reasons for that:<br>It's offensive<br>It's sloppy<br>It's offensive<br>It's a bandwidth hog<br>It's offensive<br>It's redundant<br>And finally, it's offensive!"
	else if(num==79)
		quote="It, like Andyville, is extremely profane and shouldn't be viewed by people who are easily offended or by employees of Disney."
	else if(num==80)
		quote="The premise is that it is the site of a revolving door mental facility."
	else if(num==81)
		quote="Don't you have anything better to do than read my inane babble?"
	else if(num==82)
		quote="That fateful July morning, my momma shotted me out."
	else if(num==83)
		quote="I *allegedly* attacked the zookeeper who was cleaning up my doodies and was kicked out of the zoo."
	else if(num==84)
		quote="His sister thinks she's the head of an underground sewer robbing conspiracy."
	else if(num==85)
		quote="I was just innocently cruising the web and I found out that all kinds of carnies and rejects have their own websites."
	else if(num==86)
		quote="He's livin on that bus, ain't he?"

	else if(num==87)
		quote="Yeah, real smooth Casanova. Do you understand how a chatroom works?"
	else if(num==88)
		quote="Of course you're holding the camera! Nobody else will come within 50ft of ya!"
	else if(num==89)
		quote="Aw, and he brought his girlfriend!"
	else if(num==90)
		quote="Little snotty, ain't we Princess Jailbait!"
	else if(num==91)
		quote="This one may actually be mentally challenged!"
	else if(num==92)
		quote="I don't wanna be cool like you, I wanna be cool outside of the fantasy world!"
	else if(num==93)
		quote="Insert your own joke here, it ain't hard."
	else if(num==94)
		quote="Mommy! The strange man's back again!"
	else if(num==95)
		quote="Hold on, I got a flurry of jokes!: <br>1. Hey look, its Andy Richter's drunken uncle Earl! <br>2. I told you he shaved my golden retriever! <br>3. OHMYGOD! HE KILLED DISCO! YOU BASTARD!"
	else if(num==96)
		quote="Urkel Lives!"
	else if(num==97)
		quote="Ain't you the weird guy that lives in the woods and sends people bombs?"
	else if(num==98)
		quote="Mommy! The flasher won't leave me alone!"
	else if(num==99)
		quote="We soon crashed in Cuba, accidentally causing a nuclear holocaust that completely wiped out mankind! Good thing the government covered it up. Nobody will ever find out........."	
	else if(num==100)
		quote="He's an alcoholic and lives by the river in a '72 Bluebird."
	else if(num==101)
		quote="Lets just all unite behind our idiot president George W. Dumbass and support him as he drives us into the ground and wages war on the tiny island nation of Japakistanzanindiana."






	return quote;
}

function pickSlogan()
{
	var num=randInt(NUMSLOGANS);

	if(num==1)
		slogan="It's baaaack!"
	else if(num==2)
		slogan="Leave confused or your money back."
	else if(num==3)
		slogan="Now 95% less offensive!"
	else if(num==4)
		slogan="Our mascot is a ninja panda."
	else if(num==5)
		slogan="Where only pandas are naked."
	else if(num==6)
		slogan="...so a panda, a redneck, and a bear walk into a website..."
	else if(num==7)
		slogan="We've settled all our lawsuits, and we're back for more!"
	else if(num==8)
		slogan="All the flavor with 0 carbs."
	else if(num==9)
		slogan="Hurting your eyes with a red on black color scheme since 1999."
	else if(num==10)
		slogan="&#52 web hosts later, and still going strong!"
	else if(num==11)
		slogan="Pandas, and rednecks, and smarks, oh my!"
	else if(num==12)
		slogan="Contains small parts. Harmful if swallowed."
	else if(num==13)
		slogan="No, not Randyville. That's 3 miles to the south."
	else if(num==14)
		slogan="Slightly more coherent than the Kane/Matt/Lita/Baby/Snitsky/Edge storyline."
	else if(num==15)
		slogan="We're not drunk, but it would be a nice excuse."
	else if(num==16)
		slogan="We've had more hits than MC Hammer and Vanilla Ice combined."
	else if(num==17)
		slogan="No Canadians were harmed in the making of this website."
	else if(num==18)
		slogan="Woohoo! Marked up and scripted in notepad! The ONLY way to code!"
	else if(num==19)
		//slogan="Where if it's a 'zilla, NO FLYING CRAP FOR YOU!"
		slogan="Shiny!"
	else if(num==20)
		slogan="More script than any Hollywood movie in the last 10 years."
	else if(num==21)
		slogan="Home of the incredibly overdone and annoying website versioning system."
	else if(num==22)
		slogan="So, we left the Geocity, took a Webjump over to 8k, and then somehow ended up in atspace... anybody seen my car keys?"
	else if(num==23)
		slogan="If you don't agree with us, you're wrong."
	else if(num==24)
		slogan="The internet's <s>786,543,212,354th</s> 786,543,212,353rd most popular website!"
	else if(num==25)
		slogan="Stop looking at me swan!"
	else if(num==26)
		slogan="Just like Matt Hardy: we will not die!<br>(we just never win)"
	else if(num==27)
		slogan="Yep, this crap has been around for over<s style='font-weight: 100'> 7 </s>&nbsp;<s><b> 8 </b></s>&nbsp;<s><b> 9 </b></s>&nbsp;<b><big> 10 </big></b> years."
	else if(num==28)
		slogan="¡En español!"
	else if(num==29)
		slogan="Warning: This product has been found to cause birth defects in the state of California. Pregnant women should not handle."
	else if(num==30)
		//slogan="Annoying you with a moving title since 1999"
		slogan="Shiny!"
	else if(num==31)
		slogan="Home of Ninja Andy and the Andy Revolution against Anti-Andy Punks and the state of Andyanna... and Douchey McBritterson"
	else if(num==32)
		slogan="If you can make sense of this, you might be... ok, you <b><i>are</i></b> smarter than Jeff Foxworthy"
	else if(num==33)
		slogan="Andrew Nierman's Worst Nightmare"
	else if((num>33) && (num<41)) // slogan 34
		slogan="Home of the ORIGINAL Martial Arts Panda!"
	else if(num==41)		          // slogan 35, oddly enough
		slogan="Ninjaandy.com: So extreme, you'll s*** yourself!"
	else if(num==42)
		slogan=""
	else if(num==43)
		slogan=""
	else if(num==44)
		slogan=""
	else if(num==45)
		slogan=""
	else if(num==46)
		slogan=""
	else if(num==47)
		slogan=""
	else if(num==48)
		slogan=""
	else if(num==49)
		slogan=""
	else if(num==50)
		slogan=""
	else if(num==51)
		slogan=""
	else if(num==52)
		slogan=""
	else if(num==53)
		slogan=""
	else if(num==54)
		slogan=""
	else if(num==55)
		slogan=""
	else if(num==56)
		slogan=""
	else if(num==57)
		slogan=""
	else if(num==58)
		slogan=""
	else if(num==59)
		slogan=""
	else if(num==60)
		slogan=""
	else if(num==61)
		slogan=""
	else if(num==62)
		slogan=""
	else if(num==63)
		slogan=""
	else if(num==64)
		slogan=""
	else if(num==65)
		slogan=""
	else if(num==66)
		slogan=""

	return slogan
}

function getTitle()
{
	// FOR BROWSER DETECTION
	/*
	BrowserDetector()

	Source: Webmonkey Code Library
	(http://www.hotwired.com/webmonkey/javascript/code_library/)

	Author: Rich Blaylock
	Author Email: blaylock@wired.com

	Usage: var bd = new BrowserDetector(navigator.userAgent);
	*/

	//var bd = new BrowserDetector(navigator.userAgent);
	// END BD

	outCommon();

//	if (bd.browser != "IE" || bd.majorver < "4")
		outSimple();

//	else
//	  	outComplex();
}

function outCommon()
{
	document.write("<div align='center' class='title'>");
	document.write("<DIV align='center' id=AndyContainer style='HEIGHT: 320px; POSITION: relative; WIDTH: 562px; Z-INDEX: 0;'>");

/* NORMAL ANDYVILLE TITLE CODE	*/
	// title
	document.write("<DIV id=desk style='HEIGHT: 159px; LEFT: 0px; POSITION: relative; TOP: 80px; WIDTH: 400px; Z-INDEX: 5'>");
	document.write("<IMG height=128 src='avlogo.png' width=400 alt='Dimbee&#39s Andyville'>");
	document.write("</DIV>");

	// version
	document.write("<DIV align='right' id=versionline style='HEIGHT: 33px; LEFT: 0px; POSITION: relative; TOP: 50px; WIDTH: 400px; Z-INDEX: 5'>");
	document.write("<font size='6' face='Arial' color='yellow'>");
	document.write("<a href='versionhistory.html' style='text-decoration: none; color: yellow;' alt='Version History'>" + VERSION + "</a>")
	document.write("</font></DIV>");
	
	// Andy outline
	document.write("<DIV align='left' id=andyoutline style='HEIGHT: 50px; LEFT: 275px; POSITION: absolute; TOP: 85px; WIDTH: 71px; Z-INDEX: 5'>");
	document.write("<img src='andydark.png'>")
	document.write("</DIV>");
	
	// 10 Year Banner
	/*document.write("<DIV align='left' id=decade style='HEIGHT: 60px; LEFT: 115px; POSITION: absolute; TOP: 182px; WIDTH: 130px; Z-INDEX: 5'>");
	document.write("<font face='Arial' color='yellow' style='font-size: 33px'>");
	document.write("10 Years<br></font><font face='Arial' color='yellow' style='font-size: 24px'>&nbsp;of this crap")
	document.write("</font></DIV>");*/
	
	// est 1999 banner
	document.write("<DIV align='left' id=decade style='HEIGHT: 60px; LEFT: 95px; POSITION: absolute; TOP: 185px; WIDTH: 160px; Z-INDEX: 5'>");
	document.write("<font face='Georgia' color='#f0f000' style='font-size: 20px'>");
	document.write("<i>Established 1999</i>")
	document.write("</font></DIV>");
	
/*END NORMAL ANDYVILLE TITLE CODE */
	
	// begin Andy's 1337 title code
	/*document.write("<DIV id=desk style='HEIGHT: 159px; LEFT: 0px; POSITION: relative; TOP: 80px; WIDTH: 400px; Z-INDEX: 5'>");
	document.write("<IMG height=159 src='bleh.gif' width=400 alt='Dimbee&#39s Andyville'></div>");
	document.write("<DIV align='center' id=versionline style='POSITION: relative; TOP: 70px; Z-INDEX: 5'>");
	document.write("<font size='6' face='Arial' color='yellow'>");
	document.write("<marquee scrollamount=3 height=30 style='background: black URL(njandy.jpg) repeat-x center;'><a href='ninjaandyindex.html'><img src='njandy.jpg' border=0 height=30 width=30 alt='Ninja Andy'></a><a href='samindex.html'><img src='sam.jpg' border=0 height=30 width=30 alt='Sam'></a><a href='bearindex.html'><img src='bear.jpg' border=0 height=30 width=30 alt='Bear'></a><a href='crayindex.html'><img src='nocray.jpg' border=0 height=30 width=30 alt='Cray'></a><a href='versionhistory.html' style='text-decoration: none; color: yellow;' alt='Version History'>Version " + VERSION + "</a><a href='crayindex.html'><img src='nocray.jpg' border=0 height=30 width=30 alt='Cray'></a><a href='bearindex.html'><img src='bear.jpg' border=0 height=30 width=30 alt='Bear'></a><a href='samindex.html'><img src='sam.jpg' border=0 height=30 width=30 alt='Sam'></a><a href='ninjaandyindex.html'><img src='njandy.jpg' border=0 height=30 width=30 alt='Ninja Andy'></a></marquee></font></div>")*/
	// end Andy's 1337 title code
	
}

function outComplex()
{
	// slogan
	document.write("<DIV id=sloganline style='HEIGHT: 33px; LEFT: 0px; POSITION: relative; TOP: 0px;  Z-INDEX: 5'>");
	document.write("<font size='5' face='Arial'><B><i><br>");
	document.write("&#34" + pickSlogan() + "&#34");
	document.write("</i></b></font></DIV>");

	// flying crap (temporarily disabled) 
	/*
	document.write("<DIV id=andy1 style='HEIGHT: 81px; LEFT: 481px; POSITION: absolute; TOP: 239px; WIDTH: 81px; Z-INDEX: 9;'>");
	document.write("<img src='cray.jpg' height=30></DIV>");

	document.write("<DIV id=andy2 style='HEIGHT: 81px; LEFT: 481px; POSITION: absolute; TOP: 0px; WIDTH: 81px; Z-INDEX: 8;'>");
	document.write("<img src='bear.jpg' height=30></DIV>");

	document.write("<DIV id=andy3 style='HEIGHT: 81px; LEFT: 0px; POSITION: absolute; TOP: 239px; WIDTH: 81px; Z-INDEX: 7;'>");
	document.write("<img src='njandy.jpg' height=30></DIV>");

	document.write("<DIV id=andy4 style='HEIGHT: 81px; LEFT: 0px; POSITION: absolute; TOP: 0px; WIDTH: 81px; Z-INDEX: 6;'>");
	document.write("<img src='charger.jpg' height=30></DIV>");

	document.write("</div></div>");

	moveAndy('andy1', randInt(maxSpeed));
	moveAndy('andy2', randInt(maxSpeed));
	moveAndy('andy3', randInt(maxSpeed));
	moveAndy('andy4', randInt(maxSpeed));
	moveAndy1('andy1', randInt(maxSpeed));
	moveAndy1('andy2', randInt(maxSpeed));
	moveAndy1('andy3', randInt(maxSpeed));
	moveAndy1('andy4', randInt(maxSpeed));
	window.status='Andyville v' + VERSION + '!';*/
}

function outSimple()
{
	// slogan
	document.write("<br><br><DIV id=sloganline style='Z-INDEX: 5'>");
	document.write("<font size='5' face='Arial'><B><i><br>");
	document.write("&#34" + pickSlogan() + "&#34");
	document.write("</i></b></font></DIV>");

	document.write("</div></div><br>");
}

function moveAndy(Andy, dir)
{
	if(document.all)
	{
		var wtAndy = document.all(Andy).style;
	}
	else if(document.layers)
	{
		var wtAndy = document.AndyContainer.document.layers[Andy];
	}

	if((parseInt(wtAndy.left)<0) || (parseInt(wtAndy.left) > 481))
	{
		dir = dir * -1;
		wtAndy.zIndex = wtAndy.zIndex * -1;
	}

	wtAndy.left = parseInt(wtAndy.left) + dir;
	setTimeout('moveAndy(\'' + Andy + '\', ' + dir +')', 0);
}

function moveAndy1(Andy, dir)
{
	if(document.all)
	{
		var wtAndy = document.all(Andy).style;
	}
	else if(document.layers)
	{
		var wtAndy = document.AndyContainer.document.layers[Andy];
	}

	if((parseInt(wtAndy.top)<0) || (parseInt(wtAndy.top) > 239))
	{
		dir = dir * -1;
		wtAndy.zIndex = wtAndy.zIndex * -1;
	}

	wtAndy.top = parseInt(wtAndy.top) + dir;
	setTimeout('moveAndy1(\'' + Andy + '\', ' + dir +')', 0);
}

// BROWSER DETECTION FUNCTIONS

// Utility function to trim spaces from both ends of a string
function Trim(inString) {
  var retVal = "";
  var start = 0;
  while ((start < inString.length) && (inString.charAt(start) == ' ')) {
    ++start;
  }
  var end = inString.length;
  while ((end > 0) && (inString.charAt(end - 1) == ' ')) {
    --end;
  }
  retVal = inString.substring(start, end);
  return retVal;
}

function BrowserDetector(ua) {

  // Defaults
  this.browser = "Unknown";
  this.platform = "Unknown";
  this.version = "";
  this.majorver = "";
  this.minorver = "";

  uaLen = ua.length;

  // ##### Split into stuff before parens and stuff in parens
  var preparens = "";
  var parenthesized = "";

  i = ua.indexOf("(");
  if (i >= 0) {
    preparens = Trim(ua.substring(0,i));
        parenthesized = ua.substring(i+1, uaLen);
        j = parenthesized.indexOf(")");
        if (j >= 0) {
          parenthesized = parenthesized.substring(0, j);
        }
  }
  else {
    preparens = ua;
  }

  // ##### First assume browser and version are in preparens
  // ##### override later if we find them in the parenthesized stuff
  var browVer = preparens;

  var tokens = parenthesized.split(";");
  var token = "";
  // # Now go through parenthesized tokens
  for (var i=0; i < tokens.length; i++) {
    token = Trim(tokens[i]);
        //## compatible - might want to reset from Netscape
        if (token == "compatible") {
          //## One might want to reset browVer to a null string
          //## here, but instead, we'll assume that if we don't
          //## find out otherwise, then it really is Mozilla
          //## (or whatever showed up before the parens).
        //## browser - try for Opera or IE
    }
        else if (token.indexOf("MSIE") >= 0) {
      browVer = token;
    }
    else if (token.indexOf("Opera") >= 0) {
      browVer = token;
    }
        //'## platform - try for X11, SunOS, Win, Mac, PPC
    else if ((token.indexOf("X11") >= 0) || (token.indexOf("SunOS") >= 0) || (token.indexOf("Linux") >= 0)) {
      this.platform = "Unix";
        }
    else if (token.indexOf("Win") >= 0) {
      this.platform = token;
        }
    else if ((token.indexOf("Mac") >= 0) || (token.indexOf("PPC") >= 0)) {
      this.platform = token;
        }
  }

  var msieIndex = browVer.indexOf("MSIE");
  if (msieIndex >= 0) {
    browVer = browVer.substring(msieIndex, browVer.length);
  }

  var leftover = "";
  if (browVer.substring(0, "Mozilla".length) == "Mozilla") {
    this.browser = "Netscape";
        leftover = browVer.substring("Mozilla".length+1, browVer.length);
  }
  else if (browVer.substring(0, "Lynx".length) == "Lynx") {
    this.browser = "Lynx";
        leftover = browVer.substring("Lynx".length+1, browVer.length);
  }
  else if (browVer.substring(0, "MSIE".length) == "MSIE") {
    this.browser = "IE";
    leftover = browVer.substring("MSIE".length+1, browVer.length);
  }
  else if (browVer.substring(0, "Microsoft Internet Explorer".length) == "Microsoft Internet Explorer") {
    this.browser = "IE"
        leftover = browVer.substring("Microsoft Internet Explorer".length+1, browVer.length);
  }
  else if (browVer.substring(0, "Opera".length) == "Opera") {
    this.browser = "Opera"
    leftover = browVer.substring("Opera".length+1, browVer.length);
  }

  leftover = Trim(leftover);

  // # Try to get version info out of leftover stuff
  i = leftover.indexOf(" ");
  if (i >= 0) {
    this.version = leftover.substring(0, i);
  }
  else
  {
    this.version = leftover;
  }
  j = this.version.indexOf(".");
  if (j >= 0) {
    this.majorver = this.version.substring(0,j);
    this.minorver = this.version.substring(j+1, this.version.length);
  }
  else {
    this.majorver = this.version;
  }


} 

// END BROWSER DETECTION FUNCTIONS