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]	];
					
var coloured_squares = [	["clickon_black.mp3",	"still_black.gif",		"audio=nice_black.mp3&video=movie_black.gif"],
							["clickon_white.mp3",	"still_white.gif",		"audio=nice_white.mp3&video=movie_white.gif"],
							["clickon_red.mp3",		"still_red.gif",		"audio=nice_red.mp3&video=movie_red.gif"],
							["clickon_green.mp3",	"still_green.gif",		"audio=nice_green.mp3&video=movie_green.gif"],
							["clickon_blue.mp3",	"still_blue.gif",		"audio=nice_blue.mp3&video=movie_blue.gif"],
							["clickon_yellow.mp3",	"still_yellow.gif",		"audio=nice_yellow.mp3&video=movie_yellow.gif"],
							["clickon_orange.mp3",	"still_orange.gif",		"audio=nice_orange.mp3&video=movie_orange.gif"],
							["clickon_brown.mp3",	"still_brown.gif",		"audio=nice_brown.mp3&video=movie_brown.gif"],
							["clickon_purple.mp3",	"still_purple.gif",		"audio=nice_purple.mp3&video=movie_purple.gif"],
							["clickon_pink.mp3",	"still_pink.gif",		"audio=nice_pink.mp3&video=movie_pink.gif"],
							["clickon_grey.mp3",	"still_grey.gif",		"audio=nice_grey.mp3&video=movie_grey.gif"]	];
							
var coloured_words = [	["clickon_black.mp3",	"still_word_black.gif",		"audio=nice_black.mp3&video=movie_black.gif"],
						["clickon_red.mp3",		"still_word_red.gif",		"audio=nice_red.mp3&video=movie_red.gif"],
						["clickon_green.mp3",	"still_word_green.gif",		"audio=nice_green.mp3&video=movie_green.gif"],
						["clickon_blue.mp3",	"still_word_blue.gif",		"audio=nice_blue.mp3&video=movie_blue.gif"],
						["clickon_yellow.mp3",	"still_word_yellow.gif",	"audio=nice_yellow.mp3&video=movie_yellow.gif"],
						["clickon_orange.mp3",	"still_word_orange.gif",	"audio=nice_orange.mp3&video=movie_orange.gif"],
						["clickon_brown.mp3",	"still_word_brown.gif",		"audio=nice_brown.mp3&video=movie_brown.gif"],
						["clickon_purple.mp3",	"still_word_purple.gif",	"audio=nice_purple.mp3&video=movie_purple.gif"],
						["clickon_pink.mp3",	"still_word_pink.gif",		"audio=nice_pink.mp3&video=movie_pink.gif"],
						["clickon_grey.mp3",	"still_word_grey.gif",		"audio=nice_grey.mp3&video=movie_grey.gif"]	];
							
var light_and_dark =	[	["clickon_light_blue.mp3",	"still_light_blue.gif",		"audio=nice_light_blue.mp3&video=movie_light_blue.gif"],
							["clickon_dark_blue.mp3",	"still_dark_blue.gif",		"audio=nice_dark_blue.mp3&video=movie_dark_blue.gif"],
							["clickon_light_green.mp3",	"still_light_green.gif",	"audio=nice_light_green.mp3&video=movie_light_green.gif"],
							["clickon_dark_green.mp3",	"still_dark_green.gif",		"audio=nice_dark_green.mp3&video=movie_dark_green.gif"],
							["clickon_light_brown.mp3",	"still_light_brown.gif",	"audio=nice_light_brown.mp3&video=movie_light_brown.gif"],
							["clickon_dark_brown.mp3",	"still_dark_brown.gif",		"audio=nice_dark_brown.mp3&video=movie_dark_brown.gif"],
							["clickon_light_grey.mp3",	"still_light_grey.gif",		"audio=nice_light_grey.mp3&video=movie_light_grey.gif"],
							["clickon_dark_grey.mp3",	"still_dark_grey.gif",		"audio=nice_dark_grey.mp3&video=movie_dark_grey.gif"]	];
							
