var thisUrl = window.location.href;
document.write('<ul id="leftMenu">' +
'<li>' +
'<a href="/how-to-play/introduction.html" class="section">+ How to Play</a>' +
	'<ul class="subMenu section">' +
		'<li>' +
			'<a href="/how-to-play/introduction.html" class="'); 
			if(strstr(thisUrl,'/how-to-play/introduction.html'))
				document.write('current');
			else
				document.write('link');
			document.write('">- Introduction</a>' +
		'</li>' +
		'<li>' +
			'<a href="/how-to-play/basic-rules.html" class="');
			if(strstr(thisUrl,'/how-to-play/basic-rules.html'))
				document.write('current');
			else
				document.write('link');
			document.write('">- Basic Rules</a>' +
		'</li>' +
		'<li>' +
			'<a href="/how-to-play/gin-rummy/demo.html" class="link">+ Gin Rummy</a>' +
				'<ul class="subMenu ');
				if(strstr(thisUrl,'/how-to-play/gin-rummy/'))
					document.write('section');
				else
					document.write('link');
				document.write('">' +
					'<li><a href="/how-to-play/gin-rummy/demo.html" class="');
					if(strstr(thisUrl,'/how-to-play/gin-rummy/demo.html'))
						document.write('current');
					else
						document.write('link');
					document.write('">- Demo</a>' +
					'</li>' +
					'<li><a href="/how-to-play/gin-rummy/game-preview.html" class="');
					if(strstr(thisUrl,'/how-to-play/gin-rummy/game-preview.html'))
						document.write('current');
					else
						document.write('link');
					document.write('">- Game Preview</a>' +
					'</li>' +
					'<li><a href="/how-to-play/gin-rummy/rules.html" class="');
					if(strstr(thisUrl,'/how-to-play/gin-rummy/rules.html'))
						document.write('current');
					else
						document.write('link');
					document.write('">- Rules</a>' +
					'</li>' +
				'</ul>' +
		'</li>' +
		'<li>' +
			'<a href="/how-to-play/oklahoma/demo.html" class="link">+ Oklahoma Gin</a>' +
				'<ul class="subMenu ');
				if(strstr(thisUrl,'/how-to-play/oklahoma/'))
					document.write('section');
				else
					document.write('link');
				document.write('">' +
					'<li><a href="/how-to-play/oklahoma/demo.html" class="');
					if(strstr(thisUrl,'/how-to-play/oklahoma/demo.html'))
						document.write('current');
					else
						document.write('link');
					document.write('">- Demo</a>' +
					'</li>' +
					'<li><a href="/how-to-play/oklahoma/game-preview.html" class="');
					if(strstr(thisUrl,'/how-to-play/oklahoma/game-preview.html'))
						document.write('current');
					else
						document.write('link');
					document.write('">- Game Preview</a>' +
					'</li>' +
					'<li><a href="/how-to-play/oklahoma/rules.html" class="');
					if(strstr(thisUrl,'/how-to-play/oklahoma/rules.html'))
						document.write('current');
					else
						document.write('link');
					document.write('">- Rules</a>' +
					'</li>' +
				'</ul>' +
		'</li>' +
		'<li>' +
			'<a href="/how-to-play/kalooki51/demo.html" class="link">+ Kalooki 51</a>' +
				'<ul class="subMenu ');
				if(strstr(thisUrl,'/how-to-play/kalooki51/'))
					document.write('section');
				else
					document.write('link');
				document.write('">' +
					'<li><a href="/how-to-play/kalooki51/demo.html" class="');
					if(strstr(thisUrl,'/how-to-play/kalooki51/demo.html'))
						document.write('current');
					else
						document.write('link');
					document.write('">- Demo</a>' +
					'</li>' +
					'<li><a href="/how-to-play/kalooki51/game-preview.html" class="');
					if(strstr(thisUrl,'/how-to-play/kalooki51/game-preview.html'))
						document.write('current');
					else
						document.write('link');
					document.write('">- Game Preview</a>' +
					'</li>' +
					'<li><a href="/how-to-play/kalooki51/rules.html" class="');
					if(strstr(thisUrl,'/how-to-play/kalooki51/rules.html'))
						document.write('current');
					else
						document.write('link');
					document.write('">- Rules</a>' +
					'</li>' +
				'</ul>' +
		'</li>' +
		'<li>' +
			'<a href="/how-to-play/kalooki40/demo.html" class="link">+ Kalooki 40</a>' +
				'<ul class="subMenu ');
				if(strstr(thisUrl,'/how-to-play/kalooki40/'))
					document.write('section');
				else
					document.write('link');
				document.write('">' +
					'<li><a href="/how-to-play/kalooki40/demo.html" class="');
					if(strstr(thisUrl,'/how-to-play/kalooki40/demo.html'))
						document.write('current');
					else
						document.write('link');
					document.write('">- Demo</a>' +
					'</li>' +
					'<li><a href="/how-to-play/kalooki40/game-preview.html" class="');
					if(strstr(thisUrl,'/how-to-play/kalooki40/game-preview.html'))
						document.write('current');
					else
						document.write('link');
					document.write('">- Game Preview</a>' +
					'</li>' +
					'<li><a href="/how-to-play/kalooki40/rules.html" class="');
					if(strstr(thisUrl,'/how-to-play/kalooki40/rules.html'))
						document.write('current');
					else
						document.write('link');
					document.write('">- Rules</a>' +
					'</li>' +
				'</ul>' +
		'</li>' +
		'<li>' +
			'<a href="/how-to-play/traditional-rummy/demo.html" class="link">+ Traditional Rummy</a>' +
				'<ul class="subMenu ');
				if(strstr(thisUrl,'/how-to-play/traditional-rummy/'))
					document.write('section');
				else
					document.write('link');
				document.write('">' +
					'<li><a href="/how-to-play/traditional-rummy/demo.html" class="');
					if(strstr(thisUrl,'/how-to-play/traditional-rummy/demo.html'))
						document.write('current');
					else
						document.write('link');
					document.write('">- Demo</a>' +
					'</li>' +
					'<li><a href="/how-to-play/traditional-rummy/game-preview.html" class="');
					if(strstr(thisUrl,'/how-to-play/traditional-rummy/game-preview.html'))
						document.write('current');
					else
						document.write('link');
					document.write('">- Game Preview</a>' +
					'</li>' +
					'<li><a href="/how-to-play/traditional-rummy/rules.html" class="');
					if(strstr(thisUrl,'/how-to-play/traditional-rummy/rules.html'))
						document.write('current');
					else
						document.write('link');
					document.write('">- Rules</a>' +
					'</li>' +
				'</ul>' +
		'</li>' +
		'<li>' +
			'<a href="/how-to-play/rummy500/demo.html" class="link">+ Rummy 500</a>' +
				'<ul class="subMenu ');
				if(strstr(thisUrl,'/how-to-play/rummy500/'))
					document.write('section');
				else
					document.write('link');
				document.write('">' +
					'<li><a href="/how-to-play/rummy500/demo.html" class="');
					if(strstr(thisUrl,'/how-to-play/rummy500/demo.html'))
						document.write('current');
					else
						document.write('link');
					document.write('">- Demo</a>' +
					'</li>' +
					'<li><a href="/how-to-play/rummy500/game-preview.html" class="');
					if(strstr(thisUrl,'/how-to-play/rummy500/game-preview.html'))
						document.write('current');
					else
						document.write('link');
					document.write('">- Game Preview</a>' +
					'</li>' +
					'<li><a href="/how-to-play/rummy500/rules.html" class="');
					if(strstr(thisUrl,'/how-to-play/rummy500/rules.html'))
						document.write('current');
					else
						document.write('link');
					document.write('">- Rules</a>' +
					'</li>' +
				'</ul>' +
		'</li>' +
	'</ul>' +
'</li>' +
'</ul>');

document.write('<div id="floatingDownload">' +
	'<a href="/download/" onclick="startDownload();" id="download"><img src="/images/download.gif" alt="Download Now" /></a>' +
'</div>');
JSFX_FloatDiv("floatingDownload", 0,10).floatIt();