		Story=new Array("s_15nov99.html",
			"s_adventures.html",
			"s_afterglow.html",
         "s_airtraffic.html",
			"s_allwork.html",
			"s_anticipation.html",
			"s_appearances.html",
         "s_b&w.html",
			"s_beautiful.html",
			"s_beyond.html",
			"s_binh.html",
			"s_bigeasy.html",
			"s_book.html",
         "s_blind.html",
			"s_burbs.html",
         "s_butadream.html",
			"s_cab.html",
			"s_carole_speech.html",
			"s_chase.html",
			"s_click.html",
			"s_commute.html",
			"s_confession.html",
			"s_collections.html",
			"s_courage.html",
			"s_daydreaming.html",
			"s_dogs.html",
			"s_dreams.html",
			"s_dreamweaver.html",
			"s_electrical.html",
			"s_elevator.html",
			"s_everything.html",
			"s_expectations.html",
			"s_experiences.html",
			"s_failure.html",
			"s_faith.html",
			"s_familiar.html",
			"s_fish.html",
			"s_friends.html",
			"s_fudge.html",
			"s_further.html",
			"s_fuzzy.html",
        		"s_games.html",
			"s_gonefishing.html",
			"s_goblins.html",
			"s_greeneyes.html",
			"s_gregoryzoe.html",
  			"s_hair.html",
			"s_heads.html",
			"s_heart.html",
			"s_herd.html",
			"s_home.html",
			"s_hopeless.html",
			"s_hospitality.html",
			"s_humbug.html",
			"s_innocence.html",
			"s_insomnia.html",
			"s_intoxicating.html",
			"s_keytoherheart.html",
			"s_lasting.html",
			"s_life.html",
			"s_lilies.html",
         "s_limabeans.html",
			"s_love.html",
			"s_littlered.html",
			"s_luke.html",
         "s_magnetism.html",
			"s_maybe.html",
			"s_mothers.html",
			"s_mylove.html",
			"s_newfriends.html",
			"s_nicola.html",
			"s_nightstrangers.html",
			"s_no-one.html",
			"s_one.html",
			"s_onemore.html",
			"s_package.html",
			"s_packrat.html",
			"s_pictures.html",
			"s_post.html",
			"s_postal.html",
			"s_qew403.html",
			"s_rabbit.html",
			"s_rage.html",
			"s_reality.html",
			"s_revelations.html",
			"s_romance.html",
			"s_ryan.html",
			"s_score.html",
			"s_searching.html",
         "s_shadow.html",
			"s_shy.html",
			"s_sibling.html",
			"s_silence.html",
			"s_sing.html",
			"s_sipping",
			"s_skydive.html",
			"s_smoke.html",
			"s_smooth.html",
			"s_smother.html",
			"s_someone.html",
         "s_sometimes.html",
			"s_soundscapes.html",
			"s_soup.html",
			"s_southern.html",
			"s_spin.html",
			"s_spinsugar.html",
			"s_spring.html",
			"s_stclairw.html",
			"s_stpaddys.html",
			"s_stall.html",
			"s_strangers.html",
         "s_stranded.html",
			"s_street.html",
         "s_tactile.html",
			"s_tag.html",
			"s_tats.html",
			"s_thegirl.html",
			"s_theladyburd.html",
			"s_thought.html",
			"s_tna.html",
			"s_trust.html",
			"s_touch.html",
			"s_traffic.html",
			"s_vampy.html",
			"s_waking.html",
			"s_whatwethink.html",
			"s_why.html",
         "s_wired.html",
			"s_writing.html",
			"s_youandi.html")

function RandStory() {
	randomNum = Math.floor((Math.random() * Story.length))
	window.location = "stories/" + Story[randomNum]
}

function S_RandStory() {
	randomNum = Math.floor((Math.random() * Story.length))
	window.location = Story[randomNum]
}

 function TitlePage(newpage) {
 window.location = "stories/s_" + newpage + ".html"
	}

