var decap
//clearTimeout(decap)
//decap = setTimeout('decapitate()',100000);
function decapitate(){
	document.getElementById('main').background='images/nohead.jpg';
}




	// vars

var content, innercontent, head, tM, m=1
var topStuff = new Array('<i>Official website of the Northeastern Snow Panda Association</i>',
			'And from that day on, he always sliced his muffins horizontally rather than vertically.',
			'Stay tuned for even more completely irrelevant snippets')



	// link rollovers

var count = new Array(4);
count[0] = 9;
count[1] = 9;
count[2] = 9;
count[3] = 9;
var i;
var time = new Array(4);
time[0] = '';
time[1] = '';
time[2] = '';
time[3] = '';
var direction = 0;

function fade(i,direction){
	clearTimeout(time[i]);
	if (direction == 0){
	if(count[i] < 11){
	count[i]+=.5
	change(i,direction)
	}
	else{
	clearTimeout(time[i]);
	}
	}
	if (direction == 1){
	if (count[i] > 0){
	count[i]--
	change(i,direction)
	}
	else{
	clearTimeout(time[i]);
	}
	}
}
function change(i,direction){
	document.getElementById('l' + i).style.MozOpacity = count[i]/10;
	document.getElementById('l' + i).style.KhtmlOpacity = count[i]/10;
	document.getElementById('l' + i).style.opacity = count[i]/10;
	document.getElementById('l' + i).style.filter='alpha(opacity='+count[i]*10+')'
	time[i] = setTimeout('fade(' + i + ', ' + direction + ')', 15);
}




	// js links

var loadtext=""

function home(){
	document.getElementById('content').innerHTML="\
	<span id=head>Welcome</span><p>Welcome to the official website of NESPA.\
	 It\'s nice of you to swim on in! As you can see, this is clearly the most comprehensive\
	spoketire-related information source in the world, and also the website \
	with the highest water levels.<p>\
	Despite the claims to the contrary, we are not affiliated in any way with dirt bike companies. \
	This is the final word on the matter, and it is no longer open to debate.<p>\
	<div style='border-bottom: #AB0101 1px dotted;'> &nbsp </div><br><br><span id=head>Voting!</span><p>We all know that any good website has rigged polls, so Echen la casa por la ventana!<p>\
	<div id=poll style='width:550px' class=illiterate>\
	<b>Which piano keys sound better?</b><br>\
	<input type=radio name=vote value='0' id=bl onclick='getVote(this.value)'>\
	<label for=bl>Black</label>\
	<br>\
	<input type=radio name=vote value='1' id=wh onclick='getVote(this.value)'>\
	<label for=wh>White</label>\
	<br>\
	<input type=radio name=vote value='2' id=sm onclick='getVote(this.value)'>\
	<label for=sm>They sound the same</label></div><p>\
	<div id=poll2 style='width:550px' class=illiterate>\
	<b>Which is harder to learn?</b><br>\
	<input type=radio name=vote2 value='0' id=hs onclick='getVote2(this.value)'>\
	<label for=hs>Horseshoes</label><br>\
	<input type=radio name=vote2 value='1' id=tn onclick='getVote2(this.value)'>\
	<label for=tn>Tennis</label>\
	</div>"
	document.title="Spoketire - Home"
	
}

function sod(){
	loadtext = "<span id=head>Symposium of Doom</span><p><table border=0 width=100% height=100% cellpadding=0 cellspacing=0><tr><td width=100% height=* valign=top style='border-top:#ab0101 1px dotted;' id=innercontent>&nbsp </td><td valign=top style='border-top:#ab0101 1px dotted;border-left:#ab0101 1px dotted;padding:8px'>\
 <table border=0 id=mtable cellspacing=1 cellpadding=0>\
  <tr><td class=menutop nowrap>Hey now everybody &raquo</td></tr>\
  <tr><td class=menu nowrap onclick='habit()' onMouseOver='this.style.backgroundImage=\"url(images/m2.gif)\"' onMouseOut='this.style.backgroundImage=\"url(images/m1.gif)\"'>Habit</td></tr>\
  <tr><td class=menu nowrap onclick='chex()'  onMouseOver='this.style.backgroundImage=\"url(images/m2.gif)\"' onMouseOut='this.style.backgroundImage=\"url(images/m1.gif)\"'>Chex</td></tr>\
  <tr><td class=menu nowrap onclick='prgms()'  onMouseOver='this.style.backgroundImage=\"url(images/m2.gif)\"' onMouseOut='this.style.backgroundImage=\"url(images/m1.gif)\"'>Free software</td></tr>\
  <tr><td class=menu nowrap onclick='lead()'  onMouseOver='this.style.backgroundImage=\"url(images/m2.gif)\"' onMouseOut='this.style.backgroundImage=\"url(images/m1.gif)\"'>Lead free</td></tr>\
  <tr><td class=menu nowrap onclick='tooth()' onMouseOver='this.style.backgroundImage=\"url(images/m2.gif)\"' onMouseOut='this.style.backgroundImage=\"url(images/m1.gif)\"'>Toothpuller</td></tr>\
  <tr><td class=menu nowrap onclick='blue()'  onMouseOver='this.style.backgroundImage=\"url(images/m2.gif)\"' onMouseOut='this.style.backgroundImage=\"url(images/m1.gif)\"'>Blue screen of death</td></tr>\
 </table></td></tr></table>"
	document.getElementById('content').innerHTML=loadtext
	document.title="Spoketire - Symposium of Doom"
	define()
}

