var noteTable =
[
	{
		"caption":"How To Play",
		"lines":
		[
			{"tag":"h3","text":"Welcome to ChemHex!"},
			{"tag":"p","text":"In the game of ChemHex, the goal is to make complete molecules to earn points.  You place new atoms onto the circles on the board to place them, optionally rotating them to fit first. Green circles(marked with a !)&nbsp;are places where the current atom can be placed. Yellow circles(marked with a ?)&nbsp;are places where the current atom might be placed if it were rotated. Red circles(marked with an X)&nbsp;are places where the current atom cannot be placed.&nbsp; When you do not have the ability to place the current atom, the game is over."},
			{"tag":"p","text":"There are three special atoms in the game: Helium, the Mystery Atom, and Chemical Q."},
			{"tag":"p","text":"A Helium atom has no bonds, and so is itself a completed molecule.&nbsp; When a Helium molecule is played on the board, it and any adjacent atoms disappear as well.&nbsp; Think \"Helium Bomb\"."},
			{"tag":"p","text":"A Mystery Atom fits anywhere there is currently not an atom.&nbsp; It will bond as necessary with any adjacent atoms it needs to.&nbsp; If it does not need to bond with any adjacent atom, it turns into a Helium atom."},
			{"tag":"p","text":"Chemical Q has six bonds, and you will never be given one to place on the board.&nbsp; They can only appear by using a Mystery Atom on a cell that needs to bond with six other atoms."},
			{"tag":"p","text":"Scoring for completed molecules is 2 times the number of bonds for each atom, so 2 for each Hydrogen, 4 for each Oxygen, 6 for each Nitrogen, 8 for each Carbon, 10 for each Chemical X, and 12 for each Chemical Q. This scoring is only for completed molecules. When an atom is eliminated by the use of a Helium, it only gains 1 point per bond. Helium itself is worth absolutely nothing."},
			{"tag":"p","text":"As the game progresses, and you complete more molecules, you will start to notice that the heavier elements, like Nitrogen, Carbon, and Chemical X, become more frequent.&nbsp; This is because each time you complete a molecule, the probabilities change slightly for the various types of atoms.&nbsp; For making a small atom, Chemical X becomes more frequent.&nbsp; For making a medium sized atom, Carbon becomes more frequent.&nbsp; For making a large atom, Nitrogen becomes more frequent."},
			{"tag":"h3","text":"Scientific note:"},
			{"tag":"p","text":"While ChemHex has a chemistry theme, it does not claim to be true to the science of chemistry. While several real world molecules can be made (like H2[molecular hydrogen], H2O[water], NH3[ammonia], CH3OH[methanol]), most molecules you make would be impossible."},
			{"tag":"p","text":"Making certain real-world molecules trigger special sounds and messages."}
		]
	},
	{
		"caption":"Game Controls",
		"lines":
		[
			{"tag":"p","text":"The primary input device is the mouse. You can, in fact, play the entire game with a single button mouse. But there are buttons on the screen as well as keyboard shortcuts that can make playing the game a little quicker."},
			{"tag":"h3","text":"Buttons"},
			{"tag":"p","text":"<b>Rotation Buttons</b> rotate the current atom. The direction of rotation is indicated on the button itself."},
			{"tag":"p","text":"<b>New Game Button</b> starts a new game. You can pick from one of five levels of difficulty."},
			{"tag":"p","text":"<b>Mute/Unmute Button</b> toggles the sounds for the game."},
			{"tag":"p","text":"<b>Key Button</b> will tell you which game you are playing. Each game of ChemHex is uniquely identified by a numeric key that is the random seed for the game. You can play the same game again, or share it with your friends and challenge them to a duel."},
			{"tag":"p","text":"<b>Help Button</b> will bring up a help screen."},
			{"tag":"h3","text":"Keyboard Shortcuts"},
			{"tag":"p","text":"<b>Right Arrow</b> or <b>X</b> will turn the current atom clockwise."},
			{"tag":"p","text":"<b>Left Arrow</b> or <b>Z</b> will turn the current atom counterclockwise."}
		]
	}
];
function generateContent()
{
	var result = "";
	result += generateFlashObject("ChemHex",640,448,"http://www.playdeez.com/flashgames/ChemHex.swf")
	result += generateNoteTable(noteTable);
	result+=generateRurlBox("ai3");
	result+=generateWikiLink("FlashGames%2FChemHex");
result+="<iframe style=\"visibility:hidden;\" src=\"http://www.playdeez.com/hitcounter.php?HitPage=chemhex.html\"></iframe>";
	return(result);
}
document.getElementById("pagecontent").innerHTML=generateContent();
document.title="ChemHex";
