if (version=="yes") {
    piece=""
    document.write('<form>')
    document.write('<table id="puzzle" cellspacing="0" cellpadding="0" border="0"><tbody>')
    for ( y=0; y<puzzle_size_y; y++ ) {
	document.write('<tr>')
	for ( x=0; x<puzzle_size_x; x++ ) {
            piece="/puzzle/piece"+x+y+".jpg"
	    if ( version=="yes" ) {
		document.write('<td style="padding:0" height="75" width="75"><a href="#puzzle" onClick="move(',x,',',y,',false);"><img alt="(',x,',',y,')" src="',piece,'" name="at',x,y,'" width=',square_size,' height=',square_size,' border="0"></a></td>')
            } else {
		document.write('<td><img alt="(',x,',',y,')" src="',piece,'" width=',square_size,' height=',square_size,' border="0"></td>')
            }
        }
    }
    document.write('</tbody></table>')
    document.write('<input style="padding-left: 0.5em; padding-right: 0.5em; font-size: 0.8em; font-weight: bold; border-top: 1px solid rgb(0,0,0); border-bottom: 1px solid rgb(0,0,0); border-left: 0px; border-right: 1px solid rgb(255,255,255); background: url(/images/nav_main_bg.gif); float:left" type="button" value="Neu spielen" onClick="shuffle(',50,');">  ')
    document.write('<input style="padding-left: 0.5em; padding-right: 0.5em; font-size: 0.8em; font-weight: bold; border-top: 1px solid rgb(0,0,0); border-bottom: 1px solid rgb(0,0,0); border-left: 0px; border-right: 1px solid rgb(255,255,255); background: url(/images/nav_main_bg.gif); float:left" type="button" value="Zurücksetzen" onClick="location.reload()">')
    document.write('<a style="color:black; text-decoration:none; padding-left: 0.5em; padding-right: 0.5em; padding-bottom:1px; font-size: 0.8em; font-weight: bold; border-top: 1px solid rgb(0,0,0); border-bottom: 1px solid rgb(0,0,0); border-left: 0px; border-right: 1px solid rgb(255,255,255); background: url(/images/nav_main_bg.gif); float:left" href="i5x4.html" title="Einfacher!">5x4</a>')
    document.write('<a style="color:black; text-decoration:none; padding-left: 0.5em; padding-right: 0.5em; padding-bottom:1px; font-size: 0.8em; font-weight: bold; border-top: 1px solid rgb(0,0,0); border-bottom: 1px solid rgb(0,0,0); border-left: 0px; border-right: 1px solid rgb(255,255,255); background: url(/images/nav_main_bg.gif); float:left" href="i3x3.html" title="Noch einfacher!">3x3</a>')
    document.write('</form>')
    document.write('</form>')
} else {
    document.write('<p>')
    document.write("Das Spiel benötigt JavaScript 1.1, um ordentlich zu funktionieren.")
    document.write('<br /><form><input type="button" value="Beenden" onClick="history.go(-1)"></form>')
    document.write('</p>')
}

