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 rabbits=[	["clickon_1_rabbit.mp3",	"still_one_rabbit.gif",		"audio=nice_1_rabbit.mp3&video=movie_one_rabbit.gif"],
				["clickon_2_rabbits.mp3",	"still_two_rabbits.gif",	"audio=nice_2_rabbits.mp3&video=movie_two_rabbits.gif"],
				["clickon_3_rabbits.mp3",	"still_three_rabbits.gif",	"audio=nice_3_rabbits.mp3&video=movie_three_rabbits.gif"],
				["clickon_4_rabbits.mp3",	"still_four_rabbits.gif",	"audio=nice_4_rabbits.mp3&video=movie_four_rabbits.gif"],
				["clickon_5_rabbits.mp3",	"still_five_rabbits.gif",	"audio=nice_5_rabbits.mp3&video=movie_five_rabbits.gif"],
				["clickon_6_rabbits.mp3",	"still_six_rabbits.gif",	"audio=nice_6_rabbits.mp3&video=movie_six_rabbits.gif"]		];
				
var rabbits_and_numerals	=	[	["clickon_1_rabbit.mp3",	"still_num_one_rabbit.gif",		"audio=nice_1_rabbit.mp3&video=movie_one_rabbit.gif"],
									["clickon_2_rabbits.mp3",	"still_num_two_rabbits.gif",	"audio=nice_2_rabbits.mp3&video=movie_two_rabbits.gif"],
									["clickon_3_rabbits.mp3",	"still_num_three_rabbits.gif",	"audio=nice_3_rabbits.mp3&video=movie_three_rabbits.gif"],
									["clickon_4_rabbits.mp3",	"still_num_four_rabbits.gif",	"audio=nice_4_rabbits.mp3&video=movie_four_rabbits.gif"],
									["clickon_5_rabbits.mp3",	"still_num_five_rabbits.gif",	"audio=nice_5_rabbits.mp3&video=movie_five_rabbits.gif"],
									["clickon_6_rabbits.mp3",	"still_num_six_rabbits.gif",	"audio=nice_6_rabbits.mp3&video=movie_six_rabbits.gif"]		];
							
var numerals=[	["clickon_1.mp3",	"still_one.gif",		"audio=nice_1.mp3&video=movie1.gif"],
				["clickon_2.mp3",	"still_two.gif",		"audio=nice_2.mp3&video=movie2.gif"],
				["clickon_3.mp3",	"still_three.gif",		"audio=nice_3.mp3&video=movie3.gif"],
				["clickon_4.mp3",	"still_four.gif",		"audio=nice_4.mp3&video=movie4.gif"],
				["clickon_5.mp3",	"still_five.gif",		"audio=nice_5.mp3&video=movie5.gif"],
				["clickon_6.mp3",	"still_six.gif",		"audio=nice_6.mp3&video=movie6.gif"],
				["clickon_7.mp3",	"still_seven.gif",		"audio=nice_7.mp3&video=movie7.gif"],
				["clickon_8.mp3",	"still_eight.gif",		"audio=nice_8.mp3&video=movie8.gif"],
				["clickon_9.mp3",	"still_nine.gif",		"audio=nice_9.mp3&video=movie9.gif"],
				["clickon_0.mp3",	"still_zero.gif",		"audio=nice_0.mp3&video=movie0.gif"],
				["clickon_10.mp3",	"still_ten.gif",		"audio=nice_10.mp3&video=movie10.gif"],
				["clickon_11.mp3",	"still_eleven.gif",		"audio=nice_11.mp3&video=movie11.gif"],
				["clickon_12.mp3",	"still_twelve.gif",		"audio=nice_12.mp3&video=movie12.gif"]	];
				
var dice	=[	["clickon_1.mp3",	"still_dice_one.gif",		"audio=nice_1.mp3&video=movie1.gif"],
				["clickon_2.mp3",	"still_dice_two.gif",		"audio=nice_2.mp3&video=movie2.gif"],
				["clickon_3.mp3",	"still_dice_three.gif",		"audio=nice_3.mp3&video=movie3.gif"],
				["clickon_4.mp3",	"still_dice_four.gif",		"audio=nice_4.mp3&video=movie4.gif"],
				["clickon_5.mp3",	"still_dice_five.gif",		"audio=nice_5.mp3&video=movie5.gif"],
				["clickon_6.mp3",	"still_dice_six.gif",		"audio=nice_6.mp3&video=movie6.gif"]	];
				
