var copyright = "copyright ©Dan Welchman Productions 2005"; 

var layouts = [ 	[1],
					[2],
					[3],
					[4],
					[3,2],
					[3,3],
					[4,3],
					[4,4],
					[3,3,3],
					[3,4,3],
					[4,3,4],
					[4,4,4],
					[4,5,4],
					[5,4,5],
					[5,5,5],
					[5,6,5],
					[6,5,6],
					[6,6,6]	];
					
layouts[34] = [5,5,5,5,5,5,5];

layouts[35] = [4,4,4,4,4,4,4,4,4];

var facebits = ["still_face-1-1.gif","still_face-2-1.gif","still_face-3-1.gif","still_face-4-1.gif","still_face-5-1.gif",
				"still_face-1-2.gif","still_face-2-2.gif","still_face-3-2.gif","still_face-4-2.gif","still_face-5-2.gif",
				"still_face-1-3.gif","still_face-2-3.gif","still_face-3-3.gif","still_face-4-3.gif","still_face-5-3.gif",
				"still_face-1-4.gif","still_face-2-4.gif","still_face-3-4.gif","still_face-4-4.gif","still_face-5-4.gif",
				"still_face-1-5.gif","still_face-2-5.gif","still_face-3-5.gif","still_face-4-5.gif","still_face-5-5.gif",
				"still_face-1-6.gif","still_face-2-6.gif","still_face-3-6.gif","still_face-4-6.gif","still_face-5-6.gif",
				"still_face-1-7.gif","still_face-2-7.gif","still_face-3-7.gif","still_face-4-7.gif","still_face-5-7.gif"];

var facetrials = [	["clickon_eye.mp3",			facebits,	[11,13],			"audio=nice_eye.mp3&video=movie_eyes.gif"],
					["clickon_nose.mp3",		facebits,	[17],				"audio=nice_nose.mp3&video=movie_nose.gif"],
					["clickon_ear.mp3",			facebits,	[10,15,14,19],		"audio=nice_ear.mp3&video=movie_ears.gif"],
					["clickon_mouth.mp3",		facebits,	[21,22,23],			"audio=nice_mouth.mp3&video=movie_mouth.gif"],
					["clickon_chin.mp3",		facebits,	[27],				"audio=nice_chin.mp3&video=movie_chin.gif"],
					["clickon_cheek.mp3",		facebits,	[16,18],			"audio=nice_cheek.mp3&video=movie_cheeks.gif"],
					["clickon_eyebrow.mp3", 	facebits,	[6,8],				"audio=nice_eyebrow.mp3&video=movie_eyebrows.gif"],
					["clickon_neck.mp3",		facebits,	[26,28,31,32,33],	"audio=nice_neck.mp3&video=movie_neck.gif"],
					["clickon_hair.mp3",		facebits,	[1,2,3],			"audio=nice_hair.mp3&video=movie_hair.gif"],
					["clickon_forehead.mp3",	facebits,	[7],				"audio=nice_forehead.mp3&video=movie_forehead.gif"] ];

var body_parts = [	["clickon_eye.mp3",			"still_eye.gif",			"audio=nice_eye.mp3&video=movie_eyes.gif"],
					["clickon_nose.mp3",		"still_nose.gif",			"audio=nice_nose.mp3&video=movie_nose.gif"],
					["clickon_ear.mp3",			"still_ear.gif",			"audio=nice_ear.mp3&video=movie_ears.gif"],
					["clickon_mouth.mp3",		"still_mouth.gif",			"audio=nice_mouth.mp3&video=movie_mouth.gif"],
					["clickon_hand.mp3",		"still_hand.gif",			"audio=nice_hand.mp3&video=movie_hand.gif"],
					["clickon_foot.mp3",		"still_foot.gif",			"audio=nice_foot.mp3&video=movie_foot.gif"],
					["clickon_eyebrow.mp3", 	"still_eyebrows.gif",		"audio=nice_eyebrow.mp3&video=movie_eyebrows.gif"],
					["clickon_arm.mp3",			"still_arm.gif",			"audio=nice_arm.mp3&video=movie_arm.gif"],
					["clickon_hair.mp3",		"still_hair.gif",			"audio=nice_hair.mp3&video=movie_hair.gif"],
					["clickon_leg.mp3",			"still_legs.gif",			"audio=nice_leg.mp3&video=movie_leg.gif"],
					["clickon_tummy.mp3",		"still_tummy.gif",			"audio=nice_tummy.mp3&video=movie_tummy.gif"],
					["clickon_bottom.mp3",		"still_bottom.gif",			"audio=nice_bottom.mp3&video=movie_bottom.gif"],
					["clickon_chest.mp3",		"still_chest.gif",			"audio=nice_chest.mp3&video=movie_chest.gif"],
					["clickon_back.mp3",		"still_back.gif",			"audio=nice_back.mp3&video=movie_back.gif"] ];
					
