var xp;var yp;function zi(){if(xp!=null)return;yp=[["How to play","To solve a Sudoku, fill in the numbers 1-9 in each square, so that there's only one of each number per row, column, and box.",g("cell22")],["Square candidates","Each square that isn't filled can show the candidate numbers that might go in it. In Traditional mode, as in other solvers, you fill in the candidates starting from scratch.<br><br>In Sumo mode, the computer automatically fills in all possible candidates for you, and you <i>remove</i> candidates until there\'s only one left.",g("cell22")],["Interacting with the solver","You can move around the grid and enter numbers using the keyboard and the mouse. Try using the arrow keys to move the red selection box, or double-clicking on a candidate to set the square to that number. You can also color certain squares to help you solve tricky puzzles. See the Controls menu item on the left for the keys to use.",g("cell"+nl+ol)],["Powerful tools","Highlight Candidates and Smart Hints are two of the best features of Sudoku Slam. Move your mouse over the <img src=\'images/help.png\'> icon next to each to learn more about them.",g("highlight")],["Even more stuff","Explore the puzzle menu (mousing over the <img src=\'images/help.png\'> for each tab) to learn more about other cool features such as puzzle saving, colors, and autofill.",g("tab-box")]];xp=new Box();xp.width=300;xp.x=10;xp.y=10;tour_display(0);}
function tour_display(i){var zp=yp[i];var $p=(i<yp.length-1);var c="<div class='closebutton' onclick='tour_abort("+($p?1:0)+")'><img src='images/x-color.png' alt='[x]' width=12 height=12></div>";c+="<b>"+zp[0]+"</b><br><br>"+zp[1];if($p){c+="<div class='action' style='text-align: right; width: 100%' onmouseover=\"this.style.color='blue'\" onmouseout=\"this.style.color='black'\" onclick='tour_display("+(i+1)+")'>Next <img src='images/go-next.png' style='vertical-align: middle;' width=16 height=16></div>";}
else{c+="<div class='action' style='text-align: right; width: 100%;' onmouseover=\"this.style.color='blue'\" onmouseout=\"this.style.color='black'\" onclick='tour_abort(0)'><b>Start playing!</b></div>";}
xp.content=c;xp.set_position_obj(AUTO,zp[2],LEFT,BOTTOM);xp.manifest();}
function tour_abort(_p){if(_p==1){if(!confirm("Abort the Sudoku Slam tour?")){return;}
}
xp.hide();xp=null;}
