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

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],
					[6,7,6],
					[5,5,5,5],
					[7,7,7],
					[6,5,6,5],
					[6,6,6,5],
					[6,6,6,6],
					[7,6,6,6],
					[7,6,7,6],
					[7,7,7,6],
					[7,7,7,7]	];
					
					
					
var bedroom_bits =	[	"still_bedroom-1-1.gif","still_bedroom-2-1.gif","still_bedroom-3-1.gif","still_bedroom-4-1.gif","still_bedroom-5-1.gif","still_bedroom-6-1.gif","still_bedroom-7-1.gif",
						"still_bedroom-1-2.gif","still_bedroom-2-2.gif","still_bedroom-3-2.gif","still_bedroom-4-2.gif","still_bedroom-5-2.gif","still_bedroom-6-2.gif","still_bedroom-7-2.gif",
						"still_bedroom-1-3.gif","still_bedroom-2-3.gif","still_bedroom-3-3.gif","still_bedroom-4-3.gif","still_bedroom-5-3.gif","still_bedroom-6-3.gif","still_bedroom-7-3.gif",
						"still_bedroom-1-4.gif","still_bedroom-2-4.gif","still_bedroom-3-4.gif","still_bedroom-4-4.gif","still_bedroom-5-4.gif","still_bedroom-6-4.gif","still_bedroom-7-4.gif"	];
					
var bedroomtrials = [	["clickon_light.mp3",			bedroom_bits,	[2],			"audio=nice_light.mp3&video=movie_light.gif"],
						["clickon_window.mp3",			bedroom_bits,	[3],			"audio=nice_window.mp3&video=movie_window.gif"],
						["clickon_bed.mp3",				bedroom_bits,	[8,15],			"audio=nice_bed.mp3&video=movie_bed.gif"],
						["clickon_table.mp3",			bedroom_bits,	[11,12],		"audio=nice_table.mp3&video=movie_table.gif"],
						["clickon_picture.mp3",			bedroom_bits,	[14],			"audio=nice_picture.mp3&video=movie_picture.gif"],
						["clickon_chair.mp3",			bedroom_bits,	[17],			"audio=nice_chair.mp3&video=movie_chair.gif"],
						["clickon_teddybear.mp3",		bedroom_bits,	[18],			"audio=nice_teddybear.mp3&video=movie_teddybear.gif"],
						["clickon_door.mp3",			bedroom_bits,	[20],			"audio=nice_door.mp3&video=movie_door.gif"],
						["clickon_cat.mp3",				bedroom_bits,	[22],			"audio=nice_cat.mp3&video=movie_cat.gif"],
						["clickon_book.mp3",			bedroom_bits,	[23],			"audio=nice_book.mp3&video=movie_book.gif"],
						["clickon_ball.mp3",			bedroom_bits,	[25],			"audio=nice_ball.mp3&video=movie_ball.gif"],
						["clickon_sock.mp3",			bedroom_bits,	[26],			"audio=nice_sock.mp3&video=movie_sock.gif"]	];
						
var bathroom_bits =	[	"still_bathroom-1-1.gif","still_bathroom-2-1.gif","still_bathroom-3-1.gif","still_bathroom-4-1.gif","still_bathroom-5-1.gif","still_bathroom-6-1.gif","still_bathroom-7-1.gif",
						"still_bathroom-1-2.gif","still_bathroom-2-2.gif","still_bathroom-3-2.gif","still_bathroom-4-2.gif","still_bathroom-5-2.gif","still_bathroom-6-2.gif","still_bathroom-7-2.gif",
						"still_bathroom-1-3.gif","still_bathroom-2-3.gif","still_bathroom-3-3.gif","still_bathroom-4-3.gif","still_bathroom-5-3.gif","still_bathroom-6-3.gif","still_bathroom-7-3.gif",
						"still_bathroom-1-4.gif","still_bathroom-2-4.gif","still_bathroom-3-4.gif","still_bathroom-4-4.gif","still_bathroom-5-4.gif","still_bathroom-6-4.gif","still_bathroom-7-4.gif"	];
					