function tennis(){
	loadtext = "<span id=head>Tennis</span><p>"
	loadtext+= "<table border=0 width=100% height=100% cellpadding=0 cellspacing=0>"
	loadtext+= "<tr><td width=100% height=100% valign=top style='border-top:#ab0101 1px dotted;' id=innercontent>Pick a racquet</td>"
	loadtext+= "<td valign=top style='border-top:#ab0101 1px dotted;border-left:#ab0101 1px dotted;padding-left:8px;padding-right:8px;padding-top:8px;padding-bottom:8px;'>"
	loadtext+= "<table border=0 id=mtable cellspacing=1 cellpadding=0><tr><td class=menutop nowrap>Tennis racquets &raquo</td></tr>"
	loadtext+= "<tr><td class=menu nowrap onclick='bronzeace()'    onMouseOver='this.style.backgroundImage=\"url(images/m2.gif)\"' onMouseOut='this.style.backgroundImage=\"url(images/m1.gif)\"'>Bronze Ace</td></tr>"
	loadtext+= "<tr><td class=menu nowrap onclick='headix3()'      onMouseOver='this.style.backgroundImage=\"url(images/m2.gif)\"' onMouseOut='this.style.backgroundImage=\"url(images/m1.gif)\"'>Head iX3</td></tr>"
	loadtext+= "<tr><td class=menu nowrap onclick='princetour()'   onMouseOver='this.style.backgroundImage=\"url(images/m2.gif)\"' onMouseOut='this.style.backgroundImage=\"url(images/m1.gif)\"'>0<sup>3</sup> Hybrid Tour</td></tr>"
	loadtext+= "<tr><td class=menu nowrap onclick='princeorange()' onMouseOver='this.style.backgroundImage=\"url(images/m2.gif)\"' onMouseOut='this.style.backgroundImage=\"url(images/m1.gif)\"'>0<sup>3</sup> Orange</td></tr>"
	loadtext+= "<tr><td class=menu nowrap onclick='prgreen()'      onMouseOver='this.style.backgroundImage=\"url(images/m2.gif)\"' onMouseOut='this.style.backgroundImage=\"url(images/m1.gif)\"'>Peks R Green</td></tr></table></td></tr></table>"
	document.getElementById('content').innerHTML=loadtext
	document.title="Spoketire - Tennis"
	define()
}



function contact(){
	loadtext="<span id=head>Contact</span><p>If you have questions, suggestions, or find any errors in this website (other than the bogus information), feel free to <a class=a href='' onclick='noSpam(this)' login='idiot4561' domain='yahoo.com'><b>email us</b></a>.<p>We accept nearly all forms of monetary donations. We prefer cash in the form of euros via email, but PLEASE, NO GOLD BRICKS! We cannot accept these, although it is very generous. It is simply too hard on our email servers. <p>"
	document.getElementById('content').innerHTML=loadtext
	document.title="Spoketire - Contact"
}

function noSpam(o) {
	
	sLogin = o.getAttribute("login");
	sDomain = o.getAttribute("domain");

	s = sLogin;
	s += String.fromCharCode(64);
	s += sDomain;
	o.href = "mailto:" + s;
}



	//sod stuff