var dice_and_numerals	=	[	["clickon_1.mp3",	"still_dice_num_one.gif",		"audio=nice_1.mp3&video=movie1.gif"],
								["clickon_2.mp3",	"still_dice_num_two.gif",		"audio=nice_2.mp3&video=movie2.gif"],
								["clickon_3.mp3",	"still_dice_num_three.gif",		"audio=nice_3.mp3&video=movie3.gif"],
								["clickon_4.mp3",	"still_dice_num_four.gif",		"audio=nice_4.mp3&video=movie4.gif"],
								["clickon_5.mp3",	"still_dice_num_five.gif",		"audio=nice_5.mp3&video=movie5.gif"],
								["clickon_6.mp3",	"still_dice_num_six.gif",		"audio=nice_6.mp3&video=movie6.gif"]	];
				
var moduleNo = 1;

var moduleTitle	=	"Numbers";

var moduleBlurb	=	"A collection of trials about numbers with varying levels of difficulty and emphasising different " +
					"aspects of number meaning, recognition and vocabulary.";

var submodules = new Array();

submodules[2] = {	name: "numerals",
					text: "Numbers 0-12",
					icon: "icon_numbers.gif",
					imod: 0,
					iPos: 2,
					defs: { arraySize: 6 },
					list: numerals,
					trial: "RandomTrialFromElements(arraySize,numerals,bits);",
					blurb:	"A trial to pick the correct number from 0 to 12 from an array. " +
							"By default an array of six digits is shown, but you can adjust this " +
							"on the [options] page."	};

							
submodules[1] = {	name: "rabbits_and_numerals",
					text: "Number of Rabbits (with numeral)",
					icon: "icon_rabbits_num.gif",
					imod: 1,
					ipos: 1,
					defs: {arraySize: 3 },
					list: rabbits_and_numerals,
					trial: "RandomTrialFromElements(arraySize,rabbits_and_numerals,bits);",
					blurb:	"You have to click on the picture containing the correct number of rabbits. " +
							"The digit showing the number of rabbits is displayed above each picture which is a bit " +
							'of a hint, so you can use this trial as practice for the "no clues" version (above). ' +
							"If the un-hinted rabbits trial proves a bit too hard at first, why not switch back to " +
							"this trial for a while."	};
							
submodules[0] = {	name: "rabbits",
					text: "Number of Rabbits",
					icon: "icon_rabbits.gif",
					imod: 2,
					ipos: 0,
					defs: {arraySize: 3 },
					list: rabbits,
					trial: "RandomTrialFromElements(arraySize,rabbits,bits);",
					blurb:	"A trial to pick the picture with the right number of rabbits in it when " +
							"you hear the question. This trial is designed to test the actual understanding " +
							"of a spoken number rather than simply connecting it with the right digit symbol. " +
							"By default an array of three different pictures with different number of rabbits " +
							"in is shown, but you can adjust this on the [options] page."	};
							
submodules[3] = {	name: "dice_and_numerals",
					text: "Dice Patterns (with numeral)",
					icon: "icon_dice_num.gif",
					imod: 3,
					ipos: 3,
					defs: { arraySize: 3 },
					list: dice_and_numerals,
					trial: "RandomTrialFromElements(arraySize,dice_and_numerals,bits);",
					blurb:	"Pick the dice pattern with the correct number of dots when asked. " +
							"The number of dots is also displayed as a numeral just above each picture, " +
							"making this trial a good preliminary introduction to dice patterns before you " +
							"have a go at the unassisted dice trial (below)."	};

submodules[4] = {	name: "dice",
					text: "Dice Patterns",
					icon: "icon_dice.gif",
					imod: 4,
					ipos: 4,
					defs: { arraySize: 3 },
					list: dice,
					trial: "RandomTrialFromElements(arraySize,dice,bits);",
					blurb:	"Pick the dice pattern with the correct number of dots when asked."	};

				
