// JavaScript Document

function enlargeRecollectionPic(thisId)
{
	var url1 = "http://www.gundemonium.com/images/recollection/gameplay/";
	window.open(url1 + thisId + "0_large.jpg", thisId, "width=900, height=563");
}

function gpRecollection(thisId)
{
	var url11 = "http://www.gundemonium.com/images/recollection/gameplay/";
	document.getElementById("recollectionLarge").src = url11 + thisId + ".png";
	document.getElementById("gpRecollectionTitle").innerHTML = thisId;
	
	if(thisId == "Bomb Weapon")
	{
		document.getElementById("gpRecollectionDescription").innerHTML = "<p>When you press the Bomb button with at least 1 Bomb stock, on-screen enemy attacks will transform into Blue Gems, and your Bomb Attack will activate. When you activate your Bomb Attack, your Phase Level goes down by 1. If you press the Bomb button right as you get hit, it will become a Counter Bomb, preventing you from dying as it goes into effect.</p>";
	}
	
	if(thisId == "Demonic Shift")
	{
		document.getElementById("gpRecollectionDescription").innerHTML = "<p>You can trigger this by pressing the Mana Action and Bomb buttons simultaneously (B+C). Alternatively, you may assign a button to it specifically. The Demonic Shift feature is disabled in Novice difficulty. It can not be activated within that difficulty by any means.</p>";
	}
	
	if(thisId == "Friction")
	{
		document.getElementById("gpRecollectionDescription").innerHTML = "<p>When you get extremely close to enemy shots, Friction occurs. You can get 1 Friction per enemy shot, and you will also recover some Mana.</p>";
	}
	
	if(thisId == "Plane Shift")
	{
		document.getElementById("gpRecollectionDescription").innerHTML = "<p>A special field that slows time based on certain conditions. Time passes slower during a Planeshift, but the stage's time limit will not slow down.</p>";
	}
}

function chRecollection(thisId)
{
	var url12 = "http://www.gundemonium.com/images/recollection/characters/";
	document.getElementById("r-ch-large").src = url12 + thisId + ".png";
	document.getElementById("r-ch-heading").src = url12 + thisId + "-heading.png";
	
	if(thisId == "Eryth")
	{
		document.getElementById("ch-RecollectionDescription").innerHTML = "<p>Eryth is a AAA agent of the Rosenkreuz Foundation, also known as the 'Black Grim Reaper of the skies.' She is a high-mobility character who uses dual guns. She can be a bit difficult, but she is a character for average players, as strange as that may sound in this case. Eryth's weapons can not be changed.</p>";
		
		document.getElementById("ability-notice").innerHTML = "";
		document.getElementById("r-ch-abilities").src = url12 + "blank.png";
	}
	
	if(thisId == "Carina")
	{
		document.getElementById("ch-RecollectionDescription").innerHTML = "<p>A powerful type with a single-shot weapon and a close-range Mana Action. She has a peculiar yet powerful style. If you can get used to her, she might be very strong. Just the type for those who wish to tread a thorny path with only their bare feet.</p>";	
		
		document.getElementById("ability-notice").innerHTML = "<p>Earl Types: These are general-purpose characters with various customized weapon types. There are 4 default setups, but if you select the Custom option, you can switch the weapons around however you'd like.</p>";
		
		document.getElementById("r-ch-abilities").src = url12 + thisId + "-abilities.png";
		
	}
	
	if(thisId == "Seika")
	{
		document.getElementById("ch-RecollectionDescription").innerHTML = "<p>This type is armed in a similar way to Elixirel. She's easy to use, but very slow on her feet. If you want to play in a calm, slow way, this is the type for you.</p>";
		
		document.getElementById("ability-notice").innerHTML = "<p>Earl Types: These are general-purpose characters with various customized weapon types. There are 4 default setups, but if you select the Custom option, you can switch the weapons around however you'd like.</p>";	
		
		document.getElementById("r-ch-abilities").src = url12 + thisId + "-abilities.png";
	}
	
	if(thisId == "Primula")
	{
		document.getElementById("ch-RecollectionDescription").innerHTML = "<p>This is a type that has penetrating shots and fixed shots. She has a peculiar style, but you can quite expect some high performance with some exciting results.</p>";	
		
		document.getElementById("ability-notice").innerHTML = "<p>Earl Types: These are general-purpose characters with various customized weapon types. There are 4 default setups, but if you select the Custom option, you can switch the weapons around however you'd like.</p>";
		
		document.getElementById("r-ch-abilities").src = url12 + thisId + "-abilities.png";
	}
	
	if(thisId == "Elizabeth")
	{
		document.getElementById("ch-RecollectionDescription").innerHTML = "<p>A high-mobility type armed primarily with lasers. She's easy to use, but she might be a bit too fast. The perfect type for speed maniacs.</p>";	
		
		document.getElementById("ability-notice").innerHTML = "<p>Earl Types: These are general-purpose characters with various customized weapon types. There are 4 default setups, but if you select the Custom option, you can switch the weapons around however you'd like.</p>";
		
		document.getElementById("r-ch-abilities").src = url12 + thisId + "-abilities.png";
	}
	
	if(thisId == "Elixirel")
	{
		document.getElementById("ch-RecollectionDescription").innerHTML = "<p>To play as Elixirel, you must unlock her by achieving certain objectives.</p>";	
		
		document.getElementById("ability-notice").innerHTML = "";
		
		document.getElementById("r-ch-abilities").src = url12 + "blank.png";
	}
}