var bathroomtrials = [	["clickon_light.mp3",			bathroom_bits,	[0,4],			"audio=nice_light.mp3&video=movie_light.gif"],
						["clickon_window.mp3",			bathroom_bits,	[2,3,9,10],		"audio=nice_window.mp3&video=movie_window.gif"],
						["clickon_mirror.mp3",			bathroom_bits,	[5,12],			"audio=nice_mirror.mp3&video=movie_mirror.gif"],
						["clickon_picture.mp3",			bathroom_bits,	[8],			"audio=nice_picture.mp3&video=movie_picture.gif"],
						["clickon_toothpaste.mp3",		bathroom_bits,	[11],			"audio=nice_toothpaste.mp3&video=movie_toothpaste.gif"],
						["clickon_toothbrush.mp3",		bathroom_bits,	[13],			"audio=nice_toothbrush.mp3&video=movie_toothbrush.gif"],
						["clickon_toilet.mp3",			bathroom_bits,	[14,21],		"audio=nice_toilet.mp3&video=movie_toilet.gif"],
						["clickon_sink.mp3",			bathroom_bits,	[19],			"audio=nice_sink.mp3&video=movie_sink.gif"],
						["clickon_towel.mp3",			bathroom_bits,	[20,27],		"audio=nice_towel.mp3&video=movie_towel.gif"],
						["clickon_bath.mp3",			bathroom_bits,	[23,24],		"audio=nice_bath.mp3&video=movie_bath.gif"],
						["clickon_cat.mp3",				bathroom_bits,	[26],			"audio=nice_cat.mp3&video=movie_cat.gif"] ];
						
var kitchen_bits =	[	"still_kitchen-1-1.gif","still_kitchen-2-1.gif","still_kitchen-3-1.gif","still_kitchen-4-1.gif","still_kitchen-5-1.gif","still_kitchen-6-1.gif","still_kitchen-7-1.gif",
						"still_kitchen-1-2.gif","still_kitchen-2-2.gif","still_kitchen-3-2.gif","still_kitchen-4-2.gif","still_kitchen-5-2.gif","still_kitchen-6-2.gif","still_kitchen-7-2.gif",
						"still_kitchen-1-3.gif","still_kitchen-2-3.gif","still_kitchen-3-3.gif","still_kitchen-4-3.gif","still_kitchen-5-3.gif","still_kitchen-6-3.gif","still_kitchen-7-3.gif",
						"still_kitchen-1-4.gif","still_kitchen-2-4.gif","still_kitchen-3-4.gif","still_kitchen-4-4.gif","still_kitchen-5-4.gif","still_kitchen-6-4.gif","still_kitchen-7-4.gif"	];
					
var kitchentrials = [	["clickon_clock.mp3",			kitchen_bits,	[0],			"audio=nice_clock.mp3&video=movie_clock.gif"],
						["clickon_pan.mp3",				kitchen_bits,	[1],			"audio=nice_pan.mp3&video=movie_pan.gif"],
						["clickon_sink.mp3",			kitchen_bits,	[2],			"audio=nice_sink.mp3&video=movie_sink.gif"],
						["clickon_bowl.mp3",			kitchen_bits,	[3],			"audio=nice_bowl.mp3&video=movie_bowl.gif"],
						["clickon_cake.mp3",			kitchen_bits,	[4],			"audio=nice_cake.mp3&video=movie_cake.gif"],
						["clickon_dishwasher.mp3",		kitchen_bits,	[5,12,19],		"audio=nice_dishwasher.mp3&video=movie_dishwasher.gif"],
						["clickon_fridge.mp3",			kitchen_bits,	[6,13],			"audio=nice_fridge.mp3&video=movie_fridge.gif"],
						["clickon_cooker.mp3",			kitchen_bits,	[14,21],		"audio=nice_cooker.mp3&video=movie_cooker.gif"],
						["clickon_cat.mp3",				kitchen_bits,	[15],			"audio=nice_cat.mp3&video=movie_cat.gif"],
						["clickon_cup.mp3",				kitchen_bits,	[16],			"audio=nice_cup.mp3&video=movie_cup.gif"],
						["clickon_carrot.mp3",			kitchen_bits,	[17],			"audio=nice_carrot.mp3&video=movie_carrot.gif"],
						["clickon_knife.mp3",			kitchen_bits,	[18],			"audio=nice_knife.mp3&video=movie_knife.gif"],
						["clickon_chair.mp3",			kitchen_bits,	[20,27],		"audio=nice_chair.mp3&video=movie_chair.gif"],
						["clickon_spoon.mp3",			kitchen_bits,	[23],			"audio=nice_spoon.mp3&video=movie_spoon.gif"],
						["clickon_plate.mp3",			kitchen_bits,	[24],			"audio=nice_plate.mp3&video=movie_plate.gif"],
						["clickon_fork.mp3",			kitchen_bits,	[25],			"audio=nice_fork.mp3&video=movie_fork.gif"]	];
						
