// <script language="JavaScript" type="text/JavaScript">
var slogans = new Array;
var indexes = new Array ;

function populateSlogans ()
{
	// alert ("populate.");

	
	slogans[0] = "Apathy ensures you won't be hurt" ;
	slogans[1] = "Giving up is the best policy" ;
	slogans[2] = "You only live once" ;
	slogans[3] = "Right and wrong are illusions" ;
	slogans[4] = "Be glad you're nuts" ;
	slogans[5] = "There's a medicine for you" ;
	slogans[6] = "You are your brain" ;
	slogans[7] = "What feels good is good" ;
	slogans[8] = "It's not your fault" ;
	slogans[9] = "We are all mentally ill" ;
	slogans[10] = "You are a speck in the cosmos" ;
	slogans[11] = "Be proud of your disorders" ;
	slogans[12] = "Killers have feelings too" ;
	slogans[13] = "Rapists have feelings too" ;
	slogans[14] = "Deviants have feelings too" ;
	slogans[15] = "Robbers have feelings too" ;
	slogans[16] = "The other kids picked on Hitler" ;
	slogans[17] = "Stalin had a hard childhood" ;
	slogans[18] = "Poor little Napolean was an epileptic" ;
	slogans[19] = "Genghis Khan grew up in poverty" ;
	slogans[20] = "Accept things as they are" ;  
	slogans[21] = "Don't fight things you can't change" ;
	slogans[22] = "Accept your limitations" ;
	slogans[23] = "Controlling people is antisocial" ;
	slogans[24] = "No thought is original" ;
	slogans[25] = "Believers can't face reality" ;
	slogans[26] = "Belief is another word for delusion" ;
	slogans[27] = "You only think you think" ;
	slogans[28] = "Neurosis makes one interesting" ;
	slogans[29] = "Giving orders hurts people's feelings" ;
	slogans[30] = "It's bad to make people work" ;
	slogans[31] = "Leaders don't lead.  They empower." ; 
	slogans[32] = "Competition means somebody has to lose" ;
	slogans[33] = "If life is stressful, withdraw" ;	
	slogans[34] = "Control is bad" ;
	slogans[35] = "Don't work too hard" ;
	slogans[36] = "Self-esteem is a state of mind" ;
	slogans[37] = "You need a vacation" ;
	slogans[38] = "Labeling leads to understanding" ;
	slogans[39] = "Never hurt anyone's feelings" ;
	slogans[40] = "All artists are neurotic" ;
	slogans[41] = "I.Q. can't be changed" ;
	slogans[42] = "What's right is what feels good" ;
	slogans[43] = "Selfishness is natural" ;
	slogans[44] = "You don't think. Your brain does." ;
	slogans[45] = "The only true motive is self-interest" ;
	slogans[46] = "Children must not be controlled" ;
	slogans[47] = "Religion is for weak people"

	setInterval ( "replaceBalloon()", 5500);
}
	
function replaceBalloon ()
{
	// alert ("replace");
	// ensure this slogan hasn't appeared in the last 5 choices
	var idx = -1;

	while ( 0 < 1 )
	{
		// alert ("in loop");
		idx = Math.floor(Math.random() * slogans.length );
		
		// alert ( "1-" + idx);

		for ( var i = 0 ; i < 5 && i <= indexes.length - 1 ; i++)
		{
			// alert ( "2-" + idx);
			if (idx == indexes[i]) break;
		} 
		if (idx == indexes[i]) continue; else break;
	}		
		
	// alert ( "3-" + idx);
	for ( var j = Math.min( indexes.length, 4) ; j > 0 ; j--)
	{
		indexes[j] = indexes[j - 1];
	}
	// alert ( "4-" + idx);
	indexes[0] = idx ;

	// alert ( "5-" + idx);
	
	// var slogan = ""; 
	var slogan = slogans[idx];


	document.getElementById("balloontext").childNodes[0].replaceData( 0, 1000, slogan);

}

-->