var shapes = [	["clickon_square.mp3",		"still_square.gif",			"audio=nice_square.mp3&video=movie_square.gif"],
				["clickon_circle.mp3",		"still_circle.gif",			"audio=nice_circle.mp3&video=movie_circle.gif"],
				["clickon_triangle.mp3",	"still_triangle.gif",		"audio=nice_triangle.mp3&video=movie_triangle.gif"],
				["clickon_arrow.mp3",		"still_arrow.gif",			"audio=nice_arrow.mp3&video=movie_arrow.gif"],
				["clickon_star.mp3",		"still_star.gif",			"audio=nice_star.mp3&video=movie_star.gif"],
				["clickon_rectangle.mp3",	"still_rectangle.gif",		"audio=nice_rectangle.mp3&video=movie_rectangle.gif"],
				["clickon_diamond.mp3",		"still_diamond.gif",		"audio=nice_diamond.mp3&video=movie_diamond.gif"],
				["clickon_heart.mp3",		"still_heart.gif",			"audio=nice_heart.mp3&video=movie_heart.gif"],
				["clickon_pentagon.mp3",	"still_pentagon.gif",		"audio=nice_pentagon.mp3&video=movie_pentagon.gif"],
				["clickon_oval.mp3",		"still_oval.gif",			"audio=nice_oval.mp3&video=movie_oval.gif"],
				["clickon_semicircle.mp3",	"still_semicircle.gif",		"audio=nice_semicircle.mp3&video=movie_semicircle.gif"],
				["clickon_tick.mp3",		"still_tick.gif",			"audio=nice_tick.mp3&video=movie_tick.gif"],
				["clickon_moon.mp3",		"still_moon.gif",			"audio=nice_moon.mp3&video=movie_moon.gif"],
				["clickon_spiral.mp3",		"still_spiral.gif",			"audio=nice_spiral.mp3&video=movie_spiral.gif"],
				["clickon_hexagon.mp3",		"still_hexagon.gif",		"audio=nice_hexagon.mp3&video=movie_hexagon.gif"],
				["clickon_arch.mp3",		"still_arch.gif",			"audio=nice_arch.mp3&video=movie_arch.gif"],
				["clickon_cross.mp3",		"still_cross.gif",			"audio=nice_cross.mp3&video=movie_cross.gif"]	];
				
var big_and_little =	[	["clickon_big_square.mp3",		"still_big_square.gif",			"audio=nice_big_square.mp3&video=movie_big_square.gif"],
							["clickon_little_square.mp3",	"still_little_square.gif",		"audio=nice_little_square.mp3&video=movie_little_square.gif"],
							["clickon_big_circle.mp3",		"still_big_circle.gif",			"audio=nice_big_circle.mp3&video=movie_big_circle.gif"],
							["clickon_little_circle.mp3",	"still_little_circle.gif",		"audio=nice_little_circle.mp3&video=movie_little_circle.gif"],						
							["clickon_big_triangle.mp3",	"still_big_triangle.gif",		"audio=nice_big_triangle.mp3&video=movie_big_triangle.gif"],
							["clickon_little_triangle.mp3",	"still_little_triangle.gif",	"audio=nice_little_triangle.mp3&video=movie_little_triangle.gif"],		
							["clickon_big_arrow.mp3",		"still_big_arrow.gif",			"audio=nice_big_arrow.mp3&video=movie_big_arrow.gif"],
							["clickon_little_arrow.mp3",	"still_little_arrow.gif",		"audio=nice_little_arrow.mp3&video=movie_little_arrow.gif"],
							["clickon_big_star.mp3",		"still_big_star.gif",			"audio=nice_big_star.mp3&video=movie_big_star.gif"],
							["clickon_little_star.mp3",		"still_little_star.gif",		"audio=nice_little_star.mp3&video=movie_little_star.gif"]	];

var blNoDistractorStrings =	[	"RandomDistractorTrial(arraySize,big_and_little[0],[big_and_little[1]])" ,
								"RandomDistractorTrial(arraySize,big_and_little[1],[big_and_little[0]])" ,
								"RandomDistractorTrial(arraySize,big_and_little[2],[big_and_little[3]])" ,
								"RandomDistractorTrial(arraySize,big_and_little[3],[big_and_little[2]])" ,
								"RandomDistractorTrial(arraySize,big_and_little[4],[big_and_little[5]])" ,
								"RandomDistractorTrial(arraySize,big_and_little[5],[big_and_little[4]])" ,
								"RandomDistractorTrial(arraySize,big_and_little[6],[big_and_little[7]])" ,
								"RandomDistractorTrial(arraySize,big_and_little[7],[big_and_little[6]])" ,
								"RandomDistractorTrial(arraySize,big_and_little[8],[big_and_little[9]])" ,
								"RandomDistractorTrial(arraySize,big_and_little[9],[big_and_little[8]])"	];
							