var house_bits =	[	"still_house-1-1.gif","still_house-2-1.gif","still_house-3-1.gif","still_house-4-1.gif","still_house-5-1.gif",
						"still_house-1-2.gif","still_house-2-2.gif","still_house-3-2.gif","still_house-4-2.gif","still_house-5-2.gif",
						"still_house-1-3.gif","still_house-2-3.gif","still_house-3-3.gif","still_house-4-3.gif","still_house-5-3.gif",
						"still_house-1-4.gif","still_house-2-4.gif","still_house-3-4.gif","still_house-4-4.gif","still_house-5-4.gif"	];
						
var housetrials = 	[	["clickon_roof.mp3",			house_bits,	[0,1,2,3,4],	"audio=nice_roof.mp3&video=movie_roof.gif"],
						["clickon_bedroom.mp3",			house_bits,	[5,6],			"audio=nice_bedroom.mp3&video=movie_bedroom.gif"],
						["clickon_picture.mp3",			house_bits,	[7],			"audio=nice_picture.mp3&video=movie_picture.gif"],
						["clickon_window.mp3",			house_bits,	[8,12,14],		"audio=nice_window.mp3&video=movie_window.gif"],
						["clickon_computer.mp3",		house_bits,	[9],			"audio=nice_computer.mp3&video=movie_computer.gif"],
						["clickon_bathroom.mp3",		house_bits,	[10,11],		"audio=nice_bathroom.mp3&video=movie_bathroom.gif"],
						["clickon_stairs.mp3",			house_bits,	[13],			"audio=nice_stairs.mp3&video=movie_stairs.gif"],
						["clickon_sofa.mp3",			house_bits,	[15],			"audio=nice_sofa.mp3&video=movie_sofa.gif"],
						["clickon_tv.mp3",				house_bits,	[16],			"audio=nice_tv.mp3&video=movie_tv.gif"],
						["clickon_door.mp3",			house_bits,	[17],			"audio=nice_door.mp3&video=movie_door.gif"],
						["clickon_kitchen.mp3",			house_bits,	[18,19],		"audio=nice_kitchen.mp3&video=movie_kitchen.gif"]	];
					
