// *** START - The Hanged Man
document.write("<SPAN ID=\"Hangman1\" STYLE=\"top: 48; left: 482; display:none; WIDTH: 93; HEIGHT: 84; position:absolute\"><IMG SRC=\"Head.gif\" WIDTH=93 HEIGHT=84 BORDER=0></SPAN>")

document.all('Hangman1').style.zIndex = 120;

document.write("<SPAN ID=\"Hangman12\" STYLE=\"top: 48; left: 482; display:none; WIDTH: 93; HEIGHT: 84; position:absolute\"><IMG SRC=\"HangHead.gif\" WIDTH=93 HEIGHT=84 BORDER=0></SPAN>")

document.all('Hangman12').style.zIndex = 220;


document.write("<SPAN ID=\"Hangman2\" STYLE=\"top: 120; left: 470; display:none; WIDTH: 116; HEIGHT: 160; position:absolute\"><IMG SRC=\"Body.gif\" WIDTH=116 HEIGHT=160 BORDER=0></SPAN>")

document.all('Hangman2').style.zIndex = 115;


document.write("<SPAN ID=\"Hangman3\" STYLE=\"top: 137; left: 573; display:none; WIDTH: 70; HEIGHT: 95; position:absolute\"><IMG SRC=\"LeftArm.jpg\" WIDTH=70 HEIGHT=95 BORDER=0></SPAN>")

document.all('Hangman3').style.zIndex = 110;


document.write("<SPAN ID=\"Hangman4\" STYLE=\"top: 137; left: 413; display:none; WIDTH: 70; HEIGHT: 95; position:absolute\"><IMG SRC=\"RightArm.jpg\" WIDTH=70 HEIGHT=95 BORDER=0></SPAN>")

document.all('Hangman4').style.zIndex = 110;



document.write("<SPAN ID=\"Hangman5\" STYLE=\"top: 222; left: 565; display:none; WIDTH: 43; HEIGHT: 35; position:absolute\"><IMG SRC=\"LeftHand.gif\" WIDTH=43 HEIGHT=35 BORDER=0></SPAN>")

document.all('Hangman5').style.zIndex = 120;


document.write("<SPAN ID=\"Hangman6\" STYLE=\"top: 223; left: 448; display:none; WIDTH: 43; HEIGHT: 35; position:absolute\"><IMG SRC=\"RightHand.gif\" WIDTH=43 HEIGHT=35 BORDER=0></SPAN>")

document.all('Hangman6').style.zIndex = 120;


document.write("<SPAN ID=\"Hangman9\" STYLE=\"top: 382; left: 534; display:none; WIDTH: 81; HEIGHT: 28; position:absolute\"><IMG SRC=\"LeftFoot.gif\" WIDTH=81 HEIGHT=28 BORDER=0></SPAN>")

document.all('Hangman9').style.zIndex = 105;


document.write("<SPAN ID=\"Hangman10\" STYLE=\"top: 382; left: 444; display:none; WIDTH: 81; HEIGHT: 28; position:absolute\"><IMG SRC=\"RightFoot.gif\" WIDTH=81 HEIGHT=28 BORDER=0></SPAN>")

document.all('Hangman10').style.zIndex = 105;


document.write("<SPAN ID=\"Hangman7\" STYLE=\"top: 276; left: 534; display:none; WIDTH: 47; HEIGHT: 108; position:absolute\"><IMG SRC=\"LeftLeg.gif\" WIDTH=47 HEIGHT=108 BORDER=0></SPAN>")

document.all('Hangman7').style.zIndex = 101;


document.write("<SPAN ID=\"Hangman8\" STYLE=\"top: 275; left: 474; display:none; WIDTH: 47; HEIGHT: 108; position:absolute\"><IMG SRC=\"RightLeg.gif\" WIDTH=47 HEIGHT=108 BORDER=0></SPAN>")

document.all('Hangman8').style.zIndex = 101;