function enlargeGundeadlignePic(thisId)
{
	var url2 = "http://www.gundemonium.com/images/gundeadligne/gameplay/";
	window.open(url2 + thisId + ".jpg", thisId, "width=900, height=563");
}

function chGundeadligne(thisId)
{
	var url21 = "http://www.gundemonium.com/images/gundeadligne/characters/";
	document.getElementById("g-ch-large").src = url21 + thisId + ".png";
	document.getElementById("g-ch-title").innerHTML = thisId;
	
	if(thisId == "Eryth Millfall")
	{
		document.getElementById("g-ch-bio").innerHTML = "With her legendary twin Derringer guns, Golden Dawn and Nameless, Eryth is also known as the 'Black Grim Reaper of the skies.' While Eryth has given her Babel Range support attack unit to Elixirel, she has now formed a contract with the Matrix Masters. With how often her secondary weaponry changes, one must wonder if she keeps it around exclusively as a trump card rather than relying upon it.";
	}
	
	if(thisId == "Elixirel")
	{
		document.getElementById("g-ch-bio").innerHTML = "<p>She is an artificial Matrix made to fight against the Gundemonium Order. While other Matrixes are formed from the Philosopher's Stones, her core is made from a human girl's soul.</p><p>She was captured by Gundemonium and rebelled against mankind in what is now known as the Gundemonium Incident. At that time, she was ultimately destroyed by Eryth, only to be revived and reprogrammed as her assistant.</p> <p>Elixirel has devastating power, and has only gotten stronger since her death. It's rather unnerving to the Rosenkreuz Foundation. Nonetheless, it didn't stop Eryth from giving Elixirel her support attack unit, Babel Range. This made Elixirel so excited that she accidentally destroyed half of the Foundation's buildings. While her memory loss and age prevent her from controlling her immense power, Elixirel is definitely valuable to have around when things get out of control.";
	}
	
	if(thisId == "Nagi")
	{
		document.getElementById("g-ch-bio").innerHTML = "<p>Nagi uses a combination of Relics and close range rapid fire burst which inflicts major damage up close. For advanced players only.</p><p>Relics: Can only be used by Nagi and selectable before the game starts. Each Relic will give Nagi different abilities.</p> <p>Masakado: A weapon that fires a concentrated nuclear beam, extremely powerful but difficult to master.</p><p>Murakumo: A sword that circles around Nagi, useful but must be used at close range.";
	}
}

