defaultStatus = "You are now at Loonatics Unleashed Online." ;

function scheduleMarquee() {
	document.scheduleform.schedule.value = "Saturday, April 21st - The Heir Up There"
;}

function openSchedule() {window.location = "schedule7.html"
	;}
	
function scheduleMenu() {
	var epi = document.navform.nepisodes;
	var to = epi.options[epi.options.selectedIndex].value;
	if (to == "") {return}
	else {document.location = to ;}
;}

function dropMenu(menuName) {
	if (document.getElementById)
	{target = document.getElementById(menuName) ;
		if (target.style.display == "none")
		{target.style.display = "block" ; }
		else {target.style.display = "none" ; }
		;}
	else {
		if (document[menuName].display == "none")
		{document[menuName].display = "block" ; }
		else {document[menuName].display = "none" ; }
		;}
;}

var chosenImage=new Array();

// image filenames for thumbnails
chosenImage[1]="s1/Weathering_Heights/th_paulahaze_lightningeyes.jpg";
chosenImage[2]="s1/The_Comet_Cometh/th_duck_savemayor.jpg";
chosenImage[3]="s1/Weathering_Heights/th_duck_cloud_monster.jpg";
chosenImage[4]="s1/Weathering_Heights/th_duck_hearts.jpg";
chosenImage[5]="s1/The_Comet_Cometh/th_ace_nocostumedisheveled.jpg";
chosenImage[6]="s1/Loonatics_on_Ice/th_ace_vs_gunnar.jpg";
chosenImage[7]="s1/Weathering_Heights/th_duck_waterski.jpg";
chosenImage[8]="s1/Weathering_Heights/th_duck_hold_mistybreeze.jpg";
chosenImage[9]="s1/Weathering_Heights/th_lexi_brainblast.jpg";
chosenImage[10]="s1/Loonatics_on_Ice/th_lexi_vs_viking.jpg";
chosenImage[11]="s1/The_Comet_Cometh/th_duckdiaper.jpg";
chosenImage[12]="s1/Loonatics_on_Ice/th_duck_techmelts.jpg";
chosenImage[13]="s1/Loonatics_on_Ice/th_lexi_ace_motorcyclelook.jpg";
chosenImage[14]="s1/The_Comet_Cometh/th_lexi_nocostumespotlight.jpg";
chosenImage[15]="s1/Weathering_Heights/th_slam_finishwvstornado.jpg";
chosenImage[16]="s1/Loonatics_on_Ice/th_tech_coldpizza.jpg";
chosenImage[17]="s1/Loonatics_on_Ice/th_tech_vikinghelmet.jpg";
chosenImage[18]="s1/Weathering_Heights/th_tech_zapped.jpg";
chosenImage[19]="s1/Weathering_Heights/th_zadavia_hologram.jpg";
chosenImage[20]="s1/Weathering_Heights/th_stormdragon.jpg";
chosenImage[21]="s1/Weathering_Heights/th_bubble_weathervane.jpg";
chosenImage[22]="s1/The_Comet_Cometh/th_loonatics_standgroup.jpg";

var chosenAltCopy=new Array();

// alt for images
chosenAltCopy[1]="Paula Haze's eyes flash with lightning.";
chosenAltCopy[2]="Duck has saved the mayor.";
chosenAltCopy[3]="Duck struggles in the clutches of one of Weathervane's cloud monsters.";
chosenAltCopy[4]="Duck's eyes become hearts as he gazes upon Misty Breeze.";
chosenAltCopy[5]="Ace is without uniform, completely disheveled.";
chosenAltCopy[6]="Ace clashes swords with Gunnar the Conqueror.";
chosenAltCopy[7]="Duck taunts Weathervane and waterskis while Rev pulls him.";
chosenAltCopy[8]="Duck holds Misty Breeze.";
chosenAltCopy[9]="Lexi brainblasts a cloud monster.";
chosenAltCopy[10]="Lexi faces off with a viking.";
chosenAltCopy[11]="Duck holds up another &ldquo;Treasure from the Deep&rdquo;.";
chosenAltCopy[12]="Duck lifts up a viking helmet to find that Tech has melted.";
chosenAltCopy[13]="Lexi and Ace look at each other."
chosenAltCopy[14]="Lexi steps into the spotlight without her uniform.";
chosenAltCopy[15]="Slam has finished battling Weathervane's tornado.";
chosenAltCopy[16]="Tech tries a bit of frozen pizza.";
chosenAltCopy[17]="Tech holds a viking helmet and whimpers.";
chosenAltCopy[18]="Tech is zapped by Weathervane.";
chosenAltCopy[19]="Zadavia as a hologram.";
chosenAltCopy[20]="Weathervane as a storm dragon chasing Duck.";
chosenAltCopy[21]="Weathervane in a bubble, shooting lightning.";
chosenAltCopy[22]="The Loonatics standing together in a group.";

