UP AGAINST THE WAR and
UNCLE SAM'S AUNTIE (anti-war quote quiz)

All code snippets from http://www.geocities.com/rgoya/javascript/PROTCODE.HTM
And must be used with JavaScript PROTEST.JS

All required files, images, etc. are included in PROTEST.ZIP
http://www.geocities.com/rgoya/javascript/PROTEST.ZIP

UP AGAINST THE WAR and UNCLE SAM'S AUNTIE were created by Randall Goya for netSperience -- http://www.geocities.com/rgoya
Permission is granted by the author for free use on any website for non-commercial purposes.
The author reserves all other rights, and can be contacted by email at rgoya@yahoo.com.
You may not charge a fee for this script. A link to my website would be appreciated.
http://www.geocities.com/rgoya/

If you use these scripts, please email me at rgoya@yahoo.com 
(with your URL) and let me know how you like them! Or you can use the
feedback form at http://www.geocities.com/rgoya/javascript/PROTEST.HTM

When editing, use a plain text editor (eg. Microsoft Notepad). If a word processing
program is used, turn off "smart quotes" (eg. in Microsoft Word, select Tools menu;
select AutoCorrect option; click on AutoFormat tab; uncheck Replace "straight quotes"
with "smart quotes"). Failure to do this will render JavaScript code unusable !!!
************************************************************************************


UP AGAINST THE WAR
*********************************************************

Call PROTEST.JS in the <head> of your webpage(s)
(paste in just before the </head> tag)
*********************************************************
<script language="javascript" type="text/javascript" src="PROTEST.JS"></script>
*********************************************************

Add this event handler to the <body> tag, 
to start the effects after the page loads in the browser
*********************************************************
<body onload="protest()">
*********************************************************

Add enProtest=0 if you don't want the effects to start when the page loads
(for example, if you just want the US AUNTIE game)
The Control Panel or Off/On Toggle Button will start the effects.
Turning off the effects also helps when you just want to edit the HTML content of the page
*********************************************************
<body onload="protest(),enProtest=0">
*********************************************************

Optional toggle button to turn the effects off and on again.
Button (<input type="button"...>) can be used alone inside other forms.
*********************************************************
<form name="toggle" action="" method="post">
<input type="button" name="offon" value="Just say no to war" onclick="offonButton(this.value)">
</form>
*********************************************************

Control Panel
*********************************************************
<form name="control" action="" method="post">
<table width="380" border="5">
<tr><td bgcolor="#000000">
<table width="370" border="0" cellspacing="3">
<tr><td colspan="2" align="center"><font size="5" color="#ffffff"><b>You Control the Effects</b></font></td></tr>
<tr>
<td align="center" valign="middle"><input type="button" name="randoff" value="Random Off" onclick="panel(this.name,this.value)"></td>
<td align="center" valign="middle"><input type="button" name="offon" value="Just say no to war" onclick="offonButton(this.value)"></td>
</tr>
<tr>
<td align="center" valign="middle"><input type="button" name="formoff" value="Forms Off" onclick="panel(this.name,this.value)"></td>
<td align="center" valign="middle"><input type="button" name="imageoff" value="Images Off" onclick="panel(this.name,this.value)"></td>
</tr>
<tr>
<td align="center" valign="middle"><input type="button" name="coloroff" value="Colors Off" onclick="panel(this.name,this.value)"></td>
<td align="center" valign="middle"><input type="button" name="tsoff" value="Title/Status Off" onclick="panel(this.name,this.value)"></td>
</tr>
<tr>
<td align="center" valign="middle"><input type="button" name="setcolor" value="Change Colors" onclick="panel(this.name,this.value)"></td>
<td align="center" valign="middle"><input type="button" name="speed" value="Change Speed" onclick="panel(this.name,this.value)"></td>
</tr>
<tr><td align="center"><input type="button" name="showalert" value="Show Alert" onclick="alert(alertmsg)"></td>
<td align="center"><input type="button" name="enableall" value="Reset All Defaults" onclick='Creset()'></td>
</tr></table></td></tr></table></form>
*********************************************************

Invisible Images
This placeholder will be replaced by the substitute images.
Since the dimensions are not specified, this image will change size dynamically for each substitute image.
If you want a constant size, specify the width and height values 
(this may result in distorting the substitute images as they stretch to the defined dimensions!)
Remember to upload TRANSPIX.GIF to your server!! 
*********************************************************
<img src="TRANSPIX.GIF" border="0">
*********************************************************

CHANGE THE TIMING FOR A PARTICULAR PAGE
Insert this code in the <BODY>, just before the </BODY> tag:
*********************************************************
<!-- CHANGE VALUES FOR THIS PAGE -->
<script language="javascript" type="text/javascript">
<!--
var wait=0    //delay before script starts after page loads (in seconds) default: 20
var nflash=1  //number of flashes for each slogan (for Machine Gun: 4) default: 4
var delay=140 //delay between each flash step (in milliseconds) (for Machine Gun: 140) default: 140
var pause=1   //factor for length of dynamic pause before reset to normal
              //pause is calculated by slogan[scount].length*pause*10
              //long slogans are displayed longer
              //recommended range: 1 (faster) - 9 (slower)
              //default: 5
var norm=5    //length of normal state between protests (in seconds) default: 20
enAlert=0     //turn off alert default: 1
//Store values for reset
Cnorm=norm
Cnflash=nflash
Cdelay=delay
Cpause=pause
// -->
</script>
*********************************************************

