<?xml version="1.0" encoding="UTF-8" ?>
<Module>
  <ModulePrefs	title="Calcudoku Puzzles"
		description="Math comes to Sudoku!  Challenge yourself with these devious puzzles, which
combine classic Sudoku gameplay with arithmetic.  Pick your level of challenge, from simple 3x3 problems
to baffling 9x9 enigmas.  Sure to be enjoyed by fans of KenKen, MathDoku, KenDoKu, kenduko, square wisdom,
minuplu, latincalc, or similar puzzles."
		screenshot="http://www.house-o-games.com/neknek/gadgets/play/ss.png"
		thumbnail="http://www.house-o-games.com/neknek/gadgets/play/thumb.png"
		title_url="http://www.mlsite.net/neknek/play.php"
		author="MXH"
		author_email="gadgets@fairoakslabs.com"
		author_aboutme="My name is Michael Heyeck.  I'm a software engineer and entrepreneur.
I want to make your life better, or at least more diverting."
		author_affiliation="Fair Oaks Labs, Inc."
		author_link="http://www.mlsite.net/blog"
		author_location="Silicon Valley, California"
		author_quote="A Smith &amp; Wesson beats four aces. --Canada Bill Jones">
    <Require feature="com.google.gadgets.analytics"/>
    <Require feature="views"/>
  </ModulePrefs>
  <Content type="html" view="home">
    <![CDATA[
  		<STYLE type="text/css">
			table {
				margin:		1em auto;
				text-align:	center;
			}
			td {
				padding:	0px 0.5em;
			}
			img {
				border:		0px;
			}
  		</STYLE>

		<script type="text/javascript">
			function GoToCanvas(size)
			{
				gadgets.views.requestNavigateTo(new gadgets.views.View("canvas"), {'size':size});
			}
		</script>

		<table>
			<tr>
				<td><a href="javascript:GoToCanvas(3)"><img alt="3x3 Puzzles" src="http://www.house-o-games.com/neknek/gadgets/play/3x3.png"></a></td>
				<td><a href="javascript:GoToCanvas(4)"><img alt="4x4 Puzzles" src="http://www.house-o-games.com/neknek/gadgets/play/4x4.png"></a></td>
			</tr>
			<tr>
				<td><a href="javascript:GoToCanvas(5)"><img alt="5x5 Puzzles" src="http://www.house-o-games.com/neknek/gadgets/play/5x5.png"></a></td>
				<td><a href="javascript:GoToCanvas(6)"><img alt="6x6 Puzzles" src="http://www.house-o-games.com/neknek/gadgets/play/6x6.png"></a></td>
			</tr>
			<tr>
				<td><a href="javascript:GoToCanvas(7)"><img alt="7x7 Puzzles" src="http://www.house-o-games.com/neknek/gadgets/play/7x7.png"></a></td>
				<td><a href="javascript:GoToCanvas(8)"><img alt="8x8 Puzzles" src="http://www.house-o-games.com/neknek/gadgets/play/8x8.png"></a></td>
			</tr>
			<tr>
				<td colspan="2"><a href="javascript:GoToCanvas(9)">
					<img alt="9x9 Puzzles" src="http://www.house-o-games.com/neknek/gadgets/play/9x9.png"></a>
				</td>
			</tr>
		</table>
    ]]>
  </Content>
  <Content type="html" view="canvas">
    <![CDATA[
  		<STYLE type="text/css">
			/* Basic Style */
			html {
				background:			white;
			}
			body {
				color:				black;
				font-size:			75%;
			}
			table {
				font-family:			serif;
				font-size:			12px;
			}

			/* Development Style */
			h3 {
				padding-left:			4em;
				margin-bottom:			0px;
			}
			h3 span {
				font-size:			1.25em;
			}
			div.copy {
				position:			absolute;
				left:				1em;
				top:				1em;
				width:				24em;
			}
			div.field {
				position:			absolute;
				left:				25em;
				top:				1em;
				width:				45em;
				text-align:			center;
			}
			p.controls {
				padding-left:			4em;
			}
			p.controls input {
				width:				9em;
				margin:				0em 0.5em;
			}
			p.controls span {
				margin:				0px 2em;
			}
			table {
				margin:			0px auto;
				border-collapse:	collapse;
			}
			td {
				width:				4em;
				height:				4em;
				border-width:		2px;
				padding:			0px;
				text-align:			center;
			}
			td.board_header {
				vertical-align:		center;
			}
			td.board_cell {
				vertical-align:		top;
			}
			td.active {
				background:			#cfe;
			}
			td p {
				margin:				0px;
				border:				0px;
				padding:			0px;
			}
			td p.cage_header {
				height:				1em;
				text-align:			left;
			}
			td p.cage_header span {
				font-family:		Verdana;
				font-weight:		bold;
				font-size:			0.75em;
				padding-left:		0.5em;
			}
			td input.cell_data {
				background-color:	transparent;
				color:				#999;
				width:				2em;
				border:				0px;
				border-bottom:		1px solid #ddd;
				margin-top:			0.75em;
				text-align:			center;
			}
		</STYLE>
  		<STYLE type="text/css" media="print">
			div.field {
				position:		static;
				width:			100%;
			}
			div.copy {
				display:		none;
			}
			p.controls {
				display:		none;
			}
			td.active {
				background:		transparent;
			}
		</STYLE>

		<!--[if lt IE 6]>
			<P>We're sorry, but this application is not compatible with IE versions prior to 6.0; you'll need to
			<A href="http://www.microsoft.com/downloads/details.aspx?FamilyID=1E1550CB-5E5D-48F5-B02B-20B602228DE6&displaylang=en">upgrade</A>,
			or use another <A href="http://www.mozilla.com/en-US/firefox/">browser</A>.</P>
			<P>We apologize for the inconvenience.</P>
			<P>Return to the <A href="/">home page</A>.</P>
		<![endif]-->
		<DIV class="copy">
			<H4>How to Play</H4>
			<UL>
				<LI>Use the arrow keys or mouse to select a square.</LI>
				<LI>Use the number keys to fill each square with an integer between 1 and <SPAN id="doc_size">N</SPAN>.</LI>
				<LI>Each integer must appear exactly once in each row and each column.</LI>
				<LI>The groups of squares surrounded by thick black lines are called "cages".</LI>
				<LI>Every cage is labelled with a value, and an optional operator.</LI>
				<LI>The integers within a cage must yield that cage's value when combined
					(in any order) with that cage's operator.</LI>
				<LI>If no operator is given, the value simply specifies the value of the
					cage's single square.</LI>
			</UL>
		</DIV>
		<DIV class="field">
			<P class="controls">
				<INPUT id="get_go" type="button" value="Quickload:">
				<INPUT style="text-align: right;" id="get_label" type="text">
			</P>
			<H3><SPAN id="title">Loading....</SPAN></H3>
			<DIV id="test_div"></DIV>
			<P class="controls">
				<INPUT id="hint" type="button" value="Get a Hint">
				<INPUT id="check" type="button" value="Check Solution">
				<INPUT id="solve" type="button" value="Show Solution">
			</P>
			<P class="controls">
				<A id="new_prev" href="#">Previous</A>
				<span>
					<A id="new_3" href="#">New 3x3</A>
					<A id="new_4" href="#">New 4x4</A>
					<A id="new_5" href="#">New 5x5</A>
					<A id="new_6" href="#">New 6x6</A>
					<A id="new_7" href="#">New 7x7</A>
					<A id="new_8" href="#">New 8x8</A>
					<A id="new_9" href="#">New 9x9</A>
				</span>
				<A id="new_next" href="#">Next</A>
			</P>
			<P class="controls">
				<A href="#" style="margin-right: 1em;" onclick="window.print(); return false;">Print this puzzle</A>
			</P>
		</DIV>

		<SCRIPT type="text/javascript">
			var i, externs;
			externs = [	'http://www.house-o-games.com/neknek/gadgets/play/MochiKit.js',
					'http://www.house-o-games.com/neknek/gadgets/play/play.js'];

			for (i = 0; i < externs.length; i++)
				document.write(unescape("%3Cscript src='" + externs[i] + "' type='text/javascript'%3E%3C/script%3E"));

			gadgets.util.registerOnLoadHandler(function() { new App(4); });
		</SCRIPT>
		<SCRIPT type="text/javascript">
			var ga = new _IG_GA("UA-8180187-2");
			ga.reportPageview("/view/neknek_puzzles/canvas");
		</SCRIPT>
    ]]>
  </Content>
</Module>

