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

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 sweet_things = [	["clickon_yoghurt.mp3",		"still_yoghurt.gif",	"audio=nice_yoghurt.mp3&video=movie_yoghurt.gif"],
						["clickon_pie.mp3",			"still_pie.gif",		"audio=nice_pie.mp3&video=movie_pie.gif"],
						["clickon_pancake.mp3",		"still_pancake.gif",	"audio=nice_pancake.mp3&video=movie_pancake.gif"],
						["clickon_jelly.mp3",		"still_jelly.gif",		"audio=nice_jelly.mp3&video=movie_jelly.gif"],
						["clickon_ice_cream.mp3",	"still_ice_cream.gif",	"audio=nice_ice_cream.mp3&video=movie_ice_cream.gif"],
						["clickon_honey.mp3",		"still_honey.gif",		"audio=nice_honey.mp3&video=movie_honey.gif"],
						["clickon_doughnut.mp3",	"still_doughnut.gif",	"audio=nice_doughnut.mp3&video=movie_doughnut.gif"],
						["clickon_chocolate.mp3",	"still_chocolate.gif",	"audio=nice_chocolate.mp3&video=movie_chocolate.gif"],
						["clickon_cake.mp3",		"still_cake.gif",		"audio=nice_cake.mp3&video=movie_cake.gif"]	];
									
						
var savoury_things = [	["clickon_sausage.mp3",		"still_sausage.gif",	"audio=nice_sausage.mp3&video=movie_sausage.gif"],
						["clickon_sandwich.mp3",	"still_sandwich.gif",	"audio=nice_sandwich.mp3&video=movie_sandwich.gif"],
						["clickon_pizza.mp3",		"still_pizza.gif",		"audio=nice_pizza.mp3&video=movie_pizza.gif"],
						["clickon_hot_dog.mp3",		"still_hot_dog.gif",	"audio=nice_hot_dog.mp3&video=movie_hot_dog.gif"],
						["clickon_fish.mp3",		"still_fish.gif",		"audio=nice_fish.mp3&video=movie_fish.gif"],
						["clickon_egg.mp3",			"still_egg.gif",		"audio=nice_egg.mp3&video=movie_egg.gif"],
						["clickon_chicken.mp3",		"still_chicken.gif",	"audio=nice_chicken.mp3&video=movie_chicken.gif"],
						["clickon_cheese.mp3",		"still_cheese.gif",		"audio=nice_cheese.mp3&video=movie_cheese.gif"],
						["clickon_burger.mp3",		"still_burger.gif",		"audio=nice_burger.mp3&video=movie_burger.gif"]	];
						
						
var fruit_and_veg = [	["clickon_tomato.mp3",		"still_tomato.gif",		"audio=nice_tomato.mp3&video=movie_tomato.gif"],
						["clickon_peas.mp3",		"still_peas.gif",		"audio=nice_peas.mp3&video=movie_peas.gif"],
						["clickon_orange.mp3",		"still_orange.gif",		"audio=nice_orange.mp3&video=movie_orange.gif"],
						["clickon_cucumber.mp3",	"still_cucumber.gif",	"audio=nice_cucumber.mp3&video=movie_cucumber.gif"],
						["clickon_celery.mp3",		"still_celery.gif",		"audio=nice_celery.mp3&video=movie_celery.gif"],
						["clickon_carrot.mp3",		"still_carrot.gif",		"audio=nice_carrot.mp3&video=movie_carrot.gif"],
						["clickon_banana.mp3",		"still_banana.gif",		"audio=nice_banana.mp3&video=movie_banana.gif"],
						["clickon_apple.mp3",		"still_apple.gif",		"audio=nice_apple.mp3&video=movie_apple.gif"],
						["clickon_potato.mp3",		"still_potato.gif",		"audio=nice_potato.mp3&video=movie_potato.gif"]	];


var others	=		[	["clickon_tea.mp3",			"still_tea.gif",		"audio=nice_tea.mp3&video=movie_tea.gif"]	];



var all_together = [].concat(sweet_things,savoury_things,fruit_and_veg,others);



var moduleNo = 4;

var moduleTitle	=	"Food";

var moduleBlurb =	"Four different exercises for clicking on the correct food item when prompted. " +
					"You can choose one of the three games involving a particular category of food: " +
					'(sweet things, savoury things or fruit & veg). Or try the "all together" game ' +
					"where you can mix and match any kind of food to make a really big array.";

					
var submodules = new Array();



submodules[0] = {	name: "sweet_things",
					text: "Sweet things",
					imod: 0,
					ipos: 0,
					icon: "icon_sweet_things.gif",
					defs: { arraySize: 4 },
					list: sweet_things,
					trial: "RandomTrialFromElements(arraySize,sweet_things,bits);",
					blurb:	"A trial to click on the correct one of " + sweet_things.length + " sweet foods or snacks " +
							"when asked to. By default, 4 different foods are shown at a time but you can adjust this " +
							"on the [options] page."	};
							
submodules[1] = {	name: "savoury_things",
					text: "Savoury things",
					imod: 1,
					ipos: 1,
					icon: "icon_savoury_things.gif",
					defs: { arraySize: 4 },
					list: savoury_things,
					trial: "RandomTrialFromElements(arraySize,savoury_things,bits);",
					blurb:	"A trial to click on the correct one of " + savoury_things.length + " savoury foods " +
							"when asked to. By default, 4 different foods are shown at a time but you can adjust this " +
							"on the [options] page."	};
							
submodules[2] = {	name: "fruit_and_veg",
					text: "Fruit and Vegetables",
					imod: 2,
					ipos: 2,
					icon: "icon_fruit_and_veg.gif",
					defs: { arraySize: 4 },
					list: fruit_and_veg,
					trial: "RandomTrialFromElements(arraySize,fruit_and_veg,bits);",
					blurb:	"A trial to click on the correct one of " + fruit_and_veg.length + " fruits and vegetables " +
							"when asked to. By default, 4 different items are shown at a time but you can adjust this " +
							"on the [options] page."	};

							
submodules[3] = {	name: "all_together",
					text: "All kinds of food",
					imod: 3,
					ipos: 3,
					icon: "icon_all_together.gif",
					defs: { arraySize: 8 },
					list: all_together,
					trial: "RandomTrialFromElements(arraySize,all_together,bits);",
					blurb:	"In this trial all different kinds of food are available so that you can have a really " +
							"big and varied array to choose from. Eight different foods are displayed at once " +
							"(but you can use the [options] page to display even more if you want to)"	};