// *** START - The Hanged Man
document.write("<DIV ID=\"Hangman1\" STYLE=\"top: 298; left: 482; visibility:visible; WIDTH: 93; HEIGHT: 84; position:absolute\"><IMG SRC=\"Hd-Ptch.gif\" WIDTH=93 HEIGHT=84 BORDER=0></DIV>");

domlay('Hangman1','0','','','','120');


document.write("<DIV ID=\"Hangman12\" STYLE=\"top: 298; left: 482; visibility:visible; WIDTH: 93; HEIGHT: 84; position:absolute\"><IMG SRC=\"Hang-Ptch.gif\" WIDTH=93 HEIGHT=84 BORDER=0></DIV>")

domlay('Hangman12','0','','','','220');


document.write("<DIV ID=\"Hangman2\" STYLE=\"top: 370; left: 470; visibility:visible; WIDTH: 116; HEIGHT: 160; position:absolute\"><IMG SRC=\"BodyTx.gif\" WIDTH=116 HEIGHT=160 BORDER=0></DIV>")

domlay('Hangman2','0','','','','115');


document.write("<DIV ID=\"Hangman3\" STYLE=\"top: 387; left: 573; visibility:visible; WIDTH: 70; HEIGHT: 95; position:absolute\"><IMG SRC=\"LeftArmAnc.gif\" WIDTH=70 HEIGHT=95 BORDER=0></DIV>")


domlay('Hangman3','0','','','','110');


document.write("<DIV ID=\"Hangman4\" STYLE=\"top: 387; left: 413; visibility:visible; WIDTH: 70; HEIGHT: 95; position:absolute\"><IMG SRC=\"RightArm.gif\" WIDTH=70 HEIGHT=95 BORDER=0></DIV>")

domlay('Hangman4','0','','','','110');



document.write("<DIV ID=\"Hangman5\" STYLE=\"top: 472; left: 565; visibility:visible; WIDTH: 43; HEIGHT: 35; position:absolute\"><IMG SRC=\"LeftHand.gif\" WIDTH=43 HEIGHT=35 BORDER=0></DIV>")

domlay('Hangman5','0','','','','120');


document.write("<DIV ID=\"Hangman6\" STYLE=\"top: 473; left: 448; visibility:visible; WIDTH: 43; HEIGHT: 35; position:absolute\"><IMG SRC=\"RightHk.gif\" WIDTH=43 HEIGHT=35 BORDER=0></DIV>")

domlay('Hangman6','0','','','','120');


document.write("<DIV ID=\"Hangman9\" STYLE=\"top: 632; left: 537; visibility:visible; WIDTH: 81; HEIGHT: 28; position:absolute\"><IMG SRC=\"lfoot.gif\" WIDTH=81 HEIGHT=28 BORDER=0></DIV>")

domlay('Hangman9','0','','','','105');


document.write("<DIV ID=\"Hangman10\" STYLE=\"top: 632; left: 434; visibility:visible; WIDTH: 81; HEIGHT: 28; position:absolute\"><IMG SRC=\"rfoot.gif\" WIDTH=81 HEIGHT=28 BORDER=0></DIV>")


domlay('Hangman10','0','','','','105');


document.write("<DIV ID=\"Hangman7\" STYLE=\"top: 526; left: 534; visibility:visible; WIDTH: 47; HEIGHT: 108; position:absolute\"><IMG SRC=\"LeftPeg.gif\" WIDTH=47 HEIGHT=108 BORDER=0></DIV>")

domlay('Hangman7','0','','','','101');



document.write("<DIV ID=\"Hangman8\" STYLE=\"top: 525; left: 474; visibility:visible; WIDTH: 47; HEIGHT: 108; position:absolute\"><IMG SRC=\"RightLeg.gif\" WIDTH=47 HEIGHT=108 BORDER=0></DIV>")

domlay('Hangman8','0','','','','101');


document.write("<DIV ID=\"Hangman11\" STYLE=\"top: 260; left: 500; visibility:visible; WIDTH: 106; HEIGHT: 137; position:absolute\"><IMG SRC=\"Rope.gif\" WIDTH=106 HEIGHT=137 BORDER=0></DIV>")

domlay('Hangman11','0','','','','200');


// *** END - The Hanged Man




// *** START - Gallows Images
document.write("<DIV ID=\"table1\" STYLE=\"top: 656; left: 425; visibility:visible; WIDTH:275px; HEIGHT:10px; position:absolute; background-color: #006600;\"><TABLE></TABLE></DIV>");

domlay('table1','1','','','','110');


document.write("<DIV ID=\"table2\" STYLE=\"top: 260; left: 665; visibility:visible; WIDTH:27px; HEIGHT:395px; position:absolute; background-color: #660000;\"><TABLE></TABLE></DIV>");

domlay('table2','1','','','','100');


document.write("<DIV ID=\"table3\" STYLE=\"top: 260; left: 510; visibility:visible; WIDTH:155px; HEIGHT:10px; position:absolute; background-color: #660000;\"><TABLE></TABLE></DIV>");

domlay('table3','1','','','','100');

// *** END - Gallows Images


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

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

	lft+=parseFloat(35);	
	domlay('SlashTable'+i+'','0','','','','');
										}
// *** Write Slashes or Underscores for Letters in Word to Guess


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

lft-=parseFloat(35);

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

NextLetter=Alphabet.charAt(Alphabet.length -ix);
NextLetter=NextLetter.toUpperCase();