var blNoDistractorIcons =	[	"icon_big_squ.gif", // icons corresponding to the trial generating instructions above.
								"icon_lit_squ.gif",
								"icon_big_cir.gif",
								"icon_lit_cir.gif",
								"icon_big_tri.gif",
								"icon_lit_tri.gif",
								"icon_big_arr.gif",
								"icon_lit_arr.gif",
								"icon_big_sta.gif",
								"icon_lit_sta.gif"	];
							

var moduleNo = 2;

var moduleTitle	=	"Size, Shape and Colour";

var moduleBlurb	=	"A cheerful assortment of trials for developing vocabulary and comprehension " +
					"about size, shape and colour. The easier trials simply ask the player to " +
					"select the right choice from an array of different shapes or colours. The " +
					"more sophisticated ones mix the concepts together so that the player might " +
					'be asked to pick a "small green triangle" from a diverse array of big and little ' +
					"shapes of various colours.";
					
var submodules = new Array();



submodules[1] = {	name: "colours",
					text: "Coloured squares",
					imod: 0,
					ipos: 1,
					icon: "icon_colours.gif",
					defs: { arraySize: 4 },
					list: coloured_squares,
					trial: "RandomTrialFromElements(arraySize,coloured_squares,bits);",
					blurb:	"A trial to click on the correct one of " + coloured_squares.length + " coloured squares " +
							"when asked to. By default, 4 different squares are shown at a time but you can adjust this " +
							"on the [options] page."	};
							
submodules[2] = {	name: "light_and_dark_colours",
					text: "Light and dark colours",
					imod: 1,
					ipos: 2,
					icon: "icon_colours_dl.gif",
					defs: { arraySize: 4 },
					list: light_and_dark,
					trial: "RandomTrialFromElements(arraySize,light_and_dark,bits);",
					blurb:	"Light and dark colours (green, blue, grey and brown) are displayed to see " +
							"if you can pick the right one when asked. A good advanced trial to introduce " +
							"when the straightforward colours are getting a bit easy."	};
							
submodules[3] = {	name: "coloured_words",
					text: "Coloured words",
					imod: 2,
					ipos: 3,
					icon: "icon_coloured_words.gif",
					defs: { arraySize: 3 },
					list: coloured_words,
					trial: "RandomTrialFromElements(arraySize,coloured_words,bits);",
					blurb:	"In this trial we spell out the words for each colour in appropriately coloured letters. " +
							"The reward animations are the same as for the ordinary coloured squares, but it can help " +
							"to introduce the link between the colours and their names."	};
							
submodules[0] = {	name: "shapes",
					text: "Shapes",
					imod: 3,
					ipos: 0,
					icon: "icon_shapes.gif",
					defs: { arraySize: 4 },
					list: shapes,
					trial: "RandomTrialFromElements(arraySize,shapes,bits);",
					blurb:	"An array of different shapes from which you have to pick the correct one when asked. " +
							"There are " + shapes.length + " different shapes in all, but you can restrict the choice " +
							"on the [options] page if necessary. 4 different shapes are shown at a time by default, " +
							" but this is also adjustable via the [options] page."	};
					
submodules[4] = {	name: "big_and_little_no_distractors",
					text: "Big and little trial (easy)",
					imod: 4,
					ipos: 4,
					icon: "icon_easy_biglittle.gif",
					defs: { arraySize: 2 },
					list: blNoDistractorIcons,
					trial: "eval(RandomTrialFromList(blNoDistractorStrings,bits))",
					blurb:	"In this trial you'll see a big and a little version of a shape side by side. " +
							"All you need to do is click on the right one when asked. This trial is good warm-up " +
							'to get used to the words "big" and "little" before having a go with a mixture of different ' +
							'shapes in the "Big and little shapes" trial (below).'	};
							
submodules[5] = {	name: "big_and_little_shapes",
					text: "Big and little shapes",
					imod: 5,
					ipos: 5,
					icon: "icon_biglittle_shapes.gif",
					defs: { arraySize: 8 },
					list: big_and_little,
					trial: "RandomTrialFromElements(arraySize,big_and_little,bits);",
					blurb:	"Big and little versions of the star, circle, arrow, square and triangle. " +
							"Click on the right one when asked and you'll see a new animation specially " +
							"created to go with the appropriate big or little shape."	};
				