var all_big		=	[	["clickon_ball.mp3",			"still_ball.gif",  				"audio=nice_ball.mp3&video=movie_ball.gif"],					
						["clickon_bath.mp3",			"still_bath.gif",  				"audio=nice_bath.mp3&video=movie_bath.gif"],
						["clickon_bed.mp3",				"still_bed.gif",				"audio=nice_bed.mp3&video=movie_bed.gif"],
						["clickon_book.mp3",			"still_book.gif",				"audio=nice_book.mp3&video=movie_book.gif"],
						["clickon_bowl.mp3",			"still_bowl.gif",				"audio=nice_bowl.mp3&video=movie_bowl.gif"],
						["clickon_cake.mp3",			"still_cake.gif",				"audio=nice_cake.mp3&video=movie_cake.gif"],
						["clickon_carrot.mp3",			"still_carrot.gif",				"audio=nice_carrot.mp3&video=movie_carrot.gif"],
						["clickon_cat.mp3",				"still_cat.gif",				"audio=nice_cat.mp3&video=movie_cat.gif"],
						["clickon_chair.mp3",			"still_chair.gif",				"audio=nice_chair.mp3&video=movie_chair.gif"],
						["clickon_clock.mp3",			"still_clock.gif",				"audio=nice_clock.mp3&video=movie_clock.gif"],
						["clickon_computer.mp3",		"still_computer.gif",			"audio=nice_computer.mp3&video=movie_computer.gif"],
						["clickon_couch.mp3",			"still_couch.gif",				"audio=nice_couch.mp3&video=movie_couch.gif"],
						["clickon_cup.mp3",				"still_cup.gif",				"audio=nice_cup.mp3&video=movie_cup.gif"],
						["clickon_dishwasher.mp3",		"still_dishwasher.gif",			"audio=nice_dishwasher.mp3&video=movie_dishwasher.gif"],
						["clickon_dog.mp3",				"still_dog.gif",				"audio=nice_dog.mp3&video=movie_dog.gif"],
						["clickon_door.mp3",			"still_door.gif",				"audio=nice_door.mp3&video=movie_door.gif"],
						["clickon_fork.mp3",			"still_fork.gif",				"audio=nice_fork.mp3&video=movie_fork.gif"],
						["clickon_fridge.mp3",			"still_fridge.gif",				"audio=nice_fridge.mp3&video=movie_fridge.gif"],
						["clickon_knife.mp3",			"still_knife.gif",				"audio=nice_knife.mp3&video=movie_knife.gif"],
						["clickon_light.mp3",			"still_light.gif",				"audio=nice_light.mp3&video=movie_light.gif"],
						["clickon_mirror.mp3",			"still_mirror.gif",				"audio=nice_mirror.mp3&video=movie_mirror.gif"],
						["clickon_pan.mp3",				"still_pan.gif",				"audio=nice_pan.mp3&video=movie_pan.gif"],
						["clickon_picture.mp3",			"still_picture.gif",			"audio=nice_picture.mp3&video=movie_picture.gif"],
						["clickon_plate.mp3",			"still_plate.gif",				"audio=nice_plate.mp3&video=movie_plate.gif"],
						["clickon_roof.mp3",			"still_roof.gif",				"audio=nice_roof.mp3&video=movie_roof.gif"],
						["clickon_sink.mp3",			"still_sink.gif",				"audio=nice_sink.mp3&video=movie_sink.gif"],
						["clickon_sofa.mp3",			"still_sofa.gif",				"audio=nice_sofa.mp3&video=movie_sofa.gif"],
						["clickon_spoon.mp3",			"still_spoon.gif",				"audio=nice_spoon.mp3&video=movie_spoon.gif"],
						["clickon_stairs.mp3",			"still_stairs.gif",				"audio=nice_stairs.mp3&video=movie_stairs.gif"],
						["clickon_table.mp3",			"still_table.gif",				"audio=nice_table.mp3&video=movie_table.gif"],
						["clickon_teddybear.mp3",		"still_teddybear.gif",			"audio=nice_teddybear.mp3&video=movie_teddybear.gif"],
						["clickon_toilet.mp3",			"still_toilet.gif",				"audio=nice_toilet.mp3&video=movie_toilet.gif"],
						["clickon_toothbrush.mp3",		"still_toothbrush.gif",			"audio=nice_toothbrush.mp3&video=movie_toothbrush.gif"],
						["clickon_toothpaste.mp3",		"still_toothpaste.gif",			"audio=nice_toothpaste.mp3&video=movie_toothpaste.gif"],
						["clickon_towel.mp3",			"still_towel.gif",				"audio=nice_towel.mp3&video=movie_towel.gif"],
						["clickon_tv.mp3",				"still_tv.gif",					"audio=nice_tv.mp3&video=movie_tv.gif"],
						["clickon_sock.mp3",			"still__sock_.gif",				"audio=nice_sock.mp3&video=movie_sock.gif"],
						["clickon_washing_machine.mp3",	"still_washing_machine.gif",	"audio=nice_washing_machine.mp3&video=movie_washing_machine.gif"],
						["clickon_window.mp3",			"still_window.gif",				"audio=nice_window.mp3&video=movie_window.gif"] ];
						