document.write("<DIV ID=LetterTable"+i+NextLetter+" STYLE=\"top: 624; left: "+lft+"; visibility:visible; WIDTH:30px; font-family : Verdana, Arial, Times New Roman, monospace; font-size: 35px; color: #000000; position:absolute; 	text-align:center\"><TABLE ALIGN=center>"+NextLetter+"</TABLE></DIV>");

domlay('LetterTable'+i+NextLetter+'','0','','','','10');

															}

																	}
// **** 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++){

domlay('SlashTable'+i+'','1','','','','');


	lft+=parseFloat(35);				
									}
											}
// *** END - Underslashes for Letters in Word
function SlashMarks2(){
lft = parseFloat(50);

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

domlay('SlashTable'+i+'','0','','','','');


	lft+=parseFloat(35);				
									}
											}

SlashMarks();



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

lft-=parseFloat(35);




revL = parseFloat(10-(YourWord.length-i));
//(TotalSlashes+1))-parseFloat(i)
NextLetter=YourWord.charAt(YourWord.length-parseFloat(i));
NextLetter=NextLetter.toUpperCase();
domlay('LetterTable'+revL+NextLetter+'','0','','','','10');




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

//WordLetters();


 document.write("<DIV ID=PleaseWait STYLE=\"top: 495; left: 25; visibility:visible; font-family : Caslon Antique italic,Times New Roman,Verdana, Arial, monospace; font-size: 50px; color: #000000; text-decoration : none; position:absolute\">PLEASE WAIT ... LOADING</DIV>");

domlay('PleaseWait','0','','','','0');
// *** Wait Please 


 document.write("<DIV title=\"Restart A New GAME\" ID=Restart STYLE=\"top: 365; left: 42; visibility:visible; width: 105; height: 53; position:absolute; cursor:pointer;hand\" onMouseDown='ResTART()'><IMG SRC=\"ReStarT.GIF\" WIDTH=\"105\" HEIGHT=\"53\" ALT=\"Restart A New GAME\" BORDER=\"0\"></DIV>");

domlay('Restart','0','','','','1000');

// *** Restart Button
 
document.write("<DIV title=\"Back to Games List\" ID=Home STYLE=\"top: 0; left: 0; visibility:visible; width: 40; height: 20; position:absolute; cursor:pointer;hand\" onMouseDown='location.href(\"pirate games.html\")'><a href=\"pirate games.html\" TARGET=\"_top\"><IMG SRC=\"left hook.gif\"  WIDTH=\"40\" HEIGHT=\"20\" ALT=\"Back to Games List\" BORDER=\"0\">Back..</a></DIV>");

// *** Home Button

 document.write("<DIV ID=Winner STYLE=\"top: 495; left: 42; visibility:visible; font-family : Caslon Antique italic,Times New Roman,Verdana; font-size: 50px; color: #000000; text-decoration : none; position:absolute\">YOU WIN !!!</DIV>");

domlay('Winner','0','','','','0');
// *** You Win 


 document.write("<DIV ID=Loser STYLE=\"top: 495; left: 42; visibility:visible; font-family : Caslon Antique italic,Times New Roman,Verdana; font-size: 50px; color: #000000; text-decoration : none; position:absolute\">YOU LOSE !!!</DIV>");

domlay('Loser','0','','','','0');
// *** You Lose



document.write("<DIV ID=Title STYLE=\"top: 200; left: 118; visibility:visible; font-family : Caslon Antique italic,Times New Roman,Verdana; font-size: 40px; color: #000000; text-decoration : none; position:absolute\"></DIV>");

domlay('Title','1','','','','0');
// *** Title Word


for (i=0;i<SetNumAmnt+1;i++){

//var xp=eval("SectNum"+i+"[10]");alert(''+xp+'');

document.write("<DIV ID=Clue"+i+" STYLE=\"top: 260; left: 83; visibility:visible; font-family : Caslon Antique italic,monospace, veranda, arial, Times New Roman; font-size: 20px; color: #000000; position:absolute; border : 4px double Black; background-color : #FF0000; width: 330px; font-weight: bold; text-align: center\"><TABLE>CLUE: "+eval("SectNum"+[i]+"[10]")+"</TABLE></DIV>");

// *** Clue Words
											}
											

								
domlay('Clue'+SectionNum+'','1','','','','11');

// *** START - Letter Table for Choosing
document.write("<DIV ID=TpLtTable STYLE=\"top: 330; left: 10; visibility:visible; position:absolute\"><TABLE cellspacing=10></DIV>");

domlay('TpLtTable','1','','','','500');


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

if (i==65 || i==74 || i==83){document.write("<DIV ID=tTrW"+i+" STYLE=\"visibility:visible; position:relative\"><tr></DIV>");

}

document.write("<DIV STYLE=\"position:relative\"><TD ID=lttrCh"+i+" align=center  title=&#"+i+"; STYLE=\"visibility:visible; color: #FF0000; cursor:pointer;cursor: hand;\" onMouseDown='Ask=parseFloat("+i+");LetterChoice()'><FONT STYLE=\"font-family: Caslon Antique italic,Arial,Veranda,'Times New Roman'; font-size: 32px\">&#"+i+";</FONT></TD></DIV>");





if (i==73 || i==82 || i==90){document.write("<DIV ID=tBrW"+i+" STYLE=\"visibility:visible; position:relative\"></tr></DIV>");

}

										}

document.write("<DIV ID=BtLtTable STYLE=\"visibility:visible; position:absolute\"></TABLE></DIV>");

domlay('BtLtTable','1','','','','500');
// *** END - Letter Table for Choosing

//var a=document.getElementById('lttrCh65').childNode;alert(''+a+'');

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