ALTERNATE "All in one document" METHOD
Download and unzip PROTEST.ZIP, or just download PROTEST.JS
http://www.geocities.com/rgoya/javascript/PROTEST.ZIP
http://www.geocities.com/rgoya/javascript/PROTEST.JS
Insert the following code in the <head> (paste in just before the </head> tag).
Paste in PROTEST.JS where indicated.
Don't forget to add the onload event handler!
*********************************************************
<script language="javascript" type="text/javascript">
<!--
PASTE PROTEST.JS HERE
// -->
</script>
*********************************************************

*********************************************************
UNCLE SAM'S AUNTIE (anti-war quote quiz)
Add this code for  to the <BODY> (you must call PROTEST.JS in the <HEAD>)
but the onload event handler <body onload="protest()">
is not necessary if you want US AUNTIE without the PROTEST effects
Remember to upload STAR.GIF!
*********************************************************
<a name="#usaquiz"></a>
<br>&nbsp;<br>
<form name="board">
<table width="720" border="0" cellpadding="5">
<script language="javascript" type="text/javascript">
<!--
document.write('<tr><td align="center" valign="top" colspan="2" bgcolor="'+ bg1 +'">')
document.write('<font size="5" color="'+ titlecol +'"><b>'+ quiztitle +'</b></font></td></tr>')
document.write('<tr><td rowspan="6" align="center" valign="middle" bgcolor="'+ winbg +'"  background="STAR.GIF">')
document.write('<input type="button" name="stop" value="Start Quiz" onclick="play(this.value)" style="width:80"><br>')
document.write('<textarea name="showslo" rows="10" cols="40" wrap="on"></textarea><br>')
document.write('<input type="text" name="sequence" value="" size="2"><font size="5" color="'+ textcol +'"> <b>to go</b><br></font></td>')
document.write('<td bgcolor="'+ stripe1 +'">')
document.write('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="timcount" style="width:160"><!-- NOT USED IN THIS QUIZ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font size="2" color="'+ stripe2 +'"><b>Randall Goya &copy; 2004</b></font --></td></tr>')
document.write('<tr><td bgcolor="'+ stripe2 +'">')
document.write('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="answer0" onclick="play(this.value)"')
if (ns) document.write(' value="this text is replaced by the script"')
else document.write(' value=""')
document.write('>')
document.write('</td></tr><tr><td bgcolor="'+ stripe1 +'">')
document.write('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="answer1" onclick="play(this.value)"')
if (ns) document.write(' value="this text is replaced by the script"')
else document.write(' value=""')
document.write('>')
document.write('</td></tr><tr><td bgcolor="'+ stripe2 +'">')
document.write('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="answer2" onclick="play(this.value)"')
if (ns) document.write(' value="this text is replaced by the script"')
else document.write(' value=""')
document.write('>')
document.write('</td></tr><tr><td bgcolor="'+ stripe1 +'">')
document.write('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="answer3" onclick="play(this.value)"')
if (ns) document.write(' value="this text is replaced by the script"')
else document.write(' value=""')
document.write('>')
document.write('</td></tr><tr><td bgcolor="'+ stripe2 +'" align="center"><font size="3" color="'+ stripe1 +'"><font size="2" color="'+ stripe1 +'"><b>Randall Goya &copy; 2004 UNAUTHORIZED USE PROHIBITED</b></font><!-- NOT USED IN THIS QUIZ input type="hidden" name="classid" value="www.geocities.com/rgoya/javascript/PROTCODE.HTM#usaquiz<br>Randall Goya  2004 rgoya@yahoo.com">Enter &quot;<b>list</b>&quot; for quotes; &quot;<b>peace</b>&quot; for scores:</font>&nbsp;&nbsp;<input type="text" size="4" name="repcode" value="list">&nbsp;&nbsp;<input type="button" value="OPEN" onclick="showgrades()" style="width:45;color:'  + stripe1 + ';background:neutral;border-color:'  + stripe1 + ';border-width:1;" --></td></tr><tr><td bgcolor="'+ bg2 +'" align="center"><font size="4" color="'+ subtitlecol +'"><b>'+ subtitle +'</b></font></td>')
document.write('<td bgcolor="'+ stripe1 +'" align="center"><input type="button" name="resetscore" value="Reset Score" onclick="rstboard()">&nbsp;&nbsp;&nbsp;<input type="button" name="clear" value="Clear All Names and Scores" onclick="if (cook) {rstboard(\'clear\')}"></td></tr>')
document.write('<tr><td bgcolor="'+ stripe2 +'" align="right" valign="middle"><input type="button" name="changename" value="Enter Name" onclick="chname(this.value)" style="width:100">&nbsp;&nbsp;<font size="5" color="'+ stripe1 +'"><b>NAME&nbsp;&nbsp;</b></font><input type="text" name="savname" size="20" onfocus="this.blur()"></td>')
document.write('<td bgcolor="'+ stripe2 +'" align="left" valign="middle"><input type="text" name="cumscore" value="" size="30" onfocus="this.blur()"><font size="5" color="'+ stripe1 +'"><b>&nbsp;&nbsp;SCORE&nbsp;&nbsp;</b></font></td></tr>')
setboard()
// -->
</script>
</table>
</form>