var all_small	=	[	["clickon_ball.mp3",			"still__ball_.gif",  			"audio=nice_ball.mp3&video=movie_ball.gif"],					
						["clickon_bath.mp3",			"still__bath_.gif",  			"audio=nice_bath.mp3&video=movie_bath.gif"],
						["clickon_bed.mp3",				"still__bed_.gif",				"audio=nice_bed.mp3&video=movie_bed.gif"],
						["clickon_book.mp3",			"still__book_.gif",				"audio=nice_book.mp3&video=movie_book.gif"],
						["clickon_bowl.mp3",			"still__bowl_.gif",				"audio=nice_bowl.mp3&video=movie_bowl.gif"],
						["clickon_cake.mp3",			"still__cake_.gif",				"audio=nice_cake.mp3&video=movie_cake.gif"],
						["clickon_carrot.mp3",			"still__carrot_.gif",			"audio=nice_carrot.mp3&video=movie_carrot.gif"],
						["clickon_cat.mp3",				"still__cat_.gif",				"audio=nice_cat.mp3&video=movie_cat.gif"],
						["clickon_chair.mp3",			"still__chair_.gif",			"audio=nice_chair.mp3&video=movie_chair.gif"],
						["clickon_clock.mp3",			"still__clock_.gif",			"audio=nice_clock.mp3&video=movie_clock.gif"],
						["clickon_computer.mp3",		"still__computer_.gif",			"audio=nice_computer.mp3&video=movie_computer.gif"],
						["clickon_couch.mp3",			"still__couch_.gif",			"audio=nice_couch.mp3&video=movie_couch.gif"],
						["clickon_cup.mp3",				"still__cup_.gif",				"audio=nice_cup.mp3&video=movie_cup.gif"],
						["clickon_dishwasher.mp3",		"still__dishwasher_.gif",		"audio=nice_dishwasher.mp3&video=movie_dishwasher.gif"],
						["clickon_dog.mp3",				"still__dog_.gif",				"audio=nice_dog.mp3&video=movie_dog.gif"],
						["clickon_door.mp3",			"still__door_.gif",				"audio=nice_door.mp3&video=movie_door.gif"],
						["clickon_fork.mp3",			"still__fork_.gif",				"audio=nice_fork.mp3&video=movie_fork.gif"],
						["clickon_fridge.mp3",			"still__fridge_.gif",			"audio=nice_fridge.mp3&video=movie_fridge.gif"],
						["clickon_knife.mp3",			"still__knife_.gif",			"audio=nice_knife.mp3&video=movie_knife.gif"],
						["clickon_light.mp3",			"still__light_.gif",			"audio=nice_light.mp3&video=movie_light.gif"],
						["clickon_mirror.mp3",			"still__mirror_.gif",			"audio=nice_mirror.mp3&video=movie_mirror.gif"],
						["clickon_pan.mp3",				"still__pan_.gif",				"audio=nice_pan.mp3&video=movie_pan.gif"],
						["clickon_picture.mp3",			"still__picture_.gif",			"audio=nice_picture.mp3&video=movie_picture.gif"],
						["clickon_plate.mp3",			"still__plate_.gif",			"audio=nice_plate.mp3&video=movie_plate.gif"],
						["clickon_roof.mp3",			"still__roof_.gif",				"audio=nice_roof.mp3&video=movie_roof.gif"],
						["clickon_sink.mp3",			"still__sink_.gif",				"audio=nice_sink.mp3&video=movie_sink.gif"],
						["clickon_sofa.mp3",			"still__sofa_.gif",				"audio=nice_sofa.mp3&video=movie_sofa.gif"],
						["clickon_spoon.mp3",			"still__spoon_.gif",			"audio=nice_spoon.mp3&video=movie_spoon.gif"],
						["clickon_stairs.mp3",			"still__stairs_.gif",			"audio=nice_stairs.mp3&video=movie_stairs.gif"],
						["clickon_table.mp3",			"still__table_.gif",			"audio=nice_table.mp3&video=movie_table.gif"],
						["clickon_teddybear.mp3",		"still__teddybear_.gif",		"audio=nice_teddybear.mp3&video=movie_teddybear.gif"],
						["clickon_toilet.mp3",			"still__toilet_.gif",			"audio=nice_toilet.mp3&video=movie_toilet.gif"],
						["clickon_toothbrush.mp3",		"still__toothbrush_.gif",		"audio=nice_toothbrush.mp3&video=movie_toothbrush.gif"],
						["clickon_toothpaste.mp3",		"still__toothpaste_.gif",		"audio=nice_toothpaste.mp3&video=movie_toothpaste.gif"],
						["clickon_towel.mp3",			"still__towel_.gif",			"audio=nice_towel.mp3&video=movie_towel.gif"],
						["clickon_tv.mp3",				"still__tv_.gif",				"audio=nice_tv.mp3&video=movie_tv.gif"],
						["clickon_sock.mp3",			"still__sock_.gif",				"audio=nice_sock.mp3&video=movie_sock.gif"],
						["clickon_washing_machine.mp3",	"still__washing_machine_.gif",	"audio=nice_washing_machine.mp3&video=movie_washing_machine.gif"],
						["clickon_window.mp3",			"still__window_.gif",			"audio=nice_window.mp3&video=movie_window.gif"] ];

						