var frontbits = [	"still_front-01-01.gif","still_front-02-01.gif","still_front-03-01.gif","still_front-04-01.gif",
					"still_front-01-02.gif","still_front-02-02.gif","still_front-03-02.gif","still_front-04-02.gif",
					"still_front-01-03.gif","still_front-02-03.gif","still_front-03-03.gif","still_front-04-03.gif",
					"still_front-01-04.gif","still_front-02-04.gif","still_front-03-04.gif","still_front-04-04.gif",
					"still_front-01-05.gif","still_front-02-05.gif","still_front-03-05.gif","still_front-04-05.gif",
					"still_front-01-06.gif","still_front-02-06.gif","still_front-03-06.gif","still_front-04-06.gif",
					"still_front-01-07.gif","still_front-02-07.gif","still_front-03-07.gif","still_front-04-07.gif",
					"still_front-01-08.gif","still_front-02-08.gif","still_front-03-08.gif","still_front-04-08.gif",
					"still_front-01-09.gif","still_front-02-09.gif","still_front-03-09.gif","still_front-04-09.gif"	];
					
var fronttrials = [	["clickon_head.mp3",		frontbits,	[1,5],			"audio=nice_head.mp3&video=movie_head.gif"],
					["clickon_hand.mp3",		frontbits,	[20,23],		"audio=nice_hand.mp3&video=movie_hand.gif"],
					["clickon_foot.mp3",		frontbits,	[32,33,34],		"audio=nice_foot.mp3&video=movie_foot.gif"],
					["clickon_arm.mp3",			frontbits,	[12,15,16,19],	"audio=nice_arm.mp3&video=movie_arm.gif"],
					["clickon_leg.mp3",			frontbits,	[25,26,29,30],	"audio=nice_leg.mp3&video=movie_leg.gif"],
					["clickon_shoulder.mp3",	frontbits,	[8,11],			"audio=nice_shoulder.mp3&video=movie_shoulder.gif"],
					["clickon_chest.mp3",		frontbits,	[9,10,13,14],	"audio=nice_chest.mp3&video=movie_chest.gif"],
					["clickon_tummy.mp3",		frontbits,	[17,18],		"audio=nice_tummy.mp3&video=movie_tummy.gif"]	];
					
					
var backbits = [	"still_back-01-01.gif","still_back-02-01.gif","still_back-03-01.gif","still_back-04-01.gif",
					"still_back-01-02.gif","still_back-02-02.gif","still_back-03-02.gif","still_back-04-02.gif",
					"still_back-01-03.gif","still_back-02-03.gif","still_back-03-03.gif","still_back-04-03.gif",
					"still_back-01-04.gif","still_back-02-04.gif","still_back-03-04.gif","still_back-04-04.gif",
					"still_back-01-05.gif","still_back-02-05.gif","still_back-03-05.gif","still_back-04-05.gif",
					"still_back-01-06.gif","still_back-02-06.gif","still_back-03-06.gif","still_back-04-06.gif",
					"still_back-01-07.gif","still_back-02-07.gif","still_back-03-07.gif","still_back-04-07.gif",
					"still_back-01-08.gif","still_back-02-08.gif","still_back-03-08.gif","still_back-04-08.gif",
					"still_back-01-09.gif","still_back-02-09.gif","still_back-03-09.gif","still_back-04-09.gif"	];
					
					
var backtrials = [	["clickon_head.mp3",		backbits,	[2,6],				"audio=nice_head.mp3&video=movie_head.gif"],
					["clickon_hand.mp3",		backbits,	[20,23],			"audio=nice_hand.mp3&video=movie_hand.gif"],
					["clickon_foot.mp3",		backbits,	[33,34,35],			"audio=nice_foot.mp3&video=movie_foot.gif"],
					["clickon_arm.mp3",			backbits,	[12,15,16,19],		"audio=nice_arm.mp3&video=movie_arm.gif"],
					["clickon_leg.mp3",			backbits,	[25,26,29,30],		"audio=nice_leg.mp3&video=movie_leg.gif"],
					["clickon_shoulder.mp3",	backbits,	[8,11],				"audio=nice_shoulder.mp3&video=movie_shoulder.gif"],
					["clickon_back.mp3",		backbits,	[9,10,13,14,17,18],	"audio=nice_back.mp3&video=movie_back.gif"],
					["clickon_bottom.mp3",		backbits,	[21,22],			"audio=nice_bottom.mp3&video=movie_bottom.gif"]	];
					