document.write("<SPAN ID=\"Hangman11\" STYLE=\"top: 10; left: 500; display:none; WIDTH: 106; HEIGHT: 137; position:absolute\"><IMG SRC=\"Rope.gif\" WIDTH=106 HEIGHT=137 BORDER=0></SPAN>")

document.all('Hangman11').style.zIndex = 200;


//document.write("<SPAN ID=\"totalbody\" STYLE=\"top: 45; left: 400; display:true; WIDTH: 244; HEIGHT: 370; position:absolute\"><IMG SRC=\"TotalBody.jpg\" WIDTH=244 HEIGHT=370 BORDER=0></SPAN>")

//document.all('totalbody').style.zIndex = 1;
// *** END - The Hanged Man




// *** START - Gallows Images
document.write("<SPAN ID=\"table1\" STYLE=\"top: 410; left: 447; display:true; WIDTH:253px; HEIGHT:10px; position:absolute; background-color: #006600;\"><TABLE></TABLE></SPAN>");

document.all('table1').style.zIndex = 110;

document.write("<SPAN ID=\"table2\" STYLE=\"top: 10; left: 665; display:true; WIDTH:27px; HEIGHT:400px; position:absolute; background-color: #660000;\"><TABLE></TABLE></SPAN>");

document.all('table2').style.zIndex = 100;

document.write("<SPAN ID=\"table3\" STYLE=\"top: 10; left: 495; display:true; WIDTH:175px; HEIGHT:10px; position:absolute; background-color: #660000;\"><TABLE></TABLE></SPAN>");

document.all('table3').style.zIndex = 100;
// *** END - Gallows Images


for (i=1;i<13;i++){

document.write("<SPAN ID=SlashTable"+i+" STYLE=\"top: 410; left: "+lft+"; display:none; WIDTH:30px; HEIGHT:3px; position:absolute; background-color: #666600;\"><TABLE></TABLE></SPAN>");

	lft+=parseFloat(35);	
										}
// *** Write Slashes or Underscores for Letters in Word to Guess


for (i=1;i<13;i++){

lft-=parseFloat(35);

for (ix=1;ix<28;ix++){

NextLetter=Alphabet.charAt(Alphabet.length -ix);
if(ix==27){NextLetter="";}
document.write("<SPAN ID=LetterTable"+i+NextLetter+" STYLE=\"top: 374; left: "+lft+"; display:none; WIDTH:30px; font-family : Verdana, Arial, Times New Roman, monospace; font-size: 35px; color: #9933cc; position:absolute\"><TABLE ALIGN=center>"+NextLetter.toUpperCase()+"</TABLE></SPAN>");}

																	}
// **** Write all Letter of Alphabet to the Slots allocated









// *** START - Underslashes for Letters in Word
function SlashMarks(){
lft = parseFloat(50);

for (i=1;i<(TotalSlashes+1);i++){

document.all("SlashTable"+i).style.display="";

	lft+=parseFloat(35);				
									}
									
		for (i=(TotalSlashes+1);i>0;i--){	
	
NextLetter=YourWord.charAt(YourWord.length-parseFloat(i));
NextLetter=NextLetter.toUpperCase();
slblk=parseFloat((TotalSlashes+1)-i);
if(NextLetter==" "){document.all("SlashTable"+slblk).style.display="none";}			}					
									
											}
// *** END - Underslashes for Letters in Word
function SlashMarks2(){
lft = parseFloat(50);

for (i=1;i<(TotalSlashes+1);i++){

document.all("SlashTable"+i).style.display="none";

	lft+=parseFloat(35);				
									}
											}

SlashMarks();



// *** START - Letters in Word Displayed over Underslashes
function WordLetters(){
for (i=1;i<(TotalSlashes+1);i++){

lft-=parseFloat(35);

revL = 12-(YourWord.length-i);
//(TotalSlashes+1))-parseFloat(i)
NextLetter=YourWord.charAt(YourWord.length -i);
if(NextLetter==" "){NextLetter=""}
document.all("LetterTable"+revL+NextLetter).style.display="none";



	
	//  alert(''+revL+'');
    // alert(''+NextLetter+'');
									}
												}