var chosenImagePop=new Array();

// image filename for popup
chosenImagePop[1]="s1/Weathering_Heights/paulahaze_lightningeyes.jpg";
chosenImagePop[2]="s1/The_Comet_Cometh/duck_savemayor.jpg";
chosenImagePop[3]="s1/Weathering_Heights/duck_cloud_monster.jpg";
chosenImagePop[4]="s1/Weathering_Heights/duck_hearts.jpg";
chosenImagePop[5]="s1/The_Comet_Cometh/ace_nocostumedisheveled.jpg";
chosenImagePop[6]="s1/Loonatics_on_Ice/ace_vs_gunnar.jpg";
chosenImagePop[7]="s1/Weathering_Heights/duck_waterski.jpg";
chosenImagePop[8]="s1/Weathering_Heights/duck_hold_mistybreeze.jpg";
chosenImagePop[9]="s1/Weathering_Heights/lexi_brainblast.jpg";
chosenImagePop[10]="s1/Loonatics_on_Ice/lexi_vs_viking.jpg";
chosenImagePop[11]="s1/The_Comet_Cometh/duckdiaper.jpg";
chosenImagePop[12]="s1/Loonatics_on_Ice/duck_techmelts.jpg";
chosenImagePop[13]="s1/Loonatics_on_Ice/lexi_ace_motorcyclelook.jpg";
chosenImagePop[14]="s1/The_Comet_Cometh/lexi_nocostumespotlight.jpg";
chosenImagePop[15]="s1/Weathering_Heights/slam_finishwvstornado.jpg";
chosenImagePop[16]="s1/Loonatics_on_Ice/tech_coldpizza.jpg";
chosenImagePop[17]="s1/Loonatics_on_Ice/tech_vikinghelmet.jpg";
chosenImagePop[18]="s1/Weathering_Heights/tech_zapped.jpg";
chosenImagePop[19]="s1/Weathering_Heights/zadavia_hologram.jpg";
chosenImagePop[20]="s1/Weathering_Heights/stormdragon.jpg";
chosenImagePop[21]="s1/Weathering_Heights/bubble_weathervane.jpg";
chosenImagePop[22]="s1/The_Comet_Cometh/loonatics_standgroup.jpg";

var getRan = Math.floor(Math.random()*chosenImage.length);
if (getRan == 0)
{getRan = 1 ;}
else {}

function randomContentR() {

document.write('<div class=\"randomImgR\"><a href=\"javascript:openArt(\'http://s62.photobucket.com/albums/h82/Cali-Bunny/Loonatics/screenshots/'+chosenImagePop[getRan]+'\')\"><img src=\"http://s62.photobucket.com/albums/h82/Cali-Bunny/Loonatics/screenshots/'+chosenImage[getRan]+'\" alt=\"'+chosenAltCopy[getRan]+'\" width=\"127\" height=\"95\" class=\"randomImgR\" /></a><p>A random image from the LUO screenshot gallery.</p></div>');

;}

function randomContentL() {

document.write('<div class=\"randomImgL\"><a href=\"javascript:openArt(\'http://s62.photobucket.com/albums/h82/Cali-Bunny/Loonatics/screenshots/'+chosenImagePop[getRan]+'\')\"><img src=\"http://s62.photobucket.com/albums/h82/Cali-Bunny/Loonatics/screenshots/'+chosenImage[getRan]+'\" alt=\"'+chosenAltCopy[getRan]+'\" width=\"127\" height=\"95\" class=\"randomImgL\" /></a><p>A random image from the LUO screenshot gallery.</p></div>');

;}

function pollsMenu() {
	var box = document.navform.polls;
	var pollname = box.options[box.options.selectedIndex].value;
	if (pollname == "") {return}
	else {
		if (document.getElementById) {document.getElementById("favloonatic").style.display = "none" ; document.getElementById("fav_villain1").style.display = "none"; document.getElementById("favepi_1").style.display = "none"; document.getElementById("acelexi").style.display = "none"; document.getElementById("rev_vacation").style.display = "none"; document.getElementById("tech_babies").style.display = "none"; document.getElementById("favpairing").style.display = "none"; document.getElementById("slam_favfood").style.display = "none"; document.getElementById("duck_mistybreeze").style.display = "none"; document.getElementById(pollname).style.display = "block"
		;}
		else {document["favloonatic"].display = "none" ; document["fav_villain1"].display = "none"; document["favepi_1"].display = "none"; document["acelexi"].display = "none"; document["rev_vacation"].display = "none"; document["tech_babies"].display = "none"; document["favpairing"].display = "none"; document["slam_favfood"].display = "none"; document["duck_mistybreeze"].display = "none" ; document[pollname].display = "block"
	;}
;}
;}