function tooth(){
document.getElementById('head').innerHTML="Symposium of Doom - The Toothpuller"
document.getElementById('innercontent').innerHTML="<table cellspacing=0 cellpadding=0 class=padded><td valign=top>Okay, it's not really a toothpuller, but that's what I call it. It is definitely the most useful tool I've found so far. You can pull up carpet with it, hammer nails in with it, screw screws with it, and you could probably even pull teeth with it if you wanted. Its power lies in the heavy metal it is made of, no doubt some kind of iron-gold alloy. That's why it is so effective in destroying just about anything. So if you need a job done, use the Toothpuller!</td><td><img class=pic src=images/toothpuller.jpg></td></table>";
}

function blue(){
document.getElementById('head').innerHTML="Symposium of Doom - Blue Screen of Death"
document.getElementById('innercontent').innerHTML="<div style='font-size: 13px;' class=padded>Here's how you can turn your calculator screen blue. It's pretty sweet. It works for TI-83+/TI-84+/silver calculators.<p><b>Step 1:</b> Send the following program to your calculator using whatever link software you have: <a class=a href=blue.8xp>blue.8xp</a><p><b>Step 2:</b> Turn on your calc, and enter 'Asm(prgmBLUE).' Asm is found in the Catalog (2nd+0), and prgmBLUE will be in the program menu (PRGM).<p><b>Step 3:</b> Press enter, do what the calc says, and enjoy the show. Once the screen is blue, don't wait more than a minute before you press a key. Otherwise you could wreck the screen.<p><b>Step 4:</b> The screen will turn black. You'll need to change the contrast by pressing 2nd and then the down arrow briefly.<p>Here's a picture to prove that it actually works: <br><img class=pic src=images/bluescr.jpg><br><i>What's that blue thing doing here?</i> - 'Fingertips 13' by They Might Be Giants.<p><font color=ab0101>Warning: If you do this too much, you might permanently wreck your screen. Proceed at your own risk.</font></div>";
}

function lead(){
document.getElementById('head').innerHTML="Symposium of Doom - Lead Free"
document.getElementById('innercontent').innerHTML="<div class=padded>So, I was walking along one day, and I saw this roll of solder.<br><br><img class=pic src=images/leadfree.jpg><br><br>Immediately, I noticed that it was Lead Free, and I said to myself, \"Finally, I can feel safe while applying melting solder to my bedroom wall!\" So I set to work. I was dedicated, and it was evident through my craftsmanship.<p>But alas, just as I finished spelling out \"The Flying Nobleman\", I saw out of the corner of my eye the grim statement on the back of the solder roll:<br><br><img class=pic src=images/leadwarning.jpg><br><br>I knew at once that the fun was all over.<br></div>"
}

function habit(){
document.getElementById('head').innerHTML="Habit and Princesses"
document.getElementById('innercontent').innerHTML="<div class=padded style='font-size:13px'>Note: this was written by a four year old.<br><br>A little girl... ha ha... was walking down the road but didn't know what to do for her party.  And she thinked and thinked she didn't know what to do.  The valley was so close to her that she just ran to the valley, but the valley was too far away and she had to walk and walk and walk and walk and walk and ran and ran and ran.  That's the end. <br><br>How did her baby brother started crying.  And the eye went on the ear.  How did he have the wonderful eye, the beautiful eye, jumble eye, feather eye, valley eye?  And all those eyes he had to put on his ear.<br><br>\"I have one more thing to tell,\" said the girl to the baby. \"You have to stay in your bed till the morning.\"<br><br>But he cried and laughed and laughed.  The baby sister was crying.  \"A mam a mam. A mam a mam.\"  (It's my story. It's my story.)  He had a bont to tell and talked the whole time.<br><br>And how could they have a lot of eyes for the baby? But the eye was only for the ear and listening to the baby cry.  And softly, the little girl picked the sister up and used it back to sleep.  <br><br>And how did the little boy put on so many ears?  He put on how many blah blob blob things on his ear!  And his mouth had copy, and the little girl went to tap that morning.<br><br>And the mommy taked care of the little baby, who was having the habit of crying that day.  And have the idea of printing and printing and printing that day.  And prettier and pretty and pretty and pr-eeee-tty.  I depict how I like beautiful pumpkins and all the other ones.  And how do they have the wonderful habits?<br><br>It was the end of the day and mom went to school to get the kids.<br><br>And the little girl said, \"Princess snow white had a snow white depicted, and it was giant!  And how did the other princess taps go to the bally ball ball?  And snow white didn't get to go. She was having little frogs and dragons over there.  And didn't make any sound when the habit came up.  And snow white got to the ball.  But it was already started so she hurried and hurried and hurried.  And they they were really habiting the bad.  But the king was really tall and up to our house ceiling.  And the queen was too.  And the princess came and was habiting -- and that was a silly face!\"<br><br>\"Was that your gum?\"<br><br>\"And then they was habiting.  Habiting means to have the habit of telling the truth and eating and eating when their time has more.  And the princesses at the ball were very good with the kings and queens.  And they really had the habit of dancing and dancing.  Hardly, they were having the habit of going home.  So they went back to their cream houses.  They were very up to the sky.\"<br><br>The paper was flying up and up.  It was hardly like a butterfly in the sky.  It bodied up and flied back in their house by the river and the valley, and went by rather the river.  And the paper butterfly went into the house and the princesses went back to the river and swam.  They cleaned their washes and went back to the queens house.<br><br>And she said, \"Want some pancakes!\". . .the end, yeah.</div>"
}