var clothes	 = [	["clickon_hat.mp3",			"still_hat.gif",			"audio=nice_hat.mp3&video=movie_hat.gif"],
					["clickon_shoes.mp3",		"still_shoes.gif",			"audio=nice_shoes.mp3&video=movie_shoes.gif"],
					["clickon_jacket.mp3",		"still_jacket.gif",			"audio=nice_jacket.mp3&video=movie_jacket.gif"],
					["clickon_t_shirt.mp3",		"still_t_shirt.gif",		"audio=nice_t_shirt.mp3&video=movie_t_shirt.gif"],
					["clickon_boots.mp3",		"still_boots.gif",			"audio=nice_boots.mp3&video=movie_boots.gif"],
					["clickon_sock.mp3",		"still_sock.gif",			"audio=nice_sock.mp3&video=movie_sock.gif"],
					["clickon_glove.mp3", 		"still_glove.gif",			"audio=nice_glove.mp3&video=movie_gloves.gif"],
					["clickon_shorts.mp3",		"still_shorts.gif",			"audio=nice_shorts.mp3&video=movie_shorts.gif"],
					["clickon_trousers.mp3",	"still_trousers.gif",		"audio=nice_trousers.mp3&video=movie_trousers.gif"],
					["clickon_underpants.mp3",	"still_underpants.gif",		"audio=nice_underpants.mp3&video=movie_underpants.gif"] ];

var moduleNo = 3;

var moduleTitle	=	"Body and Clothes";

var moduleBlurb	=	"A collection of trials for developing vocabulary about parts of the body " +
					"and the garments with which we clothe it. Some of the trials ask the player " +
					"to click on the right part of a picture while others display an array of " +
					"little pictures to select from.";

var submodules = new Array();

submodules[1] = {	name: "body_parts",
					text: "Body parts",
					icon: "icon_face_parts.gif",
					imod: 0,
					ipos: 1,
					defs: { arraySize: 3 },
					list: body_parts,
					trial: "RandomTrialFromElements(arraySize,body_parts,bits);",
					blurb:	"Fourteen different parts of the body to click on: eye, nose, ear, mouth, hand, foot, " +
							"eyebrow, arm, hair, leg, tummy, bottom, chest and back."	};

submodules[2] = {	name: "face",
					text: "Face",
					icon: "icon_face_picture.gif",
					imod: 1,
					ipos: 2,
					tiling:	[56,56,5,7],
					trial: "RandomTrialFromList(facetrials,bits);",
					blurb:	"Click on the right part of the boy's face when asked. There are " +
							facetrials.length + " different parts you might be asked to click on. " +
							"You can use the [options] page to adjust the number of attempts you " +
							"are allowed before the correct part starts to flash yellow as a hint."	};
							
submodules[3] = {	name: "front",
					text: "Front",
					icon: "icon_front_picture.gif",
					imod: 2,
					ipos: 3,
					tiling: [40,40,4,9],
					trial: "RandomTrialFromList(fronttrials,bits);",
					blurb:	"Click on the correct part of this FRONT view of the body when asked: " +
							"chest, tummy, head, foot, hand, arm, leg or shoulder. " +
							"You can use the [options] page to adjust the number of attempts you " +
							"are allowed before the correct part starts to flash yellow as a hint."	};
							
submodules[4] = {	name: "back",
					text: "Back",
					icon: "icon_back_picture.gif",
					imod: 3,
					ipos: 4,
					tiling: [40,40,4,9],
					trial: "RandomTrialFromList(backtrials,bits);",
					blurb:	"Click on the correct part of this BACK view of the body when asked: " +
							"back, bottom,  head, foot, hand, arm, leg or shoulder. " +
							"You can use the [options] page to adjust the number of attempts you " +
							"are allowed before the correct part starts to flash yellow as a hint."	};
							
submodules[0] = {	name: "clothes",
					text: "Clothes",
					icon: "icon_clothes.gif",
					imod: 4,
					ipos: 0,
					defs: { arraySize: 3 },
					list: clothes,
					trial: "RandomTrialFromElements(arraySize,clothes,bits);",
					blurb:	"Select the right item of clothing when asked to trigger some of our " +
							"funniest animations. There are ten items available: shoes, hat, jacket, " +
							"t-shirt, underpants, boots, shorts, sock, glove and trousers."	};	
							