function gpGundeadligne(thisId)
{
	var url22 = "http://www.gundemonium.com/images/gundeadligne/gameplay/";
	document.getElementById("gundeadligneLarge").src = url22 + thisId + ".jpg";
	document.getElementById("g-gp-title").innerHTML = thisId;
	
	if(thisId == "Bomb Weapon")
	{
		document.getElementById("g-gp-description").innerHTML = "When you press the Bomb button with at least 1 Bomb stock, on-screen enemy attacks will transform into Blue Gems, and your Bomb Attack will activate. When you activate your Bomb Attack, your Phase Level goes down by 1. If you press the Bomb button right as you get hit, it will become a Counter Bomb, preventing you from dying as it goes into effect.";
	}
	
	if(thisId == "Rapid Shot and Overheating")
	{
		document.getElementById("g-gp-description").innerHTML = "Eryth's shot has higher power when you use Rapid Shot. This can be done either by mashing the Shot button rapidly or using the Rapid Shot button. There is a set heat rate for her shot, and it goes up every time you trigger a Rapid Shot. When this heat rate passes a certain point, you will overheat. While you are overheated, you will not be able to shoot for a short period of time. When you overheat, your Phase Level increases by 1.";
	}
	
	if(thisId == "Mana Action")
	{
		document.getElementById("g-gp-description").innerHTML = "Pressing the Mana Action button will allow you to use your secondary weaponry, with different effects depending on the character. When you use your Mana Action, a certain amount of Mana will be consumed. It goes without saying that you need enough Mana to use it. Mana can be recovered by collecting Mana Gems. There are also several other ways to recover Mana. You will always begin a stage with 99% Mana.";
	}
	
	if(thisId == "Flip Turn")
	{
		document.getElementById("g-gp-description").innerHTML = "When you press the Flip Turn button, your character will switch directions. It uses Mana, however, so be careful not to overuse it. It's best to stick to simple turns instead of trying to do fancy tricks. Elixirel's spread shot has a different pattern when she faces left, firing three shots in front of her and two shots behind her.";
	}
}

function enlargeHitogataPic(thisId)
{
	var url3 = "http://www.gundemonium.com/images/hitogata-happa/gameplay/";
	window.open(url3 + thisId + ".jpg", thisId, "width=900, height=563");
}

function gpHitogata(thisId)
{
	var url31 = "http://www.gundemonium.com/images/hitogata-happa/gameplay/";
	document.getElementById("hitogataLarge").src = url31 + thisId + ".jpg";
	document.getElementById("h-gp-title").innerHTML = thisId;
	
	if(thisId == "Bomb Attack")
	{
		document.getElementById("h-gp-description").innerHTML = "This is a kamikaze attack with high power, also known as Hitogata Happa or Humanoid Explosion. When your doll's Flow Charge is at 100%, you can initiate a Bomb Attack by ramming into an enemy. Using your Bomb Attack will destroy the doll, but it will also result in devastating damage to any enemies in range.";
	}
	
	if(thisId == "Zone of Control")
	{
		document.getElementById("h-gp-description").innerHTML = "At times, a concentric area called Zone of Control (ZOC) will appear around an enemy that the player can fly into. When this happens, and if the player is able to destroy the enemy, any projectiles within the Zone of Control will convert into small gems that can be collected. The more a player is able to attract and convert to gems, the more points the player will earn. This type of gem conversion is only availabe when using ZOC. ";
	}
	
	if(thisId == "Hitogata Dolls")
	{
		document.getElementById("h-gp-description").innerHTML = "The basic objective of the game is to avoid losing all of your dolls. The game ends when you run out of dolls. You will lose a doll if you take a direct hit from an enemy attack or if you attempt a Bomb Attack. There are initially 8 doll types, with more to unlock. You may have more than one doll of each type. Above are the Hitogata (Humanoid) explosive dolls that Rosa controls in her assaults.";
	}
	
	if(thisId == "Time Limit")
	{
		document.getElementById("h-gp-description").innerHTML = "Time limits are present during some parts of the gameplay, but especially when facing a Boss at the end of a mission. If the player is unable to defeat the Boss before time runs out, gameplay switches to Error Mode, making the Boss even more powerful.";
	}
}