function chex(){
document.getElementById('head').innerHTML="Symposium of Doom - Chex"
document.getElementById('innercontent').innerHTML="<div class=padded>Hmmm...<p><img src='images/chex.jpg'></div>"
}
function prgms(){
document.getElementById('head').innerHTML="Symposium of Doom - Free Software"
document.getElementById('innercontent').innerHTML="<div class=padded style='font-size:13px'>Here are some good free programs that I use.  I know there are tons of lists out there, but I know that you trust spoketire.com more than any of those people.<br><br>I promise that these are not stupid programs. I know they are all for Windows (whoops, just contradicted myself), but most are probably for other systems as well. I wouldn't know or care. Maybe one day I will make this organized and have them all categorized. Enough words.<br><br><table border=0 cellspacing=0 cellpadding=2 valign=top class=illiterate><tr><td id=p valign=top><a target='_blank' class=a href='http://www.abisource.com'>AbiWord</a></td><td id=p valign=top>20 MB word processor. It can read just about any format, including .doc and .wpd, and can save to many formats as well. Don't get MS Word.<br></td id=p></tr><tr><td id=p valign=top nowrap><a target='_blank' class=a href='http://team.thenexusnet.com/nexus/AAA/'>Album Art Aggregator</a>&nbsp</td><td id=p valign=top>Finds the album art for all your digital music semi-automatically. You should check it out.<br></td></tr><tr><td id=p valign=top><a target='_blank' class=a href='http://audacity.sourceforge.net'>Audacity</a></td><td id=p valign=top>	Free audio recording. Yes. Just what I was looking for. I will go record a song now.<br></td></tr><tr><td id=p valign=top><a target='_blank' class=a href='http://www.bitpim.org'>BitPim</a></td><td id=p valign=top>			A get-stuff-off-your-cell-phone program. It works with quite a few phones, but you need a computer cable.<br></td></tr><tr><td id=p valign=top><a target='_blank' class=a href='http://www.blender.org'>Blender</a></td><td id=p valign=top>3D modeling and animation.<br></td></tr><tr><td id=p valign=top><a target='_blank' class=a href='http://www.nchsoftware.com/capture'>Debut</a></td><td id=p valign=top>Desktop video capture, and device video capture<br></td></tr>\
<tr><td id=p valign=top><a target='_blank' class=a href='http://filezilla-project.org'>FileZilla FTP Client</a></td><td id=p valign=top>FTP client: nice, simple, and 10 MB.<br></td></tr>\
<tr><td id=p valign=top><a target='_blank' class=a href='http://www.finalemusic.com'>Finale Notepad</a></td><td id=p valign=top>	Music notation program. Finale Notepad is the free version, which is highly functional and never expires. The pay-for-it versions are a little nicer, but free is great too.<br></td></tr>\
<tr><td id=p valign=top><a target='_blank' class=a href='http://www.mozilla.com/firefox'>Firefox, of course</a></td><td id=p valign=top>Hands-down best internet browser. I don't even want to hear it.<br></td></tr>\
<tr><td id=p valign=top><a target='_blank' class=a href='http://www.nchsoftware.com/ftp'>Fling</a></td><td id=p valign=top>		Allows you to automate file uploads via FTP, or copy files automatically to a flash drive, for instance. Pretty convenient.<br></td></tr>\
<tr><td id=p valign=top><a target='_blank' class=a href='http://foldersize.sourceforge.net'>Folder Size</a></td><td id=p valign=top>	Displays the size of folders in Detail view in Windows Explorer.<br></td></tr>\
<tr><td id=p valign=top><a target='_blank' class=a href='http://www.gimp.org'>The GIMP</a></td><td id=p valign=top>			Photoshop<br></td></tr>\
<tr><td id=p valign=top><a target='_blank' class=a href='http://www.httrack.com'>HTTrack</a></td><td id=p valign=top>			Tool for downloading entire websites for viewing offline.<br></td></tr>\
<tr><td id=p valign=top><a target='_blank' class=a href='http://www.nchsoftware.com/prism'>Prism</a></td><td id=p valign=top>		Video conversion.<br></td></tr>\
<tr><td id=p valign=top><a target='_blank' class=a href='http://www.dontcrack.com/freeware/downloads.php/id/3768/software/Switch/#'>Switch</a></td><td id=p valign=top>The best audio conversion program I've ever found.  This is not a link to the official website, but an older version, because the newer versions expire.  It is originally from <a class=a target='_blank' href='http://nchsoftware.com/switch'>NCH Software</a>.<br></td></tr>\
<tr><td id=p valign=top><a target='_blank' class=a href='http://www.freewebs.com/nerdcave/taskbarshuffle.htm'>Taskbar Shuffle</a></td><td id=p valign=top>Drag and drop the taskbar buttons to change the order in Windows.<br></td></tr>\
<tr><td id=p valign=top><a target='_blank' class=a href='http://www.tilp.info'>TiLP</a></td><td id=p valign=top>			Linking program for TI graphing calculators. It is about 400 times faster than TI-Connect.<br></td></tr>\
<tr><td id=p valign=top><a class=a href='WINDOWS.zip'>Volume Control</a></td><td id=p valign=top>			This is kind of a joke, but hey, some people don't have it. Extract to the C drive.<br></td></tr>\
<tr><td id=p valign=top><a target='_blank' class=a href='http://www.apachefriends.org/en/xampp.html'>XAMPP</a></td><td id=p valign=top>	Apache server with MySQL, PHP, and Perl. And it WORKS!!<br></td></tr></table>\
<p><p>Quite a nice collection I have, if I do say so myself.<p>The one thing I can't find is a free video editor that doesn't suck. You should find one. And then, you should send an email on the <a href='contact.php?e' class=a>contact</a> page.\
<p>DRM stands for Don't Buy Music Online. Ok, that would be DBMO, not DRM, but that's what it should stand for.</div>"
}

	//tennis racquets