function Menu() {
	document.writeln("<small> ");
   if (location.href.indexOf('stories') > 0 ) {
			document.writeln("<a href=\"../index.html\" onmouseover=\"window.status='[ curiosity killed the cat you know ]';return true\" onmouseout=\"window.status=' ';return true\">home</a> : ");
			document.writeln("<a href=\"../about.html\" onmouseover=\"window.status='[ curiosity killed the cat you know ]';return true\" onmouseout=\"window.status=' ';return true\">about</a> : ");
			document.writeln("<a href=\"../list.html\" onmouseover=\"window.status='[ one fish two fish red fish blue fish ]';return true\" onmouseout=\"window.status=' ';return true\">story list</a> : ");
			document.writeln("<a href=\"javascript: S_RandStory()\" onmouseover=\"window.status='[ because sometimes you want the choice made for you ]';return true\" onmouseout=\"window.status=' ';return true\">random story</a> : ");
			document.writeln("<a href=\"mailto:tracy at caughtinalie.com\" onmouseover=\"window.status='[ got something to say? ]';return true\" onmouseout=\"window.status=' ';return true\">e-mail</a>");								
		}
		else {
			if ( location.href.indexOf('index.html') > 0 )
				document.writeln("home : ");
		   		else document.writeln("<a href=\"index.html\" onmouseover=\"window.status='[ curiosity killed the cat you know ]';return true\" onmouseout=\"window.status=' ';return true\">home</a> : ");
			if ( location.href.indexOf('about.html') > 0 )
				document.writeln("about : ");
		   		else document.writeln("<a href=\"about.html\" onmouseover=\"window.status='[ curiosity killed the cat you know ]';return true\" onmouseout=\"window.status=' ';return true\">about</a> : ");
			if ( location.href.indexOf('list.html') > 0 )
				document.writeln("story list : ");
			   	else document.writeln("<a href=\"list.html\" onmouseover=\"window.status='[ one fish two fish red fish blue fish ]';return true\" onmouseout=\"window.status=' ';return true\">story list</a> : ");
			document.writeln("<a href=\"javascript: RandStory()\" onmouseover=\"window.status='[ because sometimes you want the choice made for you ]';return true\" onmouseout=\"window.status=' ';return true\">random story</a> : ");
			document.writeln("<a href=\"mailto:tracy at caughtinalie.com\" onmouseover=\"window.status='[ got something to say? ]';return true\" onmouseout=\"window.status=' ';return true\">e-mail</a>");								
		}
	document.writeln("</small> ");
}

function Mailingother() {
	if ( location.href.indexOf('alreadyon') > 0 )
		document.writeln("Surprise! You are already subscribed to the mailing list!</p><p>If you are on the list but not getting messages about new stories, <a href=\"mailto: tracy@caughtinalie.com\"><b>drop me a line</b></a> and I\'ll check it out. Make sure to include the email address that should be subscribed in your email message.");		
	else {
		if ( location.href.indexOf('noton') > 0 )
			document.writeln("Sorry, the email address you submitted does not appear on the mailing list.</p><p>Want to <a href=\"mailing.html\"><b>try again?</b></a></p><p><b>The email address must be exactly as you entered when subscribing to the list.</b></p><p>If you are *still* having trouble unsubscribing, <a href=\"mailto: tracy@caughtinalie.com\"><b>drop me a line</b></a> and I\'ll check it out. Make sure to include the email address that you think you are subscribed at in your email message.");
		else {
			if ( location.href.indexOf('invalid') > 0 )
				document.writeln("Sorry, the email address you submitted is not valid.</p><p>Want to <a href=\"mailing.html\"><b>try again?</b></a></p><p>If you are *still* having trouble subscribing, <a href=\"mailto: tracy@caughtinalie.com\"><b>drop me a line</b></a> and I\'ll check it out. Make sure to include the email address you want to be subscribed at in your email message.");
			else document.writeln("If you want to subscribe to or unsubscribe from the mailing list, <a href=\"mailing.html\"><b>here</b></a> is where to do it.</p><p>Go on. I'll wait.");
		}
	}
}