// *** END - Letters in Word Displayed over Underslashes

WordLetters();



 document.write("<SPAN ID=Restart STYLE=\"top: 165; left: 42; display:none; width: 105; height: 53; position:absolute\" onMouseDown='ResTART()'><IMG SRC=\"ReStarT.GIF\" WIDTH=\"105\" HEIGHT=\"53\" ALT=\"Restart A New GAME\" BORDER=\"0\"></SPAN>");
document.all("Restart").style.zIndex="1000";


// *** Restart Button




 document.write("<DIV title=\"Back to ML's Fun Stuff\" ID=Home STYLE=\"top: 0; left: 0; visibility:visible; width: 80; height: 33; position:absolute; cursor:pointer;cursor:hand\" onMouseDown='location.href(\"http://mlski.net/fun.html\")'><a href=\"http://mlski.net/fun.html\" TARGET=\"_top\"><IMG SRC=\"homepage1.GIF\"  WIDTH=\"80\" HEIGHT=\"33\" ALT=\"Back to ML's Fun Stuff\" BORDER=\"0\"></a></DIV>");


// *** Home Button


 document.write("<SPAN ID=Winner STYLE=\"top: 295; left: 42; display:none; font-family : Times New Roman,Verdana, Arial, monospace; font-size: 50px; color: #009933; text-decoration : none; position:absolute\">YOU WIN !!!</SPAN>");
// *** You Win 


 document.write("<SPAN ID=Loser STYLE=\"top: 295; left: 42; display:none; font-family : Times New Roman,Verdana, Arial, monospace; font-size: 50px; color: #FF3300; text-decoration : none; position:absolute\">YOU LOSE !!!</SPAN>");
// *** You Lose



document.write("<SPAN ID=Title STYLE=\"top: 0; left: 118; display:true; font-family : Times New Roman,Verdana, Arial, monospace; font-size: 50px; color: #0066FF; text-decoration : underline; position:absolute\">HANGMAN</SPAN>");
// *** Title Word

for (i=0;i<SetNumAmnt+1;i++){
document.write("<SPAN ID=Clue"+i+" STYLE=\"top: 60; left: 83; display:none; font-family : monospace, veranda, arial, Times New Roman; font-size: 20px; color: #ff0066; position:absolute; border : 4px double Black; background-color : #F5F5DC; width: 330px; font-weight: bold; text-align: center\"><TABLE>CLUE: "+eval("SectNum"+[i]+"[10]")+"</TABLE></SPAN>");
// *** Clue Words
}

document.all("Clue"+SectionNum).style.display="";

// *** START - Letter Table for Choosing
document.write("<SPAN ID=TpLtTable STYLE=\"top: 130; left: 10; display:true; position:absolute\"><TABLE cellspacing=10></SPAN>");

document.all('TpLtTable').style.zIndex = 500;

for (i=65;i<91;i++){

if (i==65 || i==74 || i==83){document.write("<SPAN ID=tTrW"+i+" STYLE=\"display:true; position:relative\"><tr></SPAN>");}

document.write("<SPAN STYLE=\"position:relative\"><TD ID=lttrCh"+i+" align=center  title=&#"+i+"; STYLE=\"display:true; color: #9933CC; cursor: hand\" onMouseDown='Ask=parseFloat("+i+");LetterChoice()'><FONT STYLE=\"font-family: Arial,Veranda,'Times New Roman',monospace; font-size: 32px\">&#"+i+";</FONT></TD></SPAN>");





if (i==73 || i==82 || i==90){document.write("<SPAN ID=tBrW"+i+" STYLE=\"display:true; position:relative\"></tr></SPAN>");}

										}

document.write("<SPAN ID=BtLtTable STYLE=\"display:true; position:absolute\"></TABLE></SPAN>");
// *** END - Letter Table for Choosing
document.all('BtLtTable').style.zIndex = 500;

document.write("</body>");

document.close();
