<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2800835365312821409</id><updated>2012-02-23T11:42:13.333-08:00</updated><category term='calendar'/><category term='playing cards'/><category term='fundamentals'/><category term='math'/><category term='tools'/><category term='Pi'/><category term='logic'/><category term='workout'/><category term='mental math'/><category term='site features'/><category term='puzzles'/><category term='america'/><category term='off-site'/><category term='usa'/><category term='exponents'/><category term='memory'/><category term='feats'/><category term='magic squares'/><category term='timed quizzes'/><title type='text'>Grey Matters: Mental Gym</title><subtitle type='html'>Train and strain your brain to entertain!</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://gmmentalgym.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://gmmentalgym.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Pi Guy</name><uri>http://www.blogger.com/profile/09760001560356969164</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://lh3.ggpht.com/_zQQCfNroX3w/TMDBGryIxfI/AAAAAAAAASw/_ygdD3eWHCU/s0/gmsc.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>52</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2800835365312821409.post-6787170978798503767</id><published>2012-01-01T00:00:00.000-08:00</published><updated>2012-01-01T02:03:01.528-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='workout'/><category scheme='http://www.blogger.com/atom/ns#' term='puzzles'/><category scheme='http://www.blogger.com/atom/ns#' term='mental math'/><category scheme='http://www.blogger.com/atom/ns#' term='calendar'/><category scheme='http://www.blogger.com/atom/ns#' term='memory'/><category scheme='http://www.blogger.com/atom/ns#' term='math'/><title type='text'>Sliding Calendar Puzzle</title><content type='html'>&lt;p&gt;&lt;a href="#tabs"&gt;Click here to jump down to the rules of this puzzle.&lt;/a&gt;&lt;/p&gt;&lt;div id="ifdisp" style="display:none;"&gt;&lt;iframe frameborder=0 scrolling="no" width="530" height="725" src="http://dl.dropbox.com/u/23420016/15cal.html"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;ul id="tabs"&gt;&lt;span id="fullpost"&gt; &lt;li&gt;&lt;a id="calfif1" href="#calfpuz" class="s"&gt;Puzzle&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a id="calfif2" href="#calfsolve" class="s"&gt;Solving&lt;/a&gt;&lt;/li&gt;&lt;/span&gt;&lt;/ul&gt;&lt;div class="panes"&gt;&lt;div&gt;&lt;h3&gt;Rules&lt;/h3&gt;Somebody has mixed up the calendar! Can you help straighten it out?&lt;span id="fullpost"&gt;&lt;p&gt;Just like the 15 puzzle, the object of this puzzle is to return all the pieces to their correct order. Instead of 15 pieces to move around, however, the puzzle below has 41 pieces. In addition, the calendar aspect adds an extra dimension to the challenge!&lt;/p&gt;&lt;p&gt;Note the year and month above the calendar puzzle itself. Your challenge is to arrange the pieces so that they form the correct calendar for that month and year. The following rules apply:&lt;/p&gt;&lt;p&gt;&lt;b&gt;• The blue square marked with a &amp;#147;1&amp;#148; will always be located somewhere in the top row.&lt;/b&gt; This should make sense. You don't start any calendar on the 2nd week.&lt;/p&gt;&lt;p&gt;&lt;b&gt;• The blue numbered tiles are arranged on their corresponding days in the month.&lt;/b&gt; If the 1st fell on a Tuesday in the given month, then the blue &amp;#147;1&amp;#148; needs to be placed in the Tuesday column, and so on.&lt;/p&gt;&lt;p&gt;&lt;b&gt;• The blue numbered tiles must be arranged in numerical order, reading from left to right, then top to bottom.&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;• The white lettered tiles are used to fill in the remaining spaces not used by the dates, and must be arrange in alphabetical order, reading from left to right, then top to bottom.&lt;/b&gt;&lt;/p&gt;&lt;p&gt;For example, if you're given a 30-day month that begins on Tuesday, the goal would be to arrange the puzzle like this:&lt;/p&gt;&lt;img src="http://i261.photobucket.com/albums/ii45/testingfark/greymatters/calslide/slidecalsample.png" style="margin-left:auto;margin-right:auto;display:block;" /&gt;&lt;p&gt;Note, in this example, that A and B are used to fill the first Sunday and Monday respectively, since the month begins on a Tuesday. After the month ends, the remaining lettered pieces, C through K, are used to fill the remaining spaces.&lt;/p&gt;&lt;p&gt;The &lt;i&gt;Year Range&lt;/i&gt; selection menus can be used to choose the range of years for your next puzzle (the default range is 2000 to 2099), and the &lt;i&gt;New Puzzle&lt;/i&gt; button will generate a new month and year, as well as shuffle the pieces.&lt;/p&gt;&lt;p&gt;For help in solving the puzzle, &lt;a href="#calfsolve"&gt;try the next section&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;Post your record times and moves, along with the year and month you solved, in the comments!&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;h3&gt;Solving&lt;/h3&gt;&lt;p&gt;The two challenges that were combined to make the sliding calendar puzzle are taught separately here in the Grey Matters Mental Gym.&lt;/p&gt;&lt;p&gt;First, learn how to solve the &lt;a href="http://gmmentalgym.blogspot.com/2010/10/solving-15-puzzle.html"&gt;classic versions of the 15 puzzle in this tutorial&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;After that, you need to &lt;a href="http://gmmentalgym.blogspot.com/2011/03/day-of-week-for-any-date-revised.html"&gt;learn how to determine the day of the week for any given date&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;To apply them to this particular puzzle, consider the year and month you're given, along with the first of the month. Once you figure out on which day of the week the first day falls, you also know which lettered tiles (if any) come before it.&lt;/p&gt;&lt;p&gt;Once you get the first lettered and numbered tiles in place, it's mostly like solving the original 15 puzzle.&lt;/p&gt;&lt;p&gt;When you get to the last two rows, the tricky part becomes working out which letter goes below which other piece. If you take into account where the letters in the top row (again, if any) left off, and how many days are in the month, this isn't too difficult.&lt;/p&gt;&lt;p&gt;Yes, you could cheat and look up the given month calendar online, but it's far more impressive to do it without looking.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;script type='text/javascript'&gt;//&lt;![CDATA[ $(document).ready(function() {  whr = location.href;  whr = whr.toLowerCase();  wrtst = whr.indexOf('sliding-calendar-puzzle');  if (wrtst != -1) {   $('div#ifdisp').css('display','block');  }; });//]]&gt;&lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800835365312821409-6787170978798503767?l=gmmentalgym.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmmentalgym.blogspot.com/feeds/6787170978798503767/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmmentalgym.blogspot.com/2011/11/sliding-calendar-puzzle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/6787170978798503767'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/6787170978798503767'/><link rel='alternate' type='text/html' href='http://gmmentalgym.blogspot.com/2011/11/sliding-calendar-puzzle.html' title='Sliding Calendar Puzzle'/><author><name>Pi Guy</name><uri>http://www.blogger.com/profile/09760001560356969164</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://lh3.ggpht.com/_zQQCfNroX3w/TMDBGryIxfI/AAAAAAAAASw/_ygdD3eWHCU/s0/gmsc.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800835365312821409.post-7231354694007146066</id><published>2011-07-17T14:00:00.000-07:00</published><updated>2011-07-17T14:04:57.327-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pi'/><category scheme='http://www.blogger.com/atom/ns#' term='memory'/><category scheme='http://www.blogger.com/atom/ns#' term='fundamentals'/><category scheme='http://www.blogger.com/atom/ns#' term='math'/><category scheme='http://www.blogger.com/atom/ns#' term='exponents'/><title type='text'>Unit Circle 2: Trig Functions</title><content type='html'>&lt;ul id="tabs"&gt;&lt;span id="fullpost"&gt;&lt;li&gt;&lt;a id="tf1" href="#tfintro" class="s"&gt;Intro&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a id="tf2" href="#tfslope" class="s"&gt;Slope&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a id="tf3" href="#tftan" class="s"&gt;Tangent&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a id="tf4" href="#tfcot" class="s"&gt;Cotangent&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a id="tf5" href="#tfseccsc" class="s"&gt;Sec/Csc&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a id="tf6" href="#tfreview" class="s"&gt;Review&lt;/a&gt;&lt;/li&gt;&lt;/span&gt;&lt;/ul&gt;&lt;div class="panes"&gt;&lt;div&gt;&lt;h3&gt;Introduction&lt;/h3&gt;This tutorial is meant as a sequel to &lt;a href="http://gmmentalgym.blogspot.com/2011/02/unit-circle.html"&gt;my unit circle tutorial&lt;/a&gt;. Much of this tutorial assumes you have already been through that one, so if haven't already done so, please go through the previous tutorial now.&lt;br /&gt;&lt;br /&gt;The unit circle is meant as a sort of idealized circle, from which all other measurements can be scaled up. &lt;a href="http://gmmentalgym.blogspot.com/2011/02/unit-circle.html#ucunderstd"&gt;Radians, for example, made it easy to determine how far a wheel was traveling&lt;/a&gt;, given its rotation in radians. All that was required was a single multiplication.&lt;br /&gt;&lt;br /&gt;&lt;span id="fullpost"&gt;As a matter of fact, all the measurements on the unit circle work this way. Sine and cosine can be applied to real world measurements with a single multiplication to scale them up or down.&lt;br /&gt;&lt;br /&gt;That's why, in the unit circle, all the trigonometric functions do a sort of double duty. They're ratios, as you've been taught, but in the idealized world of the unit circle, they can also be treated as absolutes, since they result in useful coordinates. For example, sine and cosine are both ratios that relate in different ways to the length of the hypotenuse, but also give exact coordinates to graph.&lt;br /&gt;&lt;br /&gt;In this tutorial, we'll go beyond sine and cosine, and explore the other trigonometric functions of tangent, cotangent, secant, and cosecant. The goal of this tutorial is to explain them in a way that can be easily understood, comprehended, and remembered.&lt;br /&gt;&lt;br /&gt;To explain these, we're going to scale the triangle up beyond the bounds of the unit circle. In the previous tutorial, the hypotenuse always had a length of 1 because it was representing the radius of the unit circle.&lt;br /&gt;&lt;br /&gt;The hypotenuse of a right triangle is, by definition, the longest of the three sides, so this meant that, with any given angle, the other two side must always fall on or inside the unit circle itself, because they have to be 1 (in the case of 90 degree or &amp;pi;/2 angles) or less.&lt;br /&gt;&lt;br /&gt;What happens, though, if we scale up a right triangle in the unit circle so that the width or height is 1 instead of the hypotenuse? In this tutorial, we'll try that out, and examine the useful measurements that result.&lt;br /&gt;&lt;br /&gt;To start off simply, however, we'll focus on &lt;a href="#tfslope" class="jumpup"&gt;the one thing that doesn't change as the right triangle is scaled up - its slope&lt;/a&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;h3&gt;Slope&lt;/h3&gt;Question: What's the slope of a 30 degree angle? Many would answer something like, &amp;#147;What kind of question is that? It's 30 degrees!&amp;#147;&lt;br /&gt;&lt;br /&gt;I'd give that answer half credit. It does recognize that, regardless of the lengths of the sides of the triangle, the slope does remain the same.&lt;br /&gt;&lt;br /&gt;However, slope is usually stated as decimal number, so that it's easy to multiply by. Here's a quick refresher course in slope, &lt;a href="http://video.google.com/videoplay?docid=8445649264514656651"&gt;excerpted from the series &lt;span style="font-style:italic;"&gt;The Mechanical Universe&lt;/span&gt;&lt;/a&gt;:&lt;br /&gt;&lt;br /&gt;&lt;div class="playorlink"&gt;&lt;object data="http://static.photobucket.com/player.swf" width="530" height="405" type="application/x-shockwave-flash"&gt;     &lt;param name="movie" value="http://static.photobucket.com/player.swf" /&gt;&lt;param name="flashvars" value="file=http%3A%2F%2Fvid261.photobucket.com%2Falbums%2Fii45%2Ftestingfark%2Fgreymatters%2Fslopeanim.mp4" /&gt;&lt;param name="allowFullScreen" value="true" /&gt;&lt;/object&gt;&lt;div class="jfeAlternate jfeAlternateDefault" style="display:none;"&gt;&lt;span style="font-weight:bold;"&gt;&lt;a href="http://s261.photobucket.com/albums/ii45/testingfark/greymatters/?action=view&amp;current=slopeanim.mp4"&gt;Click here to view the &lt;span style="font-style:italic;"&gt;slope animation&lt;/span&gt; video&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&amp;#147;Change in elevation&amp;#148; over &amp;#147;change in horizontal distance&amp;#148; is usually stated in a way that's catchier and easier to remember:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://latex.codecogs.com/gif.latex?slope = \frac{rise}{run}" title="slope = \frac{rise}{run}" /&gt;&lt;br /&gt;&lt;br /&gt;For example, take a 45 degree angle in the unit circle. When the hypotenuse was 1 (the radius of the unit circle), what was the rise and what was the run? If you remember the hand trick from the video, it shouldn't be too hard to recall:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://latex.codecogs.com/gif.latex?\\ rise(45^{\circ}) = \frac{\sqrt{2}}{2} = 0.7071...\\ \\ \\ run(45^{\circ}) = \frac{\sqrt{2}}{2} = 0.7071... \\ \\ \\ slope(45^{\circ}) = \frac{0.7071...}{0.7071...} = 1" title="\\ rise(45^{\circ}) = \frac{\sqrt{2}}{2} = 0.7071...\\ \\ \\ run(45^{\circ}) = \frac{\sqrt{2}}{2} = 0.7071... \\ \\ \\ slope(45^{\circ}) = \frac{0.7071...}{0.7071...} = 1" /&gt;&lt;br /&gt;&lt;br /&gt;So, for a 45-degree angle the slope is 1. In other words, for every 1 unit you move horizontally, you're going to move 1 unit vertically, as well. This makes sense for a 45-degree right triangle, since the two shorter sides are the same length.&lt;br /&gt;&lt;br /&gt;What about that 30-degree angle I asked about earlier? Lets work through that problem:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://latex.codecogs.com/gif.latex?\\ rise(30^{\circ}) = \frac{\sqrt{1}}{2} = \frac{1}{2} =0.5\\ \\ \\ run(30^{\circ}) = \frac{\sqrt{3}}{2} = 0.8660... \\ \\ \\ slope(30^{\circ}) = \frac{0.5}{0.8660...} = 0.57735..." title="\\ rise(30^{\circ}) = \frac{\sqrt{1}}{2} = \frac{1}{2} =0.5\\ \\ \\ run(30^{\circ}) = \frac{\sqrt{3}}{2} = 0.8660... \\ \\ \\ slope(30^{\circ}) = \frac{0.5}{0.8660...} = 0.57735..." /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.wolframalpha.com/input/?i=%28sqrt%281%29%2F2%29%2F%28sqrt%283%29%2F2%29"&gt;You can see a more exact answer at Wolfram|Alpha&lt;/a&gt;. It can also be &lt;a href="http://www.wolframalpha.com/input/?i=%28sqrt%283%29%29%2F3"&gt;stated as the square root of 3 over 3&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;As you'll see it again and again, you should &lt;a href="http://www.youtube.com/watch?v=9MgZ9U713M8"&gt;find a way to remember the square root of 3&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;The number is less exact than in our 45-degree answer, but the meaning remains the same. With a 30-degree angle, for every 1 unit you run (move horizontally), you're going to rise (move vertically) 0.57735... units. That's more than half a unit, but less than a slope of 0.60.&lt;br /&gt;&lt;br /&gt;We've been talking quite a bit about slope, but not much about the unit circle here. This is &lt;a href="#tftan" class="jumpup"&gt;a very important tangent however, as you'll learn in the next section&lt;/a&gt;.&lt;/div&gt;&lt;div&gt;&lt;h3&gt;Tangent&lt;/h3&gt;Ever been told by someone that you're going off on a tangent? Ultimately, the complaint is that you're going off on a line that will only take the discussion farther and farther from the main point.&lt;br /&gt;&lt;br /&gt;It's almost exactly the same definition in math. One mathematical definition of tangent is a line that touches a circle (a unit circle, for our purposes) at only one point. Starting at that one point, and then traveling along the tangent would only take you farther and farther away from that main point.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://i261.photobucket.com/albums/ii45/testingfark/greymatters/tangent.png" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;br /&gt;&lt;br /&gt;As you can see, a tangent is easy to draw. Draw a radius line at any angle, and at the point where it touches the circle, draw a line perpendicular (at a 90&amp;deg; angle) to the radius, and that's the tangent.&lt;br /&gt;&lt;br /&gt;To keep things simple in this tutorial, we're only going to consider the horizontal and vertical tangents. In this particular section, we'll only focus on the vertical tangent.&lt;br /&gt;&lt;br /&gt;The &lt;a href="http://www.wolframalpha.com/input/?i=y%3D0%2Cx%5E2%2By%5E2%3D1%2Cx%3D1"&gt;formula to graph a vertical tangent is easy, it's x=1&lt;/a&gt;. When y=0, x=1. When y=5, x=1. When y=4,287, x=1. You get the idea. Not surprisingly, the only point at which it intersects the unit circle is &lt;br /&gt;&lt;br /&gt;&lt;a href="http://gmmentalgym.blogspot.com/2011/02/unit-circle.html"&gt;In the previous tutorial&lt;/a&gt;, we always created the length of the hypotenuse (the longest side) to be 1. Imagine that, instead of the hypotenuse having length 1, we had the base have a length of 1.&lt;br /&gt;&lt;br /&gt;Here's a picture of the situation:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://i261.photobucket.com/albums/ii45/testingfark/greymatters/tantri.png" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;br /&gt;&lt;br /&gt;Here's a question for you: If we tried scaling up a 45&amp;deg; right triangle in this manner, what would the coordinates be where the hypotenuse of this new larger triangle intersects the tangent line?&lt;br /&gt;&lt;br /&gt;Let's think about this. Because the tangent is defined as x=1, the x coordinate where the hypotenuse intersects the tangent will also obviously be x=1. So, the coordinates we have so far are (1, &lt;span style="font-style:italic;"&gt;something&lt;/span&gt;). That's half the work already done!&lt;br /&gt;&lt;br /&gt;&lt;a href="#tfslope" class="jumpup"&gt;In the previous section&lt;/a&gt;, we worked out that the slope of a 45&amp;deg; angle was 1, at that meant that for every 1 unit you moved horizontally, you moved 1 unit vertically. As it happens, a base width of 1 means we are moving over 1 unit horizontally, so we should obviously move up 1 unit vertically!&lt;br /&gt;&lt;br /&gt;So, &lt;a href="http://www.wolframalpha.com/input/?i=y%3D0%2Cx%5E2%2By%5E2%3D1%2Cx%3D1%2Cy%3D1x"&gt;the coordinates of a 45&amp;deg; angle where it intersects the tangent line&lt;/a&gt; would simply by (1,1)!&lt;br /&gt;&lt;br /&gt;Did that seem easier than it should have? Let's try it with our 30&amp;deg; angle example, too. What was the slope of that angle? &lt;a href="http://www.wolframalpha.com/input/?i=sqrt%283%29%2F3"&gt;It was 0.57735...&lt;/a&gt; and so on. Let's take &lt;a href="http://www.wolframalpha.com/input/?i=y%3D0%2Cx%5E2%2By%5E2%3D1%2Cx%3D1%2Cy%3D0.57735x"&gt;a look at that angle plotted by Wolfram|Alpha&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;That means, for every 1 unit we travel horizontally, we travel 0.57735... units vertically. Yep, the coordinates where the hypotenuse meets the tangent line is (1, 0.57735...).&lt;br /&gt;&lt;br /&gt;See the pattern? Whenever a right triangle with a given angle has a base length of 1 in the unit circle, the coordinates where the hypotenuse will intersect the vertical tangent line is (1, &lt;span style="font-style:italic;"&gt;slope of that angle&lt;/span&gt;)!&lt;br /&gt;&lt;br /&gt;As with sine and cosine in the unit circle, the slope is doing double duty. It's both the slope itself, and the y coordinate where the hypotenuse intersects the tangent at x=1. In fact, we could just call this number the tangent.&lt;br /&gt;&lt;br /&gt;Remember &lt;a href="http://www.mathsisfun.com/algebra/sohcahtoa.html"&gt;SOHCAHTOA&lt;/a&gt;? That helps  remind us, among other things that the formula for the tangent is the opposite side's length over the adjacent side's length. Also, remember that those lengths on the unit circle are worked out by figuring sine (the height) and the cosine (the width)&lt;br /&gt;&lt;br /&gt;Let's take a closer look at the formulas for slope and tangent:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://latex.codecogs.com/gif.latex?\\ slope(\theta) = \frac{rise}{run} \\ \\ \\ tangent(\theta) = \frac{opposite}{adjacent} = \frac{sin(\theta)}{cos(\theta)} \\ \\ \\ sin(\theta) = rise \\ cos(\theta) = run \\ tangent(\theta) = \frac{opposite}{adjacent} = \frac{sin(\theta)}{cos(\theta)}=\frac{rise}{run}=slope(\theta)" title="\\ slope(\theta) = \frac{rise}{run} \\ \\ \\ tangent(\theta) = \frac{opposite}{adjacent} = \frac{sin(\theta)}{cos(\theta)} \\ \\ \\ sin(\theta) = rise \\ cos(\theta) = run \\ tangent(\theta) = \frac{opposite}{adjacent} = \frac{sin(\theta)}{cos(\theta)}=\frac{rise}{run}=slope(\theta)" /&gt;&lt;br /&gt;&lt;br /&gt;Yep, the tangent and the slope are always the same, which is why it works out as it does! This should also help you better understand the &lt;a href="http://gmmentalgym.blogspot.com/2011/02/unit-circle.html#ucunderstd"&gt;brief reference to figuring out tangent on your fingers from the previous tutorial&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;So far, we've only dealt with scaling triangles up to meet a vertical tangent. &lt;a href="#tfcot" class="jumpup"&gt;What happens if we scale them up to meet a horizontal tangent?&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;h3&gt;Horizontal Tangent&lt;/h3&gt;With a horizontal tangent, we're simply dealing with &lt;a href="http://www.wolframalpha.com/input/?i=y%3D0%2Cx%5E2%2By%5E2%3D1%2Cy%3D1"&gt;what happens when y=1&lt;/a&gt;, instead of x=1.&lt;br /&gt;&lt;br /&gt;Remember how we determined the tangent (the same as the slope) of a 45&amp;deg; angle was 1, so the coordinates where the hypotenuse met the vertical tangent was (1,1)? For a 45&amp;deg;, this works out nicely, since it intersects the horizontal tangent in the same place.&lt;br /&gt;&lt;br /&gt;Let's go back to our 30&amp;deg; example, and get a better idea of what changes. The slope is 0.57735..., so let's view what happens when we try this out:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://i261.photobucket.com/albums/ii45/testingfark/greymatters/cottri.png" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.wolframalpha.com/input/?i=y%3D0%2Cx%3D1%2Cy%3D1%2Cx%5E2%2By%5E2%3D1%2Cy%3D0.57735x"&gt;Here's another look at the same situation, via Wolfram|Alpha&lt;/a&gt; (albeit slightly distorted). Even without knowing the exact coordinates, we can see that the hypotenuse, in the 30&amp;deg; case, is MUCH longer than where it intersected the vertical tangent.&lt;br /&gt;&lt;br /&gt;So, what are the coordinates? We start in a manner similar to before, with the coordinates (&lt;span style="font-style:italic;"&gt;something&lt;/span&gt;, 1), because the horizontal tangent formula is y=1 (instead of x=1 for the vertical tangent).&lt;br /&gt;&lt;br /&gt;In the case of the vertical tangent, we just multiplied 1 (the x coordinate) times the slope to get the y coordinate. Since we're still talking about the same 30&amp;deg; angle, the slope is still the same 0.57735... we used before. We'll just have to come at it from the other way:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://latex.codecogs.com/gif.latex?\\(x,y) \ where \ y = x \times 0.57735... \\ \\ if \ y = 1, then: \\ \\ 1 = x \times0.57735... \\ \\ \frac{1}{0.57735...} = \frac{x \times 0.57735...}{0.57735...} \\ \\ \\ \frac{1}{0.57735...} = x \\ \\ 1.73205... = x \\ \\ (x,y) = (1.73205...,1)" title="\\(x,y) \ where \ y = x \times 0.57735... \\ \\ if \ y = 1, then: \\ \\ 1 = x \times0.57735... \\ \\ \frac{1}{0.57735...} = \frac{x \times 0.57735...}{0.57735...} \\ \\ \\ \frac{1}{0.57735...} = x \\ \\ 1.73205... = x \\ \\ (x,y) = (1.73205...,1)" /&gt;&lt;br /&gt;&lt;br /&gt;You can actually see several important things here. First, we found the coordinates for where our 30&amp;deg; angle intersects the horizontal tangent at (1.73205...,1). Second, while the tangent relationship of y = x &amp;times; 0.57735... still holds, it would seem easier just to state the relationship the other way around, as in x = y &amp;times; 1.73205..., especially when that lets you multiply by 1.&lt;br /&gt;&lt;br /&gt;Finally, note that you can always find where the hypotenuse intersects the horizontal tangent by dividing 1 by the tangent of the same angle. That's why this number is given the name &lt;span style="font-style:italic;"&gt;cotangent&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;If you think about it, there are several ways to find the cotangent:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://latex.codecogs.com/gif.latex?cotangent(\theta) = \frac{1}{tangent(\theta)} = \frac{run}{rise} = \frac{cos \ \theta}{sin \ \theta} = \frac{adjacent}{hypotenuse}" title="cotangent(\theta) = \frac{1}{tangent(\theta)} = \frac{run}{rise} = \frac{cos \ \theta}{sin \ \theta} = \frac{adjacent}{hypotenuse}" /&gt;&lt;br /&gt;&lt;br /&gt;As a brief review, we &lt;a href="http://gmmentalgym.blogspot.com/2011/02/unit-circle.html"&gt;covered sine and cosine in the previous tutorial&lt;/a&gt;, and now we've &lt;a href="#tftan" class="jumpup"&gt;covered tangent&lt;/a&gt; and cotangent. If you think of the horizontal tangent as being a cotangent line, then this is easier to understand.&lt;br /&gt;&lt;br /&gt;We keep talking about the slope of the hypotenuse and the coordinates where the hypotenuse intersects the tangent and cotangent lines, but what happens to the length of the hypotenuse as triangles are scaled up to meet the tangent and cotangent lines? &lt;a href="#tfseccsc" class="jumpup"&gt;That's discussed in the next section&lt;/a&gt;.&lt;/div&gt;&lt;div&gt;&lt;h3&gt;Hypotenuse Length&lt;/h3&gt;We're going to switch from focusing on the slope of the hypotenuse to its length.&lt;br /&gt;&lt;br /&gt;This almost means a return to our old friend from the right-triangle, the &lt;a href="http://en.wikipedia.org/wiki/Pythagorean_theorem"&gt;Pythagorean Theorem&lt;/a&gt;: a&lt;sup&gt;2&lt;/sup&gt; + b&lt;sup&gt;2&lt;/sup&gt; = c&lt;sup&gt;2&lt;/sup&gt;.&lt;br /&gt;&lt;br /&gt;When the hypotenuse is 1 unit long, the squares of the other two sides must add up to 1. For example, in our 30&amp;deg; angle, where the cosine (width) is 0.8660... and the sine (height) is 0.5, we get:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://latex.codecogs.com/gif.latex?\\ a^{2} + b^{2} = c^{2} \\ (0.8660...)^{2} + (0.5)^{2} = c^{2} \\ 0.75 + 0.25 = c^{2} \\ 1 = c^{2} \\ \sqrt{1} = \sqrt{c^{2}} \\ 1 = c" title="\\ a^{2} + b^{2} = c^{2} \\ (0.8660...)^{2} + (0.5)^{2} = c^{2} \\ 0.75 + 0.25 = c^{2} \\ 1 = c^{2} \\ \sqrt{1} = \sqrt{c^{2}} \\ 1 = c" /&gt;&lt;br /&gt;&lt;br /&gt;However, the hypotenuse must get longer to meet the tangent lines as we've seen. Let's start as before, scaling up to meet the tangent line (that's the vertical tangent). We've already seen that the coordinates of a 30&amp;deg; angle gives us coordinates of (1, 0.57735...). As in the above example, we note that the coordinates are also the lengths of the two smaller sides. That being the case, let's figure out how long the hypotenuse is when it meets the vertical tangent:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://latex.codecogs.com/gif.latex?\\ (1)^{2} + (0.57735...)^{2} = c^{2} \\ 1 + 0.\overline{333} = c^{2} \\ 1.\overline{333} = c^{2} \\ \\ \sqrt{1.\overline{333}} = \sqrt{c^{2}} \\ 1.1547... = c" title="\\ (1)^{2} + (0.57735...)^{2} = c^{2} \\ 1 + 0.\overline{333} = c^{2} \\ 1.\overline{333} = c^{2} \\ \\ \sqrt{1.\overline{333}} = \sqrt{c^{2}} \\ 1.1547... = c" /&gt;&lt;br /&gt;&lt;br /&gt;So, we see that the hypotenuse is now 1.1547... units long. Since the original hypotenuse was only 1 unit long, this is a sort of scaling factor for the hypotenuse.&lt;br /&gt;&lt;br /&gt;Take another look, though. When we scaled the width of a 30&amp;deg; right triangle from 0.866... to 1, that's a factor of 1.1547... times, as well. The height went from 0.5 units to 0.57735... units, which is also a scaling factor of 1.1547... times!&lt;br /&gt;&lt;br /&gt;So, this one factor, when scaling a right triangle up to meet the tangent line tells us how to scale the lengths of all the sides in order to do so! Since we're scaling up from a hypotenuse of 1, this factor also gives us the exact length of the hypotenuse after being scaled up to the tangent line.&lt;br /&gt;&lt;br /&gt;In trigonometry, this factor is called the &lt;span style="font-style:italic;"&gt;secant&lt;/span&gt;. Since we scale the width of the triangle (the cosine, in the unit triangle) up to 1, it shouldn't be surprising that we can find the secant in this manner:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://latex.codecogs.com/gif.latex?secant(\theta) = \frac{1}{cos(\theta)}" title="secant(\theta) = \frac{1}{cos(\theta)}" /&gt;&lt;br /&gt;&lt;br /&gt;The hypotenuse length was 1 before scaling it up, so you could also work it out by dividing the hypotenuse by the width:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://latex.codecogs.com/gif.latex?secant(\theta) = \frac{1}{cos(\theta)} =\frac{hypotenuse}{adjacent}" title="secant(\theta) = \frac{1}{cos(\theta)} =\frac{hypotenuse}{adjacent}" /&gt;&lt;br /&gt;&lt;h3&gt;Meeting the Cotangent Line&lt;/h3&gt;Let's not forget the length of hypotenuse when scaled up to meet the cotangent line (that's the horizontal tangent line).&lt;br /&gt;&lt;br /&gt;Our example 30&amp;deg; right triangle, when scaled up to meet the cotangent line, we found the coordinates (and side lengths) of (1.73205...,1). Let's run the numbers just as before, and find the hypotenuse length:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://latex.codecogs.com/gif.latex?\\ (1.73205...)^{2} + (1)^{2} = c^{2} \\ 3 + 1 = c^{2} \\ 4 = c^{2} \\ \sqrt{4} = \sqrt{c^{2}} \\ 2 = c" title="\\ (1.73205...)^{2} + (1)^{2} = c^{2} \\ 3 + 1 = c^{2} \\ 4 = c^{2} \\ \sqrt{4} = \sqrt{c^{2}} \\ 2 = c" /&gt;&lt;br /&gt;&lt;br /&gt;Oh! The hypotenuse in this case is exactly 2 units long. We took the height (the sine) from 0.5 to 1, which is a factor of exactly 2 units, so we shouldn't be surprised when the hypotenuse (and the width, for that matter) scales up by a factor of 2 units.&lt;br /&gt;&lt;br /&gt;Since this scaling factor deals with scaling the height up to the cotangent line, this factor is naturally called the &lt;span style="font-style:italic;"&gt;cosecant&lt;/span&gt;. The formulas for cosecant are as follows:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://latex.codecogs.com/gif.latex?cosecant(\theta) = \frac{1}{sin(\theta)} =\frac{hypotenuse}{opposite}" title="cosecant(\theta) = \frac{1}{sin(\theta)} =\frac{hypotenuse}{opposite}" /&gt;&lt;br /&gt;&lt;br /&gt;At this point, you should understand all 6 trigonometric functions: sine, cosine, tangent, cotangent, secant and cosecant. Once understood, however, they can be easily confused. In our final section, &lt;a href="#tfreview" class="jumpup"&gt;I'll offer some mnemonics to help keep them all straight&lt;/a&gt;.&lt;/div&gt;&lt;div&gt;&lt;h3&gt;Mnemonics&lt;/h3&gt;When you have the explanations and formulas in front of you, it's much easier to keep these things straight. How is it possible to keep all this straight in your head?&lt;br /&gt;&lt;br /&gt;Let's break things up several ways. First, by the pairs in which you learned them.&lt;br /&gt;&lt;br /&gt;Sine and cosine can be thought of as the simple lengths of the sides in the unit circle, when the hypotenuse is 1. Think of &lt;span style="font-style:italic;font-weight:bold;"&gt;signs&lt;/span&gt; that tell you the length of a road.&lt;br /&gt;&lt;br /&gt;Tangent and cotangent deal with the unit coordinates when the triangles are scaled up to meet the tangent and the cotangent lines respectively. This is its own mnemonic: tangents deal with tangents.&lt;br /&gt;&lt;br /&gt;Secant and cosecant are the scaling factors to the tangent and cotangent lines respectively. Think &lt;span style="font-style:italic;font-weight:bold;"&gt;secant&lt;/span&gt; means &lt;span style="font-style:italic;font-weight:bold;"&gt;&amp;#147;secaling&amp;#148; factor&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Once you get the functions themselves straight, it can seem tricky to remember which of each pair deals with horizontal information and which ones deal with vertical information. However, there's an almost built-in mnemonic: look for the &amp;#147;o&amp;#148;.&lt;br /&gt;&lt;br /&gt;Sine is the &lt;span style="font-weight:bold;"&gt;vertical&lt;/span&gt; length of the triangle. Tangent deals with coordinates when scaled up to the &lt;span style="font-weight:bold;"&gt;vertical&lt;/span&gt; tangent line. Secant deals with scaling factors up to the &lt;span style="font-weight:bold;"&gt;vertical&lt;/span&gt; tangent.&lt;br /&gt;&lt;br /&gt;On the other hand, cosine is the &lt;span style="font-weight:bold;"&gt;horizontal&lt;/span&gt; length of the triangle. Cotangent deals with coordinates when scaled up to the &lt;span style="font-weight:bold;"&gt;horizontal&lt;/span&gt; tangent line. Cosecant deals with scaling factors up to the &lt;span style="font-weight:bold;"&gt;horizontal&lt;/span&gt; tangent.&lt;br /&gt;&lt;br /&gt;Do you see what I mean by &amp;#147;looking for the o&amp;#148;? The words &lt;span style="font-weight:bold;"&gt;horizontal&lt;/span&gt;, &lt;span style="font-weight:bold;"&gt;cosine&lt;/span&gt;, &lt;span style="font-weight:bold;"&gt;cotangent&lt;/span&gt;, and &lt;span style="font-weight:bold;"&gt;cosecant&lt;/span&gt; all have an o in them, so they all go together.&lt;br /&gt;&lt;br /&gt;Similarly, none of the words &lt;span style="font-weight:bold;"&gt;vertical&lt;/span&gt;, &lt;span style="font-weight:bold;"&gt;sine&lt;/span&gt;, &lt;span style="font-weight:bold;"&gt;tangent&lt;/span&gt;, and &lt;span style="font-weight:bold;"&gt;secant&lt;/span&gt; feature an o in them, so they all go together.&lt;br /&gt;&lt;br /&gt;Looking for the letter o is an appropriate mnemonic for a circle, don't you think?&lt;br /&gt;&lt;br /&gt;Another challenge is remembering the respective formulas. As mentioned before, &lt;a href="http://www.mathsisfun.com/algebra/sohcahtoa.html"&gt;SOHCAHTOA&lt;/a&gt; is the classic way to remember this, but that only gives 3 formulas.&lt;br /&gt;&lt;br /&gt;Here's a lesser known yet more amusing mnemonic that gives all 6 formulas. Start by writing down the dividing lines, and writing &amp;#147;OOH AAH&amp;#148; above them:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://latex.codecogs.com/gif.latex?\\ A = adjacent \ side \ length \\ H = hypotenuse \ length \\ O = opposite \ side \ length \\ \\ \frac{O}{ } \ \ \frac{O}{ } \ \ \frac{H}{ } \ \ \frac{A}{ } \ \ \frac{A}{ } \ \ \frac{H}{ }" title="\\ A = adjacent \ side \ length \\ H = hypotenuse \ length \\ O = opposite \ side \ length \\ \\ \frac{O}{ } \ \ \frac{O}{ } \ \ \frac{H}{ } \ \ \frac{A}{ } \ \ \frac{A}{ } \ \ \frac{H}{ }" /&gt;&lt;br /&gt;&lt;br /&gt;&amp;#147;OOH AAH&amp;#148; is, no doubt, the sound you made upon first learning about unit circles. On the bottom, you're going to write &amp;#147;OOH AAH&amp;#148; again, but this time from right to left (as in &amp;#147;HAA HOO&amp;#148;):&lt;br /&gt;&lt;br /&gt;&lt;img src="http://latex.codecogs.com/gif.latex?\frac{O}{H} \ \ \frac{O}{A} \ \ \frac{H}{A} \ \ \frac{A}{H} \ \ \frac{A}{O} \ \ \frac{H}{O}" title="\frac{O}{H} \ \ \frac{O}{A} \ \ \frac{H}{A} \ \ \frac{A}{H} \ \ \frac{A}{O} \ \ \frac{H}{O}" /&gt;&lt;br /&gt;&lt;br /&gt;From left to right, these are the formulas for the three vertical functions, sine (O/H), tangent (O/A), secant (H/A), followed by the three horizontal functions in the same order, cosine (A/H), cotangent (A/O), and cosecant (H/O).&lt;br /&gt;&lt;br /&gt;You've also noticed that you can get some of these ratios simply by taking the inverse (dividing 1 by another number) of other factors. Tangent and cotangent are easy:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://latex.codecogs.com/gif.latex?\\ tan \ \theta = \frac{1}{cot \ \theta} \\ \\ \\ cot \ \theta = \frac{1}{tan \ \theta}" title="\\ tan \ \theta = \frac{1}{cot \ \theta} \\ \\ \\ cot \ \theta = \frac{1}{tan \ \theta}" /&gt;&lt;br /&gt;&lt;br /&gt;The ones beginning with t's are easy, so they can be thought of together. The ones featuring c's and s's are a little trickier:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://latex.codecogs.com/gif.latex?\\ csc \ \theta = \frac{1}{sin \ \theta} \\ \\ \\ sin \ \theta = \frac{1}{csc \ \theta} \\ \\ \\ sec \ \theta = \frac{1}{cos \ \theta} \\ \\ \\ cos \ \theta = \frac{1}{sec \ \theta}" title="\\ csc \ \theta = \frac{1}{sin \ \theta} \\ \\ \\ sin \ \theta = \frac{1}{csc \ \theta} \\ \\ \\ sec \ \theta = \frac{1}{cos \ \theta} \\ \\ \\ cos \ \theta = \frac{1}{sec \ \theta}" /&gt;&lt;br /&gt;&lt;br /&gt;When focusing on secant or cosecant, ignore the first s or c you see, and look for the second s or c. In the case of secant, you'd look at it as se&lt;span style="font-style:italic;font-weight:bold;"&gt;C&lt;/span&gt;ant. This C lets you know that it's the inverse of the function that begins with C - cosine!&lt;br /&gt;&lt;br /&gt;With cosecant, you'd look at it as co&lt;span style="font-style:italic;font-weight:bold;"&gt;S&lt;/span&gt;ecant, and remember that this S it telling you that it's the inverse of the other S - sine!&lt;br /&gt;&lt;br /&gt;Once you have that relationship down, &lt;a href="http://www.youtube.com/watch?v=McIbWHgjQng"&gt;here's a video that will take your knowledge of the trigonometric functions to the next level&lt;/a&gt;. It plays quickly, so you should pause it to read and understand everything it says:&lt;br /&gt;&lt;br /&gt;&lt;object width="530" height="427"&gt;&lt;param name="movie" value="http://www.youtube.com/v/McIbWHgjQng?version=3&amp;amp;hl=en_US&amp;amp;rel=0"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/McIbWHgjQng?version=3&amp;amp;hl=en_US&amp;amp;rel=0" type="application/x-shockwave-flash" width="530" height="427" allowscriptaccess="always" allowfullscreen="true"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;Any further questions, class?&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800835365312821409-7231354694007146066?l=gmmentalgym.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmmentalgym.blogspot.com/feeds/7231354694007146066/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmmentalgym.blogspot.com/2011/07/unit-circle-2-trig-functions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/7231354694007146066'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/7231354694007146066'/><link rel='alternate' type='text/html' href='http://gmmentalgym.blogspot.com/2011/07/unit-circle-2-trig-functions.html' title='Unit Circle 2: Trig Functions'/><author><name>Pi Guy</name><uri>http://www.blogger.com/profile/09760001560356969164</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://lh3.ggpht.com/_zQQCfNroX3w/TMDBGryIxfI/AAAAAAAAASw/_ygdD3eWHCU/s0/gmsc.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://i261.photobucket.com/albums/ii45/testingfark/greymatters/th_tangent.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800835365312821409.post-3985355036560490167</id><published>2011-03-01T22:01:00.000-08:00</published><updated>2011-03-01T22:07:30.200-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='feats'/><category scheme='http://www.blogger.com/atom/ns#' term='workout'/><category scheme='http://www.blogger.com/atom/ns#' term='mental math'/><category scheme='http://www.blogger.com/atom/ns#' term='calendar'/><category scheme='http://www.blogger.com/atom/ns#' term='memory'/><title type='text'>Day of the Week For Any Date Quiz (Revised)</title><content type='html'>&lt;script type='text/javascript'&gt;//&lt;![CDATA[function random(maxValue) {day= new Date();hour= day.getHours();min=day.getMinutes();sec=day.getSeconds();mili=day.getTime()return(((hour*3600)+(min*60)+(sec)+mili) % maxValue);}function ranom(maxValue) {return(Math.floor(Math.random()*maxValue));} function weekquiz() {  var quiz = [   {     ques: "What's the week code for Sunday?",    ans: "0",    ansSel: [null, "1", "2", "3", "4", "5", "6"],    ansInfo: "Remember: SUNday = NONEday."   },   {     ques: "What's the week code for Monday?",    ans: "1",    ansSel: ["0", null, "2", "3", "4", "5", "6"],    ansInfo: "Remember: MONday = ONEday."   },   {     ques: "What's the week code for Tuesday?",    ans: "2",    ansSel: ["0", "1", null, "3", "4", "5", "6"],    ansInfo: "Remember: TWOSday."   },   {     ques: "What's the week code for Wednesday?",    ans: "3",    ansSel: ["0", "1", "2", null, "4", "5", "6"],    ansInfo: "Remember: 3 fingers look like a W."   },   {     ques: "What's the week code for Thursday?",    ans: "4",    ansSel: ["0", "1", "2", "3", null, "5", "6"],    ansInfo: "Remember: FOURSday."   },   {     ques: "What's the week code for Friday?",    ans: "5",    ansSel: ["0", "1", "2", "3", "4", null, "6"],    ansInfo: "Remember: FIVEday."   },   {     ques: "What's the week code for Saturday?",    ans: "6",    ansSel: ["0", "1", "2", "3", "4", "5", null],    ansInfo: "Remember: SIXturday."   }   ];  var options = {   title: "Weekday Codes",   quizType: "multi"  };  $("#quizarea").jQuizMe(quiz, options); }; function mnthquiz() {  var quiz = [   {     ques: "What's the month code for January?",    ans: "6",    ansSel: ["0", "1", "2", "3", "4", "5", null],    ansInfo: "Remember: WINTER has 6 letters."   },   {    ques: "What's the month code for February?",    ans: "2",    ansSel: ["0", "1", null, "3", "4", "5", "6"],    ansInfo: "Remember: February is the 2nd month."   },   {    ques: "What's the month code for March?",    ans: "2",    ansSel: ["0", "1", null, "3", "4", "5", "6"],    ansInfo: "Remember: March 2 the beat."   },   {    ques: "What's the month code for April?",    ans: "5",    ansSel: ["0", "1", "2", "3", "4", null, "6"],    ansInfo: "Remember: APRIL and FOOLS have 5 letters."   },   {    ques: "What's the month code for May?",    ans: "0",    ansSel: [null, "1", "2", "3", "4", "5", "6"],    ansInfo: "Remember: May-0."   },   {    ques: "What's the month code for June?",    ans: "3",    ansSel: ["0", "1", "2", null, "4", "5", "6"],    ansInfo: "Remember: June BUG, and BUG has 3 letters."   },   {    ques: "What's the month code for July?",    ans: "5",    ansSel: ["0", "1", "2", "3", "4", null, "6"],    ansInfo: "Remember: On July 4th, you'll see 5verworks."   },   {    ques: "What's the month code for August?",    ans: "1",    ansSel: ["0", null, "2", "3", "4", "5", "6"],    ansInfo: "Remember: August picnic with A-1 sauce."   },   {    ques: "What's the month code for September?",    ans: "4",    ansSel: ["0", "1", "2", "3", null, "5", "6"],    ansInfo: "Remember: FALL has 4 letters."   },   {    ques: "What's the month code for October?",    ans: "6",    ansSel: ["0", "1", "2", "3", "4", "5", null],    ansInfo: "Remember: 6 or treat!"   },   {    ques: "What's the month code for November?",    ans: "2",    ansSel: ["0", "1", null, "3", "4", "5", "6"],    ansInfo: "Remember: 2 legs on a 2rkey."   },   {    ques: "What's the month code for December?",    ans: "4",    ansSel: ["0", "1", "2", "3", null, "5", "6"],    ansInfo: "Remember: LAST (or XMAS) has 4 letters."   }   ];  var options = {   title: "Month Codes",   quizType: "multi"  };  $("#quizarea").jQuizMe(quiz, options); };  function whichothree() {var dayname=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");var mons=new Array("January","February","March","April","May","June","July","August","September","October","November","December");var monlen=new Array(31,28,31,30,31,30,31,31,30,31,30,31);var moncode=new Array(6,2,2,5,0,3,5,1,4,6,2,4);var fakedays=new Array();lp=0;maxValue=4;numA=random(maxValue);maxValue=8;numB=numA + 2000;numC=numA % 4;numD=(numA / 4) - (numC / 4);numD=numD + numA;maxValue=12;numE=ranom(maxValue);numD=numD + moncode[numE];strE=mons[numE];ck=numA % 4;if (ck == 0) {    lp=1;};ck=numA % 100;if (ck == 0) {    ck2=numB % 400;    if (ck2 != 0) {        lp=0;    }};maxValue=monlen[numE];if (numE == 1) {    maxValue=maxValue + lp;};numF=random(maxValue);numF=numF + 1;numD=numD + numF;if (lp == 1) {    if ((numE == 0) || (numE == 1)) {        numD=numD - 1;    };};if (ck == 0) {   if (ck2 != 0) {      if (lp == 0) {         numD=numD - 1;      };   };};numD=numD % 7;strC=dayname[numD];fkar = 0;i=0;do {    if (dayname[i] != strC) {   fakedays[fkar] = dayname[i];    }    else{     fakedays[fkar] = null;    };    fkar = fkar + 1;    i++;    if (i == 7) { break;    };} while (i != 8);strR="On which day of the week is " + strE + " " + numF + ", " + numB + "?";  var quiz = [   {     ques: strR,    ans: strC,    ansSel: fakedays,   }   ];  var options = {   title: "Dates: 2000 to 2003",   disableRestart: true,   quizType: "multi"  };  $("#quizarea").jQuizMe(quiz, options); }; function lpcodetwofour() {  var quiz = [   {     ques: "What's the year code for 2000?",    ans: "0",    ansSel: [null, "1", "2", "3", "4", "5", "6"],    ansInfo: "Remember: 2000 is mostly 0s."   },   {     ques: "What's the year code for 2004?",    ans: "5",    ansSel: ["0", "1", "2", "3", "4", null, "6"],    ansInfo: "Remember: Count: 4...5...."   },   {     ques: "What's the year code for 2008?",    ans: "3",    ansSel: ["0", "1", "2", null, "4", "5", "6"],    ansInfo: "Remember: Right half of 8 looks like 3."   },   {     ques: "What's the year code for 2012?",    ans: "1",    ansSel: ["0", null, "2", "3", "4", "5", "6"],    ansInfo: "Remember: 12 &amp;divide; 12 = 1 (12 rule)."   },   {     ques: "What's the year code for 2016?",    ans: "6",    ansSel: ["0", "1", "2", "3", "4", "5", null],    ansInfo: "Remember: 16 ends in 6."   },   {     ques: "What's the year code for 2020?",    ans: "4",    ansSel: ["0", "1", "2", "3", null, "5", "6"],    ansInfo: "Remember: 2 + 0 + 2 + 0 = 4."   },   {     ques: "What's the year code for 2024?",    ans: "2",    ansSel: ["0", "1", null, "3", "4", "5", "6"],    ansInfo: "Remember: 24 &amp;divide; 12 = 2 (12 rule)."   }   ];  var options = {   title: "Leap Year Codes: 2000 to 2024",   quizType: "multi"  };  $("#quizarea").jQuizMe(quiz, options); }; function lpdatetwofour() {var dayname=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");var mons=new Array("January","February","March","April","May","June","July","August","September","October","November","December");var monlen=new Array(31,28,31,30,31,30,31,31,30,31,30,31);var moncode=new Array(6,2,2,5,0,3,5,1,4,6,2,4);var fakedays=new Array();lp=0;maxValue=7;numA=random(maxValue);numA=numA * 4;maxValue=8;numB=numA + 2000;numC=numA % 4;numD=(numA / 4) - (numC / 4);numD=numD + numA;maxValue=12;numE=ranom(maxValue);numD=numD + moncode[numE];strE=mons[numE];ck=numA % 4;if (ck == 0) {    lp=1;};ck=numA % 100;if (ck == 0) {    ck2=numB % 400;    if (ck2 != 0) {        lp=0;    }};maxValue=monlen[numE];if (numE == 1) {    maxValue=maxValue + lp;};numF=random(maxValue);numF=numF + 1;numD=numD + numF;if (lp == 1) {    if ((numE == 0) || (numE == 1)) {        numD=numD - 1;    };};if (ck == 0) {   if (ck2 != 0) {      if (lp == 0) {         numD=numD - 1;      };   };};numD=numD % 7;strC=dayname[numD];fkar = 0;i=0;do {    if (dayname[i] != strC) {   fakedays[fkar] = dayname[i];    }    else{     fakedays[fkar] = null;    };    fkar = fkar + 1;    i++;    if (i == 7) { break;    };} while (i != 8);strR="On which day of the week is " + strE + " " + numF + ", " + numB + "?";  var quiz = [   {     ques: strR,    ans: strC,    ansSel: fakedays,   }   ];  var options = {   title: "Leap Year Dates: 2000 to 2024",   disableRestart: true,   quizType: "multi"  };  $("#quizarea").jQuizMe(quiz, options); }; function lpcodeninesix() {  var quiz = [   {     ques: "What's the year code for 2000?",    ans: "0",    ansSel: [null, "1", "2", "3", "4", "5", "6"],    ansInfo: "Remember: 2000 is mostly 0s."   },   {     ques: "What's the year code for 2004?",    ans: "5",    ansSel: ["0", "1", "2", "3", "4", null, "6"],    ansInfo: "Remember: Count: 4...5...."   },   {     ques: "What's the year code for 2008?",    ans: "3",    ansSel: ["0", "1", "2", null, "4", "5", "6"],    ansInfo: "Remember: Right half of 8 looks like 3."   },   {     ques: "What's the year code for 2012?",    ans: "1",    ansSel: ["0", null, "2", "3", "4", "5", "6"],    ansInfo: "Remember: 12 &amp;divide; 12 = 1 (12 rule)."   },   {     ques: "What's the year code for 2016?",    ans: "6",    ansSel: ["0", "1", "2", "3", "4", "5", null],    ansInfo: "Remember: 16 ends in 6."   },   {     ques: "What's the year code for 2020?",    ans: "4",    ansSel: ["0", "1", "2", "3", null, "5", "6"],    ansInfo: "Remember: 2 + 0 + 2 + 0 = 4."   },   {     ques: "What's the year code for 2024?",    ans: "2",    ansSel: ["0", "1", null, "3", "4", "5", "6"],    ansInfo: "Remember: 24 &amp;divide; 12 = 2 (12 rule)."   },   {     ques: "What's the year code for 2028?",    ans: "0",    ansSel: [null, "1", "2", "3", "4", "5", "6"],    ansInfo: "Remember: 2028 - 28 = 2000 = 0."   },   {     ques: "What's the year code for 2032?",    ans: "5",    ansSel: ["0", "1", "2", "3", "4", null, "6"],    ansInfo: "Remember: 2032 - 28 = 2004 = 5."   },   {     ques: "What's the year code for 2036?",    ans: "3",    ansSel: ["0", "1", "2", null, "4", "5", "6"],    ansInfo: "Remember: 36 &amp;divide; 12 = 3 (12 rule)."   },   {     ques: "What's the year code for 2040?",    ans: "1",    ansSel: ["0", null, "2", "3", "4", "5", "6"],    ansInfo: "Remember: 2040 - 28 = 2012 = 1."   },   {     ques: "What's the year code for 2044?",    ans: "6",    ansSel: ["0", "1", "2", "3", "4", "5", null],    ansInfo: "Remember: 2044 - 28 = 2016 = 6."   },   {     ques: "What's the year code for 2048?",    ans: "4",    ansSel: ["0", "1", "2", "3", null, "5", "6"],    ansInfo: "Remember: 48 &amp;divide; 12 = 4 (12 rule)."   },   {     ques: "What's the year code for 2052?",    ans: "2",    ansSel: ["0", "1", null, "3", "4", "5", "6"],    ansInfo: "Remember: 2052 - 28 = 2024 = 2."   },   {     ques: "What's the year code for 2056?",    ans: "0",    ansSel: [null, "1", "2", "3", "4", "5", "6"],    ansInfo: "Remember: 2056 - 56 = 2000 = 0."   },   {     ques: "What's the year code for 2060?",    ans: "5",    ansSel: ["0", "1", "2", "3", "4", null, "6"],    ansInfo: "Remember: 60 &amp;divide; 12 = 5 (12 rule)."   },   {     ques: "What's the year code for 2064?",    ans: "3",    ansSel: ["0", "1", "2", null, "4", "5", "6"],    ansInfo: "Remember: 2064 - 56 = 2008 = 3."   },   {     ques: "What's the year code for 2068?",    ans: "1",    ansSel: ["0", null, "2", "3", "4", "5", "6"],    ansInfo: "Remember: 2068 - 56 = 2012 = 1."   },   {     ques: "What's the year code for 2072?",    ans: "6",    ansSel: ["0", "1", "2", "3", "4", "5", null],    ansInfo: "Remember: 72 &amp;divide; 12 = 6 (12 rule)."   },   {     ques: "What's the year code for 2076?",    ans: "4",    ansSel: ["0", "1", "2", "3", null, "5", "6"],    ansInfo: "Remember: 2076 - 56 = 2020 = 4."   },   {     ques: "What's the year code for 2080?",    ans: "2",    ansSel: ["0", "1", null, "3", "4", "5", "6"],    ansInfo: "Remember: 2080 - 56 = 2024 = 2."   },   {     ques: "What's the year code for 2084?",    ans: "0",    ansSel: [null, "1", "2", "3", "4", "5", "6"],    ansInfo: "Remember: 84 &amp;divide; 12 = 7 = 0 (12 rule)."   },   {     ques: "What's the year code for 2088?",    ans: "5",    ansSel: ["0", "1", "2", "3", "4", null, "6"],    ansInfo: "Remember: 2088 - 84 = 2004 = 5."   },   {     ques: "What's the year code for 2092?",    ans: "3",    ansSel: ["0", "1", "2", null, "4", "5", "6"],    ansInfo: "Remember: 2092 - 84 = 2008 = 3."   },   {     ques: "What's the year code for 2096?",    ans: "1",    ansSel: ["0", null, "2", "3", "4", "5", "6"],    ansInfo: "Remember: 96 &amp;divide; 12 = 8 = 1 (12 rule)."   }   ];  var options = {   title: "Leap Year Codes: 2000 to 2096",   quizType: "multi"  };  $("#quizarea").jQuizMe(quiz, options); };  function lpdateninesix() {var dayname=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");var mons=new Array("January","February","March","April","May","June","July","August","September","October","November","December");var monlen=new Array(31,28,31,30,31,30,31,31,30,31,30,31);var moncode=new Array(6,2,2,5,0,3,5,1,4,6,2,4);var fakedays=new Array();lp=0;maxValue=25;numA=random(maxValue);numA=numA * 4;maxValue=8;numB=numA + 2000;numC=numA % 4;numD=(numA / 4) - (numC / 4);numD=numD + numA;maxValue=12;numE=ranom(maxValue);numD=numD + moncode[numE];strE=mons[numE];ck=numA % 4;if (ck == 0) {    lp=1;};ck=numA % 100;if (ck == 0) {    ck2=numB % 400;    if (ck2 != 0) {        lp=0;    }};maxValue=monlen[numE];if (numE == 1) {    maxValue=maxValue + lp;};numF=random(maxValue);numF=numF + 1;numD=numD + numF;if (lp == 1) {    if ((numE == 0) || (numE == 1)) {        numD=numD - 1;    };};if (ck == 0) {   if (ck2 != 0) {      if (lp == 0) {         numD=numD - 1;      };   };};numD=numD % 7;strC=dayname[numD];fkar = 0;i=0;do {    if (dayname[i] != strC) {   fakedays[fkar] = dayname[i];    }    else{     fakedays[fkar] = null;    };    fkar = fkar + 1;    i++;    if (i == 7) { break;    };} while (i != 8);strR="On which day of the week is " + strE + " " + numF + ", " + numB + "?";  var quiz = [   {     ques: strR,    ans: strC,    ansSel: fakedays,   }   ];  var options = {   title: "Leap Year Dates: 2000 to 2096",   disableRestart: true,   quizType: "multi"  };  $("#quizarea").jQuizMe(quiz, options); }; function yrcodes() {  var quiz = [   {     ques: "What's the year code for 2000?",    ans: "0",    ansSel: [null, "1", "2", "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2001?",    ans: "1",    ansSel: ["0", null, "2", "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2002?",    ans: "2",    ansSel: ["0", "1", null, "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2003?",    ans: "3",    ansSel: ["0", "1", "2", null, "4", "5", "6"]   },   {     ques: "What's the year code for 2004?",    ans: "5",    ansSel: ["0", "1", "2", "3", "4", null, "6"]   },   {     ques: "What's the year code for 2005?",    ans: "6",    ansSel: ["0", "1", "2", "3", "4", "5", null]   },   {     ques: "What's the year code for 2006?",    ans: "0",    ansSel: [null, "1", "2", "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2007?",    ans: "1",    ansSel: ["0", null, "2", "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2008?",    ans: "3",    ansSel: ["0", "1", "2", null, "4", "5", "6"]   },   {     ques: "What's the year code for 2009?",    ans: "4",    ansSel: ["0", "1", "2", "3", null, "5", "6"]   },   {     ques: "What's the year code for 2010?",    ans: "5",    ansSel: ["0", "1", "2", "3", "4", null, "6"]   },   {     ques: "What's the year code for 2011?",    ans: "6",    ansSel: ["0", "1", "2", "3", "4", "5", null]   },   {     ques: "What's the year code for 2012?",    ans: "1",    ansSel: ["0", null, "2", "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2013?",    ans: "2",    ansSel: ["0", "1", null, "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2014?",    ans: "3",    ansSel: ["0", "1", "2", null, "4", "5", "6"]   },   {     ques: "What's the year code for 2015?",    ans: "4",    ansSel: ["0", "1", "2", "3", null, "5", "6"]   },   {     ques: "What's the year code for 2016?",    ans: "6",    ansSel: ["0", "1", "2", "3", "4", "5", null]   },   {     ques: "What's the year code for 2017?",    ans: "0",    ansSel: [null, "1", "2", "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2018?",    ans: "1",    ansSel: ["0", null, "2", "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2019?",    ans: "2",    ansSel: ["0", "1", null, "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2020?",    ans: "4",    ansSel: ["0", "1", "2", "3", null, "5", "6"]   },   {     ques: "What's the year code for 2021?",    ans: "5",    ansSel: ["0", "1", "2", "3", "4", null, "6"]   },   {     ques: "What's the year code for 2022?",    ans: "6",    ansSel: ["0", "1", "2", "3", "4", "5", null]   },   {     ques: "What's the year code for 2023?",    ans: "0",    ansSel: [null, "1", "2", "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2024?",    ans: "2",    ansSel: ["0", "1", null, "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2025?",    ans: "3",    ansSel: ["0", "1", "2", null, "4", "5", "6"]   },   {     ques: "What's the year code for 2026?",    ans: "4",    ansSel: ["0", "1", "2", "3", null, "5", "6"]   },   {     ques: "What's the year code for 2027?",    ans: "5",    ansSel: ["0", "1", "2", "3", "4", null, "6"]   },   {     ques: "What's the year code for 2028?",    ans: "0",    ansSel: [null, "1", "2", "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2029?",    ans: "1",    ansSel: ["0", null, "2", "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2030?",    ans: "2",    ansSel: ["0", "1", null, "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2031?",    ans: "3",    ansSel: ["0", "1", "2", null, "4", "5", "6"]   },   {     ques: "What's the year code for 2032?",    ans: "5",    ansSel: ["0", "1", "2", "3", "4", null, "6"]   },   {     ques: "What's the year code for 2033?",    ans: "6",    ansSel: ["0", "1", "2", "3", "4", "5", null]   },   {     ques: "What's the year code for 2034?",    ans: "0",    ansSel: [null, "1", "2", "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2035?",    ans: "1",    ansSel: ["0", null, "2", "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2036?",    ans: "3",    ansSel: ["0", "1", "2", null, "4", "5", "6"]   },   {     ques: "What's the year code for 2037?",    ans: "4",    ansSel: ["0", "1", "2", "3", null, "5", "6"]   },   {     ques: "What's the year code for 2038?",    ans: "5",    ansSel: ["0", "1", "2", "3", "4", null, "6"]   },   {     ques: "What's the year code for 2039?",    ans: "6",    ansSel: ["0", "1", "2", "3", "4", "5", null]   },   {     ques: "What's the year code for 2040?",    ans: "1",    ansSel: ["0", null, "2", "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2041?",    ans: "2",    ansSel: ["0", "1", null, "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2042?",    ans: "3",    ansSel: ["0", "1", "2", null, "4", "5", "6"]   },   {     ques: "What's the year code for 2043?",    ans: "4",    ansSel: ["0", "1", "2", "3", null, "5", "6"]   },   {     ques: "What's the year code for 2044?",    ans: "6",    ansSel: ["0", "1", "2", "3", "4", "5", null]   },   {     ques: "What's the year code for 2045?",    ans: "0",    ansSel: [null, "1", "2", "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2046?",    ans: "1",    ansSel: ["0", null, "2", "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2047?",    ans: "2",    ansSel: ["0", "1", null, "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2048?",    ans: "4",    ansSel: ["0", "1", "2", "3", null, "5", "6"]   },   {     ques: "What's the year code for 2049?",    ans: "5",    ansSel: ["0", "1", "2", "3", "4", null, "6"]   },   {     ques: "What's the year code for 2050?",    ans: "6",    ansSel: ["0", "1", "2", "3", "4", "5", null]   },   {     ques: "What's the year code for 2051?",    ans: "0",    ansSel: [null, "1", "2", "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2052?",    ans: "2",    ansSel: ["0", "1", null, "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2053?",    ans: "3",    ansSel: ["0", "1", "2", null, "4", "5", "6"]   },   {     ques: "What's the year code for 2054?",    ans: "4",    ansSel: ["0", "1", "2", "3", null, "5", "6"]   },   {     ques: "What's the year code for 2055?",    ans: "5",    ansSel: ["0", "1", "2", "3", "4", null, "6"]   },   {     ques: "What's the year code for 2056?",    ans: "0",    ansSel: [null, "1", "2", "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2057?",    ans: "1",    ansSel: ["0", null, "2", "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2058?",    ans: "2",    ansSel: ["0", "1", null, "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2059?",    ans: "3",    ansSel: ["0", "1", "2", null, "4", "5", "6"]   },   {     ques: "What's the year code for 2060?",    ans: "5",    ansSel: ["0", "1", "2", "3", "4", null, "6"]   },   {     ques: "What's the year code for 2061?",    ans: "6",    ansSel: ["0", "1", "2", "3", "4", "5", null]   },   {     ques: "What's the year code for 2062?",    ans: "0",    ansSel: [null, "1", "2", "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2063?",    ans: "1",    ansSel: ["0", null, "2", "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2064?",    ans: "3",    ansSel: ["0", "1", "2", null, "4", "5", "6"]   },   {     ques: "What's the year code for 2065?",    ans: "4",    ansSel: ["0", "1", "2", "3", null, "5", "6"]   },   {     ques: "What's the year code for 2066?",    ans: "5",    ansSel: ["0", "1", "2", "3", "4", null, "6"]   },   {     ques: "What's the year code for 2067?",    ans: "6",    ansSel: ["0", "1", "2", "3", "4", "5", null]   },   {     ques: "What's the year code for 2068?",    ans: "1",    ansSel: ["0", null, "2", "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2069?",    ans: "2",    ansSel: ["0", "1", null, "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2070?",    ans: "3",    ansSel: ["0", "1", "2", null, "4", "5", "6"]   },   {     ques: "What's the year code for 2071?",    ans: "4",    ansSel: ["0", "1", "2", "3", null, "5", "6"]   },   {     ques: "What's the year code for 2072?",    ans: "6",    ansSel: ["0", "1", "2", "3", "4", "5", null]   },   {     ques: "What's the year code for 2073?",    ans: "0",    ansSel: [null, "1", "2", "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2074?",    ans: "1",    ansSel: ["0", null, "2", "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2075?",    ans: "2",    ansSel: ["0", "1", null, "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2076?",    ans: "4",    ansSel: ["0", "1", "2", "3", null, "5", "6"]   },   {     ques: "What's the year code for 2077?",    ans: "5",    ansSel: ["0", "1", "2", "3", "4", null, "6"]   },   {     ques: "What's the year code for 2078?",    ans: "6",    ansSel: ["0", "1", "2", "3", "4", "5", null]   },   {     ques: "What's the year code for 2079?",    ans: "0",    ansSel: [null, "1", "2", "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2080?",    ans: "2",    ansSel: ["0", "1", null, "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2081?",    ans: "3",    ansSel: ["0", "1", "2", null, "4", "5", "6"]   },   {     ques: "What's the year code for 2082?",    ans: "4",    ansSel: ["0", "1", "2", "3", null, "5", "6"]   },   {     ques: "What's the year code for 2083?",    ans: "5",    ansSel: ["0", "1", "2", "3", "4", null, "6"]   },   {     ques: "What's the year code for 2084?",    ans: "0",    ansSel: [null, "1", "2", "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2085?",    ans: "1",    ansSel: ["0", null, "2", "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2086?",    ans: "2",    ansSel: ["0", "1", null, "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2087?",    ans: "3",    ansSel: ["0", "1", "2", null, "4", "5", "6"]   },   {     ques: "What's the year code for 2088?",    ans: "5",    ansSel: ["0", "1", "2", "3", "4", null, "6"]   },   {     ques: "What's the year code for 2089?",    ans: "6",    ansSel: ["0", "1", "2", "3", "4", "5", null]   },   {     ques: "What's the year code for 2090?",    ans: "0",    ansSel: [null, "1", "2", "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2091?",    ans: "1",    ansSel: ["0", null, "2", "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2092?",    ans: "3",    ansSel: ["0", "1", "2", null, "4", "5", "6"]   },   {     ques: "What's the year code for 2093?",    ans: "4",    ansSel: ["0", "1", "2", "3", null, "5", "6"]   },   {     ques: "What's the year code for 2094?",    ans: "5",    ansSel: ["0", "1", "2", "3", "4", null, "6"]   },   {     ques: "What's the year code for 2095?",    ans: "6",    ansSel: ["0", "1", "2", "3", "4", "5", null]   },   {     ques: "What's the year code for 2096?",    ans: "1",    ansSel: ["0", null, "2", "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2097?",    ans: "2",    ansSel: ["0", "1", null, "3", "4", "5", "6"]   },   {     ques: "What's the year code for 2098?",    ans: "3",    ansSel: ["0", "1", "2", null, "4", "5", "6"]   },   {     ques: "What's the year code for 2099?",    ans: "4",    ansSel: ["0", "1", "2", "3", null, "5", "6"]   }   ];  var options = {   title: "Year Codes: 2000 to 2099",   numOfQuizQues: 10,   quizType: "multi"  };  $("#quizarea").jQuizMe(quiz, options); }; function whichnrw() {var dayname=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");var mons=new Array("January","February","March","April","May","June","July","August","September","October","November","December");var monlen=new Array(31,28,31,30,31,30,31,31,30,31,30,31);var moncode=new Array(6,2,2,5,0,3,5,1,4,6,2,4);var fakedays=new Array();lp=0;maxValue=100;numA=random(maxValue);maxValue=8;numB=numA + 2000;numC=numA % 4;numD=(numA / 4) - (numC / 4);numD=numD + numA;maxValue=12;numE=ranom(maxValue);numD=numD + moncode[numE];strE=mons[numE];ck=numA % 4;if (ck == 0) {    lp=1;};ck=numA % 100;if (ck == 0) {    ck2=numB % 400;    if (ck2 != 0) {        lp=0;    }};maxValue=monlen[numE];if (numE == 1) {    maxValue=maxValue + lp;};numF=random(maxValue);numF=numF + 1;numD=numD + numF;if (lp == 1) {    if ((numE == 0) || (numE == 1)) {        numD=numD - 1;    };};if (ck == 0) {   if (ck2 != 0) {      if (lp == 0) {         numD=numD - 1;      };   };};numD=numD % 7;strC=dayname[numD];fkar = 0;i=0;do {    if (dayname[i] != strC) {   fakedays[fkar] = dayname[i];    }    else{     fakedays[fkar] = null;    };    fkar = fkar + 1;    i++;    if (i == 7) { break;    };} while (i != 8);strR="On which day of the week is " + strE + " " + numF + ", " + numB + "?";  var quiz = [   {     ques: strR,    ans: strC,    ansSel: fakedays,   }   ];  var options = {   title: "Dates: 2000 to 2099",   disableRestart: true,   quizType: "multi"  };  $("#quizarea").jQuizMe(quiz, options); }; function whichwide() {var dayname=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");var mons=new Array("January","February","March","April","May","June","July","August","September","October","November","December");var monlen=new Array(31,28,31,30,31,30,31,31,30,31,30,31);var moncode=new Array(6,2,2,5,0,3,5,1,4,6,2,4);var fakedays=new Array();lp=0;maxValue=100;numA=random(maxValue);maxValue=8;numB=ranom(maxValue);numB=numB + 1;numR=numB;numB=(numB * 100) + numA + 1500;numC=numA % 4;numD=(numA / 4) - (numC / 4);numD=numD + numA;maxValue=12;numE=ranom(maxValue);numD=numD + moncode[numE];strE=mons[numE];ck=numA % 4;if (ck == 0) {    lp=1;};ck=numA % 100;if (ck == 0) {    ck2=numB % 400;    if (ck2 != 0) {        lp=0;    }};maxValue=monlen[numE];if (numE == 1) {    maxValue=maxValue + lp;};numF=random(maxValue);numF=numF + 1;numD=numD + numF;if (lp == 1) {    if ((numE == 0) || (numE == 1)) {        numD=numD - 1;    };};if (numR == 2) {   numD=numD + 5;};if (numR == 3) {   numD=numD + 3;};if (numR == 4) {   numD=numD + 1;};if (numR == 6) {   numD=numD + 5;};if (numR == 7) {   numD=numD + 3;};if (numR == 8) {   numD=numD + 1;};if (ck == 0) {   if (ck2 != 0) {      if (lp == 0) {         numD=numD - 1;      };   };};numD=numD % 7;strC=dayname[numD];fkar = 0;i=0;do {    if (dayname[i] != strC) {   fakedays[fkar] = dayname[i];    }    else{     fakedays[fkar] = null;    };    fkar = fkar + 1;    i++;    if (i == 7) { break;    };} while (i != 8);strR="On which day of the week is " + strE + " " + numF + ", " + numB + "?";  var quiz = [   {     ques: strR,    ans: strC,    ansSel: fakedays,   }   ];  var options = {   title: "Dates: 1600 to 2399",   disableRestart: true,   quizType: "multi"  };  $("#quizarea").jQuizMe(quiz, options); };//]]&gt;&lt;/script&gt;&lt;span id="fullpost"&gt;&lt;a href="http://gmmentalgym.blogspot.com/2011/03/day-of-week-for-any-date-revised.html"&gt;Learn to perform the Day of the Week For Any Date (Revised) feat here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a class="gmButton" onclick="weekquiz()"&gt;Weekday Codes&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a class="gmButton" onclick="mnthquiz()"&gt;Month Codes&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a class="gmButton" onclick="whichothree()"&gt;Dates: 2000 to 2003&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a class="gmButton" onclick="lpcodetwofour()"&gt;Leap Year Codes: 2000 to 2024&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a class="gmButton" onclick="lpdatetwofour()"&gt;Leap Year Dates: 2000 to 2024&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a class="gmButton" onclick="lpcodeninesix()"&gt;Leap Year Codes: 2000 to 2096&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a class="gmButton" onclick="lpdateninesix()"&gt;Leap Year Dates: 2000 to 2096&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a class="gmButton" onclick="yrcodes()"&gt;Year Codes: 2000 to 2099&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a class="gmButton" onclick="whichnrw()"&gt;Dates: 2000 to 2099&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a class="gmButton" onclick="whichwide()"&gt;Dates: 1600 to 2399&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Quiz will appear below:&lt;br /&gt;&lt;div id="quizarea"&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800835365312821409-3985355036560490167?l=gmmentalgym.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmmentalgym.blogspot.com/feeds/3985355036560490167/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmmentalgym.blogspot.com/2011/03/day-of-week-for-any-date-quiz-revised.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/3985355036560490167'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/3985355036560490167'/><link rel='alternate' type='text/html' href='http://gmmentalgym.blogspot.com/2011/03/day-of-week-for-any-date-quiz-revised.html' title='Day of the Week For Any Date Quiz (Revised)'/><author><name>Pi Guy</name><uri>http://www.blogger.com/profile/09760001560356969164</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://lh3.ggpht.com/_zQQCfNroX3w/TMDBGryIxfI/AAAAAAAAASw/_ygdD3eWHCU/s0/gmsc.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800835365312821409.post-3466403859969321580</id><published>2011-03-01T22:00:00.000-08:00</published><updated>2011-10-31T20:17:39.739-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='feats'/><category scheme='http://www.blogger.com/atom/ns#' term='mental math'/><category scheme='http://www.blogger.com/atom/ns#' term='calendar'/><category scheme='http://www.blogger.com/atom/ns#' term='memory'/><title type='text'>Day of the Week For Any Date (Revised)</title><content type='html'>&lt;ul id="tabs"&gt;&lt;span id="fullpost"&gt;&lt;li&gt;&lt;a id="nd1" href="#ndatebasics" class="s"&gt;Basics&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a id="nd2" href="#ndateformula" class="s"&gt;Formula&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a id="nd3" href="#ndateleaps" class="s"&gt;Leap Years&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a id="nd4" href="#ndateally" class="s"&gt;All Years&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a id="nd4" href="#ndate1900s" class="s"&gt;1900s +&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a id="nd4" href="#ndatetips" class="s"&gt;Tips&lt;/a&gt;&lt;/li&gt;&lt;/span&gt;&lt;/ul&gt;&lt;div class="panes"&gt;&lt;div&gt;&lt;h2&gt;Re-Introduction&lt;/h2&gt;In this feat, someone gives you a date, and you quickly state the day of the week on which it fell. This new approach is updated for the 21st century, and employs new tips and tricks that help make this feat simpler to learn and quicker to perform.&lt;br /&gt;&lt;span id="fullpost"&gt;&lt;h2&gt;Approach:&lt;/h2&gt;The Day of the Week For Any Date feat combines both memory and mental math. A relatively simple mastery of both, though, will create a response far out of proportion to the required work.&lt;br /&gt;&lt;br /&gt;Before I describe the basics of the approach, I'd like to help you get a good idea of your goal, as well as what's possible, by seeing this feat performed by various people in the following videos:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://www.youtube.com/watch?v=M4vqr3_ROIk#t=7m50s"&gt;Dr. Arthur Benjamin performing at TED&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.youtube.com/watch?v=jA-WUCNW-jI"&gt;8-year old Florian Osmani on German TV&lt;/a&gt; (in &lt;a href="http://www.speakgerman.co.uk/vocab/days_of_the_week"&gt;German&lt;/a&gt;)&lt;/li&gt;&lt;/ul&gt;Here's the basic principles, broken down into simple steps:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1) Day and Months Number Conversion:&lt;/span&gt; To work out the days of the week mentally, we need to convert them into numbers. We'll also need to convert the months into numbers, to adjust for their effects. These are taught in an easy-to-remember manner. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2) Addition of 3 Numbers:&lt;/span&gt; Without using a calculator, can you tell me what 6 + 6 + 31 is? That's about as difficult as the basic formula gets. If you're comfortable doing that, you won't have a problem working through the formula.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3) Subtracting Multiples of 7:&lt;/span&gt; Let's say you're asked about the 27th of a month. Regardless of the month or year, we can state with certainty that the 27th of a month will fall on the 6th (since it's 3 weeks, or 21 days, earlier). Since adding 6 is simpler than adding 27, and will give the same result, why not use 6? If you learn to subtract multiples of 7, this makes the arithmetic so easy that you won't have to worry about addition problems any tougher than 6 + 6 + 6!&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4) Year Number Conversion:&lt;/span&gt; After becoming comfortable with all of the above when given dates in the years 2000 to 2003, you'll learn how to remember and adjust the leap years in the 21st century to key dates. After learning those, you'll learn a simple way to adjust for any year from 2000 to 2099, and even adjust for other centuries!&lt;br /&gt;&lt;br /&gt;Running through all these principles, there will be an emphasis on recognizing and taking advantage of patterns. The quicker you can recognize a pattern, the quicker will be your calculation.&lt;br /&gt;&lt;br /&gt;We'll start with the codes for the days of the week, since that is our goal. All the formulas and patterns you'll learn later will result in a number from 0 to 6. This number is turned into a weekday as follows:&lt;br /&gt;&lt;br /&gt;&lt;table class="flexme"&gt;&lt;thead&gt;&lt;tr&gt;              &lt;th width="164"&gt;Day of Week&lt;/th&gt;              &lt;th width="164"&gt;Number&lt;/th&gt;              &lt;th width="164"&gt;Mnemonic&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;     &lt;tbody&gt;&lt;tr&gt;              &lt;td&gt;Sunday&lt;/td&gt;              &lt;td&gt;0&lt;/td&gt;              &lt;td&gt;SUNday=NONEday&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;Monday&lt;/td&gt;              &lt;td&gt;1&lt;/td&gt;              &lt;td&gt;MONday=ONEday&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;Tuesday&lt;/td&gt;              &lt;td&gt;2&lt;/td&gt;              &lt;td&gt;TWOSday&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;Wednesday&lt;/td&gt;              &lt;td&gt;3&lt;/td&gt;              &lt;td&gt;&lt;a href="http://commons.wikimedia.org/wiki/File:Counting_Hands_3.png"&gt;Three fingers look like a W&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;Thursday&lt;/td&gt;              &lt;td&gt;4&lt;/td&gt;              &lt;td&gt;FOURSday&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;Friday&lt;/td&gt;              &lt;td&gt;5&lt;/td&gt;              &lt;td&gt;FIVEday&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;Saturday&lt;/td&gt;              &lt;td&gt;6&lt;/td&gt;              &lt;td&gt;SIXturday&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt; &lt;/table&gt;&lt;br /&gt;To help get you comfortable with converting numbers into days, &lt;a href="http://gmmentalgym.blogspot.com/2011/03/day-of-week-for-any-date-quiz-revised.html"&gt;take the Weekday Codes quiz here&lt;/a&gt;. Once you can get a perfect score in a short time, then continue with this tutorial.&lt;br /&gt;&lt;br /&gt;Next, you need to learn the codes for the months. Like the weekdays, they range from 0 to 6:&lt;br /&gt;&lt;br /&gt;&lt;table class="flexme"&gt;&lt;thead&gt;&lt;tr&gt;              &lt;th width="164"&gt;Month&lt;/th&gt;              &lt;th width="164"&gt;Number&lt;/th&gt;              &lt;th width="164"&gt;Mnemonic&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;     &lt;tbody&gt;&lt;tr&gt;              &lt;td&gt;January&lt;/td&gt;              &lt;td&gt;6&lt;/td&gt;              &lt;td&gt;WINTER has 6 letters&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;February&lt;/td&gt;              &lt;td&gt;2&lt;/td&gt;              &lt;td&gt;February is 2nd month&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;March&lt;/td&gt;              &lt;td&gt;2&lt;/td&gt;              &lt;td&gt;March 2 the beat.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;April&lt;/td&gt;              &lt;td&gt;5&lt;/td&gt;              &lt;td&gt;APRIL has 5 letters (&amp;amp; FOOLS!)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;May&lt;/td&gt;              &lt;td&gt;0&lt;/td&gt;              &lt;td&gt;MAY-0&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;June&lt;/td&gt;              &lt;td&gt;3&lt;/td&gt;              &lt;td&gt;June BUG (BUG has 3 letters)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;July&lt;/td&gt;              &lt;td&gt;5&lt;/td&gt;              &lt;td&gt;FIVERworks&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;August&lt;/td&gt;              &lt;td&gt;1&lt;/td&gt;              &lt;td&gt;A-1 Steak Sauce at picnic&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;September&lt;/td&gt;              &lt;td&gt;4&lt;/td&gt;              &lt;td&gt;FALL has 4 letters&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;October&lt;/td&gt;              &lt;td&gt;6&lt;/td&gt;              &lt;td&gt;SIX or treat!&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;November&lt;/td&gt;              &lt;td&gt;2&lt;/td&gt;              &lt;td&gt;2 legs on 2rkey&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;December&lt;/td&gt;              &lt;td&gt;4&lt;/td&gt;              &lt;td&gt;LAST (or XMAS) has 4 letters&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt; &lt;/table&gt;&lt;br /&gt;&lt;a href="http://gmmentalgym.blogspot.com/2011/03/day-of-week-for-any-date-quiz-revised.html"&gt;Take the Month Codes quiz here&lt;/a&gt; to help reinforce the mnemonics.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt; It's important to note that, in leap years, January reduces by one to 5, and February reduces by one to 1. The other years don't change in leap years. Leap years will be discussed in more detail later.&lt;br /&gt;&lt;br /&gt;Once you're comfortable with both the month and weekday codes, you're ready to start calculating your first dates. In the &lt;a href="#ndateformula" class="jumpup"&gt;next tab, you'll learn how to use these codes to work out dates for the years 2000 to 2003&lt;/a&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;h2&gt;Formula&lt;/h2&gt;Ready for the formula? Here it is: &lt;span style="font-weight:bold;"&gt;Month Code + Date + Year Code = Day of Week Code&lt;/span&gt;. It's a lot simpler than many people think, but there are some fine points to learn.&lt;br /&gt;&lt;br /&gt;We haven't covered year codes yet, so I'm just going to teach you four simple ones with which to start out:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;2000 = 0&lt;/li&gt;&lt;li&gt;2001 = 1&lt;/li&gt;&lt;li&gt;2002 = 2&lt;/li&gt;&lt;li&gt;2003 = 3&lt;/li&gt;&lt;/ul&gt;Those shouldn't be too hard to remember, should they? We'll learn more year codes later in this tutorial, but for now, we'll just focus on these years.&lt;br /&gt;&lt;br /&gt;Let's start with a simple example. Let's figure out May 1, 2000. The code for May is what? The mnemonic is MAY-0, so May is a 0. The date itself is the first, so we use 1. The year code for 2000 is 0, so our problem is 0 + 1 + 0 = 1.&lt;br /&gt;&lt;br /&gt;Which weekday has a code of 1? ONEday is MONday, so Monday is the day of the week on which May 1, 2000 fell. &lt;a href="http://www.searchforancestors.com/utility/dayofweek.html"&gt;You can verify that at this site&lt;/a&gt;. Congratulations, you've just calculated your first date!&lt;br /&gt;&lt;br /&gt;Let's try a date that's a little more challenging. Our next date is October 4, 2000. October is 6 (remember &amp;#147;SIX or treat&amp;#148;?), and 2000 is still 0, so that gives us 6 + 4 + 0 = 10. And the weekday that goes with 10 is...&lt;br /&gt;&lt;br /&gt;Wait a minute, the weekday codes only range from 0 to 6! What do we do with a 10, or any result higher than 6 for that matter?&lt;br /&gt;&lt;br /&gt;If you look on a calendar, the 10th of any month will always fall on the same day of the week as the 3rd, because the 3rd is 7 days earlier. So, with the result, or any number in the formula, we can subtract 7, or any multiples of 7 to reduce the answer. You may want to &lt;a href="http://www.youtube.com/watch?v=LDHTJGVWgG4"&gt;refresh yourself on the multiples of 7 with the help of Schoolhouse Rock here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;In our October 4, 2000 example, we got 10 as a result, so we can reduce that by 7. 10 - 7 = 3, so our result boils down to 3. Which day of the week is 3? Since 3 fingers looks like the letter W, that's Wednesday. &lt;a href="http://www.searchforancestors.com/utility/dayofweek.html"&gt;Once again, you can check that here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;This reduction of the multiples of 7 can make the problem itself easier, as well. Let's try figuring out the day of the week for Halloween 2001, or October 31, 2001. October is 6, and 2001 is a 1, so the problem works out to be 6 + 31 + 1 = 38. The closest multiple of 7 to 38 is 35, so we do 38 - 35 = 3, which &lt;a href="http://www.searchforancestors.com/utility/dayofweek.html"&gt;gives us another Wednesday&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;That approach works, but it could be made simpler. When you hear that the date is the 31st, you can reduce that right away by working out that 31 - 28 (the closest multiple of 7 to 31) = 3, and doing 6 + 3 + 1 = 10. True, you would still need to reduce that 10 to 3 again to get Wednesday, but you'd need to subtract multiples of 7 either way.&lt;br /&gt;&lt;br /&gt;Note that, by bringing the dates down by multiples of 7, you're making the problem you have to add much simpler. If 6 + 31 + 1 and 6 + 3 + 1 will both give you the same results, wouldn't you prefer to make it easier on yourself?&lt;br /&gt;&lt;br /&gt;The scary technical term for subtracting multiples in this manner is &lt;a href="http://betterexplained.com/articles/fun-with-modular-arithmetic/"&gt;modulo arithmetic, which is explained quite clearly at BetterExplained.com&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Let's try this with Valentine's Day in 2003. We start by making sure of the date, February 14, 2003. February is a 2 (remember the mnemonic?), and 2003 is a 3. The problem then becomes 2 + 14 + 3. However, if you spotted that 14 was already a multiple of 7, you should realize that you can drop it out completely! 14, or any multiple of 7, is the same as 0, so you can ignore them. For February 14, 2003, all you really need to add is 2 + 3 = 5. 5 is a FIVEday, or rather a Friday, &lt;a href="http://www.searchforancestors.com/utility/dayofweek.html"&gt;so that's our answer&lt;/a&gt;!&lt;br /&gt;&lt;br /&gt;Let's try one last problem before we go. What about February 2, 2000 (Groundhog Day)? February is 2, and 2000 is 0, so the problem we get is 2 + 2 + 0 = 4. 4 is a Thursday (remember FOURSday?), so February 2, 2000 should be a Thursday. Once again, &lt;a href="http://www.searchforancestors.com/utility/dayofweek.html"&gt;we verify that information here and...&lt;/a&gt;OOPS! That site says February 2, 2000 is a &lt;span style="font-style:italic;"&gt;Wednesday&lt;/span&gt;! What went wrong?&lt;br /&gt;&lt;br /&gt;I briefly mentioned this at &lt;a href="#ndatebasics" class="jumpup"&gt;the end of the previous tab&lt;/a&gt;, but it needs to be repeated now. Whenever you're working in January or February dates in a leap year, you need to reduce the month code by 1 to compensate. Effectively the extra day, February 29, hasn't happened yet, so we're subtracting one to adjust for that fact. January becomes 5 (6 - 1) and February becomes 1 (2 - 1).&lt;br /&gt;&lt;br /&gt;Since February 2, 2000 is a February date in a leap year, the code for February needs to be 1, not 2. Let's try the equation again, with that in mind. February in a leap year is 1, and 2000 is 0, so the equation is 1 + 2 + 0 = 3, which you should know by now is a Wednesday. As we saw when we originally made the error, Wednesday is indeed the correct day of the week.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://gmmentalgym.blogspot.com/2011/03/day-of-week-for-any-date-quiz-revised.html"&gt;Practice the Dates: 2000 to 2003 quiz here&lt;/a&gt;, making sure to keep an eye out for January and February dates in 2000, and adjusting your calculations accordingly. Practice these dates until you can calculate them with little trouble, and don't forget to subtract multiples of 7 to make your work easier!&lt;br /&gt;&lt;br /&gt;Once you're comfortable with dates from 2000 to 2003, we're going to teach you &lt;a href="#ndateleaps" class="jumpup"&gt;how to better handle leap years in the next section&lt;/a&gt;.&lt;/div&gt;&lt;div&gt;&lt;h2&gt;Year Codes: Why?&lt;/h2&gt;You'll note that the year codes for 2000-2003 progressed in a nice, simple, 0-1-2-3 order. This is because a normal year consists of exactly 52 weeks (52 &amp;times; 7 = 364) plus 1 day, to make 365 days. So, from one 365-day year to the next 365-day year, a given date in a given month will fall one day later.&lt;br /&gt;&lt;br /&gt;However, a 366-day leap year means that everything must jump ahead 2 days. This also means that the year codes for leap years will jump ahead 2 instead of 1. You might expect 2004 to be a 4, but because it's a leap year, it jumps ahead to 5.&lt;br /&gt;&lt;br /&gt;To get you comfortable with the strange nature of leap years, I'm going to start by teaching you the first 7 leap years.&lt;br /&gt;&lt;h2&gt;First 7 Leap Years&lt;/h2&gt;Here are the year codes for the first 7 leap years, along with handy mnemonics by which to remember them:&lt;br /&gt;&lt;br /&gt;&lt;table class="flexme"&gt;&lt;thead&gt;&lt;tr&gt;              &lt;th width="164"&gt;Leap Year&lt;/th&gt;              &lt;th width="164"&gt;Year Code&lt;/th&gt;              &lt;th width="164"&gt;Mnemonic&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;     &lt;tbody&gt;&lt;tr&gt;              &lt;td&gt;2000&lt;/td&gt;              &lt;td&gt;0&lt;/td&gt;              &lt;td&gt;2000 is mostly 0s&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2004&lt;/td&gt;              &lt;td&gt;5&lt;/td&gt;              &lt;td&gt;Count: 4...5...&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2008&lt;/td&gt;              &lt;td&gt;3&lt;/td&gt;              &lt;td&gt;Right half of 8 looks like 3&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2012&lt;/td&gt;              &lt;td&gt;1&lt;/td&gt;              &lt;td&gt;12 &amp;divide; 12 = 1 (See below)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2016&lt;/td&gt;              &lt;td&gt;6&lt;/td&gt;              &lt;td&gt;16 ends in 6&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2020&lt;/td&gt;              &lt;td&gt;4&lt;/td&gt;              &lt;td&gt;2 + 0 + 2 + 0 = 4&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2024&lt;/td&gt;              &lt;td&gt;2&lt;/td&gt;              &lt;td&gt;24 &amp;divide; 12 = 2 (See below)&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt; &lt;/table&gt;&lt;br /&gt;With 2012 and 2024, you'll note that all you have to do is divide their last 2 digits by 12 to get their year code. This pattern keeps working all the way through 2096, which will give you a few extra leap year codes quite easily, &lt;a href="http://www.youtube.com/watch?v=BblsNzx6yEk"&gt;assuming you know your 12 multiples&lt;/a&gt;:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;2012 = 1&lt;/li&gt;&lt;li&gt;2024 = 2&lt;/li&gt;&lt;li&gt;2036 = 3&lt;/li&gt;&lt;li&gt;2048 = 4&lt;/li&gt;&lt;li&gt;2060 = 5&lt;/li&gt;&lt;li&gt;2072 = 6&lt;/li&gt;&lt;li&gt;2084 = 7 = 0 (Remember to drop any multiples of 7!)&lt;/li&gt;&lt;li&gt;2096 = 8 = 1 (Remember to drop any multiples of 7!)&lt;/li&gt;&lt;/ul&gt;First, &lt;a href="http://gmmentalgym.blogspot.com/2011/03/day-of-week-for-any-date-quiz-revised.html"&gt;practice just recalling the codes with the Leap Year Codes: 2000 to 2024 quiz here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Once you're comfortable recalling all the codes, &lt;a href="http://gmmentalgym.blogspot.com/2011/03/day-of-week-for-any-date-quiz-revised.html"&gt;practice working out dates for those years with the Leap Year Dates: 2000 to 2024 quiz here&lt;/a&gt;. Don't forget that that the month codes for January and February are both reduced by 1 in leap years!&lt;br /&gt;&lt;br /&gt;Once you've practiced those years, you're ready to learn how to handle any leap year in the 21st century!&lt;br /&gt;&lt;h2&gt;All Leap Years&lt;/h2&gt;If you're given a leap year that ends in a multiple of 12, you can already handle those through 2096 quite easily, of course. What about the remaining leap years?&lt;br /&gt;&lt;br /&gt;If there were no such thing as leap years, the pattern year codes would simply repeat every 7 years. Because of the effect of leap years every 4 years, however, the pattern of year codes usually repeats every 28 years.&lt;br /&gt;&lt;br /&gt;I say &amp;#147;usually&amp;#148; because years ending in 00 are an exception. Years ending in 00 are only leap years if they're divisible by 400. So, 1600, 2000, and 2400 are leap years, while 1800, 1900, and 2100 are not.&lt;br /&gt;&lt;br /&gt;Thanks to the 00 exception the calendar only repeats EXACTLY every 400 years. However, when you're dealing with a range of years in which EVERY (without exception) 4th year is a leap year, then you can still rely on the 28-year rule.&lt;br /&gt;&lt;br /&gt;This means that you can depend on the 28-year rule for every leap year from 2000-2096! I'll break this down in a simpler manner, so you can see how this is useful.&lt;br /&gt;&lt;br /&gt;For the leap years 2028 through 2052, all you have to do is subtract 28 years, and you'll get a year with the same year code! 2028 - 28 is 2000, which you already know has a year code of 0, so 2028's year code is 0. 2032 - 28 = 2004, whose year code is 5, and so on.&lt;br /&gt;&lt;br /&gt;While doing 2028 - 28 = 2000 in your head is simple enough, some people find that working out problems like 2040 - 28 or 2052 - 28 during a performance to be a little challenging. There's a way to make it simpler.&lt;br /&gt;&lt;br /&gt;If you're worried about subtracting 28 from a number, add 2 and then subtract 30 instead. For example, instead of doing 2040 - 28, work out 2040 + 2 - 30 = 2042 - 30 = 2012. 2012 is a 1 year, so 2040 is a 1 year as well! What year has the same year code as 2052? Add 2 and subtract 30, and you'll get your answer in no time.&lt;br /&gt;&lt;br /&gt;Similarly, for the years 2056 to 2080, you subtract 56 to get the year code. The mathematical short cut here, if you feel you need it, is to add 4 and then subtract 60. What's the year code for 2064? 2064 + 4 - 60 = 2068 - 60 = 2008 = a year code of 3! How about 2068? You should get a year code of 1, just like 2012.&lt;br /&gt;&lt;br /&gt;How about 2072? Did you start by adding 4? Stop! 72 is a multiple of 12, so we just work out that 2072 is 6 from the pattern of 12s above. Don't forget to take advantage of the 12 pattern when you can! You should ask yourself if a year is divisible by 12 first, before subtracting.&lt;br /&gt;&lt;br /&gt;Finally, for the years 2084 to 2096, just subtract 84. For 2084 and 2096, of course, just use the 12 pattern we discussed earlier.&lt;br /&gt;&lt;br /&gt;If you need a shortcut for 84 for the remaining years, simply subtract 4, then subtract 80. 2092 - 4 - 80 = 2088 - 80 = 2008 = year code of 3! I'm sure you have the idea by now.&lt;br /&gt;&lt;br /&gt;You can &lt;a href="http://gmmentalgym.blogspot.com/2011/03/day-of-week-for-any-date-quiz-revised.html"&gt;practice this process with the Leap Year Codes: 2000 to 2096 quiz here&lt;/a&gt;. Again, don't forget to take advantage of the 12 pattern when you can.&lt;br /&gt;&lt;br /&gt;Also, don't forget to &lt;a href="http://gmmentalgym.blogspot.com/2011/03/day-of-week-for-any-date-quiz-revised.html"&gt;practice actual dates in these leap years with this Leap Year Dates: 2000 to 2096 quiz&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Once you're comfortable working through both of these quizzes, it's time to &lt;a href="#ndateally" class="jumpup"&gt;learn how to determine the code for every year from 2000-2099 in the next section&lt;/a&gt;!&lt;/div&gt;&lt;div&gt;&lt;h2&gt;2000-2099&lt;/h2&gt;Are you ready to handle any date from 2000 to 2099? You're probably more ready thank you think!&lt;br /&gt;&lt;br /&gt;Once you can handle leap years, the remaining years are simple.&lt;br /&gt;&lt;br /&gt;When given a non-leap year, you need 2 pieces of information: The year code for the nearest leap year BEFORE the given year, and how far the given year is from that leap year. When you have these two pieces of information, simply add them together (remembering to drop any multiples of 7, as we've discussed before), and you have the year code.&lt;br /&gt;&lt;br /&gt;For example, take 2009. The closest leap year is 2008, which has a year code of 3 (remember?), and 2009 is 1 year later. So, we work out 3 + 1 = 4, so 2009's year code is 4!&lt;br /&gt;&lt;br /&gt;How about the year code for 2051? The nearest leap year BEFORE that is 2048, and we can use the 12 rule to determine that the year code is 4. Since 2051 is 3 years later, we do 4 + 3 = 7 = 0 (don't forget to drop out multiples of 7!), so 2051 has a year code of 0.&lt;br /&gt;&lt;br /&gt;How about a tricky one like 2094? It's 2 years after 2092, which has a year code of 3 (remember how we know that?), so 2 + 3 = 5, so 2094 has a year code of 5.&lt;br /&gt;&lt;br /&gt;Since you can't be more than 3 years after a leap year in any date from 2000-2099, this is a relatively simple adjustment.&lt;br /&gt;&lt;br /&gt;To get practiced with this approach for determining year codes for any year, &lt;a href="http://gmmentalgym.blogspot.com/2011/03/day-of-week-for-any-date-quiz-revised.html"&gt;use this Year Codes: 2000 to 2099 quiz&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Once you get comfortable with that quiz, &lt;a href="http://gmmentalgym.blogspot.com/2011/03/day-of-week-for-any-date-quiz-revised.html"&gt;move on to the Dates: 2000 to 2099 quiz here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Being able to determine the day of the week for any date in the 21st century is an impressive feat on its own. Once you're comfortable with doing that, you can move on &lt;a href="#ndate1900s" class="jumpup"&gt;learning how to handle dates in other centuries in the next section&lt;/a&gt;.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;h2&gt;Other Centuries&lt;/h2&gt;Often you'll get asked about dates in the 20th century, especially if you're discussing someone's birthday. How do you handle those?&lt;br /&gt;&lt;br /&gt;For dates from 1900 to 1999, simply work out the similar date for the 2000s, and then add 1. That's it!&lt;br /&gt;&lt;br /&gt;For example, Let's say someone tells you they were born on January 20, 1985. Start as if you were working out January 20, 2085. 85 is a 1 year and January is a 6, so 1 + 6 = 7 = 0. Reduce 20 to 6 (cast out multiples of 7!) to get 6, and add 1 for the 20th century to get 7, which drops to 0. That 0 is the code for Sunday, and sure enough, &lt;a href="http://www.searchforancestors.com/utility/dayofweek.html"&gt;January 20, 1985, was a Sunday&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Once you've worked out the day of the week for a given date in the 21st century, there's a simple pattern to alter the day for other centuries:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;2300 to 2399 = add 1&lt;/li&gt;&lt;li&gt;2200 to 2299 = add 3&lt;/li&gt;&lt;li&gt;2100 to 2199 = add 5&lt;/li&gt;&lt;li&gt;2000 to 2099 = add 0&lt;/li&gt;&lt;li&gt;1900 to 1999 = add 1&lt;/li&gt;&lt;li&gt;1800 to 1899 = add 3&lt;/li&gt;&lt;li&gt;1700 to 1799 = add 5&lt;/li&gt;&lt;li&gt;1600 to 1699 = add 0&lt;/li&gt;&lt;/ul&gt;There is one VERY important note here for January and February dates in the years ending in 00: If a year ends in 00, it's only a leap year if it's divisible by 400. The years 1600, 2000, and 2400, and so on are leap years, while years like 1900, 1800, and 2100 are not. If you're given a January or February date in a year ending in 00, double check whether it's a leap year before you make the leap year adjustment.&lt;br /&gt;&lt;br /&gt;Take a few minutes to study these adjustments, and then &lt;a href="http://gmmentalgym.blogspot.com/2011/03/day-of-week-for-any-date-quiz-revised.html"&gt;practice using them in the Dates: 1600 to 2399 quiz here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Assuming you've put in the practice, you should be ready to give the day of the week for any date. &lt;a href="#ndatetips" class="jumpup"&gt;In the next section, I'll provide a few tips and some background that can help improve your performance&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;h2&gt;Calendar Background&lt;/h2&gt;The current calendar system we use is known as the &lt;a href="http://en.wikipedia.org/wiki/Gregorian_calendar"&gt;Gregorian calendar&lt;/a&gt;, since it was introduced by &lt;a href="http://en.wikipedia.org/wiki/Pope_Gregory_XIII"&gt;Pope Gregory XIII&lt;/a&gt;. It was first put into use in 1582 by the Catholic countries, so the calculations you've learned aren't really effective for dates before 1600.&lt;br /&gt;&lt;br /&gt;In addition, many non-Catholic countries didn't adopt the Gregorian calendar until much later. Britain and its colonies didn't adapt the calendar until 1752. The use of the Gregorian calendar as a worldwide standard, however, didn't happen until the 1920s!&lt;br /&gt;&lt;h2&gt;Tips&lt;/h2&gt;• I can't emphasize enough the speed advantages of dropping multiples of 7, and becoming comfortable with that process. After you get use to doing this for dates from the 7th to the 31st several times, it almost becomes automatic.&lt;br /&gt;&lt;br /&gt;• Carry a perpetual calendar! It's one thing to do this feat and know you're right. When you're doing it for an audience, they'll need some way to verify that you're correct. Originally, this meant carrying around a bulky book of calendars, but many mobile devices today make this much easier.&lt;br /&gt;&lt;br /&gt;You'll generally want an app that mainly generates calendars for a wide variety of year, without appointment features, such as &lt;a href="http://appshopper.com/productivity/quickcal"&gt;QuickCal&lt;/a&gt; for the iPhone and iPod Touch. iPad users can use &lt;a href="http://appshopper.com/productivity/yearviewer-for-ipad"&gt;YearViewer&lt;/a&gt;, and Android users can use &lt;a href="https://market.android.com/details?id=phoenix.TwoHundredYearCalendar"&gt;Two Hundred Year Calendar&lt;/a&gt; or &lt;a href="https://market.android.com/details?id=com.marblemice.dayofweek&amp;feature=search_result"&gt;Day of Week&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;• Want to practice on the go? &lt;a href="http://x42.com/mp3/doy/"&gt;Download these free mp3 files&lt;/a&gt; that give a date, then pause, then give the day of the week. The pauses range from 30 seconds down to 3 seconds, so you can challenge yourself as you get better. They're available in both DATE/MONTH/YEAR order (common in the UK, Australia, and Europe) and MONTH/DATE/YEAR (common in the US).&lt;br /&gt;&lt;br /&gt;• As you've seen, working out year codes can take longer than just remembering the month, date, and week codes. When performing, the smart thing to do is ask for the year first, work out the year code as needed (including whether a leap adjustment will be needed), and only then ask for the specific date.&lt;br /&gt;&lt;br /&gt;That way, not only do you get the year calculation out of the way, but you'll be able to determine the weekday more quickly and it will appear more impressive to your audience.&lt;br /&gt;&lt;br /&gt;• When you're comfortable performing the feat this way, but you find you desire to be quicker, there is a more advanced step you can take. You can completely eliminate the calculations of the year code by memorizing the 100 codes needed for the years 2000-2099.&lt;br /&gt;&lt;br /&gt;To do this, you'll need to be familiar with the &lt;a href="http://www.youtube.com/watch?v=Hwq5rJgkYUw"&gt;Link System&lt;/a&gt;, the &lt;a href="http://www.youtube.com/watch?v=LdnN9nd4KzQ"&gt;Shape Peg System&lt;/a&gt; and the &lt;a href="http://memory.uva.nl/memimprovement/eng/phon_peg.htm"&gt;Phonetic Peg System (AKA the Major System)&lt;/a&gt; (with images for 0 to 99).&lt;br /&gt;&lt;br /&gt;Once you've practiced those systems and are comfortable with them, you use the Phonetic Peg System for images to represent the last two digits of the year (0 to 99), and the Shape Peg system for the year code (from 0 to 6). You then use the Link System to mentally link those two images together.&lt;br /&gt;&lt;br /&gt;If you decide to go this method, here's a complete chart of the years from 2000 to 2099 with their corresponding year codes. Because the images people use with the above systems are so widely varied, I've avoided suggesting any mnemonics.&lt;br /&gt;&lt;br /&gt;&lt;table class="flexme"&gt;&lt;thead&gt;&lt;tr&gt;              &lt;th width="252"&gt;Year&lt;/th&gt;              &lt;th width="252"&gt;Year Code&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;     &lt;tbody&gt;&lt;tr&gt;              &lt;td&gt;2000&lt;/td&gt;              &lt;td&gt;0&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2001&lt;/td&gt;              &lt;td&gt;1&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2002&lt;/td&gt;              &lt;td&gt;2&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2003&lt;/td&gt;              &lt;td&gt;3&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2004&lt;/td&gt;              &lt;td&gt;5&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2005&lt;/td&gt;              &lt;td&gt;6&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2006&lt;/td&gt;              &lt;td&gt;0&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2007&lt;/td&gt;              &lt;td&gt;1&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2008&lt;/td&gt;              &lt;td&gt;3&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2009&lt;/td&gt;              &lt;td&gt;4&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2010&lt;/td&gt;              &lt;td&gt;5&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2011&lt;/td&gt;              &lt;td&gt;6&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2012&lt;/td&gt;              &lt;td&gt;1&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2013&lt;/td&gt;              &lt;td&gt;2&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2014&lt;/td&gt;              &lt;td&gt;3&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2015&lt;/td&gt;              &lt;td&gt;4&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2016&lt;/td&gt;              &lt;td&gt;6&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2017&lt;/td&gt;              &lt;td&gt;0&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2018&lt;/td&gt;              &lt;td&gt;1&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2019&lt;/td&gt;              &lt;td&gt;2&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2020&lt;/td&gt;              &lt;td&gt;4&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2021&lt;/td&gt;              &lt;td&gt;5&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2022&lt;/td&gt;              &lt;td&gt;6&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2023&lt;/td&gt;              &lt;td&gt;0&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2024&lt;/td&gt;              &lt;td&gt;2&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2025&lt;/td&gt;              &lt;td&gt;3&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2026&lt;/td&gt;              &lt;td&gt;4&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2027&lt;/td&gt;              &lt;td&gt;5&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2028&lt;/td&gt;              &lt;td&gt;0&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2029&lt;/td&gt;              &lt;td&gt;1&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2030&lt;/td&gt;              &lt;td&gt;2&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2031&lt;/td&gt;              &lt;td&gt;3&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2032&lt;/td&gt;              &lt;td&gt;5&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2033&lt;/td&gt;              &lt;td&gt;6&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2034&lt;/td&gt;              &lt;td&gt;0&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2035&lt;/td&gt;              &lt;td&gt;1&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2036&lt;/td&gt;              &lt;td&gt;3&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2037&lt;/td&gt;              &lt;td&gt;4&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2038&lt;/td&gt;              &lt;td&gt;5&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2039&lt;/td&gt;              &lt;td&gt;6&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2040&lt;/td&gt;              &lt;td&gt;1&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2041&lt;/td&gt;              &lt;td&gt;2&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2042&lt;/td&gt;              &lt;td&gt;3&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2043&lt;/td&gt;              &lt;td&gt;4&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2044&lt;/td&gt;              &lt;td&gt;6&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2045&lt;/td&gt;              &lt;td&gt;0&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2046&lt;/td&gt;              &lt;td&gt;1&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2047&lt;/td&gt;              &lt;td&gt;2&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2048&lt;/td&gt;              &lt;td&gt;4&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2049&lt;/td&gt;              &lt;td&gt;5&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2050&lt;/td&gt;              &lt;td&gt;6&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2051&lt;/td&gt;              &lt;td&gt;0&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2052&lt;/td&gt;              &lt;td&gt;2&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2053&lt;/td&gt;              &lt;td&gt;3&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2054&lt;/td&gt;              &lt;td&gt;4&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2055&lt;/td&gt;              &lt;td&gt;5&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2056&lt;/td&gt;              &lt;td&gt;0&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2057&lt;/td&gt;              &lt;td&gt;1&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2058&lt;/td&gt;              &lt;td&gt;2&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2059&lt;/td&gt;              &lt;td&gt;3&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2060&lt;/td&gt;              &lt;td&gt;5&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2061&lt;/td&gt;              &lt;td&gt;6&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2062&lt;/td&gt;              &lt;td&gt;0&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2063&lt;/td&gt;              &lt;td&gt;1&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2064&lt;/td&gt;              &lt;td&gt;3&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2065&lt;/td&gt;              &lt;td&gt;4&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2066&lt;/td&gt;              &lt;td&gt;5&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2067&lt;/td&gt;              &lt;td&gt;6&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2068&lt;/td&gt;              &lt;td&gt;1&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2069&lt;/td&gt;              &lt;td&gt;2&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2070&lt;/td&gt;              &lt;td&gt;3&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2071&lt;/td&gt;              &lt;td&gt;4&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2072&lt;/td&gt;              &lt;td&gt;6&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2073&lt;/td&gt;              &lt;td&gt;0&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2074&lt;/td&gt;              &lt;td&gt;1&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2075&lt;/td&gt;              &lt;td&gt;2&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2076&lt;/td&gt;              &lt;td&gt;4&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2077&lt;/td&gt;              &lt;td&gt;5&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2078&lt;/td&gt;              &lt;td&gt;6&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2079&lt;/td&gt;              &lt;td&gt;0&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2080&lt;/td&gt;              &lt;td&gt;2&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2081&lt;/td&gt;              &lt;td&gt;3&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2082&lt;/td&gt;              &lt;td&gt;4&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2083&lt;/td&gt;              &lt;td&gt;5&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2084&lt;/td&gt;              &lt;td&gt;0&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2085&lt;/td&gt;              &lt;td&gt;1&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2086&lt;/td&gt;              &lt;td&gt;2&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2087&lt;/td&gt;              &lt;td&gt;3&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2088&lt;/td&gt;              &lt;td&gt;5&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2089&lt;/td&gt;              &lt;td&gt;6&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2090&lt;/td&gt;              &lt;td&gt;0&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2091&lt;/td&gt;              &lt;td&gt;1&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2092&lt;/td&gt;              &lt;td&gt;3&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2093&lt;/td&gt;              &lt;td&gt;4&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2094&lt;/td&gt;              &lt;td&gt;5&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2095&lt;/td&gt;              &lt;td&gt;6&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2096&lt;/td&gt;              &lt;td&gt;1&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2097&lt;/td&gt;              &lt;td&gt;2&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2098&lt;/td&gt;              &lt;td&gt;3&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;2099&lt;/td&gt;              &lt;td&gt;4&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt; &lt;/table&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800835365312821409-3466403859969321580?l=gmmentalgym.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmmentalgym.blogspot.com/feeds/3466403859969321580/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmmentalgym.blogspot.com/2011/03/day-of-week-for-any-date-revised.html#comment-form' title='18 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/3466403859969321580'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/3466403859969321580'/><link rel='alternate' type='text/html' href='http://gmmentalgym.blogspot.com/2011/03/day-of-week-for-any-date-revised.html' title='Day of the Week For Any Date (Revised)'/><author><name>Pi Guy</name><uri>http://www.blogger.com/profile/09760001560356969164</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://lh3.ggpht.com/_zQQCfNroX3w/TMDBGryIxfI/AAAAAAAAASw/_ygdD3eWHCU/s0/gmsc.png'/></author><thr:total>18</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800835365312821409.post-7879317211302809838</id><published>2011-02-19T21:00:00.000-08:00</published><updated>2011-06-18T17:05:12.454-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pi'/><category scheme='http://www.blogger.com/atom/ns#' term='mental math'/><category scheme='http://www.blogger.com/atom/ns#' term='memory'/><category scheme='http://www.blogger.com/atom/ns#' term='math'/><category scheme='http://www.blogger.com/atom/ns#' term='exponents'/><title type='text'>The Unit Circle</title><content type='html'>&lt;ul id="tabs"&gt;&lt;span id="fullpost"&gt;&lt;li&gt;&lt;a id="uc1" href="#ucradians" class="s"&gt;Radians?!?&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a id="uc2" href="#uccircle" class="s"&gt;Unit Circle&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a id="uc3" href="#uccrdsone" class="s"&gt;Coords 1&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a id="uc4" href="#uccrdstwo" class="s"&gt;Coords 2&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a id="uc4" href="#ucunderstd"&gt;Understanding&lt;/a&gt;&lt;/li&gt;&lt;/span&gt;&lt;/ul&gt;&lt;div class="panes"&gt;&lt;div&gt;We'll start with the basics by introducting the concept of radians. What exactly are radians?&lt;br /&gt;&lt;br /&gt;&lt;span id="fullpost"&gt;Radians are an alternative to degrees. Let's make sure that everyone is on the same page, with a quick and fun refresher course in degrees:&lt;br /&gt;&lt;br /&gt;&lt;object width="530" height="428"&gt;&lt;param name="movie" value="http://www.youtube.com/v/tqIki33mTgs?fs=1&amp;amp;hl=en_US&amp;amp;rel=0"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/tqIki33mTgs?fs=1&amp;amp;hl=en_US&amp;amp;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="530" height="428"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;Most people are familiar with degrees. They're an absolute necessity when studying things like geography (where on Earth am I?) or astronomy (When will I be able to see a given star from where I am on Earth?). So why do we even need an alternative to degrees?&lt;br /&gt;&lt;br /&gt;I'll highlight the problem with a smaller-scale example. Imagine a public park with circular running tracks of varying sizes, and two people, one who is trying to build his speed and stamina for a 100 meter race, and the other person who is timing the runner. They find a track, and the timer stands in the center of the circular track. The runner notes that the circular track is some weird amount, say, 142 meters in circumference, so he needs to know the location of the 100 meter mark.&lt;br /&gt;&lt;br /&gt;The timer whips out his calculator, divides 100 by 142, getting 0.704225352. He multiplies this by 360 degrees, since the track is circular, and cheerfully exclaims that all the runner has to do is run 254 degrees (253.521127 degrees, to be more precise) to cover 100 meters on that track. At this point, the runner gives the timer a funny look.&lt;br /&gt;&lt;br /&gt;See the problem now? 254 degrees is great when describing how far the timer, standing in the center of the circular track, has to turn to watch the runner. This doesn't help the runner much, as the runner isn't standing in the center. That's the whole thing with degrees; they're great for observers, such as the timer, but not so much for people or things moving around a circumference, such as our runner. This is why there's a need for an alternative to degrees.&lt;br /&gt;&lt;br /&gt;Note that the absolute distance of 100 meters isn't of much help, either. On the different sized tracks in the park, that distance will be a different number of laps on each track. So, absolute distance and degrees aren't handy, thus we introduce radians. So what exactly are they?&lt;br /&gt;&lt;br /&gt;Since the radius of a circle has a constant relationship with the circumference, that of &lt;a href="http://gmmentalgym.blogspot.com/search/label/Pi"&gt;Pi&lt;/a&gt; times twice the radius, how about counting off how far we've traveled around the circumference of a circle in terms of that circle's own &amp;#147;radius units&amp;#148;? It's a good idea, but &amp;#147;radius units&amp;#148; sounds weird (I think it's the repetition of the letter U), so we use the term radians instead!&lt;br /&gt;&lt;br /&gt;It boils down to this: 1 radian is simply the length of a circle's radius traveled around that same circle's circumference.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://en.wikipedia.org/wiki/File:Radian_cropped_color.svg"&gt;&lt;img src="http://i261.photobucket.com/albums/ii45/testingfark/greymatters/radian.png" alt="Stannered's radian illustration" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;/a&gt;&lt;br /&gt;That also gives us the formula to calculate radians: Radians = distance traveled / radius.&lt;br /&gt;&lt;br /&gt;Math books like to scare you by writing this same formula as &lt;span style="font-style:italic;"&gt;&amp;theta; = s / r&lt;/span&gt;. &lt;span style="font-style:italic;"&gt;&amp;theta;&lt;/span&gt; is pronounced &amp;#147;theta&amp;#148;, and simply refers to the answer in radians. &lt;span style="font-style:italic;"&gt;s&lt;/span&gt; means &amp;#147;arc length&amp;#148;, or, the distance traveled around the circumference. &lt;span style="font-style:italic;"&gt;r&lt;/span&gt;, the only straightforward shorthand in this formula, means the length of the radius.&lt;br /&gt;&lt;br /&gt;Going back briefly to the oberver's point of view, 1 radian translates into about 57.3 degrees (actually 57.29577951... and on and on). For the oberver, this certainly isn't a nice neat number, like 90 degrees, 180 degrees, or 360 degrees. As we've already learned though, the observer's viewpoint is not the point of radians.&lt;br /&gt;&lt;br /&gt;However, &lt;a href="#uccircle" class="jumpup"&gt;in the next tab, we'll introduce the unit circle concept itself&lt;/a&gt;, and see how radians make things nice and easy for the person or thing that is moving around it.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Since we now have the &lt;a href="#ucradians" class="jumpup"&gt;scalable concept of radians&lt;/a&gt; to work with, we can now develop an entire scalable circle with which to work. We'll start by drawing on graph paper &lt;a href="http://www.wolframalpha.com/input/?i=x%5E2+%2B+y%5E2+%3D+1"&gt;a circle centered at the (0,0) mark that has a 1 unit radius&lt;/a&gt; (remember &lt;a href="http://en.wikipedia.org/wiki/Cartesian_coordinate_system"&gt;cartesian coordinates&lt;/a&gt;?). It looks at it does below, with the coordinates marked where it crosses an axis:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://commons.wikimedia.org/wiki/File:Yhvyvczsa8.png"&gt;&lt;img src="http://i261.photobucket.com/albums/ii45/testingfark/greymatters/unitcircle1.png" alt="Drandstrom's unit circle illustration" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;/a&gt;&lt;br /&gt;That fact that it's a circle with a one-unit radius gives us the shorthand term for it: &lt;span style="font-style:italic;"&gt;unit circle&lt;/span&gt;. Let's take a closer look at it what a unit circle can do.&lt;br /&gt;&lt;br /&gt;Here's your first question: Since radians measure how far around a circle you've traveled, what's the distance around a full unit circle in radians? Let's work this out.&lt;br /&gt;&lt;br /&gt;Our circle has a radius of 1 unit, so the circumference (our total distance traveled, in this case) is 2 times the radius times Pi, so we have 2 times 1 unit, giving 2 units, times Pi, resulting in 2 * Pi, or 2&amp;pi; for short (That &amp;pi; symbol is the Pi symbol, not a small letter n). That's just the total distance traveled, though.&lt;br /&gt;&lt;br /&gt;To convert that to radians, we need to divide by the radius, of course. Our radius is 1 unit, so we work out 2&amp;pi;/1, which is simply 2&amp;pi;. In other words, the distance around a full circle is 2&amp;pi; radians in length!&lt;br /&gt;&lt;br /&gt;Now you see why 1 radian is such a weird angle in degrees (1 radian = 57.29577951... degrees). When doubled and multiplied by Pi, it has to give a nice even 360 degrees. Again, we're going to stick to radians in this discussion, so just think of 2&amp;pi; radians as a full circle.&lt;br /&gt;&lt;br /&gt;From here, it's not hard to see that &amp;pi; radians gives us half of a circle, and &amp;pi;/2 radians gives us a quarter circle. &lt;a href="http://www.wolframalpha.com/input/?i=%283%2F4%29+*+%282+*+pi%29"&gt;Three-quarters of a circle&lt;/a&gt;, then, would give us a distance of 3&amp;pi;/2 radians.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://commons.wikimedia.org/wiki/File:Arco1.png"&gt;&lt;img src="http://i261.photobucket.com/albums/ii45/testingfark/greymatters/unitcircle2.png" alt="Drandstrom's unit circle in radians illustration" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;/a&gt;&lt;br /&gt;So, what distances are we traveling in radians when we traveling 45 degrees? 45 degrees is the centered observer's way of saying an eighth of a circle. The mover thinks of a circle as being 2&amp;pi; radians, so 2&amp;pi; times 1/8 would be 2&amp;pi;/8, or the same as &amp;pi;/4 radians.&lt;br /&gt;&lt;br /&gt;Every 1/8 of a trip around the circle, then, would be in units of &amp;pi;/4 radians:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;1/8 = &amp;pi;/4 radians&lt;/li&gt;&lt;li&gt;2/8 = 2&amp;pi;/4 = &amp;pi;/2 radians&lt;/li&gt;&lt;li&gt;3/8 = 3&amp;pi;/4 radians&lt;/li&gt;&lt;li&gt;4/8 = 4&amp;pi;/4 = &amp;pi radians&lt;/li&gt;&lt;li&gt;5/8 = 5&amp;pi;/4 radians&lt;/li&gt;&lt;li&gt;6/8 = 6&amp;pi;/4 = 3&amp;pi;/2 radians&lt;/li&gt;&lt;li&gt;7/8 = 7&amp;pi;/4 radians&lt;/li&gt;&lt;li&gt;8/8 = 8&amp;pi;/4 = 2&amp;pi; radians&lt;/li&gt;&lt;/ul&gt;When you see the patterns and understand the process, it's actually not hard to understand.&lt;br /&gt;&lt;br /&gt;Since angles of 30 degrees, or 1/12 of the distance around the circle, are also common, they're not hard to work out in radians. 1/12 of 2&amp;pi; radians comes down to &amp;pi;/6 radians. From there, we get:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;1/12 = &amp;pi;/6 radians&lt;/li&gt;&lt;li&gt;2/12 = 2&amp;pi;/6 = &amp;pi;/3 radians&lt;/li&gt;&lt;li&gt;3/12 = 3&amp;pi;/6 = &amp;pi;/2 radians&lt;/li&gt;&lt;li&gt;4/12 = 4&amp;pi;/6 = 2&amp;pi;/3 radians&lt;/li&gt;&lt;li&gt;5/12 = 5&amp;pi;/6 radians&lt;/li&gt;&lt;li&gt;6/12 = 6&amp;pi;/6 = &amp;pi; radians&lt;/li&gt;&lt;li&gt;7/12 = 7&amp;pi;/6 radians&lt;/li&gt;&lt;li&gt;8/12 = 8&amp;pi;/6 = 4&amp;pi;/3 radians&lt;/li&gt;&lt;li&gt;9/12 = 9&amp;pi;/6 = 3&amp;pi;/2 radians&lt;/li&gt;&lt;li&gt;10/12 = 10&amp;pi;/6 =  5&amp;pi;/3 radians&lt;/li&gt;&lt;li&gt;11/12 = 11&amp;pi;/6 radians&lt;/li&gt;&lt;li&gt;12/12 = 12&amp;pi;/6 = 2&amp;pi; radians&lt;/li&gt;&lt;/ul&gt;Here's everything you've learned so far in one diagram, with the 90 degree units marked in black, the 45 degree units marked in red, and the 30 degree units marked in blue:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://commons.wikimedia.org/wiki/File:Unit_circle_angles_color.svg"&gt;&lt;img src="http://i261.photobucket.com/albums/ii45/testingfark/greymatters/unitcircle3.png" alt="Jim Belk's unit circle in radians illustration without angle coordinates" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;/a&gt;&lt;br /&gt;So, if you can remember that 2&amp;pi; radians takes you all the way around the circle, and that &amp;pi; radians, as well as 6&amp;pi;/6 and 4&amp;pi;/4 radians, takes you halfway around the circle, working out the rest of the numbers isn't difficult at all.&lt;br /&gt;&lt;br /&gt;In the next tab, we'll discuss another amazing way the unit circle becomes useful when we &lt;a href="#uccrdsone" class="jumpup"&gt;focus on figuring out coordinates&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;I have some quick refresher questions before we move on. When you've traveled &amp;pi;/2 radians, at what (x,y) coordinates are you? You're at (0,1).&lt;br /&gt;&lt;br /&gt;Here's a tougher one: When you've traveled &amp;pi;/4 radians, at what (x,y) coordinates are you? That one's a little trickier. For this one, we're going to have to go back the viewpoint of the observer in the center, and thus back to degrees.&lt;br /&gt;&lt;br /&gt;The radius of the unit circle is, of course, always 1 unit. If we construct a right triangle with the radius line as the &lt;a href="http://en.wikipedia.org/wiki/Hypotenuse"&gt;hypotenuse&lt;/a&gt;, we could construct a right triangle for any angle in the circle:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://commons.wikimedia.org/wiki/File:Trigo-unitcircle-animation.gif"&gt;&lt;img src="http://i261.photobucket.com/albums/ii45/testingfark/greymatters/unitcircle4.gif" alt="Peleg's triangle and unit circle animation" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;/a&gt;&lt;br /&gt;Since &amp;pi;/4 radians from the central observer's point of view is 45 degrees, we'll create a 45 degree right triangle to help work out those coordinates:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://commons.wikimedia.org/wiki/File:Trigo-unitcircle-animation.gif"&gt;&lt;img src="http://i261.photobucket.com/albums/ii45/testingfark/greymatters/unitcircle5.png" alt="Peleg's triangle and unit circle drawing of a 45 degree angle" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;/a&gt;&lt;br /&gt;Since we're looking for the (x,y) coordinate, the length of the side adjacent to our angle (the one running along the x axis) would give us the x coordinate. The height of the side opposite the angle (the one running straight up to meet the radius/hypotenuse) would give us the y coordinate.&lt;br /&gt;&lt;br /&gt;If you remember all those lessons about right triangles, it's at this point where you begin to realize how many tools we can use here.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Pythagorean Theorem: a&lt;sup&gt;2&lt;/sup&gt; + b&lt;sup&gt;2&lt;/sup&gt; = c&lt;sup&gt;2&lt;/sup&gt;&lt;/li&gt;&lt;li&gt;Sine of any angle = opposite/hypotenuse&lt;/li&gt;&lt;li&gt;Cosine of any angle = adjacent/hypotenuse&lt;/li&gt;&lt;/ul&gt;(Don't forget: &lt;a href="http://mathworld.wolfram.com/SOHCAHTOA.html"&gt;SOHCAHTOA&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;Since the hypotenuse is 1, and both the sine and cosine divide by the hypotenuse, not only does this make the math nice and easy, but the answers will also be the exact coordinates we need!&lt;br /&gt;&lt;br /&gt;The x coordinate is the length of the side adjacent to the angle, so we need to use the cosine formula. By cheating and using a calculator (make sure to set it in degrees, not radians!) we find that &lt;a href="http://www.google.com/search?q=cos(45+degrees)"&gt;cos(45 degrees) = 0.707106781...&lt;/a&gt;. To get the y coordinate, we find the length of the side opposite the angle by using &lt;a href="http://www.google.com/search?q=sin(45+degrees)"&gt;sin(45 degrees), which is also 0.707106781...&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;So, we have our coordinates for a 45 degree, or &amp;pi;/4 radian, angle: (0.707106781...,0.707106781...). Hmmm, that's another one of &lt;a href="http://en.wikipedia.org/wiki/Irrational_number"&gt;those numbers that goes on forever&lt;/a&gt;. Isn't there a better way to state that number?&lt;br /&gt;&lt;br /&gt;Let's run through the Pythagorean Theorem approach, especially know that we know that sides a and b are equal, and see what we can come up with:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.codecogs.com/eqnedit.php?latex=\\ a^{2} @plus; b^{2}= 1 \\ a = b \\ a^{2} @plus; a^{2}= 1 \\ 2a^{2}= 1 \\ \\ a^{2}= \frac{1}{2} = .5 \\ a = b = \sqrt{.5} = 0.707106781..." target="_blank"&gt;&lt;img src="http://latex.codecogs.com/gif.latex?\\ a^{2} + b^{2}= 1 \\ a = b \\ a^{2} + a^{2}= 1 \\ 2a^{2}= 1 \\ \\ a^{2}= \frac{1}{2} = .5 \\ a = b = \sqrt{.5} = 0.707106781..." title="\\ a^{2} + b^{2}= 1 \\ a = b \\ a^{2} + a^{2}= 1 \\ 2a^{2}= 1 \\ \\ a^{2}= \frac{1}{2} = .5 \\ a = b = \sqrt{.5} = 0.707106781..." /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&amp;#147;OK,&amp;#148; you say, &amp;#147;so what? We just came up with the same numbers.&amp;#148; Let's back up a bit to to where a squared (and b squared, in the specific case of a 45 degree right triangle) was equal to 1/2. Instead of using .5, let's see where working with that 1/2 as a fraction can take us:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.codecogs.com/eqnedit.php?latex=\\ a^{2} = \frac{1}{2} \\ \\ \\ a = b = \sqrt{\frac{1}{2}} \\ \\ \\ a = b = \frac{\sqrt{1}}{\sqrt{2}} \\ \\ \\ a = b = \frac{1}{\sqrt{2}} \\" target="_blank"&gt;&lt;img src="http://latex.codecogs.com/gif.latex?\\ a^{2} = \frac{1}{2} \\ \\ \\ a = b = \sqrt{\frac{1}{2}} \\ \\ \\ a = b = \frac{\sqrt{1}}{\sqrt{2}} \\ \\ \\ a = b = \frac{1}{\sqrt{2}} \\" title="\\ a^{2} = \frac{1}{2} \\ \\ \\ a = b = \sqrt{\frac{1}{2}} \\ \\ \\ a = b = \frac{\sqrt{1}}{\sqrt{2}} \\ \\ \\ a = b = \frac{1}{\sqrt{2}} \\" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Hmmm...writing one over the square root of 2 is certainly much easier than that long string of numbers. Indeed, when you're tested on unit circles on many standardized tests, they'll usually ask you to write the &amp;pi;/4 radian or 45-degree coordinate in exactly that way.&lt;br /&gt;&lt;br /&gt;Before moving on, though, I'd like to make that fraction a bit neater by making the bottom a whole number. We do that by multiplying both the top and bottom by the square root of two, and expressing the coordinates as fractions:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.codecogs.com/eqnedit.php?latex=\\ a = b = \frac{1}{\sqrt{2}} \\ \\ \\ a = b = \frac{\sqrt{2}}{2} \\ \\ \\ (\frac{\sqrt{2}}{2}, \frac{\sqrt{2}}{2})" target="_blank"&gt;&lt;img src="http://latex.codecogs.com/gif.latex?\\ a = b = \frac{1}{\sqrt{2}} \\ \\ \\ a = b = \frac{\sqrt{2}}{2} \\ \\ \\ (\frac{\sqrt{2}}{2}, \frac{\sqrt{2}}{2})" title="\\ a = b = \frac{1}{\sqrt{2}} \\ \\ \\ a = b = \frac{\sqrt{2}}{2} \\ \\ \\ (\frac{\sqrt{2}}{2}, \frac{\sqrt{2}}{2})" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Not only is this a cleaner way to write the coordinates, it will make this and the other coordinates we work out much easier to remember, as you'll see in later sections.&lt;br /&gt;&lt;br /&gt;The fractions may look funny, but all they're really saying is, &amp;#147;If you take the square root of 2, and divide it in half, that's a shortcut to working out this coordinate.&amp;#148; Or, put the opposite way, &amp;#147;Hey, if you take this coordinate, double it, and then square it, you get a nice, simple number, in this case - 2!&amp;#148;&lt;br /&gt;&lt;br /&gt;&lt;a href="#uccrdstwo" class="jumpup"&gt;We'll work out the coordinates and their corresponding fractions for the 30- and 60-degree angles in the next section&lt;/a&gt;, as well as their multiples.&lt;/div&gt;&lt;div&gt;So, now we not only know the coordinates for a 45 degree, or &amp;pi;/4 radian, point on a circle, we know that the cosine will give us the x coordinate and that the sine will give us the y coordinate on the unit circle. We also know that expressing these coordinates in fractions is much simpler than writing out the endless irrational decimals.&lt;br /&gt;&lt;br /&gt;Let's work out the coordinates for the point at 30 degrees (&amp;pi;/6 radians):&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.codecogs.com/eqnedit.php?latex=\\ cos(30^{\circ}) = 0.866025404...\\ sin(30^{\circ}) = 0.5\\ (0.866025404..., 0.5)\\ \\ (0.866025404..., \frac{1}{2})\\" target="_blank"&gt;&lt;img src="http://latex.codecogs.com/gif.latex?\\ cos(30^{\circ}) = 0.866025404...\\ sin(30^{\circ}) = 0.5\\ (0.866025404..., 0.5)\\ \\ (0.866025404..., \frac{1}{2})\\" title="\\ cos(30^{\circ}) = 0.866025404...\\ sin(30^{\circ}) = 0.5\\ (0.866025404..., 0.5)\\ \\ (0.866025404..., \frac{1}{2})\\" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Hey! That .5 is nice. That's easy to express as a fraction. But what about that other number? Well, everything else has been expressed over 2, so let's see what happens when we express that number over 2:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.codecogs.com/eqnedit.php?latex=\\ (\frac{1.73205081...}{2}, \frac{1}{2})\\" target="_blank"&gt;&lt;img src="http://latex.codecogs.com/gif.latex?\\ (\frac{1.73205081...}{2}, \frac{1}{2})\\" title="\\ (\frac{1.73205081...}{2}, \frac{1}{2})\\" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Ummm...yuck. Well, square roots seem to be popular in these fractions. Is 1.73205081... the square root of anything? Yep! It turns out that it's the square root of 3! So, the coordinates could be expressed this way:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.codecogs.com/eqnedit.php?latex=\\ (\frac{\sqrt{3}}{2}, \frac{1}{2})\\" target="_blank"&gt;&lt;img src="http://latex.codecogs.com/gif.latex?\\ (\frac{\sqrt{3}}{2}, \frac{1}{2})\\" title="\\ (\frac{\sqrt{3}}{2}, \frac{1}{2})\\" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Next, let's work out the coordinates for 60 degrees (&amp;pi;/3 radians):&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.codecogs.com/eqnedit.php?latex=\\ cos(60^{\circ}) = 0.5\\ sin(60^{\circ}) = 0.866025404...\\ (0.5, 0.866025404...)\\ \\ (\frac{1}{2}, \frac{\sqrt{3}}{2} )\\" target="_blank"&gt;&lt;img src="http://latex.codecogs.com/gif.latex?\\ cos(60^{\circ}) = 0.5\\ sin(60^{\circ}) = 0.866025404...\\ (0.5, 0.866025404...)\\ \\ (\frac{1}{2}, \frac{\sqrt{3}}{2} )\\" title="\\ cos(60^{\circ}) = 0.5\\ sin(60^{\circ}) = 0.866025404...\\ (0.5, 0.866025404...)\\ \\ (\frac{1}{2}, \frac{\sqrt{3}}{2} )\\" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Whoah! We get the same numbers as the 30 degree angle, only switched! That's not a coincidence. Remember that the internal angles of triangles always add up to 180 degrees. With a right triangle (a triangle with a 90 degree angle in it) that has a 30 degree angle in it, we find that 180 - 90 - 30 = 60 degrees, the remaining angle. Effectively, the 60 degree coordinates are just the 30 degree coordinates viewed from the other side of the triangle.&lt;br /&gt;&lt;br /&gt;Let's review all the information, including the coordinates, that we know so far:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://commons.wikimedia.org/wiki/File:Unit_circle_angles_color.svg"&gt;&lt;img src="http://i261.photobucket.com/albums/ii45/testingfark/greymatters/unitcircle6.png" alt="Jim Belk's unit circle in radians illustration with only positive angle coordinates" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;/a&gt;&lt;br /&gt;If you think of 1 as also being the square root of 1, you could write 1/2 this way:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.codecogs.com/eqnedit.php?latex=\\ \frac{1}{2} = \frac{\sqrt{1}}{2}" target="_blank"&gt;&lt;img src="http://latex.codecogs.com/gif.latex?\\ \frac{1}{2} = \frac{\sqrt{1}}{2}" title="\\ \frac{1}{2} = \frac{\sqrt{1}}{2}" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;So, at all the points where the circle crosses an axis, the coordinates involve 0, +1, or -1 - Simple! And at the oft-used 30&amp;deg; (&amp;pi;/6 radians), 45&amp;deg; (&amp;pi;/4 radians), and 60&amp;deg; (&amp;pi;/6 radians), all the coordinates involve these interesting fractions:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.codecogs.com/eqnedit.php?latex=\\ \frac{\sqrt{1}}{2}, \ \frac{\sqrt{2}}{2}, \ \frac{\sqrt{3}}{2}" target="_blank"&gt;&lt;img src="http://latex.codecogs.com/gif.latex?\\ \frac{\sqrt{1}}{2}, \ \frac{\sqrt{2}}{2}, \ \frac{\sqrt{3}}{2}" title="\\ \frac{\sqrt{1}}{2}, \ \frac{\sqrt{2}}{2}, \ \frac{\sqrt{3}}{2}" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;See that? Everything in the fractions is a square root of something over 2! Even better, there's a simple 1, 2, 3 progression! Even with all the complex math involved, it's all boiling down to 0, 1, 2, and 3.&lt;br /&gt;&lt;br /&gt;That's easy enough to remember, but how do you remember which fractions are set at which coordinates, especially since it's not hard to make a mistake and switch around the coordinates for both 30&amp;deg; and 60&amp;deg;? Here's a video that will teach you quickly, using that 1, 2, 3 progression:&lt;br /&gt;&lt;br /&gt;&lt;object width="530" height="428"&gt;&lt;param name="movie" value="http://www.youtube.com/v/ao4EJzNWmK8?fs=1&amp;amp;hl=en_US&amp;amp;rel=0&amp;iv_load_policy=3"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/ao4EJzNWmK8?fs=1&amp;amp;hl=en_US&amp;amp;rel=0&amp;iv_load_policy=3" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="530" height="428"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;What about all the remaining major angles, such as 120&amp;deg;, 135&amp;deg;, and so on?&lt;br /&gt;&lt;br /&gt;Well, you could go through and work out the coordinates laboriously as we did above, working out the sines and cosines, and so on. However, there's an easier way. We're measuring the 135&amp;deg; (3&amp;pi;/4 radians) angle from the 0&amp;deg; angle. When measured from the 180&amp;deg; (&amp;pi; radians) angle, it works out to be our old friend, the 45&amp;deg; (&amp;pi;/4 radians) angle.&lt;br /&gt;&lt;br /&gt;One difference, though, is that we're now on the negative side of the x axis, so that the x coordinate will be negative. The means the coordinate for the 135&amp;deg; (3&amp;pi;/4 radians) angle will be:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.codecogs.com/eqnedit.php?latex=\\ (-\frac{\sqrt{2}}{2}, \frac{\sqrt{2}}{2})" target="_blank"&gt;&lt;img src="http://latex.codecogs.com/gif.latex?\\ (-\frac{\sqrt{2}}{2}, \frac{\sqrt{2}}{2})" title="\\ (-\frac{\sqrt{2}}{2}, \frac{\sqrt{2}}{2})" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Similarly, you can work out the 150&amp;deg; angle as a 30&amp;deg; angle, and so on. They work out to the coordinates we've already determined, but you need to make sure that you adjust the signs (+ or -) for the appropriate section.&lt;br /&gt;&lt;br /&gt;Are you ready for this? Here's the entire unit circle worked out:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://commons.wikimedia.org/wiki/File:Unit_circle_angles_color.svg"&gt;&lt;img src="http://i261.photobucket.com/albums/ii45/testingfark/greymatters/unitcircle7.png" alt="Jim Belk's unit circle in radians illustration" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;/a&gt;&lt;br /&gt;And here's how to draw it that so you remember all that data:&lt;br /&gt;&lt;br /&gt;&lt;object width="530" height="428"&gt;&lt;param name="movie" value="http://www.youtube.com/v/cIVpemcoAlY?fs=1&amp;amp;hl=en_US&amp;amp;rel=0&amp;iv_load_policy=3"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/cIVpemcoAlY?fs=1&amp;amp;hl=en_US&amp;amp;rel=0&amp;iv_load_policy=3" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="530" height="428"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;I like the approach used in this video of counting the &amp;pi;/3, &amp;pi;/4, and &amp;pi;/6 sections separately, so as to keep them mentally separate.&lt;br /&gt;&lt;br /&gt;&lt;a href="#ucunderstd" class="jumpup"&gt;In the next tab, I'll review and break down the patterns for easier understanding&lt;/a&gt;. You'll also learn how to do some quick math on your fingers to get the coordinates.&lt;/div&gt;&lt;div&gt;It may seem like a lot that you've learned so far, but it boils down to a few basic things:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Degrees deal with the observer's point of view. Radians deal with the mover's point of view.&lt;/li&gt;&lt;li&gt;1 radian = 1 radius length around the circle's circumference.&lt;/li&gt;&lt;li&gt;Radians work very well with &lt;a href="http://gmmentalgym.blogspot.com/search/label/Pi"&gt;Pi&lt;/a&gt;, to the extent that &amp;pi; radians = 180 degrees, and 2&amp;pi; radians = 360 degrees.&lt;/li&gt;&lt;li&gt;If you think of &amp;pi; radians as being 180 degrees, and you know your multiples of 30 and 45, the remaining degree angles aren't difficult to work out in radians.&lt;/li&gt;&lt;li&gt;All the coordinate points where the circle cross an axis involve a 0, a -1, or a +1. Knowing coordinates makes it easy to work out which is which.&lt;/li&gt;&lt;li&gt;All the coordinate points of &amp;pi;/6 (30&amp;deg;), &amp;pi;/4 (45&amp;deg;), and &amp;pi;/3 (60&amp;deg;) radians involve fractions easily remembered with &lt;a href="#uccrdstwo" class="jumpup"&gt;the 1, 2, 3 progression taught in the video in the previous tab&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;The other major coordinate points can be worked out quite easily from those first 3 sets, as long as you adjust the signs properly.&lt;/li&gt;&lt;li&gt;Cosine will always give the x coordinate on the unit circle, and sine will always give the y coordinate on the unit circle.&lt;/li&gt;&lt;/ul&gt;That last fact is especially interesting. Thanks to the simple progressions involved, you can actually work out the cosine and sine on your fingers with a simple trick! If you're familiar with &lt;a href="http://en.wikipedia.org/wiki/Trigonometric_functions#Sine.2C_cosine.2C_and_tangent"&gt;tangents and cotangents&lt;/a&gt;, this video teaches how to handle those on your fingers, as well.&lt;br /&gt;&lt;br /&gt;&lt;object width="530" height="428"&gt;&lt;param name="movie" value="http://www.youtube.com/v/OBmhgiLi77k?fs=1&amp;amp;hl=en_US&amp;amp;rel=0"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/OBmhgiLi77k?fs=1&amp;amp;hl=en_US&amp;amp;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="530" height="428"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://betterexplained.com/"&gt;Betterexplained.com&lt;/a&gt; has a wonderful article you should read at this point, called &lt;a href="http://betterexplained.com/articles/intuitive-guide-to-angles-degrees-and-radians/"&gt;&lt;span style="font-style:italic;"&gt;Intuitive Guide to Angles, Degrees and Radians&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;It really drives home the power of radians. Take this example from the article:&lt;br /&gt;&lt;blockquote&gt;Let’s try a real example: you have a bus with wheels of radius 2 meters (it’s a monster truck bus). I’ll say how fast the wheels are turning and you say how fast the bus is moving. Ready?&lt;br /&gt;&lt;br /&gt;“The wheels are turning 2000 degrees per second”. You’d think:&lt;br /&gt;&lt;blockquote&gt;Ok, the wheels are going 2000 degrees per second. That means it’s turning 2000/360 or 5 and 5/9ths rotations per second. Circumference = 2 * pi * r, so it’s moving, um, 2 * 3.14 * 5 and 5/9ths… where’s my calculator…&lt;/blockquote&gt;“The wheels are turning 6 radians per second”. You’d think:&lt;br /&gt;&lt;blockquote&gt;Radians are distance along a unit circle — we just scale by the real radius to see how far we’ve gone. 6 * 2 = 12 meters per second. Next question.&lt;/blockquote&gt;Wow! No crazy formulas, no pi floating around — just multiply to convert rotational speed to linear speed. All because radians speak in terms of the mover.&lt;br /&gt;&lt;br /&gt;The reverse is easy too. Suppose you’re cruising 90 feet per second on the highway (60 miles per hour) on your 24″ inch rims (radius 1 foot). How fast are the wheels turning?&lt;br /&gt;&lt;br /&gt;Well, 90 feet per second / 1 foot radius = 90 radians per second.&lt;br /&gt;&lt;br /&gt;That was easy. I suspect rappers sing about 24″ rims for this very reason.&lt;/blockquote&gt;I'm not sure that's the reason they sing about 24″ rims, but I'll go along with it while it lasts.&lt;br /&gt;&lt;br /&gt;Think of the power you have here. Sure, the unit circle seems complex at first, but the power and patterns it presents when remembered and understood make many things simple.&lt;br /&gt;&lt;br /&gt;Scaling up to real-world circles and back down to the unit of circles, as well as determining their motion, becomes a simple matter of multiplication. You can work out sines, cosines, tangents, and cotangents on your fingers.&lt;br /&gt;&lt;br /&gt;Converting from radians to degrees and back, with a little practice, isn't difficult.&lt;br /&gt;&lt;br /&gt;Which brings to mind the question of practice. The simplest practice I can offer is to &lt;a href="http://webhome.broward.edu/~jguild/unit%20circle%20quiz%20practice.pdf"&gt;print out several copies of this PDF&lt;/a&gt;, and repeatedly fill it out until you're good enough to do so in under 5 minutes, just as it says.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.sporcle.com/games/Baileyth/unitcircle"&gt;Sporcle offer this ingenious quiz for practicing radians and degrees&lt;/a&gt;. With help from &lt;a href="#ucunderstd" class="jumpup"&gt;the videos from the previous tab&lt;/a&gt;, this shouldn't be too tough.&lt;br /&gt;&lt;br /&gt;The most complete quiz on the unit circle that I've found, however, is &lt;a href="http://www.mathfanatics.com/math/Unit_Circle_Quiz.php"&gt;Math Fanatic's Unit Circle and Trigonometry Quiz&lt;/a&gt;. The menu lets you select exactly what aspects you want to practice, and the quiz itself lets you practice each section for as long as you need or want. Since it covers most of trigonometry, and not just the unit circle, there will be some quizzes not covered in my unit circle tutorial.&lt;br /&gt;&lt;br /&gt;I hope you find this useful, and I also hope it helped you better understand the unit circle.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800835365312821409-7879317211302809838?l=gmmentalgym.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmmentalgym.blogspot.com/feeds/7879317211302809838/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmmentalgym.blogspot.com/2011/02/unit-circle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/7879317211302809838'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/7879317211302809838'/><link rel='alternate' type='text/html' href='http://gmmentalgym.blogspot.com/2011/02/unit-circle.html' title='The Unit Circle'/><author><name>Pi Guy</name><uri>http://www.blogger.com/profile/09760001560356969164</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://lh3.ggpht.com/_zQQCfNroX3w/TMDBGryIxfI/AAAAAAAAASw/_ygdD3eWHCU/s0/gmsc.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://i261.photobucket.com/albums/ii45/testingfark/greymatters/th_radian.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800835365312821409.post-2293767705491214198</id><published>2011-01-18T18:01:00.000-08:00</published><updated>2011-01-18T18:01:00.902-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='feats'/><category scheme='http://www.blogger.com/atom/ns#' term='workout'/><category scheme='http://www.blogger.com/atom/ns#' term='mental math'/><category scheme='http://www.blogger.com/atom/ns#' term='memory'/><category scheme='http://www.blogger.com/atom/ns#' term='math'/><category scheme='http://www.blogger.com/atom/ns#' term='exponents'/><title type='text'>Squaring 2-Digit Numbers Quiz</title><content type='html'>&lt;script type='text/javascript'&gt;function numberFormat(nStr,prefix){    var prefix = prefix || '';    nStr += '';    x = nStr.split('.');    x1 = x[0];    x2 = x.length &gt; 1 ? '.' + x[1] : '';    var rgx = /(\d+)(\d{3})/;    while (rgx.test(x1))        x1 = x1.replace(rgx, '$1' + ',' + '$2');    return prefix + x1 + x2;}function random(maxValue) {day= new Date();hour= day.getHours();min=day.getMinutes();sec=day.getSeconds();mili=day.getTime()return(((hour*3600)+(min*60)+(sec)+mili) % maxValue);};function ranom(maxValue) {day= new Date();mil=day.getTime();return((mil) % maxValue);};function tenandfive() {maxValue=9;numA=random(maxValue);numA=numA + 1;numA=numA * 10;numE=ranom(maxValue);if (numE &gt; 5) {numA = numA + 5;};numB=numA * numA;strD=numA.toString();strC=numB.toString();strR="What is " + strD + " squared?";  var quiz = [   {     ques: strR,    ans: strC,   }   ];  var options = {   title: "Squaring Multiples of 10 and 5",   disableRestart: true,   quizType: "fill"  };  $("#quizarea").jQuizMe(quiz, options); };function firstgroup() {maxValue=25;numA=random(maxValue);numA=numA + 1;numB=numA * numA;strD=numA.toString();strC=numB.toString();strR="What is " + strD + " squared?";  var quiz = [   {     ques: strR,    ans: strC,   }   ];  var options = {   title: "Squaring numbers 1-25",   disableRestart: true,   quizType: "fill"  };  $("#quizarea").jQuizMe(quiz, options); };function secondgroup() {maxValue=25;numA=random(maxValue);numA=numA + 26;numB=numA * numA;strD=numA.toString();strC=numB.toString();strR="What is " + strD + " squared?";  var quiz = [   {     ques: strR,    ans: strC,   }   ];  var options = {   title: "Squaring numbers 26-50",   disableRestart: true,   quizType: "fill"  };  $("#quizarea").jQuizMe(quiz, options); };function thirdgroup() {maxValue=25;numA=random(maxValue);numA=numA + 51;numB=numA * numA;strD=numA.toString();strC=numB.toString();strR="What is " + strD + " squared?";  var quiz = [   {     ques: strR,    ans: strC,   }   ];  var options = {   title: "Squaring numbers 51-75",   disableRestart: true,   quizType: "fill"  };  $("#quizarea").jQuizMe(quiz, options); };function fourthgroup() {maxValue=25;numA=random(maxValue);numA=numA + 76;numB=numA * numA;strD=numA.toString();strC=numB.toString();strR="What is " + strD + " squared?";  var quiz = [   {     ques: strR,    ans: strC,   }   ];  var options = {   title: "Squaring numbers 76-100",   disableRestart: true,   quizType: "fill"  };  $("#quizarea").jQuizMe(quiz, options); };function fifthgroup() {maxValue=25;numA=random(maxValue);numA=numA + 101;numB=numA * numA;strD=numA.toString();strC=numB.toString();strR="What is " + strD + " squared?";  var quiz = [   {     ques: strR,    ans: strC,   }   ];  var options = {   title: "Squaring numbers 101-125",   disableRestart: true,   quizType: "fill"  };  $("#quizarea").jQuizMe(quiz, options); };&lt;/script&gt;&lt;span id="fullpost"&gt;&lt;a href="http://gmmentalgym.blogspot.com/2011/01/squaring-2-digit-numbers-mentally.html"&gt;Learn to perform the 2-digit number squaring feat here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt; Enter answers without any commas.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a class="gmButton" onClick="tenandfive()"&gt;Squaring Multiples of 10 and 5&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a class="gmButton" onClick="firstgroup()"&gt;Squaring Numbers from 1 to 25&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a class="gmButton" onClick="secondgroup()"&gt;Squaring Numbers from 26 to 50&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a class="gmButton" onClick="thirdgroup()"&gt;Squaring Numbers from 51 to 75&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a class="gmButton" onClick="fourthgroup()"&gt;Squaring Numbers from 76 to 100&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a class="gmButton" onClick="fifthgroup()"&gt;Squaring Numbers from 101 to 125&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Quiz will appear below:&lt;br /&gt;&lt;div id="quizarea"&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800835365312821409-2293767705491214198?l=gmmentalgym.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmmentalgym.blogspot.com/feeds/2293767705491214198/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmmentalgym.blogspot.com/2011/01/squaring-2-digit-numbers-quiz.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/2293767705491214198'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/2293767705491214198'/><link rel='alternate' type='text/html' href='http://gmmentalgym.blogspot.com/2011/01/squaring-2-digit-numbers-quiz.html' title='Squaring 2-Digit Numbers Quiz'/><author><name>Pi Guy</name><uri>http://www.blogger.com/profile/09760001560356969164</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://lh3.ggpht.com/_zQQCfNroX3w/TMDBGryIxfI/AAAAAAAAASw/_ygdD3eWHCU/s0/gmsc.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800835365312821409.post-6040803584703387161</id><published>2011-01-18T18:00:00.000-08:00</published><updated>2011-06-18T17:04:56.985-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='feats'/><category scheme='http://www.blogger.com/atom/ns#' term='mental math'/><category scheme='http://www.blogger.com/atom/ns#' term='memory'/><category scheme='http://www.blogger.com/atom/ns#' term='math'/><category scheme='http://www.blogger.com/atom/ns#' term='exponents'/><title type='text'>Squaring 2-Digit Numbers Mentally</title><content type='html'>&lt;ul id="tabs"&gt;&lt;span id="fullpost"&gt;&lt;li&gt;&lt;a id="sq1" href="#sqbasics" class="s"&gt;Basics&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a id="sq2" href="#sqmath" class="s"&gt;Math&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a id="sq3" href="#sqmem" class="s"&gt;Memory&lt;/a&gt;&lt;/li&gt;&lt;/span&gt;&lt;/ul&gt;&lt;div class="panes"&gt;&lt;div&gt;&lt;h2&gt;Introduction&lt;/h2&gt;In this post, you'll learn how to square numbers from 1-100 in your head!&lt;br /&gt;&lt;br /&gt;&lt;span id="fullpost"&gt;As a refresher, squaring a number simply means to multiply it by itself. For example, 4 squared is 16 because 4 times 4 is 16. You should know the squares of all the numbers from 1 through 10 by heart already.&lt;br /&gt;&lt;h2&gt;Multiples of 10&lt;/h2&gt;If you already know your squares of the numbers 1 through 10, the multiples of 10 are easy. When a number from 1-100 ends in zero, simply drop the ending 0, square the remaining number, and then add 2 zeroes. For example, to work out 20 squared, drop the zero leaving the 2, square it to get 4, then tack on 2 zeroes to that 4, resulting in 400.&lt;br /&gt;&lt;br /&gt;70 squared? 4900, because 7 squared is 49, and the two zeroes added make it 4900. 100 is trickier, but uses the same approach. 100 with the final zero dropped gives us 10. 10 squared is 100, and adding 2 zeroes gives us 10,000.&lt;br /&gt;&lt;h2&gt;Multiples of 5&lt;/h2&gt;Multiples of 5 are almost as easy. You do need to make sure you know your multiplication tables up to at least 10 times 10. The method taught here is also &lt;a href="http://gmmentalgym.blogspot.com/2010/10/root-extractions.html#rtnumfive"&gt;taught in the root extraction tutorial&lt;/a&gt;, as well.&lt;br /&gt;&lt;br /&gt;When given a number ending in 5, simply take the 10s digit, and multiply by a number one higher than itself. Take that answer, take a "25" on the end, and you've got the answer!&lt;br /&gt;&lt;br /&gt;For example, let's say you're asked what 35 squared is. Take the 3 (the 10s digit), and multply it by 4 (which is one higher than 3), and you get 12. Tack a 25 on the end, giving you 1225. Simple, isn't it?&lt;br /&gt;&lt;br /&gt;Let's try a higher number, like 75 squared. 7 times 8? 56. Tacking on the 25, gives us 5625!&lt;br /&gt;&lt;br /&gt;Here's a slideshow to help explain this procedure in more detail:&lt;br /&gt;&lt;br /&gt;&lt;div class="playorlink"&gt;&lt;object data="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=squaring-numbers-ending-in-5-7176&amp;rel=0&amp;stripped_title=squaring-numbers-ending-in-5&amp;userName=greymatters" width="530" height="434" type="application/x-shockwave-flash"&gt;     &lt;param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=squaring-numbers-ending-in-5-7176&amp;rel=0&amp;stripped_title=squaring-numbers-ending-in-5&amp;userName=greymatters" /&gt;&lt;param name="flashvars" value="xml=flash/assets/jfeFlash.xml" /&gt;&lt;param name="allowFullScreen" value="true" /&gt;&lt;/object&gt;&lt;div class="jfeAlternate jfeAlternateDefault" style="display:none;"&gt;&lt;span style="font-weight:bold;"&gt;&lt;a href="http://www.slideshare.net/greymatters/squaring-numbers-ending-in-5"&gt;Click here to view the &lt;span style="font-style:italic;"&gt;Squaring Numbers Ending in 5&lt;/span&gt; slideshow&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;To quiz yourself on squaring multiples of 10 and 5, &lt;a href="http://gmmentalgym.blogspot.com/2011/01/squaring-2-digit-numbers-quiz.html"&gt;click here&lt;/a&gt;. To learn the mental math approach to squaring the remaining numbers, &lt;a href="#sqmath" class="jumpup"&gt;click here&lt;/a&gt;. To learn the memorization approach to squaring the remaining numbers, &lt;a href="#sqmem" class="jumpup"&gt;click here&lt;/a&gt;.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;h2&gt;Numbers from 1-25&lt;/h2&gt;For the approach using pure mental math, you'll need to know your squares from 1-25 by heart. From 1 to 10 you should already know, and from &lt;a href="#sqbasics" class="jumpup"&gt;the techniques on the first page&lt;/a&gt;, 15, 20, and 25 will be easily handled, as well. That leaves these squares to learn by heart:&lt;br /&gt;&lt;br /&gt;&lt;table class="flexme"&gt;&lt;thead&gt;&lt;tr&gt;              &lt;th width="252"&gt;Number&lt;/th&gt;              &lt;th width="252"&gt;Square of Number&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;     &lt;tbody&gt;&lt;tr&gt;              &lt;td&gt;11&lt;/td&gt;              &lt;td&gt;121&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;12&lt;/td&gt;              &lt;td&gt;144&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;13&lt;/td&gt;              &lt;td&gt;169&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;14&lt;/td&gt;              &lt;td&gt;196&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;16&lt;/td&gt;              &lt;td&gt;256&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;17&lt;/td&gt;              &lt;td&gt;289&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;18&lt;/td&gt;              &lt;td&gt;324&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;19&lt;/td&gt;              &lt;td&gt;361&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;21&lt;/td&gt;              &lt;td&gt;441&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;22&lt;/td&gt;              &lt;td&gt;484&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;23&lt;/td&gt;              &lt;td&gt;529&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;24&lt;/td&gt;              &lt;td&gt;576&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt; &lt;/table&gt;&lt;br /&gt;The must be known by heart, because the method we're going to use to work out the remaining numbers requires that you can give the above numbers quickly.&lt;br /&gt;&lt;h2&gt;Numbers from 26-50&lt;/h2&gt;To work out the numbers from 26 to 50, we're going to use an approach in which we multiply by 50.&lt;br /&gt;&lt;br /&gt;Multiplying any number by 50 is easy – all you have to do is divide the number by 2, and add 2 zeroes (more accurately, you would move the decimal 2 places to the right). 48 times 50? Half of 48 is 24, and two zeroes added results in 2400, which is the correct answer. This method only involves multiplying even numbers by 50, so you won't have to worry about dealing with numbers like 24.5 (Half of 49).&lt;br /&gt;&lt;br /&gt;When given any number from 26-50, you're first going to work out how far that number is from 50, then subtract that distance from the given number. For example, if you're given the number 47, it's easy to work out that it's only 3 away from 50. Subtracting that 3 from 47, we get 44.&lt;br /&gt;&lt;br /&gt;Instead of solving 47 times 47, then, we're going to work out the much easier problem of 44 times 50, which is 2200. However, this isn't the same as the answer to 47 squared, so we need to make an adjustment.&lt;br /&gt;&lt;br /&gt;From 47, we both moved up 3 to 50 and down 3 to 44. So, we square this 3 to get 9, and add that to the other answer we worked out, 2,200, to get a total of 2,209. This is the answer to 47 times 47!&lt;br /&gt;&lt;br /&gt;So, when given a number, you work out how far the given is from 50, and find a number that's equally far &lt;span style="font-style:italic;"&gt;below&lt;/span&gt; the given number (the &amp;#147;low&amp;#148; number), and also remember this difference. Multiply 50 times the &amp;#147;low&amp;#148; number, adjust it by squaring the difference you moved, and adding that amount, and the result will be the square!&lt;br /&gt;&lt;br /&gt;Let's try this with 44, to help make this clearer. 44 is 6 away from 50, so we figure out that 44 - 6 = 38. 38 times 50 is easy, 1,900. We moved a difference of 6 in both directions, so we add 36 (6 squared) to 1900, to get 1,936!&lt;br /&gt;&lt;br /&gt;How about 39 squared? That's 11 away from both 50 and 28. 28 times 50? 1,400. 11 squared is 121, and adding that to 1,400, we get 1,521!&lt;br /&gt;&lt;br /&gt;How about 35? Trick question! That's made easier by &lt;a href="#sqbasics" class="jumpup"&gt;the multiples of 5 technique from the first page&lt;/a&gt;. Don't forget to use the easier techniques in the easier cases.&lt;br /&gt;&lt;h2&gt;Numbers from 51-75&lt;/h2&gt;The same technique is going to be used for numbers from 51 to 75, but with one minor change. You'll be moving down to 50, and up to another number (Previously, you moved up to 50, and down to another number). Other than that, the process is basically the same.&lt;br /&gt;&lt;br /&gt;Let's try 56 squared. 56 is 6 away from 50 and 62. 50 times 62 is 3,100, plus 36 (6 squared) gives us 3,136!&lt;br /&gt;&lt;br /&gt;How about 67? The distance makes this a little more challenging, but the process is still the same. 67 is 17 away from 50 and 84, so we multiply those two numbers to get 4,200. 17 squared is 289, so we work out 4,200 plus 289 to get our final answer of 4,489.&lt;br /&gt;&lt;h2&gt;Numbers from 76-100&lt;/h2&gt;As easy as multiplying by 50 has been, multiplying by 100 is even easier – just add 2 zeroes!&lt;br /&gt;&lt;br /&gt;For numbers from 76-100, we're going to adjust upward to 100, as opposed to using 50 as we have been. Wait until you see how easy this makes the process!&lt;br /&gt;&lt;br /&gt;Let's try working out 98 squared. 98 is 2 away from 100 and 96, and multiplied together, that gives us 9,600. 2 squared is 4, and 9600 plus 4 is 9,604. That's 98 squared!&lt;br /&gt;&lt;br /&gt;How about 91? We start out with 8,200 (do you see why?), and add 81 (again, do you see why?), to get 8,281.&lt;br /&gt;&lt;br /&gt;The more you practice each of these stages, the more you'll get a feel for certain patterns. This will allow you to speed up your calculations.&lt;br /&gt;&lt;h2&gt;Numbers from 100-125&lt;/h2&gt;By now, you've probably figured out that you can go up to 125 with just a minor adaptation, similar to that we used when going above 50.&lt;br /&gt;&lt;br /&gt;What's 103 squared? It's between 106 and 100, so we multiply those to get 10,600. 3 squared is 9, so that added in gives us 10,609!&lt;br /&gt;&lt;br /&gt;What about a toughie, like 124? That's between 100 and 148, so we start with 14,800. 24 squared is 576, so we add those together to get 15,376.&lt;br /&gt;&lt;br /&gt;With a little practice, you should have this process down in a faster time than you may have ever thought possible.&lt;br /&gt;&lt;br /&gt;To practice squaring numbers, &lt;a href="http://gmmentalgym.blogspot.com/2011/01/squaring-2-digit-numbers-quiz.html"&gt;click here&lt;/a&gt;. To learn an alternative approach using memorization for squaring the numbers from 1 to 100, &lt;a href="#sqmem" class="jumpup"&gt;click here&lt;/a&gt;.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;h2&gt;Memorizing the Squares&lt;/h2&gt;It was &lt;a href="http://www.jimwilder.com/"&gt;Alabama math and science teacher Jim Wilder&lt;/a&gt; who first suggested the idea of memorizing the squares to me. The process is similar to &lt;a href="http://gmmentalgym.blogspot.com/2010/10/400-digits-of-pi.html"&gt;the one I use for memorizing 400 digits of Pi&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;First, you should learn the &lt;a href="#sqbasics" class="jumpup"&gt;the multiples of 10 and 5 techniques from the first page&lt;/a&gt;, and you should still &lt;a href="#sqmath" class="jumpup"&gt;know the squares from 1-25 by heart&lt;/a&gt;, as those are still quicker than the memory approach. This also helps minimize the amount of links needed.&lt;br /&gt;&lt;h2&gt;Prerequisites:&lt;/h2&gt;&lt;a href="http://gmmentalgym.blogspot.com/2010/10/memory-basics.html"&gt;Link System&lt;/a&gt;&lt;br /&gt;&lt;a href="http://gmmentalgym.blogspot.com/2010/10/memory-basics.html"&gt;Major System&lt;/a&gt;&lt;br /&gt;&lt;h2&gt;Links&lt;/h2&gt;With the exception of the multiples of 10 and 5, Jim Wilder put in some amazing work developing major system mnemonics for all the squares from 26 to 99 (Thanks again, Jim, for both your work and willingness to share it with us!):&lt;br /&gt;&lt;br /&gt;&lt;table class="flexme"&gt;&lt;thead&gt;&lt;tr&gt;              &lt;th width="120"&gt;Number&lt;/th&gt;              &lt;th width="120"&gt;Square of Number&lt;/th&gt;              &lt;th width="120"&gt;Number Mnemonic&lt;/th&gt;              &lt;th width="120"&gt;Square Mnemonic&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;     &lt;tbody&gt;&lt;tr&gt;              &lt;td&gt;26&lt;/td&gt;              &lt;td&gt;676&lt;/td&gt;              &lt;td&gt;iNCH&lt;/td&gt;              &lt;td&gt;SHaKiSH&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;27&lt;/td&gt;              &lt;td&gt;729&lt;/td&gt;              &lt;td&gt;kNocK&lt;/td&gt;              &lt;td&gt;Key, NaP&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;28&lt;/td&gt;              &lt;td&gt;784&lt;/td&gt;              &lt;td&gt;kNiFe&lt;/td&gt;              &lt;td&gt;CoVeR&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;29&lt;/td&gt;              &lt;td&gt;841&lt;/td&gt;              &lt;td&gt;kNoB&lt;/td&gt;              &lt;td&gt;FoRT&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;31&lt;/td&gt;              &lt;td&gt;961&lt;/td&gt;              &lt;td&gt;MaiD&lt;/td&gt;              &lt;td&gt;PuSHeD&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;32&lt;/td&gt;              &lt;td&gt;1,024&lt;/td&gt;              &lt;td&gt;MooN&lt;/td&gt;              &lt;td&gt;DoSe NeaR&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;33&lt;/td&gt;              &lt;td&gt;1,089&lt;/td&gt;              &lt;td&gt;MuM&lt;/td&gt;              &lt;td&gt;ToSS FiB&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;34&lt;/td&gt;              &lt;td&gt;1,156&lt;/td&gt;              &lt;td&gt;MaRRy&lt;/td&gt;              &lt;td&gt;TighT LeaSH&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;36&lt;/td&gt;              &lt;td&gt;1,296&lt;/td&gt;              &lt;td&gt;MaTCH&lt;/td&gt;              &lt;td&gt;DowN PuSH&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;37&lt;/td&gt;              &lt;td&gt;1,369&lt;/td&gt;              &lt;td&gt;MoCHa&lt;/td&gt;              &lt;td&gt;DaMn, CHeaP&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;38&lt;/td&gt;              &lt;td&gt;1,444&lt;/td&gt;              &lt;td&gt;huMVee&lt;/td&gt;              &lt;td&gt;TiRe RoaR&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;39&lt;/td&gt;              &lt;td&gt;1,521&lt;/td&gt;              &lt;td&gt;MoP&lt;/td&gt;              &lt;td&gt;TaiL kNoT&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;41&lt;/td&gt;              &lt;td&gt;1,681&lt;/td&gt;              &lt;td&gt;RaT&lt;/td&gt;              &lt;td&gt;TouCH, FiT!&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;42&lt;/td&gt;              &lt;td&gt;1,764&lt;/td&gt;              &lt;td&gt;RuN&lt;/td&gt;              &lt;td&gt;TaKe SHaRe&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;43&lt;/td&gt;              &lt;td&gt;1,849&lt;/td&gt;              &lt;td&gt;RaM&lt;/td&gt;              &lt;td&gt;TuFF RoPe&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;44&lt;/td&gt;              &lt;td&gt;1,936&lt;/td&gt;              &lt;td&gt;RoaR&lt;/td&gt;              &lt;td&gt;TiP MatCH&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;46&lt;/td&gt;              &lt;td&gt;2,116&lt;/td&gt;              &lt;td&gt;ReaCH&lt;/td&gt;              &lt;td&gt;NoT TouCH&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;47&lt;/td&gt;              &lt;td&gt;2,209&lt;/td&gt;              &lt;td&gt;RoCK&lt;/td&gt;              &lt;td&gt;NoN SouP&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;48&lt;/td&gt;              &lt;td&gt;2,304&lt;/td&gt;              &lt;td&gt;ReeF&lt;/td&gt;              &lt;td&gt;NaM, SiR!&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;49&lt;/td&gt;              &lt;td&gt;2,401&lt;/td&gt;              &lt;td&gt;RiB&lt;/td&gt;              &lt;td&gt;uNRaiSeD&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;61&lt;/td&gt;              &lt;td&gt;3,721&lt;/td&gt;              &lt;td&gt;SHaDow&lt;/td&gt;              &lt;td&gt;MaKe NighT&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;62&lt;/td&gt;              &lt;td&gt;3,844&lt;/td&gt;              &lt;td&gt;CHaiN&lt;/td&gt;              &lt;td&gt;MoVe ReaR&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;63&lt;/td&gt;              &lt;td&gt;3,969&lt;/td&gt;              &lt;td&gt;CHuM&lt;/td&gt;              &lt;td&gt;MoP SHiP&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;64&lt;/td&gt;              &lt;td&gt;4,096&lt;/td&gt;              &lt;td&gt;CHaiR&lt;/td&gt;              &lt;td&gt;RiSe, PuSH&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;66&lt;/td&gt;              &lt;td&gt;4,356&lt;/td&gt;              &lt;td&gt;CHeeCH&lt;/td&gt;              &lt;td&gt;RuM LuSH&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;67&lt;/td&gt;              &lt;td&gt;4,489&lt;/td&gt;              &lt;td&gt;CHeCK&lt;/td&gt;              &lt;td&gt;RaRe FiB&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;68&lt;/td&gt;              &lt;td&gt;4,624&lt;/td&gt;              &lt;td&gt;CHeF&lt;/td&gt;              &lt;td&gt;ReaCH NeaR&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;69&lt;/td&gt;              &lt;td&gt;4,761&lt;/td&gt;              &lt;td&gt;CHiP&lt;/td&gt;              &lt;td&gt;RocK SHeeT&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;71&lt;/td&gt;              &lt;td&gt;5,041&lt;/td&gt;              &lt;td&gt;KiT&lt;/td&gt;              &lt;td&gt;LooSe, RighT?&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;72&lt;/td&gt;              &lt;td&gt;5,184&lt;/td&gt;              &lt;td&gt;CaN&lt;/td&gt;              &lt;td&gt;LeaD FeaR!&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;73&lt;/td&gt;              &lt;td&gt;5,329&lt;/td&gt;              &lt;td&gt;GuM&lt;/td&gt;              &lt;td&gt;LiMe NuB&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;74&lt;/td&gt;              &lt;td&gt;5,476&lt;/td&gt;              &lt;td&gt;CaR&lt;/td&gt;              &lt;td&gt;LuRe CaSH&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;76&lt;/td&gt;              &lt;td&gt;5,776&lt;/td&gt;              &lt;td&gt;CoaCH&lt;/td&gt;              &lt;td&gt;LuCK, CoaCH&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;77&lt;/td&gt;              &lt;td&gt;5,929&lt;/td&gt;              &lt;td&gt;CoKe&lt;/td&gt;              &lt;td&gt;LeaP, NaP&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;78&lt;/td&gt;              &lt;td&gt;6,084&lt;/td&gt;              &lt;td&gt;CaVe&lt;/td&gt;              &lt;td&gt;CHooSe FiRe&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;79&lt;/td&gt;              &lt;td&gt;6,241&lt;/td&gt;              &lt;td&gt;CaP&lt;/td&gt;              &lt;td&gt;SHiN, Right?&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;81&lt;/td&gt;              &lt;td&gt;6,561&lt;/td&gt;              &lt;td&gt;FaT&lt;/td&gt;              &lt;td&gt;JeLLo JeT&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;82&lt;/td&gt;              &lt;td&gt;6,724&lt;/td&gt;              &lt;td&gt;FiN&lt;/td&gt;              &lt;td&gt;CHiC NoiR&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;83&lt;/td&gt;              &lt;td&gt;6,889&lt;/td&gt;              &lt;td&gt;FoaM&lt;/td&gt;              &lt;td&gt;CheF FiB&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;84&lt;/td&gt;              &lt;td&gt;7,056&lt;/td&gt;              &lt;td&gt;FouR&lt;/td&gt;              &lt;td&gt;CaSe LatCH&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;86&lt;/td&gt;              &lt;td&gt;7,396&lt;/td&gt;              &lt;td&gt;FiSH&lt;/td&gt;              &lt;td&gt;CoMb PuSH&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;87&lt;/td&gt;              &lt;td&gt;7,569&lt;/td&gt;              &lt;td&gt;FaKe&lt;/td&gt;              &lt;td&gt;CoaL CHiP&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;88&lt;/td&gt;              &lt;td&gt;7,744&lt;/td&gt;              &lt;td&gt;FiFe&lt;/td&gt;              &lt;td&gt;KicK ReaR&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;89&lt;/td&gt;              &lt;td&gt;7,921&lt;/td&gt;              &lt;td&gt;FiB&lt;/td&gt;              &lt;td&gt;CaP NoD&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;91&lt;/td&gt;              &lt;td&gt;8,281&lt;/td&gt;              &lt;td&gt;PaT&lt;/td&gt;              &lt;td&gt;FuN FighT&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;92&lt;/td&gt;              &lt;td&gt;8,464&lt;/td&gt;              &lt;td&gt;PaN&lt;/td&gt;              &lt;td&gt;VeRy CHaR'd&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;93&lt;/td&gt;              &lt;td&gt;8,649&lt;/td&gt;              &lt;td&gt;PaM&lt;/td&gt;              &lt;td&gt;FiSH RuB&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;94&lt;/td&gt;              &lt;td&gt;8,836&lt;/td&gt;              &lt;td&gt;PouR&lt;/td&gt;              &lt;td&gt;ViVa MuCHo!&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;96&lt;/td&gt;              &lt;td&gt;9,216&lt;/td&gt;              &lt;td&gt;PiTCH&lt;/td&gt;              &lt;td&gt;BaNNeD SHow&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;97&lt;/td&gt;              &lt;td&gt;9,409&lt;/td&gt;              &lt;td&gt;PuCK&lt;/td&gt;              &lt;td&gt;PooR SOB&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;98&lt;/td&gt;              &lt;td&gt;9,604&lt;/td&gt;              &lt;td&gt;PuFF&lt;/td&gt;              &lt;td&gt;PuSHeS aiR&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;99&lt;/td&gt;              &lt;td&gt;9,801&lt;/td&gt;              &lt;td&gt;PaPa&lt;/td&gt;              &lt;td&gt;PuFFS iT&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt; &lt;/table&gt;&lt;h2&gt;Memorizing the 50s&lt;/h2&gt;Like multiples of 10 and 5, the squares of numbers in the 50s have their own trick that is easy to remember.&lt;br /&gt;&lt;br /&gt;&lt;table class="flexme"&gt;&lt;thead&gt;&lt;tr&gt;              &lt;th width="252"&gt;Number&lt;/th&gt;              &lt;th width="252"&gt;Square of Number&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;     &lt;tbody&gt;&lt;tr&gt;              &lt;td&gt;51&lt;/td&gt;              &lt;td&gt;2,601&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;52&lt;/td&gt;              &lt;td&gt;2,704&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;53&lt;/td&gt;              &lt;td&gt;2,809&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;54&lt;/td&gt;              &lt;td&gt;2,916&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;56&lt;/td&gt;              &lt;td&gt;3,136&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;57&lt;/td&gt;              &lt;td&gt;3,249&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;58&lt;/td&gt;              &lt;td&gt;3,364&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;              &lt;td&gt;59&lt;/td&gt;              &lt;td&gt;3,481&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt; &lt;/table&gt;&lt;br /&gt;When given a number in the 50s, simply take the ones digit and add it to 25. Next, take the square of the digit in the ones place, and tack that on to the right of the previous answer.&lt;br /&gt;&lt;br /&gt;For an example, let's use 53. The ones digit is a 3, so we add 25 to get 28. 3 squared is 9, so we add 09 to the end of the other digit to get 2,809.&lt;br /&gt;&lt;br /&gt;57? 7 plus 25 is 32. 7 squared is 49. Therefore, 57 squared is 3,249. Once the pattern clicks, you'll find that these are quick and easy.&lt;br /&gt;&lt;br /&gt;To practice squaring numbers, &lt;a href="http://gmmentalgym.blogspot.com/2011/01/squaring-2-digit-numbers-quiz.html"&gt;click here&lt;/a&gt;. To learn an approach using mathematics for squaring the numbers from 1 to 125, &lt;a href="#sqmath" class="jumpup"&gt;click here&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800835365312821409-6040803584703387161?l=gmmentalgym.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmmentalgym.blogspot.com/feeds/6040803584703387161/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmmentalgym.blogspot.com/2011/01/squaring-2-digit-numbers-mentally.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/6040803584703387161'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/6040803584703387161'/><link rel='alternate' type='text/html' href='http://gmmentalgym.blogspot.com/2011/01/squaring-2-digit-numbers-mentally.html' title='Squaring 2-Digit Numbers Mentally'/><author><name>Pi Guy</name><uri>http://www.blogger.com/profile/09760001560356969164</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://lh3.ggpht.com/_zQQCfNroX3w/TMDBGryIxfI/AAAAAAAAASw/_ygdD3eWHCU/s0/gmsc.png'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800835365312821409.post-6823132376491412746</id><published>2010-11-22T20:56:00.000-08:00</published><updated>2010-11-22T23:17:03.443-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='off-site'/><category scheme='http://www.blogger.com/atom/ns#' term='workout'/><category scheme='http://www.blogger.com/atom/ns#' term='puzzles'/><category scheme='http://www.blogger.com/atom/ns#' term='memory'/><title type='text'>Simon</title><content type='html'>&lt;style type='text/css'&gt;#simontable {  display:none;}&lt;/style&gt;&lt;script type='text/javascript'&gt;//&lt;![CDATA[$(window).load(function() { whr = location.href; if ((whr.indexOf("2010/11/simon.html")) != -1) {     $('#simontable').css('display','inline'); };});if(document.images){yellow0=new Image();yellow0.src="http://lh3.ggpht.com/_zQQCfNroX3w/TOtFpD__KKI/AAAAAAAAAfg/WSNJ5bjvWDY/s0/yellow.png";yellow1=new Image();yellow1.src="http://lh3.ggpht.com/_zQQCfNroX3w/TOtFob9uIxI/AAAAAAAAAfc/UxsYRJ8KMtM/s0/yellow_d.png";green0=new Image();green0.src="http://lh6.ggpht.com/_zQQCfNroX3w/TOtFXWatofI/AAAAAAAAAfQ/fdXS0X40Dow/s0/green.png";green1=new Image();green1.src="http://lh4.ggpht.com/_zQQCfNroX3w/TOtFW5RZ-1I/AAAAAAAAAfM/Cc0icLtZwqc/s0/green_d.png";blue0=new Image();blue0.src="http://lh4.ggpht.com/_zQQCfNroX3w/TOtFWbQf50I/AAAAAAAAAfI/nIn1vPZOibI/s0/blue.png";blue1=new Image();blue1.src="http://lh6.ggpht.com/_zQQCfNroX3w/TOtFWcC9e_I/AAAAAAAAAfE/WkyDIXpbANI/s0/blue_d.png";red0=new Image();red0.src="http://lh4.ggpht.com/_zQQCfNroX3w/TOtFoCXcvtI/AAAAAAAAAfY/jtsWe8Lii1E/s0/red.png";red1=new Image();red1.src="http://lh3.ggpht.com/_zQQCfNroX3w/TOtFYTLqMFI/AAAAAAAAAfU/YisXqmpNEfg/s0/red_d.png"}function flash_quarter(n){if(n==1){colour="yellow"}if(n==2){colour="green"}if(n==3){colour="blue"}if(n==4){colour="red"}document.images[colour].src=eval(colour+"1.src");setTimeout('document.images[colour].src = eval(colour + "0.src")',80)}rnd.today=new Date();rnd.seed=rnd.today.getTime();function rnd(){rnd.seed=(rnd.seed*9301+49297)%233280;return rnd.seed/(233280)}function rand(){return Math.ceil(rnd()*4)}var count;var round_number;var difficulty;var rounds=new Array;var interval=500;var on;function set_up(){count=0;round_number=0;on=0;var index=document.diff.level.selectedIndex;difficulty=document.diff.level.options[index].value;for(var i=0;i&lt;difficulty;i++){rounds[i]=rand()}}function start_round(){document.text.area.value="";count=0;on=1;for(var i=0;i&lt;=round_number;i++){setTimeout("flash_quarter("+rounds[i]+")",i*interval)}}function user_play(button){if(on){flash_quarter(button);if(rounds[count]!=button){document.text.area.value="Sorry, you lose.";set_up()}else{if(count==round_number){round_number++;if(round_number==difficulty){document.text.area.value="Wahey, you win!";set_up()}else{setTimeout("start_round()",1000)}}}count++}else{document.text.area.value="Click START to play";setTimeout("document.text.area.value=''",400)}};//]]&gt;&lt;/script&gt;&lt;span style="font-weight:bold;"&gt;Object:&lt;/span&gt; Repeat the same sequence of 5, 10, or 15 colors randomly generated by the computer.&lt;br /&gt;&lt;br /&gt;&lt;span id="fullpost"&gt;When you click the &lt;span style="font-style:italic;"&gt;Start Game&lt;/span&gt; button, the computer will light up a single colored section of the board. Touch or click on the same color, and then the computer will give you a sequence of two colors, starting with the same color.&lt;br /&gt;&lt;br /&gt;Each time you are able to repeat the sequence given by the computer, it will repeat the previous sequence and add another color to it. You must then touch or click on that new sequence, as well.&lt;br /&gt;&lt;br /&gt;The game ends either when you win by repeating a full sequence of 5, 10, or 15 colors (depending on the chosen level), or lose by not entering the sequence correctly.&lt;/span&gt;&lt;h3&gt;&lt;span id="fullpost"&gt;Further Controls:&lt;/span&gt;&lt;/h3&gt;&lt;span id="fullpost"&gt;&lt;span style="font-weight:bold;"&gt;Start Game:&lt;/span&gt; This button begins a new game at the chosen level. The first color will flash as soon as you press this button, so make sure you're looking at the board when you click it!&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Easy/Medium/Hard Selector:&lt;/span&gt; This selector lets you choose the difficulty. In the &lt;span style="font-style:italic;"&gt;Easy&lt;/span&gt; level, you work up to a sequence of up to 5 colors. In the &lt;span style="font-style:italic;"&gt;Medium&lt;/span&gt; level, you work up to a 10-color sequence, and in the &lt;span style="font-style:italic;"&gt;Hard&lt;/span&gt; level, you're challenged to complete up to a 15-color sequence.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div id="simontable"&gt;&lt;table border="0" cellspacing="0" cellpadding="0" style="margin-left:100px;margin-right:100px;border-collapse:collapse;"&gt;&lt;tr&gt;&lt;td COLSPAN="2" ALIGN="right" VALIGN="bottom"&gt;&lt;a onclick="user_play(1)" style="display:block;height:102px;"&gt;&lt;img SRC="http://lh3.ggpht.com/_zQQCfNroX3w/TOtFpD__KKI/AAAAAAAAAfg/WSNJ5bjvWDY/s0/yellow.png" WIDTH="102" HEIGHT="102" BORDER="0" ALT="Yellow" NAME="yellow" /&gt;&lt;/A&gt;&lt;/TD&gt;&lt;td COLSPAN="2" ALIGN="left" VALIGN="bottom"&gt;&lt;a onclick="user_play(2)" style="display:block;height:102px;"&gt;&lt;img SRC="http://lh6.ggpht.com/_zQQCfNroX3w/TOtFXWatofI/AAAAAAAAAfQ/fdXS0X40Dow/s0/green.png" WIDTH="102" HEIGHT="102" BORDER="0" ALT="Green" NAME="green" /&gt;&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;tr&gt;&lt;td COLSPAN="2" ALIGN="right" VALIGN="top"&gt;&lt;a onclick="user_play(4)" style="display:block;height:102px;"&gt;&lt;img SRC="http://lh4.ggpht.com/_zQQCfNroX3w/TOtFoCXcvtI/AAAAAAAAAfY/jtsWe8Lii1E/s0/red.png" WIDTH="102" HEIGHT="102" BORDER="0" ALT="Red" NAME="red" /&gt;&lt;/A&gt;&lt;/TD&gt;&lt;td COLSPAN="2" ALIGN="left" VALIGN="top"&gt;&lt;a onclick="user_play(3)" style="display:block;height:102px;"&gt;&lt;img SRC="http://lh4.ggpht.com/_zQQCfNroX3w/TOtFWbQf50I/AAAAAAAAAfI/nIn1vPZOibI/s0/blue.png" WIDTH="102" HEIGHT="102" BORDER="0" ALT="Blue" NAME="blue" /&gt;&lt;/A&gt;&lt;/TD&gt;   &lt;/TR&gt;&lt;tr&gt;&lt;td COLSPAN="4"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;tr&gt;&lt;td ALIGN="right"&gt;&lt;form&gt;&lt;input TYPE="button" VALUE="Start Game" onClick="set_up(); start_round();"&gt;&lt;/FORM&gt;&lt;/TD&gt;&lt;td ALIGN="center" COLSPAN="2"&gt;&lt;form NAME="text"&gt;&lt;input TYPE="text" NAME="area" SIZE="20"&gt;&lt;/FORM&gt;&lt;/TD&gt;&lt;td ALIGN="left"&gt;&lt;form NAME="diff"&gt;&lt;select NAME="level" SIZE="1"&gt;&lt;option VALUE="5"&gt;Easy&lt;option VALUE="10"&gt;Medium&lt;option VALUE="15"&gt;Hard&lt;br /&gt;&lt;/SELECT&gt;&lt;/FORM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;tr&gt;&lt;td COLSPAN="4" ALIGN="center"&gt;&amp;nbsp;&lt;br /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;/div&gt;&lt;span id="fullpost"&gt;&lt;h3&gt;Solutions:&lt;/h3&gt;&lt;a href="http://headinside.blogspot.com/2006/01/remember-simon-you-will.html"&gt;How To Solve Simon&lt;/a&gt;&lt;br /&gt;&lt;h3&gt;More Information:&lt;/h3&gt;&lt;a href="http://www.irt.org/articles/js053/index.htm"&gt;Keith Drakard's &amp;#147;Simple Simon&amp;#148; page&lt;/a&gt;&lt;br /&gt;&lt;a href="http://en.wikipedia.org/wiki/Simon_(game)"&gt;Wikipedia: Simon (game)&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800835365312821409-6823132376491412746?l=gmmentalgym.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmmentalgym.blogspot.com/feeds/6823132376491412746/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/simon.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/6823132376491412746'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/6823132376491412746'/><link rel='alternate' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/simon.html' title='Simon'/><author><name>Pi Guy</name><uri>http://www.blogger.com/profile/09760001560356969164</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://lh3.ggpht.com/_zQQCfNroX3w/TMDBGryIxfI/AAAAAAAAASw/_ygdD3eWHCU/s0/gmsc.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_zQQCfNroX3w/TOtFpD__KKI/AAAAAAAAAfg/WSNJ5bjvWDY/s72-c/yellow.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800835365312821409.post-5046475563264544584</id><published>2010-11-22T14:57:00.000-08:00</published><updated>2010-11-22T23:44:00.010-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='off-site'/><category scheme='http://www.blogger.com/atom/ns#' term='workout'/><category scheme='http://www.blogger.com/atom/ns#' term='puzzles'/><category scheme='http://www.blogger.com/atom/ns#' term='math'/><title type='text'>Planarity</title><content type='html'>&lt;style type='text/css'&gt;#PlanarityArea {  border:solid 1px #000000;}&lt;/style&gt;&lt;script type='text/javascript'&gt;//&lt;![CDATA[$(window).load(function() { whr = location.href; if ((whr.indexOf("2010/11/planarity.html")) != -1) {     JSPlanarity.init('PlanarityArea'); };});/*! * Raphael 1.5.0 - JavaScript Vector Library * * Copyright (c) 2010 Dmitry Baranovskiy (http://raphaeljs.com) * Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license. */(function(){function aG(){if(aG.is(arguments[0],a4)){var b=arguments[0],d=D[bz](aG,b.splice(0,3+aG.is(b[0],aD))),R=d.set();for(var E=0,S=b[r];E&lt;S;E++){var e=b[E]||{};bm[af](e.type)&amp;&amp;R[j](d[e.type]().attr(e))}return R}return D[bz](aG,arguments)}aG.version="1.5.0";var a=/[, ]+/,bm={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},bk=/\{(\d+)\}/g,bC="prototype",af="hasOwnProperty",Z=document,aN=window,q={was:Object[bC][af].call(aN,"Raphael"),is:aN.Raphael},bw=function(){this.customAttributes={}},aW,bh="appendChild",bz="apply",bt="concat",V="createTouch" in Z,aM="",aF=" ",bA=String,H="split",P="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend orientationchange touchcancel gesturestart gesturechange gestureend"[H](aF),bn={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},aT="join",r="length",bE=bA[bC].toLowerCase,an=Math,l=an.max,bf=an.min,bi=an.pow,aD="number",ae="string",a4="array",aX="toString",a1="fill",aQ=Object[bC][aX],bq={},j="push",bx=/^(?=[\da-f]$)/,h=/^url\(['"]?([^\)]+?)['"]?\)$/i,F=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+\s*,\s*[\d\.]+\s*,\s*[\d\.]+(?:\s*,\s*[\d\.]+)?)\s*\)|rgba?\(\s*([\d\.]+%\s*,\s*[\d\.]+%\s*,\s*[\d\.]+%(?:\s*,\s*[\d\.]+%)?)\s*\)|hsb\(\s*([\d\.]+(?:deg|\xb0)?\s*,\s*[\d\.]+\s*,\s*[\d\.]+)\s*\)|hsb\(\s*([\d\.]+(?:deg|\xb0|%)\s*,\s*[\d\.]+%\s*,\s*[\d\.]+%)\s*\)|hsl\(\s*([\d\.]+(?:deg|\xb0)?\s*,\s*[\d\.]+\s*,\s*[\d\.]+)\s*\)|hsl\(\s*([\d\.]+(?:deg|\xb0|%)\s*,\s*[\d\.]+%\s*,\s*[\d\.]+%)\s*\))\s*$/i,ao=/^(NaN|-?Infinity)$/,c=/^cubic-bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,ac=an.round,C="setAttribute",ai=parseFloat,Q=parseInt,a2=" progid:DXImageTransform.Microsoft",bl=bA[bC].toUpperCase,p={blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/",opacity:1,path:"M0,0",r:0,rotation:0,rx:0,ry:0,scale:"1 1",src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",translation:"0 0",width:0,x:0,y:0},al={along:"along",blur:aD,"clip-rect":"csv",cx:aD,cy:aD,fill:"colour","fill-opacity":aD,"font-size":aD,height:aD,opacity:aD,path:"path",r:aD,rotation:"csv",rx:aD,ry:aD,scale:"csv",stroke:"colour","stroke-opacity":aD,"stroke-width":aD,translation:"csv",width:aD,x:aD,y:aD},bp="replace",a7=/,?([achlmqrstvxz]),?/gi,ba=/\s*,\s*/,m={hs:1,rg:1},bc=/^(from|to|\d+%)$/,aO=/([achlmqstvz])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?\s*,?\s*)+)/ig,aE=/(-?\d*\.?\d*(?:e[-+]?\d+)?)\s*,?\s*/ig,bj=function(e,d){return e.key-d.key};aG.type=(aN.SVGAngle||Z.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML");if(aG.type=="VML"){var av=Z.createElement("div"),az;av.innerHTML='&lt;v:shape adj="1"/&gt;';az=av.firstChild;az.style.behavior="url(#default#VML)";if(!(az&amp;&amp;typeof az.adj=="object")){return(aG.type=null)}av=null}aG.svg=!(aG.vml=aG.type=="VML");bw[bC]=aG[bC];aW=bw[bC];aG._id=0;aG._oid=0;aG.fn={};aG.is=function(d,b){b=bE.call(b);if(b=="finite"){return !ao.test(+d)}return(b=="null"&amp;&amp;d===null)||(b==typeof d)||(b=="object"&amp;&amp;d===Object(d))||(b=="array"&amp;&amp;Array.isArray&amp;&amp;Array.isArray(d))||aQ.call(d).slice(8,-1).toLowerCase()==b};aG.angle=function(E,S,e,R,d,i){if(d==null){var b=E-e,bF=S-R;if(!b&amp;&amp;!bF){return 0}return((b&lt;0)*180+an.atan(-bF/-b)*180/an.PI+360)%360}else{return aG.angle(E,S,d,i)-aG.angle(e,R,d,i)}};aG.snapTo=function(d,E,b){b=b||10;d=[][bt](d);var e=d.length;while(e--){if(an.abs(d[e]-E)&lt;=b){return d[e]}}return E};aG.setWindow=function(b){aN=b;Z=aN.document};var a6=function(E){if(aG.vml){var b=/^\s+|\s+$/g;var S;try{var bF=new ActiveXObject("htmlfile");bF.write("&lt;body&gt;");bF.close();S=bF.body}catch(bG){S=createPopup().document.body}var d=S.createTextRange();a6=ay(function(i){try{S.style.color=bA(i)[bp](b,aM);var bH=d.queryCommandValue("ForeColor");bH=((bH&amp;255)&lt;&lt;16)|(bH&amp;65280)|((bH&amp;16711680)&gt;&gt;&gt;16);return"#"+("000000"+bH[aX](16)).slice(-6)}catch(bI){return"none"}})}else{var R=Z.createElement("i");R.title="Rapha\xebl Colour Picker";R.style.display="none";Z.body[bh](R);a6=ay(function(e){R.style.color=e;return Z.defaultView.getComputedStyle(R,aM).getPropertyValue("color")})}return a6(E)},aA=function(){return"hsb("+[this.h,this.s,this.b]+")"},L=function(){return"hsl("+[this.h,this.s,this.l]+")"},A=function(){return this.hex};aG.hsb2rgb=function(i,e,d){if(aG.is(i,"object")&amp;&amp;"h" in i&amp;&amp;"s" in i&amp;&amp;"b" in i){d=i.b;e=i.s;i=i.h}return aG.hsl2rgb(i,e,d/2)};aG.hsl2rgb=function(S,bM,e){if(aG.is(S,"object")&amp;&amp;"h" in S&amp;&amp;"s" in S&amp;&amp;"l" in S){e=S.l;bM=S.s;S=S.h}if(S&gt;1||bM&gt;1||e&gt;1){S/=360;bM/=100;e/=100}var bJ={},bG=["r","g","b"],bF,bI,R,d,bH,bK;if(!bM){bJ={r:e,g:e,b:e}}else{if(e&lt;0.5){bF=e*(1+bM)}else{bF=e+bM-e*bM}bI=2*e-bF;for(var E=0,bL=bG.length;E&lt;bL;E++){R=S+1/3*-(E-1);R&lt;0&amp;&amp;R++;R&gt;1&amp;&amp;R--;if(R*6&lt;1){bJ[bG[E]]=bI+(bF-bI)*6*R}else{if(R*2&lt;1){bJ[bG[E]]=bF}else{if(R*3&lt;2){bJ[bG[E]]=bI+(bF-bI)*(2/3-R)*6}else{bJ[bG[E]]=bI}}}}}bJ.r*=255;bJ.g*=255;bJ.b*=255;d=(~~bJ.r)[aX](16);bH=(~~bJ.g)[aX](16);bK=(~~bJ.b)[aX](16);d=d[bp](bx,"0");bH=bH[bp](bx,"0");bK=bK[bp](bx,"0");bJ.hex="#"+d+bH+bK;bJ.toString=A;return bJ};aG.rgb2hsb=function(b,d,bF){if(d==null&amp;&amp;aG.is(b,"object")&amp;&amp;"r" in b&amp;&amp;"g" in b&amp;&amp;"b" in b){bF=b.b;d=b.g;b=b.r}if(d==null&amp;&amp;aG.is(b,ae)){var bH=aG.getRGB(b);b=bH.r;d=bH.g;bF=bH.b}if(b&gt;1||d&gt;1||bF&gt;1){b/=255;d/=255;bF/=255}var S=l(b,d,bF),e=bf(b,d,bF),E,i,R=S;if(e==S){return{h:0,s:0,b:S,toString:aA}}else{var bG=(S-e);i=bG/S;if(b==S){E=(d-bF)/bG}else{if(d==S){E=2+((bF-b)/bG)}else{E=4+((b-d)/bG)}}E/=6;E&lt;0&amp;&amp;E++;E&gt;1&amp;&amp;E--}return{h:E,s:i,b:R,toString:aA}};aG.rgb2hsl=function(d,e,S){if(e==null&amp;&amp;aG.is(d,"object")&amp;&amp;"r" in d&amp;&amp;"g" in d&amp;&amp;"b" in d){S=d.b;e=d.g;d=d.r}if(e==null&amp;&amp;aG.is(d,ae)){var bI=aG.getRGB(d);d=bI.r;e=bI.g;S=bI.b}if(d&gt;1||e&gt;1||S&gt;1){d/=255;e/=255;S/=255}var R=l(d,e,S),i=bf(d,e,S),E,bH,b=(R+i)/2,bG;if(i==R){bG={h:0,s:0,l:b}}else{var bF=R-i;bH=b&lt;0.5?bF/(R+i):bF/(2-R-i);if(d==R){E=(e-S)/bF}else{if(e==R){E=2+(S-d)/bF}else{E=4+(d-e)/bF}}E/=6;E&lt;0&amp;&amp;E++;E&gt;1&amp;&amp;E--;bG={h:E,s:bH,l:b}}bG.toString=L;return bG};aG._path2string=function(){return this.join(",")[bp](a7,"$1")};function ay(i,d,b){function e(){var E=Array[bC].slice.call(arguments,0),S=E[aT]("\u25ba"),R=e.cache=e.cache||{},bF=e.count=e.count||[];if(R[af](S)){return b?b(R[S]):R[S]}bF[r]&gt;=1000&amp;&amp;delete R[bF.shift()];bF[j](S);R[S]=i[bz](d,E);return b?b(R[S]):R[S]}return e}aG.getRGB=ay(function(e){if(!e||!!((e=bA(e)).indexOf("-")+1)){return{r:-1,g:-1,b:-1,hex:"none",error:1}}if(e=="none"){return{r:-1,g:-1,b:-1,hex:"none"}}!(m[af](e.substring(0,2))||e.charAt()=="#")&amp;&amp;(e=a6(e));var bF,i,E,bI,S,bJ,bG=e.match(F);if(bG){if(bG[2]){bI=Q(bG[2].substring(5),16);E=Q(bG[2].substring(3,5),16);i=Q(bG[2].substring(1,3),16)}if(bG[3]){bI=Q((bJ=bG[3].charAt(3))+bJ,16);E=Q((bJ=bG[3].charAt(2))+bJ,16);i=Q((bJ=bG[3].charAt(1))+bJ,16)}if(bG[4]){bG=bG[4][H](ba);i=ai(bG[0]);E=ai(bG[1]);bI=ai(bG[2]);S=ai(bG[3])}if(bG[5]){bG=bG[5][H](ba);i=ai(bG[0])*2.55;E=ai(bG[1])*2.55;bI=ai(bG[2])*2.55;S=ai(bG[3])}if(bG[6]){bG=bG[6][H](ba);i=ai(bG[0]);E=ai(bG[1]);bI=ai(bG[2]);(bG[0].slice(-3)=="deg"||bG[0].slice(-1)=="\xb0")&amp;&amp;(i/=360);return aG.hsb2rgb(i,E,bI)}if(bG[7]){bG=bG[7][H](ba);i=ai(bG[0])*2.55;E=ai(bG[1])*2.55;bI=ai(bG[2])*2.55;(bG[0].slice(-3)=="deg"||bG[0].slice(-1)=="\xb0")&amp;&amp;(i/=360*2.55);return aG.hsb2rgb(i,E,bI)}if(bG[8]){bG=bG[8][H](ba);i=ai(bG[0]);E=ai(bG[1]);bI=ai(bG[2]);(bG[0].slice(-3)=="deg"||bG[0].slice(-1)=="\xb0")&amp;&amp;(i/=360);return aG.hsl2rgb(i,E,bI)}if(bG[9]){bG=bG[9][H](ba);i=ai(bG[0])*2.55;E=ai(bG[1])*2.55;bI=ai(bG[2])*2.55;(bG[0].slice(-3)=="deg"||bG[0].slice(-1)=="\xb0")&amp;&amp;(i/=360*2.55);return aG.hsl2rgb(i,E,bI)}bG={r:i,g:E,b:bI};var d=(~~i)[aX](16),R=(~~E)[aX](16),bH=(~~bI)[aX](16);d=d[bp](bx,"0");R=R[bp](bx,"0");bH=bH[bp](bx,"0");bG.hex="#"+d+R+bH;isFinite(ai(S))&amp;&amp;(bG.o=S);return bG}return{r:-1,g:-1,b:-1,hex:"none",error:1}},aG);aG.getColor=function(d){var e=this.getColor.start=this.getColor.start||{h:0,s:1,b:d||0.75},b=this.hsb2rgb(e.h,e.s,e.b);e.h+=0.075;if(e.h&gt;1){e.h=0;e.s-=0.2;e.s&lt;=0&amp;&amp;(this.getColor.start={h:0,s:1,b:e.b})}return b.hex};aG.getColor.reset=function(){delete this.start};aG.parsePathString=ay(function(b){if(!b){return null}var e={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},d=[];if(aG.is(b,a4)&amp;&amp;aG.is(b[0],a4)){d=aP(b)}if(!d[r]){bA(b)[bp](aO,function(E,i,bF){var S=[],R=bE.call(i);bF[bp](aE,function(bH,bG){bG&amp;&amp;S[j](+bG)});if(R=="m"&amp;&amp;S[r]&gt;2){d[j]([i][bt](S.splice(0,2)));R="l";i=i=="m"?"l":"L"}while(S[r]&gt;=e[R]){d[j]([i][bt](S.splice(0,e[R])));if(!e[R]){break}}})}d[aX]=aG._path2string;return d});aG.findDotsAtSegment=function(d,b,bS,bQ,S,E,bG,bF,bM){var bK=1-bM,bJ=bi(bK,3)*d+bi(bK,2)*3*bM*bS+bK*3*bM*bM*S+bi(bM,3)*bG,bH=bi(bK,3)*b+bi(bK,2)*3*bM*bQ+bK*3*bM*bM*E+bi(bM,3)*bF,bO=d+2*bM*(bS-d)+bM*bM*(S-2*bS+d),bN=b+2*bM*(bQ-b)+bM*bM*(E-2*bQ+b),bR=bS+2*bM*(S-bS)+bM*bM*(bG-2*S+bS),bP=bQ+2*bM*(E-bQ)+bM*bM*(bF-2*E+bQ),bL=(1-bM)*d+bM*bS,bI=(1-bM)*b+bM*bQ,i=(1-bM)*S+bM*bG,e=(1-bM)*E+bM*bF,R=(90-an.atan((bO-bR)/(bN-bP))*180/an.PI);(bO&gt;bR||bN&lt;bP)&amp;&amp;(R+=180);return{x:bJ,y:bH,m:{x:bO,y:bN},n:{x:bR,y:bP},start:{x:bL,y:bI},end:{x:i,y:e},alpha:R}};var ah=ay(function(bJ){if(!bJ){return{x:0,y:0,width:0,height:0}}bJ=U(bJ);var bG=0,bF=0,E=[],d=[],e;for(var R=0,bI=bJ[r];R&lt;bI;R++){e=bJ[R];if(e[0]=="M"){bG=e[1];bF=e[2];E[j](bG);d[j](bF)}else{var S=a3(bG,bF,e[1],e[2],e[3],e[4],e[5],e[6]);E=E[bt](S.min.x,S.max.x);d=d[bt](S.min.y,S.max.y);bG=e[5];bF=e[6]}}var b=bf[bz](0,E),bH=bf[bz](0,d);return{x:b,y:bH,width:l[bz](0,E)-b,height:l[bz](0,d)-bH}}),aP=function(S){var e=[];if(!aG.is(S,a4)||!aG.is(S&amp;&amp;S[0],a4)){S=aG.parsePathString(S)}for(var d=0,E=S[r];d&lt;E;d++){e[d]=[];for(var b=0,R=S[d][r];b&lt;R;b++){e[d][b]=S[d][b]}}e[aX]=aG._path2string;return e},ar=ay(function(E){if(!aG.is(E,a4)||!aG.is(E&amp;&amp;E[0],a4)){E=aG.parsePathString(E)}var bI=[],bK=0,bJ=0,bN=0,bM=0,e=0;if(E[0][0]=="M"){bK=E[0][1];bJ=E[0][2];bN=bK;bM=bJ;e++;bI[j](["M",bK,bJ])}for(var bF=e,bO=E[r];bF&lt;bO;bF++){var b=bI[bF]=[],bL=E[bF];if(bL[0]!=bE.call(bL[0])){b[0]=bE.call(bL[0]);switch(b[0]){case"a":b[1]=bL[1];b[2]=bL[2];b[3]=bL[3];b[4]=bL[4];b[5]=bL[5];b[6]=+(bL[6]-bK).toFixed(3);b[7]=+(bL[7]-bJ).toFixed(3);break;case"v":b[1]=+(bL[1]-bJ).toFixed(3);break;case"m":bN=bL[1];bM=bL[2];default:for(var S=1,bG=bL[r];S&lt;bG;S++){b[S]=+(bL[S]-((S%2)?bK:bJ)).toFixed(3)}}}else{b=bI[bF]=[];if(bL[0]=="m"){bN=bL[1]+bK;bM=bL[2]+bJ}for(var R=0,d=bL[r];R&lt;d;R++){bI[bF][R]=bL[R]}}var bH=bI[bF][r];switch(bI[bF][0]){case"z":bK=bN;bJ=bM;break;case"h":bK+=+bI[bF][bH-1];break;case"v":bJ+=+bI[bF][bH-1];break;default:bK+=+bI[bF][bH-2];bJ+=+bI[bF][bH-1]}}bI[aX]=aG._path2string;return bI},0,aP),x=ay(function(E){if(!aG.is(E,a4)||!aG.is(E&amp;&amp;E[0],a4)){E=aG.parsePathString(E)}var bH=[],bJ=0,bI=0,bM=0,bL=0,e=0;if(E[0][0]=="M"){bJ=+E[0][1];bI=+E[0][2];bM=bJ;bL=bI;e++;bH[0]=["M",bJ,bI]}for(var bF=e,bN=E[r];bF&lt;bN;bF++){var b=bH[bF]=[],bK=E[bF];if(bK[0]!=bl.call(bK[0])){b[0]=bl.call(bK[0]);switch(b[0]){case"A":b[1]=bK[1];b[2]=bK[2];b[3]=bK[3];b[4]=bK[4];b[5]=bK[5];b[6]=+(bK[6]+bJ);b[7]=+(bK[7]+bI);break;case"V":b[1]=+bK[1]+bI;break;case"H":b[1]=+bK[1]+bJ;break;case"M":bM=+bK[1]+bJ;bL=+bK[2]+bI;default:for(var S=1,bG=bK[r];S&lt;bG;S++){b[S]=+bK[S]+((S%2)?bJ:bI)}}}else{for(var R=0,d=bK[r];R&lt;d;R++){bH[bF][R]=bK[R]}}switch(b[0]){case"Z":bJ=bM;bI=bL;break;case"H":bJ=b[1];break;case"V":bI=b[1];break;case"M":bM=bH[bF][bH[bF][r]-2];bL=bH[bF][bH[bF][r]-1];default:bJ=bH[bF][bH[bF][r]-2];bI=bH[bF][bH[bF][r]-1]}}bH[aX]=aG._path2string;return bH},null,aP),bB=function(d,i,b,e){return[d,i,b,e,b,e]},bg=function(d,i,S,E,b,e){var R=1/3,bF=2/3;return[R*d+bF*S,R*i+bF*E,R*b+bF*S,R*e+bF*E,b,e]},Y=function(bN,ci,bW,bU,bO,bI,R,bM,ch,bP){var E=an.PI,bT=E*120/180,b=E/180*(+bO||0),b0=[],bX,ce=ay(function(cj,cm,i){var cl=cj*an.cos(i)-cm*an.sin(i),ck=cj*an.sin(i)+cm*an.cos(i);return{x:cl,y:ck}});if(!bP){bX=ce(bN,ci,-b);bN=bX.x;ci=bX.y;bX=ce(bM,ch,-b);bM=bX.x;ch=bX.y;var d=an.cos(E/180*bO),bK=an.sin(E/180*bO),b2=(bN-bM)/2,b1=(ci-ch)/2;var cc=(b2*b2)/(bW*bW)+(b1*b1)/(bU*bU);if(cc&gt;1){cc=an.sqrt(cc);bW=cc*bW;bU=cc*bU}var e=bW*bW,b5=bU*bU,b7=(bI==R?-1:1)*an.sqrt(an.abs((e*b5-e*b1*b1-b5*b2*b2)/(e*b1*b1+b5*b2*b2))),bR=b7*bW*b1/bU+(bN+bM)/2,bQ=b7*-bU*b2/bW+(ci+ch)/2,bH=an.asin(((ci-bQ)/bU).toFixed(9)),bG=an.asin(((ch-bQ)/bU).toFixed(9));bH=bN&lt;bR?E-bH:bH;bG=bM&lt;bR?E-bG:bG;bH&lt;0&amp;&amp;(bH=E*2+bH);bG&lt;0&amp;&amp;(bG=E*2+bG);if(R&amp;&amp;bH&gt;bG){bH=bH-E*2}if(!R&amp;&amp;bG&gt;bH){bG=bG-E*2}}else{bH=bP[0];bG=bP[1];bR=bP[2];bQ=bP[3]}var bL=bG-bH;if(an.abs(bL)&gt;bT){var bS=bG,bV=bM,bJ=ch;bG=bH+bT*(R&amp;&amp;bG&gt;bH?1:-1);bM=bR+bW*an.cos(bG);ch=bQ+bU*an.sin(bG);b0=Y(bM,ch,bW,bU,bO,0,R,bV,bJ,[bG,bS,bR,bQ])}bL=bG-bH;var bF=an.cos(bH),cg=an.sin(bH),S=an.cos(bG),cf=an.sin(bG),b3=an.tan(bL/4),b6=4/3*bW*b3,b4=4/3*bU*b3,cd=[bN,ci],cb=[bN+b6*cg,ci-b4*bF],ca=[bM+b6*cf,ch-b4*S],b8=[bM,ch];cb[0]=2*cd[0]-cb[0];cb[1]=2*cd[1]-cb[1];if(bP){return[cb,ca,b8][bt](b0)}else{b0=[cb,ca,b8][bt](b0)[aT]()[H](",");var bY=[];for(var b9=0,bZ=b0[r];b9&lt;bZ;b9++){bY[b9]=b9%2?ce(b0[b9-1],b0[b9],b).y:ce(b0[b9],b0[b9+1],b).x}return bY}},ab=function(d,b,i,e,bG,bF,S,R,bH){var E=1-bH;return{x:bi(E,3)*d+bi(E,2)*3*bH*i+E*3*bH*bH*bG+bi(bH,3)*S,y:bi(E,3)*b+bi(E,2)*3*bH*e+E*3*bH*bH*bF+bi(bH,3)*R}},a3=ay(function(i,d,R,E,bO,bN,bK,bH){var bM=(bO-2*R+i)-(bK-2*bO+R),bJ=2*(R-i)-2*(bO-R),bG=i-R,bF=(-bJ+an.sqrt(bJ*bJ-4*bM*bG))/2/bM,S=(-bJ-an.sqrt(bJ*bJ-4*bM*bG))/2/bM,bI=[d,bH],bL=[i,bK],e;an.abs(bF)&gt;"1e12"&amp;&amp;(bF=0.5);an.abs(S)&gt;"1e12"&amp;&amp;(S=0.5);if(bF&gt;0&amp;&amp;bF&lt;1){e=ab(i,d,R,E,bO,bN,bK,bH,bF);bL[j](e.x);bI[j](e.y)}if(S&gt;0&amp;&amp;S&lt;1){e=ab(i,d,R,E,bO,bN,bK,bH,S);bL[j](e.x);bI[j](e.y)}bM=(bN-2*E+d)-(bH-2*bN+E);bJ=2*(E-d)-2*(bN-E);bG=d-E;bF=(-bJ+an.sqrt(bJ*bJ-4*bM*bG))/2/bM;S=(-bJ-an.sqrt(bJ*bJ-4*bM*bG))/2/bM;an.abs(bF)&gt;"1e12"&amp;&amp;(bF=0.5);an.abs(S)&gt;"1e12"&amp;&amp;(S=0.5);if(bF&gt;0&amp;&amp;bF&lt;1){e=ab(i,d,R,E,bO,bN,bK,bH,bF);bL[j](e.x);bI[j](e.y)}if(S&gt;0&amp;&amp;S&lt;1){e=ab(i,d,R,E,bO,bN,bK,bH,S);bL[j](e.x);bI[j](e.y)}return{min:{x:bf[bz](0,bL),y:bf[bz](0,bI)},max:{x:l[bz](0,bL),y:l[bz](0,bI)}}}),U=ay(function(bN,bI){var E=x(bN),bJ=bI&amp;&amp;x(bI),bK={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},b={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},S=function(bO,bP){var i,bQ;if(!bO){return["C",bP.x,bP.y,bP.x,bP.y,bP.x,bP.y]}!(bO[0] in {T:1,Q:1})&amp;&amp;(bP.qx=bP.qy=null);switch(bO[0]){case"M":bP.X=bO[1];bP.Y=bO[2];break;case"A":bO=["C"][bt](Y[bz](0,[bP.x,bP.y][bt](bO.slice(1))));break;case"S":i=bP.x+(bP.x-(bP.bx||bP.x));bQ=bP.y+(bP.y-(bP.by||bP.y));bO=["C",i,bQ][bt](bO.slice(1));break;case"T":bP.qx=bP.x+(bP.x-(bP.qx||bP.x));bP.qy=bP.y+(bP.y-(bP.qy||bP.y));bO=["C"][bt](bg(bP.x,bP.y,bP.qx,bP.qy,bO[1],bO[2]));break;case"Q":bP.qx=bO[1];bP.qy=bO[2];bO=["C"][bt](bg(bP.x,bP.y,bO[1],bO[2],bO[3],bO[4]));break;case"L":bO=["C"][bt](bB(bP.x,bP.y,bO[1],bO[2]));break;case"H":bO=["C"][bt](bB(bP.x,bP.y,bO[1],bP.y));break;case"V":bO=["C"][bt](bB(bP.x,bP.y,bP.x,bO[1]));break;case"Z":bO=["C"][bt](bB(bP.x,bP.y,bP.X,bP.Y));break}return bO},d=function(bO,bP){if(bO[bP][r]&gt;7){bO[bP].shift();var bQ=bO[bP];while(bQ[r]){bO.splice(bP++,0,["C"][bt](bQ.splice(0,6)))}bO.splice(bP,1);bL=l(E[r],bJ&amp;&amp;bJ[r]||0)}},e=function(bS,bR,bP,bO,bQ){if(bS&amp;&amp;bR&amp;&amp;bS[bQ][0]=="M"&amp;&amp;bR[bQ][0]!="M"){bR.splice(bQ,0,["M",bO.x,bO.y]);bP.bx=0;bP.by=0;bP.x=bS[bQ][1];bP.y=bS[bQ][2];bL=l(E[r],bJ&amp;&amp;bJ[r]||0)}};for(var bG=0,bL=l(E[r],bJ&amp;&amp;bJ[r]||0);bG&lt;bL;bG++){E[bG]=S(E[bG],bK);d(E,bG);bJ&amp;&amp;(bJ[bG]=S(bJ[bG],b));bJ&amp;&amp;d(bJ,bG);e(E,bJ,bK,b,bG);e(bJ,E,b,bK,bG);var bF=E[bG],bM=bJ&amp;&amp;bJ[bG],R=bF[r],bH=bJ&amp;&amp;bM[r];bK.x=bF[R-2];bK.y=bF[R-1];bK.bx=ai(bF[R-4])||bK.x;bK.by=ai(bF[R-3])||bK.y;b.bx=bJ&amp;&amp;(ai(bM[bH-4])||b.x);b.by=bJ&amp;&amp;(ai(bM[bH-3])||b.y);b.x=bJ&amp;&amp;bM[bH-2];b.y=bJ&amp;&amp;bM[bH-1]}return bJ?[E,bJ]:E},null,aP),v=ay(function(bI){var bH=[];for(var S=0,bJ=bI[r];S&lt;bJ;S++){var b={},bG=bI[S].match(/^([^:]*):?([\d\.]*)/);b.color=aG.getRGB(bG[1]);if(b.color.error){return null}b.color=b.color.hex;bG[2]&amp;&amp;(b.offset=bG[2]+"%");bH[j](b)}for(S=1,bJ=bH[r]-1;S&lt;bJ;S++){if(!bH[S].offset){var e=ai(bH[S-1].offset||0),E=0;for(var R=S+1;R&lt;bJ;R++){if(bH[R].offset){E=bH[R].offset;break}}if(!E){E=100;R=bJ}E=ai(E);var bF=(E-e)/(R-S+1);for(;S&lt;R;S++){e+=bF;bH[S].offset=e+"%"}}}return bH}),aH=function(b,E,e,i){var d;if(aG.is(b,ae)||aG.is(b,"object")){d=aG.is(b,ae)?Z.getElementById(b):b;if(d.tagName){if(E==null){return{container:d,width:d.style.pixelWidth||d.offsetWidth,height:d.style.pixelHeight||d.offsetHeight}}else{return{container:d,width:E,height:e}}}}else{return{container:1,x:b,y:E,width:e,height:i}}},bb=function(b,e){var d=this;for(var i in e){if(e[af](i)&amp;&amp;!(i in b)){switch(typeof e[i]){case"function":(function(E){b[i]=b===d?E:function(){return E[bz](d,arguments)}})(e[i]);break;case"object":b[i]=b[i]||{};bb.call(this,b[i],e[i]);break;default:b[i]=e[i];break}}}},aC=function(b,d){b==d.top&amp;&amp;(d.top=b.prev);b==d.bottom&amp;&amp;(d.bottom=b.next);b.next&amp;&amp;(b.next.prev=b.prev);b.prev&amp;&amp;(b.prev.next=b.next)},ak=function(b,d){if(d.top===b){return}aC(b,d);b.next=null;b.prev=d.top;d.top.next=b;d.top=b},o=function(b,d){if(d.bottom===b){return}aC(b,d);b.next=d.bottom;b.prev=null;d.bottom.prev=b;d.bottom=b},I=function(d,b,e){aC(d,e);b==e.top&amp;&amp;(e.top=d);b.next&amp;&amp;(b.next.prev=d);d.next=b.next;d.prev=b;b.next=d},aJ=function(d,b,e){aC(d,e);b==e.bottom&amp;&amp;(e.bottom=d);b.prev&amp;&amp;(b.prev.next=d);d.prev=b.prev;b.prev=d;d.next=b},y=function(b){return function(){throw new Error("Rapha\xebl: you are calling to method \u201c"+b+"\u201d of removed object")}},aL=/^r(?:\(([^,]+?)\s*,\s*([^\)]+?)\))?/;aG.pathToRelative=ar;if(aG.svg){aW.svgns="http://www.w3.org/2000/svg";aW.xlink="http://www.w3.org/1999/xlink";ac=function(b){return +b+(~~b===b)*0.5};var be=function(e,b){if(b){for(var d in b){if(b[af](d)){e[C](d,bA(b[d]))}}}else{e=Z.createElementNS(aW.svgns,e);e.style.webkitTapHighlightColor="rgba(0,0,0,0)";return e}};aG[aX]=function(){return"Your browser supports SVG.\nYou are running Rapha\xebl "+this.version};var w=function(b,i){var d=be("path");i.canvas&amp;&amp;i.canvas[bh](d);var e=new aR(d,i);e.type="path";am(e,{fill:"none",stroke:"#000",path:b});return e};var g=function(E,bM,b){var bJ="linear",bG=0.5,S=0.5,bO=E.style;bM=bA(bM)[bp](aL,function(bQ,i,bR){bJ="radial";if(i&amp;&amp;bR){bG=ai(i);S=ai(bR);var bP=((S&gt;0.5)*2-1);bi(bG-0.5,2)+bi(S-0.5,2)&gt;0.25&amp;&amp;(S=an.sqrt(0.25-bi(bG-0.5,2))*bP+0.5)&amp;&amp;S!=0.5&amp;&amp;(S=S.toFixed(5)-0.00001*bP)}return aM});bM=bM[H](/\s*\-\s*/);if(bJ=="linear"){var bF=bM.shift();bF=-ai(bF);if(isNaN(bF)){return null}var R=[0,0,an.cos(bF*an.PI/180),an.sin(bF*an.PI/180)],bL=1/(l(an.abs(R[2]),an.abs(R[3]))||1);R[2]*=bL;R[3]*=bL;if(R[2]&lt;0){R[0]=-R[2];R[2]=0}if(R[3]&lt;0){R[1]=-R[3];R[3]=0}}var bI=v(bM);if(!bI){return null}var d=E.getAttribute(a1);d=d.match(/^url\(#(.*)\)$/);d&amp;&amp;b.defs.removeChild(Z.getElementById(d[1]));var e=be(bJ+"Gradient");e.id="r"+(aG._id++)[aX](36);be(e,bJ=="radial"?{fx:bG,fy:S}:{x1:R[0],y1:R[1],x2:R[2],y2:R[3]});b.defs[bh](e);for(var bH=0,bN=bI[r];bH&lt;bN;bH++){var bK=be("stop");be(bK,{offset:bI[bH].offset?bI[bH].offset:!bH?"0%":"100%","stop-color":bI[bH].color||"#fff"});e[bh](bK)}be(E,{fill:"url(#"+e.id+")",opacity:1,"fill-opacity":1});bO.fill=aM;bO.opacity=1;bO.fillOpacity=1;return 1};var aa=function(d){var b=d.getBBox();be(d.pattern,{patternTransform:aG.format("translate({0},{1})",b.x,b.y)})};var am=function(bL,bU){var bO={"":[0],none:[0],"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},bQ=bL.node,bM=bL.attrs,bI=bL.rotate(),S=function(b1,b0){b0=bO[bE.call(b0)];if(b0){var bY=b1.attrs["stroke-width"]||"1",bW={round:bY,square:bY,butt:0}[b1.attrs["stroke-linecap"]||bU["stroke-linecap"]]||0,bZ=[];var bX=b0[r];while(bX--){bZ[bX]=b0[bX]*bY+((bX%2)?1:-1)*bW}be(bQ,{"stroke-dasharray":bZ[aT](",")})}};bU[af]("rotation")&amp;&amp;(bI=bU.rotation);var bH=bA(bI)[H](a);if(!(bH.length-1)){bH=null}else{bH[1]=+bH[1];bH[2]=+bH[2]}ai(bI)&amp;&amp;bL.rotate(0,true);for(var bP in bU){if(bU[af](bP)){if(!p[af](bP)){continue}var bN=bU[bP];bM[bP]=bN;switch(bP){case"blur":bL.blur(bN);break;case"rotation":bL.rotate(bN,true);break;case"href":case"title":case"target":var bS=bQ.parentNode;if(bE.call(bS.tagName)!="a"){var E=be("a");bS.insertBefore(E,bQ);E[bh](bQ);bS=E}if(bP=="target"&amp;&amp;bN=="blank"){bS.setAttributeNS(bL.paper.xlink,"show","new")}else{bS.setAttributeNS(bL.paper.xlink,bP,bN)}break;case"cursor":bQ.style.cursor=bN;break;case"clip-rect":var d=bA(bN)[H](a);if(d[r]==4){bL.clip&amp;&amp;bL.clip.parentNode.parentNode.removeChild(bL.clip.parentNode);var e=be("clipPath"),bR=be("rect");e.id="r"+(aG._id++)[aX](36);be(bR,{x:d[0],y:d[1],width:d[2],height:d[3]});e[bh](bR);bL.paper.defs[bh](e);be(bQ,{"clip-path":"url(#"+e.id+")"});bL.clip=bR}if(!bN){var bT=Z.getElementById(bQ.getAttribute("clip-path")[bp](/(^url\(#|\)$)/g,aM));bT&amp;&amp;bT.parentNode.removeChild(bT);be(bQ,{"clip-path":aM});delete bL.clip}break;case"path":if(bL.type=="path"){be(bQ,{d:bN?bM.path=x(bN):"M0,0"})}break;case"width":bQ[C](bP,bN);if(bM.fx){bP="x";bN=bM.x}else{break}case"x":if(bM.fx){bN=-bM.x-(bM.width||0)}case"rx":if(bP=="rx"&amp;&amp;bL.type=="rect"){break}case"cx":bH&amp;&amp;(bP=="x"||bP=="cx")&amp;&amp;(bH[1]+=bN-bM[bP]);bQ[C](bP,bN);bL.pattern&amp;&amp;aa(bL);break;case"height":bQ[C](bP,bN);if(bM.fy){bP="y";bN=bM.y}else{break}case"y":if(bM.fy){bN=-bM.y-(bM.height||0)}case"ry":if(bP=="ry"&amp;&amp;bL.type=="rect"){break}case"cy":bH&amp;&amp;(bP=="y"||bP=="cy")&amp;&amp;(bH[2]+=bN-bM[bP]);bQ[C](bP,bN);bL.pattern&amp;&amp;aa(bL);break;case"r":if(bL.type=="rect"){be(bQ,{rx:bN,ry:bN})}else{bQ[C](bP,bN)}break;case"src":if(bL.type=="image"){bQ.setAttributeNS(bL.paper.xlink,"href",bN)}break;case"stroke-width":bQ.style.strokeWidth=bN;bQ[C](bP,bN);if(bM["stroke-dasharray"]){S(bL,bM["stroke-dasharray"])}break;case"stroke-dasharray":S(bL,bN);break;case"translation":var bF=bA(bN)[H](a);bF[0]=+bF[0]||0;bF[1]=+bF[1]||0;if(bH){bH[1]+=bF[0];bH[2]+=bF[1]}z.call(bL,bF[0],bF[1]);break;case"scale":bF=bA(bN)[H](a);bL.scale(+bF[0]||1,+bF[1]||+bF[0]||1,isNaN(ai(bF[2]))?null:+bF[2],isNaN(ai(bF[3]))?null:+bF[3]);break;case a1:var R=bA(bN).match(h);if(R){e=be("pattern");var bK=be("image");e.id="r"+(aG._id++)[aX](36);be(e,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1});be(bK,{x:0,y:0});bK.setAttributeNS(bL.paper.xlink,"href",R[1]);e[bh](bK);var bV=Z.createElement("img");bV.style.cssText="position:absolute;left:-9999em;top-9999em";bV.onload=function(){be(e,{width:this.offsetWidth,height:this.offsetHeight});be(bK,{width:this.offsetWidth,height:this.offsetHeight});Z.body.removeChild(this);bL.paper.safari()};Z.body[bh](bV);bV.src=R[1];bL.paper.defs[bh](e);bQ.style.fill="url(#"+e.id+")";be(bQ,{fill:"url(#"+e.id+")"});bL.pattern=e;bL.pattern&amp;&amp;aa(bL);break}var i=aG.getRGB(bN);if(!i.error){delete bU.gradient;delete bM.gradient;!aG.is(bM.opacity,"undefined")&amp;&amp;aG.is(bU.opacity,"undefined")&amp;&amp;be(bQ,{opacity:bM.opacity});!aG.is(bM["fill-opacity"],"undefined")&amp;&amp;aG.is(bU["fill-opacity"],"undefined")&amp;&amp;be(bQ,{"fill-opacity":bM["fill-opacity"]})}else{if((({circle:1,ellipse:1})[af](bL.type)||bA(bN).charAt()!="r")&amp;&amp;g(bQ,bN,bL.paper)){bM.gradient=bN;bM.fill="none";break}}i[af]("o")&amp;&amp;be(bQ,{"fill-opacity":i.o&gt;1?i.o/100:i.o});case"stroke":i=aG.getRGB(bN);bQ[C](bP,i.hex);bP=="stroke"&amp;&amp;i[af]("o")&amp;&amp;be(bQ,{"stroke-opacity":i.o&gt;1?i.o/100:i.o});break;case"gradient":(({circle:1,ellipse:1})[af](bL.type)||bA(bN).charAt()!="r")&amp;&amp;g(bQ,bN,bL.paper);break;case"opacity":case"fill-opacity":if(bM.gradient){var b=Z.getElementById(bQ.getAttribute(a1)[bp](/^url\(#|\)$/g,aM));if(b){var bG=b.getElementsByTagName("stop");bG[bG[r]-1][C]("stop-opacity",bN)}break}default:bP=="font-size"&amp;&amp;(bN=Q(bN,10)+"px");var bJ=bP[bp](/(\-.)/g,function(bW){return bl.call(bW.substring(1))});bQ.style[bJ]=bN;bQ[C](bP,bN);break}}}O(bL,bU);if(bH){bL.rotate(bH.join(aF))}else{ai(bI)&amp;&amp;bL.rotate(bI,true)}};var n=1.2,O=function(b,E){if(b.type!="text"||!(E[af]("text")||E[af]("font")||E[af]("font-size")||E[af]("x")||E[af]("y"))){return}var bH=b.attrs,d=b.node,bJ=d.firstChild?Q(Z.defaultView.getComputedStyle(d.firstChild,aM).getPropertyValue("font-size"),10):10;if(E[af]("text")){bH.text=E.text;while(d.firstChild){d.removeChild(d.firstChild)}var e=bA(E.text)[H]("\n");for(var R=0,bI=e[r];R&lt;bI;R++){if(e[R]){var bF=be("tspan");R&amp;&amp;be(bF,{dy:bJ*n,x:bH.x});bF[bh](Z.createTextNode(e[R]));d[bh](bF)}}}else{e=d.getElementsByTagName("tspan");for(R=0,bI=e[r];R&lt;bI;R++){R&amp;&amp;be(e[R],{dy:bJ*n,x:bH.x})}}be(d,{y:bH.y});var S=b.getBBox(),bG=bH.y-(S.y+S.height/2);bG&amp;&amp;isFinite(bG)&amp;&amp;be(d,{y:bH.y+bG})},aR=function(d,b){var i=0,e=0;this[0]=d;this.id=aG._oid++;this.node=d;d.raphael=this;this.paper=b;this.attrs=this.attrs||{};this.transformations=[];this._={tx:0,ty:0,rt:{deg:0,cx:0,cy:0},sx:1,sy:1};!b.bottom&amp;&amp;(b.bottom=this);this.prev=b.top;b.top&amp;&amp;(b.top.next=this);b.top=this;this.next=null};var a9=aR[bC];aR[bC].rotate=function(d,b,i){if(this.removed){return this}if(d==null){if(this._.rt.cx){return[this._.rt.deg,this._.rt.cx,this._.rt.cy][aT](aF)}return this._.rt.deg}var e=this.getBBox();d=bA(d)[H](a);if(d[r]-1){b=ai(d[1]);i=ai(d[2])}d=ai(d[0]);if(b!=null&amp;&amp;b!==false){this._.rt.deg=d}else{this._.rt.deg+=d}(i==null)&amp;&amp;(b=null);this._.rt.cx=b;this._.rt.cy=i;b=b==null?e.x+e.width/2:b;i=i==null?e.y+e.height/2:i;if(this._.rt.deg){this.transformations[0]=aG.format("rotate({0} {1} {2})",this._.rt.deg,b,i);this.clip&amp;&amp;be(this.clip,{transform:aG.format("rotate({0} {1} {2})",-this._.rt.deg,b,i)})}else{this.transformations[0]=aM;this.clip&amp;&amp;be(this.clip,{transform:aM})}be(this.node,{transform:this.transformations[aT](aF)});return this};aR[bC].hide=function(){!this.removed&amp;&amp;(this.node.style.display="none");return this};aR[bC].show=function(){!this.removed&amp;&amp;(this.node.style.display="");return this};aR[bC].remove=function(){if(this.removed){return}aC(this,this.paper);this.node.parentNode.removeChild(this.node);for(var b in this){delete this[b]}this.removed=true};aR[bC].getBBox=function(){if(this.removed){return this}if(this.type=="path"){return ah(this.attrs.path)}if(this.node.style.display=="none"){this.show();var d=true}var bF={};try{bF=this.node.getBBox()}catch(R){}finally{bF=bF||{}}if(this.type=="text"){bF={x:bF.x,y:Infinity,width:0,height:0};for(var b=0,E=this.node.getNumberOfChars();b&lt;E;b++){var S=this.node.getExtentOfChar(b);(S.y&lt;bF.y)&amp;&amp;(bF.y=S.y);(S.y+S.height-bF.y&gt;bF.height)&amp;&amp;(bF.height=S.y+S.height-bF.y);(S.x+S.width-bF.x&gt;bF.width)&amp;&amp;(bF.width=S.x+S.width-bF.x)}}d&amp;&amp;this.hide();return bF};aR[bC].attr=function(b,bH){if(this.removed){return this}if(b==null){var bG={};for(var R in this.attrs){if(this.attrs[af](R)){bG[R]=this.attrs[R]}}this._.rt.deg&amp;&amp;(bG.rotation=this.rotate());(this._.sx!=1||this._.sy!=1)&amp;&amp;(bG.scale=this.scale());bG.gradient&amp;&amp;bG.fill=="none"&amp;&amp;(bG.fill=bG.gradient)&amp;&amp;delete bG.gradient;return bG}if(bH==null&amp;&amp;aG.is(b,ae)){if(b=="translation"){return z.call(this)}if(b=="rotation"){return this.rotate()}if(b=="scale"){return this.scale()}if(b==a1&amp;&amp;this.attrs.fill=="none"&amp;&amp;this.attrs.gradient){return this.attrs.gradient}return this.attrs[b]}if(bH==null&amp;&amp;aG.is(b,a4)){var bJ={};for(var E=0,S=b.length;E&lt;S;E++){bJ[b[E]]=this.attr(b[E])}return bJ}if(bH!=null){var d={};d[b]=bH}else{if(b!=null&amp;&amp;aG.is(b,"object")){d=b}}for(var bI in this.paper.customAttributes){if(this.paper.customAttributes[af](bI)&amp;&amp;d[af](bI)&amp;&amp;aG.is(this.paper.customAttributes[bI],"function")){var bF=this.paper.customAttributes[bI].apply(this,[][bt](d[bI]));this.attrs[bI]=d[bI];for(var e in bF){if(bF[af](e)){d[e]=bF[e]}}}}am(this,d);return this};aR[bC].toFront=function(){if(this.removed){return this}this.node.parentNode[bh](this.node);var b=this.paper;b.top!=this&amp;&amp;ak(this,b);return this};aR[bC].toBack=function(){if(this.removed){return this}if(this.node.parentNode.firstChild!=this.node){this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild);o(this,this.paper);var b=this.paper}return this};aR[bC].insertAfter=function(b){if(this.removed){return this}var d=b.node||b[b.length-1].node;if(d.nextSibling){d.parentNode.insertBefore(this.node,d.nextSibling)}else{d.parentNode[bh](this.node)}I(this,b,this.paper);return this};aR[bC].insertBefore=function(b){if(this.removed){return this}var d=b.node||b[0].node;d.parentNode.insertBefore(this.node,d);aJ(this,b,this.paper);return this};aR[bC].blur=function(d){var b=this;if(+d!==0){var e=be("filter"),i=be("feGaussianBlur");b.attrs.blur=d;e.id="r"+(aG._id++)[aX](36);be(i,{stdDeviation:+d||1.5});e.appendChild(i);b.paper.defs.appendChild(e);b._blur=e;be(b.node,{filter:"url(#"+e.id+")"})}else{if(b._blur){b._blur.parentNode.removeChild(b._blur);delete b._blur;delete b.attrs.blur}b.node.removeAttribute("filter")}};var ad=function(d,b,R,E){var i=be("circle");d.canvas&amp;&amp;d.canvas[bh](i);var e=new aR(i,d);e.attrs={cx:b,cy:R,r:E,fill:"none",stroke:"#000"};e.type="circle";be(i,e.attrs);return e},a8=function(e,b,bF,d,R,S){var E=be("rect");e.canvas&amp;&amp;e.canvas[bh](E);var i=new aR(E,e);i.attrs={x:b,y:bF,width:d,height:R,r:S||0,rx:S||0,ry:S||0,fill:"none",stroke:"#000"};i.type="rect";be(E,i.attrs);return i},ax=function(d,b,S,R,E){var i=be("ellipse");d.canvas&amp;&amp;d.canvas[bh](i);var e=new aR(i,d);e.attrs={cx:b,cy:S,rx:R,ry:E,fill:"none",stroke:"#000"};e.type="ellipse";be(i,e.attrs);return e},u=function(e,S,b,bF,d,R){var E=be("image");be(E,{x:b,y:bF,width:d,height:R,preserveAspectRatio:"none"});E.setAttributeNS(e.xlink,"href",S);e.canvas&amp;&amp;e.canvas[bh](E);var i=new aR(E,e);i.attrs={x:b,y:bF,width:d,height:R,src:S};i.type="image";return i},aj=function(d,b,R,E){var i=be("text");be(i,{x:b,y:R,"text-anchor":"middle"});d.canvas&amp;&amp;d.canvas[bh](i);var e=new aR(i,d);e.attrs={x:b,y:R,"text-anchor":"middle",text:E,font:p.font,stroke:"none",fill:"#000"};e.type="text";am(e,e.attrs);return e},by=function(d,b){this.width=d||this.width;this.height=b||this.height;this.canvas[C]("width",this.width);this.canvas[C]("height",this.height);return this},D=function(){var i=aH[bz](0,arguments),e=i&amp;&amp;i.container,d=i.x,S=i.y,E=i.width,b=i.height;if(!e){throw new Error("SVG container not found.")}var R=be("svg");d=d||0;S=S||0;E=E||512;b=b||342;be(R,{xmlns:"http://www.w3.org/2000/svg",version:1.1,width:E,height:b});if(e==1){R.style.cssText="position:absolute;left:"+d+"px;top:"+S+"px";Z.body[bh](R)}else{if(e.firstChild){e.insertBefore(R,e.firstChild)}else{e[bh](R)}}e=new bw;e.width=E;e.height=b;e.canvas=R;bb.call(e,e,aG.fn);e.clear();return e};aW.clear=function(){var b=this.canvas;while(b.firstChild){b.removeChild(b.firstChild)}this.bottom=this.top=null;(this.desc=be("desc"))[bh](Z.createTextNode("Created with Rapha\xebl"));b[bh](this.desc);b[bh](this.defs=be("defs"))};aW.remove=function(){this.canvas.parentNode&amp;&amp;this.canvas.parentNode.removeChild(this.canvas);for(var b in this){this[b]=y(b)}}}if(aG.vml){var M={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},aK=/([clmz]),?([^clmz]*)/gi,bu=/ progid:\S+Blur\([^\)]+\)/g,bD=/-?[^,\s-]+/g,aU=1000+aF+1000,t=10,s={path:1,rect:1},bd=function(bJ){var bG=/[ahqstv]/ig,e=x;bA(bJ).match(bG)&amp;&amp;(e=U);bG=/[clmz]/g;if(e==x&amp;&amp;!bA(bJ).match(bG)){var bF=bA(bJ)[bp](aK,function(bM,bO,bK){var bN=[],i=bE.call(bO)=="m",bL=M[bO];bK[bp](bD,function(bP){if(i&amp;&amp;bN[r]==2){bL+=bN+M[bO=="m"?"l":"L"];bN=[]}bN[j](ac(bP*t))});return bL+bN});return bF}var bH=e(bJ),d,b;bF=[];for(var R=0,bI=bH[r];R&lt;bI;R++){d=bH[R];b=bE.call(bH[R][0]);b=="z"&amp;&amp;(b="x");for(var E=1,S=d[r];E&lt;S;E++){b+=ac(d[E]*t)+(E!=S-1?",":aM)}bF[j](b)}return bF[aT](aF)};aG[aX]=function(){return"Your browser doesn\u2019t support SVG. Falling down to VML.\nYou are running Rapha\xebl "+this.version};w=function(e,d){var R=aw("group");R.style.cssText="position:absolute;left:0;top:0;width:"+d.width+"px;height:"+d.height+"px";R.coordsize=d.coordsize;R.coordorigin=d.coordorigin;var E=aw("shape"),i=E.style;i.width=d.width+"px";i.height=d.height+"px";E.coordsize=aU;E.coordorigin=d.coordorigin;R[bh](E);var S=new aR(E,R,d),b={fill:"none",stroke:"#000"};e&amp;&amp;(b.path=e);S.type="path";S.path=[];S.Path=aM;am(S,b);d.canvas[bh](R);return S};am=function(bH,bO){bH.attrs=bH.attrs||{};var bL=bH.node,bP=bH.attrs,S=bL.style,i,bN=(bO.x!=bP.x||bO.y!=bP.y||bO.width!=bP.width||bO.height!=bP.height||bO.r!=bP.r)&amp;&amp;bH.type=="rect",bT=bH;for(var bF in bO){if(bO[af](bF)){bP[bF]=bO[bF]}}if(bN){bP.path=aq(bP.x,bP.y,bP.width,bP.height,bP.r);bH.X=bP.x;bH.Y=bP.y;bH.W=bP.width;bH.H=bP.height}bO.href&amp;&amp;(bL.href=bO.href);bO.title&amp;&amp;(bL.title=bO.title);bO.target&amp;&amp;(bL.target=bO.target);bO.cursor&amp;&amp;(S.cursor=bO.cursor);"blur" in bO&amp;&amp;bH.blur(bO.blur);if(bO.path&amp;&amp;bH.type=="path"||bN){bL.path=bd(bP.path)}if(bO.rotation!=null){bH.rotate(bO.rotation,true)}if(bO.translation){i=bA(bO.translation)[H](a);z.call(bH,i[0],i[1]);if(bH._.rt.cx!=null){bH._.rt.cx+=+i[0];bH._.rt.cy+=+i[1];bH.setBox(bH.attrs,i[0],i[1])}}if(bO.scale){i=bA(bO.scale)[H](a);bH.scale(+i[0]||1,+i[1]||+i[0]||1,+i[2]||null,+i[3]||null)}if("clip-rect" in bO){var b=bA(bO["clip-rect"])[H](a);if(b[r]==4){b[2]=+b[2]+(+b[0]);b[3]=+b[3]+(+b[1]);var bG=bL.clipRect||Z.createElement("div"),bS=bG.style,R=bL.parentNode;bS.clip=aG.format("rect({1}px {2}px {3}px {0}px)",b);if(!bL.clipRect){bS.position="absolute";bS.top=0;bS.left=0;bS.width=bH.paper.width+"px";bS.height=bH.paper.height+"px";R.parentNode.insertBefore(bG,R);bG[bh](R);bL.clipRect=bG}}if(!bO["clip-rect"]){bL.clipRect&amp;&amp;(bL.clipRect.style.clip=aM)}}if(bH.type=="image"&amp;&amp;bO.src){bL.src=bO.src}if(bH.type=="image"&amp;&amp;bO.opacity){bL.filterOpacity=a2+".Alpha(opacity="+(bO.opacity*100)+")";S.filter=(bL.filterMatrix||aM)+(bL.filterOpacity||aM)}bO.font&amp;&amp;(S.font=bO.font);bO["font-family"]&amp;&amp;(S.fontFamily='"'+bO["font-family"][H](",")[0][bp](/^['"]+|['"]+$/g,aM)+'"');bO["font-size"]&amp;&amp;(S.fontSize=bO["font-size"]);bO["font-weight"]&amp;&amp;(S.fontWeight=bO["font-weight"]);bO["font-style"]&amp;&amp;(S.fontStyle=bO["font-style"]);if(bO.opacity!=null||bO["stroke-width"]!=null||bO.fill!=null||bO.stroke!=null||bO["stroke-width"]!=null||bO["stroke-opacity"]!=null||bO["fill-opacity"]!=null||bO["stroke-dasharray"]!=null||bO["stroke-miterlimit"]!=null||bO["stroke-linejoin"]!=null||bO["stroke-linecap"]!=null){bL=bH.shape||bL;var bM=(bL.getElementsByTagName(a1)&amp;&amp;bL.getElementsByTagName(a1)[0]),bQ=false;!bM&amp;&amp;(bQ=bM=aw(a1));if("fill-opacity" in bO||"opacity" in bO){var d=((+bP["fill-opacity"]+1||2)-1)*((+bP.opacity+1||2)-1)*((+aG.getRGB(bO.fill).o+1||2)-1);d=bf(l(d,0),1);bM.opacity=d}bO.fill&amp;&amp;(bM.on=true);if(bM.on==null||bO.fill=="none"){bM.on=false}if(bM.on&amp;&amp;bO.fill){var e=bO.fill.match(h);if(e){bM.src=e[1];bM.type="tile"}else{bM.color=aG.getRGB(bO.fill).hex;bM.src=aM;bM.type="solid";if(aG.getRGB(bO.fill).error&amp;&amp;(bT.type in {circle:1,ellipse:1}||bA(bO.fill).charAt()!="r")&amp;&amp;g(bT,bO.fill)){bP.fill="none";bP.gradient=bO.fill}}}bQ&amp;&amp;bL[bh](bM);var E=(bL.getElementsByTagName("stroke")&amp;&amp;bL.getElementsByTagName("stroke")[0]),bR=false;!E&amp;&amp;(bR=E=aw("stroke"));if((bO.stroke&amp;&amp;bO.stroke!="none")||bO["stroke-width"]||bO["stroke-opacity"]!=null||bO["stroke-dasharray"]||bO["stroke-miterlimit"]||bO["stroke-linejoin"]||bO["stroke-linecap"]){E.on=true}(bO.stroke=="none"||E.on==null||bO.stroke==0||bO["stroke-width"]==0)&amp;&amp;(E.on=false);var bK=aG.getRGB(bO.stroke);E.on&amp;&amp;bO.stroke&amp;&amp;(E.color=bK.hex);d=((+bP["stroke-opacity"]+1||2)-1)*((+bP.opacity+1||2)-1)*((+bK.o+1||2)-1);var bI=(ai(bO["stroke-width"])||1)*0.75;d=bf(l(d,0),1);bO["stroke-width"]==null&amp;&amp;(bI=bP["stroke-width"]);bO["stroke-width"]&amp;&amp;(E.weight=bI);bI&amp;&amp;bI&lt;1&amp;&amp;(d*=bI)&amp;&amp;(E.weight=1);E.opacity=d;bO["stroke-linejoin"]&amp;&amp;(E.joinstyle=bO["stroke-linejoin"]||"miter");E.miterlimit=bO["stroke-miterlimit"]||8;bO["stroke-linecap"]&amp;&amp;(E.endcap=bO["stroke-linecap"]=="butt"?"flat":bO["stroke-linecap"]=="square"?"square":"round");if(bO["stroke-dasharray"]){var bJ={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};E.dashstyle=bJ[af](bO["stroke-dasharray"])?bJ[bO["stroke-dasharray"]]:aM}bR&amp;&amp;bL[bh](E)}if(bT.type=="text"){S=bT.paper.span.style;bP.font&amp;&amp;(S.font=bP.font);bP["font-family"]&amp;&amp;(S.fontFamily=bP["font-family"]);bP["font-size"]&amp;&amp;(S.fontSize=bP["font-size"]);bP["font-weight"]&amp;&amp;(S.fontWeight=bP["font-weight"]);bP["font-style"]&amp;&amp;(S.fontStyle=bP["font-style"]);bT.node.string&amp;&amp;(bT.paper.span.innerHTML=bA(bT.node.string)[bp](/&lt;/g,"&amp;#60;")[bp](/&amp;/g,"&amp;#38;")[bp](/\n/g,"&lt;br&gt;"));bT.W=bP.w=bT.paper.span.offsetWidth;bT.H=bP.h=bT.paper.span.offsetHeight;bT.X=bP.x;bT.Y=bP.y+ac(bT.H/2);switch(bP["text-anchor"]){case"start":bT.node.style["v-text-align"]="left";bT.bbx=ac(bT.W/2);break;case"end":bT.node.style["v-text-align"]="right";bT.bbx=-ac(bT.W/2);break;default:bT.node.style["v-text-align"]="center";break}}};g=function(b,bF){b.attrs=b.attrs||{};var bG=b.attrs,bI,R="linear",S=".5 .5";b.attrs.gradient=bF;bF=bA(bF)[bp](aL,function(bK,bL,i){R="radial";if(bL&amp;&amp;i){bL=ai(bL);i=ai(i);bi(bL-0.5,2)+bi(i-0.5,2)&gt;0.25&amp;&amp;(i=an.sqrt(0.25-bi(bL-0.5,2))*((i&gt;0.5)*2-1)+0.5);S=bL+aF+i}return aM});bF=bF[H](/\s*\-\s*/);if(R=="linear"){var d=bF.shift();d=-ai(d);if(isNaN(d)){return null}}var E=v(bF);if(!E){return null}b=b.shape||b.node;bI=b.getElementsByTagName(a1)[0]||aw(a1);!bI.parentNode&amp;&amp;b.appendChild(bI);if(E[r]){bI.on=true;bI.method="none";bI.color=E[0].color;bI.color2=E[E[r]-1].color;var bJ=[];for(var e=0,bH=E[r];e&lt;bH;e++){E[e].offset&amp;&amp;bJ[j](E[e].offset+aF+E[e].color)}bI.colors&amp;&amp;(bI.colors.value=bJ[r]?bJ[aT]():"0% "+bI.color);if(R=="radial"){bI.type="gradientradial";bI.focus="100%";bI.focussize=S;bI.focusposition=S}else{bI.type="gradient";bI.angle=(270-d)%360}}return 1};aR=function(E,S,b){var R=0,e=0,d=0,i=1;this[0]=E;this.id=aG._oid++;this.node=E;E.raphael=this;this.X=0;this.Y=0;this.attrs={};this.Group=S;this.paper=b;this._={tx:0,ty:0,rt:{deg:0},sx:1,sy:1};!b.bottom&amp;&amp;(b.bottom=this);this.prev=b.top;b.top&amp;&amp;(b.top.next=this);b.top=this;this.next=null};a9=aR[bC];a9.rotate=function(d,b,e){if(this.removed){return this}if(d==null){if(this._.rt.cx){return[this._.rt.deg,this._.rt.cx,this._.rt.cy][aT](aF)}return this._.rt.deg}d=bA(d)[H](a);if(d[r]-1){b=ai(d[1]);e=ai(d[2])}d=ai(d[0]);if(b!=null){this._.rt.deg=d}else{this._.rt.deg+=d}e==null&amp;&amp;(b=null);this._.rt.cx=b;this._.rt.cy=e;this.setBox(this.attrs,b,e);this.Group.style.rotation=this._.rt.deg;return this};a9.setBox=function(E,R,e){if(this.removed){return this}var b=this.Group.style,S=(this.shape&amp;&amp;this.shape.style)||this.node.style;E=E||{};for(var bF in E){if(E[af](bF)){this.attrs[bF]=E[bF]}}R=R||this._.rt.cx;e=e||this._.rt.cy;var bI=this.attrs,bL,bK,bM,bH;switch(this.type){case"circle":bL=bI.cx-bI.r;bK=bI.cy-bI.r;bM=bH=bI.r*2;break;case"ellipse":bL=bI.cx-bI.rx;bK=bI.cy-bI.ry;bM=bI.rx*2;bH=bI.ry*2;break;case"image":bL=+bI.x;bK=+bI.y;bM=bI.width||0;bH=bI.height||0;break;case"text":this.textpath.v=["m",ac(bI.x),", ",ac(bI.y-2),"l",ac(bI.x)+1,", ",ac(bI.y-2)][aT](aM);bL=bI.x-ac(this.W/2);bK=bI.y-this.H/2;bM=this.W;bH=this.H;break;case"rect":case"path":if(!this.attrs.path){bL=0;bK=0;bM=this.paper.width;bH=this.paper.height}else{var bG=ah(this.attrs.path);bL=bG.x;bK=bG.y;bM=bG.width;bH=bG.height}break;default:bL=0;bK=0;bM=this.paper.width;bH=this.paper.height;break}R=(R==null)?bL+bM/2:R;e=(e==null)?bK+bH/2:e;var d=R-this.paper.width/2,bJ=e-this.paper.height/2,bN;b.left!=(bN=d+"px")&amp;&amp;(b.left=bN);b.top!=(bN=bJ+"px")&amp;&amp;(b.top=bN);this.X=s[af](this.type)?-d:bL;this.Y=s[af](this.type)?-bJ:bK;this.W=bM;this.H=bH;if(s[af](this.type)){S.left!=(bN=-d*t+"px")&amp;&amp;(S.left=bN);S.top!=(bN=-bJ*t+"px")&amp;&amp;(S.top=bN)}else{if(this.type=="text"){S.left!=(bN=-d+"px")&amp;&amp;(S.left=bN);S.top!=(bN=-bJ+"px")&amp;&amp;(S.top=bN)}else{b.width!=(bN=this.paper.width+"px")&amp;&amp;(b.width=bN);b.height!=(bN=this.paper.height+"px")&amp;&amp;(b.height=bN);S.left!=(bN=bL-d+"px")&amp;&amp;(S.left=bN);S.top!=(bN=bK-bJ+"px")&amp;&amp;(S.top=bN);S.width!=(bN=bM+"px")&amp;&amp;(S.width=bN);S.height!=(bN=bH+"px")&amp;&amp;(S.height=bN)}}};a9.hide=function(){!this.removed&amp;&amp;(this.Group.style.display="none");return this};a9.show=function(){!this.removed&amp;&amp;(this.Group.style.display="block");return this};a9.getBBox=function(){if(this.removed){return this}if(s[af](this.type)){return ah(this.attrs.path)}return{x:this.X+(this.bbx||0),y:this.Y,width:this.W,height:this.H}};a9.remove=function(){if(this.removed){return}aC(this,this.paper);this.node.parentNode.removeChild(this.node);this.Group.parentNode.removeChild(this.Group);this.shape&amp;&amp;this.shape.parentNode.removeChild(this.shape);for(var b in this){delete this[b]}this.removed=true};a9.attr=function(b,bF){if(this.removed){return this}if(b==null){var S={};for(var E in this.attrs){if(this.attrs[af](E)){S[E]=this.attrs[E]}}this._.rt.deg&amp;&amp;(S.rotation=this.rotate());(this._.sx!=1||this._.sy!=1)&amp;&amp;(S.scale=this.scale());S.gradient&amp;&amp;S.fill=="none"&amp;&amp;(S.fill=S.gradient)&amp;&amp;delete S.gradient;return S}if(bF==null&amp;&amp;aG.is(b,"string")){if(b=="translation"){return z.call(this)}if(b=="rotation"){return this.rotate()}if(b=="scale"){return this.scale()}if(b==a1&amp;&amp;this.attrs.fill=="none"&amp;&amp;this.attrs.gradient){return this.attrs.gradient}return this.attrs[b]}if(this.attrs&amp;&amp;bF==null&amp;&amp;aG.is(b,a4)){var bI,bH={};for(E=0,bI=b[r];E&lt;bI;E++){bH[b[E]]=this.attr(b[E])}return bH}var d;if(bF!=null){d={};d[b]=bF}bF==null&amp;&amp;aG.is(b,"object")&amp;&amp;(d=b);if(d){for(var bG in this.paper.customAttributes){if(this.paper.customAttributes[af](bG)&amp;&amp;d[af](bG)&amp;&amp;aG.is(this.paper.customAttributes[bG],"function")){var R=this.paper.customAttributes[bG].apply(this,[][bt](d[bG]));this.attrs[bG]=d[bG];for(var e in R){if(R[af](e)){d[e]=R[e]}}}}if(d.text&amp;&amp;this.type=="text"){this.node.string=d.text}am(this,d);if(d.gradient&amp;&amp;(({circle:1,ellipse:1})[af](this.type)||bA(d.gradient).charAt()!="r")){g(this,d.gradient)}(!s[af](this.type)||this._.rt.deg)&amp;&amp;this.setBox(this.attrs)}return this};a9.toFront=function(){!this.removed&amp;&amp;this.Group.parentNode[bh](this.Group);this.paper.top!=this&amp;&amp;ak(this,this.paper);return this};a9.toBack=function(){if(this.removed){return this}if(this.Group.parentNode.firstChild!=this.Group){this.Group.parentNode.insertBefore(this.Group,this.Group.parentNode.firstChild);o(this,this.paper)}return this};a9.insertAfter=function(b){if(this.removed){return this}if(b.constructor==ag){b=b[b.length-1]}if(b.Group.nextSibling){b.Group.parentNode.insertBefore(this.Group,b.Group.nextSibling)}else{b.Group.parentNode[bh](this.Group)}I(this,b,this.paper);return this};a9.insertBefore=function(b){if(this.removed){return this}if(b.constructor==ag){b=b[0]}b.Group.parentNode.insertBefore(this.Group,b.Group);aJ(this,b,this.paper);return this};a9.blur=function(b){var d=this.node.runtimeStyle,e=d.filter;e=e.replace(bu,aM);if(+b!==0){this.attrs.blur=b;d.filter=e+aF+a2+".Blur(pixelradius="+(+b||1.5)+")";d.margin=aG.format("-{0}px 0 0 -{0}px",ac(+b||1.5))}else{d.filter=e;d.margin=0;delete this.attrs.blur}};ad=function(d,b,bF,R){var E=aw("group"),S=aw("oval"),e=S.style;E.style.cssText="position:absolute;left:0;top:0;width:"+d.width+"px;height:"+d.height+"px";E.coordsize=aU;E.coordorigin=d.coordorigin;E[bh](S);var i=new aR(S,E,d);i.type="circle";am(i,{stroke:"#000",fill:"none"});i.attrs.cx=b;i.attrs.cy=bF;i.attrs.r=R;i.setBox({x:b-R,y:bF-R,width:R*2,height:R*2});d.canvas[bh](E);return i};function aq(b,E,d,e,i){if(i){return aG.format("M{0},{1}l{2},0a{3},{3},0,0,1,{3},{3}l0,{5}a{3},{3},0,0,1,{4},{3}l{6},0a{3},{3},0,0,1,{4},{4}l0,{7}a{3},{3},0,0,1,{3},{4}z",b+i,E,d-i*2,i,-i,e-i*2,i*2-d,i*2-e)}else{return aG.format("M{0},{1}l{2},0,0,{3},{4},0z",b,E,d,e,-d)}}a8=function(d,S,E,bF,e,b){var bG=aq(S,E,bF,e,b),i=d.path(bG),R=i.attrs;i.X=R.x=S;i.Y=R.y=E;i.W=R.width=bF;i.H=R.height=e;R.r=b;R.path=bG;i.type="rect";return i};ax=function(b,bG,bF,e,d){var E=aw("group"),i=aw("oval"),S=i.style;E.style.cssText="position:absolute;left:0;top:0;width:"+b.width+"px;height:"+b.height+"px";E.coordsize=aU;E.coordorigin=b.coordorigin;E[bh](i);var R=new aR(i,E,b);R.type="ellipse";am(R,{stroke:"#000"});R.attrs.cx=bG;R.attrs.cy=bF;R.attrs.rx=e;R.attrs.ry=d;R.setBox({x:bG-e,y:bF-d,width:e*2,height:d*2});b.canvas[bh](E);return R};u=function(d,b,bF,S,bG,i){var E=aw("group"),e=aw("image");E.style.cssText="position:absolute;left:0;top:0;width:"+d.width+"px;height:"+d.height+"px";E.coordsize=aU;E.coordorigin=d.coordorigin;e.src=b;E[bh](e);var R=new aR(e,E,d);R.type="image";R.attrs.src=b;R.attrs.x=bF;R.attrs.y=S;R.attrs.w=bG;R.attrs.h=i;R.setBox({x:bF,y:S,width:bG,height:i});d.canvas[bh](E);return R};aj=function(d,bG,bF,bH){var E=aw("group"),i=aw("shape"),S=i.style,bI=aw("path"),b=bI.style,e=aw("textpath");E.style.cssText="position:absolute;left:0;top:0;width:"+d.width+"px;height:"+d.height+"px";E.coordsize=aU;E.coordorigin=d.coordorigin;bI.v=aG.format("m{0},{1}l{2},{1}",ac(bG*10),ac(bF*10),ac(bG*10)+1);bI.textpathok=true;S.width=d.width;S.height=d.height;e.string=bA(bH);e.on=true;i[bh](e);i[bh](bI);E[bh](i);var R=new aR(e,E,d);R.shape=i;R.textpath=bI;R.type="text";R.attrs.text=bH;R.attrs.x=bG;R.attrs.y=bF;R.attrs.w=1;R.attrs.h=1;am(R,{font:p.font,stroke:"none",fill:"#000"});R.setBox();d.canvas[bh](E);return R};by=function(e,b){var d=this.canvas.style;e==+e&amp;&amp;(e+="px");b==+b&amp;&amp;(b+="px");d.width=e;d.height=b;d.clip="rect(0 "+e+" "+b+" 0)";return this};var aw;Z.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{!Z.namespaces.rvml&amp;&amp;Z.namespaces.add("rvml","urn:schemas-microsoft-com:vml");aw=function(b){return Z.createElement("&lt;rvml:"+b+' class="rvml"&gt;')}}catch(au){aw=function(b){return Z.createElement("&lt;"+b+' xmlns="urn:schemas-microsoft.com:vml" class="rvml"&gt;')}}D=function(){var e=aH[bz](0,arguments),b=e.container,bG=e.height,bH,d=e.width,bF=e.x,S=e.y;if(!b){throw new Error("VML container not found.")}var E=new bw,R=E.canvas=Z.createElement("div"),i=R.style;bF=bF||0;S=S||0;d=d||512;bG=bG||342;d==+d&amp;&amp;(d+="px");bG==+bG&amp;&amp;(bG+="px");E.width=1000;E.height=1000;E.coordsize=t*1000+aF+t*1000;E.coordorigin="0 0";E.span=Z.createElement("span");E.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;";R[bh](E.span);i.cssText=aG.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",d,bG);if(b==1){Z.body[bh](R);i.left=bF+"px";i.top=S+"px";i.position="absolute"}else{if(b.firstChild){b.insertBefore(R,b.firstChild)}else{b[bh](R)}}bb.call(E,E,aG.fn);return E};aW.clear=function(){this.canvas.innerHTML=aM;this.span=Z.createElement("span");this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;";this.canvas[bh](this.span);this.bottom=this.top=null};aW.remove=function(){this.canvas.parentNode.removeChild(this.canvas);for(var b in this){this[b]=y(b)}return true}}var T=navigator.userAgent.match(/Version\/(.*?)\s/);if((navigator.vendor=="Apple Computer, Inc.")&amp;&amp;(T&amp;&amp;T[1]&lt;4||navigator.platform.slice(0,2)=="iP")){aW.safari=function(){var b=this.rect(-99,-99,this.width+99,this.height+99).attr({stroke:"none"});aN.setTimeout(function(){b.remove()})}}else{aW.safari=function(){}}var N=function(){this.returnValue=false},bs=function(){return this.originalEvent.preventDefault()},a0=function(){this.cancelBubble=true},aB=function(){return this.originalEvent.stopPropagation()},at=(function(){if(Z.addEventListener){return function(R,i,e,d){var b=V&amp;&amp;bn[i]?bn[i]:i;var E=function(bH){if(V&amp;&amp;bn[af](i)){for(var bF=0,bG=bH.targetTouches&amp;&amp;bH.targetTouches.length;bF&lt;bG;bF++){if(bH.targetTouches[bF].target==R){var S=bH;bH=bH.targetTouches[bF];bH.originalEvent=S;bH.preventDefault=bs;bH.stopPropagation=aB;break}}}return e.call(d,bH)};R.addEventListener(b,E,false);return function(){R.removeEventListener(b,E,false);return true}}}else{if(Z.attachEvent){return function(R,i,e,d){var E=function(S){S=S||aN.event;S.preventDefault=S.preventDefault||N;S.stopPropagation=S.stopPropagation||a0;return e.call(d,S)};R.attachEvent("on"+i,E);var b=function(){R.detachEvent("on"+i,E);return true};return b}}}})(),a5=[],bo=function(S){var bG=S.clientX,bF=S.clientY,bH=Z.documentElement.scrollTop||Z.body.scrollTop,bI=Z.documentElement.scrollLeft||Z.body.scrollLeft,b,d=a5.length;while(d--){b=a5[d];if(V){var R=S.touches.length,E;while(R--){E=S.touches[R];if(E.identifier==b.el._drag.id){bG=E.clientX;bF=E.clientY;(S.originalEvent?S.originalEvent:S).preventDefault();break}}}else{S.preventDefault()}bG+=bI;bF+=bH;b.move&amp;&amp;b.move.call(b.el,bG-b.el._drag.x,bF-b.el._drag.y,bG,bF)}},f=function(){aG.unmousemove(bo).unmouseup(f);var d=a5.length,b;while(d--){b=a5[d];b.el._drag={};b.end&amp;&amp;b.end.call(b.el)}a5=[]};for(var ap=P[r];ap--;){(function(b){aG[b]=aR[bC][b]=function(d){if(aG.is(d,"function")){this.events=this.events||[];this.events.push({name:b,f:d,unbind:at(this.shape||this.node||Z,b,d,this)})}return this};aG["un"+b]=aR[bC]["un"+b]=function(i){var e=this.events,d=e[r];while(d--){if(e[d].name==b&amp;&amp;e[d].f==i){e[d].unbind();e.splice(d,1);!e.length&amp;&amp;delete this.events;return this}}return this}})(P[ap])}a9.hover=function(d,b){return this.mouseover(d).mouseout(b)};a9.unhover=function(d,b){return this.unmouseover(d).unmouseout(b)};a9.drag=function(b,e,d){this._drag={};this.mousedown(function(E){(E.originalEvent||E).preventDefault();var i=Z.documentElement.scrollTop||Z.body.scrollTop,R=Z.documentElement.scrollLeft||Z.body.scrollLeft;this._drag.x=E.clientX+R;this._drag.y=E.clientY+i;this._drag.id=E.identifier;e&amp;&amp;e.call(this,E.clientX+R,E.clientY+i);!a5.length&amp;&amp;aG.mousemove(bo).mouseup(f);a5.push({el:this,move:b,end:d})});return this};a9.undrag=function(b,E,e){var d=a5.length;while(d--){a5[d].el==this&amp;&amp;(a5[d].move==b&amp;&amp;a5[d].end==e)&amp;&amp;a5.splice(d,1);!a5.length&amp;&amp;aG.unmousemove(bo).unmouseup(f)}};aW.circle=function(b,e,d){return ad(this,b||0,e||0,d||0)};aW.rect=function(b,E,d,e,i){return a8(this,b||0,E||0,d||0,e||0,i||0)};aW.ellipse=function(b,i,e,d){return ax(this,b||0,i||0,e||0,d||0)};aW.path=function(b){b&amp;&amp;!aG.is(b,ae)&amp;&amp;!aG.is(b[0],a4)&amp;&amp;(b+=aM);return w(aG.format[bz](aG,arguments),this)};aW.image=function(i,b,E,d,e){return u(this,i||"about:blank",b||0,E||0,d||0,e||0)};aW.text=function(b,e,d){return aj(this,b||0,e||0,bA(d))};aW.set=function(b){arguments[r]&gt;1&amp;&amp;(b=Array[bC].splice.call(arguments,0,arguments[r]));return new ag(b)};aW.setSize=by;aW.top=aW.bottom=null;aW.raphael=aG;function B(){return this.x+aF+this.y}a9.resetScale=function(){if(this.removed){return this}this._.sx=1;this._.sy=1;this.attrs.scale="1 1"};a9.scale=function(bK,bJ,e,d){if(this.removed){return this}if(bK==null&amp;&amp;bJ==null){return{x:this._.sx,y:this._.sy,toString:B}}bJ=bJ||bK;!+bJ&amp;&amp;(bJ=bK);var bO,bM,bN,bL,b0=this.attrs;if(bK!=0){var bI=this.getBBox(),bF=bI.x+bI.width/2,E=bI.y+bI.height/2,bZ=bK/this._.sx,bY=bJ/this._.sy;e=(+e||e==0)?e:bF;d=(+d||d==0)?d:E;var bH=~~(bK/an.abs(bK)),S=~~(bJ/an.abs(bJ)),bR=this.node.style,b2=e+(bF-e)*bZ,b1=d+(E-d)*bY;switch(this.type){case"rect":case"image":var bG=b0.width*bH*bZ,bQ=b0.height*S*bY;this.attr({height:bQ,r:b0.r*bf(bH*bZ,S*bY),width:bG,x:b2-bG/2,y:b1-bQ/2});break;case"circle":case"ellipse":this.attr({rx:b0.rx*bH*bZ,ry:b0.ry*S*bY,r:b0.r*bf(bH*bZ,S*bY),cx:b2,cy:b1});break;case"text":this.attr({x:b2,y:b1});break;case"path":var bT=ar(b0.path),bU=true;for(var bW=0,bP=bT[r];bW&lt;bP;bW++){var bS=bT[bW],R=bl.call(bS[0]);if(R=="M"&amp;&amp;bU){continue}else{bU=false}if(R=="A"){bS[bT[bW][r]-2]*=bZ;bS[bT[bW][r]-1]*=bY;bS[1]*=bH*bZ;bS[2]*=S*bY;bS[5]=+!(bH+S?!+bS[5]:+bS[5])}else{if(R=="H"){for(var bV=1,bX=bS[r];bV&lt;bX;bV++){bS[bV]*=bZ}}else{if(R=="V"){for(bV=1,bX=bS[r];bV&lt;bX;bV++){bS[bV]*=bY}}else{for(bV=1,bX=bS[r];bV&lt;bX;bV++){bS[bV]*=(bV%2)?bZ:bY}}}}}var b=ah(bT);bO=b2-b.x-b.width/2;bM=b1-b.y-b.height/2;bT[0][1]+=bO;bT[0][2]+=bM;this.attr({path:bT});break}if(this.type in {text:1,image:1}&amp;&amp;(bH!=1||S!=1)){if(this.transformations){this.transformations[2]="scale("[bt](bH,",",S,")");this.node[C]("transform",this.transformations[aT](aF));bO=(bH==-1)?-b0.x-(bG||0):b0.x;bM=(S==-1)?-b0.y-(bQ||0):b0.y;this.attr({x:bO,y:bM});b0.fx=bH-1;b0.fy=S-1}else{this.node.filterMatrix=a2+".Matrix(M11="[bt](bH,", M12=0, M21=0, M22=",S,", Dx=0, Dy=0, sizingmethod='auto expand', filtertype='bilinear')");bR.filter=(this.node.filterMatrix||aM)+(this.node.filterOpacity||aM)}}else{if(this.transformations){this.transformations[2]=aM;this.node[C]("transform",this.transformations[aT](aF));b0.fx=0;b0.fy=0}else{this.node.filterMatrix=aM;bR.filter=(this.node.filterMatrix||aM)+(this.node.filterOpacity||aM)}}b0.scale=[bK,bJ,e,d][aT](aF);this._.sx=bK;this._.sy=bJ}return this};a9.clone=function(){if(this.removed){return null}var b=this.attr();delete b.scale;delete b.translation;return this.paper[this.type]().attr(b)};var aZ={},k=function(R,d,bH,bG,bN,bM,bL,bK,S){var bJ=0,E=[R,d,bH,bG,bN,bM,bL,bK].join(),b=aZ[E],bF,e;!b&amp;&amp;(aZ[E]=b={data:[]});b.timer&amp;&amp;clearTimeout(b.timer);b.timer=setTimeout(function(){delete aZ[E]},2000);for(var bI=0;bI&lt;101;bI++){if(b.data[S]&gt;bI){e=b.data[bI*100]}else{e=aG.findDotsAtSegment(R,d,bH,bG,bN,bM,bL,bK,bI/100);b.data[bI]=e}bI&amp;&amp;(bJ+=bi(bi(bF.x-e.x,2)+bi(bF.y-e.y,2),0.5));if(S!=null&amp;&amp;bJ&gt;=S){return e}bF=e}if(S==null){return bJ}},aY=function(b,d){return function(bN,R,S){bN=U(bN);var bJ,bI,e,bF,E="",bM={},bK,bH=0;for(var bG=0,bL=bN.length;bG&lt;bL;bG++){e=bN[bG];if(e[0]=="M"){bJ=+e[1];bI=+e[2]}else{bF=k(bJ,bI,e[1],e[2],e[3],e[4],e[5],e[6]);if(bH+bF&gt;R){if(d&amp;&amp;!bM.start){bK=k(bJ,bI,e[1],e[2],e[3],e[4],e[5],e[6],R-bH);E+=["C",bK.start.x,bK.start.y,bK.m.x,bK.m.y,bK.x,bK.y];if(S){return E}bM.start=E;E=["M",bK.x,bK.y+"C",bK.n.x,bK.n.y,bK.end.x,bK.end.y,e[5],e[6]][aT]();bH+=bF;bJ=+e[5];bI=+e[6];continue}if(!b&amp;&amp;!d){bK=k(bJ,bI,e[1],e[2],e[3],e[4],e[5],e[6],R-bH);return{x:bK.x,y:bK.y,alpha:bK.alpha}}}bH+=bF;bJ=+e[5];bI=+e[6]}E+=e}bM.end=E;bK=b?bH:d?bM:aG.findDotsAtSegment(bJ,bI,e[1],e[2],e[3],e[4],e[5],e[6],1);bK.alpha&amp;&amp;(bK={x:bK.x,y:bK.y,alpha:bK.alpha});return bK}};var aI=aY(1),K=aY(),X=aY(0,1);a9.getTotalLength=function(){if(this.type!="path"){return}if(this.node.getTotalLength){return this.node.getTotalLength()}return aI(this.attrs.path)};a9.getPointAtLength=function(b){if(this.type!="path"){return}if(this.node.getPointAtLength){return this.node.getPointAtLength(b)}return K(this.attrs.path,b)};a9.getSubpath=function(e,d){if(this.type!="path"){return}if(an.abs(this.getTotalLength()-d)&lt;"1e-6"){return X(this.attrs.path,e).end}var b=X(this.attrs.path,d,1);return e?X(b,e).end:b};aG.easing_formulas={linear:function(b){return b},"&lt;":function(b){return bi(b,3)},"&gt;":function(b){return bi(b-1,3)+1},"&lt;&gt;":function(b){b=b*2;if(b&lt;1){return bi(b,3)/2}b-=2;return(bi(b,3)+2)/2},backIn:function(d){var b=1.70158;return d*d*((b+1)*d-b)},backOut:function(d){d=d-1;var b=1.70158;return d*d*((b+1)*d+b)+1},elastic:function(e){if(e==0||e==1){return e}var d=0.3,b=d/4;return bi(2,-10*e)*an.sin((e-b)*(2*an.PI)/d)+1},bounce:function(i){var d=7.5625,e=2.75,b;if(i&lt;(1/e)){b=d*i*i}else{if(i&lt;(2/e)){i-=(1.5/e);b=d*i*i+0.75}else{if(i&lt;(2.5/e)){i-=(2.25/e);b=d*i*i+0.9375}else{i-=(2.625/e);b=d*i*i+0.984375}}}return b}};var W=[],br=function(){var bG=+new Date;for(var bR=0;bR&lt;W[r];bR++){var bW=W[bR];if(bW.stop||bW.el.removed){continue}var R=bG-bW.start,bO=bW.ms,bN=bW.easing,bS=bW.from,bL=bW.diff,d=bW.to,bK=bW.t,bF=bW.el,bM={},b;if(R&lt;bO){var E=bN(R/bO);for(var bP in bS){if(bS[af](bP)){switch(al[bP]){case"along":b=E*bO*bL[bP];d.back&amp;&amp;(b=d.len-b);var bQ=K(d[bP],b);bF.translate(bL.sx-bL.x||0,bL.sy-bL.y||0);bL.x=bQ.x;bL.y=bQ.y;bF.translate(bQ.x-bL.sx,bQ.y-bL.sy);d.rot&amp;&amp;bF.rotate(bL.r+bQ.alpha,bQ.x,bQ.y);break;case aD:b=+bS[bP]+E*bO*bL[bP];break;case"colour":b="rgb("+[J(ac(bS[bP].r+E*bO*bL[bP].r)),J(ac(bS[bP].g+E*bO*bL[bP].g)),J(ac(bS[bP].b+E*bO*bL[bP].b))][aT](",")+")";break;case"path":b=[];for(var bU=0,bJ=bS[bP][r];bU&lt;bJ;bU++){b[bU]=[bS[bP][bU][0]];for(var bT=1,bV=bS[bP][bU][r];bT&lt;bV;bT++){b[bU][bT]=+bS[bP][bU][bT]+E*bO*bL[bP][bU][bT]}b[bU]=b[bU][aT](aF)}b=b[aT](aF);break;case"csv":switch(bP){case"translation":var bI=E*bO*bL[bP][0]-bK.x,bH=E*bO*bL[bP][1]-bK.y;bK.x+=bI;bK.y+=bH;b=bI+aF+bH;break;case"rotation":b=+bS[bP][0]+E*bO*bL[bP][0];bS[bP][1]&amp;&amp;(b+=","+bS[bP][1]+","+bS[bP][2]);break;case"scale":b=[+bS[bP][0]+E*bO*bL[bP][0],+bS[bP][1]+E*bO*bL[bP][1],(2 in d[bP]?d[bP][2]:aM),(3 in d[bP]?d[bP][3]:aM)][aT](aF);break;case"clip-rect":b=[];bU=4;while(bU--){b[bU]=+bS[bP][bU]+E*bO*bL[bP][bU]}break}break;default:var S=[].concat(bS[bP]);b=[];bU=bF.paper.customAttributes[bP].length;while(bU--){b[bU]=+S[bU]+E*bO*bL[bP][bU]}break}bM[bP]=b}}bF.attr(bM);bF._run&amp;&amp;bF._run.call(bF)}else{if(d.along){bQ=K(d.along,d.len*!d.back);bF.translate(bL.sx-(bL.x||0)+bQ.x-bL.sx,bL.sy-(bL.y||0)+bQ.y-bL.sy);d.rot&amp;&amp;bF.rotate(bL.r+bQ.alpha,bQ.x,bQ.y)}(bK.x||bK.y)&amp;&amp;bF.translate(-bK.x,-bK.y);d.scale&amp;&amp;(d.scale+=aM);bF.attr(d);W.splice(bR--,1)}}aG.svg&amp;&amp;bF&amp;&amp;bF.paper&amp;&amp;bF.paper.safari();W[r]&amp;&amp;setTimeout(br)},bv=function(b,e,R,E,i){var d=R-E;e.timeouts.push(setTimeout(function(){aG.is(i,"function")&amp;&amp;i.call(e);e.animate(b,d,b.easing)},E))},J=function(b){return l(bf(b,255),0)},z=function(b,e){if(b==null){return{x:this._.tx,y:this._.ty,toString:B}}this._.tx+=+b;this._.ty+=+e;switch(this.type){case"circle":case"ellipse":this.attr({cx:+b+this.attrs.cx,cy:+e+this.attrs.cy});break;case"rect":case"image":case"text":this.attr({x:+b+this.attrs.x,y:+e+this.attrs.y});break;case"path":var d=ar(this.attrs.path);d[0][1]+=+b;d[0][2]+=+e;this.attr({path:d});break}return this};a9.animateWith=function(e,R,b,bF,S){for(var d=0,E=W.length;d&lt;E;d++){if(W[d].el.id==e.id){R.start=W[d].start}}return this.animate(R,b,bF,S)};a9.animateAlong=aS();a9.animateAlongBack=aS(1);function aS(b){return function(i,e,d,R){var E={back:b};aG.is(d,"function")?(R=d):(E.rot=d);i&amp;&amp;i.constructor==aR&amp;&amp;(i=i.attrs.path);i&amp;&amp;(E.along=i);return this.animate(E,e,R)}}function aV(bL,i,d,bK,bJ,bF){var bG=3*i,bI=3*(bK-i)-bG,b=1-bG-bI,S=3*d,bH=3*(bJ-d)-S,bM=1-S-bH;function R(bN){return((b*bN+bI)*bN+bG)*bN}function e(bN,bP){var bO=E(bN,bP);return((bM*bO+bH)*bO+S)*bO}function E(bN,bU){var bT,bS,bQ,bO,bR,bP;for(bQ=bN,bP=0;bP&lt;8;bP++){bO=R(bQ)-bN;if(an.abs(bO)&lt;bU){return bQ}bR=(3*b*bQ+2*bI)*bQ+bG;if(an.abs(bR)&lt;0.000001){break}bQ=bQ-bO/bR}bT=0;bS=1;bQ=bN;if(bQ&lt;bT){return bT}if(bQ&gt;bS){return bS}while(bT&lt;bS){bO=R(bQ);if(an.abs(bO-bN)&lt;bU){return bQ}if(bN&gt;bO){bT=bQ}else{bS=bQ}bQ=(bS-bT)/2+bT}return bQ}return e(bL,1/(200*bF))}a9.onAnimation=function(b){this._run=b||0;return this};a9.animate=function(bY,bO,bN,R){var d=this;d.timeouts=d.timeouts||[];if(aG.is(bN,"function")||!bN){R=bN||null}if(d.removed){R&amp;&amp;R.call(d);return d}var bS={},e={},S=false,bJ={};for(var bP in bY){if(bY[af](bP)){if(al[af](bP)||d.paper.customAttributes[af](bP)){S=true;bS[bP]=d.attr(bP);(bS[bP]==null)&amp;&amp;(bS[bP]=p[bP]);e[bP]=bY[bP];switch(al[bP]){case"along":var bW=aI(bY[bP]);var bQ=K(bY[bP],bW*!!bY.back);var bF=d.getBBox();bJ[bP]=bW/bO;bJ.tx=bF.x;bJ.ty=bF.y;bJ.sx=bQ.x;bJ.sy=bQ.y;e.rot=bY.rot;e.back=bY.back;e.len=bW;bY.rot&amp;&amp;(bJ.r=ai(d.rotate())||0);break;case aD:bJ[bP]=(e[bP]-bS[bP])/bO;break;case"colour":bS[bP]=aG.getRGB(bS[bP]);var bR=aG.getRGB(e[bP]);bJ[bP]={r:(bR.r-bS[bP].r)/bO,g:(bR.g-bS[bP].g)/bO,b:(bR.b-bS[bP].b)/bO};break;case"path":var bG=U(bS[bP],e[bP]);bS[bP]=bG[0];var bL=bG[1];bJ[bP]=[];for(var bV=0,bI=bS[bP][r];bV&lt;bI;bV++){bJ[bP][bV]=[0];for(var bU=1,bX=bS[bP][bV][r];bU&lt;bX;bU++){bJ[bP][bV][bU]=(bL[bV][bU]-bS[bP][bV][bU])/bO}}break;case"csv":var b=bA(bY[bP])[H](a),bH=bA(bS[bP])[H](a);switch(bP){case"translation":bS[bP]=[0,0];bJ[bP]=[b[0]/bO,b[1]/bO];break;case"rotation":bS[bP]=(bH[1]==b[1]&amp;&amp;bH[2]==b[2])?bH:[0,b[1],b[2]];bJ[bP]=[(b[0]-bS[bP][0])/bO,0,0];break;case"scale":bY[bP]=b;bS[bP]=bA(bS[bP])[H](a);bJ[bP]=[(b[0]-bS[bP][0])/bO,(b[1]-bS[bP][1])/bO,0,0];break;case"clip-rect":bS[bP]=bA(bS[bP])[H](a);bJ[bP]=[];bV=4;while(bV--){bJ[bP][bV]=(b[bV]-bS[bP][bV])/bO}break}e[bP]=b;break;default:b=[].concat(bY[bP]);bH=[].concat(bS[bP]);bJ[bP]=[];bV=d.paper.customAttributes[bP][r];while(bV--){bJ[bP][bV]=((b[bV]||0)-(bH[bV]||0))/bO}break}}}}if(!S){var bM=[],E;for(var bZ in bY){if(bY[af](bZ)&amp;&amp;bc.test(bZ)){bP={value:bY[bZ]};bZ=="from"&amp;&amp;(bZ=0);bZ=="to"&amp;&amp;(bZ=100);bP.key=Q(bZ,10);bM.push(bP)}}bM.sort(bj);if(bM[0].key){bM.unshift({key:0,value:d.attrs})}for(bV=0,bI=bM[r];bV&lt;bI;bV++){bv(bM[bV].value,d,bO/100*bM[bV].key,bO/100*(bM[bV-1]&amp;&amp;bM[bV-1].key||0),bM[bV-1]&amp;&amp;bM[bV-1].value.callback)}E=bM[bM[r]-1].value.callback;if(E){d.timeouts.push(setTimeout(function(){E.call(d)},bO))}}else{var bT=aG.easing_formulas[bN];if(!bT){bT=bA(bN).match(c);if(bT&amp;&amp;bT[r]==5){var bK=bT;bT=function(i){return aV(i,+bK[1],+bK[2],+bK[3],+bK[4],bO)}}else{bT=function(i){return i}}}W.push({start:bY.start||+new Date,ms:bO,easing:bT,from:bS,diff:bJ,to:e,el:d,t:{x:0,y:0}});aG.is(R,"function")&amp;&amp;(d._ac=setTimeout(function(){R.call(d)},bO));W[r]==1&amp;&amp;setTimeout(br)}return this};a9.stop=function(){for(var b=0;b&lt;W.length;b++){W[b].el.id==this.id&amp;&amp;W.splice(b--,1)}for(b=0,ii=this.timeouts&amp;&amp;this.timeouts.length;b&lt;ii;b++){clearTimeout(this.timeouts[b])}this.timeouts=[];clearTimeout(this._ac);delete this._ac;return this};a9.translate=function(b,d){return this.attr({translation:b+" "+d})};a9[aX]=function(){return"Rapha\xebl\u2019s object"};aG.ae=W;var ag=function(b){this.items=[];this[r]=0;this.type="set";if(b){for(var d=0,e=b[r];d&lt;e;d++){if(b[d]&amp;&amp;(b[d].constructor==aR||b[d].constructor==ag)){this[this.items[r]]=this.items[this.items[r]]=b[d];this[r]++}}}};ag[bC][j]=function(){var E,b;for(var d=0,e=arguments[r];d&lt;e;d++){E=arguments[d];if(E&amp;&amp;(E.constructor==aR||E.constructor==ag)){b=this.items[r];this[b]=this.items[b]=E;this[r]++}}return this};ag[bC].pop=function(){delete this[this[r]--];return this.items.pop()};for(var G in a9){if(a9[af](G)){ag[bC][G]=(function(b){return function(){for(var d=0,e=this.items[r];d&lt;e;d++){this.items[d][b][bz](this.items[d],arguments)}return this}})(G)}}ag[bC].attr=function(d,S){if(d&amp;&amp;aG.is(d,a4)&amp;&amp;aG.is(d[0],"object")){for(var b=0,R=d[r];b&lt;R;b++){this.items[b].attr(d[b])}}else{for(var e=0,E=this.items[r];e&lt;E;e++){this.items[e].attr(d,S)}}return this};ag[bC].animate=function(d,b,S,bG){(aG.is(S,"function")||!S)&amp;&amp;(bG=S||null);var R=this.items[r],e=R,bH,bF=this,E;bG&amp;&amp;(E=function(){!--R&amp;&amp;bG.call(bF)});S=aG.is(S,ae)?S:E;bH=this.items[--e].animate(d,b,S,E);while(e--){this.items[e]&amp;&amp;!this.items[e].removed&amp;&amp;this.items[e].animateWith(bH,d,b,S,E)}return this};ag[bC].insertAfter=function(d){var b=this.items[r];while(b--){this.items[b].insertAfter(d)}return this};ag[bC].getBBox=function(){var b=[],S=[],d=[],E=[];for(var e=this.items[r];e--;){var R=this.items[e].getBBox();b[j](R.x);S[j](R.y);d[j](R.x+R.width);E[j](R.y+R.height)}b=bf[bz](0,b);S=bf[bz](0,S);return{x:b,y:S,width:l[bz](0,d)-b,height:l[bz](0,E)-S}};ag[bC].clone=function(e){e=new ag;for(var b=0,d=this.items[r];b&lt;d;b++){e[j](this.items[b].clone())}return e};aG.registerFont=function(d){if(!d.face){return d}this.fonts=this.fonts||{};var i={w:d.w,face:{},glyphs:{}},e=d.face["font-family"];for(var S in d.face){if(d.face[af](S)){i.face[S]=d.face[S]}}if(this.fonts[e]){this.fonts[e][j](i)}else{this.fonts[e]=[i]}if(!d.svg){i.face["units-per-em"]=Q(d.face["units-per-em"],10);for(var E in d.glyphs){if(d.glyphs[af](E)){var R=d.glyphs[E];i.glyphs[E]={w:R.w,k:{},d:R.d&amp;&amp;"M"+R.d[bp](/[mlcxtrv]/g,function(bF){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[bF]||"M"})+"z"};if(R.k){for(var b in R.k){if(R[af](b)){i.glyphs[E].k[b]=R.k[b]}}}}}}return d};aW.getFont=function(bG,bH,d,E){E=E||"normal";d=d||"normal";bH=+bH||{normal:400,bold:700,lighter:300,bolder:800}[bH]||400;if(!aG.fonts){return}var R=aG.fonts[bG];if(!R){var e=new RegExp("(^|\\s)"+bG[bp](/[^\w\d\s+!~.:_-]/g,aM)+"(\\s|$)","i");for(var b in aG.fonts){if(aG.fonts[af](b)){if(e.test(b)){R=aG.fonts[b];break}}}}var S;if(R){for(var bF=0,bI=R[r];bF&lt;bI;bF++){S=R[bF];if(S.face["font-weight"]==bH&amp;&amp;(S.face["font-style"]==d||!S.face["font-style"])&amp;&amp;S.face["font-stretch"]==E){break}}}return S};aW.print=function(R,E,b,bG,bH,bQ,d){bQ=bQ||"middle";d=l(bf(d||0,1),-1);var bM=this.set(),bP=bA(b)[H](aM),bN=0,bK=aM,bR;aG.is(bG,b)&amp;&amp;(bG=this.getFont(bG));if(bG){bR=(bH||16)/bG.face["units-per-em"];var e=bG.face.bbox.split(a),bF=+e[0],bI=+e[1]+(bQ=="baseline"?e[3]-e[1]+(+bG.face.descent):(e[3]-e[1])/2);for(var bL=0,S=bP[r];bL&lt;S;bL++){var bJ=bL&amp;&amp;bG.glyphs[bP[bL-1]]||{},bO=bG.glyphs[bP[bL]];bN+=bL?(bJ.w||bG.w)+(bJ.k&amp;&amp;bJ.k[bP[bL]]||0)+(bG.w*d):0;bO&amp;&amp;bO.d&amp;&amp;bM[j](this.path(bO.d).attr({fill:"#000",stroke:"none",translation:[bN,0]}))}bM.scale(bR,bR,bF,bI).translate(R-bF,E-bI)}return bM};aG.format=function(d,e){var b=aG.is(e,a4)?[0][bt](e):arguments;d&amp;&amp;aG.is(d,ae)&amp;&amp;b[r]-1&amp;&amp;(d=d[bp](bk,function(R,E){return b[++E]==null?aM:b[E]}));return d||aM};aG.ninja=function(){q.was?(aN.Raphael=q.is):delete Raphael;return aG};aG.el=a9;aG.st=ag[bC];q.was?(aN.Raphael=aG):(Raphael=aG)})();var JSPlanarity=(function(Raphael){var configuration={xSize:"530",ySize:"530",vertexRadius:7,inactiveVertexColor:"#00F",activeVertexColor:"#0F0",edgeStrokeWidth:"2",inactiveEdgeColor:"#000",activeEdgeColor:"#FFF",intersectionEdgeColor:"#F00",randomMinValue:0,randomMaxValue:20,startupAnimationTimeMs:700,difficulty:4};var raphaelPaper={};var factories={};var vertexArray=[];var edgeArray=[];function createFactories(raphaelPaper){function createVertex(xpos,ypos){var vertexEdges=[];var vertexVisualisation=raphaelPaper.circle(xpos||configuration.xSize/2,ypos||configuration.ySize/2,configuration.vertexRadius).attr({fill:configuration.inactiveVertexColor}).onAnimation(updateEdges);function toFront(){vertexVisualisation.toFront()}function updateEdges(){vertexEdges.map(function(item){item.updateVisualisation()})}function setPosition(x,y,animationTimeMs){var newX=Math.max(0,x);newX=Math.min(newX,configuration.xSize);var newY=Math.max(0,y);newY=Math.min(newY,configuration.ySize);var newAnimationTimeMs=animationTimeMs||0;newAnimationTimeMs=Math.max(newAnimationTimeMs,0);vertexVisualisation.animate({cx:newX,cy:newY},newAnimationTimeMs,"bounce",updateEdges)}function addEdge(newEdge){vertexEdges.push(newEdge)}function getPositionString(){return""+vertexVisualisation.attr("cx")+" "+vertexVisualisation.attr("cy")}function x(){return vertexVisualisation.attr("cx")}function y(){return vertexVisualisation.attr("cy")}function startDrag(){vertexVisualisation.ox=vertexVisualisation.attr("cx");vertexVisualisation.oy=vertexVisualisation.attr("cy");vertexEdges.map(function(item){item.activate()})}function dragging(dx,dy){var newX=vertexVisualisation.ox+dx;var newY=vertexVisualisation.oy+dy;setPosition(newX,newY)}function endDrag(){vertexEdges.map(function(item){item.deactivate()})}vertexVisualisation.drag(dragging,startDrag,endDrag);function activate(){vertexVisualisation.attr({fill:configuration.activeVertexColor})}function deactivate(){vertexVisualisation.attr({fill:configuration.inactiveVertexColor})}var vertex={toFront:toFront,setPosition:setPosition,addEdge:addEdge,x:x,y:y,getPositionString:getPositionString,activate:activate,deactivate:deactivate};return vertex}function createEdgeBetween(vertex1,vertex2){var startVertex=vertex1;var endVertex=vertex2;var edgeVisualisation=raphaelPaper.path().attr({"stroke-width":configuration.edgeStrokeWidth});updateVisualisation();function getPathString(){var pathString="M "+startVertex.getPositionString()+" L "+endVertex.getPositionString();return pathString}function updateVisualisation(){var pathString=getPathString();edgeVisualisation.attr({path:pathString})}function getEdgeFunction(){var A=endVertex.y()-startVertex.y();var B=startVertex.x()-endVertex.x();var C=A*startVertex.x()+B*startVertex.y();return createLineRepresentation(A,B,C)}function belongsToEdge(point){var threshold=0.001;if(threshold&lt;(point.x-Math.min(startVertex.x(),endVertex.x()))&amp;&amp;threshold&lt;(Math.max(startVertex.x(),endVertex.x())-point.x)){return true}else{if(threshold&lt;(point.y-Math.min(startVertex.y(),endVertex.y()))&amp;&amp;threshold&lt;(Math.max(startVertex.y(),endVertex.y())-point.y)){return true}else{return false}}}function intersectWith(secondEdge){var edgeFunction=getEdgeFunction();var intersection=edgeFunction.intersect(secondEdge.getEdgeFunction());if(!intersection){return false}return(belongsToEdge(intersection)&amp;&amp;secondEdge.belongsToEdge(intersection))}function activate(){edgeVisualisation.attr({stroke:configuration.activeEdgeColor});startVertex.activate();endVertex.activate()}function deactivate(){edgeVisualisation.attr({stroke:configuration.inactiveEdgeColor});startVertex.deactivate();endVertex.deactivate()}var edge={activate:activate,deactivate:deactivate,updateVisualisation:updateVisualisation,getEdgeFunction:getEdgeFunction,intersectWith:intersectWith,belongsToEdge:belongsToEdge};startVertex.addEdge(edge);endVertex.addEdge(edge);edgeArray.push(edge);return edge}function createLineRepresentation(A,B,C){function intersect(otherLine){var A2=otherLine.A;var B2=otherLine.B;var C2=otherLine.C;var determinant=A*B2-B*A2;if(0===determinant){return null}else{var x=(B2*C-B*C2)/determinant;var y=(A*C2-A2*C)/determinant;return{x:x,y:y}}}return{A:A,B:B,C:C,intersect:intersect}}function getRandomInt(){return Math.floor(Math.random()*(configuration.randomMaxValue-configuration.randomMinValue+1))+configuration.randomMinValue}return{createVertex:createVertex,createEdgeBetween:createEdgeBetween,createLineRepresentation:createLineRepresentation,getRandomInt:getRandomInt}}function init(divName){var divElement=document.getElementById(divName);divElement.style.width=configuration.xSize+"px";divElement.style.height=configuration.ySize+"px";raphaelPaper=Raphael(divName,configuration.xSize,configuration.ySize);delete divElement;factories=createFactories(raphaelPaper);createNewGraph(configuration.difficulty)}function createNewGraph(difficultyLevel){raphaelPaper.clear();delete vertexArray;vertexArray=[];delete edgeArray;edgeArray=[];generatePlanarGraph(difficultyLevel);arrangeVerticesInCircle()}function generatePlanarGraph(numberOfLines){function generateLines(){var lineRepresentations=[];var rand=factories.getRandomInt;for(var i=0;i&lt;numberOfLines;i++){lineRepresentations.push(factories.createLineRepresentation(rand(),rand(),rand()))}lineRepresentations.map(function(line,index){line.index=index+1});var intersections=[];var linesCopy=lineRepresentations.slice();while(1&lt;linesCopy.length){var currentLine=linesCopy.pop();intersections.push.apply(intersections,linesCopy.map(function(line){return line.intersect(currentLine)}))}if(intersections.some(function(element){return(null===element)})){return null}return lineRepresentations}function pairIndex(lineIndex1,lineIndex2,numberOfLines){if(lineIndex1&gt;=lineIndex2){return pairIndex(lineIndex2,lineIndex1,numberOfLines)}var index=(lineIndex1*(2*numberOfLines-lineIndex1-1)/2)+lineIndex1-lineIndex2;return index}var lineRepresentations;do{lineRepresentations=generateLines()}while(null===lineRepresentations);var vertexCount=numberOfLines*(numberOfLines-1)/2;for(var j=0;j&lt;vertexCount;j++){vertexArray.push(factories.createVertex())}for(var lineIndex=0;lineIndex&lt;lineRepresentations.length;lineIndex++){var currentLine=lineRepresentations[lineIndex];var M=lineRepresentations.filter(function(line,index){return(index!=lineIndex)});M.sort(function(line1,line2){var intersection1=currentLine.intersect(line1);var intersection2=currentLine.intersect(line2);return(intersection2.x-intersection1.x)});for(var edgeIndex=0;edgeIndex&lt;M.length-1;edgeIndex++){var u=pairIndex(currentLine.index,M[edgeIndex].index,numberOfLines);var v=pairIndex(currentLine.index,M[edgeIndex+1].index,numberOfLines);factories.createEdgeBetween(vertexArray[u],vertexArray[v])}}vertexArray.map(function(vertex){vertex.toFront()})}function arrangeVerticesInCircle(){var arrayLength=vertexArray.length;var angleDelta=2*Math.PI/arrayLength;var hypothenuse=Math.min(configuration.xSize,configuration.ySize)/2-10;for(var vertexIndex=0;vertexIndex&lt;arrayLength;vertexIndex++){var currentVertex=vertexArray[vertexIndex];var currentAngle=vertexIndex*angleDelta;var newX=Math.cos(currentAngle)*hypothenuse+configuration.xSize/2;var newY=Math.sin(currentAngle)*hypothenuse+configuration.ySize/2;currentVertex.setPosition(newX,newY,configuration.startupAnimationTimeMs)}}function checkEdgeIntersection(){var edges=edgeArray.slice();var intersections=[];while(1&lt;edges.length){var currentEdge=edges.pop();intersections.push.apply(intersections,edges.filter(function(edge){return edge.intersectWith(currentEdge)}))}if(0&lt;intersections.length){alert("There are "+intersections.length+" intersections left to clean up.")}else{alert("Congratulations: You WON Stage "+(configuration.difficulty-3));configuration.difficulty++;createNewGraph(configuration.difficulty)}}return{init:init,checkSolution:checkEdgeIntersection,createNewGraph:createNewGraph}}(Raphael));//]]&gt;&lt;/script&gt;&lt;span style="font-weight:bold;"&gt;Object:&lt;/span&gt; Arrange the dots so that no lines cross.&lt;br /&gt;&lt;br /&gt;&lt;span id="fullpost"&gt;Simply click and hold a dot with your mouse, or touch and hold a dot with your finger, in order to move it.&lt;br /&gt;&lt;br /&gt;If you're using a touch device and find you're having trouble moving a particular dot, zoom in and try moving it again.&lt;br /&gt;&lt;br /&gt;Also, try and avoid placing the dots too close to the edge, as this may make them hard to move later.&lt;/span&gt;&lt;h3&gt;&lt;span id="fullpost"&gt;Further Controls:&lt;/span&gt;&lt;/h3&gt;&lt;span id="fullpost"&gt;&lt;span style="font-weight:bold;"&gt;Check Now!:&lt;/span&gt; If 1 or more lines are crossed, clicking this button will tell you how many intersections remain. If no lines are crossed, this button will verify this and advance you to the next level.&lt;br /&gt;&lt;br /&gt;&lt;button id="CheckButton" onclick="JSPlanarity.checkSolution()"&gt;Check Now!&lt;/button&gt;&lt;br /&gt;&lt;div id="PlanarityArea" style="background:#f2f2f2"&gt;&lt;/div&gt;&lt;br /&gt;&lt;h3&gt;Solutions:&lt;/h3&gt;&lt;a href="http://jayisgames.com/archives/2005/07/planarity.php"&gt;Planarity strategy 1&lt;/a&gt;&lt;br /&gt;&lt;a href="http://web.archive.org/web/20060818151404/http://jillie-geek42.livejournal.com/95888.html?thread=175504"&gt;Planarity strategy 2&lt;/a&gt;&lt;br /&gt;&lt;h3&gt;More Information:&lt;/h3&gt;&lt;a href="http://www.planarity.net/"&gt;Planarity home page&lt;/a&gt;&lt;br /&gt;&lt;a href="http://mkroehnert.github.com/JSPlanarity/"&gt;JSPlanarity home page&lt;/a&gt;&lt;br /&gt;&lt;a href="http://en.wikipedia.org/wiki/Planar_graph"&gt;Planar graph definition&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800835365312821409-5046475563264544584?l=gmmentalgym.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmmentalgym.blogspot.com/feeds/5046475563264544584/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/planarity.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/5046475563264544584'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/5046475563264544584'/><link rel='alternate' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/planarity.html' title='Planarity'/><author><name>Pi Guy</name><uri>http://www.blogger.com/profile/09760001560356969164</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://lh3.ggpht.com/_zQQCfNroX3w/TMDBGryIxfI/AAAAAAAAASw/_ygdD3eWHCU/s0/gmsc.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800835365312821409.post-8805397900043736435</id><published>2010-11-20T13:33:00.000-08:00</published><updated>2010-11-20T15:10:33.037-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='off-site'/><category scheme='http://www.blogger.com/atom/ns#' term='workout'/><category scheme='http://www.blogger.com/atom/ns#' term='puzzles'/><title type='text'>Triangular Peg Solitaire</title><content type='html'>&lt;style type='text/css'&gt;.offsite {border-style: solid;border-width: 2px;border-color: black;display: block;margin-left: auto;margin-right: auto;}&lt;/style&gt;&lt;script type='text/javascript'&gt;//&lt;![CDATA[function playtps() { msg = String.fromCharCode(60) + "iframe class='offsite' src='http://home.comcast.net/~gibell/pegsolitaire/Tools/Triangular/Triang.htm' width='530' height='639' scrolling='no'" + String.fromCharCode(62,60) + "/iframe" + String.fromCharCode(62,60) + "div style='text-align:center;'" + String.fromCharCode(62) + "(" + String.fromCharCode(60) + "a href='http://home.comcast.net/~gibell/pegsolitaire/Tools/Triangular/Triang.htm'" + String.fromCharCode(62) + "Iframe source" + String.fromCharCode(60) + "/a" + String.fromCharCode(62) + " courtesy of " + String.fromCharCode(60) + "a href='http://home.comcast.net/~gibell/'" + String.fromCharCode(62) + "George Bell" + String.fromCharCode(60) + "/a" + String.fromCharCode(62) + ")" + String.fromCharCode(60) + "/div" + String.fromCharCode(62); $("#gametps").html(msg);};//]]&gt;&lt;/script&gt;&lt;span id="fullpost"&gt;To begin, click the &lt;span style="font-style:italic;"&gt;Play Triangular Peg Solitaire&lt;/span&gt; button below.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:bold;"&gt;Object:&lt;/span&gt; The goal is to finish with one peg.&lt;br /&gt;&lt;br /&gt;Jump one peg over another into an empty spot, removing the jumped peg from the board. You can jump along any of the three directions parallel to the outside edges of the board. Just click on a peg and if there's a jump available, the peg will jump. If there's more than one jump available, you'll need to click on a destination.&lt;br /&gt;&lt;br /&gt;&lt;span id="fullpost"&gt;When the same peg jumps over one or more pegs, it is counted as one move. A move that captures a lot of pegs is called a sweep. After you have solved a puzzle down to one peg, you can try to find a solution with the smallest number of moves, or view the computer's solution to the problem.&lt;/span&gt;&lt;h3&gt;&lt;span id="fullpost"&gt;Further Controls:&lt;/span&gt;&lt;/h3&gt;&lt;span id="fullpost"&gt;&lt;span style="font-weight:bold;"&gt;Restart:&lt;/span&gt; Resets the game to the starting position with one peg missing.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Set Start:&lt;/span&gt; Fills the entire board with pegs. Click on one of them to set the starting vacancy (peg missing at the start). Then begin play as usual, or hit Solve.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Back:&lt;/span&gt; Take back the last jump (all the way back the start if you like). Very useful if you reach a dead end. You can also back up after pausing a demo or after the demo is finished.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solve:&lt;/span&gt; Solve the puzzle down to one peg (play a demo). You do not have to Restart the game before hitting Solve, it will reset automatically.. When you play a demo, this button changes to Pause, and if you click it the demo will pause, and the button changes to Continue. You can use these controls to halt the solution at any intermediate point. You can even start playing from an intermediate point — however if you play a move manually you cannot continue the demo.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Current Board Menu:&lt;/span&gt; Use this to change the size of the board to a triangle with 4 to 24 pegs on a side (10 to 300 holes). If the larger boards do not fit on your screen, set the Board Scale to &lt;span style="font-style:italic;"&gt;Small&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Board Scale Menu:&lt;/span&gt; For playing the game yourself this is best set to &lt;span style="font-style:italic;"&gt;Normal&lt;/span&gt;. However to display the larger demos you may want to set it to &lt;span style="font-style:italic;"&gt;Small&lt;/span&gt;, which shrinks the board by 50% in both directions.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Demo Speed Menu:&lt;/span&gt; This sets the time delay between jumps when playing a demo. You can even change this control while a demo is playing, to speed it up or slow it down. &lt;span style="font-style:italic;"&gt;Slow&lt;/span&gt;, &lt;span style="font-style:italic;"&gt;Normal&lt;/span&gt;, &lt;span style="font-style:italic;"&gt;Fast&lt;/span&gt;, &lt;span style="font-style:italic;"&gt;Faster&lt;/span&gt; and &lt;span style="font-style:italic;"&gt;Fastest&lt;/span&gt; correspond to delays of 2, 1, 1/2, 1/10 and 0 seconds between jumps. Note that the Fastest delay of zero may not update correctly in all browsers.&lt;br /&gt;&lt;br /&gt;&lt;div id="gametps"&gt;&lt;a class="gmButton"  onClick="playtps()"&gt;Play Triangular Peg Solitaire&lt;/a&gt;&lt;/div&gt;&lt;h3&gt;Solutions:&lt;/h3&gt;&lt;a href="http://arxiv.org/pdf/math/0703865" target="_blank"&gt;How To Solve Triangular Peg Solitaire&lt;/a&gt; (PDF, opens in new window)&lt;br /&gt;&lt;a href="http://home.comcast.net/~gibell/pegsolitaire/tindex.html"&gt;Theory of Triangular Peg Solitaire&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800835365312821409-8805397900043736435?l=gmmentalgym.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmmentalgym.blogspot.com/feeds/8805397900043736435/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/triangular-peg-solitaire.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/8805397900043736435'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/8805397900043736435'/><link rel='alternate' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/triangular-peg-solitaire.html' title='Triangular Peg Solitaire'/><author><name>Pi Guy</name><uri>http://www.blogger.com/profile/09760001560356969164</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://lh3.ggpht.com/_zQQCfNroX3w/TMDBGryIxfI/AAAAAAAAASw/_ygdD3eWHCU/s0/gmsc.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800835365312821409.post-2679299470958473916</id><published>2010-11-19T12:18:00.000-08:00</published><updated>2010-11-22T23:42:24.807-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='off-site'/><category scheme='http://www.blogger.com/atom/ns#' term='workout'/><category scheme='http://www.blogger.com/atom/ns#' term='puzzles'/><category scheme='http://www.blogger.com/atom/ns#' term='logic'/><title type='text'>Mastermind</title><content type='html'>&lt;style type='text/css'&gt;.offsite {border-style: solid;border-width: 2px;border-color: black;display: block;margin-left: auto;margin-right: auto;}&lt;/style&gt;&lt;script type='text/javascript'&gt;//&lt;![CDATA[function playmm() { msg = String.fromCharCode(60) + "iframe class='offsite' src='http://www.gamesforthebrain.com/gadgetized/game/guesscolors/' width='530' height='600' scrolling='no'" + String.fromCharCode(62,60) + "/iframe" + String.fromCharCode(62,60) + "div style='text-align:center;'" + String.fromCharCode(62) + "(" + String.fromCharCode(60) + "a href='http://www.gamesforthebrain.com/gadgetized/game/guesscolors/'" + String.fromCharCode(62) + "Iframe source" + String.fromCharCode(60) + "/a" + String.fromCharCode(62) + " courtesy of " + String.fromCharCode(60) + "a href='http://www.gamesforthebrain.com/'" + String.fromCharCode(62) + "Games for the Brain" + String.fromCharCode(60) + "/a" + String.fromCharCode(62) + ")" + String.fromCharCode(60) + "/div" + String.fromCharCode(62); $("#gamemm").html(msg);};//]]&gt;&lt;/script&gt;&lt;span id="fullpost"&gt;To begin, click the &lt;span style="font-style:italic;"&gt;Play Mastermind&lt;/span&gt; button below.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:bold;"&gt;Object:&lt;/span&gt; The object of Mastermind is to try and discover the computer's secret arrangement of 4 colors. On each turn, you guess the color code, and the computer will tell you, via a response in black and white pegs, how close you are the secret arrangement.&lt;br /&gt;&lt;br /&gt;You win if you correctly guess the code in 9 tries or less.&lt;br /&gt;&lt;br /&gt;&lt;span id="fullpost"&gt;You enter your guess from left to right by clicking on one of the 6 colors next to the board.&lt;br /&gt;&lt;br /&gt;The response is given in the form of black and white pegs. For every black peg, there is a correct color in the correct position. For every white peg, there is a correct color in an incorrect position. The response pegs do not, however, indicate to which colors and positions they refer.&lt;/span&gt;&lt;h3&gt;&lt;span id="fullpost"&gt;Further Controls:&lt;/span&gt;&lt;/h3&gt;&lt;span id="fullpost"&gt;&lt;span style="font-weight:bold;"&gt;Restart:&lt;/span&gt; Begins a new game with a new secret 4-color arrangement.&lt;br /&gt;&lt;br /&gt;&lt;div id="gamemm"&gt;&lt;a class="gmButton"  onClick="playmm()"&gt;Play Mastermind&lt;/a&gt;&lt;/div&gt;&lt;h3&gt;Solutions:&lt;/h3&gt;&lt;a href="http://www.tnelson.demon.co.uk/mastermind/index.html"&gt;Mastermind solution&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.tnelson.demon.co.uk/mastermind/table.html"&gt;Mastermind strategy table&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800835365312821409-2679299470958473916?l=gmmentalgym.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmmentalgym.blogspot.com/feeds/2679299470958473916/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/mastermind.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/2679299470958473916'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/2679299470958473916'/><link rel='alternate' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/mastermind.html' title='Mastermind'/><author><name>Pi Guy</name><uri>http://www.blogger.com/profile/09760001560356969164</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://lh3.ggpht.com/_zQQCfNroX3w/TMDBGryIxfI/AAAAAAAAASw/_ygdD3eWHCU/s0/gmsc.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800835365312821409.post-8590344705038443545</id><published>2010-11-17T23:53:00.000-08:00</published><updated>2010-11-22T23:43:18.855-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='off-site'/><category scheme='http://www.blogger.com/atom/ns#' term='workout'/><category scheme='http://www.blogger.com/atom/ns#' term='puzzles'/><category scheme='http://www.blogger.com/atom/ns#' term='logic'/><title type='text'>Sudoku</title><content type='html'>&lt;style type='text/css'&gt;.offsite {border-style: solid;border-width: 2px;border-color: black;display: block;margin-left: auto;margin-right: auto;}&lt;/style&gt;&lt;script type='text/javascript'&gt;//&lt;![CDATA[function playsu() { msg = String.fromCharCode(60) + "iframe class='offsite' src='http://www.gamesforthebrain.com/gadgetized/game/sudoku/' width='530' height='575'  scrolling='no'" + String.fromCharCode(62,60) + "/iframe" + String.fromCharCode(62,60) + "div style='text-align:center;'" + String.fromCharCode(62) + "(" + String.fromCharCode(60) + "a href='http://www.gamesforthebrain.com/gadgetized/game/sudoku/'" + String.fromCharCode(62) + "Iframe source" + String.fromCharCode(60) + "/a" + String.fromCharCode(62) + " courtesy of " + String.fromCharCode(60) + "a href='http://www.gamesforthebrain.com/'" + String.fromCharCode(62) + "Games for the Brain" + String.fromCharCode(60) + "/a" + String.fromCharCode(62) + ")" + String.fromCharCode(60) + "/div" + String.fromCharCode(62); $("#gamesu").html(msg);};//]]&gt;&lt;/script&gt;&lt;span id="fullpost"&gt;To begin, click the &lt;span style="font-style:italic;"&gt;Play Sudoku&lt;/span&gt; button below.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:bold;"&gt;Object:&lt;/span&gt; The objective is to fill a 9×9 grid with digits so that each column, each row, and each of the nine 3×3 sub-grids that compose the grid (also called "boxes", "blocks", "regions", or "sub-squares") contains all of the digits from 1 to 9.&lt;br /&gt;&lt;br /&gt;&lt;span id="fullpost"&gt;To generate a new puzzle, use your browser to reload the page.&lt;/span&gt;&lt;h3&gt;&lt;span id="fullpost"&gt;Further Controls:&lt;/span&gt;&lt;/h3&gt;&lt;span id="fullpost"&gt;&lt;span style="font-weight:bold;"&gt;Continue:&lt;/span&gt; Click this button to verify your solution and end play. Clicking this same button from the verification screen will take you to a completely new puzzle.&lt;br /&gt;&lt;br /&gt;&lt;div id="gamesu"&gt;&lt;a class="gmButton"  onClick="playsu()"&gt;Play Sudoku&lt;/a&gt;&lt;/div&gt;&lt;h3&gt;Solutions:&lt;/h3&gt;&lt;a href="http://www.angusj.com/sudoku/hints.php"&gt;How To Solve Sudoku Puzzles&lt;/a&gt;&lt;br /&gt;&lt;a href="http://headinside.blogspot.com/2006/04/review-how-to-solve-every-sudoku.html"&gt;eBook Recommendation for Solving Sudoku Puzzles&lt;/a&gt;&lt;br /&gt;&lt;h3&gt;More Information:&lt;/h3&gt;&lt;a href="http://en.wikipedia.org/wiki/Sudoku"&gt;Wikipedia: Sudoku&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800835365312821409-8590344705038443545?l=gmmentalgym.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmmentalgym.blogspot.com/feeds/8590344705038443545/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/sudoku.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/8590344705038443545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/8590344705038443545'/><link rel='alternate' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/sudoku.html' title='Sudoku'/><author><name>Pi Guy</name><uri>http://www.blogger.com/profile/09760001560356969164</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://lh3.ggpht.com/_zQQCfNroX3w/TMDBGryIxfI/AAAAAAAAASw/_ygdD3eWHCU/s0/gmsc.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800835365312821409.post-3946751827370158270</id><published>2010-11-16T21:03:00.000-08:00</published><updated>2010-11-20T15:16:43.097-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='off-site'/><category scheme='http://www.blogger.com/atom/ns#' term='workout'/><category scheme='http://www.blogger.com/atom/ns#' term='puzzles'/><category scheme='http://www.blogger.com/atom/ns#' term='math'/><title type='text'>Towers of Hanoi</title><content type='html'>&lt;style type='text/css'&gt;.offsite {border-style: solid;border-width: 2px;border-color: black;display: block;margin-left: auto;margin-right: auto;}&lt;/style&gt;&lt;script type='text/javascript'&gt;//&lt;![CDATA[function playth() { msg = String.fromCharCode(60) + "iframe class='offsite' src='http://www.jaapsch.net/puzzles/javascript/hanoij.htm' width='330' height='250'" + String.fromCharCode(62,60) + "/iframe" + String.fromCharCode(62,60) + "div style='text-align:center;'" + String.fromCharCode(62) + "(" + String.fromCharCode(60) + "a href='http://www.jaapsch.net/puzzles/javascript/hanoij.htm'" + String.fromCharCode(62) + "Iframe source" + String.fromCharCode(60) + "/a" + String.fromCharCode(62) + " courtesy of " + String.fromCharCode(60) + "a href='http://www.jaapsch.net/puzzles/'" + String.fromCharCode(62) + "Jaap's Puzzle Page" + String.fromCharCode(60) + "/a" + String.fromCharCode(62) + ")" + String.fromCharCode(60) + "/div" + String.fromCharCode(62); $("#gameth").html(msg);};//]]&gt;&lt;/script&gt;&lt;span id="fullpost"&gt;To begin, click the &lt;span style="font-style:italic;"&gt;Play Towers of Hanoi&lt;/span&gt; button below.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:bold;"&gt;Object:&lt;/span&gt; The aim is to pile the disks up on the third peg, with the disks arranged in order, the largest at the bottom.&lt;br /&gt;&lt;br /&gt;You may only move one disk at a time, and only place it on an empty peg or on a larger disk.&lt;br /&gt;&lt;br /&gt;To move a disk, just click on the peg it is on and then click on the peg you want to move it to.&lt;br /&gt;&lt;h3&gt;&lt;span id="fullpost"&gt;Further controls:&lt;/span&gt;&lt;/h3&gt;&lt;span id="fullpost"&gt;&lt;span style="font-weight:bold;"&gt;Up/Down:&lt;/span&gt; These buttons change the size of the puzzle.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Mix:&lt;/span&gt; This button randomly mixes the puzzle up.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Reset:&lt;/span&gt; Resets the puzzle to the initial position.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Edit:&lt;/span&gt; Allows you to set up any position. The disks are cleared, and then you have to specify on which peg each of the pieces is, starting with the largest.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Play/Back:&lt;/span&gt; Solves the puzzle. Each time you click the play button, one move is performed until the puzzle is solved. The backwards play button does the same, but brings. the puzzle closer to the start position.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Forward/Rewind:&lt;/span&gt; This is like the play/back buttons, except that the moves will be continuously performed till the end or beginning. Clicking the button more than once speeds it up. To stop, press one of the other buttons.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Help:&lt;/span&gt; Shows a help screen with these same instructions.&lt;br /&gt;&lt;br /&gt;&lt;div id="gameth"&gt;&lt;a class="gmButton"  onClick="playth()"&gt;Play Towers of Hanoi&lt;/a&gt;&lt;/div&gt;&lt;h3&gt;Solutions:&lt;/h3&gt;&lt;a href="http://www.jaapsch.net/puzzles/hanoi.htm"&gt;Towers of Hanoi strategy&lt;/a&gt;&lt;br /&gt;&lt;h3&gt;More Information:&lt;/h3&gt;&lt;a href="http://www.jaapsch.net/puzzles/hanoi.htm"&gt;Jaap's Puzzle Page: Tower of Hanoi&lt;/a&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800835365312821409-3946751827370158270?l=gmmentalgym.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmmentalgym.blogspot.com/feeds/3946751827370158270/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/towers-of-hanoi.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/3946751827370158270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/3946751827370158270'/><link rel='alternate' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/towers-of-hanoi.html' title='Towers of Hanoi'/><author><name>Pi Guy</name><uri>http://www.blogger.com/profile/09760001560356969164</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://lh3.ggpht.com/_zQQCfNroX3w/TMDBGryIxfI/AAAAAAAAASw/_ygdD3eWHCU/s0/gmsc.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800835365312821409.post-233448850124403181</id><published>2010-11-16T20:27:00.000-08:00</published><updated>2010-11-20T14:39:44.942-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='off-site'/><category scheme='http://www.blogger.com/atom/ns#' term='workout'/><category scheme='http://www.blogger.com/atom/ns#' term='puzzles'/><category scheme='http://www.blogger.com/atom/ns#' term='math'/><title type='text'>Lights Out</title><content type='html'>&lt;style type='text/css'&gt;.offsite {border-style: solid;border-width: 2px;border-color: black;display: block;margin-left: auto;margin-right: auto;}&lt;/style&gt;&lt;script type='text/javascript'&gt;//&lt;![CDATA[function playlo() { msg = String.fromCharCode(60) + "iframe class='offsite' src='http://www.jaapsch.net/puzzles/javascript/lightjcl.htm' width='270' height='240'" + String.fromCharCode(62,60) + "/iframe" + String.fromCharCode(62,60) + "div style='text-align:center;'" + String.fromCharCode(62) + "(" + String.fromCharCode(60) + "a href='http://www.jaapsch.net/puzzles/javascript/lightjcl.htm'" + String.fromCharCode(62) + "Iframe source" + String.fromCharCode(60) + "/a" + String.fromCharCode(62) + " courtesy of " + String.fromCharCode(60) + "a href='http://www.jaapsch.net/puzzles/'" + String.fromCharCode(62) + "Jaap's Puzzle Page" + String.fromCharCode(60) + "/a" + String.fromCharCode(62) + ")" + String.fromCharCode(60) + "/div" + String.fromCharCode(62); $("#gamelo").html(msg);};//]]&gt;&lt;/script&gt;&lt;span id="fullpost"&gt;To begin, click the &lt;span style="font-style:italic;"&gt;Play Lights Out&lt;/span&gt; button below.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:bold;"&gt;Object:&lt;/span&gt; Click any light to change the state of itself and its non-diagonally adjacent lights. Your goal is to turn all the lights off.&lt;br /&gt;&lt;h3&gt;&lt;span id="fullpost"&gt;Further controls:&lt;/span&gt;&lt;/h3&gt;&lt;span id="fullpost"&gt;&lt;span style="font-weight:bold;"&gt;Mix:&lt;/span&gt; Randomly mix up the board.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Edit:&lt;/span&gt; Go to edit mode. Allows you to set up a position to solve. Press Edit again when finished.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solve:&lt;/span&gt; Show shortest solution.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Reset:&lt;/span&gt; Clear the board.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Puzzle:&lt;/span&gt; Select one of the 50 built-in puzzles.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Help:&lt;/span&gt; Shows a help screen with these same instructions.&lt;br /&gt;&lt;br /&gt;&lt;div id="gamelo"&gt;&lt;a class="gmButton"  onClick="playlo()"&gt;Play Lights Out&lt;/a&gt;&lt;/div&gt;&lt;h3&gt;Solution:&lt;/h3&gt;&lt;a href="http://www.jaapsch.net/puzzles/lights.htm#solution"&gt;Lights Out strategy&lt;/a&gt;&lt;br /&gt;&lt;h3&gt;More Information:&lt;/h3&gt;&lt;a href="http://www.jaapsch.net/puzzles/lights.htm"&gt;Jaap's Puzzle Page: Lights Out Page&lt;/a&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800835365312821409-233448850124403181?l=gmmentalgym.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmmentalgym.blogspot.com/feeds/233448850124403181/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/lights-out.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/233448850124403181'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/233448850124403181'/><link rel='alternate' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/lights-out.html' title='Lights Out'/><author><name>Pi Guy</name><uri>http://www.blogger.com/profile/09760001560356969164</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://lh3.ggpht.com/_zQQCfNroX3w/TMDBGryIxfI/AAAAAAAAASw/_ygdD3eWHCU/s0/gmsc.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800835365312821409.post-7306966646123760272</id><published>2010-11-16T19:42:00.000-08:00</published><updated>2010-11-22T23:43:18.856-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='off-site'/><category scheme='http://www.blogger.com/atom/ns#' term='workout'/><category scheme='http://www.blogger.com/atom/ns#' term='puzzles'/><category scheme='http://www.blogger.com/atom/ns#' term='math'/><category scheme='http://www.blogger.com/atom/ns#' term='logic'/><title type='text'>Instant Insanity</title><content type='html'>&lt;style type='text/css'&gt;.offsite {border-style: solid;border-width: 2px;border-color: black;display: block;margin-left: auto;margin-right: auto;}&lt;/style&gt;&lt;script type='text/javascript'&gt;//&lt;![CDATA[function playii() { msg = String.fromCharCode(60) + "iframe class='offsite' src='http://www.jaapsch.net/puzzles/javascript/insanitj.htm' width='314' height='166'" + String.fromCharCode(62,60) + "/iframe" + String.fromCharCode(62,60) + "div style='text-align:center;'" + String.fromCharCode(62) + "(" + String.fromCharCode(60) + "a href='http://www.jaapsch.net/puzzles/javascript/insanitj.htm'" + String.fromCharCode(62) + "Iframe source" + String.fromCharCode(60) + "/a" + String.fromCharCode(62) + " courtesy of " + String.fromCharCode(60) + "a href='http://www.jaapsch.net/puzzles/'" + String.fromCharCode(62) + "Jaap's Puzzle Page" + String.fromCharCode(60) + "/a" + String.fromCharCode(62) + ")" + String.fromCharCode(60) + "/div" + String.fromCharCode(62); $("#gameii").html(msg);};//]]&gt;&lt;/script&gt;&lt;span id="fullpost"&gt;To begin, click the &lt;span style="font-style:italic;"&gt;Play Instant Insanity&lt;/span&gt; button below.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:bold;"&gt;Object:&lt;/span&gt; The aim of this puzzle is to arrange the cubes in a row so that each of the four sides show all four different colours.&lt;br /&gt;&lt;br /&gt;&lt;span id="fullpost"&gt;Click on a face of a cube to turn it in that direction.&lt;/span&gt;&lt;h3&gt;&lt;span id="fullpost"&gt;Further controls:&lt;/span&gt;&lt;/h3&gt;&lt;span id="fullpost"&gt;&lt;span style="font-weight:bold;"&gt;Mix:&lt;/span&gt;   This button sets the cubes in a random position.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Edit:&lt;/span&gt;Allows you to edit the cubes. Clicking any face of a cube will change its colour. Keep clicking each face until it is the colour you want. Click the edit button again when you are finished.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solve:&lt;/span&gt; Solves the puzzle. It tries all combinations to find a solution. Clicking it again will try find a different solution if there is one, so by repeatedly clicking the button all solutions will be shown.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Reset:&lt;/span&gt; Resets to the original puzzle in the solved position.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Help:&lt;/span&gt; Shows a help screen with these same instructions.&lt;br /&gt;&lt;br /&gt;&lt;div id="gameii"&gt;&lt;a class="gmButton"  onClick="playii()"&gt;Play Instant Insanity&lt;/a&gt;&lt;/div&gt;&lt;h3&gt;Solutions:&lt;/h3&gt;&lt;a href="http://www.maa.org/mathland/mathtrek_8_9_99.html"&gt;Instant Insanity solution 1&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.jaapsch.net/puzzles/insanity.htm"&gt;Instant Insanity solution 2&lt;/a&gt;&lt;br /&gt;&lt;h3&gt;More Information:&lt;/h3&gt;&lt;a href="http://headinside.blogspot.com/2010/08/frank-armbrusters-instant-insanity.html"&gt;Frank Armbruster's Instant Insanity&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.jaapsch.net/puzzles/insanity.htm"&gt;Jaap's Puzzle Page: Instant Insanity / Buvos Golyok / Drive Ya Crazy&lt;/a&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800835365312821409-7306966646123760272?l=gmmentalgym.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmmentalgym.blogspot.com/feeds/7306966646123760272/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/instant-insanity_16.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/7306966646123760272'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/7306966646123760272'/><link rel='alternate' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/instant-insanity_16.html' title='Instant Insanity'/><author><name>Pi Guy</name><uri>http://www.blogger.com/profile/09760001560356969164</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://lh3.ggpht.com/_zQQCfNroX3w/TMDBGryIxfI/AAAAAAAAASw/_ygdD3eWHCU/s0/gmsc.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800835365312821409.post-7400444048434955297</id><published>2010-11-07T12:00:00.001-08:00</published><updated>2010-11-16T17:52:15.644-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tools'/><category scheme='http://www.blogger.com/atom/ns#' term='site features'/><title type='text'>Timed Quiz Generator</title><content type='html'>&lt;style type='text/css'&gt;#code { width: 520px; height: 60px;}&lt;/style&gt;&lt;script type='text/javascript'&gt;//&lt;![CDATA[$(function(){ $('#code').autoResizable({  maxHeight: 1000 }); $("input#vidtutbutton").bind("click", function(e) {  $("#vidtutorial").toggle(); });  $(window).load(function() {  qzslv = new Array();  stp = 0;  em = 0;  loc = 0;  contnts = ""; });}); function addToList() { textFieldValue = document.getElementById("alt0"); textFieldValue = textFieldValue.value; if (textFieldValue != "") {        qzslv[stp] = new Array();        for (i=0;i&lt;=6;i++) {            others = document.getElementById("alt"+i);            qzslv[stp][i] = others.value;        }        textAreaToChange = document.getElementById("anslist");        contnts = contnts + qzslv[stp][0] + ": ";        for (i=1;i&lt;=6;i++) {            if (qzslv[stp][i] != "") {                contnts = contnts + "[" + qzslv[stp][i] + "] "            }        }        contnts = contnts + "\r";        textAreaToChange.value = contnts;        stp = stp + 1;        if (stp == 1) {            btns = document.getElementById("edtng");            btns.disabled = false;        }        if (stp &gt;= 2) {            btns = document.getElementById("primsg");            btns.disabled = false;            btns = document.getElementById("pritxt");            btns.readOnly = false;            btns = document.getElementById("prilnk");            btns.readOnly = false;            btns = document.getElementById("primenu");            btns.disabled = false;            btns.length = stp + 1;            for (i=0;i&lt;=stp;i++) {            btns.options[i].text=i;            }            btns.selectedIndex = 0;            actSec();        }        clrAns(); } else {  alert("Please enter a primary answer."); }}function clrAns() {    for (i=0;i&lt;=6;i++) {        others = document.getElementById("alt"+i);        others.value = "";    }    textAreaToChange = document.getElementById("code");    textAreaToChange.value = "";}function emptyList() {    if (stp &gt; 0) {        ms = confirm("Are you sure you want to delete all your answers?");        if (ms == true) {            contnts = "";            stp = stp - 1;            for (i=0;i&lt;=stp;i++) {                for (j=0;j&lt;=6;j++) {                    qzslv[i][j] = "";                }            }            stp = 0;            textAreaToChange = document.getElementById("anslist");            textAreaToChange.value = contnts;            em = 0;            btns = document.getElementById("edtng");            btns.checked = false;            btns.disabled = true;            btns = document.getElementById("clrlist");            btns.disabled = true;            btns = document.getElementById("ArUp");            btns.disabled = true;            btns = document.getElementById("ArDn");            btns.disabled = true;            btns = document.getElementById("EdAr");            btns.disabled = true;            btns = document.getElementById("snip");            btns.disabled = true;            btns = document.getElementById("addans");            btns.disabled = false;            btns = document.getElementById("clrans");            btns.disabled = false;            btns = document.getElementById("primsg");            btns.checked = false;            btns.disabled = true;            btns = document.getElementById("primenu");            btns.length = 1;            btns.options[0].text=0;            btns.selectedIndex = 0;            btns.disabled = true;            btns = document.getElementById("pritxt");            btns.value = "";            btns.readOnly = true;            btns = document.getElementById("prilnk");            btns.value = "";            btns.readOnly = true;            btns = document.getElementById("secmsg");            btns.checked = false;            btns.disabled = true;            btns = document.getElementById("sectxt");            btns.value = "";            btns.readOnly = true;            btns = document.getElementById("seclnk");            btns.value = "";            btns.readOnly = true;            btns = document.getElementById("nwwn");            btns.checked = false;            btns.disabled = true;            clrAns();        }    }}function edtmode() {    if (em == 0) {        em = 1;        btns = document.getElementById("clrlist");        btns.disabled = false;        btns = document.getElementById("ArUp");        btns.disabled = true;        if (stp == 1) {            btns = document.getElementById("ArDn");            btns.disabled = true;        }        else {            btns = document.getElementById("ArDn");            btns.disabled = false;        }        btns = document.getElementById("EdAr");        btns.disabled = false;        btns = document.getElementById("snip");        btns.disabled = false;        btns = document.getElementById("addans");        btns.disabled = true;        btns = document.getElementById("clrans");        btns.disabled = true;        clrAns();        mkArwLst();    }    else {        em = 0;        btns = document.getElementById("clrlist");        btns.disabled = true;        btns = document.getElementById("ArUp");        btns.disabled = true;        btns = document.getElementById("ArDn");        btns.disabled = true;        btns = document.getElementById("EdAr");        btns.disabled = true;        btns = document.getElementById("snip");        btns.disabled = true;        btns = document.getElementById("addans");        btns.disabled = false;        btns = document.getElementById("clrans");        btns.disabled = false;        btns = document.getElementById("rtnans");        btns.disabled = true;        btns = document.getElementById("cncledt");        btns.disabled = true;        clrAns();        rstrLst();    }}function rstrLst() {    textAreaToChange = document.getElementById("anslist");    textAreaToChange.value = contnts;}function mkArwLst() {    arrw = 0;    loc = 0;    arwedt = "";    q = stp - 1;    for (i=0;i&lt;=q;i++) {        if (i == 0) {            arwedt = "--" + String.fromCharCode(62);        }        arwedt = arwedt + qzslv[i][0] + ": ";        for (j=1;j&lt;=6;j++) {            if (qzslv[i][j] != "") {                arwedt = arwedt + "[" + qzslv[i][j] + "] ";            }        }        arwedt = arwedt + "\r";    }    btns = document.getElementById("ArUp");    btns.disabled = true;    if (stp == 1) {        btns = document.getElementById("ArDn");        btns.disabled = true;    }    textAreaToChange = document.getElementById("anslist");    textAreaToChange.value = arwedt;}function arwDn() {    loc = loc + 1;    if (loc == (stp - 1)) {        btns = document.getElementById("ArDn");        btns.disabled = true;    }    if (loc != 0) {        btns = document.getElementById("ArUp");        btns.disabled = false;    }    arwedt = "";    q = stp - 1;    for (i=0;i&lt;=q;i++) {        if (i == loc) {            arwedt = arwedt + "--" + String.fromCharCode(62);        }        arwedt = arwedt + qzslv[i][0] + ": ";        for (j=1;j&lt;=6;j++) {            if (qzslv[i][j] != "") {                arwedt = arwedt + "[" + qzslv[i][j] + "] ";            }        }        arwedt = arwedt + "\r";    }    textAreaToChange = document.getElementById("anslist");    textAreaToChange.value = arwedt;}function arwUp() {    loc = loc - 1;    if (loc == 0) {        btns = document.getElementById("ArUp");        btns.disabled = true;    }    if (loc &lt; (stp - 1)) {        btns = document.getElementById("ArDn");        btns.disabled = false;    }    arwedt = "";    q = stp - 1;    for (i=0;i&lt;=q;i++) {        if (i == loc) {            arwedt = arwedt + "--" + String.fromCharCode(62);        }        arwedt = arwedt + qzslv[i][0] + ": ";        for (j=1;j&lt;=6;j++) {            if (qzslv[i][j] != "") {                arwedt = arwedt + "[" + qzslv[i][j] + "] ";            }        }        arwedt = arwedt + "\r";    }    textAreaToChange = document.getElementById("anslist");    textAreaToChange.value = arwedt;}function dltitm() {    ms = confirm("Are you sure you want to delete this answer and its alternatives?");    if (ms == true) {        for (i=0;i&lt;=6;i++) {            qzslv[loc][i] = "";        }        if (loc != (stp - 1)) {            for (i=loc;i&lt;=(stp - 2);i++) {                for (j=0;j&lt;=6;j++) {                    qzslv[i][j] = qzslv[i+1][j];                    qzslv[i+1][j] = "";                }            }        }        stp = stp - 1;        loc = 0;        contnts = "";        arwedt = "";        for (i=0;i&lt;=(stp - 1);i++) {            contnts = contnts + qzslv[i][0] + ": ";            if (i == loc) {                arwedt = arwedt + "--" + String.fromCharCode(62) ;            }            arwedt = arwedt + qzslv[i][0] + ": ";            for (j=1;j&lt;=6;j++) {                if (qzslv[i][j] != "") {                    contnts = contnts + "[" + qzslv[i][j] + "] ";                    arwedt = arwedt + "[" + qzslv[i][j] + "] ";                }            }            contnts = contnts + "\r";            arwedt = arwedt + "\r";        }        textAreaToChange = document.getElementById("anslist");        textAreaToChange.value = arwedt;        btns = document.getElementById("ArUp");        btns.disabled = true;        btns = document.getElementById("primenu");        btns.length = stp + 1;        for (i=0;i&lt;=stp;i++) {            btns.options[i].text=i;        }        btns.selectedIndex = 0;        if (stp &gt; 1) {            btns = document.getElementById("ArDn");            btns.disabled = false;        }        else {            btns = document.getElementById("ArDn");            btns.disabled = true;        }        if (stp &lt; 2) {            btns = document.getElementById("primsg");            btns.checked = false;            btns.disabled = true;            btns = document.getElementById("primenu");            btns.length = 1;            btns.options[0].text=0;            btns.selectedIndex = 0;            btns.disabled = true;            btns = document.getElementById("pritxt");            btns.value = "";            btns.readOnly = true;            btns = document.getElementById("prilnk");            btns.value = "";            btns.readOnly = true;            btns = document.getElementById("secmsg");            btns.checked = false;            btns.disabled = true;            btns = document.getElementById("sectxt");            btns.value = "";            btns.readOnly = true;            btns = document.getElementById("seclnk");            btns.value = "";            btns.readOnly = true;            btns = document.getElementById("nwwn");            btns.checked = false;            btns.disabled = true;        }        if (stp == 0) {            em = 0;            btns = document.getElementById("edtng");            btns.checked = false;            btns.disabled = true;            btns = document.getElementById("clrlist");            btns.disabled = true;            btns = document.getElementById("ArUp");            btns.disabled = true;            btns = document.getElementById("ArDn");            btns.disabled = true;            btns = document.getElementById("EdAr");            btns.disabled = true;            btns = document.getElementById("snip");            btns.disabled = true;            btns = document.getElementById("addans");            btns.disabled = false;            btns = document.getElementById("clrans");            btns.disabled = false;            btns = document.getElementById("primsg");            btns.checked = false;            btns.disabled = true;            btns = document.getElementById("primenu");            btns.length = 1;            btns.options[0].text=0;            btns.selectedIndex = 0;            btns.disabled = true;            btns = document.getElementById("pritxt");            btns.value = "";            btns.readOnly = true;            btns = document.getElementById("prilnk");            btns.value = "";            btns.readOnly = true;            btns = document.getElementById("secmsg");            btns.checked = false;            btns.disabled = true;            btns = document.getElementById("sectxt");            btns.value = "";            btns.readOnly = true;            btns = document.getElementById("seclnk");            btns.value = "";            btns.readOnly = true;            btns = document.getElementById("nwwn");            btns.checked = false;            btns.disabled = true;            clrAns();        }    }}function edtAns() {    btns = document.getElementById("EdAr");    btns.disabled = true;    btns = document.getElementById("snip");    btns.disabled = true;    btns = document.getElementById("clrlist");    btns.disabled = true;    btns = document.getElementById("ArUp");    btns.disabled = true;    btns = document.getElementById("ArDn");    btns.disabled = true;    btns = document.getElementById("rtnans");    btns.disabled = false;    btns = document.getElementById("cncledt");    btns.disabled = false;    for (i=0;i&lt;=6;i++) {        others = document.getElementById("alt"+i);        others.value = qzslv[loc][i];    }    arwedt = "";    q = stp - 1;    for (i=0;i&lt;=q;i++) {        if (i == loc) {            arwedt = arwedt + "--" + String.fromCharCode(62) + "**editing**";        }        else {            arwedt = arwedt + qzslv[i][0] + ": ";            for (j=1;j&lt;=6;j++) {                if (qzslv[i][j] != "") {                    arwedt = arwedt + "[" + qzslv[i][j] + "] ";                }            }        }        arwedt = arwedt + "\r";    }    textAreaToChange = document.getElementById("anslist");    textAreaToChange.value = arwedt;}function retToList() {    textFieldValue = document.getElementById("alt0"); textFieldValue = textFieldValue.value; if (textFieldValue != "") {        for (i=0;i&lt;=6;i++) {            others = document.getElementById("alt"+i);            qzslv[loc][i] = others.value;        }        contnts = "";        arwedt = "";        for (i=0;i&lt;=(stp - 1);i++) {            contnts = contnts + qzslv[i][0] + ": ";            if (i == loc) {                arwedt = arwedt + "--" + String.fromCharCode(62) ;            }            arwedt = arwedt + qzslv[i][0] + ": ";            for (j=1;j&lt;=6;j++) {                if (qzslv[i][j] != "") {                    contnts = contnts + "[" + qzslv[i][j] + "] ";                    arwedt = arwedt + "[" + qzslv[i][j] + "] ";                }            }            contnts = contnts + "\r";            arwedt = arwedt + "\r";        }        textAreaToChange = document.getElementById("anslist");        textAreaToChange.value = arwedt;        clrAns();        btns = document.getElementById("EdAr");        btns.disabled = false;        btns = document.getElementById("snip");        btns.disabled = false;        btns = document.getElementById("clrlist");        btns.disabled = false;        btns = document.getElementById("ArUp");        btns.disabled = false;        btns = document.getElementById("ArDn");        btns.disabled = false;        if (loc == 0) {            btns = document.getElementById("ArUp");            btns.disabled = true;        }        if (loc == (stp-1)) {            btns = document.getElementById("ArDn");            btns.disabled = true;        }        btns = document.getElementById("rtnans");        btns.disabled = true;        btns = document.getElementById("cncledt");        btns.disabled = true; } else {  alert("Please enter a primary answer."); }}function cnclEdit() {    arwedt = "";    for (i=0;i&lt;=(stp - 1);i++) {        if (i == loc) {            arwedt = arwedt + "--" + String.fromCharCode(62);        }        arwedt = arwedt + qzslv[i][0] + ": ";        for (j=1;j&lt;=6;j++) {            if (qzslv[i][j] != "") {                arwedt = arwedt + "[" + qzslv[i][j] + "] ";            }        }        arwedt = arwedt + "\r";    }    textAreaToChange = document.getElementById("anslist");    textAreaToChange.value = arwedt;    clrAns();    btns = document.getElementById("EdAr");    btns.disabled = false;    btns = document.getElementById("snip");    btns.disabled = false;    btns = document.getElementById("clrlist");    btns.disabled = false;    btns = document.getElementById("ArUp");    btns.disabled = false;    btns = document.getElementById("ArDn");    btns.disabled = false;    if (loc == 0) {        btns = document.getElementById("ArUp");        btns.disabled = true;    }    if (loc == (stp-1)) {        btns = document.getElementById("ArDn");        btns.disabled = true;    }    btns = document.getElementById("rtnans");    btns.disabled = true;    btns = document.getElementById("cncledt");    btns.disabled = true;}function actSec() {    btns = document.getElementById("primenu");    if (btns.selectedIndex != 0) {        btns = document.getElementById("secmsg");        btns.checked = false;        btns.disabled = false;        btns = document.getElementById("sectxt");        btns.readOnly = false;        btns = document.getElementById("seclnk");        btns.readOnly = false;    }    else {        btns = document.getElementById("secmsg");        btns.checked = false;        btns.disabled = true;        btns = document.getElementById("sectxt");        btns.value = "";        btns.readOnly = true;        btns = document.getElementById("seclnk");        btns.value = "";        btns.readOnly = true;    }}function priClk() {    btns = document.getElementById("primsg");    fld = document.getElementById("primenu");    if (btns.checked == false) {        cng = document.getElementById("nwwn");        cng.checked = false;        cng.disabled = true;    }    else {        cng = document.getElementById("nwwn");        cng.disabled = false;    }    if ((btns.checked == false) &amp;&amp; (fld.selectedIndex != 0)) {        cng = document.getElementById("secmsg");        cng.checked = false;    }}function secClk() {    btns = document.getElementById("secmsg");    if (btns.checked == true) {        cng = document.getElementById("primsg");        cng.checked = true;    }}function makeCode() {    hlt = 0;    clrAns();            tpc = document.getElementById("topic");    tpc = tpc.value;    tps = document.getElementById("topicone");    tps = tps.value;    if ((tpc == "") || (tps == "")) {        alert("Please enter both a plural and singular quiz topic.");        hlt = 1;    }        mns = document.getElementById("minmenu");    mns = mns.options[mns.selectedIndex].text;    scs = document.getElementById("secmenu");    scs = scs.options[scs.selectedIndex].text;    if ((mns == "minutes...") || (scs == "seconds...")) {        alert("Please specify a time.");        hlt = 1;    }        if (stp &lt; 2) {        alert("Please enter at least two answers.");        hlt = 1;    }        if (hlt == 0) {        pgcd = "";        pgcd = String.fromCharCode(60) + "head" + String.fromCharCode(62) + "\r";        pgcd+=String.fromCharCode(9,60) + "title" + String.fromCharCode(62) + tpc + " Quiz" + String.fromCharCode(60) + "/title" + String.fromCharCode(62) + "\r";        pgcd+=String.fromCharCode(9,60) + "meta content='trivia timed quiz " + tpc.toLowerCase() + "' name='keywords'/" + String.fromCharCode(62) + "\r";        pgcd+=String.fromCharCode(9,60) + "style type='text/css'" + String.fromCharCode(62) + "\r";        pgcd+=String.fromCharCode(9) + "#tmr {" + "\r";        pgcd+=String.fromCharCode(9,9) + "border:none;" + "\r";        pgcd+=String.fromCharCode(9,9) + "text-align:center;" + "\r";        pgcd+=String.fromCharCode(9,9) + "font-family:verdana;" + "\r";        pgcd+=String.fromCharCode(9,9) + "font-size:50pt;" + "\r";        pgcd+=String.fromCharCode(9,9) + "font-weight:bold;" + "\r";        pgcd+=String.fromCharCode(9,9) + "border-right-color:#FFFFFF;" + "\r";        pgcd+=String.fromCharCode(9,9) + "width:100%;" + "\r";        pgcd+=String.fromCharCode(9) + "}" + "\r";        pgcd+=String.fromCharCode(9,60) + "/style" + String.fromCharCode(62) + "\r";        pgcd+=String.fromCharCode(60) + "/head" + String.fromCharCode(62) + "\r" + "\r";        pgcd+=String.fromCharCode(60) + "body" + String.fromCharCode(62) + "\r";        pgcd+=String.fromCharCode(9,60) + "script type=" + String.fromCharCode(34) + "text/javascript" + String.fromCharCode(34,62) + "\r";        pgcd+=String.fromCharCode(9,60) + "!--" + "\r";        pgcd+=String.fromCharCode(9) + "var mins;" + "\r" + String.fromCharCode(9) + "var secs;" + "\r" + String.fromCharCode(9) + "var max;" + "\r" + String.fromCharCode(9) + "var begclo;" + "\r" + "\r";        mnt = document.getElementById("minmenu");        mnt = mnt.selectedIndex;        pgcd+=String.fromCharCode(9) + "function cd() {" + "\r" + String.fromCharCode(9,9) + "begclo = 0;" + "\r" + String.fromCharCode(9,9) + "mins = 1 * m("  + String.fromCharCode(34) + mnt + String.fromCharCode(34) + ");" + "\r";        scd = document.getElementById("secmenu");        scd = scd.selectedIndex;        scd = ((scd - 1) * 15) + 1;        pgcd+=String.fromCharCode(9,9) + "secs = 0 + s(" + String.fromCharCode(34) + ":";        if (scd == 1) {            pgcd+="0";        }        pgcd+=scd + String.fromCharCode(34) + ");" + "\r";        pgcd+=String.fromCharCode(9,9) + "max = " + stp + ";" + "\r";        pgcd+=String.fromCharCode(9) + "}" + "\r" + "\r";        pgcd+=String.fromCharCode(9) + "function m(obj) {" + "\r";        pgcd+=String.fromCharCode(9,9) + "for (var i = 0; i &lt; obj.length; i++) {" + "\r";        pgcd+=String.fromCharCode(9,9,9) + "if (obj.substring(i, i + 1) == " + String.fromCharCode(34) + ":" + String.fromCharCode(34) + ") {" + "\r";        pgcd+=String.fromCharCode(9,9,9,9) + "break;" + "\r";        pgcd+=String.fromCharCode(9,9,9) + "}" + "\r";        pgcd+=String.fromCharCode(9,9) + "}" + "\r";        pgcd+=String.fromCharCode(9,9) + "return(obj.substring(0, i));" + "\r";        pgcd+=String.fromCharCode(9) + "}" + "\r" + "\r";        pgcd+=String.fromCharCode(9) + "function s(obj) {" + "\r";        pgcd+=String.fromCharCode(9,9) + "for (var i = 0; i &lt; obj.length; i++) {" + "\r";        pgcd+=String.fromCharCode(9,9,9) + "if (obj.substring(i, i + 1) == " + String.fromCharCode(34) + ":" + String.fromCharCode(34) + ") {" + "\r";        pgcd+=String.fromCharCode(9,9,9,9) + "break;" + "\r";        pgcd+=String.fromCharCode(9,9,9) + "}" + "\r";        pgcd+=String.fromCharCode(9,9) + "}" + "\r";        pgcd+=String.fromCharCode(9,9) + "return(obj.substring(i + 1, obj.length));" + "\r";        pgcd+=String.fromCharCode(9) + "}" + "\r" + "\r";        pgcd+=String.fromCharCode(9) + "function dis(mins,secs) {" + "\r";        pgcd+=String.fromCharCode(9,9) + "var disp;" + "\r";        pgcd+=String.fromCharCode(9,9) + "if (mins &lt;= 9) {" + "\r";        pgcd+=String.fromCharCode(9,9,9) + "disp = " + String.fromCharCode(34) + " 0" + String.fromCharCode(34) + ";" + "\r";        pgcd+=String.fromCharCode(9,9) + "}" + "\r";        pgcd+=String.fromCharCode(9,9) + "else {" + "\r";        pgcd+=String.fromCharCode(9,9,9) + "disp = " + String.fromCharCode(34) + " " + String.fromCharCode(34) + ";" + "\r";        pgcd+=String.fromCharCode(9,9) + "}" + "\r";        pgcd+=String.fromCharCode(9,9) + "disp+= mins + " + String.fromCharCode(34) + ":" + String.fromCharCode(34) + ";" + "\r";        pgcd+=String.fromCharCode(9,9) + "if (secs &lt;= 9) {" + "\r";        pgcd+=String.fromCharCode(9,9,9) + "disp+= " + String.fromCharCode(34) + "0" + String.fromCharCode(34) + " + secs;" + "\r";        pgcd+=String.fromCharCode(9,9) + "}" + "\r";        pgcd+=String.fromCharCode(9,9) + "else {" + "\r";        pgcd+=String.fromCharCode(9,9,9) + "disp+= secs;" + "\r";        pgcd+=String.fromCharCode(9,9) + "}" + "\r";        pgcd+=String.fromCharCode(9,9) + "return(disp);" + "\r";        pgcd+=String.fromCharCode(9) + "}" + "\r" + "\r";        pgcd+=String.fromCharCode(9) + "function timeIsUp() {" + "\r";        pgcd+=String.fromCharCode(9,9) + "mins = 0;" + "\r";        pgcd+=String.fromCharCode(9,9) + "secs = 1;" + "\r";        pgcd+=String.fromCharCode(9) + "}" + "\r" + "\r";        pgcd+=String.fromCharCode(9) + "function redo() {" + "\r";        pgcd+=String.fromCharCode(9,9) + "if (count == max) return;" + "\r";        pgcd+=String.fromCharCode(9,9) + "secs--;" + "\r";        pgcd+=String.fromCharCode(9,9) + "if (secs == -1) {" + "\r";        pgcd+=String.fromCharCode(9,9,9) + "secs = 59;" + "\r";        pgcd+=String.fromCharCode(9,9,9) + "mins--;" + "\r";        pgcd+=String.fromCharCode(9,9) + "}" + "\r";        pgcd+=String.fromCharCode(9,9) + "document.cd.disp.value = dis(mins,secs);" + "\r";        pgcd+=String.fromCharCode(9,9) + "if ((mins == 0) &amp;&amp; (secs == 0)) {" + "\r";        pgcd+=String.fromCharCode(9,9,9) + "window.alert(" + String.fromCharCode(34) + "Time's up! Let's see how you did." + String.fromCharCode(34) + ");" + "\r";        pgcd+=String.fromCharCode(9,9,9) + "showMissed();" + "\r";        pgcd+=String.fromCharCode(9,9) + "}" + "\r";        pgcd+=String.fromCharCode(9,9) + "else {" + "\r";        pgcd+=String.fromCharCode(9,9,9) + "cd = setTimeout(" + String.fromCharCode(34) + "redo()" + String.fromCharCode(34) + ",1000);" + "\r";        pgcd+=String.fromCharCode(9,9) + "}" + "\r";        pgcd+=String.fromCharCode(9) + "}" + "\r" + "\r";        pgcd+=String.fromCharCode(9) + "function init() {" + "\r";        pgcd+=String.fromCharCode(9,9) + "cd();" + "\r";        pgcd+=String.fromCharCode(9) + "}" + "\r" + String.fromCharCode(9) + "window.onload = init;" + "\r" + "\r";        pgcd+=String.fromCharCode(9) + "var count=0;" + "\r" + String.fromCharCode(9) + "var found=new Array();" + "\r";        pgcd+=String.fromCharCode(9) + "var hxcd=new Array(";        for (i=0;i&lt;=(stp - 1);i++) {            rq = obsSt(qzslv[i][0]);            pgcd+=String.fromCharCode(34) + rq + String.fromCharCode(34);            if (i &lt; (stp - 1)) {                pgcd+=",";            }        }        pgcd+=");" + "\r" + "\r";         pgcd+=String.fromCharCode(9) + "function checkAnsrs(fld) {" + "\r";        pgcd+=String.fromCharCode(9,9) + "if (begclo==0) {" + "\r";        pgcd+=String.fromCharCode(9,9,9) + "begclo = 1;" + "\r";        pgcd+=String.fromCharCode(9,9,9) + "document.getElementById(" + String.fromCharCode(34) + "remain" + String.fromCharCode(34) + ").innerHTML=" + String.fromCharCode(34,60) + "B" + String.fromCharCode(62) + stp + " " + tpc + " to go" + String.fromCharCode(60) + "/B" + String.fromCharCode(62,34) + ";" + "\r";        pgcd+=String.fromCharCode(9,9,9) + "redo();" + "\r";        pgcd+=String.fromCharCode(9,9) + "}" + "\r";        pgcd+=String.fromCharCode(9,9) + "if (fld.value.length &gt; 1) {" + "\r";        for (i=0;i&lt;stp;i++) {            for (j=1;j&lt;=6;j++) {                if (qzslv[i][j] != "") {                    rq = obsSt(qzslv[i][j].toLowerCase());                    pgcd+=String.fromCharCode(9,9,9) + "if (fld.value.toLowerCase()==" + String.fromCharCode(34) + rq + String.fromCharCode(34) + ") {" + "\r";                    rq = obsSt(qzslv[i][0]);                    pgcd+=String.fromCharCode(9,9,9,9) + "fld.value=" + String.fromCharCode(34) + rq + String.fromCharCode(34) + ";" + "\r";                    pgcd+=String.fromCharCode(9,9,9) + "}" + "\r";                }            }        }        pgcd+=String.fromCharCode(9,9,9) + "for (var i=0;i&lt;hxcd.length;i++) {" + "\r";        pgcd+=String.fromCharCode(9,9,9,9) + "if (fld.value.toLowerCase()==hxcd[i].toLowerCase()) {" + "\r";        pgcd+=String.fromCharCode(9,9,9,9,9) + "found[found.length]=hxcd[i];" + "\r";        pgcd+=String.fromCharCode(9,9,9,9,9) + "found.sort();" + "\r";        pgcd+=String.fromCharCode(9,9,9,9,9) + "hxcd.splice(i,1);" + "\r";        pgcd+=String.fromCharCode(9,9,9,9,9) + "fld.value=" + String.fromCharCode(34,34) + ";" + "\r";        pgcd+=String.fromCharCode(9,9,9,9,9) + "count++;" + "\r";        pgcd+=String.fromCharCode(9,9,9,9,9) + "msg=" + String.fromCharCode(34,34) + ";" + "\r";        pgcd+=String.fromCharCode(9,9,9,9,9) + "for (var x=0;x&lt;found.length;x++) {" + "\r";        pgcd+=String.fromCharCode(9,9,9,9,9,9) + "msg+=found[x]+" + String.fromCharCode(34) + ", " + String.fromCharCode(34) + ";" + "\r";        pgcd+=String.fromCharCode(9,9,9,9,9,9) + "if ((x+1)%5 == 0) msg+=" + String.fromCharCode(34,60) + "BR" + String.fromCharCode(62,34) + ";" + "\r";        pgcd+=String.fromCharCode(9,9,9,9,9) + "}" + "\r";        pgcd+=String.fromCharCode(9,9,9,9,9) + "document.getElementById(" + String.fromCharCode(34) + "found" + String.fromCharCode(34) + ").innerHTML=msg;" + "\r";        pgcd+=String.fromCharCode(9,9,9,9,9) + "remainmsg=" + String.fromCharCode(34) + " " + tpc + " to go" + String.fromCharCode(34) + ";" + "\r";        pgcd+=String.fromCharCode(9,9,9,9,9) + "if (count == (max-1)) remainmsg=" + String.fromCharCode(34) + " " + tps + " to go" + String.fromCharCode(34) + ";" + "\r";        pgcd+=String.fromCharCode(9,9,9,9,9) + "document.getElementById(" + String.fromCharCode(34) + "remain" + String.fromCharCode(34) + ").innerHTML=" + String.fromCharCode(34,60) + "B" + String.fromCharCode(62,34) + "+(max-count)+remainmsg+" + String.fromCharCode(34,60) + "/B" + String.fromCharCode(62,34) + ";" + "\r";        pgcd+=String.fromCharCode(9,9,9,9,9) + "if (count == max) {" + "\r";        pgcd+=String.fromCharCode(9,9,9,9,9,9) + "window.alert(" + String.fromCharCode(34) + "You did it!" + String.fromCharCode(34) + ");" + "\r";        btns = document.getElementById("primsg");        cng = document.getElementById("pritxt");        if ((btns.checked == true) &amp;&amp; (cng.value != "")) {            pgcd+=String.fromCharCode(9,9,9,9,9,9) + "resultmessage();" + "\r";        }        pgcd+=String.fromCharCode(9,9,9,9,9) + "}" + "\r";        pgcd+=String.fromCharCode(9,9,9,9) + "}" + "\r";        pgcd+=String.fromCharCode(9,9,9) + "}" + "\r";        pgcd+=String.fromCharCode(9,9) + "}" + "\r";        pgcd+=String.fromCharCode(9,9) + "else {" + "\r";        pgcd+=String.fromCharCode(9,9,9) + "if (fld.value == " + String.fromCharCode(34) + " " + String.fromCharCode(34) + ") fld.value=" + String.fromCharCode(34,34) + ";" + "\r";        pgcd+=String.fromCharCode(9,9) + "}" + "\r";        pgcd+=String.fromCharCode(9) + "}" + "\r" + "\r";        pgcd+=String.fromCharCode(9) + "function showMissed() {" + "\r";        pgcd+=String.fromCharCode(9,9) + "msg=" + String.fromCharCode(34,34) + ";" + "\r";        pgcd+=String.fromCharCode(9,9) + "msg+='" + String.fromCharCode(60) + "BR" + String.fromCharCode(62,60) + "FONT COLOR=RED" + String.fromCharCode(62,60) + "B" + String.fromCharCode(62) + "You forgot: " + String.fromCharCode(60) + "/B" + String.fromCharCode(62) + "';" + "\r";        pgcd+=String.fromCharCode(9,9) + "for (x=0;x&lt;hxcd.length;x++) {" + "\r";        pgcd+=String.fromCharCode(9,9,9) + "msg+=hxcd[x]+" + String.fromCharCode(34) + ", " + String.fromCharCode(34) + ";" + "\r";        pgcd+=String.fromCharCode(9,9,9) + "if ((x+1)%5 == 0) msg+=" + String.fromCharCode(34,60) + "BR" + String.fromCharCode(62,34) + ";" + "\r";        pgcd+=String.fromCharCode(9,9) + "}" + "\r";        pgcd+=String.fromCharCode(9,9) + "msg+='" + String.fromCharCode(60) + "/FONT" + String.fromCharCode(62,60) + "BR" + String.fromCharCode(62) + "';" + "\r";        pgcd+=String.fromCharCode(9,9) + "document.getElementById(" + String.fromCharCode(34) + "missing" + String.fromCharCode(34) + ").innerHTML=msg;" + "\r";        btns = document.getElementById("primsg");        cng = document.getElementById("pritxt");        if ((btns.checked == true) &amp;&amp; (cng.value != "")) {            pgcd+=String.fromCharCode(9,9) + "resultmessage();" + "\r";        }        pgcd+=String.fromCharCode(9) + "}" + "\r" + "\r";        btns = document.getElementById("primsg");        cng = document.getElementById("pritxt");        if ((btns.checked == true) &amp;&amp; (cng.value != "")) {            pgcd+=String.fromCharCode(9) + "function resultmessage() {" + "\r";            pst = document.getElementById("primenu");            pgcd+=String.fromCharCode(9,9) + "msg = " + String.fromCharCode(34,34,59) + "\r";            pgcd+=String.fromCharCode(9,9) + "if (count &gt;= " + pst.selectedIndex + ") {" + "\r";            pgcd+=String.fromCharCode(9,9,9) + "msg = " + String.fromCharCode(34,60) + "FONT COLOR=BLACK" + String.fromCharCode(62);            pst = document.getElementById("prilnk");            if (pst.value != "") {                opnl = document.getElementById("nwwn");                pgcd+=String.fromCharCode(60) + "A HREF=" + String.fromCharCode(34) + " + String.fromCharCode(34) + " + String.fromCharCode(34) + pst.value + String.fromCharCode(34) + " + String.fromCharCode(34) + " + String.fromCharCode(34);                if (opnl.checked == true) {                    pgcd+=" TARGET=" + String.fromCharCode(34) + " + String.fromCharCode(34) + " + String.fromCharCode(34,95) + "blank" + String.fromCharCode(34) + " + String.fromCharCode(34) + " + String.fromCharCode(34);                }                pgcd+=String.fromCharCode(62);            }            pgcd+=cng.value;            if (pst.value != "") {                pgcd+=String.fromCharCode(60) + "/A" + String.fromCharCode(62);            }            pgcd+=String.fromCharCode(60) + "/FONT" + String.fromCharCode(62,34,59) + "\r";            pgcd+=String.fromCharCode(9,9) + "}" + "\r";            pst = document.getElementById("secmsg");            tps = document.getElementById("sectxt");            if ((pst.checked == true) &amp;&amp; (tps.value != "")) {                pgcd+=String.fromCharCode(9,9) + "else {" + "\r";                pgcd+=String.fromCharCode(9,9,9) + "msg = " + String.fromCharCode(34,60) + "FONT COLOR=BLACK" + String.fromCharCode(62);                tsp = document.getElementById("seclnk");                if (tsp.value != "") {                    pgcd+=String.fromCharCode(60) + "A HREF=" + String.fromCharCode(34) + " + String.fromCharCode(34) + " + String.fromCharCode(34) + tsp.value + String.fromCharCode(34) + " + String.fromCharCode(34) + " + String.fromCharCode(34);                    if (opnl.checked == true) {                        pgcd+=" TARGET=" + String.fromCharCode(34) + " + String.fromCharCode(34) + " + String.fromCharCode(34,95) + "blank" + String.fromCharCode(34) + " + String.fromCharCode(34) + " + String.fromCharCode(34);                    }                    pgcd+=String.fromCharCode(62);                }                pgcd+=tps.value;                if (tsp.value != "") {                    pgcd+=String.fromCharCode(60) + "/A" + String.fromCharCode(62);                }                pgcd+=String.fromCharCode(60) + "/FONT" + String.fromCharCode(62,34,59) + "\r";                                pgcd+=String.fromCharCode(9,9) + "}" + "\r";            }            pgcd+=String.fromCharCode(9,9) + "document.getElementById(" + String.fromCharCode(34) + "rsltmsg" + String.fromCharCode(34) + ").innerHTML=msg;" + "\r";            pgcd+=String.fromCharCode(9) + "}" + "\r";        }        pgcd+=String.fromCharCode(9) + "//--" + String.fromCharCode(62) + "\r";        pgcd+=String.fromCharCode(9,60) + "/script" + String.fromCharCode(62) + "\r" + "\r";        pgcd+=String.fromCharCode(9,60) + "P" + String.fromCharCode(62,60) + "H1" + String.fromCharCode(62,60) + "center" + String.fromCharCode(62) + "How many of the " + tpc + " can you name in " + mnt;        scd = document.getElementById("secmenu");        scd = scd.selectedIndex;        if (scd &gt; 1) {            scd = (scd - 1) * 25            if (scd == 50) {                scd = 5;            }            pgcd+="." + scd;        }        pgcd+=" minutes?" + String.fromCharCode(60) + "/center" + String.fromCharCode(62,60) + "/H1" + String.fromCharCode(62,60) + "/P" + String.fromCharCode(62) + "\r" + "\r";        pgcd+=String.fromCharCode(9,60) + "form name=" + String.fromCharCode(34) + "cd" + String.fromCharCode(34,62) + "\r";        pgcd+=String.fromCharCode(9,9,60) + "input id=" + String.fromCharCode(34) + "tmr" + String.fromCharCode(34) + " readonly=" + String.fromCharCode(34) + "true" + String.fromCharCode(34) + " type=" + String.fromCharCode(34) + "text" + String.fromCharCode(34) + " value=" + String.fromCharCode(34);        scd = document.getElementById("secmenu");        scd = scd.selectedIndex;        scd = (scd - 1) * 15        if (mnt &lt; 10) {            pgcd+="0";        }        pgcd+=mnt + ":";        if (scd == 0) {            pgcd+="00";        }        else {            pgcd+=scd;        }        pgcd+=String.fromCharCode(34) + " border=" + String.fromCharCode(34) + "0" + String.fromCharCode(34) + " name=" + String.fromCharCode(34) + "disp" + String.fromCharCode(34,62)  + "\r";        pgcd+=String.fromCharCode(9,60) + "/form" + String.fromCharCode(62) + "\r";        pgcd+=String.fromCharCode(9,60) + "center" + String.fromCharCode(62) + "\r";        pgcd+=String.fromCharCode(9,60) + "table" + String.fromCharCode(62) + "\r";        pgcd+=String.fromCharCode(9,9,60) + "tr" + String.fromCharCode(62,60) + "td align=" + String.fromCharCode(34) + "center" + String.fromCharCode(34,62) + "\r";        pgcd+=String.fromCharCode(9,9,9,60) + "div id=" + String.fromCharCode(34) + "remain" + String.fromCharCode(34,62,60) + "B" + String.fromCharCode(62) + "To start the clock, begin typing in the box below." + String.fromCharCode(60) + "/B" + String.fromCharCode(62,60) + "/div" + String.fromCharCode(62) + "\r";        pgcd+=String.fromCharCode(9,9,9,60) + "input type=" + String.fromCharCode(34) + "text" + String.fromCharCode(34) + " onKeyUp=" + String.fromCharCode(34) + "checkAnsrs(this);" + String.fromCharCode(34) + " name=" + String.fromCharCode(34) + "inpt" + String.fromCharCode(34,62,60) + "BR" + String.fromCharCode(62) + "\r";        pgcd+=String.fromCharCode(9,9,9,60) + "input type=" + String.fromCharCode(34) + "button" + String.fromCharCode(34) + " value=" + String.fromCharCode(34) + "Give up?" + String.fromCharCode(34) + " onclick=" + String.fromCharCode(34) + "timeIsUp()" + String.fromCharCode(34) + " name=" + String.fromCharCode(34) + "giveup" + String.fromCharCode(34,62,60) + "BR" + String.fromCharCode(62) + "\r";        pgcd+=String.fromCharCode(9,9,60) + "/td" + String.fromCharCode(62,60) + "/tr" + String.fromCharCode(62) + "\r";        pgcd+=String.fromCharCode(9,9,60) + "tr" + String.fromCharCode(62,60) + "td align=" + String.fromCharCode(34) + "center" + String.fromCharCode(34,62) + "\r";        pgcd+=String.fromCharCode(9,9,9,60) + "B" + String.fromCharCode(62) + "Named so far:" + String.fromCharCode(60) + "/B" + String.fromCharCode(62) + "\r";        pgcd+=String.fromCharCode(9,9,9,60) + "div id=" + String.fromCharCode(34) + "found" + String.fromCharCode(34,62) + "None" + String.fromCharCode(60) + "/div" + String.fromCharCode(62) + "\r";        pgcd+=String.fromCharCode(9,9,9,60) + "P" + String.fromCharCode(62,38) + "nbsp;" + String.fromCharCode(60) + "/P" + String.fromCharCode(62) + "\r";        pgcd+=String.fromCharCode(9,9,9,60) + "P" + String.fromCharCode(62,60) + "div id=" + String.fromCharCode(34) + "missing" + String.fromCharCode(34,62,38) + "nbsp;" + String.fromCharCode(60) + "/div" + String.fromCharCode(62,60) + "/P" + String.fromCharCode(62) + "\r";        btns = document.getElementById("primsg");        cng = document.getElementById("pritxt");        if ((btns.checked == true) &amp;&amp; (cng.value != "")) {            pgcd+=String.fromCharCode(9,9,9,60) + "P" + String.fromCharCode(62,38) + "nbsp;" + String.fromCharCode(60) + "/P" + String.fromCharCode(62) + "\r";            pgcd+=String.fromCharCode(9,9,9,60) + "P" + String.fromCharCode(62,38) + "nbsp;" + String.fromCharCode(60) + "/P" + String.fromCharCode(62) + "\r";            pgcd+=String.fromCharCode(9,9,9,60) + "P" + String.fromCharCode(62,60) + "div id=" + String.fromCharCode(34) + "rsltmsg" + String.fromCharCode(34,62,38) + "nbsp;" + String.fromCharCode(60) + "/div" + String.fromCharCode(62,60) + "/P" + String.fromCharCode(62) + "\r";        }        pgcd+=String.fromCharCode(9,9,60) + "/td" + String.fromCharCode(62,60) + "/tr" + String.fromCharCode(62) + "\r";        pgcd+=String.fromCharCode(9,60) + "/table" + String.fromCharCode(62) + "\r";        pgcd+=String.fromCharCode(9,60) + "/center" + String.fromCharCode(62) + "\r";        pgcd+=String.fromCharCode(60) + "/body" + String.fromCharCode(62);        textAreaToChange = document.getElementById("code");        textAreaToChange.value = pgcd;        $('#code').focus();    }}function obsSt(lts) {    trv = "";    for (k=0;k&lt;(lts.length);k++) {        trv = trv + String.fromCharCode(92) + "x" + toHex(lts.charCodeAt(k));    }    return(trv);}function enHex(dgt) {    return("0123456789ABCDEF".substring(dgt,dgt+1));}function toHex(nmb) {    return (enHex((0x0000f0 &amp; nmb) &gt;&gt;  4) + enHex((0x00000f &amp; nmb) &gt;&gt;  0));}function exdata() {    goinout = "";    goinout = String.fromCharCode(208);    dat = document.getElementById("topic");    dat = dat.value;    goinout+=dat + String.fromCharCode(208);    dat = document.getElementById("topicone");    dat = dat.value;    goinout+=dat + String.fromCharCode(208);    textAreaToChange = document.getElementById("code");    textAreaToChange.value = goinout;}//]]&gt;&lt;/script&gt;&lt;h2&gt;Make Your Own Timed Quiz&lt;/h2&gt;Have you ever wanted to make your own custom &lt;span style="font-style:italic;"&gt;&lt;a href="http://headinside.blogspot.com/2008/03/how-many-xs-can-you-name-in-y-minutes.html"&gt;How Many Xs Can You Name In Y Minutes?&lt;/a&gt;&lt;/span&gt;-style quiz for your website, but didn't know how? Using this timed quiz creator it's easy!&lt;br /&gt;&lt;br /&gt;&lt;span id="fullpost"&gt;To learn how to use this timed quiz generator, there are three tutorials available:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://headinside.blogspot.com/2008/08/make-your-own-timed-quizzes.html"&gt;TEXT: Timed Quiz Generator Tutorial&lt;/a&gt; (excluding Final Message Options)&lt;br /&gt;&lt;br /&gt;&lt;a href="http://headinside.blogspot.com/2008/08/timed-quiz-generator-final-message.html"&gt;TEXT: Final Message Options Tutorial&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://headinside.blogspot.com/2009/06/timed-quiz-generator-video-tutorial.html"&gt;VIDEO: Full Tutorial&lt;/a&gt; (Also accessible via the video tutorial button below)&lt;br /&gt;            &lt;br /&gt;Simply enter the topic of the quiz, in both plural and singular form (e.g., &lt;span style="font-style:italic;"&gt;Simpsons&lt;/span&gt; and &lt;span style="font-style:italic;"&gt;Simpson&lt;/span&gt;), and select a time in minutes and seconds. Enter a main answer (e.g., &lt;span style="font-style:italic;"&gt;Grandpa Simpson&lt;/span&gt;), and, optionally, up to 6 acceptable alternatives (e.g., &lt;span style="font-style:italic;"&gt;Abe&lt;/span&gt;, &lt;span style="font-style:italic;"&gt;Abraham Simpson&lt;/span&gt;), then click the &lt;span style="font-style:italic;"&gt;Add answer/alternatives to list&lt;/span&gt; button. You may add as many answers and alternatives as needed this way, but &lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;you must have at least two main answers, and all your answers and alternatives must be at least two letters long&lt;/span&gt;&lt;/span&gt; (otherwise your quiz won't function correctly). When you're finished adding answers and alternatives, click the &lt;span style="font-style:italic;"&gt;Generate quiz code&lt;/span&gt; button to get the HTML/CSS/Javascript code (all in one file!) for your quiz. Copy and paste this into your favorite code or text editor, save it with the extension &lt;span style="font-style:italic;"&gt;.html&lt;/span&gt;, upload it to your site, and you have your own custom timed quiz!&lt;br /&gt;            &lt;br /&gt;Make a mistake? Thought of a new alternative? Click on the &lt;span style="font-style:italic;"&gt;Edit Mode&lt;/span&gt; checkbox, move the arrow up and down to select the answer you wish to edit, click &lt;span style="font-style:italic;"&gt;Edit answer next to arrow&lt;/span&gt; button, and that answer will be brought back into the &lt;span style="font-style:italic;"&gt;Main Answer&lt;/span&gt; and &lt;span style="font-style:italic;"&gt;alternative&lt;/span&gt; boxes so you can edit them. When done, click &lt;span style="font-style:italic;"&gt;Return edited answer/alternatives to list&lt;/span&gt;, and your edited answers will now appear. Uncheck &lt;span style="font-style:italic;"&gt;Edit Mode&lt;/span&gt; to keep adding new answers, or generate the code with the new answers. You can also delete the selected answer, or even clear the entire list while in edit mode.&lt;br /&gt;            &lt;br /&gt;This is a great way to attract and entertain visitors to your site, and the more you know about CSS, HTML, and Javascript, the better able you'll be to edit and customize your quiz to better fit in with your site. Worried about people using their browser's &lt;span style="font-style:italic;"&gt;View Source&lt;/span&gt; feature to see the answers? Don't be, as the answers and their respective alternatives are &lt;a href="http://en.wikipedia.org/wiki/Obfuscated_code"&gt;obfuscated&lt;/a&gt; in the generated code. If you need inspiration for quiz topics, look &lt;a href="http://headinside.blogspot.com/2008/03/how-many-xs-can-you-name-in-y-minutes.html"&gt;here&lt;/a&gt; and &lt;a href="http://www.mentalfloss.com/blogs/archives/12311"&gt;here&lt;/a&gt;.&lt;br /&gt;            &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt; I take no responsibility for the consequences of using any quiz or quizzes you create with this tool in any manner, nor do I make any guarantees concerning any such quiz or quizzes.&lt;br /&gt;&lt;br /&gt;&lt;form action=""&gt;&lt;input type="button" value="Click to toggle video tutorial" id="vidtutbutton"&gt;&lt;/form&gt;&lt;div id="vidtutorial" style="display:none;"&gt;&lt;object width="530" height="323"&gt;&lt;param name="movie" value="http://www.youtube.com/v/Q_loll_oqVw?fs=1&amp;amp;hl=en_US&amp;amp;rel=0"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/Q_loll_oqVw?fs=1&amp;amp;hl=en_US&amp;amp;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="530" height="323"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;/div&gt;            &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Basic Information&lt;/span&gt;&lt;br /&gt;Quiz Topic (plural): &lt;input type="text" id="topic" size="20"&gt;&lt;br /&gt;&lt;br /&gt;Quiz Topic (singular): &lt;input type="text" id="topicone" size="20"&gt;&lt;br /&gt;&lt;br /&gt;Time Limit: &lt;select onchange="" id="minmenu"&gt;&lt;br /&gt;  &lt;option selected value="minutes..."/&gt;minutes...&lt;br /&gt;  &lt;option/&gt;1 min.&lt;br /&gt;  &lt;option/&gt;2 mins.&lt;br /&gt;  &lt;option/&gt;3 mins.&lt;br /&gt;  &lt;option/&gt;4 mins.&lt;br /&gt;  &lt;option/&gt;5 mins.&lt;br /&gt;  &lt;option/&gt;6 mins.&lt;br /&gt;  &lt;option/&gt;7 mins.&lt;br /&gt;  &lt;option/&gt;8 mins.&lt;br /&gt;  &lt;option/&gt;9 mins.&lt;br /&gt;  &lt;option/&gt;10 mins.&lt;br /&gt;  &lt;option/&gt;11 min.&lt;br /&gt;  &lt;option/&gt;12 mins.&lt;br /&gt;  &lt;option/&gt;13 mins.&lt;br /&gt;  &lt;option/&gt;14 mins.&lt;br /&gt;  &lt;option/&gt;15 mins.&lt;br /&gt;  &lt;option/&gt;16 mins.&lt;br /&gt;  &lt;option/&gt;17 mins.&lt;br /&gt;  &lt;option/&gt;18 mins.&lt;br /&gt;  &lt;option/&gt;19 mins.&lt;br /&gt;  &lt;option/&gt;20 mins.&lt;br /&gt;&lt;/select&gt; : &lt;select onchange="" id="secmenu"&gt;&lt;br /&gt;  &lt;option selected value="http://gmvlog.blogspot.com/"/&gt;seconds...&lt;br /&gt;  &lt;option/&gt;00 secs.&lt;br /&gt;  &lt;option/&gt;15 secs.&lt;br /&gt;  &lt;option/&gt;30 secs.&lt;br /&gt;  &lt;option/&gt;45 secs.&lt;br /&gt;&lt;/select&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Answer and acceptable alternatives&lt;/span&gt;&lt;br /&gt;Main Answer: &lt;input type="text" id="alt0" size="30"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;alternative: &lt;input type="text" id="alt1" size="30"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;alternative: &lt;input type="text" id="alt2" size="30"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;alternative: &lt;input type="text" id="alt3" size="30"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;alternative: &lt;input type="text" id="alt4" size="30"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;alternative: &lt;input type="text" id="alt5" size="30"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;alternative: &lt;input type="text" id="alt6" size="30"&gt;&lt;br /&gt;&lt;br /&gt;        &lt;input type="button" value="Add answer/alternatives to list" onclick="addToList()" id="addans"&gt;&lt;input type="button" value="Clear" onclick="clrAns()" id="clrans"&gt;&lt;br /&gt;&lt;br /&gt;        &lt;input type="button" value="Return edited answer/alternatives to list" onclick="retToList()" id="rtnans" disabled="true"&gt;&lt;input type="button" value="Cancel" onclick="cnclEdit()" id="cncledt" disabled="true"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Answers/Alternatives List:&lt;/span&gt;&lt;br /&gt;&lt;textarea rows="10" cols="40" readonly="true" id="anslist"&gt;&lt;/textarea&gt;&lt;br /&gt;&lt;input type="checkbox" onclick="edtmode()" id="edtng" disabled="true"&gt;Edit Mode&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;input type="button" value="Clear List" onclick="emptyList()" id="clrlist" disabled="true"&gt;&lt;br /&gt;&lt;br /&gt;        &lt;input type="button" value="Move arrow up" onclick="arwUp()" id="ArUp" disabled="true"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;input type="button" value="Delete answer next to arrow" onclick="dltitm()" id="snip" disabled="true"&gt;&lt;br /&gt;&lt;input type="button" value="Move arrow down" onclick="arwDn()" id="ArDn" disabled="true"&gt;&lt;br /&gt;&lt;input type="button" value="Edit answer next to arrow" onclick="edtAns()" id="EdAr" disabled="true"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Final Message Options:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;        &lt;input type="checkbox" id="primsg" onclick="priClk()" disabled="true"&gt;Show primary message if &lt;select id="primenu" name="priopt" disabled="true" onchange="actSec()"&gt;&lt;option selected value="http://headinside.blogspot.com/2008/03/how-many-xs-can-you-name-in-y-minutes.html"/&gt;0&lt;/select&gt; or more correct answers are given&lt;br /&gt;&lt;br /&gt;        Primary Message: &lt;input type="text" id="pritxt" size="40" readonly="true"&gt;&lt;br /&gt;&lt;br /&gt;        Primary Link (optional): &lt;input type="text" id="prilnk" size="40" readonly="true"&gt;&lt;br /&gt;&lt;br /&gt;        &lt;input type="checkbox" onclick="secClk()" id="secmsg" disabled="true"&gt;Show secondary message if fewer correct answers are given&lt;br /&gt;&lt;br /&gt;        Secondary Message: &lt;input type="text" id="sectxt" size="40" readonly="true"&gt;&lt;br /&gt;&lt;br /&gt;        Secondary Link (optional): &lt;input type="text" id="seclnk" size="40" readonly="true"&gt;&lt;br /&gt;&lt;br /&gt;        &lt;input type="checkbox" id="nwwn" disabled="true"&gt;Links open in new window&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;            &lt;input type="button" value="Generate quiz code" onclick="makeCode()" id="gencode"&gt;&lt;br&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Quiz Code:&lt;/span&gt;&lt;br /&gt;&lt;textarea readonly="true" id="code"&gt;&lt;/textarea&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800835365312821409-7400444048434955297?l=gmmentalgym.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmmentalgym.blogspot.com/feeds/7400444048434955297/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/timed-quiz-generator_07.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/7400444048434955297'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/7400444048434955297'/><link rel='alternate' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/timed-quiz-generator_07.html' title='Timed Quiz Generator'/><author><name>Pi Guy</name><uri>http://www.blogger.com/profile/09760001560356969164</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://lh3.ggpht.com/_zQQCfNroX3w/TMDBGryIxfI/AAAAAAAAASw/_ygdD3eWHCU/s0/gmsc.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800835365312821409.post-923584817122798636</id><published>2010-11-06T12:00:00.000-07:00</published><updated>2011-06-18T17:04:33.345-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tools'/><category scheme='http://www.blogger.com/atom/ns#' term='site features'/><title type='text'>Nim Strategy Calculator</title><content type='html'>&lt;style type='text/css'&gt;#givestrat, #mgivestrat, #ngivestrat, #wgivestrat { width: 520px; height: 60px;}&lt;/style&gt;&lt;script type='text/javascript'&gt;//&lt;![CDATA[$(function(){ $('#givestrat').autoResizable({  maxHeight: 1000 }); $('#mgivestrat').autoResizable({  maxHeight: 1250 }); $('#ngivestrat').autoResizable(); $('#wgivestrat').autoResizable({  maxHeight: 1000 }); $("#pile4").css("display","none"); $("#pile5").css("display","none"); $("#pile6").css("display","none"); $("#pile7").css("display","none"); $("#pile8").css("display","none"); $("#pile9").css("display","none"); $("#pilen4").css("display","none"); $("#pilen5").css("display","none"); $("#pilen6").css("display","none"); $("#pilen7").css("display","none"); $("#pilen8").css("display","none"); $("#pilen9").css("display","none");  $("#mpiles").change(function() {  var i = $("#mpiles").val();  var j = Number(i);  var k = 1;  var ck = "";  var ckt = "";  for (k=1;k&lt;=j;k++) {   ckt="#mpile" + k.toString();   $(ckt).val("");   ck="#pile" + k.toString();   $(ck).show();  };  if (j != 9) {   for (k=(j+1);k&lt;=9;k++) {    ck="#pile" + k.toString();    $(ck).hide();   };  };  $("#mgivestrat").val(""); }); $("#npiles").change(function() {  var i = $("#npiles").val();  var j = Number(i);  var k = 1;  var ck = "";  var ckt = "";  for (k=1;k&lt;=j;k++) {   ckt="#npile" + k.toString();   $(ckt).val("");   ck="#pilen" + k.toString();   $(ck).show();  };  if (j != 9) {   for (k=(j+1);k&lt;=9;k++) {    ck="#pilen" + k.toString();    $(ck).hide();   };  };  $("#ngivestrat").val(""); });  $("#nimstrat").click(function() {  var stdmis = $(".losswin:checked").val();  var numobj = $("#startobj").val();  var dwnup = $(".downorup:checked").val();  var eachmove = $("#maxobj").val();  //alert("Last to move is " + stdmis + ", object limit=" + numobj + ", game direction is " + dwnup + ", objects usable per turn range from 1 to " + eachmove);  var totalobj = Number(numobj);  var moveobj = Number(eachmove);  var mdlo = moveobj + 1;  var extra = totalobj%mdlo;    var winplays = new Array();  var fillblank = "";  var msg = "The rules for this particular version of the game of Nim are as follows:\n* There are two players.\n* The players alternate taking turns.\n* The game starts out with ";  if (dwnup == "down") {   msg = msg + totalobj.toString() + " objects.\n* On a given player's turn, they must remove anywhere from 1 to " + moveobj.toString() + " objects.\n* Neither player is allowed to remove 0 objects.";  }  else {   msg = msg + "0 objects.\n* On a given player's turn, they must add anywhere from 1 to " + moveobj.toString() + " objects.\n* Neither player is allowed to add 0 objects.\n* Neither player is allowed to add an amount that would result in a total of more than " + totalobj.toString() + " objects.";  };  msg = msg + "\n* The last person to make a move is the " + stdmis + ".\n\n\nThe Scam: Although seemingly fair, you can rig this game in your favor.\n\nFor this particular version of Nim, ";    var x = 1;  while ((mdlo * (x-1)) &lt;= totalobj) {   winplays[x] = (mdlo * (x-1));    //assume that last move is winner and that the game is played down to 0   if ((stdmis == "loser") &amp;&amp; (dwnup == "down")) {  //If last move is loser and game is played down to 0 then    winplays[x] = winplays[x] + 1;   //increase winning numbers by 1, since you're trying to leave 1 for the other person   };   if (dwnup == "up") {     //If game is being played up to limit (instead of down to 0) and assuming the last move wins    winplays[x] = winplays[x] + extra;  //increase each of the mdlo numbers by extra    if (stdmis == "loser") {   //But if the last move is the loser     winplays[x] = winplays[x] - 1;  //decrease that adjusted amount by 1    };   };   x = x + 1;  };  var y = x - 1;       //upper limit of x for later  var strtr = "";       //variable listing who should go first  if ((totalobj == winplays[y]) &amp;&amp; (dwnup == "down")) {   msg = msg + "the other person should go first. This will ensure that you can always leave certain key numbers of objects on each turn that will guarantee your win.\n\n";   strtr = "other";  };  if ((totalobj != winplays[y]) &amp;&amp; (dwnup == "down")) {   msg = msg + "you should go first. This will ensure that you can always leave certain key numbers of objects on each turn that will guarantee your win.\n\n";   strtr = "you";  };  if (((mdlo == winplays[1]) || (mdlo == winplays[2])) &amp;&amp; (dwnup == "up")) {   msg = msg + "the other person should go first. This will ensure that you can always attain certain key numbers of objects at the end of each of your turns, which will guarantee your win.\n\n";   strtr = "other";  };  if (((mdlo != winplays[1]) &amp;&amp; (mdlo != winplays[2])) &amp;&amp; (dwnup == "up")) {   msg = msg + "you should go first. This will ensure that you can always leave certain key numbers of objects at the end of each of your turns, which will guarantee your win.\n\n";   strtr = "you";  };  msg = msg + "The key numbers of objects you need to ";  fillblank = "leave";  if (dwnup == "up") {   fillblank = "attain";  };  msg = msg + fillblank + " on each turn, in order to safely win the game, are as follows:\n\n";  fillblank = "";    //display winning plays in decreasing order if played down to 0, otherwise in increasing order  if (dwnup == "down") {   x = x - 1;   while (x &gt; 0) {    if ((winplays[x] &gt; 0) &amp;&amp; (winplays[x] &lt; totalobj)) {     fillblank = fillblank + winplays[x].toString();     if ((winplays[x] == 1) &amp;&amp; (stdmis == "loser")) {      fillblank = fillblank + " (of course)";     };     fillblank = fillblank + "\n";    };    x = x - 1;   };  }  else {   x = 1;   while (x &lt;= y) {    if ((winplays[x] &gt; 0) &amp;&amp; (winplays[x] &lt;= totalobj)) {     fillblank = fillblank + winplays[x].toString();     if ((winplays[x] == totalobj) &amp;&amp; (stdmis == "winner")) {      fillblank = fillblank + " (of course)";     };     fillblank = fillblank + "\n";    };    x = x + 1;   };  };    msg = msg + fillblank + "\n\nTips:\n\n* You don't have to hit every key number. Just make sure you get to one of the above key numbers before the goal is reached, and you'll always be able to win the game from there.\n\n* ";  if (strtr == "other") {   msg = msg + "If it's decided that you must go first, and your opponent isn't wise to the ways of Nim, it's still possible for you to win. Only play small amounts of objects on your turns, until you get an opportunity to reach a key number.";  }  else {   msg = msg + "If it's decided that the other person will go first, and your opponent isn't wise to the ways of Nim, it's still possible for you to win. Just keep looking for an opportunity to get to one of your key numbers. You can play only small amounts of objects on your turn if you can't reach a key number.";  };  msg = msg + "\n\n* Instead of playing single-pile Nim with physical objects, you can often just state the numbers verbally, or even use a calculator.";  //optional extra tips for special cases  if (totalobj == 100) {   msg = msg + "\n\n* Since you're using 100, you could keep track of the score using 100-sided dice from a role-playing game.";  };  if (totalobj == 88) {   msg = msg + "\n\n* Since you're using 88 objects, you might try playing this game using piano keys.";  };  if (totalobj == 78) {   msg = msg + "\n\n* Since you're using 78 objects, you might try using a standard deck of tarot cards as counters.";  };  if (totalobj == 64) {   msg = msg + "\n\n* Since you're using 64 objects, you might try playing this on a chessboard.";  };  if (totalobj == 54) {   msg = msg + "\n\n* Since you're using 54 objects, you might try using a standard deck of playing cards, including both jokers, as counters, ignoring their suits and values.";  };  if (totalobj == 52) {   msg = msg + "\n\n* Since you're using 52 objects, you might try using a standard deck of playing cards as counters, ignoring their suits and values. You also might play this game using the weeks in a year, or even just the white keys on a piano.";  };  if (totalobj == 50) {   msg = msg + "\n\n* Since you're using 50 objects, you might try using US states.";  };  if (totalobj == 48) {   msg = msg + "\n\n* Since you're using 48 objects, you might try using a deck of Pinochle playing cards as counters, ignoring their suits and values.";  };  if (totalobj == 42) {   msg = msg + "\n\n* Douglas Adams fans will especially enjoy Nim with 42 objects.";  };  if (totalobj == 36) {   msg = msg + "\n\n* Since you're using 36 objects, you might try playing this version with inch marks on a yardstick, or even just the black keys on a standard piano.";  };  if (totalobj == 31) {   msg = msg + "\n\n* Since you're using 31 objects, you might try playing this version with a calendar page showing a 31-day month.";  };  if (totalobj == 30) {   msg = msg + "\n\n* Since you're using 30 objects, you might try playing this version with a calendar page showing a 30-day month (September, April, June, or November).";  };  if (totalobj == 29) {   msg = msg + "\n\n* Since you're using 29 objects, you might try playing this version with a calendar page showing a leap-year February.";  };  if (totalobj == 28) {   msg = msg + "\n\n* Since you're using 28 objects, you might try playing this version with a calendar page showing a non-leap-year February.";  };  if (totalobj == 27) {   msg = msg + "\n\n* Since you're using 27 objects, you might try playing this version with amendments to the US Constitution.";  };  if (totalobj == 26) {   msg = msg + "\n\n* Since you're using 26 objects, you might try playing this version with letters of the alphabet.";  };  if (totalobj == 24) {   msg = msg + "\n\n* Since you're using 24 objects, you might try playing this version with a case of beer bottles, or all the face cards (jacks, queens, and kings) from a deck of Pinochle playing cards.";  };  if (totalobj == 20) {   msg = msg + "\n\n* Since you're using 20 objects, you could keep track of the score using 20-sided dice from a role-playing game, cigarettes in a standard pack, or matches in a matchbook.";  };  if (totalobj == 18) {   msg = msg + "\n\n* Since you're using 18 objects, you could try playing this by referencing the 18 holes on a golf course.";  };  if (totalobj == 16) {   msg = msg + "\n\n* Since you're using 16 objects, you could try playing this with digits on a credit card.";  };  if (totalobj == 12) {   msg = msg + "\n\n* Since you're using 12 objects, you could try playing this with such varied things as hours on a clock, eggs in a carton, all the face cards (jacks, queens, and kings) from a standard deck of playing cards, inch marks on a foot-long ruler, signs of the zodiac, or months of the year.";  };  if (mdlo == 5) {   msg = msg + "\n\n* Try playing this with 4-sided dice from a role-playing game, letting people choose their numbers instead of rolling them.";  };  if (mdlo == 7) {   msg = msg + "\n\n* Try playing this with standard 6-sided dice, letting people choose their numbers instead of rolling them.";  };  if (mdlo == 9) {   msg = msg + "\n\n* Try playing this with 8-sided dice from a role-playing game, letting people choose their numbers instead of rolling them.";  };  if (mdlo == 11) {   msg = msg + "\n\n* Try playing this with 10-sided dice from a role-playing game, letting people choose their numbers instead of rolling them.";  };  if (mdlo == 13) {   msg = msg + "\n\n* Try playing this with 12-sided dice from a role-playing game, letting people choose their numbers instead of rolling them.";  };  if (mdlo == 21) {   msg = msg + "\n\n* Try playing this with 20-sided dice from a role-playing game, letting people choose their numbers instead of rolling them.";  };  if (mdlo == 101) {   msg = msg + "\n\n* Try playing this with 100-sided dice from a role-playing game, letting people choose their numbers instead of rolling them.";  };  $("#givestrat").val(msg);  $('#givestrat').focus();  //multiples of mdlo must include 0 * mdlo, and go up to and including totalobj  //Last to move is winner and game direction is down formula: safe numbers to leave are multiples of mdlo  //Last to move is loser and game direction is down formula: safe numbers to leave are 1 greater than each of the multiples of mdlo (because you're trying to leave 1)  //Last to move is winner and game direction is up formula: safe numbers to attain are extra greater than each of the multiples of mdlo  //Last to move is loser and game direction is up formula: safe numbers to attain are extra-1 greater than each of the multiples of mdlo (because you're trying to have them take the last 1) }); function sortNumber(a,b) {  return b - a; }; $("#mnimstrat").click(function() {  var mstdmis = $(".mlosswin:checked").val();  var i = $("#mpiles").val();  var j = Number(i);  var k = 1;  var l = 1;  var temp = 0;  var safe = 0;  var trnsnm = 0;  var cmpr = 0;  var cnthgh = 0;  var mstrtr = "";  var ck = "";  var mmsg = "The rules for this particular version of the game of Nim are as follows:\n* There are two players.\n* The game starts out with " + i + " piles, consisting of ";  var objpiles = new Array();  var ckarrng = new Array();  var dplck = new Array();  var pssbl = new Array();  var sfpiles = new Array();  for (k=0;k&lt;=8;k++) {   ckarrng[k] = 0;   dplck[k] = 0;   sfpiles[k + 1] = (k + 1).toString() + " piles\n----------\n";  };  for (k=0;k&lt;j;k++) {   ck = "#mpile" + (k + 1).toString();   objpiles[k] = Number($(ck).val());   if (k == (j - 1)) {    mmsg = mmsg + "and ";   };   mmsg = mmsg + objpiles[k].toString();   if (k == (j - 1)) {    mmsg = mmsg + " objects, respectively.\n* ";   }   else {    mmsg = mmsg + ", ";   };  };  objpiles = objpiles.sort(sortNumber);  //sort into descending order  mmsg = mmsg + "The players alternate taking turns.\n* A turn consists of removing 1 or more objects from any single pile.\n* Neither player may take 0 objects on their respective turn.\n* Neither player may remove objects from more than 1 pile on their respective turn.\n* The last person to remove an object is the " + mstdmis + ".\n\n\nThe Scam: Although seemingly fair, you can rig this game in your favor.\n\nFor this particular version of Nim, ";  safe = objpiles[0];  for (k=1;k&lt;j;k++) {   safe = safe ^ objpiles[k];  //^ is bitwise xor operator used in determining if opening arrangement is already safe  };  if (safe == 0) {   mmsg = mmsg + "the other person should go first. "; //if opening move is already safe recommend other person go first   mstrtr = "other";  }  else {   mmsg = mmsg + "you should go first. ";   //otherwise you go first and make opening arrangement safe   mstrtr = "you";  };  mmsg = mmsg + "This will ensure that you can always leave certain safe pile arrangements at the end of each of your turns, which will guarantee your win.\n\nThe key arrangements of piles you can safely leave, in descending order, organized by descending number of piles, are as follows:\n\n";    for (k=0;k&lt;j;k++) {   pssbl[k] = 1;   for (l=k;l&lt;j;l++) {    pssbl[k] = pssbl[k] * (objpiles[l] + 1);   };  };  pssbl[0] = pssbl[0] - 2;  for (k=pssbl[0];k&gt;=0;k--) {   trnsnm = k;   for (l=2;l&lt;=j;l++) {    ckarrng[l - 2] = Math.floor(trnsnm/pssbl[l - 1]);    trnsnm = trnsnm - (ckarrng[l - 2] * pssbl[l - 1]);   };   ckarrng[j - 1] = trnsnm;   for (l=0;l&lt;=8;l++) {    dplck[l] = ckarrng[l];   };   ckarrng = ckarrng.sort(sortNumber);   if (ckarrng[2] != 0) {     // Make sure that there at least 3 non-zero numbers in the arrangement    cmpr = 0;    cnthgh = 0;    for (l=0;l&lt;=8;l++) {    // Count number similarities between sorted and unsorted arrangement arrays (prevents checking of duplicates)     if (ckarrng[l] == dplck[l]) {          cmpr = cmpr + 1;      if (ckarrng[l] &gt; 1) {       cnthgh = cnthgh + 1; // Count how many numbers in array are 2 or greater to avoid checking arrays of all 1s and 0s later      };     };    };    if (cmpr == 9) {    // If there are 9 similarities (nothing has changed), then pass arrangement array to be checked     if (cnthgh != 0) {   // is there at least 1 number that isn't a 1 or a 0?      safe = ckarrng[0] ^ ckarrng[1] ^ ckarrng[2] ^ ckarrng[3] ^ ckarrng[4] ^ ckarrng[5] ^ ckarrng[6] ^ ckarrng[7] ^ ckarrng[8];  //^ is bitwise xor operator used in determining if currently checked arrangement is safe      if (safe == 0) {       temp = 0;       for (l=0;l&lt;=8;l++) { // Determine number many piles the current safe arrangement contains        if (ckarrng[l] != 0) {         temp = l;        };       };       for (l=0;l&lt;=temp;l++) {        sfpiles[temp + 1] = sfpiles[temp + 1] + ckarrng[l];        if (l &lt; temp) {         sfpiles[temp + 1] = sfpiles[temp + 1] + ", ";        };       };       sfpiles[temp + 1] = sfpiles[temp + 1] + "\n";      };     };    };   };  };  for (k=j;k&gt;=3;k--) {   mmsg = mmsg + sfpiles[k];   if (((k/2) != (Math.floor(k/2))) &amp;&amp; (mstdmis == "loser")) { //If current pile number is odd and misere nim is being played add arrangements of 3 ones/5 ones etc.    for (l=k;l&gt;=1;l--) {     mmsg = mmsg + "1";     if (l != 1) {      mmsg = mmsg + ", ";     }     else {      mmsg = mmsg + "\n";     };    };   };   if (((k/2) == (Math.floor(k/2))) &amp;&amp; (mstdmis == "winner")) { //If current pile number is even and standard nim is being played add arrangements of 4 ones/6 ones etc.    for (l=k;l&gt;=1;l--) {     mmsg = mmsg + "1";     if (l != 1) {      mmsg = mmsg + ", ";     }     else {      mmsg = mmsg + "\n";     };    };   };   mmsg = mmsg + "\n";  };  mmsg = mmsg + "2 piles\n----------\n2 equal piles\n";  mmsg = mmsg + "\n\nTips:\n\n* The exact order of the safe arrangements above is irrelevant. Leaving an arrangent of 3, 2, 1 is the same as leaving an arrangement of:\n1, 2, 3\n1, 3, 2\n2, 1, 3\n2, 3, 1\n3, 1, 2";  if (mstrtr == "other") {   mmsg = mmsg + "\n\n* If it's decided that you must go first, and your opponent isn't wise to the ways of Nim, it's still possible for you to win. Only take small amounts of objects on your turns, until you get an opportunity to reach a safe arrangement.";  }  else {   mmsg = mmsg + "\n\n* If it's decided that the other person will go first, and your opponent isn't wise to the ways of Nim, it's still possible for you to win. Only take small amounts of objects on your turns, until you get an opportunity to reach a safe arrangement.";  };  if ((j == 4) &amp;&amp; (objpiles[0] == 7) &amp;&amp; (objpiles[1] == 5) &amp;&amp; (objpiles[2] == 3) &amp;&amp; (objpiles[3] == 1) &amp;&amp; (mstdmis == "loser")) {   mmsg = mmsg + "\n\n* The particular version you've entered is often known as " + String.fromCharCode(34) + "Marienbad Nim" + String.fromCharCode(34) + ", or simply " + String.fromCharCode(34) + "Marienbad" + String.fromCharCode(34) + ", as it was featured in the 1961 French film, " + String.fromCharCode(34) + "Last Year in Marienbad" + String.fromCharCode(34) + ".";  };  mmsg = mmsg + "\n\n* Memorizing the combinations may seem daunting, but there are easy to memorize patterns. For example:\n-Piles consisting of all the same number (such as 1, 1, 1)\n-Two equal piles\n-" + String.fromCharCode(34) + "Paired piles" + String.fromCharCode(34) + " (such as 2, 2, 1, 1)\n-" + String.fromCharCode(34) + "Addition" + String.fromCharCode(34) + " (such as 1, 2, 3, since 1+2=3, or 1, 4, 5, since 1+4=5)\n-Arrangements that only have 1 fewer object than the starting arrangement\n-Any pattern or mnemonic you develop that makes it easy for you to remember them";  mmsg = mmsg + "\n\n* Still can't memorize the patterns you need? Try making a crib sheet which is easily hidden or disguised.";  mmsg = mmsg + "\n\n* If there's too many patterns for memorizing or crib sheets, try setting up a simpler game, with fewer arrangements to memorize.";  mmsg = mmsg + "\n\n* Once you leave 2 equal rows, you simply mirror (copy) the other person's last move";  if (mstdmis == "loser") {   mmsg = mmsg + ". When you get to the point where one of the two piles only has 1 object in it, simply remove all the items in the other pile to win the game.";  }  else {   mmsg = mmsg + ", which will automatically win you the game.";  };  mmsg = mmsg + "\n\n* A similar mirroring strategy will also work with paired piles (defined above). In the case of paired piles, the purpose of the mirroring should be to get down to 2 equal rows.";  $("#mgivestrat").val(mmsg);  $("#mgivestrat").focus(); });  $("#nnimstrat").click(function() {  var fstmv = $("#fmove:checked").val();  var nstdmis = $(".nlosswin:checked").val();  var i = $("#npiles").val();  var j = Number(i);  var k = 1;  var l = 1;  var m = 1;  var safe = 0;  var sfck = 0;  var cnthgh = 0;  var cntone = 0;  var mmsg = "";  var objpiles = new Array();  for (k=0;k&lt;j;k++) {   ck = "#npile" + (k + 1).toString();   objpiles[k] = Number($(ck).val());  };  safe = objpiles[0];  for (k=1;k&lt;j;k++) {   safe = safe ^ objpiles[k];  //^ is bitwise xor operator used in determining if opening arrangement is already safe  };  if (safe == 0) {   if (fstmv == "first") {    mmsg = mmsg + "Since this position is already safe, the other person should go first.\n\nIf you must go first, try taking a small amount of objects from 1 row, and hope for a mistake by your opponent.";   }   else {    mmsg = mmsg + "Unfortunately, this position is already safe, so you have no good moves from here.\n\nTry taking a small amount of objects from 1 row, and hope for a mistake by your opponent.";   };  }  else {   mmsg = mmsg + "Here are the plays you can make on this turn, in order to insure a win at the end:\n\n";   for (k=0;k&lt;j;k++) {    for (l=1;l&lt;=objpiles[k];l++) {     cnthgh = 0;     cntone = 0;     sfck = objpiles[k] - l;     if (sfck &gt; 1) {      cnthgh = cnthgh + 1;     };     if (sfck == 1) {      cntone = cntone + 1;     };     for (m=0;m&lt;j;m++) {      if (m != k) {       sfck = sfck ^ objpiles[m];       if (objpiles[m] &gt; 1) {        cnthgh = cnthgh + 1;       };       if (objpiles[m] == 1) {        cntone = cntone + 1;       };      };     };     if  ((nstdmis == "winner") || (cnthgh != 0)) {      if (sfck == 0) {       for (m=0;m&lt;j;m++) {        if (m != k) {         mmsg = mmsg + objpiles[m].toString();        }        else {         mmsg = mmsg + (objpiles[k] - l).toString();        };        if (m == (j-1)) {         mmsg = mmsg + "  (" + objpiles[k].toString() + "-object pile: Remove " + l.toString() + ")\n";        }        else {         mmsg = mmsg + ", ";        };       };      };     }     else {      if ((cntone/2) != (Math.floor(cntone/2))) {       for (m=0;m&lt;j;m++) {        if (m != k) {         mmsg = mmsg + objpiles[m].toString();        }        else {         mmsg = mmsg + (objpiles[k] - l).toString();        };        if (m == (j-1)) {         mmsg = mmsg + "  (" + objpiles[k].toString() + "-object pile: Remove " + l.toString() + ")\n";        }        else {         mmsg = mmsg + ", ";        };       };      };     };    };   };  };  $("#ngivestrat").val(mmsg);  $("#ngivestrat").focus(); }); function isPrime(num) {  var prime = num != 1; // Everything but 1 can be prime  for (var i = 2; i &lt; num; i++) {   if (num % i == 0) {    prime = false;    break;   };  };  return prime; }; $("#wnimstrat").click(function() {  var stdmis = $(".wlosswin:checked").val();  var i = $("#wstartobj").val();  var j = Number(i);  var pmck = false;  var wmsg = "";  var fctra = 0;  var fctrb = 0;  var fctrc = new Array();  var fctrd = new Array();  var extr = new Array();  var frstmv = 0;  var dff = 99999;  var rnk = 0;  var k = 0;    //loop variable  var l = 0;    //array index variable  var m = 1;    //number used to adjust for standard or misere games  var n = 0;    //secondary loop variable  var o = 0;    //secondary array index variable  if (stdmis == "loser") {   m = 1;  }  else {   m = 0;  };  pmck = isPrime((j-m));  if (pmck == true) {   wmsg = "Unfortunately, using " + j.toString() + " objects, in a game where the person who removes the last object is the " + stdmis + ", will not work for Wise-Guy Nim. Please either choose another number, or change the goal of the game.";  }  else {   for (k = 2; k &lt; ((j - m) - 1); k++) {  //generate the closest factor pairs of j minus m    var inn = Math.round((j - m) / k);    var outt = ((j - m) / k);    if (inn == outt) {     if ((k - ((j - m) / k)) &gt;= 0) {      fctra = k;      fctrb = ((j - m) / k);      break;     };    };   };      for (n = 1; n &lt; (j - m); n++) {   //Find all factor pairs of numbers up to j minus m minus 1    for (k = 2; k &lt; ((j - m - n) - 1); k++) {       var inn = Math.round((j - m - n) / k);     var outt = ((j - m - n) / k);     if (inn == outt) {      if ((k - ((j - m - n) / k)) &gt;= 0) {       fctrc[o] = k;       fctrd[o] = ((j - m - n) / k);       extr[o] = n;       o = o + 1;      };     };    };   };   for (k = 0; k &lt; o; k++) {   //Search the fctrc array for the closest number - except for exact match - to fctra that appears highest on the list    if (((Math.abs(fctrc[k] - fctra)) &lt; dff) &amp;&amp; ((fctrc[k] - fctra) != 0)) {     rnk = k;     dff = Math.abs(fctrc[k] - fctra);     if (dff == 1) {      break;     };    };   };      wmsg = wmsg + "If you're going to play single-pile Nim against an opponent who understands the game's winning strategies, it's still possible to rig the game against them.\n\nExplain that, as a quick refresher, you'll go over the rules of Nim, so that there are no surprises. At first, state only these rules:\n* There are two players.\n* The players alternate taking turns.\n* Neither player is allowed to remove 0 objects.\n* The person who takes the last object is the " + stdmis + ".\n\n\n";   wmsg = wmsg + "The Scam: At this point, ask if the other player wants to go first themselves, or if they want you to go first. Their decision determines which set of rules you state:\n\n* If they decide that YOU should go first, state that, on each turn, you're each allowed to take any amount of objects in the range from 1 to " + (fctrc[rnk] - 1).toString() + " objects.\n\n* If they decide THEY'RE going first, state that, on each turn, you're each allowed to take any amount of objects in the range from 1 to " + (fctra - 1).toString() + ".\n\n";   wmsg = wmsg + "Either way, don't forget to mention that there are a total of " + j.toString() + " objects in the pile.\n\n\n";   wmsg = wmsg + "So, how do you win Wise-Guy Nim? That also depends on who goes first:\n\n* If YOU'RE going first, always take " + extr[rnk].toString() + " on your first move. From that point on, you watch how many objects they take, and you take " +  (fctrc[rnk]).toString() + " minus the number of objects they took. (If they took 1 object, you take " + (fctrc[rnk] - 1).toString() + " objects. If they took 2 objects, you take " + (fctrc[rnk] - 2).toString() + " objects, and so on.)\n\n";   wmsg = wmsg + "* If THEY'RE going first, you watch how many objects they take, and then you take " + fctra.toString() + " minus whatever they took. (If they took 1 object, you take " + (fctra - 1).toString() + " objects. If they took 2 objects, you take " + (fctra - 2).toString() + " objects, and so on.)\n\n\n";   wmsg = wmsg + "Tips:\n\n* Since you're dealing with two possible strategies, make sure you practice, so you can be sure of which strategy to use in what situation!\n\n* Until the other player decides who is going first, do not mention the total number of objects, or the amounts they're allowed to remove.";   wmsg = wmsg + "\n\n* If you're concerned that the numbers in the above strategy may seem strange to your audience, you might want to try a different total amount and/or goal. Experiment and see what works best for you!";   wmsg = wmsg + "\n\n* Instead of playing single-pile Nim with physical objects, you can often just state the numbers verbally, or even use a calculator.";   //optional extra tips for special cases   if (j == 100) {    wmsg = wmsg + "\n\n* Since you're using 100, you could keep track of the score using 100-sided dice from a role-playing game.";   };   if (j == 88) {    wmsg = wmsg + "\n\n* Since you're using 88 objects, you might try playing this game using piano keys.";   };   if (j == 78) {    wmsg = wmsg + "\n\n* Since you're using 78 objects, you might try using a standard deck of tarot cards as counters.";   };   if (j == 64) {    wmsg = wmsg + "\n\n* Since you're using 64 objects, you might try playing this on a chessboard.";   };   if (j == 54) {    wmsg = wmsg + "\n\n* Since you're using 54 objects, you might try using a standard deck of playing cards, including both jokers, as counters, ignoring their suits and values.";   };   if (j == 52) {    wmsg = wmsg + "\n\n* Since you're using 52 objects, you might try using a standard deck of playing cards as counters, ignoring their suits and values. You also might play this game using the weeks in a year, or even just the white keys on a piano.";   };   if (j == 50) {    wmsg = wmsg + "\n\n* Since you're using 50 objects, you might try using US states.";   };   if (j == 48) {    wmsg = wmsg + "\n\n* Since you're using 48 objects, you might try using a deck of Pinochle playing cards as counters, ignoring their suits and values.";   };   if (j == 42) {    wmsg = wmsg + "\n\n* Douglas Adams fans will especially enjoy Nim with 42 objects.";   };   if (j == 36) {    wmsg = wmsg + "\n\n* Since you're using 36 objects, you might try playing this version with inch marks on a yardstick, or even just the black keys on a standard piano.";   };   if (j == 31) {    wmsg = wmsg + "\n\n* Since you're using 31 objects, you might try playing this version with a calendar page showing a 31-day month.";   };   if (j == 30) {    wmsg = wmsg + "\n\n* Since you're using 30 objects, you might try playing this version with a calendar page showing a 30-day month (September, April, June, or November).";   };   if (j == 29) {    wmsg = wmsg + "\n\n* Since you're using 29 objects, you might try playing this version with a calendar page showing a leap-year February.";   };   if (j == 28) {    wmsg = wmsg + "\n\n* Since you're using 28 objects, you might try playing this version with a calendar page showing a non-leap-year February.";   };   if (j == 27) {    wmsg = wmsg + "\n\n* Since you're using 27 objects, you might try playing this version with amendments to the US Constitution.";   };   if (j == 26) {    wmsg = wmsg + "\n\n* Since you're using 26 objects, you might try playing this version with letters of the alphabet.";   };   if (j == 24) {    wmsg = wmsg + "\n\n* Since you're using 24 objects, you might try playing this version with a case of beer bottles, or all the face cards (jacks, queens, and kings) from a deck of Pinochle playing cards.";   };   if (j == 20) {    wmsg = wmsg + "\n\n* Since you're using 20 objects, you could keep track of the score using 20-sided dice from a role-playing game, cigarettes in a standard pack, or matches in a matchbook.";   };   if (j == 18) {    wmsg = wmsg + "\n\n* Since you're using 18 objects, you could try playing this by referencing the 18 holes on a golf course.";   };   if (j == 16) {    wmsg = wmsg + "\n\n* Since you're using 16 objects, you could try playing this with digits on a credit card.";   };   if (j == 12) {    wmsg = wmsg + "\n\n* Since you're using 12 objects, you could try playing this with such varied things as hours on a clock, eggs in a carton, all the face cards (jacks, queens, and kings) from a standard deck of playing cards, inch marks on a foot-long ruler, signs of the zodiac, or months of the year.";   };   if (j &lt; 10) {    wmsg = "Wise-Guy nim doesn't really work well with less than 10 objects. Please choose 10 or more objects.";   };  };  $("#wgivestrat").val(wmsg);  $("#wgivestrat").focus(); }); });//]]&gt;&lt;/script&gt;To learn how to use the Nim Strategy Calculator, see &lt;a href="http://headinside.blogspot.com/2010/08/nim-strategy-calculator.html"&gt;my &lt;span style="font-style:italic"&gt;Nim Strategy Calculator&lt;/span&gt; post&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;To learn more about the game of Nim, see &lt;a href="http://headinside.blogspot.com/search/label/nim"&gt;my &lt;span style="font-style:italic"&gt;Secrets of Nim&lt;/span&gt; series of posts&lt;/a&gt;.&lt;br /&gt;&lt;ul id="tabs"&gt;&lt;span id="fullpost"&gt;&lt;li&gt;&lt;a id="nm1" href="#nmsingle"&gt;Single-Pile Nim&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a id="nm2" href="#nmmulti"&gt;Multi-Pile Nim&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a id="nm3" href="#nmnextmove" class="s"&gt;Next Move?&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a id="nm4" href="#nmwise"&gt;Wise-Guy Nim&lt;/a&gt;&lt;/li&gt;&lt;/span&gt;&lt;/ul&gt;&lt;div class="panes"&gt;&lt;div&gt;&lt;span id="fullpost"&gt;&lt;h2&gt;Single-Pile Nim Strategy Calculator&lt;/h2&gt;&lt;br /&gt;Player who makes the last move is the:&amp;nbsp;&amp;nbsp;&lt;input type="radio" name="winloss" class="losswin" value="winner" checked=true /&gt; Winner&amp;nbsp;&amp;nbsp;&lt;input type="radio" name="winloss" class="losswin" value="loser" /&gt; Loser&lt;br /&gt;&lt;br /&gt;Maximum number of objects (limit): &lt;input type="text" id="startobj" maxlength="4" class="numeric" /&gt;&lt;br /&gt;&lt;br /&gt;Nim Game is played:&amp;nbsp;&amp;nbsp;&lt;input type="radio" name="upordown" class="downorup" value="down" checked=true /&gt; down to 0&amp;nbsp;&amp;nbsp;&lt;input type="radio" name="upordown" class="downorup" value="up" /&gt; up to limit&lt;br /&gt;&lt;br /&gt;Number of objects used per turn ranges from 1 to: &lt;input type="text" id="maxobj" maxlength="4" class="numeric" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;input style="display:block;margin-left:auto;margin-right:auto;" type="button" value="Calculate Nim Strategy" id="nimstrat" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;textarea style="display:block;margin-left:auto;margin-right:auto;" readonly="true" id="givestrat"&gt;&lt;/textarea&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;h2&gt;Multi-Pile Nim Strategy Calculator&lt;/h2&gt;&lt;br /&gt;Player who makes removes the last object is the:&amp;nbsp;&amp;nbsp;&lt;input type="radio" name="mwinloss" class="mlosswin" value="winner" checked=true /&gt; Winner&amp;nbsp;&amp;nbsp;&lt;input type="radio" name="mwinloss" class="mlosswin" value="loser" /&gt; Loser&lt;br /&gt;&lt;br /&gt;Number of piles:&amp;nbsp;&amp;nbsp;&lt;select name="slctr" id="mpiles"&gt;&lt;br /&gt;&lt;option selected="selected"&gt;3&lt;/option&gt;&lt;br /&gt;&lt;option&gt;4&lt;/option&gt;&lt;br /&gt;&lt;option&gt;5&lt;/option&gt;&lt;br /&gt;&lt;option&gt;6&lt;/option&gt;&lt;br /&gt;&lt;option&gt;7&lt;/option&gt;&lt;br /&gt;&lt;option&gt;8&lt;/option&gt;&lt;br /&gt;&lt;option&gt;9&lt;/option&gt;&lt;br /&gt;&lt;/select&gt;&lt;br /&gt;&lt;br /&gt;&lt;span id="pile1"&gt;Number of objects in pile #1:&amp;nbsp;&amp;nbsp;&lt;input type="text" maxlength="2" name="mnpile1" id="mpile1" class="numeric" /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span id="pile2"&gt;Number of objects in pile #2:&amp;nbsp;&amp;nbsp;&lt;input type="text" maxlength="2" name="mnpile2" id="mpile2" class="numeric" /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span id="pile3"&gt;Number of objects in pile #3:&amp;nbsp;&amp;nbsp;&lt;input type="text" maxlength="2" name="mnpile3" id="mpile3" class="numeric" /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span id="pile4"&gt;Number of objects in pile #4:&amp;nbsp;&amp;nbsp;&lt;input type="text" maxlength="2" name="mnpile4" id="mpile4" class="numeric" /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span id="pile5"&gt;Number of objects in pile #5:&amp;nbsp;&amp;nbsp;&lt;input type="text" maxlength="2" name="mnpile5" id="mpile5" class="numeric" /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span id="pile6"&gt;Number of objects in pile #6:&amp;nbsp;&amp;nbsp;&lt;input type="text" maxlength="2" name="mnpile6" id="mpile6" class="numeric" /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span id="pile7"&gt;Number of objects in pile #7:&amp;nbsp;&amp;nbsp;&lt;input type="text" maxlength="2" name="mnpile7" id="mpile7" class="numeric" /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span id="pile8"&gt;Number of objects in pile #8:&amp;nbsp;&amp;nbsp;&lt;input type="text" maxlength="2" name="mnpile8" id="mpile8" class="numeric" /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span id="pile9"&gt;Number of objects in pile #9:&amp;nbsp;&amp;nbsp;&lt;input type="text" maxlength="2" name="mnpile9" id="mpile9" class="numeric" /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;input style="display:block;margin-left:auto;margin-right:auto;" type="button" value="Calculate Nim Strategy" id="mnimstrat" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;textarea style="display:block;margin-left:auto;margin-right:auto;" readonly="true" id="mgivestrat"&gt;&lt;/textarea&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;h2&gt;Multi-Pile Nim Next Move Calculator&lt;/h2&gt;&lt;br /&gt;Player who makes removes the last object is the:&amp;nbsp;&amp;nbsp;&lt;input type="radio" name="nwinloss" class="nlosswin" value="winner" checked=true /&gt; Winner&amp;nbsp;&amp;nbsp;&lt;input type="radio" name="nwinloss" class="nlosswin" value="loser" /&gt; Loser&lt;br /&gt;&lt;br /&gt;First move of the game: &lt;input type="checkbox" name="fm" id="fmove" value="first" /&gt;&lt;br /&gt;&lt;br /&gt;Number of piles:&amp;nbsp;&amp;nbsp;&lt;select name="slctr" id="npiles"&gt;&lt;br /&gt;&lt;option selected="selected"&gt;3&lt;/option&gt;&lt;br /&gt;&lt;option&gt;4&lt;/option&gt;&lt;br /&gt;&lt;option&gt;5&lt;/option&gt;&lt;br /&gt;&lt;option&gt;6&lt;/option&gt;&lt;br /&gt;&lt;option&gt;7&lt;/option&gt;&lt;br /&gt;&lt;option&gt;8&lt;/option&gt;&lt;br /&gt;&lt;option&gt;9&lt;/option&gt;&lt;br /&gt;&lt;/select&gt;&lt;br /&gt;&lt;br /&gt;&lt;span id="pilen1"&gt;Number of objects in pile #1:&amp;nbsp;&amp;nbsp;&lt;input type="text" maxlength="2" name="nnpile1" id="npile1" class="numeric" /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span id="pilen2"&gt;Number of objects in pile #2:&amp;nbsp;&amp;nbsp;&lt;input type="text" maxlength="2" name="nnpile2" id="npile2" class="numeric" /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span id="pilen3"&gt;Number of objects in pile #3:&amp;nbsp;&amp;nbsp;&lt;input type="text" maxlength="2" name="nnpile3" id="npile3" class="numeric" /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span id="pilen4"&gt;Number of objects in pile #4:&amp;nbsp;&amp;nbsp;&lt;input type="text" maxlength="2" name="nnpile4" id="npile4" class="numeric" /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span id="pilen5"&gt;Number of objects in pile #5:&amp;nbsp;&amp;nbsp;&lt;input type="text" maxlength="2" name="nnpile5" id="npile5" class="numeric" /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span id="pilen6"&gt;Number of objects in pile #6:&amp;nbsp;&amp;nbsp;&lt;input type="text" maxlength="2" name="nnpile6" id="npile6" class="numeric" /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span id="pilen7"&gt;Number of objects in pile #7:&amp;nbsp;&amp;nbsp;&lt;input type="text" maxlength="2" name="nnpile7" id="npile7" class="numeric" /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span id="pilen8"&gt;Number of objects in pile #8:&amp;nbsp;&amp;nbsp;&lt;input type="text" maxlength="2" name="nnpile8" id="npile8" class="numeric" /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span id="pilen9"&gt;Number of objects in pile #9:&amp;nbsp;&amp;nbsp;&lt;input type="text" maxlength="2" name="nnpile9" id="npile9" class="numeric" /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;input style="display:block;margin-left:auto;margin-right:auto;" type="button" value="Calculate Next Move" id="nnimstrat" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;textarea style="display:block;margin-left:auto;margin-right:auto;" readonly="true" id="ngivestrat"&gt;&lt;/textarea&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;h2&gt;Single-Pile Wise-Guy Nim Strategy Calculator&lt;/h2&gt;&lt;br /&gt;Before using this particular Nim strategy calculator, please see &lt;a href="http://headinside.blogspot.com/2010/09/secrets-of-nim-wise-guy-nim.html"&gt;my &lt;span style="font-style:italic"&gt;Wise-Guy Nim&lt;/span&gt; post&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Player who removes the last object is the:&amp;nbsp;&amp;nbsp;&lt;input type="radio" name="wwinloss" class="wlosswin" value="winner" checked=true /&gt; Winner&amp;nbsp;&amp;nbsp;&lt;input type="radio" name="wwinloss" class="wlosswin" value="loser" /&gt; Loser&lt;br /&gt;&lt;br /&gt;Maximum number of objects (limit): &lt;input type="text" id="wstartobj" maxlength="4" class="numeric" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;input style="display:block;margin-left:auto;margin-right:auto;" type="button" value="Calculate Nim Strategy" id="wnimstrat" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;textarea style="display:block;margin-left:auto;margin-right:auto;" readonly="true" id="wgivestrat"&gt;&lt;/textarea&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800835365312821409-923584817122798636?l=gmmentalgym.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmmentalgym.blogspot.com/feeds/923584817122798636/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/nim-strategy-calculator.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/923584817122798636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/923584817122798636'/><link rel='alternate' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/nim-strategy-calculator.html' title='Nim Strategy Calculator'/><author><name>Pi Guy</name><uri>http://www.blogger.com/profile/09760001560356969164</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://lh3.ggpht.com/_zQQCfNroX3w/TMDBGryIxfI/AAAAAAAAASw/_ygdD3eWHCU/s0/gmsc.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800835365312821409.post-4896764306289895003</id><published>2010-11-05T13:00:00.000-07:00</published><updated>2010-11-14T21:05:38.394-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='workout'/><category scheme='http://www.blogger.com/atom/ns#' term='timed quizzes'/><title type='text'>Can You Name All 50 Green Eggs And Ham Words In 10 Minutes?</title><content type='html'>&lt;style type='text/css'&gt;#txt {  display:block;  border:none;  width:530px;  margin:0;  padding:0;  text-align:center;  font-family:verdana;  font-size:50pt;  font-weight:bold;  background-color:#F2F2F2;}.overlay { width:300px;}.overlay h2 { color:#fff; background-color:#2ea114; margin-left:-8px; margin-top:-8px; margin-right:-8px; padding-left:8px; padding-top:8px; padding-bottom:8px;}&lt;/style&gt;&lt;script type='text/javascript'&gt; var mins; var secs; var max; var begclo; function cd() {  begclo = 0;  mins = 1 * m("10");  secs = 0 + s(":01");  max = 50; } function m(obj) {  for (var i = 0; i &lt; obj.length; i++) {   if (obj.substring(i, i + 1) == ":") {    break;   }  }  return(obj.substring(0, i)); } function s(obj) {  for (var i = 0; i &lt; obj.length; i++) {   if (obj.substring(i, i + 1) == ":") {    break;   }  }  return(obj.substring(i + 1, obj.length)); } function dis(mins,secs) {  var disp;  if (mins &lt;= 9) {   disp = " 0";  }  else {   disp = " ";  }  disp+= mins + ":";  if (secs &lt;= 9) {   disp+= "0" + secs;  }  else {   disp+= secs;  }  return(disp); } function timeIsUp() {  mins = 0;  secs = 1; } function redo() {  if (count == max) return;  secs--;  if (secs == -1) {   secs = 59;   mins--;  }  document.cd.disp.value = dis(mins,secs);  if ((mins == 0) &amp;&amp; (secs == 0)) {   window.alert("Time's up! Let's see how you did.");   showMissed();  }  else {   cd = setTimeout("redo()",1000);  } } function init() {  cd(); } window.onload = init; var count=0; var found=new Array(); var hxcd=new Array("\x61","\x61\x6D","\x61\x6E\x64","\x61\x6E\x79\x77\x68\x65\x72\x65","\x61\x72\x65","\x62\x65","\x62\x6F\x61\x74","\x62\x6F\x78","\x63\x61\x72","\x63\x6F\x75\x6C\x64","\x64\x61\x72\x6B","\x64\x6F","\x65\x61\x74","\x65\x67\x67\x73","\x66\x6F\x78","\x67\x6F\x61\x74","\x67\x6F\x6F\x64","\x67\x72\x65\x65\x6E","\x68\x61\x6D","\x68\x65\x72\x65","\x68\x6F\x75\x73\x65","\x49","\x69\x66","\x69\x6E","\x6C\x65\x74","\x6C\x69\x6B\x65","\x6D\x61\x79","\x6D\x65","\x6D\x6F\x75\x73\x65","\x6E\x6F\x74","\x6F\x6E","\x6F\x72","\x72\x61\x69\x6E","\x53\x61\x6D","\x73\x61\x79","\x73\x65\x65","\x73\x6F","\x74\x68\x61\x6E\x6B","\x74\x68\x61\x74","\x74\x68\x65","\x74\x68\x65\x6D","\x74\x68\x65\x72\x65","\x74\x68\x65\x79","\x74\x72\x61\x69\x6E","\x74\x72\x65\x65","\x74\x72\x79","\x77\x69\x6C\x6C","\x77\x69\x74\x68","\x77\x6F\x75\x6C\x64","\x79\x6F\x75"); function checkAnsrs(fld) {  if (begclo==0) {   begclo = 1;   document.getElementById("remain").innerHTML="&lt;B&gt;50 words to go&lt;/B&gt;";   redo();  }  if (fld.value.length &gt;= 1) {   for (var i=0;i&lt;hxcd.length;i++) {    if (fld.value.toLowerCase()==hxcd[i].toLowerCase()) {     found[found.length]=hxcd[i];     found.sort();     hxcd.splice(i,1);     fld.value="";     count++;     msg="";     for (var x=0;x&lt;found.length;x++) {      msg+=found[x]+", ";      if ((x+1)%5 == 0) msg+="&lt;BR&gt;";     }     document.getElementById("found").innerHTML=msg;     remainmsg=" words to go";     if (count == (max-1)) remainmsg=" word to go";     document.getElementById("remain").innerHTML="&lt;B&gt;"+(max-count)+remainmsg+"&lt;/B&gt;";     if (count == max) {      $('html,body').scrollTop(0);                $("#allans").overlay({                 fixed: false,                 left: 0,                top: 0                });               $("#allans").data("overlay").load();      resultmessage();     }    }   }  }  else {   if (fld.value == " ") fld.value="";  } } function showMissed() {  msg="";  msg+='&lt;BR&gt;&lt;FONT COLOR=RED&gt;&lt;B&gt;You forgot: &lt;/B&gt;';  for (x=0;x&lt;hxcd.length;x++) {   msg+=hxcd[x]+", ";   if ((x+1)%5 == 0) msg+="&lt;BR&gt;";  }  msg+='&lt;/FONT&gt;&lt;BR&gt;';  document.getElementById("missing").innerHTML=msg;  resultmessage(); } function resultmessage() {  msg = "";  if (count &gt;= 45) {   msg = "&lt;FONT COLOR=BLACK&gt;&lt;A HREF=" + String.fromCharCode(34) + "http://www.seussville.com/titles/greeneggs/recipes.html" + String.fromCharCode(34) + " TARGET=" + String.fromCharCode(34) + "_blank" + String.fromCharCode(34) + "&gt;Congratulations! Click here for the recipe to Green Eggs and Ham.&lt;/A&gt;&lt;/FONT&gt;";  }  else {   msg = "&lt;FONT COLOR=BLACK&gt;&lt;A HREF=" + String.fromCharCode(34) + "http://www.youtube.com/watch?v=RdR0LXOiEB8" + String.fromCharCode(34) + " TARGET=" + String.fromCharCode(34) + "_blank" + String.fromCharCode(34) + "&gt;You can do better. Watch the Green Eggs and Ham movie and then try again.&lt;/A&gt;&lt;/FONT&gt;";  }  document.getElementById("rsltmsg").innerHTML=msg; }&lt;/script&gt;After Dr. Suess' success with &lt;span style="font-style:italic;"&gt;The Cat In The Hat&lt;/span&gt;, which contained 236 different words, Random House publisher and co-founder Bennett Cerf is alleged to have bet Dr. Suess that he couldn't write a book using only 50 different words.&lt;br /&gt;&lt;br /&gt;Whether the story of the bet is real or not, Dr. Suess did succeed in writing just such a book. That book is still one of his most famous works, &lt;span style="font-style:italic;"&gt;Green Eggs and Ham&lt;/span&gt;. Because that book is so well known, uses so few words, and can be read so quickly, it should be easy to recall all 50 words from &lt;span style="font-style:italic;"&gt;Green Eggs and Ham&lt;/span&gt; in only 10 minutes, shouldn't it? Start the 4 words from the title, and work from there. Don't forget the one word in the book that has more than one syllable!&lt;br /&gt;&lt;br /&gt;&lt;span id="fullpost"&gt;If you can name at least 90% of the words, I'll have Dr. Suess give you an actual recipe for green eggs and ham! Otherwise, I'll link to a video of &lt;span style="font-style:italic;"&gt;Green Eggs and Ham&lt;/span&gt;, which you can study before trying the quiz again.&lt;br /&gt;&lt;br /&gt;To stop this quiz before the time is up, click on the &lt;span style="font-style:italic;"&gt;Give Up?&lt;/span&gt; button. To try this quiz again, simply reload the page. If you enjoy timed quizzes like this, you can find links to hundreds of them at &lt;a href="http://headinside.blogspot.com/2008/03/how-many-xs-can-you-name-in-y-minutes.html"&gt;How Many Xs Can You Name In Y Minutes?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;(This quiz was created with the aid of the &lt;a href="http://members.cox.net/beagenius/timedquizgenerator.html"&gt;Timed Quiz Generator&lt;/a&gt;)&lt;br /&gt;&lt;/span&gt;&lt;form name="cd"&gt;&lt;span id="fullpost"&gt;&lt;input id="txt" readonly="true" type="text" value="10:00" name="disp"&gt;&lt;/span&gt;&lt;/form&gt;&lt;span id="fullpost"&gt;&lt;div id="remain" style="text-align:center;"&gt;&lt;span style="font-weight:bold;"&gt;To start the clock, begin typing in the box below.&lt;/span&gt;&lt;/div&gt;&lt;input type="text" onKeyUp="checkAnsrs(this);" name="input" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;input type="button" value="Give up?" onclick="timeIsUp();" name="giveup" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;br /&gt;&lt;div style="text-align:center;"&gt;&lt;span style="font-weight:bold;"&gt;Named so far:&lt;/span&gt;&lt;/div&gt;&lt;div id="found" style="text-align:center;"&gt;None&lt;/div&gt;&amp;nbsp;&lt;br /&gt;&lt;div id="missing" style="text-align:center;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div id="rsltmsg" style="text-align:center;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div id="allans" class="overlay"&gt;&lt;div&gt;&lt;h2&gt;&lt;span style="font-weight:bold;"&gt;Congratulations!&lt;/span&gt;&lt;/h2&gt;You did it!&lt;br /&gt;&lt;br /&gt;&lt;button class="close gmsButton" style="display:block;margin-left:auto;margin-right:auto;"&gt; Close &lt;/button&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800835365312821409-4896764306289895003?l=gmmentalgym.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmmentalgym.blogspot.com/feeds/4896764306289895003/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/can-you-name-all-50-green-eggs-and-ham.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/4896764306289895003'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/4896764306289895003'/><link rel='alternate' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/can-you-name-all-50-green-eggs-and-ham.html' title='Can You Name All 50 Green Eggs And Ham Words In 10 Minutes?'/><author><name>Pi Guy</name><uri>http://www.blogger.com/profile/09760001560356969164</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://lh3.ggpht.com/_zQQCfNroX3w/TMDBGryIxfI/AAAAAAAAASw/_ygdD3eWHCU/s0/gmsc.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800835365312821409.post-4494744392120111157</id><published>2010-11-05T12:00:00.000-07:00</published><updated>2010-11-14T20:51:41.095-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='workout'/><category scheme='http://www.blogger.com/atom/ns#' term='timed quizzes'/><title type='text'>How Many of WKRP's Contest Songs Can You Name In 5 Minutes?</title><content type='html'>&lt;style type='text/css'&gt;#txt {  display:block;  border:none;  width:530px;  margin:0;  padding:0;  text-align:center;  font-family:verdana;  font-size:50pt;  font-weight:bold;  background-color:#F2F2F2;}.overlay { width:300px;}.overlay h2 { color:#fff; background-color:#2ea114; margin-left:-8px; margin-top:-8px; margin-right:-8px; padding-left:8px; padding-top:8px; padding-bottom:8px;}&lt;/style&gt;&lt;script type='text/javascript'&gt;var mins;var secs;var max;var begclo;function cd() { begclo = 0; //boolean variable for beginning the clock upon typing  mins = 1 * m("5"); // change minutes here  secs = 0 + s(":01"); // change seconds here (always add an additional second to your total)  max = 6; //change total number of items in list here}function m(obj) {  for(var i = 0; i &lt; obj.length; i++) {    if(obj.substring(i, i + 1) == ":")    break;  }  return(obj.substring(0, i));}function s(obj) {  for(var i = 0; i &lt; obj.length; i++) {    if(obj.substring(i, i + 1) == ":")    break;  }  return(obj.substring(i + 1, obj.length));}function dis(mins,secs) {  var disp;  if(mins &lt;= 9) {    disp = " 0";  } else {    disp = " ";  }  disp += mins + ":";  if(secs &lt;= 9) {    disp += "0" + secs;  } else {    disp += secs;  }  return(disp);}function timeIsUp(){  mins = 0; secs = 1;}function redo() {  if(count==max)return;   secs--;  if(secs == -1) {    secs = 59;    mins--;  }  document.cd.disp.value = dis(mins,secs); // setup additional displays here.  if((mins == 0) &amp;&amp; (secs == 0)) {    window.alert("Time's up! Let's see how you did.");     showMissed();   } else {   cd = setTimeout("redo()",1000);  }}function init() {  cd();}window.onload = init;var count=0;var found=new Array();var states=new Array("\x54\x6f\x6f\x20\x57\x69\x6c\x64\x20\x54\x6f\x20\x54\x61\x6d\x65","\x54\x75\x6d\x62\x6c\x69\x6e\x67\x20\x44\x69\x63\x65","\x59\x4d\x43\x41","\x44\x61\x6e\x6b\x65\x20\x53\x63\x68\x6f\x65\x6e","\x53\x74\x72\x61\x69\x67\x68\x74\x20\x4f\x6e","\x54\x68\x65\x20\x53\x74\x61\x72\x20\x53\x70\x61\x6e\x67\x6c\x65\x64\x20\x42\x61\x6e\x6e\x65\x72");function checkStates(fld){if (begclo==0) { begclo = 1; //If this is the first keystroke, start the clock document.getElementById("remain").innerHTML="&lt;b&gt;6 songs to go&lt;/b&gt;"; redo();}if(fld.value.length&gt;3){  if (fld.value.toLowerCase()=="\x73\x74\x61\x72\x20\x73\x70\x61\x6e\x67\x6c\x65\x64\x20\x62\x61\x6e\x6e\x65\x72") {    fld.value="\x54\x68\x65\x20\x53\x74\x61\x72\x20\x53\x70\x61\x6e\x67\x6c\x65\x64\x20\x42\x61\x6e\x6e\x65\x72";  }  if (fld.value.toLowerCase()=="\x6e\x61\x74\x69\x6f\x6e\x61\x6c\x20\x61\x6e\x74\x68\x65\x6d") {    fld.value="\x54\x68\x65\x20\x53\x74\x61\x72\x20\x53\x70\x61\x6e\x67\x6c\x65\x64\x20\x42\x61\x6e\x6e\x65\x72";  }  if (fld.value.toLowerCase()=="\x74\x68\x65\x20\x6e\x61\x74\x69\x6f\x6e\x61\x6c\x20\x61\x6e\x74\x68\x65\x6d") {    fld.value="\x54\x68\x65\x20\x53\x74\x61\x72\x20\x53\x70\x61\x6e\x67\x6c\x65\x64\x20\x42\x61\x6e\x6e\x65\x72";  }  if (fld.value.toLowerCase()=="\x75\x73\x61\x20\x6e\x61\x74\x69\x6f\x6e\x61\x6c\x20\x61\x6e\x74\x68\x65\x6d") {    fld.value="\x54\x68\x65\x20\x53\x74\x61\x72\x20\x53\x70\x61\x6e\x67\x6c\x65\x64\x20\x42\x61\x6e\x6e\x65\x72";  }  if (fld.value.toLowerCase()=="\x75\x73\x20\x6e\x61\x74\x69\x6f\x6e\x61\x6c\x20\x61\x6e\x74\x68\x65\x6d") {    fld.value="\x54\x68\x65\x20\x53\x74\x61\x72\x20\x53\x70\x61\x6e\x67\x6c\x65\x64\x20\x42\x61\x6e\x6e\x65\x72";  }  if (fld.value.toLowerCase()=="\x74\x68\x65\x20\x75\x73\x61\x20\x6e\x61\x74\x69\x6f\x6e\x61\x6c\x20\x61\x6e\x74\x68\x65\x6d") {    fld.value="\x54\x68\x65\x20\x53\x74\x61\x72\x20\x53\x70\x61\x6e\x67\x6c\x65\x64\x20\x42\x61\x6e\x6e\x65\x72";  }  if (fld.value.toLowerCase()=="\x74\x68\x65\x20\x75\x73\x20\x6e\x61\x74\x69\x6f\x6e\x61\x6c\x20\x61\x6e\x74\x68\x65\x6d") {    fld.value="\x54\x68\x65\x20\x53\x74\x61\x72\x20\x53\x70\x61\x6e\x67\x6c\x65\x64\x20\x42\x61\x6e\x6e\x65\x72";  }  if (fld.value.toLowerCase()=="\x64\x61\x6e\x6b\x61\x20\x73\x68\x61\x6e\x65") {    fld.value="\x44\x61\x6e\x6b\x65\x20\x53\x63\x68\x6f\x65\x6e";  }  if (fld.value.toLowerCase()=="\x64\x61\x6e\x6b\x65\x20\x73\x68\x61\x6e\x65") {    fld.value="\x44\x61\x6e\x6b\x65\x20\x53\x63\x68\x6f\x65\x6e";  }  if (fld.value.toLowerCase()=="\x64\x61\x6e\x6b\x61\x20\x73\x68\x61\x69\x6e") {    fld.value="\x44\x61\x6e\x6b\x65\x20\x53\x63\x68\x6f\x65\x6e";  }  if (fld.value.toLowerCase()=="\x64\x61\x6e\x6b\x65\x20\x73\x68\x61\x69\x6e") {    fld.value="\x44\x61\x6e\x6b\x65\x20\x53\x63\x68\x6f\x65\x6e";  }  if (fld.value.toLowerCase()=="\x64\x6f\x6e\x6b\x61\x20\x73\x68\x61\x6e\x65") {    fld.value="\x44\x61\x6e\x6b\x65\x20\x53\x63\x68\x6f\x65\x6e";  }  if (fld.value.toLowerCase()=="\x64\x6f\x6e\x6b\x65\x20\x73\x68\x61\x6e\x65") {    fld.value="\x44\x61\x6e\x6b\x65\x20\x53\x63\x68\x6f\x65\x6e";  }  if (fld.value.toLowerCase()=="\x64\x6f\x6e\x6b\x61\x20\x73\x68\x61\x69\x6e") {    fld.value="\x44\x61\x6e\x6b\x65\x20\x53\x63\x68\x6f\x65\x6e";  }  if (fld.value.toLowerCase()=="\x64\x6f\x6e\x6b\x65\x20\x73\x68\x61\x69\x6e") {    fld.value="\x44\x61\x6e\x6b\x65\x20\x53\x63\x68\x6f\x65\x6e";  }  if (fld.value.toLowerCase()=="\x64\x61\x6e\x6b\x65\x73\x63\x68\x6f\x65\x6e\x65") {    fld.value="\x44\x61\x6e\x6b\x65\x20\x53\x63\x68\x6f\x65\x6e";  }  if (fld.value.toLowerCase()=="\x64\x61\x6e\x6b\x65\x20\x73\x63\x68\xf6\x6e") {    fld.value="\x44\x61\x6e\x6b\x65\x20\x53\x63\x68\x6f\x65\x6e";  }for(var i=0;i&lt;states.length;i++){   if(fld.value.toLowerCase()==states[i].toLowerCase()){    found[found.length]=states[i];    found.sort();    states.splice(i,1);    fld.value="";    count++;    var msg="";    for(var x=0;x&lt;found.length;x++){      msg+=found[x]+", ";      if((x+1)%3==0)msg+="&lt;br&gt;";    }    document.getElementById("found").innerHTML=msg;    var remainmsg=" songs to go";    if(count==(max-1))remainmsg=" song to go";    document.getElementById("remain").innerHTML="&lt;b&gt;"+(max-count)+remainmsg+"&lt;/b&gt;";    if(count==max){  msg="(In the order of the song clip, the songs and artists are: \x54\x6f\x6f\x20\x57\x69\x6c\x64\x20\x54\x6f\x20\x54\x61\x6d\x65 by the \x42\x6f\x79\x7a\x7a, \x54\x75\x6d\x62\x6c\x69\x6e\x67\x20\x44\x69\x63\x65 by the \x52\x6f\x6c\x6c\x69\x6e\x67\x20\x53\x74\x6f\x6e\x65\x73, \x59\x4d\x43\x41 by the \x56\x69\x6c\x6c\x61\x67\x65\x20\x50\x65\x6f\x70\x6c\x65, \x44\x61\x6e\x6b\x65\x20\x53\x63\x68\x6f\x65\x6e by \x57\x61\x79\x6e\x65\x20\x4e\x65\x77\x74\x6f\x6e, \x53\x74\x72\x61\x69\x67\x68\x74\x20\x4f\x6e by \x48\x65\x61\x72\x74, and \x54\x68\x65\x20\x53\x74\x61\x72\x20\x53\x70\x61\x6e\x67\x6c\x65\x64\x20\x42\x61\x6e\x6e\x65\x72 by \x46\x72\x61\x6e\x63\x69\x73\x20\x53\x63\x6f\x74\x74\x20\x4b\x65\x79)";      document.getElementById("missing").innerHTML=msg;        $('html,body').scrollTop(0);   $("#allans").overlay({    fixed: false,    left: 0,    top: 0   });   $("#allans").data("overlay").load();    }  }  }  }else{  if(fld.value==" ")fld.value="";  } }function showMissed(){    var msg="";    msg+='&lt;br&gt;&lt;FONT COLOR=RED&gt;&lt;span style="font-weight:bold;"&gt;You forgot: &lt;/span&gt;';    for(var x=0;x&lt;states.length;x++){      msg+=states[x]+", ";      if((x+1)%3==0)msg+="&lt;br&gt;";    }    msg+="&lt;/span&gt;&lt;FONT COLOR=BLACK&gt;&lt;br&gt;&lt;br&gt;(In the order of the song clip, the songs and artists are: \x54\x6f\x6f\x20\x57\x69\x6c\x64\x20\x54\x6f\x20\x54\x61\x6d\x65 by the \x42\x6f\x79\x7a\x7a, \x54\x75\x6d\x62\x6c\x69\x6e\x67\x20\x44\x69\x63\x65 by the \x52\x6f\x6c\x6c\x69\x6e\x67\x20\x53\x74\x6f\x6e\x65\x73, \x59\x4d\x43\x41 by the \x56\x69\x6c\x6c\x61\x67\x65\x20\x50\x65\x6f\x70\x6c\x65, \x44\x61\x6e\x6b\x65\x20\x53\x63\x68\x6f\x65\x6e by \x57\x61\x79\x6e\x65\x20\x4e\x65\x77\x74\x6f\x6e, \x53\x74\x72\x61\x69\x67\x68\x74\x20\x4f\x6e by \x48\x65\x61\x72\x74, and \x54\x68\x65\x20\x53\x74\x61\x72\x20\x53\x70\x61\x6e\x67\x6c\x65\x64\x20\x42\x61\x6e\x6e\x65\x72 by \x46\x72\x61\x6e\x63\x69\x73\x20\x53\x63\x6f\x74\x74\x20\x4b\x65\x79)";    document.getElementById("missing").innerHTML=msg; }&lt;/script&gt;On the classic sitcom &lt;span style="font-style:italic;"&gt;WKRP in Cincinnati&lt;/span&gt;, the 11th episode was titled &lt;span style="font-style:italic;"&gt;The Contest Nobody Could Win&lt;/span&gt;. When Dr. Johnny Fever (Howard Hesseman) announces a song-naming contest, but mistakenly broadcasts a prize of $5,000, instead of $50, they have to make the contest so difficult that no one could win, which they do by splicing together incredibly short segments of 6 songs.&lt;br /&gt;&lt;br /&gt;&lt;span id="fullpost"&gt;Just above the timer is the spliced-together clip as originally broadcast on &lt;span style="font-style:italic;"&gt;WKRP in Cincinnati&lt;/span&gt; (For the DVD and the &lt;a href="http://www.hulu.com/watch/312/wkrp-in-cincinnati-the-contest-nobody-could-win" TARGET="_blank"&gt;online brodcast&lt;/a&gt;, different songs have since been dubbed in). Now, I don't have $5,000, or even $50, to give if you get them all correct, but unlike Dr. Fever, I'll give you 5 minutes to name them, you won't be naming the artists, and you don't even have to name them in order! I'll even give you the correct answers after the 5 minutes are up.&lt;br /&gt;&lt;br /&gt;Obviously, WKRP trivia fans will have an advantage over someone genuinely trying to determine the songs from the clip.&lt;br /&gt;&lt;br /&gt;To stop this quiz before the time is up, click on the &lt;span style="font-style:italic;"&gt;Give Up?&lt;/span&gt; button. To try this quiz again, simply reload the page. If you enjoy timed quizzes like this, you can find links to hundreds of them at &lt;a href="http://headinside.blogspot.com/2008/03/how-many-xs-can-you-name-in-y-minutes.html"&gt;How Many Xs Can You Name In Y Minutes?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;(Original script by Erik Wannebo of &lt;a href="http://www.ironicsans.com/"&gt;www.ironicsans.com&lt;/a&gt;. This version by Scott Cram.)&lt;br /&gt;&lt;/span&gt;&lt;div style="text-align:center;"&gt;&lt;span id="fullpost"&gt;&lt;br /&gt;WKRP's original contest songs (&lt;a href="http://www.apple.com/quicktime/" TARGET="_blank"&gt;QuickTime&lt;/a&gt;):&lt;br /&gt;&lt;embed SRC="http://members.cox.net/beagenius/images/WKRPcontest.mov" HEIGHT=16 WIDTH=310 AUTOPLAY="false"&gt;&lt;/span&gt;&lt;/div&gt;&lt;span id="fullpost"&gt;&lt;br /&gt;&lt;/span&gt;&lt;form name="cd"&gt;&lt;span id="fullpost"&gt;&lt;input id="txt" readonly="true" type="text" value="05:00" name="disp"&gt;&lt;/span&gt;&lt;/form&gt;&lt;span id="fullpost"&gt;&lt;div id="remain" style="text-align:center;"&gt;&lt;span style="font-weight:bold;"&gt;To start the clock, begin typing in the box below.&lt;/span&gt;&lt;/div&gt;&lt;input type="text" onKeyUp="checkStates(this);" name="input" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;input type="button" value="Give up?" onclick="timeIsUp();" name="giveup" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;br /&gt;&lt;div style="text-align:center;"&gt;&lt;span style="font-weight:bold;"&gt;Named so far:&lt;/span&gt;&lt;/div&gt;&lt;div id="found" style="text-align:center;"&gt;None&lt;/div&gt;&amp;nbsp;&lt;br /&gt;&lt;div id="missing" style="text-align:center;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div id="bonus" style="text-align:center;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div id="allans" class="overlay"&gt;&lt;div&gt;&lt;h2&gt;&lt;span style="font-weight:bold;"&gt;Congratulations!&lt;/span&gt;&lt;/h2&gt;You did it!&lt;br /&gt;&lt;br /&gt;&lt;button class="close gmsButton" style="display:block;margin-left:auto;margin-right:auto;"&gt; Close &lt;/button&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800835365312821409-4494744392120111157?l=gmmentalgym.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmmentalgym.blogspot.com/feeds/4494744392120111157/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/how-many-of-wkrps-contest-songs-can-you.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/4494744392120111157'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/4494744392120111157'/><link rel='alternate' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/how-many-of-wkrps-contest-songs-can-you.html' title='How Many of WKRP&apos;s Contest Songs Can You Name In 5 Minutes?'/><author><name>Pi Guy</name><uri>http://www.blogger.com/profile/09760001560356969164</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://lh3.ggpht.com/_zQQCfNroX3w/TMDBGryIxfI/AAAAAAAAASw/_ygdD3eWHCU/s0/gmsc.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800835365312821409.post-4898555569591734837</id><published>2010-11-04T15:00:00.000-07:00</published><updated>2010-11-14T21:05:05.343-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='workout'/><category scheme='http://www.blogger.com/atom/ns#' term='timed quizzes'/><title type='text'>Can You Name All 7 Multi-Season TV Series That Were Set 2 Decades Prior To Their Production In 3.5 Minutes?</title><content type='html'>&lt;style type='text/css'&gt;#txt {  display:block;  border:none;  width:530px;  margin:0;  padding:0;  text-align:center;  font-family:verdana;  font-size:50pt;  font-weight:bold;  background-color:#F2F2F2;}.overlay { width:300px;}.overlay h2 { color:#fff; background-color:#2ea114; margin-left:-8px; margin-top:-8px; margin-right:-8px; padding-left:8px; padding-top:8px; padding-bottom:8px;}&lt;/style&gt;&lt;script type='text/javascript'&gt; var mins; var secs; var max; var begclo; function cd() {  begclo = 0;  mins = 1 * m("3");  secs = 0 + s(":31");  max = 7; } function m(obj) {  for (var i = 0; i &lt; obj.length; i++) {   if (obj.substring(i, i + 1) == ":") {    break;   }  }  return(obj.substring(0, i)); } function s(obj) {  for (var i = 0; i &lt; obj.length; i++) {   if (obj.substring(i, i + 1) == ":") {    break;   }  }  return(obj.substring(i + 1, obj.length)); } function dis(mins,secs) {  var disp;  if (mins &lt;= 9) {   disp = " 0";  }  else {   disp = " ";  }  disp+= mins + ":";  if (secs &lt;= 9) {   disp+= "0" + secs;  }  else {   disp+= secs;  }  return(disp); } function timeIsUp() {  mins = 0;  secs = 1; } function redo() {  if (count == max) return;  secs--;  if (secs == -1) {   secs = 59;   mins--;  }  document.cd.disp.value = dis(mins,secs);  if ((mins == 0) &amp;&amp; (secs == 0)) {   window.alert("Time's up! Let's see how you did.");   showMissed();  }  else {   cd = setTimeout("redo()",1000);  } } function init() {  cd(); } window.onload = init; var count=0; var found=new Array(); var hxcd=new Array("\x48\x61\x70\x70\x79\x20\x44\x61\x79\x73","\x4D\x2A\x41\x2A\x53\x2A\x48","\x48\x6F\x67\x61\x6E\x27\x73\x20\x48\x65\x72\x6F\x65\x73","\x4D\x63\x48\x61\x6C\x65\x27\x73\x20\x4E\x61\x76\x79","\x54\x68\x65\x20\x57\x6F\x6E\x64\x65\x72\x20\x59\x65\x61\x72\x73","\x54\x68\x61\x74\x20\x27\x37\x30\x73\x20\x53\x68\x6F\x77","\x45\x76\x65\x72\x79\x62\x6F\x64\x79\x20\x48\x61\x74\x65\x73\x20\x43\x68\x72\x69\x73"); function checkAnsrs(fld) {  if (begclo==0) {   begclo = 1;   document.getElementById("remain").innerHTML="&lt;B&gt;7 TV Shows to go&lt;/B&gt;";   redo();  }  if (fld.value.length &gt; 1) {   if (fld.value.toLowerCase()=="\x68\x61\x70\x70\x79\x20\x64\x61\x79\x27\x73") {    fld.value="\x48\x61\x70\x70\x79\x20\x44\x61\x79\x73";   }   if (fld.value.toLowerCase()=="\x6D\x61\x73\x68") {    fld.value="\x4D\x2A\x41\x2A\x53\x2A\x48";   }   if (fld.value.toLowerCase()=="\x68\x6F\x67\x61\x6E\x73\x20\x68\x65\x72\x6F\x65\x73") {    fld.value="\x48\x6F\x67\x61\x6E\x27\x73\x20\x48\x65\x72\x6F\x65\x73";   }   if (fld.value.toLowerCase()=="\x68\x6F\x67\x61\x6E\x27\x73\x20\x68\x65\x72\x6F\x73") {    fld.value="\x48\x6F\x67\x61\x6E\x27\x73\x20\x48\x65\x72\x6F\x65\x73";   }   if (fld.value.toLowerCase()=="\x68\x6F\x67\x61\x6E\x73\x20\x68\x65\x72\x6F\x73") {    fld.value="\x48\x6F\x67\x61\x6E\x27\x73\x20\x48\x65\x72\x6F\x65\x73";   }   if (fld.value.toLowerCase()=="\x6D\x63\x68\x61\x6C\x65\x73\x20\x6E\x61\x76\x79") {    fld.value="\x4D\x63\x48\x61\x6C\x65\x27\x73\x20\x4E\x61\x76\x79";   }   if (fld.value.toLowerCase()=="\x6D\x63\x68\x61\x69\x6C\x27\x73\x20\x6E\x61\x76\x79") {    fld.value="\x4D\x63\x48\x61\x6C\x65\x27\x73\x20\x4E\x61\x76\x79";   }   if (fld.value.toLowerCase()=="\x6D\x63\x68\x61\x69\x6C\x73\x20\x6E\x61\x76\x79") {    fld.value="\x4D\x63\x48\x61\x6C\x65\x27\x73\x20\x4E\x61\x76\x79";   }   if (fld.value.toLowerCase()=="\x77\x6F\x6E\x64\x65\x72\x20\x79\x65\x61\x72\x73") {    fld.value="\x54\x68\x65\x20\x57\x6F\x6E\x64\x65\x72\x20\x59\x65\x61\x72\x73";   }   if (fld.value.toLowerCase()=="\x74\x68\x61\x74\x20\x37\x30\x73\x20\x73\x68\x6F\x77") {    fld.value="\x54\x68\x61\x74\x20\x27\x37\x30\x73\x20\x53\x68\x6F\x77";   }   if (fld.value.toLowerCase()=="\x74\x68\x61\x74\x20\x73\x65\x76\x65\x6E\x74\x69\x65\x73\x20\x73\x68\x6F\x77") {    fld.value="\x54\x68\x61\x74\x20\x27\x37\x30\x73\x20\x53\x68\x6F\x77";   }   for (var i=0;i&lt;hxcd.length;i++) {    if (fld.value.toLowerCase()==hxcd[i].toLowerCase()) {     found[found.length]=hxcd[i];     found.sort();     hxcd.splice(i,1);     fld.value="";     count++;     msg="";     for (var x=0;x&lt;found.length;x++) {      msg+=found[x]+", ";      if ((x+1)%5 == 0) msg+="&lt;BR&gt;";     }     document.getElementById("found").innerHTML=msg;     remainmsg=" TV Shows to go";     if (count == (max-1)) remainmsg=" TV Show to go";     document.getElementById("remain").innerHTML="&lt;B&gt;"+(max-count)+remainmsg+"&lt;/B&gt;";     if (count == max) {      $('html,body').scrollTop(0);                $("#allans").overlay({                 fixed: false,                 left: 0,                 top: 0                });                $("#allans").data("overlay").load();      resultmessage();     }    }   }  }  else {   if (fld.value == " ") fld.value="";  } } function showMissed() {  msg="";  msg+='&lt;BR&gt;&lt;FONT COLOR=RED&gt;&lt;B&gt;You forgot: &lt;/B&gt;';  for (x=0;x&lt;hxcd.length;x++) {   msg+=hxcd[x]+", ";   if ((x+1)%5 == 0) msg+="&lt;BR&gt;";  }  msg+='&lt;/FONT&gt;&lt;BR&gt;';  document.getElementById("missing").innerHTML=msg;  resultmessage(); } function resultmessage() {  msg = "";  if (count &gt;= 6) {   msg = "&lt;FONT COLOR=BLACK&gt;Good job! You might want to cut down on the TV watching, though.&lt;/FONT&gt;";  }  else {   msg = "&lt;FONT COLOR=BLACK&gt;Check out the answer list above and try again.&lt;/FONT&gt;";  }  document.getElementById("rsltmsg").innerHTML=msg; }&lt;/script&gt;In all of TV history, there are only 7 TV series produced in the U.S. that lasted for more than one season and were set 2 decades prior to the decade in which they began production. This approach is often used to evoke nostalgia, set the show during a historic event, or both. How many of them can you name in 3.5 minutes?&lt;br /&gt;&lt;br /&gt;&lt;span id="fullpost"&gt;To stop this quiz before the time is up, click on the &lt;span style="font-style:italic;"&gt;Give Up?&lt;/span&gt; button. To try this quiz again, simply reload the page. If you enjoy timed quizzes like this, you can find links to hundreds of them at &lt;a href="http://headinside.blogspot.com/2008/03/how-many-xs-can-you-name-in-y-minutes.html"&gt;How Many Xs Can You Name In Y Minutes?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;(This quiz was created with the aid of the &lt;a href="http://members.cox.net/beagenius/timedquizgenerator.html"&gt;Timed Quiz Generator&lt;/a&gt;)&lt;br /&gt;&lt;/span&gt;&lt;form name="cd"&gt;&lt;span id="fullpost"&gt;&lt;input id="txt" readonly="true" type="text" value="03:30" name="disp"&gt;&lt;/span&gt;&lt;/form&gt;&lt;span id="fullpost"&gt;&lt;div id="remain" style="text-align:center;"&gt;&lt;span style="font-weight:bold;"&gt;To start the clock, begin typing in the box below.&lt;/span&gt;&lt;/div&gt;&lt;input type="text" onKeyUp="checkAnsrs(this);" name="input" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;input type="button" value="Give up?" onclick="timeIsUp();" name="giveup" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;br /&gt;&lt;div style="text-align:center;"&gt;&lt;span style="font-weight:bold;"&gt;Named so far:&lt;/span&gt;&lt;/div&gt;&lt;div id="found" style="text-align:center;"&gt;None&lt;/div&gt;&amp;nbsp;&lt;br /&gt;&lt;div id="missing" style="text-align:center;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div id="rsltmsg" style="text-align:center;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div id="allans" class="overlay"&gt;&lt;div&gt;&lt;h2&gt;&lt;span style="font-weight:bold;"&gt;Congratulations!&lt;/span&gt;&lt;/h2&gt;You did it!&lt;br /&gt;&lt;br /&gt;&lt;button class="close gmsButton" style="display:block;margin-left:auto;margin-right:auto;"&gt; Close &lt;/button&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800835365312821409-4898555569591734837?l=gmmentalgym.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmmentalgym.blogspot.com/feeds/4898555569591734837/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/can-you-name-all-7-multi-season-tv.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/4898555569591734837'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/4898555569591734837'/><link rel='alternate' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/can-you-name-all-7-multi-season-tv.html' title='Can You Name All 7 Multi-Season TV Series That Were Set 2 Decades Prior To Their Production In 3.5 Minutes?'/><author><name>Pi Guy</name><uri>http://www.blogger.com/profile/09760001560356969164</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://lh3.ggpht.com/_zQQCfNroX3w/TMDBGryIxfI/AAAAAAAAASw/_ygdD3eWHCU/s0/gmsc.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800835365312821409.post-3241795396669621801</id><published>2010-11-04T14:00:00.000-07:00</published><updated>2010-11-14T21:04:33.238-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='workout'/><category scheme='http://www.blogger.com/atom/ns#' term='timed quizzes'/><title type='text'>Can You Name All 19 Tattoos Mentioned in the Song “Lydia The Tattooed Lady” In 9 Minutes?</title><content type='html'>&lt;style type='text/css'&gt;#txt {  display:block;  border:none;  width:530px;  margin:0;  padding:0;  text-align:center;  font-family:verdana;  font-size:50pt;  font-weight:bold;  background-color:#F2F2F2;}.overlay { width:300px;}.overlay h2 { color:#fff; background-color:#2ea114; margin-left:-8px; margin-top:-8px; margin-right:-8px; padding-left:8px; padding-top:8px; padding-bottom:8px;}&lt;/style&gt;&lt;script type='text/javascript'&gt; var mins; var secs; var max; var begclo; function cd() {  begclo = 0;  mins = 1 * m("9");  secs = 0 + s(":01");  max = 19; } function m(obj) {  for (var i = 0; i &lt; obj.length; i++) {   if (obj.substring(i, i + 1) == ":") {    break;   }  }  return(obj.substring(0, i)); } function s(obj) {  for (var i = 0; i &lt; obj.length; i++) {   if (obj.substring(i, i + 1) == ":") {    break;   }  }  return(obj.substring(i + 1, obj.length)); } function dis(mins,secs) {  var disp;  if (mins &lt;= 9) {   disp = " 0";  }  else {   disp = " ";  }  disp+= mins + ":";  if (secs &lt;= 9) {   disp+= "0" + secs;  }  else {   disp+= secs;  }  return(disp); } function timeIsUp() {  mins = 0;  secs = 1; } function redo() {  if (count == max) return;  secs--;  if (secs == -1) {   secs = 59;   mins--;  }  document.cd.disp.value = dis(mins,secs);  if ((mins == 0) &amp;&amp; (secs == 0)) {   window.alert("Time's up! Let's see how you did.");   showMissed();  }  else {   cd = setTimeout("redo()",1000);  } } function init() {  cd(); } window.onload = init; var count=0; var found=new Array(); var hxcd=new Array("\x42\x61\x74\x74\x6C\x65\x20\x6F\x66\x20\x57\x61\x74\x65\x72\x6C\x6F\x6F","\x57\x72\x65\x63\x6B\x20\x6F\x66\x20\x74\x68\x65\x20\x48\x65\x73\x70\x65\x72\x75\x73","\x52\x65\x64\x2C\x20\x57\x68\x69\x74\x65\x20\x61\x6E\x64\x20\x42\x6C\x75\x65","\x4B\x61\x6E\x6B\x61\x6B\x65\x65","\x50\x61\x72\x65\x65","\x57\x61\x73\x68\x69\x6E\x67\x74\x6F\x6E\x20\x63\x72\x6F\x73\x73\x69\x6E\x67\x20\x74\x68\x65\x20\x44\x65\x6C\x61\x77\x61\x72\x65","\x41\x6E\x64\x72\x65\x77\x20\x4A\x61\x63\x6B\x73\x6F\x6E","\x61\x20\x76\x69\x65\x77\x20\x6F\x66\x20\x4E\x69\x61\x67\x61\x72\x61","\x41\x6C\x63\x61\x74\x72\x61\x7A","\x42\x75\x66\x66\x61\x6C\x6F\x20\x42\x69\x6C\x6C\x20\x77\x69\x74\x68\x20\x68\x69\x73\x20\x6C\x61\x73\x73\x6F","\x4D\x65\x6E\x64\x65\x6C\x20\x50\x69\x63\x61\x73\x73\x6F","\x43\x61\x70\x74\x61\x69\x6E\x20\x53\x70\x61\x75\x6C\x64\x69\x6E\x67\x20\x65\x78\x70\x6C\x6F\x72\x69\x6E\x67\x20\x74\x68\x65\x20\x41\x6D\x61\x7A\x6F\x6E","\x47\x6F\x64\x69\x76\x61\x20\x28\x62\x75\x74\x20\x77\x69\x74\x68\x20\x68\x65\x72\x20\x70\x61\x6A\x61\x6D\x61\x73\x20\x6F\x6E\x29","\x47\x72\x6F\x76\x65\x72\x20\x57\x68\x61\x6C\x65\x6E","\x54\x72\x79\x6C\x6F\x6E","\x54\x72\x65\x61\x73\x75\x72\x65\x20\x49\x73\x6C\x61\x6E\x64","\x4E\x69\x6A\x69\x6E\x73\x6B\x79\x20\x61\x2D\x64\x6F\x69\x6E\x27\x20\x74\x68\x65\x20\x72\x68\x75\x6D\x62\x61","\x68\x65\x72\x20\x53\x6F\x63\x69\x61\x6C\x20\x53\x65\x63\x75\x72\x69\x74\x79\x20\x6E\x75\x6D\x62\x61","\x73\x68\x69\x70\x73\x20\x6F\x6E\x20\x68\x65\x72\x20\x68\x69\x70\x73"); function checkAnsrs(fld) {  if (begclo==0) {   begclo = 1;   document.getElementById("remain").innerHTML="&lt;B&gt;19 tattoos to go&lt;/B&gt;";   redo();  }  if (fld.value.length &gt; 1) {   if (fld.value.toLowerCase()=="\x77\x61\x74\x65\x72\x6C\x6F\x6F") {    fld.value="\x42\x61\x74\x74\x6C\x65\x20\x6F\x66\x20\x57\x61\x74\x65\x72\x6C\x6F\x6F";   }   if (fld.value.toLowerCase()=="\x68\x65\x73\x70\x65\x72\x75\x73") {    fld.value="\x57\x72\x65\x63\x6B\x20\x6F\x66\x20\x74\x68\x65\x20\x48\x65\x73\x70\x65\x72\x75\x73";   }   if (fld.value.toLowerCase()=="\x68\x65\x73\x70\x61\x72\x75\x73") {    fld.value="\x57\x72\x65\x63\x6B\x20\x6F\x66\x20\x74\x68\x65\x20\x48\x65\x73\x70\x65\x72\x75\x73";   }   if (fld.value.toLowerCase()=="\x72\x65\x64\x20\x77\x68\x69\x74\x65\x20\x61\x6E\x64\x20\x62\x6C\x75\x65") {    fld.value="\x52\x65\x64\x2C\x20\x57\x68\x69\x74\x65\x20\x61\x6E\x64\x20\x42\x6C\x75\x65";   }   if (fld.value.toLowerCase()=="\x66\x6C\x61\x67") {    fld.value="\x52\x65\x64\x2C\x20\x57\x68\x69\x74\x65\x20\x61\x6E\x64\x20\x42\x6C\x75\x65";   }   if (fld.value.toLowerCase()=="\x75\x73\x20\x66\x6C\x61\x67") {    fld.value="\x52\x65\x64\x2C\x20\x57\x68\x69\x74\x65\x20\x61\x6E\x64\x20\x42\x6C\x75\x65";   }   if (fld.value.toLowerCase()=="\x75\x73\x61\x20\x66\x6C\x61\x67") {    fld.value="\x52\x65\x64\x2C\x20\x57\x68\x69\x74\x65\x20\x61\x6E\x64\x20\x42\x6C\x75\x65";   }   if (fld.value.toLowerCase()=="\x61\x6D\x65\x72\x69\x63\x61\x6E\x20\x66\x6C\x61\x67") {    fld.value="\x52\x65\x64\x2C\x20\x57\x68\x69\x74\x65\x20\x61\x6E\x64\x20\x42\x6C\x75\x65";   }   if (fld.value.toLowerCase()=="\x6B\x61\x6E\x6B\x61\x6B\x69") {    fld.value="\x4B\x61\x6E\x6B\x61\x6B\x65\x65";   }   if (fld.value.toLowerCase()=="\x6B\x61\x6E\x6B\x65\x6B\x65\x65") {    fld.value="\x4B\x61\x6E\x6B\x61\x6B\x65\x65";   }   if (fld.value.toLowerCase()=="\x6B\x61\x6E\x6B\x65\x6B\x69") {    fld.value="\x4B\x61\x6E\x6B\x61\x6B\x65\x65";   }   if (fld.value.toLowerCase()=="\x70\x61\x72\x69\x73") {    fld.value="\x50\x61\x72\x65\x65";   }   if (fld.value.toLowerCase()=="\x77\x61\x73\x68\x69\x6E\x67\x74\x6F\x6E") {    fld.value="\x57\x61\x73\x68\x69\x6E\x67\x74\x6F\x6E\x20\x63\x72\x6F\x73\x73\x69\x6E\x67\x20\x74\x68\x65\x20\x44\x65\x6C\x61\x77\x61\x72\x65";   }   if (fld.value.toLowerCase()=="\x64\x65\x6C\x61\x77\x61\x72\x65") {    fld.value="\x57\x61\x73\x68\x69\x6E\x67\x74\x6F\x6E\x20\x63\x72\x6F\x73\x73\x69\x6E\x67\x20\x74\x68\x65\x20\x44\x65\x6C\x61\x77\x61\x72\x65";   }   if (fld.value.toLowerCase()=="\x6A\x61\x63\x6B\x73\x6F\x6E") {    fld.value="\x41\x6E\x64\x72\x65\x77\x20\x4A\x61\x63\x6B\x73\x6F\x6E";   }   if (fld.value.toLowerCase()=="\x6E\x69\x61\x67\x61\x72\x61") {    fld.value="\x61\x20\x76\x69\x65\x77\x20\x6F\x66\x20\x4E\x69\x61\x67\x61\x72\x61";   }   if (fld.value.toLowerCase()=="\x6E\x69\x61\x67\x72\x61") {    fld.value="\x61\x20\x76\x69\x65\x77\x20\x6F\x66\x20\x4E\x69\x61\x67\x61\x72\x61";   }   if (fld.value.toLowerCase()=="\x62\x75\x66\x66\x61\x6C\x6F\x20\x62\x69\x6C\x6C") {    fld.value="\x42\x75\x66\x66\x61\x6C\x6F\x20\x42\x69\x6C\x6C\x20\x77\x69\x74\x68\x20\x68\x69\x73\x20\x6C\x61\x73\x73\x6F";   }   if (fld.value.toLowerCase()=="\x6C\x61\x73\x73\x6F") {    fld.value="\x42\x75\x66\x66\x61\x6C\x6F\x20\x42\x69\x6C\x6C\x20\x77\x69\x74\x68\x20\x68\x69\x73\x20\x6C\x61\x73\x73\x6F";   }   if (fld.value.toLowerCase()=="\x70\x69\x63\x61\x73\x73\x6F") {    fld.value="\x4D\x65\x6E\x64\x65\x6C\x20\x50\x69\x63\x61\x73\x73\x6F";   }   if (fld.value.toLowerCase()=="\x6D\x65\x6E\x64\x65\x6C") {    fld.value="\x4D\x65\x6E\x64\x65\x6C\x20\x50\x69\x63\x61\x73\x73\x6F";   }   if (fld.value.toLowerCase()=="\x63\x61\x70\x74\x61\x69\x6E\x20\x73\x70\x61\x75\x6C\x64\x69\x6E\x67") {    fld.value="\x43\x61\x70\x74\x61\x69\x6E\x20\x53\x70\x61\x75\x6C\x64\x69\x6E\x67\x20\x65\x78\x70\x6C\x6F\x72\x69\x6E\x67\x20\x74\x68\x65\x20\x41\x6D\x61\x7A\x6F\x6E";   }   if (fld.value.toLowerCase()=="\x61\x6D\x61\x7A\x6F\x6E") {    fld.value="\x43\x61\x70\x74\x61\x69\x6E\x20\x53\x70\x61\x75\x6C\x64\x69\x6E\x67\x20\x65\x78\x70\x6C\x6F\x72\x69\x6E\x67\x20\x74\x68\x65\x20\x41\x6D\x61\x7A\x6F\x6E";   }   if (fld.value.toLowerCase()=="\x63\x61\x70\x74\x61\x69\x6E\x20\x73\x70\x61\x6C\x64\x69\x6E\x67") {    fld.value="\x43\x61\x70\x74\x61\x69\x6E\x20\x53\x70\x61\x75\x6C\x64\x69\x6E\x67\x20\x65\x78\x70\x6C\x6F\x72\x69\x6E\x67\x20\x74\x68\x65\x20\x41\x6D\x61\x7A\x6F\x6E";   }   if (fld.value.toLowerCase()=="\x73\x70\x61\x6C\x64\x69\x6E\x67") {    fld.value="\x43\x61\x70\x74\x61\x69\x6E\x20\x53\x70\x61\x75\x6C\x64\x69\x6E\x67\x20\x65\x78\x70\x6C\x6F\x72\x69\x6E\x67\x20\x74\x68\x65\x20\x41\x6D\x61\x7A\x6F\x6E";   }   if (fld.value.toLowerCase()=="\x73\x70\x61\x75\x6C\x64\x69\x6E\x67") {    fld.value="\x43\x61\x70\x74\x61\x69\x6E\x20\x53\x70\x61\x75\x6C\x64\x69\x6E\x67\x20\x65\x78\x70\x6C\x6F\x72\x69\x6E\x67\x20\x74\x68\x65\x20\x41\x6D\x61\x7A\x6F\x6E";   }   if (fld.value.toLowerCase()=="\x67\x6F\x64\x69\x76\x61") {    fld.value="\x47\x6F\x64\x69\x76\x61\x20\x28\x62\x75\x74\x20\x77\x69\x74\x68\x20\x68\x65\x72\x20\x70\x61\x6A\x61\x6D\x61\x73\x20\x6F\x6E\x29";   }   if (fld.value.toLowerCase()=="\x6C\x61\x64\x79\x20\x67\x6F\x64\x69\x76\x61") {    fld.value="\x47\x6F\x64\x69\x76\x61\x20\x28\x62\x75\x74\x20\x77\x69\x74\x68\x20\x68\x65\x72\x20\x70\x61\x6A\x61\x6D\x61\x73\x20\x6F\x6E\x29";   }   if (fld.value.toLowerCase()=="\x77\x68\x61\x6C\x65\x6E") {    fld.value="\x47\x72\x6F\x76\x65\x72\x20\x57\x68\x61\x6C\x65\x6E";   }   if (fld.value.toLowerCase()=="\x74\x72\x69\x6C\x6F\x6E") {    fld.value="\x54\x72\x79\x6C\x6F\x6E";   }   if (fld.value.toLowerCase()=="\x74\x72\x65\x73\x75\x72\x65\x20\x69\x73\x6C\x61\x6E\x64") {    fld.value="\x54\x72\x65\x61\x73\x75\x72\x65\x20\x49\x73\x6C\x61\x6E\x64";   }   if (fld.value.toLowerCase()=="\x6E\x69\x6A\x69\x6E\x73\x6B\x79") {    fld.value="\x4E\x69\x6A\x69\x6E\x73\x6B\x79\x20\x61\x2D\x64\x6F\x69\x6E\x27\x20\x74\x68\x65\x20\x72\x68\x75\x6D\x62\x61";   }   if (fld.value.toLowerCase()=="\x72\x68\x75\x6D\x62\x61") {    fld.value="\x4E\x69\x6A\x69\x6E\x73\x6B\x79\x20\x61\x2D\x64\x6F\x69\x6E\x27\x20\x74\x68\x65\x20\x72\x68\x75\x6D\x62\x61";   }   if (fld.value.toLowerCase()=="\x72\x75\x6D\x62\x61") {    fld.value="\x4E\x69\x6A\x69\x6E\x73\x6B\x79\x20\x61\x2D\x64\x6F\x69\x6E\x27\x20\x74\x68\x65\x20\x72\x68\x75\x6D\x62\x61";   }   if (fld.value.toLowerCase()=="\x6E\x61\x6A\x69\x6E\x73\x6B\x79") {    fld.value="\x4E\x69\x6A\x69\x6E\x73\x6B\x79\x20\x61\x2D\x64\x6F\x69\x6E\x27\x20\x74\x68\x65\x20\x72\x68\x75\x6D\x62\x61";   }   if (fld.value.toLowerCase()=="\x6E\x69\x6A\x69\x6E\x73\x6B\x69") {    fld.value="\x4E\x69\x6A\x69\x6E\x73\x6B\x79\x20\x61\x2D\x64\x6F\x69\x6E\x27\x20\x74\x68\x65\x20\x72\x68\x75\x6D\x62\x61";   }   if (fld.value.toLowerCase()=="\x6E\x61\x6A\x69\x6E\x73\x6B\x69") {    fld.value="\x4E\x69\x6A\x69\x6E\x73\x6B\x79\x20\x61\x2D\x64\x6F\x69\x6E\x27\x20\x74\x68\x65\x20\x72\x68\x75\x6D\x62\x61";   }   if (fld.value.toLowerCase()=="\x73\x6F\x63\x69\x61\x6C\x20\x73\x65\x63\x75\x72\x69\x74\x79") {    fld.value="\x68\x65\x72\x20\x53\x6F\x63\x69\x61\x6C\x20\x53\x65\x63\x75\x72\x69\x74\x79\x20\x6E\x75\x6D\x62\x61";   }   if (fld.value.toLowerCase()=="\x73\x73\x6E") {    fld.value="\x68\x65\x72\x20\x53\x6F\x63\x69\x61\x6C\x20\x53\x65\x63\x75\x72\x69\x74\x79\x20\x6E\x75\x6D\x62\x61";   }   if (fld.value.toLowerCase()=="\x73\x68\x69\x70\x73") {    fld.value="\x73\x68\x69\x70\x73\x20\x6F\x6E\x20\x68\x65\x72\x20\x68\x69\x70\x73";   }   if (fld.value.toLowerCase()=="\x66\x6C\x65\x65\x74") {    fld.value="\x73\x68\x69\x70\x73\x20\x6F\x6E\x20\x68\x65\x72\x20\x68\x69\x70\x73";   }   for (var i=0;i&lt;hxcd.length;i++) {    if (fld.value.toLowerCase()==hxcd[i].toLowerCase()) {     found[found.length]=hxcd[i];     found.sort();     hxcd.splice(i,1);     fld.value="";     count++;     msg="";     for (var x=0;x&lt;found.length;x++) {      msg+=found[x]+", ";      if ((x+1)%5 == 0) msg+="&lt;BR&gt;";     }     document.getElementById("found").innerHTML=msg;     remainmsg=" tattoos to go";     if (count == (max-1)) remainmsg=" tattoo to go";     document.getElementById("remain").innerHTML="&lt;B&gt;"+(max-count)+remainmsg+"&lt;/B&gt;";     if (count == max) {      $('html,body').scrollTop(0);               $("#allans").overlay({                 fixed: false,                 left: 0,                 top: 0                });                $("#allans").data("overlay").load();      resultmessage();     }    }   }  }  else {   if (fld.value == " ") fld.value="";  } } function showMissed() {  msg="";  msg+='&lt;BR&gt;&lt;FONT COLOR=RED&gt;&lt;B&gt;You forgot: &lt;/B&gt;';  for (x=0;x&lt;hxcd.length;x++) {   msg+=hxcd[x]+", ";   if ((x+1)%5 == 0) msg+="&lt;BR&gt;";  }  msg+='&lt;/FONT&gt;&lt;BR&gt;';  document.getElementById("missing").innerHTML=msg;  resultmessage(); } function resultmessage() {  msg = "";  if (count &gt;= 17) {   msg = "&lt;FONT COLOR=BLACK&gt;&lt;A HREF=" + String.fromCharCode(34) + "http://en.wikipedia.org/wiki/Lydia_the_Tattooed_Lady" + String.fromCharCode(34) + " TARGET=" + String.fromCharCode(34) + "_blank" + String.fromCharCode(34) + "&gt;You must be the Admiral who married Lydia!&lt;/A&gt;&lt;/FONT&gt;";  }  else {   msg = "&lt;FONT COLOR=BLACK&gt;&lt;A HREF=" + String.fromCharCode(34) + "http://www.youtube.com/results?search_query=Lydia+the+Tattooed+Lady&amp;search_type=&amp;aq=f" + String.fromCharCode(34) + " TARGET=" + String.fromCharCode(34) + "_blank" + String.fromCharCode(34) + "&gt;You'll just have to study Lydia's tattoos more closely.&lt;/A&gt;&lt;/FONT&gt;";  }  document.getElementById("rsltmsg").innerHTML=msg; }&lt;/script&gt;In the song &amp;#147;Lydia The Tattooed Lady,&amp;#148; as sung by Groucho Marx in the Movie &lt;span style="font-style:italic;"&gt;At The Circus&lt;/span&gt;, he mentions 19 different tattoos on Lydia. There are slightly different versions of the song, but this quiz concerns specifically the &lt;span style="font-style:italic;"&gt;At The Circus&lt;/span&gt; version. In most cases, you can usually refer to the subject of the tattoo with just 1, 2 or 3 words, instead of the entire lyric. How many of the tattoos can you name in 9 minutes?&lt;br /&gt;&lt;br /&gt;&lt;span id="fullpost"&gt;To stop this quiz before the time is up, click on the &lt;span style="font-style:italic;"&gt;Give Up?&lt;/span&gt; button. To try this quiz again, simply reload the page. If you enjoy timed quizzes like this, you can find links to hundreds of them at &lt;a href="http://headinside.blogspot.com/2008/03/how-many-xs-can-you-name-in-y-minutes.html"&gt;How Many Xs Can You Name In Y Minutes?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;(This quiz was created with the aid of the &lt;a href="http://members.cox.net/beagenius/timedquizgenerator.html"&gt;Timed Quiz Generator&lt;/a&gt;)&lt;br /&gt;&lt;/span&gt;&lt;form name="cd"&gt;&lt;span id="fullpost"&gt;&lt;input id="txt" readonly="true" type="text" value="09:00" name="disp"&gt;&lt;/span&gt;&lt;/form&gt;&lt;span id="fullpost"&gt;&lt;div id="remain" style="text-align:center;"&gt;&lt;span style="font-weight:bold;"&gt;To start the clock, begin typing in the box below.&lt;/span&gt;&lt;/div&gt;&lt;input type="text" onKeyUp="checkAnsrs(this);" name="input" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;input type="button" value="Give up?" onclick="timeIsUp();" name="giveup" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;br /&gt;&lt;div style="text-align:center;"&gt;&lt;span style="font-weight:bold;"&gt;Named so far:&lt;/span&gt;&lt;/div&gt;&lt;div id="found" style="text-align:center;"&gt;None&lt;/div&gt;&amp;nbsp;&lt;br /&gt;&lt;div id="missing" style="text-align:center;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div id="rsltmsg" style="text-align:center;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div id="allans" class="overlay"&gt;&lt;div&gt;&lt;h2&gt;&lt;span style="font-weight:bold;"&gt;Congratulations!&lt;/span&gt;&lt;/h2&gt;You did it!&lt;br /&gt;&lt;br /&gt;&lt;button class="close gmsButton" style="display:block;margin-left:auto;margin-right:auto;"&gt; Close &lt;/button&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800835365312821409-3241795396669621801?l=gmmentalgym.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmmentalgym.blogspot.com/feeds/3241795396669621801/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/can-you-name-all-19-tattoos-mentioned.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/3241795396669621801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/3241795396669621801'/><link rel='alternate' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/can-you-name-all-19-tattoos-mentioned.html' title='Can You Name All 19 Tattoos Mentioned in the Song “Lydia The Tattooed Lady” In 9 Minutes?'/><author><name>Pi Guy</name><uri>http://www.blogger.com/profile/09760001560356969164</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://lh3.ggpht.com/_zQQCfNroX3w/TMDBGryIxfI/AAAAAAAAASw/_ygdD3eWHCU/s0/gmsc.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800835365312821409.post-2013339426693108971</id><published>2010-11-04T13:00:00.000-07:00</published><updated>2010-11-14T21:03:42.043-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='workout'/><category scheme='http://www.blogger.com/atom/ns#' term='timed quizzes'/><title type='text'>How Many Theatrical Movies Featuring SNL Characters Can You Name In 10 Minutes?</title><content type='html'>&lt;style type='text/css'&gt;#txt {  display:block;  border:none;  width:530px;  margin:0;  padding:0;  text-align:center;  font-family:verdana;  font-size:50pt;  font-weight:bold;  background-color:#F2F2F2;}.overlay { width:300px;}.overlay h2 { color:#fff; background-color:#2ea114; margin-left:-8px; margin-top:-8px; margin-right:-8px; padding-left:8px; padding-top:8px; padding-bottom:8px;}&lt;/style&gt;&lt;script type='text/javascript'&gt;var mins;var secs;var max;var begclo;function cd() { begclo = 0; //boolean variable for beginning the clock upon typing  mins = 1 * m("10"); // change minutes here  secs = 0 + s(":01"); // change seconds here (always add an additional second to your total)  max = 16; //change total number of items in list here}function m(obj) {  for(var i = 0; i &lt; obj.length; i++) {    if(obj.substring(i, i + 1) == ":")    break;  }  return(obj.substring(0, i));}function s(obj) {  for(var i = 0; i &lt; obj.length; i++) {    if(obj.substring(i, i + 1) == ":")    break;  }  return(obj.substring(i + 1, obj.length));}function dis(mins,secs) {  var disp;  if(mins &lt;= 9) {    disp = " 0";  } else {    disp = " ";  }  disp += mins + ":";  if(secs &lt;= 9) {    disp += "0" + secs;  } else {    disp += secs;  }  return(disp);}function timeIsUp(){  mins = 0; secs = 1;}function redo() {  if(count==max)return;   secs--;  if(secs == -1) {    secs = 59;    mins--;  }  document.cd.disp.value = dis(mins,secs); // setup additional displays here.  if((mins == 0) &amp;&amp; (secs == 0)) {    window.alert("Time's up! Let's see how you did.");     showMissed();   } else {   cd = setTimeout("redo()",1000);  }}function init() {  cd();}window.onload = init;var count=0;var found=new Array();var states=new Array("\x41\x20\x4e\x69\x67\x68\x74\x20\x41\x74\x20\x54\x68\x65\x20\x52\x6f\x78\x62\x75\x72\x79","\x42\x6c\x75\x65\x73\x20\x42\x72\x6f\x74\x68\x65\x72\x73","\x42\x6c\x75\x65\x73\x20\x42\x72\x6f\x74\x68\x65\x72\x73\x20\x32\x30\x30\x30","\x42\x6f\x62\x20\x52\x6f\x62\x65\x72\x74\x73","\x43\x6f\x6e\x65\x68\x65\x61\x64\x73","\x47\x69\x6c\x64\x61\x20\x4c\x69\x76\x65","\x49\x74\x27\x73\x20\x50\x61\x74","\x54\x68\x65\x20\x4c\x61\x64\x69\x65\x73\x20\x4d\x61\x6e","\x4d\x72\x2e\x20\x42\x69\x6c\x6c\x27\x73\x20\x52\x65\x61\x6c\x20\x4c\x69\x66\x65\x20\x41\x64\x76\x65\x6e\x74\x75\x72\x65\x73","\x4d\x72\x2e\x20\x4d\x69\x6b\x65\x27\x73\x20\x4d\x6f\x6e\x64\x6f\x20\x56\x69\x64\x65\x6f","\x4d\x72\x2e\x20\x53\x61\x74\x75\x72\x64\x61\x79\x20\x4e\x69\x67\x68\x74","\x4f\x66\x66\x69\x63\x65\x20\x53\x70\x61\x63\x65","\x53\x74\x75\x61\x72\x74\x20\x53\x61\x76\x65\x73\x20\x48\x69\x73\x20\x46\x61\x6d\x69\x6c\x79","\x53\x75\x70\x65\x72\x73\x74\x61\x72","\x57\x61\x79\x6e\x65\x27\x73\x20\x57\x6f\x72\x6c\x64","\x57\x61\x79\x6e\x65\x27\x73\x20\x57\x6f\x72\x6c\x64\x20\x32");function checkStates(fld){if (begclo==0) { begclo = 1; //If this is the first keystroke, start the clock document.getElementById("remain").innerHTML="&lt;b&gt;16 movies to go&lt;/b&gt;"; redo();}if(fld.value.length&gt;3){  if (fld.value.toLowerCase()=="\x74\x68\x65\x20\x62\x6c\x75\x65\x73\x20\x62\x72\x6f\x74\x68\x65\x72\x73") {    fld.value="\x42\x6c\x75\x65\x73\x20\x42\x72\x6f\x74\x68\x65\x72\x73";  }  if (fld.value.toLowerCase()=="\x6d\x72\x20\x62\x69\x6c\x6c\x27\x73\x20\x72\x65\x61\x6c\x20\x6c\x69\x66\x65\x20\x61\x64\x76\x65\x6e\x74\x75\x72\x65\x73") {    fld.value="\x4d\x72\x2e\x20\x42\x69\x6c\x6c\x27\x73\x20\x52\x65\x61\x6c\x20\x4c\x69\x66\x65\x20\x41\x64\x76\x65\x6e\x74\x75\x72\x65\x73";  }  if (fld.value.toLowerCase()=="\x6d\x72\x20\x62\x69\x6c\x6c\x73\x20\x72\x65\x61\x6c\x20\x6c\x69\x66\x65\x20\x61\x64\x76\x65\x6e\x74\x75\x72\x65\x73") {    fld.value="\x4d\x72\x2e\x20\x42\x69\x6c\x6c\x27\x73\x20\x52\x65\x61\x6c\x20\x4c\x69\x66\x65\x20\x41\x64\x76\x65\x6e\x74\x75\x72\x65\x73";  }  if (fld.value.toLowerCase()=="\x6d\x72\x2e\x20\x62\x69\x6c\x6c\x73\x20\x72\x65\x61\x6c\x20\x6c\x69\x66\x65\x20\x61\x64\x76\x65\x6e\x74\x75\x72\x65\x73") {    fld.value="\x4d\x72\x2e\x20\x42\x69\x6c\x6c\x27\x73\x20\x52\x65\x61\x6c\x20\x4c\x69\x66\x65\x20\x41\x64\x76\x65\x6e\x74\x75\x72\x65\x73";  }  if (fld.value.toLowerCase()=="\x6d\x72\x20\x62\x69\x6c\x6c\x20\x72\x65\x61\x6c\x20\x6c\x69\x66\x65\x20\x61\x64\x76\x65\x6e\x74\x75\x72\x65\x73") {    fld.value="\x4d\x72\x2e\x20\x42\x69\x6c\x6c\x27\x73\x20\x52\x65\x61\x6c\x20\x4c\x69\x66\x65\x20\x41\x64\x76\x65\x6e\x74\x75\x72\x65\x73";  }  if (fld.value.toLowerCase()=="\x6d\x72\x2e\x20\x62\x69\x6c\x6c\x20\x72\x65\x61\x6c\x20\x6c\x69\x66\x65\x20\x61\x64\x76\x65\x6e\x74\x75\x72\x65\x73") {    fld.value="\x4d\x72\x2e\x20\x42\x69\x6c\x6c\x27\x73\x20\x52\x65\x61\x6c\x20\x4c\x69\x66\x65\x20\x41\x64\x76\x65\x6e\x74\x75\x72\x65\x73";  }  if (fld.value.toLowerCase()=="\x6d\x72\x20\x62\x69\x6c\x6c\x3a\x20\x72\x65\x61\x6c\x20\x6c\x69\x66\x65\x20\x61\x64\x76\x65\x6e\x74\x75\x72\x65\x73") {    fld.value="\x4d\x72\x2e\x20\x42\x69\x6c\x6c\x27\x73\x20\x52\x65\x61\x6c\x20\x4c\x69\x66\x65\x20\x41\x64\x76\x65\x6e\x74\x75\x72\x65\x73";  }  if (fld.value.toLowerCase()=="\x6d\x72\x2e\x20\x62\x69\x6c\x6c\x3a\x20\x72\x65\x61\x6c\x20\x6c\x69\x66\x65\x20\x61\x64\x76\x65\x6e\x74\x75\x72\x65\x73") {    fld.value="\x4d\x72\x2e\x20\x42\x69\x6c\x6c\x27\x73\x20\x52\x65\x61\x6c\x20\x4c\x69\x66\x65\x20\x41\x64\x76\x65\x6e\x74\x75\x72\x65\x73";  }  if (fld.value.toLowerCase()=="\x6d\x69\x73\x74\x65\x72\x20\x62\x69\x6c\x6c\x27\x73\x20\x72\x65\x61\x6c\x20\x6c\x69\x66\x65\x20\x61\x64\x76\x65\x6e\x74\x75\x72\x65\x73") {    fld.value="\x4d\x72\x2e\x20\x42\x69\x6c\x6c\x27\x73\x20\x52\x65\x61\x6c\x20\x4c\x69\x66\x65\x20\x41\x64\x76\x65\x6e\x74\x75\x72\x65\x73";  }  if (fld.value.toLowerCase()=="\x6d\x69\x73\x74\x65\x72\x20\x62\x69\x6c\x6c\x73\x20\x72\x65\x61\x6c\x20\x6c\x69\x66\x65\x20\x61\x64\x76\x65\x6e\x74\x75\x72\x65\x73") {    fld.value="\x4d\x72\x2e\x20\x42\x69\x6c\x6c\x27\x73\x20\x52\x65\x61\x6c\x20\x4c\x69\x66\x65\x20\x41\x64\x76\x65\x6e\x74\x75\x72\x65\x73";  }  if (fld.value.toLowerCase()=="\x6d\x69\x73\x74\x65\x72\x20\x62\x69\x6c\x6c\x20\x72\x65\x61\x6c\x20\x6c\x69\x66\x65\x20\x61\x64\x76\x65\x6e\x74\x75\x72\x65\x73") {    fld.value="\x4d\x72\x2e\x20\x42\x69\x6c\x6c\x27\x73\x20\x52\x65\x61\x6c\x20\x4c\x69\x66\x65\x20\x41\x64\x76\x65\x6e\x74\x75\x72\x65\x73";  }  if (fld.value.toLowerCase()=="\x6d\x69\x73\x74\x65\x72\x20\x62\x69\x6c\x6c\x3a\x20\x72\x65\x61\x6c\x20\x6c\x69\x66\x65\x20\x61\x64\x76\x65\x6e\x74\x75\x72\x65\x73") {    fld.value="\x4d\x72\x2e\x20\x42\x69\x6c\x6c\x27\x73\x20\x52\x65\x61\x6c\x20\x4c\x69\x66\x65\x20\x41\x64\x76\x65\x6e\x74\x75\x72\x65\x73";  }  if (fld.value.toLowerCase()=="\x6d\x72\x20\x73\x61\x74\x75\x72\x64\x61\x79\x20\x6e\x69\x67\x68\x74") {    fld.value="\x4d\x72\x2e\x20\x53\x61\x74\x75\x72\x64\x61\x79\x20\x4e\x69\x67\x68\x74";  }  if (fld.value.toLowerCase()=="\x6d\x69\x73\x74\x65\x72\x20\x73\x61\x74\x75\x72\x64\x61\x79\x20\x6e\x69\x67\x68\x74") {    fld.value="\x4d\x72\x2e\x20\x53\x61\x74\x75\x72\x64\x61\x79\x20\x4e\x69\x67\x68\x74";  }  if (fld.value.toLowerCase()=="\x74\x68\x65\x20\x63\x6f\x6e\x65\x68\x65\x61\x64\x73") {    fld.value="\x43\x6f\x6e\x65\x68\x65\x61\x64\x73";  }  if (fld.value.toLowerCase()=="\x77\x61\x79\x6e\x65\x73\x20\x77\x6f\x72\x6c\x64") {    fld.value="\x57\x61\x79\x6e\x65\x27\x73\x20\x57\x6f\x72\x6c\x64";  }  if (fld.value.toLowerCase()=="\x69\x74\x73\x20\x70\x61\x74") {    fld.value="\x49\x74\x27\x73\x20\x50\x61\x74";  }  if (fld.value.toLowerCase()=="\x6d\x72\x20\x6d\x69\x6b\x65\x27\x73\x20\x6d\x6f\x6e\x64\x6f\x20\x76\x69\x64\x65\x6f") {    fld.value="\x4d\x72\x2e\x20\x4d\x69\x6b\x65\x27\x73\x20\x4d\x6f\x6e\x64\x6f\x20\x56\x69\x64\x65\x6f";  }  if (fld.value.toLowerCase()=="\x6d\x72\x2e\x20\x6d\x69\x6b\x65\x73\x20\x6d\x6f\x6e\x64\x6f\x20\x76\x69\x64\x65\x6f") {    fld.value="\x4d\x72\x2e\x20\x4d\x69\x6b\x65\x27\x73\x20\x4d\x6f\x6e\x64\x6f\x20\x56\x69\x64\x65\x6f";  }  if (fld.value.toLowerCase()=="\x6d\x72\x20\x6d\x69\x6b\x65\x73\x20\x6d\x6f\x6e\x64\x6f\x20\x76\x69\x64\x65\x6f") {    fld.value="\x4d\x72\x2e\x20\x4d\x69\x6b\x65\x27\x73\x20\x4d\x6f\x6e\x64\x6f\x20\x56\x69\x64\x65\x6f";  }  if (fld.value.toLowerCase()=="\x6d\x69\x73\x74\x65\x72\x20\x6d\x69\x6b\x65\x73\x20\x6d\x6f\x6e\x64\x6f\x20\x76\x69\x64\x65\x6f") {    fld.value="\x4d\x72\x2e\x20\x4d\x69\x6b\x65\x27\x73\x20\x4d\x6f\x6e\x64\x6f\x20\x56\x69\x64\x65\x6f";  }  if (fld.value.toLowerCase()=="\x6d\x69\x73\x74\x65\x72\x20\x6d\x69\x6b\x65\x27\x73\x20\x6d\x6f\x6e\x64\x6f\x20\x76\x69\x64\x65\x6f") {    fld.value="\x4d\x72\x2e\x20\x4d\x69\x6b\x65\x27\x73\x20\x4d\x6f\x6e\x64\x6f\x20\x56\x69\x64\x65\x6f";  }  if (fld.value.toLowerCase()=="\x6c\x61\x64\x69\x65\x73\x20\x6d\x61\x6e") {    fld.value="\x54\x68\x65\x20\x4c\x61\x64\x69\x65\x73\x20\x4d\x61\x6e";  }  if (fld.value.toLowerCase()=="\x6e\x69\x67\x68\x74\x20\x61\x74\x20\x74\x68\x65\x20\x72\x6f\x78\x62\x75\x72\x79") {    fld.value="\x41\x20\x4e\x69\x67\x68\x74\x20\x41\x74\x20\x54\x68\x65\x20\x52\x6f\x78\x62\x75\x72\x79";  }for(var i=0;i&lt;states.length;i++){   if(fld.value.toLowerCase()==states[i].toLowerCase()){    found[found.length]=states[i];    found.sort();    states.splice(i,1);    fld.value="";    count++;    var msg="";    for(var x=0;x&lt;found.length;x++){      msg+=found[x]+", ";      if((x+1)%5==0)msg+="&lt;br&gt;";    }    document.getElementById("found").innerHTML=msg;    var remainmsg=" movies to go";    if(count==(max-1))remainmsg=" movie to go";    document.getElementById("remain").innerHTML="&lt;b&gt;"+(max-count)+remainmsg+"&lt;/b&gt;";    if(count==max){        $('html,body').scrollTop(0);        $("#allans").overlay({         fixed: false,         left: 0,         top: 0        });        $("#allans").data("overlay").load();     }  }  }  }else{  if(fld.value==" ")fld.value="";  } }function showMissed(){    var msg="";    msg+='&lt;br&gt;&lt;FONT COLOR=RED&gt;&lt;span style="font-weight:bold;"&gt;You forgot: &lt;/span&gt;';    for(var x=0;x&lt;states.length;x++){      msg+=states[x]+", ";      if((x+1)%5==0)msg+="&lt;br&gt;";    }    msg+='&lt;/span&gt;&lt;br&gt;';    document.getElementById("missing").innerHTML=msg; }&lt;/script&gt;There have been 16 theatrical movie releases that have featured characters originally popularized on NBC's &lt;span style="font-style:italic;"&gt;Saturday Night Live&lt;/span&gt;. How many of them can you name in 10 minutes? After the 10 minutes are up, the correct answers will appear below so you can see which ones you've missed.&lt;br /&gt;&lt;br /&gt;&lt;span id="fullpost"&gt;To stop this quiz before the time is up, click on the &lt;span style="font-style:italic;"&gt;Give Up?&lt;/span&gt; button. To try this quiz again, simply reload the page. If you enjoy timed quizzes like this, you can find links to hundreds of them at &lt;a href="http://headinside.blogspot.com/2008/03/how-many-xs-can-you-name-in-y-minutes.html"&gt;How Many Xs Can You Name In Y Minutes?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;(Original script by Erik Wannebo of &lt;a href="http://www.ironicsans.com/"&gt;www.ironicsans.com&lt;/a&gt;. This version by Scott Cram.)&lt;br /&gt;&lt;/span&gt;&lt;form name="cd"&gt;&lt;span id="fullpost"&gt;&lt;input id="txt" readonly="true" type="text" value="10:00" name="disp"&gt;&lt;/span&gt;&lt;/form&gt;&lt;span id="fullpost"&gt;&lt;div id="remain" style="text-align:center;"&gt;&lt;span style="font-weight:bold;"&gt;To start the clock, begin typing in the box below.&lt;/span&gt;&lt;/div&gt;&lt;input type="text" onKeyUp="checkStates(this);" name="input" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;input type="button" value="Give up?" onclick="timeIsUp();" name="giveup" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;br /&gt;&lt;div style="text-align:center;"&gt;&lt;span style="font-weight:bold;"&gt;Named so far:&lt;/span&gt;&lt;/div&gt;&lt;div id="found" style="text-align:center;"&gt;None&lt;/div&gt;&amp;nbsp;&lt;br /&gt;&lt;div id="missing" style="text-align:center;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div id="bonus" style="text-align:center;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div id="allans" class="overlay"&gt;&lt;div&gt;&lt;h2&gt;&lt;span style="font-weight:bold;"&gt;Congratulations!&lt;/span&gt;&lt;/h2&gt;You did it!&lt;br /&gt;&lt;br /&gt;&lt;button class="close gmsButton" style="display:block;margin-left:auto;margin-right:auto;"&gt; Close &lt;/button&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800835365312821409-2013339426693108971?l=gmmentalgym.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmmentalgym.blogspot.com/feeds/2013339426693108971/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/how-many-theatrical-movies-featuring.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/2013339426693108971'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/2013339426693108971'/><link rel='alternate' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/how-many-theatrical-movies-featuring.html' title='How Many Theatrical Movies Featuring SNL Characters Can You Name In 10 Minutes?'/><author><name>Pi Guy</name><uri>http://www.blogger.com/profile/09760001560356969164</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://lh3.ggpht.com/_zQQCfNroX3w/TMDBGryIxfI/AAAAAAAAASw/_ygdD3eWHCU/s0/gmsc.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800835365312821409.post-7720303230752357910</id><published>2010-11-04T12:00:00.000-07:00</published><updated>2010-11-14T21:02:16.160-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='workout'/><category scheme='http://www.blogger.com/atom/ns#' term='timed quizzes'/><title type='text'>Numbers With No Repeating Letters</title><content type='html'>&lt;style type='text/css'&gt;#txt {  display:block;  border:none;  width:530px;  margin:0;  padding:0;  text-align:center;  font-family:verdana;  font-size:50pt;  font-weight:bold;  background-color:#F2F2F2;}.overlay { width:300px;}.overlay h2 { color:#fff; background-color:#2ea114; margin-left:-8px; margin-top:-8px; margin-right:-8px; padding-left:8px; padding-top:8px; padding-bottom:8px;}&lt;/style&gt;&lt;script type='text/javascript'&gt; var mins; var secs; var max; var begclo; function cd() {  begclo = 0;  mins = 1 * m("10");  secs = 0 + s(":01");  max = 16; } function m(obj) {  for (var i = 0; i &lt; obj.length; i++) {   if (obj.substring(i, i + 1) == ":") {    break;   }  }  return(obj.substring(0, i)); } function s(obj) {  for (var i = 0; i &lt; obj.length; i++) {   if (obj.substring(i, i + 1) == ":") {    break;   }  }  return(obj.substring(i + 1, obj.length)); } function dis(mins,secs) {  var disp;  if (mins &lt;= 9) {   disp = " 0";  }  else {   disp = " ";  }  disp+= mins + ":";  if (secs &lt;= 9) {   disp+= "0" + secs;  }  else {   disp+= secs;  }  return(disp); } function timeIsUp() {  mins = 0;  secs = 1; } function redo() {  if (count == max) return;  secs--;  if (secs == -1) {   secs = 59;   mins--;  }  document.cd.disp.value = dis(mins,secs);  if ((mins == 0) &amp;&amp; (secs == 0)) {   window.alert("Time's up! Let's see how you did.");   showMissed();  }  else {   cd = setTimeout("redo()",1000);  } } function init() {  cd(); } window.onload = init; var count=0; var found=new Array(); var hxcd=new Array("\x30","\x31","\x32","\x34","\x35","\x36","\x38","\x31\x30","\x34\x30","\x34\x36","\x36\x30","\x36\x31","\x36\x34","\x38\x30","\x38\x34","\x35\x2C\x30\x30\x30"); function checkAnsrs(fld) {  if (begclo==0) {   begclo = 1;   document.getElementById("remain").innerHTML="&lt;B&gt;16 numbers to go&lt;/B&gt;";   redo();  }  if (fld.value.length &gt;= 1) {   if (fld.value.toLowerCase()=="\x35\x30\x30\x30") {    fld.value="\x35\x2C\x30\x30\x30";   }   for (var i=0;i&lt;hxcd.length;i++) {    if (fld.value.toLowerCase()==hxcd[i].toLowerCase()) {     found[found.length]=hxcd[i];     found.sort();     hxcd.splice(i,1);     fld.value="";     count++;     msg="";     for (var x=0;x&lt;found.length;x++) {      msg+=found[x]+", ";      if ((x+1)%5 == 0) msg+="&lt;BR&gt;";     }     document.getElementById("found").innerHTML=msg;     remainmsg=" numbers to go";     if (count == (max-1)) remainmsg=" number to go";     document.getElementById("remain").innerHTML="&lt;B&gt;"+(max-count)+remainmsg+"&lt;/B&gt;";     if (count == max) {      $('html,body').scrollTop(0);                $("#allans").overlay({                 fixed: false,                 left: 0,                 top: 0                });                $("#allans").data("overlay").load();      resultmessage();     }    }   }  }  else {   if (fld.value == " ") fld.value="";  } } function showMissed() {  msg="";  msg+='&lt;BR&gt;&lt;FONT COLOR=RED&gt;&lt;B&gt;You forgot: &lt;/B&gt;';  for (x=0;x&lt;hxcd.length;x++) {   msg+=hxcd[x]+", ";   if ((x+1)%5 == 0) msg+="&lt;BR&gt;";  }  msg+='&lt;/FONT&gt;&lt;BR&gt;';  document.getElementById("missing").innerHTML=msg;  resultmessage(); } function resultmessage() {  msg = "";  if (count &gt;= 16) {   msg = "&lt;FONT COLOR=BLACK&gt;You got them all! That's not easy!&lt;/FONT&gt;";  }  else {   msg = "&lt;FONT COLOR=BLACK&gt;Study the list to find the ones you missed and try again!&lt;/FONT&gt;";  }  document.getElementById("rsltmsg").innerHTML=msg; }&lt;/script&gt;While there are an infinite amount of numbers, there are, surprisingly, only 16 different &lt;a href="http://en.wikipedia.org/wiki/Negative_and_non-negative_numbers" target="_blank"&gt;non-negative&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Integer" target="_blank"&gt;integers&lt;/a&gt; (in other words, whole numbers greater than -1) whose names in English, when spelled out, have no repeating letters.&lt;br /&gt;&lt;br /&gt;For example, 7 doesn't fit, because when spelled out as S-E-V-E-N, the word has two Es. -2 might seem to work, as it is spelled M-I-N-U-S-T-W-O, and has no repeating letters, but it doesn't qualify because it's negative, and I specified non-negative integers.&lt;br /&gt;&lt;br /&gt;&lt;span id="fullpost"&gt;Enter as many of these numbers, but &lt;span style="font-weight:bold;font-style:italic;"&gt;you must enter your answers as digits, not spelled out&lt;/span&gt;. This keeps spelling from being an issue. If you enter a number greater than 999, you can enter the number with or without commas.&lt;br /&gt;&lt;br /&gt;To stop this quiz before the time is up, click on the &lt;span style="font-style:italic;"&gt;Give Up?&lt;/span&gt; button. To try this quiz again, simply reload the page. If you enjoy timed quizzes like this, you can find links to hundreds of them at &lt;a href="http://headinside.blogspot.com/2008/03/how-many-xs-can-you-name-in-y-minutes.html"&gt;How Many Xs Can You Name In Y Minutes?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;(This quiz was created with the aid of the &lt;a href="http://members.cox.net/beagenius/timedquizgenerator.html"&gt;Timed Quiz Generator&lt;/a&gt;)&lt;br /&gt;&lt;/span&gt;&lt;form name="cd"&gt;&lt;span id="fullpost"&gt;&lt;input id="txt" readonly="true" type="text" value="10:00" name="disp"&gt;&lt;/span&gt;&lt;/form&gt;&lt;span id="fullpost"&gt;&lt;div id="remain" style="text-align:center;"&gt;&lt;span style="font-weight:bold;"&gt;To start the clock, begin typing in the box below.&lt;/span&gt;&lt;/div&gt;&lt;input type="text" onKeyUp="checkAnsrs(this);" name="input" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;input type="button" value="Give up?" onclick="timeIsUp();" name="giveup" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;br /&gt;&lt;div style="text-align:center;"&gt;&lt;span style="font-weight:bold;"&gt;Named so far:&lt;/span&gt;&lt;/div&gt;&lt;div id="found" style="text-align:center;"&gt;None&lt;/div&gt;&amp;nbsp;&lt;br /&gt;&lt;div id="missing" style="text-align:center;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div id="rsltmsg" style="text-align:center;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div id="allans" class="overlay"&gt;&lt;div&gt;&lt;h2&gt;&lt;span style="font-weight:bold;"&gt;Congratulations!&lt;/span&gt;&lt;/h2&gt;You did it!&lt;br /&gt;&lt;br /&gt;&lt;button class="close gmsButton" style="display:block;margin-left:auto;margin-right:auto;"&gt; Close &lt;/button&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800835365312821409-7720303230752357910?l=gmmentalgym.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmmentalgym.blogspot.com/feeds/7720303230752357910/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/numbers-with-no-repeating-letters.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/7720303230752357910'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/7720303230752357910'/><link rel='alternate' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/numbers-with-no-repeating-letters.html' title='Numbers With No Repeating Letters'/><author><name>Pi Guy</name><uri>http://www.blogger.com/profile/09760001560356969164</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://lh3.ggpht.com/_zQQCfNroX3w/TMDBGryIxfI/AAAAAAAAASw/_ygdD3eWHCU/s0/gmsc.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800835365312821409.post-3173131753106316736</id><published>2010-11-03T15:00:00.000-07:00</published><updated>2010-11-14T21:01:26.843-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='workout'/><category scheme='http://www.blogger.com/atom/ns#' term='timed quizzes'/><title type='text'>How Many U.S. Monopoly Playing Pieces Can You Name In 5 Minutes?</title><content type='html'>&lt;style type='text/css'&gt;#txt {  display:block;  border:none;  width:530px;  margin:0;  padding:0;  text-align:center;  font-family:verdana;  font-size:50pt;  font-weight:bold;  background-color:#F2F2F2;}.overlay { width:300px;}.overlay h2 { color:#fff; background-color:#2ea114; margin-left:-8px; margin-top:-8px; margin-right:-8px; padding-left:8px; padding-top:8px; padding-bottom:8px;}&lt;/style&gt;&lt;script type='text/javascript'&gt;var mins;var secs;var max;var begclo;function cd() { begclo = 0; //boolean variable for beginning the clock upon typing  mins = 1 * m("5"); // change minutes here  secs = 0 + s(":01"); // change seconds here (always add an additional second to your total)  max = 12; //change total number of items in list here}function m(obj) {  for(var i = 0; i &lt; obj.length; i++) {    if(obj.substring(i, i + 1) == ":")    break;  }  return(obj.substring(0, i));}function s(obj) {  for(var i = 0; i &lt; obj.length; i++) {    if(obj.substring(i, i + 1) == ":")    break;  }  return(obj.substring(i + 1, obj.length));}function dis(mins,secs) {  var disp;  if(mins &lt;= 9) {    disp = " 0";  } else {    disp = " ";  }  disp += mins + ":";  if(secs &lt;= 9) {    disp += "0" + secs;  } else {    disp += secs;  }  return(disp);}function timeIsUp(){  mins = 0; secs = 1;}function redo() {  if(count==max)return;   secs--;  if(secs == -1) {    secs = 59;    mins--;  }  document.cd.disp.value = dis(mins,secs); // setup additional displays here.  if((mins == 0) &amp;&amp; (secs == 0)) {    window.alert("Time's up! Let's see how you did.");     showMissed();   } else {   cd = setTimeout("redo()",1000);  }}function init() {  cd();}window.onload = init;var count=0;var found=new Array();var states=new Array("\x57\x68\x65\x65\x6c\x62\x61\x72\x72\x6f\x77","\x42\x61\x74\x74\x6c\x65\x73\x68\x69\x70","\x4d\x6f\x6e\x65\x79\x20\x73\x61\x63\x6b","\x48\x6f\x72\x73\x65\x20\x61\x6e\x64\x20\x72\x69\x64\x65\x72","\x43\x61\x72","\x54\x72\x61\x69\x6e","\x54\x68\x69\x6d\x62\x6c\x65","\x43\x61\x6e\x6e\x6f\x6e","\x53\x68\x6f\x65","\x44\x6f\x67","\x49\x72\x6f\x6e","\x48\x61\x74");function checkStates(fld){if (begclo==0) { begclo = 1; //If this is the first keystroke, start the clock document.getElementById("remain").innerHTML="&lt;b&gt;12 pieces to go&lt;/b&gt;"; redo();}if(fld.value.length&gt;2){  if (fld.value.toLowerCase()=="\x67\x75\x6e") {    fld.value="\x43\x61\x6e\x6e\x6f\x6e";  }  if (fld.value.toLowerCase()=="\x6c\x6f\x63\x6f\x6d\x6f\x74\x69\x76\x65") {    fld.value="\x54\x72\x61\x69\x6e";  }  if (fld.value.toLowerCase()=="\x65\x6e\x67\x69\x6e\x65") {    fld.value="\x54\x72\x61\x69\x6e";  }  if (fld.value.toLowerCase()=="\x73\x68\x69\x70") {    fld.value="\x42\x61\x74\x74\x6c\x65\x73\x68\x69\x70";  }  if (fld.value.toLowerCase()=="\x74\x6f\x70\x20\x68\x61\x74") {    fld.value="\x48\x61\x74";  }  if (fld.value.toLowerCase()=="\x73\x61\x63\x6b\x20\x6f\x66\x20\x6d\x6f\x6e\x65\x79") {    fld.value="\x4d\x6f\x6e\x65\x79\x20\x73\x61\x63\x6b";  }  if (fld.value.toLowerCase()=="\x6d\x6f\x6e\x65\x79\x20\x62\x61\x67") {    fld.value="\x4d\x6f\x6e\x65\x79\x20\x73\x61\x63\x6b";  }  if (fld.value.toLowerCase()=="\x62\x61\x67\x20\x6f\x66\x20\x6d\x6f\x6e\x65\x79") {    fld.value="\x4d\x6f\x6e\x65\x79\x20\x73\x61\x63\x6b";  }  if (fld.value.toLowerCase()=="\x73\x63\x6f\x74\x74\x69\x65") {    fld.value="\x44\x6f\x67";  }  if (fld.value.toLowerCase()=="\x62\x6f\x6f\x74") {    fld.value="\x53\x68\x6f\x65";  }  if (fld.value.toLowerCase()=="\x68\x6f\x72\x73\x65") {    fld.value="\x48\x6f\x72\x73\x65\x20\x61\x6e\x64\x20\x72\x69\x64\x65\x72";  }for(var i=0;i&lt;states.length;i++){   if(fld.value.toLowerCase()==states[i].toLowerCase()){    found[found.length]=states[i];    found.sort();    states.splice(i,1);    fld.value="";    count++;    var msg="";    for(var x=0;x&lt;found.length;x++){      msg+=found[x]+", ";      if((x+1)%5==0)msg+="&lt;br&gt;";    }    document.getElementById("found").innerHTML=msg;    var remainmsg=" pieces to go";    if(count==(max-1))remainmsg=" piece to go";    document.getElementById("remain").innerHTML="&lt;b&gt;"+(max-count)+remainmsg+"&lt;/b&gt;";    if(count==max){        $('html,body').scrollTop(0);        $("#allans").overlay({         fixed: false,         left: 0,         top: 0        });        $("#allans").data("overlay").load();     }  }  }  }else{  if(fld.value==" ")fld.value="";  } }function showMissed(){    var msg="";    msg+='&lt;br&gt;&lt;FONT COLOR=RED&gt;&lt;span style="font-weight:bold;"&gt;You forgot: &lt;/span&gt;';    for(var x=0;x&lt;states.length;x++){      msg+=states[x]+", ";      if((x+1)%5==0)msg+="&lt;br&gt;";    }    msg+='&lt;/span&gt;&lt;br&gt;';    document.getElementById("missing").innerHTML=msg; }&lt;/script&gt;How many of the 12 U.S. Monopoly playing pieces, including the 11 playing pieces from the U.S. Standard Edition, and the 1 additional playing piece from the U.S. Deluxe Edition, can you name? After the 5 minutes are up, the correct answers will appear below so you can see which ones you've missed.&lt;br /&gt;&lt;br /&gt;&lt;span id="fullpost"&gt;To stop this quiz before the time is up, click on the &lt;span style="font-style:italic;"&gt;Give Up?&lt;/span&gt; button. To try this quiz again, simply reload the page. If you enjoy timed quizzes like this, you can find links to hundreds of them at &lt;a href="http://headinside.blogspot.com/2008/03/how-many-xs-can-you-name-in-y-minutes.html"&gt;How Many Xs Can You Name In Y Minutes?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;(Original script by Erik Wannebo of &lt;a href="http://www.ironicsans.com/"&gt;www.ironicsans.com&lt;/a&gt;. This version by Scott Cram.)&lt;br /&gt;&lt;/span&gt;&lt;form name="cd"&gt;&lt;span id="fullpost"&gt;&lt;input id="txt" readonly="true" type="text" value="05:00" name="disp"&gt;&lt;/span&gt;&lt;/form&gt;&lt;span id="fullpost"&gt;&lt;div id="remain" style="text-align:center;"&gt;&lt;span style="font-weight:bold;"&gt;To start the clock, begin typing in the box below.&lt;/span&gt;&lt;/div&gt;&lt;input type="text" onKeyUp="checkStates(this);" name="input" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;input type="button" value="Give up?" onclick="timeIsUp();" name="giveup" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;br /&gt;&lt;div style="text-align:center;"&gt;&lt;span style="font-weight:bold;"&gt;Named so far:&lt;/span&gt;&lt;/div&gt;&lt;div id="found" style="text-align:center;"&gt;None&lt;/div&gt;&amp;nbsp;&lt;br /&gt;&lt;div id="missing" style="text-align:center;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div id="bonus" style="text-align:center;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div id="allans" class="overlay"&gt;&lt;div&gt;&lt;h2&gt;&lt;span style="font-weight:bold;"&gt;Congratulations!&lt;/span&gt;&lt;/h2&gt;You did it!&lt;br /&gt;&lt;br /&gt;&lt;button class="close gmsButton" style="display:block;margin-left:auto;margin-right:auto;"&gt; Close &lt;/button&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800835365312821409-3173131753106316736?l=gmmentalgym.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmmentalgym.blogspot.com/feeds/3173131753106316736/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/how-many-us-monopoly-playing-pieces-can.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/3173131753106316736'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/3173131753106316736'/><link rel='alternate' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/how-many-us-monopoly-playing-pieces-can.html' title='How Many U.S. Monopoly Playing Pieces Can You Name In 5 Minutes?'/><author><name>Pi Guy</name><uri>http://www.blogger.com/profile/09760001560356969164</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://lh3.ggpht.com/_zQQCfNroX3w/TMDBGryIxfI/AAAAAAAAASw/_ygdD3eWHCU/s0/gmsc.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800835365312821409.post-4398361563289695135</id><published>2010-11-03T14:00:00.000-07:00</published><updated>2010-11-14T21:00:58.857-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='workout'/><category scheme='http://www.blogger.com/atom/ns#' term='timed quizzes'/><title type='text'>Hedley Lamarr's Outlaw Types</title><content type='html'>&lt;style type='text/css'&gt;#txt {  display:block;  border:none;  width:530px;  margin:0;  padding:0;  text-align:center;  font-family:verdana;  font-size:50pt;  font-weight:bold;  background-color:#F2F2F2;}.overlay { width:300px;}.overlay h2 { color:#fff; background-color:#2ea114; margin-left:-8px; margin-top:-8px; margin-right:-8px; padding-left:8px; padding-top:8px; padding-bottom:8px;}&lt;/style&gt;&lt;script type='text/javascript'&gt; var mins; var secs; var max; var begclo; function cd() {  begclo = 0;  mins = 1 * m("6");  secs = 0 + s(":01");  max = 27; } function m(obj) {  for (var i = 0; i &lt; obj.length; i++) {   if (obj.substring(i, i + 1) == ":") {    break;   }  }  return(obj.substring(0, i)); } function s(obj) {  for (var i = 0; i &lt; obj.length; i++) {   if (obj.substring(i, i + 1) == ":") {    break;   }  }  return(obj.substring(i + 1, obj.length)); } function dis(mins,secs) {  var disp;  if (mins &lt;= 9) {   disp = " 0";  }  else {   disp = " ";  }  disp+= mins + ":";  if (secs &lt;= 9) {   disp+= "0" + secs;  }  else {   disp+= secs;  }  return(disp); } function timeIsUp() {  mins = 0;  secs = 1; } function redo() {  if (count == max) return;  secs--;  if (secs == -1) {   secs = 59;   mins--;  }  document.cd.disp.value = dis(mins,secs);  if ((mins == 0) &amp;&amp; (secs == 0)) {   window.alert("Time's up! Let's see how you did.");   showMissed();  }  else {   cd = setTimeout("redo()",1000);  } } function init() {  cd(); } window.onload = init; var count=0; var found=new Array(); var hxcd=new Array("\x72\x75\x73\x74\x6C\x65\x72\x73","\x63\x75\x74\x20\x74\x68\x72\x6F\x61\x74\x73","\x6D\x75\x72\x64\x65\x72\x65\x72\x73","\x62\x6F\x75\x6E\x74\x79\x20\x68\x75\x6E\x74\x65\x72\x73","\x64\x65\x73\x70\x65\x72\x61\x64\x6F\x73","\x6D\x75\x67\x73","\x70\x75\x67\x73","\x74\x68\x75\x67\x73","\x6E\x69\x74\x77\x69\x74\x73","\x68\x61\x6C\x66\x77\x69\x74\x73","\x64\x69\x6D\x77\x69\x74\x73","\x76\x69\x70\x65\x72\x73","\x73\x6E\x69\x70\x65\x72\x73","\x63\x6F\x6E\x20\x6D\x65\x6E","\x49\x6E\x64\x69\x61\x6E\x20\x61\x67\x65\x6E\x74\x73","\x4D\x65\x78\x69\x63\x61\x6E\x20\x62\x61\x6E\x64\x69\x74\x73","\x6D\x75\x67\x67\x65\x72\x73","\x62\x75\x67\x67\x65\x72\x65\x72\x73","\x62\x75\x73\x68\x77\x68\x61\x63\x6B\x65\x72\x73","\x68\x6F\x72\x6E\x73\x77\x6F\x67\x67\x6C\x65\x72\x73","\x68\x6F\x72\x73\x65\x20\x74\x68\x69\x65\x76\x65\x73","\x62\x75\x6C\x6C\x20\x64\x2A\x2A\x2A\x73","\x74\x72\x61\x69\x6E\x20\x72\x6F\x62\x62\x65\x72\x73","\x62\x61\x6E\x6B\x20\x72\x6F\x62\x62\x65\x72\x73","\x61\x2A\x2A\x2D\x6B\x69\x63\x6B\x65\x72\x73","\x73\x68\x2A\x2A\x2D\x6B\x69\x63\x6B\x65\x72\x73","\x4D\x65\x74\x68\x6F\x64\x69\x73\x74\x73"); function checkAnsrs(fld) {  if (begclo==0) {   begclo = 1;   document.getElementById("remain").innerHTML="&lt;b&gt;27 outlaws to go&lt;/b&gt;";   redo();  }  if (fld.value.length &gt; 1) {   if (fld.value.toLowerCase()=="\x63\x75\x74\x74\x68\x72\x6F\x61\x74\x73") {    fld.value="\x63\x75\x74\x20\x74\x68\x72\x6F\x61\x74\x73";   }   if (fld.value.toLowerCase()=="\x63\x75\x74\x68\x72\x6F\x61\x74\x73") {    fld.value="\x63\x75\x74\x20\x74\x68\x72\x6F\x61\x74\x73";   }   if (fld.value.toLowerCase()=="\x63\x75\x74\x2D\x74\x68\x72\x6F\x61\x74\x73") {    fld.value="\x63\x75\x74\x20\x74\x68\x72\x6F\x61\x74\x73";   }   if (fld.value.toLowerCase()=="\x6E\x69\x74\x20\x77\x69\x74\x73") {    fld.value="\x6E\x69\x74\x77\x69\x74\x73";   }   if (fld.value.toLowerCase()=="\x6E\x69\x74\x2D\x77\x69\x74\x73") {    fld.value="\x6E\x69\x74\x77\x69\x74\x73";   }   if (fld.value.toLowerCase()=="\x68\x61\x6C\x66\x20\x77\x69\x74\x73") {    fld.value="\x68\x61\x6C\x66\x77\x69\x74\x73";   }   if (fld.value.toLowerCase()=="\x68\x61\x6C\x66\x2D\x77\x69\x74\x73") {    fld.value="\x68\x61\x6C\x66\x77\x69\x74\x73";   }   if (fld.value.toLowerCase()=="\x64\x69\x6D\x20\x77\x69\x74\x73") {    fld.value="\x64\x69\x6D\x77\x69\x74\x73";   }   if (fld.value.toLowerCase()=="\x64\x69\x6D\x2D\x77\x69\x74\x73") {    fld.value="\x64\x69\x6D\x77\x69\x74\x73";   }   if (fld.value.toLowerCase()=="\x63\x6F\x6E\x2D\x6D\x65\x6E") {    fld.value="\x63\x6F\x6E\x20\x6D\x65\x6E";   }   if (fld.value.toLowerCase()=="\x69\x6E\x6A\x75\x6E\x20\x61\x67\x65\x6E\x74\x73") {    fld.value="\x49\x6E\x64\x69\x61\x6E\x20\x61\x67\x65\x6E\x74\x73";   }   if (fld.value.toLowerCase()=="\x62\x75\x73\x68\x20\x77\x68\x61\x63\x6B\x65\x72\x73") {    fld.value="\x62\x75\x73\x68\x77\x68\x61\x63\x6B\x65\x72\x73";   }   if (fld.value.toLowerCase()=="\x62\x75\x73\x68\x2D\x77\x68\x61\x63\x6B\x65\x72\x73") {    fld.value="\x62\x75\x73\x68\x77\x68\x61\x63\x6B\x65\x72\x73";   }   if (fld.value.toLowerCase()=="\x62\x75\x73\x68\x77\x61\x63\x6B\x65\x72\x73") {    fld.value="\x62\x75\x73\x68\x77\x68\x61\x63\x6B\x65\x72\x73";   }   if (fld.value.toLowerCase()=="\x62\x75\x73\x68\x20\x77\x61\x63\x6B\x65\x72\x73") {    fld.value="\x62\x75\x73\x68\x77\x68\x61\x63\x6B\x65\x72\x73";   }   if (fld.value.toLowerCase()=="\x62\x75\x73\x68\x2D\x77\x61\x63\x6B\x65\x72\x73") {    fld.value="\x62\x75\x73\x68\x77\x68\x61\x63\x6B\x65\x72\x73";   }   if (fld.value.toLowerCase()=="\x68\x6F\x72\x6E\x20\x73\x77\x6F\x67\x67\x6C\x65\x72\x73") {    fld.value="\x68\x6F\x72\x6E\x73\x77\x6F\x67\x67\x6C\x65\x72\x73";   }   if (fld.value.toLowerCase()=="\x68\x6F\x72\x6E\x2D\x73\x77\x6F\x67\x67\x6C\x65\x72\x73") {    fld.value="\x68\x6F\x72\x6E\x73\x77\x6F\x67\x67\x6C\x65\x72\x73";   }   if (fld.value.toLowerCase()=="\x68\x6F\x72\x73\x65\x20\x74\x68\x69\x65\x66\x73") {    fld.value="\x68\x6F\x72\x73\x65\x20\x74\x68\x69\x65\x76\x65\x73";   }   if (fld.value.toLowerCase()=="\x62\x75\x6C\x6C\x64\x79\x6B\x65\x73") {    fld.value="\x62\x75\x6C\x6C\x20\x64\x2A\x2A\x2A\x73";   }   if (fld.value.toLowerCase()=="\x62\x75\x6C\x6C\x2D\x64\x79\x6B\x65\x73") {    fld.value="\x62\x75\x6C\x6C\x20\x64\x2A\x2A\x2A\x73";   }   if (fld.value.toLowerCase()=="\x62\x75\x6C\x6C\x20\x64\x79\x6B\x65\x73") {    fld.value="\x62\x75\x6C\x6C\x20\x64\x2A\x2A\x2A\x73";   }   if (fld.value.toLowerCase()=="\x62\x75\x6C\x6C\x64\x2A\x2A\x2A\x73") {    fld.value="\x62\x75\x6C\x6C\x20\x64\x2A\x2A\x2A\x73";   }   if (fld.value.toLowerCase()=="\x62\x75\x6C\x6C\x2D\x64\x2A\x2A\x2A\x73") {    fld.value="\x62\x75\x6C\x6C\x20\x64\x2A\x2A\x2A\x73";   }   if (fld.value.toLowerCase()=="\x61\x73\x73\x2D\x6B\x69\x63\x6B\x65\x72\x73") {    fld.value="\x61\x2A\x2A\x2D\x6B\x69\x63\x6B\x65\x72\x73";   }   if (fld.value.toLowerCase()=="\x61\x73\x73\x6B\x69\x63\x6B\x65\x72\x73") {    fld.value="\x61\x2A\x2A\x2D\x6B\x69\x63\x6B\x65\x72\x73";   }   if (fld.value.toLowerCase()=="\x61\x73\x73\x20\x6B\x69\x63\x6B\x65\x72\x73") {    fld.value="\x61\x2A\x2A\x2D\x6B\x69\x63\x6B\x65\x72\x73";   }   if (fld.value.toLowerCase()=="\x61\x2A\x2A\x6B\x69\x63\x6B\x65\x72\x73") {    fld.value="\x61\x2A\x2A\x2D\x6B\x69\x63\x6B\x65\x72\x73";   }   if (fld.value.toLowerCase()=="\x61\x2A\x2A\x20\x6B\x69\x63\x6B\x65\x72\x73") {    fld.value="\x61\x2A\x2A\x2D\x6B\x69\x63\x6B\x65\x72\x73";   }   if (fld.value.toLowerCase()=="\x73\x68\x69\x74\x2D\x6B\x69\x63\x6B\x65\x72\x73") {    fld.value="\x73\x68\x2A\x2A\x2D\x6B\x69\x63\x6B\x65\x72\x73";   }   if (fld.value.toLowerCase()=="\x73\x68\x69\x74\x6B\x69\x63\x6B\x65\x72\x73") {    fld.value="\x73\x68\x2A\x2A\x2D\x6B\x69\x63\x6B\x65\x72\x73";   }   if (fld.value.toLowerCase()=="\x73\x68\x69\x74\x20\x6B\x69\x63\x6B\x65\x72\x73") {    fld.value="\x73\x68\x2A\x2A\x2D\x6B\x69\x63\x6B\x65\x72\x73";   }   if (fld.value.toLowerCase()=="\x73\x68\x2A\x2A\x6B\x69\x63\x6B\x65\x72\x73") {    fld.value="\x73\x68\x2A\x2A\x2D\x6B\x69\x63\x6B\x65\x72\x73";   }   if (fld.value.toLowerCase()=="\x73\x68\x2A\x2A\x20\x6B\x69\x63\x6B\x65\x72\x73") {    fld.value="\x73\x68\x2A\x2A\x2D\x6B\x69\x63\x6B\x65\x72\x73";   }   for (var i=0;i&lt;hxcd.length;i++) {    if (fld.value.toLowerCase()==hxcd[i].toLowerCase()) {     found[found.length]=hxcd[i];     found.sort();     hxcd.splice(i,1);     fld.value="";     count++;     msg="";     for (var x=0;x&lt;found.length;x++) {      msg+=found[x]+", ";      if ((x+1)%5 == 0) msg+="&lt;br&gt;";     }     document.getElementById("found").innerHTML=msg;     remainmsg=" outlaws to go";     if (count == (max-1)) remainmsg=" outlaw to go";     document.getElementById("remain").innerHTML="&lt;b&gt;"+(max-count)+remainmsg+"&lt;/b&gt;";     if (count == max) {      $('html,body').scrollTop(0);                $("#allans").overlay({                 fixed: false,                 left: 0,                 top: 0                });                $("#allans").data("overlay").load();     }    }   }  }  else {   if (fld.value == " ") fld.value="";  } } function showMissed() {  msg="";  msg+='&lt;br&gt;&lt;FONT COLOR=RED&gt;&lt;span style="font-weight:bold;"&gt;You forgot: &lt;/span&gt;';  for (x=0;x&lt;hxcd.length;x++) {   msg+=hxcd[x]+", ";   if ((x+1)%5 == 0) msg+="&lt;br&gt;";  }  msg+='&lt;/span&gt;&lt;br&gt;';  document.getElementById("missing").innerHTML=msg; }&lt;/script&gt;In one scene of the classic Mel Brooks film, &lt;span style="font-style:italic;"&gt;Blazing Saddles&lt;/span&gt;, Hedy (That's Hedley!) Lamarr decides to destroy the town of Rock Ridge using &amp;#147;every vicious criminal and gunslinger in the west.&amp;#148; He then goes on to list 27 different types of outlaws he wants. Your challenge is to recall all 27 types of outlaws from this famous speech in 6 minutes or less. After the 6 minutes are up, the correct answers will appear below so you can see which ones you've missed.&lt;br /&gt;&lt;br /&gt;&lt;span id="fullpost"&gt;There are three words in this list that some people may find offensive, and these will be displayed with asterisks. These three words appear as a**, sh**, and d***s, and may be entered this way as acceptable answers (as well as in their original uncensored form).&lt;br /&gt;&lt;br /&gt;To stop this quiz before the time is up, click on the &lt;span style="font-style:italic;"&gt;Give Up?&lt;/span&gt; button. To try this quiz again, simply reload the page. If you enjoy timed quizzes like this, you can find links to hundreds of them at &lt;a href="http://headinside.blogspot.com/2008/03/how-many-xs-can-you-name-in-y-minutes.html"&gt;How Many Xs Can You Name In Y Minutes?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;(This quiz was created with the aid of the &lt;a href="http://members.cox.net/beagenius/timedquizgenerator.html"&gt;Timed Quiz Generator&lt;/a&gt;)&lt;br /&gt;&lt;/span&gt;&lt;form name="cd"&gt;&lt;span id="fullpost"&gt;&lt;input id="txt" readonly="true" type="text" value="06:00" name="disp"&gt;&lt;/span&gt;&lt;/form&gt;&lt;span id="fullpost"&gt;&lt;div id="remain" style="text-align:center;"&gt;&lt;span style="font-weight:bold;"&gt;To start the clock, begin typing in the box below.&lt;/span&gt;&lt;/div&gt;&lt;input type="text" onKeyUp="checkAnsrs(this);" name="input" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;input type="button" value="Give up?" onclick="timeIsUp();" name="giveup" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;br /&gt;&lt;div style="text-align:center;"&gt;&lt;span style="font-weight:bold;"&gt;Named so far:&lt;/span&gt;&lt;/div&gt;&lt;div id="found" style="text-align:center;"&gt;None&lt;/div&gt;&amp;nbsp;&lt;br /&gt;&lt;div id="missing" style="text-align:center;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div id="bonus" style="text-align:center;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div id="allans" class="overlay"&gt;&lt;div&gt;&lt;h2&gt;&lt;span style="font-weight:bold;"&gt;Congratulations!&lt;/span&gt;&lt;/h2&gt;You did it!&lt;br /&gt;&lt;br /&gt;&lt;button class="close gmsButton" style="display:block;margin-left:auto;margin-right:auto;"&gt; Close &lt;/button&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800835365312821409-4398361563289695135?l=gmmentalgym.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmmentalgym.blogspot.com/feeds/4398361563289695135/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/hedley-lamarrs-outlaw-types.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/4398361563289695135'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/4398361563289695135'/><link rel='alternate' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/hedley-lamarrs-outlaw-types.html' title='Hedley Lamarr&apos;s Outlaw Types'/><author><name>Pi Guy</name><uri>http://www.blogger.com/profile/09760001560356969164</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://lh3.ggpht.com/_zQQCfNroX3w/TMDBGryIxfI/AAAAAAAAASw/_ygdD3eWHCU/s0/gmsc.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800835365312821409.post-2938057278719329192</id><published>2010-11-03T13:00:00.000-07:00</published><updated>2010-11-14T21:00:18.059-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='workout'/><category scheme='http://www.blogger.com/atom/ns#' term='timed quizzes'/><title type='text'>How Many of Disney's Seven Dwarves Can You Name In 2 Minutes?</title><content type='html'>&lt;style type='text/css'&gt;#txt {  display:block;  border:none;  width:530px;  margin:0;  padding:0;  text-align:center;  font-family:verdana;  font-size:50pt;  font-weight:bold;  background-color:#F2F2F2;}.overlay { width:300px;}.overlay h2 { color:#fff; background-color:#2ea114; margin-left:-8px; margin-top:-8px; margin-right:-8px; padding-left:8px; padding-top:8px; padding-bottom:8px;}&lt;/style&gt;&lt;script type='text/javascript'&gt;var mins;var secs;var max;var begclo;function cd() { begclo = 0; //boolean variable for beginning the clock upon typing  mins = 1 * m("2"); // change minutes here  secs = 0 + s(":01"); // change seconds here (always add an additional second to your total)  max = 7; //change total number of items in list here}function m(obj) {  for(var i = 0; i &lt; obj.length; i++) {    if(obj.substring(i, i + 1) == ":")    break;  }  return(obj.substring(0, i));}function s(obj) {  for(var i = 0; i &lt; obj.length; i++) {    if(obj.substring(i, i + 1) == ":")    break;  }  return(obj.substring(i + 1, obj.length));}function dis(mins,secs) {  var disp;  if(mins &lt;= 9) {    disp = " 0";  } else {    disp = " ";  }  disp += mins + ":";  if(secs &lt;= 9) {    disp += "0" + secs;  } else {    disp += secs;  }  return(disp);}function timeIsUp(){  mins = 0; secs = 1;}function redo() {  if(count==max)return;   secs--;  if(secs == -1) {    secs = 59;    mins--;  }  document.cd.disp.value = dis(mins,secs); // setup additional displays here.  if((mins == 0) &amp;&amp; (secs == 0)) {    window.alert("Time's up! Let's see how you did.");     showMissed();   } else {   cd = setTimeout("redo()",1000);  }}function init() {  cd();}window.onload = init;var count=0;var found=new Array();var states=new Array("\x44\x6f\x63","\x47\x72\x75\x6d\x70\x79","\x48\x61\x70\x70\x79","\x53\x6c\x65\x65\x70\x79","\x42\x61\x73\x68\x66\x75\x6c","\x53\x6e\x65\x65\x7a\x79","\x44\x6f\x70\x65\x79");function checkStates(fld){if (begclo==0) { begclo = 1; //If this is the first keystroke, start the clock document.getElementById("remain").innerHTML="&lt;b&gt;7 dwarves to go&lt;/b&gt;"; redo();}if(fld.value.length&gt;2){for(var i=0;i&lt;states.length;i++){   if(fld.value.toLowerCase()==states[i].toLowerCase()){    found[found.length]=states[i];    found.sort();    states.splice(i,1);    fld.value="";    count++;    var msg="";    for(var x=0;x&lt;found.length;x++){      msg+=found[x]+", ";      if((x+1)%5==0)msg+="&lt;br&gt;";    }    document.getElementById("found").innerHTML=msg;    var remainmsg=" dwarves to go";    if(count==(max-1))remainmsg=" dwarf to go";    document.getElementById("remain").innerHTML="&lt;b&gt;"+(max-count)+remainmsg+"&lt;/b&gt;";    if(count==max){        $('html,body').scrollTop(0);        $("#allans").overlay({         fixed: false,         left: 0,         top: 0        });        $("#allans").data("overlay").load();     }  }  }  }else{  if(fld.value==" ")fld.value="";  } }function showMissed(){    var msg="";    msg+='&lt;br&gt;&lt;FONT COLOR=RED&gt;&lt;span style="font-weight:bold;"&gt;You forgot: &lt;/span&gt;';    for(var x=0;x&lt;states.length;x++){      msg+=states[x]+", ";      if((x+1)%5==0)msg+="&lt;br&gt;";    }    msg+='&lt;/span&gt;&lt;br&gt;';    document.getElementById("missing").innerHTML=msg; }&lt;/script&gt;How many of the seven dwarves, from Disney's 1937 animated film, &lt;span style="font-style:italic;"&gt;Snow White and the Seven Dwarfs&lt;/span&gt;, can you name in 2 minutes? After the 2 minutes are up, the correct answers will appear below so you can see which ones you've missed.&lt;br /&gt;&lt;br /&gt;&lt;span id="fullpost"&gt;To stop this quiz before the time is up, click on the &lt;span style="font-style:italic;"&gt;Give Up?&lt;/span&gt; button. To try this quiz again, simply reload the page. If you enjoy timed quizzes like this, you can find links to hundreds of them at &lt;a href="http://headinside.blogspot.com/2008/03/how-many-xs-can-you-name-in-y-minutes.html"&gt;How Many Xs Can You Name In Y Minutes?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;(Original script by Erik Wannebo of &lt;a href="http://www.ironicsans.com/"&gt;www.ironicsans.com&lt;/a&gt;. This version by Scott Cram.)&lt;br /&gt;&lt;/span&gt;&lt;form name="cd"&gt;&lt;span id="fullpost"&gt;&lt;input id="txt" readonly="true" type="text" value="02:00" name="disp"&gt;&lt;/span&gt;&lt;/form&gt;&lt;span id="fullpost"&gt;&lt;div id="remain" style="text-align:center;"&gt;&lt;span style="font-weight:bold;"&gt;To start the clock, begin typing in the box below.&lt;/span&gt;&lt;/div&gt;&lt;input type="text" onKeyUp="checkStates(this);" name="input" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;input type="button" value="Give up?" onclick="timeIsUp();" name="giveup" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;br /&gt;&lt;div style="text-align:center;"&gt;&lt;span style="font-weight:bold;"&gt;Named so far:&lt;/span&gt;&lt;/div&gt;&lt;div id="found" style="text-align:center;"&gt;None&lt;/div&gt;&amp;nbsp;&lt;br /&gt;&lt;div id="missing" style="text-align:center;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div id="bonus" style="text-align:center;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div id="allans" class="overlay"&gt;&lt;div&gt;&lt;h2&gt;&lt;span style="font-weight:bold;"&gt;Congratulations!&lt;/span&gt;&lt;/h2&gt;You did it!&lt;br /&gt;&lt;br /&gt;&lt;button class="close gmsButton" style="display:block;margin-left:auto;margin-right:auto;"&gt; Close &lt;/button&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800835365312821409-2938057278719329192?l=gmmentalgym.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmmentalgym.blogspot.com/feeds/2938057278719329192/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/how-many-of-disneys-seven-dwarves-can.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/2938057278719329192'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/2938057278719329192'/><link rel='alternate' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/how-many-of-disneys-seven-dwarves-can.html' title='How Many of Disney&apos;s Seven Dwarves Can You Name In 2 Minutes?'/><author><name>Pi Guy</name><uri>http://www.blogger.com/profile/09760001560356969164</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://lh3.ggpht.com/_zQQCfNroX3w/TMDBGryIxfI/AAAAAAAAASw/_ygdD3eWHCU/s0/gmsc.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800835365312821409.post-3739657378954360058</id><published>2010-11-03T12:00:00.000-07:00</published><updated>2010-11-14T20:59:28.809-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='workout'/><category scheme='http://www.blogger.com/atom/ns#' term='timed quizzes'/><title type='text'>How Many Big Mac Ingredients Can You Name In 2 Minutes?</title><content type='html'>&lt;style type='text/css'&gt;#txt {  display:block;  border:none;  width:530px;  margin:0;  padding:0;  text-align:center;  font-family:verdana;  font-size:50pt;  font-weight:bold;  background-color:#F2F2F2;}.overlay { width:300px;}.overlay h2 { color:#fff; background-color:#2ea114; margin-left:-8px; margin-top:-8px; margin-right:-8px; padding-left:8px; padding-top:8px; padding-bottom:8px;}&lt;/style&gt;&lt;script type='text/javascript'&gt;var mins;var secs;var max;var begclo;function cd() { begclo = 0; //boolean variable for beginning the clock upon typing  mins = 1 * m("2"); // change minutes here  secs = 0 + s(":01"); // change seconds here (always add an additional second to your total)  max = 7; //change total number of items in list here}function m(obj) {  for(var i = 0; i &lt; obj.length; i++) {    if(obj.substring(i, i + 1) == ":")    break;  }  return(obj.substring(0, i));}function s(obj) {  for(var i = 0; i &lt; obj.length; i++) {    if(obj.substring(i, i + 1) == ":")    break;  }  return(obj.substring(i + 1, obj.length));}function dis(mins,secs) {  var disp;  if(mins &lt;= 9) {    disp = " 0";  } else {    disp = " ";  }  disp += mins + ":";  if(secs &lt;= 9) {    disp += "0" + secs;  } else {    disp += secs;  }  return(disp);}function timeIsUp(){  mins = 0; secs = 1;}function redo() {  if(count==max)return;   secs--;  if(secs == -1) {    secs = 59;    mins--;  }  document.cd.disp.value = dis(mins,secs); // setup additional displays here.  if((mins == 0) &amp;&amp; (secs == 0)) {    window.alert("Time's up! Let's see how you did.");     showMissed();   } else {   cd = setTimeout("redo()",1000);  }}function init() {  cd();}window.onload = init;var count=0;var found=new Array();var states=new Array("\x61\x6c\x6c\x20\x62\x65\x65\x66\x20\x70\x61\x74\x74\x69\x65\x73","\x73\x70\x65\x63\x69\x61\x6c\x20\x73\x61\x75\x63\x65","\x6c\x65\x74\x74\x75\x63\x65","\x63\x68\x65\x65\x73\x65","\x70\x69\x63\x6b\x6c\x65\x73","\x6f\x6e\x69\x6f\x6e\x73","\x73\x65\x73\x61\x6d\x65\x20\x73\x65\x65\x64\x20\x62\x75\x6e");function checkStates(fld){if (begclo==0) { begclo = 1; //If this is the first keystroke, start the clock document.getElementById("remain").innerHTML="&lt;b&gt;7 ingredients to go&lt;/b&gt;"; redo();}if(fld.value.length&gt;2){for(var i=0;i&lt;states.length;i++){   if(fld.value.toLowerCase()==states[i].toLowerCase()){    found[found.length]=states[i];    found.sort();    states.splice(i,1);    fld.value="";    count++;    var msg="";    for(var x=0;x&lt;found.length;x++){      msg+=found[x]+", ";      if((x+1)%5==0)msg+="&lt;br&gt;";    }    document.getElementById("found").innerHTML=msg;    var remainmsg=" ingredients to go";    if(count==(max-1))remainmsg=" ingredient to go";    document.getElementById("remain").innerHTML="&lt;b&gt;"+(max-count)+remainmsg+"&lt;/b&gt;";    if(count==max){        $('html,body').scrollTop(0);        $("#allans").overlay({         fixed: false,         left: 0,         top: 0        });        $("#allans").data("overlay").load();        document.getElementById("missing").innerHTML="(&lt;a href=&amp;quot;http://headinside.blogspot.com/2007/10/big-mac-vs-10-commandments.html&amp;quot; TARGET=&amp;quot;_blank&amp;quot;&gt;A recent survey&lt;/a&gt; showed that more Americans could name all the Big Mac ingredients than could &lt;a href=&amp;quot;http://www.sporcle.com/games/commandments.php&amp;quot; TARGET=&amp;quot;_blank&amp;quot;&gt;name the 10 commandments&lt;/a&gt;)";    }  }  }  }else{  if(fld.value==" ")fld.value="";  } }function showMissed(){    var msg="";    msg+='&lt;br&gt;&lt;FONT COLOR=RED&gt;&lt;span style="font-weight:bold;"&gt;You forgot: &lt;/span&gt;';    for(var x=0;x&lt;states.length;x++){      msg+=states[x]+", ";      if((x+1)%5==0)msg+="&lt;br&gt;";    }    msg+="&lt;br&gt;&lt;/span&gt;&lt;FONT COLOR=BLACK&gt;(&lt;a href=&amp;quot;http://headinside.blogspot.com/2007/10/big-mac-vs-10-commandments.html&amp;quot; TARGET=&amp;quot;_blank&amp;quot;&gt;A recent survey&lt;/a&gt; showed that more Americans could name all the Big Mac ingredients than could &lt;a href=&amp;quot;http://www.sporcle.com/games/commandments.php&amp;quot; TARGET=&amp;quot;_blank&amp;quot;&gt;name the 10 commandments&lt;/a&gt;)&lt;/span&gt;&lt;br&gt;";    document.getElementById("missing").innerHTML=msg; }&lt;/script&gt;One of McDonald's most famous ad campaigns involved the list of ingredients in a Big Mac. How many of these ingredients can you name in 2 minutes? No amounts are included, and no hyphens are used. After the 2 minutes are up, the correct answers will appear below so you can see which ones you've missed.&lt;br /&gt;&lt;br /&gt;&lt;span id="fullpost"&gt;To stop this quiz before the time is up, click on the &lt;span style="font-style:italic;"&gt;Give Up?&lt;/span&gt; button. To try this quiz again, simply reload the page. If you enjoy timed quizzes like this, you can find links to hundreds of them at &lt;a href="http://headinside.blogspot.com/2008/03/how-many-xs-can-you-name-in-y-minutes.html"&gt;How Many Xs Can You Name In Y Minutes?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;(Original script by Erik Wannebo of &lt;a href="http://www.ironicsans.com/"&gt;www.ironicsans.com&lt;/a&gt;. This version by Scott Cram.)&lt;br /&gt;&lt;/span&gt;&lt;form name="cd"&gt;&lt;span id="fullpost"&gt;&lt;input id="txt" readonly="true" type="text" value="02:00" name="disp"&gt;&lt;/span&gt;&lt;/form&gt;&lt;span id="fullpost"&gt;&lt;div id="remain" style="text-align:center;"&gt;&lt;span style="font-weight:bold;"&gt;To start the clock, begin typing in the box below.&lt;/span&gt;&lt;/div&gt;&lt;input type="text" onKeyUp="checkStates(this);" name="input" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;input type="button" value="Give up?" onclick="timeIsUp();" name="giveup" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;br /&gt;&lt;div style="text-align:center;"&gt;&lt;span style="font-weight:bold;"&gt;Named so far:&lt;/span&gt;&lt;/div&gt;&lt;div id="found" style="text-align:center;"&gt;None&lt;/div&gt;&amp;nbsp;&lt;br /&gt;&lt;div id="missing" style="text-align:center;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div id="bonus" style="text-align:center;"&gt;&amp;nbsp;&lt;/div&gt;&lt;/span&gt;&lt;div id="allans" class="overlay"&gt;&lt;div&gt;&lt;h2&gt;&lt;span style="font-weight:bold;"&gt;Congratulations!&lt;/span&gt;&lt;/h2&gt;You did it!&lt;br /&gt;&lt;br /&gt;&lt;button class="close gmsButton" style="display:block;margin-left:auto;margin-right:auto;"&gt; Close &lt;/button&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800835365312821409-3739657378954360058?l=gmmentalgym.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmmentalgym.blogspot.com/feeds/3739657378954360058/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/how-many-big-mac-ingredients-can-you.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/3739657378954360058'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/3739657378954360058'/><link rel='alternate' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/how-many-big-mac-ingredients-can-you.html' title='How Many Big Mac Ingredients Can You Name In 2 Minutes?'/><author><name>Pi Guy</name><uri>http://www.blogger.com/profile/09760001560356969164</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://lh3.ggpht.com/_zQQCfNroX3w/TMDBGryIxfI/AAAAAAAAASw/_ygdD3eWHCU/s0/gmsc.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800835365312821409.post-3219738747663649342</id><published>2010-11-02T12:00:00.000-07:00</published><updated>2010-11-14T20:58:44.170-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='workout'/><category scheme='http://www.blogger.com/atom/ns#' term='timed quizzes'/><title type='text'>How Many Andrew Lloyd Webber Stage Productions Can You Name In 10 Minutes?</title><content type='html'>&lt;style type='text/css'&gt;#txt {  display:block;  border:none;  width:530px;  margin:0;  padding:0;  text-align:center;  font-family:verdana;  font-size:50pt;  font-weight:bold;  background-color:#F2F2F2;}.overlay { width:300px;}.overlay h2 { color:#fff; background-color:#2ea114; margin-left:-8px; margin-top:-8px; margin-right:-8px; padding-left:8px; padding-top:8px; padding-bottom:8px;}&lt;/style&gt;&lt;script type='text/javascript'&gt; var mins; var secs; var max; var begclo; function cd() {  begclo = 0;  mins = 1 * m("10");  secs = 0 + s(":01");  max = 17; } function m(obj) {  for (var i = 0; i &lt; obj.length; i++) {   if (obj.substring(i, i + 1) == ":") {    break;   }  }  return(obj.substring(0, i)); } function s(obj) {  for (var i = 0; i &lt; obj.length; i++) {   if (obj.substring(i, i + 1) == ":") {    break;   }  }  return(obj.substring(i + 1, obj.length)); } function dis(mins,secs) {  var disp;  if (mins &lt;= 9) {   disp = " 0";  }  else {   disp = " ";  }  disp+= mins + ":";  if (secs &lt;= 9) {   disp+= "0" + secs;  }  else {   disp+= secs;  }  return(disp); } function timeIsUp() {  mins = 0;  secs = 1; } function redo() {  if (count == max) return;  secs--;  if (secs == -1) {   secs = 59;   mins--;  }  document.cd.disp.value = dis(mins,secs);  if ((mins == 0) &amp;&amp; (secs == 0)) {   window.alert("Time's up! Let's see how you did.");   showMissed();  }  else {   cd = setTimeout("redo()",1000);  } } function init() {  cd(); } window.onload = init; var count=0; var found=new Array(); var hxcd=new Array("\x54\x68\x65\x20\x4C\x69\x6B\x65\x73\x20\x6F\x66\x20\x55\x73","\x4A\x6F\x73\x65\x70\x68\x20\x61\x6E\x64\x20\x74\x68\x65\x20\x41\x6D\x61\x7A\x69\x6E\x67\x20\x54\x65\x63\x68\x6E\x69\x63\x6F\x6C\x6F\x72\x20\x44\x72\x65\x61\x6D\x63\x6F\x61\x74","\x4A\x65\x73\x75\x73\x20\x43\x68\x72\x69\x73\x74\x20\x53\x75\x70\x65\x72\x73\x74\x61\x72","\x4A\x65\x65\x76\x65\x73","\x45\x76\x69\x74\x61","\x54\x65\x6C\x6C\x20\x4D\x65\x20\x6F\x6E\x20\x61\x20\x53\x75\x6E\x64\x61\x79","\x43\x61\x74\x73","\x53\x6F\x6E\x67\x20\x61\x6E\x64\x20\x44\x61\x6E\x63\x65","\x53\x74\x61\x72\x6C\x69\x67\x68\x74\x20\x45\x78\x70\x72\x65\x73\x73","\x54\x68\x65\x20\x50\x68\x61\x6E\x74\x6F\x6D\x20\x6F\x66\x20\x74\x68\x65\x20\x4F\x70\x65\x72\x61","\x41\x73\x70\x65\x63\x74\x73\x20\x6F\x66\x20\x4C\x6F\x76\x65","\x53\x75\x6E\x73\x65\x74\x20\x42\x6F\x75\x6C\x65\x76\x61\x72\x64","\x57\x68\x69\x73\x74\x6C\x65\x20\x44\x6F\x77\x6E\x20\x74\x68\x65\x20\x57\x69\x6E\x64","\x54\x68\x65\x20\x42\x65\x61\x75\x74\x69\x66\x75\x6C\x20\x47\x61\x6D\x65","\x42\x6F\x6D\x62\x61\x79\x20\x44\x72\x65\x61\x6D\x73","\x54\x68\x65\x20\x57\x6F\x6D\x61\x6E\x20\x69\x6E\x20\x57\x68\x69\x74\x65","\x54\x68\x65\x20\x53\x6F\x75\x6E\x64\x20\x6F\x66\x20\x4D\x75\x73\x69\x63"); function checkAnsrs(fld) {  if (begclo==0) {   begclo = 1;   document.getElementById("remain").innerHTML="&lt;b&gt;17 shows to go&lt;/b&gt;";   redo();  }  if (fld.value.length &gt; 1) {   if (fld.value.toLowerCase()=="\x6C\x69\x6B\x65\x73\x20\x6F\x66\x20\x75\x73") {    fld.value="\x54\x68\x65\x20\x4C\x69\x6B\x65\x73\x20\x6F\x66\x20\x55\x73";   }   if (fld.value.toLowerCase()=="\x70\x68\x61\x6E\x74\x6F\x6D\x20\x6F\x66\x20\x74\x68\x65\x20\x6F\x70\x65\x72\x61") {    fld.value="\x54\x68\x65\x20\x50\x68\x61\x6E\x74\x6F\x6D\x20\x6F\x66\x20\x74\x68\x65\x20\x4F\x70\x65\x72\x61";   }   if (fld.value.toLowerCase()=="\x73\x75\x6E\x73\x65\x74\x20\x62\x6C\x76\x64") {    fld.value="\x53\x75\x6E\x73\x65\x74\x20\x42\x6F\x75\x6C\x65\x76\x61\x72\x64";   }   if (fld.value.toLowerCase()=="\x62\x65\x61\x75\x74\x69\x66\x75\x6C\x20\x67\x61\x6D\x65") {    fld.value="\x54\x68\x65\x20\x42\x65\x61\x75\x74\x69\x66\x75\x6C\x20\x47\x61\x6D\x65";   }   if (fld.value.toLowerCase()=="\x77\x6F\x6D\x61\x6E\x20\x69\x6E\x20\x77\x68\x69\x74\x65") {    fld.value="\x54\x68\x65\x20\x57\x6F\x6D\x61\x6E\x20\x69\x6E\x20\x57\x68\x69\x74\x65";   }   if (fld.value.toLowerCase()=="\x73\x6F\x75\x6E\x64\x20\x6F\x66\x20\x6D\x75\x73\x69\x63") {    fld.value="\x54\x68\x65\x20\x53\x6F\x75\x6E\x64\x20\x6F\x66\x20\x4D\x75\x73\x69\x63";   }   for (var i=0;i&lt;hxcd.length;i++) {    if (fld.value.toLowerCase()==hxcd[i].toLowerCase()) {     found[found.length]=hxcd[i];     found.sort();     hxcd.splice(i,1);     fld.value="";     count++;     msg="";     for (var x=0;x&lt;found.length;x++) {      msg+=found[x]+", ";      if ((x+1)%5 == 0) msg+="&lt;br&gt;";     }     document.getElementById("found").innerHTML=msg;     remainmsg=" shows to go";     if (count == (max-1)) remainmsg=" show to go";     document.getElementById("remain").innerHTML="&lt;b&gt;"+(max-count)+remainmsg+"&lt;/b&gt;";     if (count == max) {      $('html,body').scrollTop(0);           $("#allans").overlay({                 fixed: false,                left: 0,                 top: 0                });                $("#allans").data("overlay").load();     }    }   }  }  else {   if (fld.value == " ") fld.value="";  } } function showMissed() {  msg="";  msg+='&lt;br&gt;&lt;FONT COLOR=RED&gt;&lt;span style="font-weight:bold;"&gt;You forgot: &lt;/span&gt;';  for (x=0;x&lt;hxcd.length;x++) {   msg+=hxcd[x]+", ";   if ((x+1)%5 == 0) msg+="&lt;br&gt;";  }  msg+='&lt;/span&gt;&lt;br&gt;';  document.getElementById("missing").innerHTML=msg; }&lt;/script&gt;How many live stage shows produced by Andrew Lloyd Webber can you name in 10 minutes? After the 10 minutes are up, the correct answers will appear below so you can see which ones you've missed.&lt;br /&gt;&lt;br /&gt;&lt;span id="fullpost"&gt;To stop this quiz before the time is up, click on the &lt;span style="font-style:italic;"&gt;Give Up?&lt;/span&gt; button. To try this quiz again, simply reload the page. If you enjoy timed quizzes like this, you can find links to hundreds of them at &lt;a href="http://headinside.blogspot.com/2008/03/how-many-xs-can-you-name-in-y-minutes.html"&gt;How Many Xs Can You Name In Y Minutes?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;(This quiz was created with the aid of the &lt;a href="http://members.cox.net/beagenius/timedquizgenerator.html"&gt;Timed Quiz Generator&lt;/a&gt;)&lt;br /&gt;&lt;/span&gt;&lt;form name="cd"&gt;&lt;span id="fullpost"&gt;&lt;input id="txt" readonly="true" type="text" value="10:00" name="disp"&gt;&lt;/span&gt;&lt;/form&gt;&lt;span id="fullpost"&gt;&lt;div id="remain" style="text-align:center;"&gt;&lt;span style="font-weight:bold;"&gt;To start the clock, begin typing in the box below.&lt;/span&gt;&lt;/div&gt;&lt;input type="text" onKeyUp="checkAnsrs(this);" name="input" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;input type="button" value="Give up?" onclick="timeIsUp();" name="giveup" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;br /&gt;&lt;div style="text-align:center;"&gt;&lt;span style="font-weight:bold;"&gt;Named so far:&lt;/span&gt;&lt;/div&gt;&lt;div id="found" style="text-align:center;"&gt;None&lt;/div&gt;&amp;nbsp;&lt;br /&gt;&lt;div id="missing" style="text-align:center;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div id="bonus" style="text-align:center;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div id="allans" class="overlay"&gt;&lt;div&gt;&lt;h2&gt;&lt;span style="font-weight:bold;"&gt;Congratulations!&lt;/span&gt;&lt;/h2&gt;You did it!&lt;br /&gt;&lt;br /&gt;&lt;button class="close gmsButton" style="display:block;margin-left:auto;margin-right:auto;"&gt; Close &lt;/button&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800835365312821409-3219738747663649342?l=gmmentalgym.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmmentalgym.blogspot.com/feeds/3219738747663649342/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/how-many-andrew-lloyd-webber-stage.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/3219738747663649342'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/3219738747663649342'/><link rel='alternate' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/how-many-andrew-lloyd-webber-stage.html' title='How Many Andrew Lloyd Webber Stage Productions Can You Name In 10 Minutes?'/><author><name>Pi Guy</name><uri>http://www.blogger.com/profile/09760001560356969164</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://lh3.ggpht.com/_zQQCfNroX3w/TMDBGryIxfI/AAAAAAAAASw/_ygdD3eWHCU/s0/gmsc.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800835365312821409.post-5584299811160139668</id><published>2010-11-01T12:00:00.000-07:00</published><updated>2010-11-14T20:58:13.319-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='workout'/><category scheme='http://www.blogger.com/atom/ns#' term='timed quizzes'/><title type='text'>How Many Three-Letter Body Parts Can You Name In 2 Minutes?</title><content type='html'>&lt;style type='text/css'&gt;#txt {  display:block;  border:none;  width:530px;  margin:0;  padding:0;  text-align:center;  font-family:verdana;  font-size:50pt;  font-weight:bold;  background-color:#F2F2F2;}.overlay { width:300px;}.overlay h2 { color:#fff; background-color:#2ea114; margin-left:-8px; margin-top:-8px; margin-right:-8px; padding-left:8px; padding-top:8px; padding-bottom:8px;}&lt;/style&gt;&lt;script type='text/javascript'&gt;var mins;var secs;var max;var begclo;function cd() { begclo = 0; //boolean variable for beginning the clock upon typing  mins = 1 * m("2"); // change minutes here  secs = 0 + s(":01"); // change seconds here (always add an additional second to your total)  max = 10; //change total number of items in list here}function m(obj) {  for(var i = 0; i &lt; obj.length; i++) {    if(obj.substring(i, i + 1) == ":")    break;  }  return(obj.substring(0, i));}function s(obj) {  for(var i = 0; i &lt; obj.length; i++) {    if(obj.substring(i, i + 1) == ":")    break;  }  return(obj.substring(i + 1, obj.length));}function dis(mins,secs) {  var disp;  if(mins &lt;= 9) {    disp = " 0";  } else {    disp = " ";  }  disp += mins + ":";  if(secs &lt;= 9) {    disp += "0" + secs;  } else {    disp += secs;  }  return(disp);}function timeIsUp(){  mins = 0; secs = 1;}function redo() {  if(count==max)return;   secs--;  if(secs == -1) {    secs = 59;    mins--;  }  document.cd.disp.value = dis(mins,secs); // setup additional displays here.  if((mins == 0) &amp;&amp; (secs == 0)) {    window.alert("Time's up! Let's see how you did.");     showMissed();   } else {   cd = setTimeout("redo()",1000);  }}function init() {  cd();}window.onload = init;var count=0;var found=new Array();var states=new Array("\x41\x72\x6d","\x4c\x65\x67","\x45\x61\x72","\x45\x79\x65","\x4c\x69\x70","\x47\x75\x6d","\x52\x69\x62","\x4a\x61\x77","\x54\x6f\x65","\x48\x69\x70");function checkStates(fld){if (begclo==0) { begclo = 1; //If this is the first keystroke, start the clock document.getElementById("remain").innerHTML="&lt;b&gt;10 body parts to go&lt;/b&gt;"; redo();}if(fld.value.length&gt;2){for(var i=0;i&lt;states.length;i++){   if(fld.value.toLowerCase()==states[i].toLowerCase()){    found[found.length]=states[i];    found.sort();    states.splice(i,1);    fld.value="";    count++;    var msg="";    for(var x=0;x&lt;found.length;x++){      msg+=found[x]+", ";      if((x+1)%5==0)msg+="&lt;br&gt;";    }    document.getElementById("found").innerHTML=msg;    var remainmsg=" body parts to go";    if(count==(max-1))remainmsg=" body part to go";    document.getElementById("remain").innerHTML="&lt;b&gt;"+(max-count)+remainmsg+"&lt;/b&gt;";    if(count==max){        $('html,body').scrollTop(0);        $("#allans").overlay({         fixed: false,         left: 0,         top: 0        });        $("#allans").data("overlay").load();     }  }  }  }else{  if(fld.value==" ")fld.value="";  }  if (fld.value.toLowerCase()=="\x65\x67\x67") {    document.getElementById("bonus").innerHTML="OK, two bonus points for thinking of '\x45\x67\x67'.";    fld.value="";  } }function showMissed(){    var msg="";    msg+='&lt;br&gt;&lt;FONT COLOR=RED&gt;&lt;span style="font-weight:bold;"&gt;You forgot: &lt;/span&gt;';    for(var x=0;x&lt;states.length;x++){      msg+=states[x]+", ";      if((x+1)%5==0)msg+="&lt;br&gt;";    }    msg+='&lt;/span&gt;&lt;br&gt;';    document.getElementById("missing").innerHTML=msg; }&lt;/script&gt;There are 10 body parts whose common names are spelled with only three letters. How many of them can you name in 2 minutes? No slang is allowed. After 2 minutes, the correct answers will appear below so you can see which ones you've missed.&lt;br /&gt;&lt;br /&gt;&lt;span id="fullpost"&gt;To stop this quiz before the time is up, click on the &lt;span style="font-style:italic;"&gt;Give Up?&lt;/span&gt; button. To try this quiz again, simply reload the page. If you enjoy timed quizzes like this, you can find links to hundreds of them at &lt;a href="http://headinside.blogspot.com/2008/03/how-many-xs-can-you-name-in-y-minutes.html"&gt;How Many Xs Can You Name In Y Minutes?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;(Original script by Erik Wannebo of &lt;a href="http://www.ironicsans.com/"&gt;www.ironicsans.com&lt;/a&gt;. This version by Scott Cram.)&lt;br /&gt;&lt;/span&gt;&lt;form name="cd"&gt;&lt;span id="fullpost"&gt;&lt;input id="txt" readonly="true" type="text" value="02:00" name="disp"&gt;&lt;/span&gt;&lt;/form&gt;&lt;span id="fullpost"&gt;&lt;div id="remain" style="text-align:center;"&gt;&lt;span style="font-weight:bold;"&gt;To start the clock, begin typing in the box below.&lt;/span&gt;&lt;/div&gt;&lt;input type="text" onKeyUp="checkStates(this);" name="input" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;input type="button" value="Give up?" onclick="timeIsUp()" name="giveup" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;br /&gt;&lt;div style="text-align:center;"&gt;&lt;span style="font-weight:bold;"&gt;Named so far:&lt;/span&gt;&lt;/div&gt;&lt;div id="found" style="text-align:center;"&gt;None&lt;/div&gt;&amp;nbsp;&lt;br /&gt;&lt;div id="missing" style="text-align:center;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div id="bonus" style="text-align:center;"&gt;&amp;nbsp;&lt;/div&gt;&lt;div id="allans" class="overlay"&gt;&lt;div&gt;&lt;h2&gt;&lt;span style="font-weight:bold;"&gt;Congratulations!&lt;/span&gt;&lt;/h2&gt;You did it!&lt;br /&gt;&lt;br /&gt;&lt;button class="close gmsButton" style="display:block;margin-left:auto;margin-right:auto;"&gt; Close &lt;/button&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2800835365312821409-5584299811160139668?l=gmmentalgym.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmmentalgym.blogspot.com/feeds/5584299811160139668/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/how-many-three-letter-body-parts-can.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/5584299811160139668'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2800835365312821409/posts/default/5584299811160139668'/><link rel='alternate' type='text/html' href='http://gmmentalgym.blogspot.com/2010/11/how-many-three-letter-body-parts-can.html' title='How Many Three-Letter Body Parts Can You Name In 2 Minutes?'/><author><name>Pi Guy</name><uri>http://www.blogger.com/profile/09760001560356969164</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='http://lh3.ggpht.com/_zQQCfNroX3w/TMDBGryIxfI/AAAAAAAAASw/_ygdD3eWHCU/s0/gmsc.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2800835365