function chHitogata(thisId)
{
	var url32 = "http://www.gundemonium.com/images/hitogata-happa/characters/";
	
	if(thisId == "Rosa")
	{
		document.getElementById("h-ch-large").src = url32 + thisId + ".png";
		document.getElementById("h-ch-title").innerHTML = thisId;
		document.getElementById("h-ch-bio").innerHTML = "Rosa is a girl with an uncanny natural ability to synchronize with artificial humanoids and control them. She was just an ordinary girl until she encountered Kreutzer, changing her destiny dramatically as she witnessed the war-torn state the world was in. She would later become the leader of the Rosenkreuz Foundation, utilizing her warrior dolls to shape her future and destiny, as well as to help the unstable and uncertain world she would live in. Right now, Rosa is in charge of leading an army of warrior dolls to fight an enemy empire. She will select her warriors from a small selection of types, each with their own weapons and explosive power. She fights these battles from afar, carefully monitoring whatever happens on the charred battlefields... ";
	}
	
	if(thisId == "Kreutzer")
	{
		document.getElementById("h-ch-large").src = url32 + thisId + ".png";
		document.getElementById("h-ch-title").innerHTML = thisId;
		document.getElementById("h-ch-bio").innerHTML = "Kreutzer is a girl with the ability to create artificial humanoids from Gems using the power of Mana. These humanoid dolls appear harmless and deceptively cute on the outside, but they each possess various kinds of destructive firepower, fast flight maneuverability, and devastating bombs. Additionally, each doll has its own assigned codename, such as Leaf, Clover, Assam, Dimbula, Sikkim, etc. With her knowledge of alchemy, Kreutzer is able to command her humanoid warriors. For some reason, she can not command them well enough to harness and master their full combat potential, however. For that reason, she has been searching for a commander like Rosa, who can efficiently draw forth the full power of her warriors. ";
	}
	
	if(thisId == "Leaf")
	{
		document.getElementById("h-ch-title").innerHTML = thisId + " (Hitogata Dolls)";
		document.getElementById("h-ch-bio").innerHTML = "Thrives in the early summer when the Sun is most invigorating.";
		document.getElementById("h-ch-large").src = url32 + "dolls/" + thisId + ".png";
	}
	
	if(thisId == "Clover")
	{
		document.getElementById("h-ch-title").innerHTML = thisId + " (Hitogata Dolls)";
		document.getElementById("h-ch-bio").innerHTML = "The number 4 has long been considered an unlucky number by many cultures. Ironically, a four-leafed clover is quite lucky and can be used to get out of tricky situations.";
		document.getElementById("h-ch-large").src = url32 + "dolls/" + thisId + ".png";
	}
	
	if(thisId == "Rooty")
	{
		document.getElementById("h-ch-title").innerHTML = thisId + " (Hitogata Dolls)";
		document.getElementById("h-ch-bio").innerHTML = "Just as a leaf spreads to the sky, a root spreads underground, ensnaring perfect surprises.";
		document.getElementById("h-ch-large").src = url32 + "dolls/" + thisId + ".png";
	}
	
	if(thisId == "Assam")
	{
		document.getElementById("h-ch-title").innerHTML = thisId + " (Hitogata Dolls)";
		document.getElementById("h-ch-bio").innerHTML = "Various teas join together in the summer. It may be better, however, to wait until it is cooler for a stronger tea to get the job done.";
		document.getElementById("h-ch-large").src = url32 + "dolls/" + thisId + ".png";
	}
	
	if(thisId == "Peco")
	{
		document.getElementById("h-ch-title").innerHTML = thisId + " (Hitogata Dolls)";
		document.getElementById("h-ch-bio").innerHTML = "A tea that travels on the winds of time. A visitor of various worlds. Always hungry and full of energy.";
		document.getElementById("h-ch-large").src = url32 + "dolls/" + thisId + ".png";
	}
	
	if(thisId == "Earl")
	{
		document.getElementById("h-ch-title").innerHTML = thisId + " (Hitogata Dolls)";
		document.getElementById("h-ch-bio").innerHTML = "An invigorating tea from the far east. Never fading, it brings life to all.";
		document.getElementById("h-ch-large").src = url32 + "dolls/" + thisId + ".png";
	}
	
	if(thisId == "Dimbula")
	{
		document.getElementById("h-ch-title").innerHTML = thisId + " (Hitogata Dolls)";
		document.getElementById("h-ch-bio").innerHTML = "Hailing from the highlands, this tea smells like a bright orange-colored rose. It was known to heal humans during the time of Universal Science.";
		document.getElementById("h-ch-large").src = url32 + "dolls/" + thisId + ".png";
	}
	
	if(thisId == "Sikkim")
	{
		document.getElementById("h-ch-title").innerHTML = thisId + " (Hitogata Dolls)";
		document.getElementById("h-ch-bio").innerHTML = "A resilient remnant of the old fairy kingdoms. Steadfast and unchanging.";
		document.getElementById("h-ch-large").src = url32 + "dolls/" + thisId + ".png";
	}
	
}