function bronzeace(){
document.getElementById('innercontent').innerHTML="<table cellspacing=10 cellpadding=0 border=0 style='position:relative;left:-10px;'><td valign=top class=illiterate><span id=big>Bronze ace</span><br>This is probably the best racquet that has ever been devised by man. From personal experience, I can attest that it holds magical powers. The best way to use the bronze ace is to practice with it, and because it is so old, you will be ten times better when you use your normal racquet again. (Unless you normally use a wooden racquet.) The Bronze Ace was manufactured by Pro-Kennex. They also made several other 'Aces,' including the Gold, Silver, Copper, Titanium (lame), and Black Ace. All of these pale in comparison to the bravery of the Bronze Ace.</td><td><img class=pic src=images/bronzeace.jpg></td></table>";
}

function princetour(){
document.getElementById('innercontent').innerHTML="<table cellspacing=10 cellpadding=0 border=0 style='position:relative;left:-10px;'><td valign=top class=illiterate><span id=big>Prince O<sup>3</sup> Hybrid Tour</span><br>Well, this is a pretty good racquet, but I don't know why, because all they did is basically put some holes in the frame. Some of the other 0<sup>3</sup> hybrids have the holes on the top and bottom of the racquet, but this one has the holes on the sides.</td><td><img class=pic src=images/o3.jpg height=400 width=172></td></table>";
}

function headix3(){
document.getElementById('innercontent').innerHTML="<table cellspacing=10 cellpadding=0 border=0 style='position:relative;left:-10px;'><td valign=top class=illiterate><span id=big>Head Intelligence X 3</span><br>This one's pretty head-heavy, so you get a lot of power from it. However, it's kind of cumbersome sometimes because the frame is so thick and the head is large. The shock absorber it comes with is really nice though.</td><td><img class=pic src=images/ix3.jpg height=387 width=172></td></table>";
}