function loonaticsBio(loonaticName) {
	if (document.getElementById)
	{document.getElementById("Ace").style.display = "none" ; document.getElementById("Lexi").style.display = "none" ; document.getElementById("Duck").style.display = "none" ; document.getElementById("Tech").style.display = "none" ; document.getElementById("Rev").style.display = "none" ; document.getElementById("Slam").style.display = "none" ; document.getElementById("Zadavia").style.display = "none" ; document.getElementById(loonaticName).style.display = "block"
	;}
	else {document["Ace"].display = "none" ; document["Lexi"].display = "none" ; document["Duck"].display = "none" ; document["Tech"].display = "none" ; document["Rev"].display = "none" ; document["Slam"].display = "none" ; document["Zadavia"].display = "none" ; document[loonaticName].display = "block" ;}
;}

function villainsBio(villainName) {
	if (document.getElementById)
	{document.getElementById("GunnarVikings").style.display = "none" ; document.getElementById("Zane").style.display = "none" ;  document.getElementById("Velvet").style.display = "none" ; document.getElementById("Weathervane").style.display = "none" ; document.getElementById("Dare").style.display = "none" ; document.getElementById("Optimatus").style.display = "none" ; document.getElementById("Ringmaster").style.display = "none" ; document.getElementById("Otto").style.display = "none" ; document.getElementById("Massive").style.display = "none" ; document.getElementById("Sypher").style.display = "none" ; document.getElementById("TimeSkip").style.display = "none" ; document.getElementById("Mastermind").style.display = "none" ; document.getElementById("Ophiuchus").style.display = "none" ; document.getElementById("Deuce").style.display = "none" ; document.getElementById("Adolpho").style.display = "none" ; document.getElementById("Pierre").style.display = "none" ; document.getElementById("Sylth").style.display = "none" ; document.getElementById("Grannicus").style.display = "none" ; document.getElementById(villainName).style.display = "block" ;}
	
	else {document["Optimatus"].display = "none" ; document["Mastermind"].display = "none" ; document["Weathervane"].display = "none" ; document["Sypher"].display = "none" ; document["Massive"].display = "none" ; document["Velvet"].display = "none" ; document["GunnarVikings"].display = "none" ; document["Zane"].display = "none" ; document["Dare"].display = "none" ; document["Ringmaster"].display = "none" ; document["Otto"].display = "none" ; document["TimeSkip"].display = "none" ; document["Ophiuchus"].display = "none" ; document["Deuce"].display = "none" ; document["Adolpho"].display = "none" ; document["Pierre"].display = "none" ; document["Sylth"].display = "none" ; document["Grannicus"].display = "none" ; document[villainName].display = "block" ;}
;}

function otherChar(otherChars) {
	if (document.getElementById)
	{document.getElementById("Fuzz").style.display = "none" ; document.getElementById("Breeze").style.display = "none" ; document.getElementById("Leghorn").style.display = "none" ; document.getElementById("Chroniker").style.display = "none" ; document.getElementById("Gorlop").style.display = "none" ; document.getElementById("Tweetums").style.display = "none" ; document.getElementById(otherChars).style.display = "block" ; }
	
	else {document["Fuzz"].style.display = "none" ; document["Breeze"].display = "none" ; document["Leghorn"].style.display = "none" ; document["Chroniker"].display = "none" ; document["Gorlop"].display = "none" ; document["Tweetums"].display = "none" ; document[otherChars].display = "block" ;}
;}

function openArt(artUrl) {window.open(artUrl,"","menubar=0,toolbar=0,location=0,directories=0,scrollbars=1,status=0,resizable=1,height=350,width=450");}

function gothere(){
	var box = document.navform.contents;
	var where_to = box.options[box.options.selectedIndex].value;
	if (where_to == "")
		{return}
	else {window.location = where_to;}
;}

function backnext(nextChapter) {
	window.location = nextChapter 
;}

function imgSwap (imgId,imgSrc) {
	document.images(imgId).src = imgSrc
;}