var moduleNo = 8;

var moduleTitle	=	"Round The House";

var moduleBlurb =	"Six great exercises centred around household items and parts of the house";
				

					
var submodules = new Array();

submodules[0] = {	name: "house",
					text: "House",
					icon: "icon_house.gif",
					imod: 0,
					ipos: 0,
					tiling:	[75,75,5,4],
					trial: "RandomTrialFromList(housetrials,bits);",
					blurb:	"Click on the correct part of this picture of a house."	};

submodules[1] = {	name: "bedroom",
					text: "Bedroom",
					icon: "icon_bedroom.gif",
					imod: 1,
					ipos: 1,
					tiling:	[75,75,7,4],
					trial: "RandomTrialFromList(bedroomtrials,bits);",
					blurb:	"Click on the correct item in this picture of a bedroom."	};

submodules[2] = {	name: "bathroom",
					text: "Bathroom",
					icon: "icon_bathroom.gif",
					imod: 2,
					ipos: 2,
					tiling:	[75,75,7,4],
					trial: "RandomTrialFromList(bathroomtrials,bits);",
					blurb:	"Click on the correct item in this picture of a bathroom."	};
					
submodules[3] = {	name: "kitchen",
					text: "Kitchen",
					icon: "icon_kitchen.gif",
					imod: 3,
					ipos: 3,
					tiling:	[75,75,7,4],
					trial: "RandomTrialFromList(kitchentrials,bits);",
					blurb:	"Click on the correct item in this picture of a kitchen."	};

submodules[4] = {	name: "all_together_big",
					text: "All together",
					imod: 4,
					ipos: 4,
					icon: "icon_all_big.gif",
					defs: { arraySize: 8 },
					list: all_big,
					trial: "RandomTrialFromElements(arraySize,all_big,bits);",
					blurb:	"Household items from ALL the categories above (so you've got lots to choose from!)"	};
					
submodules[5] = {	name: "all_together_small",
					text: "All together (small icons)",
					imod: 5,
					ipos: 5,
					icon: "icon_all_small.gif",
					defs: { arraySize: 18 },
					list: all_big,
					trial: "RandomTrialFromElements(arraySize,all_small,bits);",
					blurb:	"ALL of the houshold items above (so you've got lots to choose from!) " +
							"This version uses small pictures so that you can fit a really big array on the screen."	};
					