function princeorange(){
document.getElementById('innercontent').innerHTML="<table cellspacing=10 cellpadding=0 border=0 style='position:relative;left:-10px;'><td valign=top class=illiterate><span id=big>Prince O<sup>3</sup> Orange</span><br>I'm pretty sure it looks red, not orange, but that's not my problem. </td><td><img class=pic src=images/orange.jpg height=400 width=172></td></table>";
}

function prgreen(){
document.getElementById('innercontent').innerHTML="<table cellspacing=10 cellpadding=0 border=0 style='position:relative;left:-10px;'><td valign=top class=illiterate><span id=big>Peks R Green</span><br>That's not the real name, but we had to think of something, because it doesn't say anything on the racquet. <br><br> For this racquet we actually have an interview with the owner! Here it is: <br><br> My racquet is cool. What's about my racquet? Anything is about my racquet. My racquet can be any cooler than anybody else's. <i>(Is that all?)</i> Yes.</td><td><img class=pic src=images/prgreen.jpg height=400 width=172></td></table>";
}



	//audio

function audio(){
	document.getElementById('content').innerHTML="<span id=head>Audio</span><p><table cellspacing=0 cellpadding=0 border=0><td><table border=0 cellpadding=0 cellspacing=0 style='_position:relative;left:0px;top:0px;_z-index:50;'><tr><td colspan=3><font size=4>Featured:</font><br></td></tr><tr><td valign=bottom bgcolor=FCCA48><a href='javascript:symp()'><img src=images/play.gif alt='Play'></a><a href='savewav.php?n=0'><img src=images/save.gif alt='Save'></a></td><td valign=center class=semitrans2 id=first>&nbsp Symposium of Doom</td></tr><tr><td height=20></td></tr><tr><td colspan=3><font size=4>Sound effects:</font><br></td></tr><tr><td valign=bottom bgcolor=FCCA48><a href='javascript:chop()'><img src=images/play.gif alt='Play'></a><a href='savewav.php?n=1'><img src=images/save.gif alt='Save'></a></td><td valign=center class=semitrans2>&nbsp Chopping sound</td></tr><tr><td valign=bottom><a href='javascript:wookie()'><img src=images/play.gif alt='Play'></a><a href='savewav.php?n=2'><img src=images/save.gif alt='Save'></a></td><td valign=center class=semitrans>&nbsp Wookie scream</td></tr><tr><td valign=bottom bgcolor=FCCA48><a href='javascript:squash()'><img src=images/play.gif alt='Play'></a><a href='savewav.php?n=3'><img src=images/save.gif alt='Save'></a></td><td valign=center class=semitrans2>&nbsp Rip</td></tr><tr><td height=20></td></tr><tr><td colspan=3><font size=4>Other audio:</font><br></td></tr><tr><td valign=bottom bgcolor=FCCA48><a href='javascript:weird()'><img src=images/play.gif alt='Play'></a><a href='savewav.php?n=4'><img src=images/save.gif alt='Save'></a></td><td valign=center class=semitrans2 nowrap>&nbsp Weird elephant-screaming thing - (very loud) &nbsp</td></tr><tr><td valign=bottom><a href='javascript:growling()'><img src=images/play.gif alt='Play'></a><a href='savewav.php?n=5'><img src=images/save.gif alt='Save'></a></td><td valign=center class=semitrans>&nbsp People growling</td></tr><tr><td valign=bottom bgcolor=FCCA48><a href='http://www.mediafire.com/?mmvjfmjjmmu' target='_blank'><img src=images/play.gif alt='Play'></a><a href='' onclick='alert(\"Right click play button and select Save Target As or Save Link As.\")'><img src=images/save.gif alt='Save'></a></td><td valign=center class=semitrans2 nowrap>&nbsp Evening Home With the Guise &nbsp</td></tr></table></td><td valign=top id=position width=100% style='padding:20px;'><!-- <div><div>&nbsp</div><div style='height:44px;width:200px;'></div></div> -->You can go to other parts of this website while listening to audio, except for the site map and contact.<br><br>If you're using the Windows Media Player plugin, I highly recommend pressing the fast-forward button, especially on the Elephant thing.  It sounds sweet.</td></table>"
	document.title="Spoketire - Audio"
	ms()
}
var songname
var player

function symp(){
	if(document.getElementById('playercontainer')==null)
	createPlayer()
	songname.innerHTML="Symposium of Doom"
	embed('sympovo.wav')
}
function growling(){
	if(document.getElementById('playercontainer')==null)
	createPlayer()
	songname.innerHTML="Growling people"
	embed('argh.wav')
}
function chop(){
	if(document.getElementById('playercontainer')==null)
	createPlayer()
	songname.innerHTML="Chopping sound"
	embed('choparmoff.wav')
}
function weird(){
	if(document.getElementById('playercontainer')==null)
	createPlayer()
	songname.innerHTML="Weird elephant thing (?)"
	embed('coolg.wav')
}
function squash(){
	if(document.getElementById('playercontainer')==null)
	createPlayer()
	songname.innerHTML="Ripping sound"
	embed('squashrip.wav')
}
function wookie(){
	if(document.getElementById('playercontainer')==null)
	createPlayer()
	songname.innerHTML="Wookie scream"
	embed('wookie.wav')
}
function evening(){
	if(document.getElementById('playercontainer')==null)
	createPlayer()
	songname.innerHTML="Evening Home With the Guise"
	embed('eveninghome2.wav')
}
function createPlayer(){
	document.body.innerHTML+="<div id=playercontainer style='position:fixed;_position:absolute;'><table cellspacing=0 cellpadding=0 width=100%><td id=songname></td><td align=right valign=top><a href='javascript:close()' class=x>X</a></td></table><div id=player align=left><embed autostart='false'></div></div>"
	positionPlayer()
}
function close(){
	document.body.removeChild(document.getElementById('playercontainer'))
}
function positionPlayer(){
	pc=document.getElementById('playercontainer')
	stylePos=pc.style.position
	if(stylePos=='fixed'){
	pc.style.left=document.body.offsetWidth-pc.offsetWidth-21-document.getElementById('right').offsetWidth;
	pc.style.top =window.innerHeight-pc.offsetHeight;
	}
	pc.style.visibility='visible'
	songname= document.getElementById('songname')
	player=   document.getElementById('player')
	window.onresize=fixBGP
}
function cssPlayer_L(){
	return document.body.offsetWidth-document.getElementById('playercontainer').offsetWidth-42-document.getElementById('right').offsetWidth;
}
function cssPlayer_T(){
	return document.body.offsetHeight-document.getElementById('playercontainer').offsetHeight-4+document.body.scrollTop;
}
function oldPosition(){
	pc=document.getElementById('playercontainer')
	stylePos=pc.style.position
	if(stylePos=='fixed'){
	pc.style.left=getAbsoluteLeft('position')
	pc.style.top=getAbsoluteTop('position')
	}
	else if(stylePos=='absolute'){
	pc.style.left=getAbsoluteLeft('position')
	}
	document.getElementById('playercontainer').style.visibility='visible'
	songname= document.getElementById('songname')
	player=   document.getElementById('player')
	window.onresize=fixBGP
}

function getAbsoluteLeft(objectId) {
	o = document.getElementById(objectId)
	oLeft = o.offsetLeft
	while(o.offsetParent!=null) {
		oParent = o.offsetParent
		oLeft += oParent.offsetLeft
		o = oParent
	}
	return oLeft
}

function getAbsoluteTop(objectId) {
	o = document.getElementById(objectId)
	oTop = o.offsetTop
	while(o.offsetParent!=null) {
		oParent = o.offsetParent
		oTop += oParent.offsetTop
		o = oParent
	}
	return oTop
}
function embed(file){
	player.innerHTML="<embed src=audio/"+file+" autostart=true></embed>"
	positionPlayer()
}
function ms(){
	var imgs=document.getElementsByTagName('img')
	for(i=0;i<imgs.length;i++){
	if(imgs[i].src.indexOf('play.gif')!=-1 || imgs[i].src.indexOf('save.gif')!=-1){
	imgs[i].onmouseover=function(){_100(this)}
	imgs[i].onmouseout=function(){_85(this)}
	}
	}
}
function _100(o){o.style.filter='alpha(opacity=100)'}
function _85(o){o.style.filter='alpha(opacity=85)'}




	// misc

function startup(){
	//define()
	fixBG()
	hashCheck()
	postLoad()
	//if(document.getElementById('randMess'))
	//tM=setTimeout('changeMess()',1000)
}
function postLoad(){
	document.body.innerHTML+="<div id=postload><img src='images/bluescr.jpg'><img src='images/leadfree.jpg'><img src='images/leadwarning.jpg'><img src='images/ix3.jpg'><img src='images/prgreen.jpg'><img src='images/orange.jpg'><img src='images/o3.jpg'><img src='images/toothpuller.jpg'><img src='images/bronzeace.jpg'><img src='images/chex.jpg'></div>"
}
function hashCheck(){
	var subpage=window.location.hash.substring(1)
	if(subpage=="lead"){lead()}
	else if(subpage=="tooth"){tooth()}
	else if(subpage=="blue"){blue()}
	else if(subpage=="habit"){habit()}
	else if(subpage=="chex"){chex()}
	else if(subpage=="prgms"){prgms()}

	else if(subpage=="bronzeace"){bronzeace()}
	else if(subpage=="princetour"){princetour()}
	else if(subpage=="princeorange"){princeorange()}
	else if(subpage=="headix3"){headix3()}
	else if(subpage=="prgreen"){prgreen()}
}
function bgPos(){
	offsetW=document.getElementById('left').offsetWidth+22
	return offsetW
}

function fixBG(){
	var offsetW = document.getElementById('left').offsetWidth+22
	document.getElementById('maintable').style.backgroundPosition = offsetW+'px 100%'
}
window.onresize = fixBG

function fixBGP(){
	fixBG();positionPlayer();}

function define(){
	//content=document.getElementById('content')
	//innercontent=document.getElementById('innercontent')
	//head=document.getElementById('head')
}

function changeMess(){
	if(m<topStuff.length){
	document.getElementById('randMess').innerHTML=topStuff[m]
	m++
	tM=setTimeout('changeMess()',2000)
	}else{
	m=1
	document.getElementById('randMess').innerHTML=topStuff[0]
	tM=setTimeout('changeMess()',2000)
	}
}


	// image preload stuff




function slow_message(){
	var messtime=setTimeout("document.getElementById('content').style.visibility='visible'",8000)
}

function add1(){
	loadcounter++
	timeout[loadcounter-1]=setTimeout('updatetext('+loadcounter+')',50)
	if(loadcounter>=percent.length){
	 prev = ""
	 prev += window.location.search.substring(1)
	 if(prev==""){
	  window.location = 'home.php?e'}
	 else{
	  window.location = prev+".php?e"}
	}
}
function updatetext(a){
	document.getElementById('progress').innerHTML=percent[a-1]
}

function add1i(){
	loadcounter++
	timeout[loadcounter-1]=setTimeout('updateimg('+loadcounter+')',50)
	if(loadcounter>=percent.length){
	 prev = ""
	 prev += window.location.search.substring(1)
	 if(prev==""){
	  window.location = 'home.php?e'}
	 else{
	  window.location = prev+".php?e"}
	}
}
function updateimg(a){
	p=percent[a-1]*2
	p=a*10
	document.getElementById('progress').style.width=p
}

var loadBarCount = 0

function preLoadBar(){
	loadBarCount++
	if(loadBarCount==2)
	document.getElementById('container').innerHTML=" \
		<img src='images/lean2.jpg' onLoad='add1i()'> \
		<img src='images/spokeflare2.gif' onLoad='add1i()'>	\
		<img src='images/tennis2.gif' onLoad='add1i()'>		\
		<img src='images/audio2.gif' onLoad='add1i()'>		\
		<img src='images/tennis1.gif' onLoad='add1i()'>		\
		<img src='images/home2.gif' onLoad='add1i()'>		\
		<img src='images/audio1.gif' onLoad='add1i()'>		\
		<img src='images/home1.gif' onLoad='add1i()'>		\
		<img src='images/sod2.gif' onLoad='add1i()'>		\
		<img src='images/sod1.gif' onLoad='add1i()'>		\
		<img src='images/save.gif' onLoad='add1i()'>		\
		<img src='images/play.gif' onLoad='add1i()'>		\
		<img src='poll/vote.png' onLoad='add1i()'>		\
		<img src='images/brown.png' onLoad='add1i()'>		\
		<img src='images/tile.gif' onLoad='add1i()'>		\
		<img src='images/m1.gif' onLoad='add1i()'>		\
		<img src='images/m2.gif' onLoad='add1i()'>		\
		<img src='images/shadow.gif' onLoad='add1i()'>		\
		<img src='images/shadoe.gif' onLoad='add1i()'>		\
		<img src='images/lb2.gif' onLoad='add1i()'>"
}

function loadCheck(prev){
	if(window.location.search.substring(1)!="e"){
	window.location = "index.html?"+prev
	}
}