var myFile = location.href;var myFileArray;if (myFile.indexOf("/") == -1) {	myFileArray = myFile.split("\\");} else {	myFileArray = myFile.split("/");}var myFileName = myFileArray[myFileArray.length - 1];var myCode = myFileName.substring(0,2);var myFirstLetter = myFileName.substring(0,1);var myStrand = myFileName.substring(2,4);var modulelist = new Array (	new Module("p1","pre A","Dennis the Drum", "Introduction to the drum through songs, a sound story and skillbuilding activities"),	new Module("p2","pre A","Xanthe Xylophone", "Introduction to a tuned percussion instrument through a song and sound stories"),	new Module("p3","pre A","Trina Triangle", "Introduction to the triangle through a song, a sound story and skillbuilding activities"),	new Module("p4","pre A","Tara Tambourine", "Introduction to the tambourine through a song, a sound story and skillbuilding activities"),	new Module("p5","pre A","The Wooden Gang", "Introduction to four wooden percussion instruments through a song, a sound story and using graphic symbols"),	new Module("p6","pre A","The Beautiful Band", "Further exploration of the instruments introduced, drawing on the experience gained in other modules at this level"),	new Module("a1","A","Clap and Stamp", "Using body percussion to accompany a song and to build an invention"),	new Module("a2","A","Marching", "A song about marching with added instrumental accompaniment and learning about musical structure"),	new Module("a3","A","I Can Play Instruments", "Working with instruments, using them to accompany a song and to invent with"),	new Module("a4","A","Minibeasts", "Singing and playing, and using topic-related vocabulary to invent melodies about minibeasts"),	new Module("a5","A","Weather", "Singing, playing and building a weather picture in sound using images as a stimulus"),	new Module("a6","A","School", "Singing, playing, creating a sound story by adding percussion to a song, and using a journey as a stimulus for invention"),	new Module("b1","B","Swingin' Seasons I", "Two songs using ternary form, stepping and leaping"),	new Module("b2","B","Swingin' Seasons II", "A further two songs exploring binary form and contrasting major and minor moods"),	new Module("b3","B","Shake Rattle & Rustle", "Exploring body and instrumental sounds to colour a poem about autumn"),	new Module("b4","B","Take A Seed", "A piece for tuned and untuned percussion using growth of sound to depict the growth of a plant"),	new Module("b5","B","The Big Freeze", "Creating sound pictures to depict a winter scene, using ostinati and free time, slow and fast"),	new Module("b6","B","Through the Seasons", "An instrumental and vocal interlude joins all other modules at this level to form a musical journey through the seasons"),	new Module("c1","C","The Sea", "Using body and instrumental sounds to explore the sounds of the sea"),	new Module("c2","C","River Journey", "A piece for tuned and untuned percussion exploring arpeggio, high, low, accelerando and rallentando"),	new Module("c3","C","Conservation", "Using the theme of conservation as a stimulus exploring the concepts of pentatonic, staccato, legato and rondo"),	new Module("c4","C","Angus' Orchestra", "Discovering orchestral instruments and inventing for families of sounds"),	new Module("c5","C","Space Travellers", "Using Holst's The Planets as a stimulus to create sound pictures depicting different planets"),	new Module("c6","C","The Planets", "Further work on The Planets which also draws on work done in Angus' Orchestra and Space Travellers"),	new Module("d1","D","Magic Flute", "Using Papageno's aria from the Magic Flute as a group singing and performing activity"),	new Module("d2","D","Hansel and Gretel", "exploring broken chords using a song from Humperdinck's opera in two parts and by creating fanfares"),	new Module("d3","D","Silver Darlings", "A group singing and performing activity using voices in two parts accompanied by drones"),	new Module("d4","D","Coilsfield House", "A group performing activity using instruments, examining some concepts used in Scottish Music"),	new Module("d5","D","Ruidhle", "Using reels to further explore aspects of Scottish Music"),	new Module("d6","D","Caledonian Medley", "An instrumental/vocal project which draws on the experiences gained in Silver Darlings, Coilsfield House and Ruidhle"),	new Module("e1","E/F","Flak", "Using an arrangement of a piece by Graham Fitkin to examine the concept of syncopation, which is further developed in inventing activities"),	new Module("e2","E/F","Aract", "Another Fitkin piece which explores added harmony notes and advanced uses of rhythm"),	new Module("e3","E/F","Rainbows", "Performing a pop song using voices and instruments, as well as inventing riffs and short phrases"),	new Module("e4","E/F","Beyond the Farthest Star", "Performing a pop song using voices in parts and instruments as well as inventing extended pop music structures"),	new Module("e5","E/F","Deep Blue", "Using voices and instruments to create a blues with associated inventing activities"),	new Module("e6","E/F","We Can Try", "Performing a pop song using voices in parts and instruments as well as inventing extended pop music structures"),	new Module("e7","E/F","Ghana Beat", "Using techniques derived from Ghanaian drumming to generate material for untuned percussion"),	new Module("e8","E/F","Bali Beat", "Using techniques from Indonesian Gamelan music to generate musical patterns"),	new Module("e9","E/F","Rio Beat", "Group performing activity for untuned percussion instruments, exploiting syncopation and other rhythmic devices found in Samba"),	new Module("ea","E/F","Festejar!", "Group singing and performing activity with vocal parts in harmony and instruments exploring Salsa styles"),	new Module("eb","E/F","World Beat", "An insrumental/vocal project combining the four world music projects at levels E and F (Ghana Beat, Bali Beat, Rio Beat and Feste Jar!)"),	new Module("ec","E/F","Songs of the Sky", "An insrumental/vocal project combining materials from the four pop music projects at levels E and F (Rainbows, Beyond the Farthest Star, Deep Blue and We Can Try)")	);var myModuleIndex = findIndex(myCode);function Module(code, level, title, description) {	this.code = code;	this.level = level;	this.title = title;	this.description = description;}function findIndex(term) {	for(i = 0; i <= (modulelist.length - 1); i++) {		if (term == modulelist[i].code) {			return i;		}	}}function breadcrumbs() {var outstring = "";var root = "5-14 Home";var music = "Music";var level = "Level " + modulelist[myModuleIndex].level;var title = modulelist[myModuleIndex].title;var titleLink = myCode + "over.html";//outstring = root.link("514home.html") + " > ";outstring += music.link("index.html") + " > ";outstring += level.link("grid.html") + " > ";outstring += title.link(titleLink);return outstring;}function writeheadlink(myNumber) {	var outstring = "";	var myLink = "";	var myHead = "";		if (myFirstLetter > "c" & myFirstLetter < "g") {		switch (myNumber) {			case 1:				myLink = myCode + "iescd.html";				myHead = "1: Investigating: exploring sound";				outstring = myHead.link(myLink);				break;			case 2:				myLink = myCode + "uv.html";				myHead = "2: Using the voice";				outstring = myHead.link(myLink);				break;			case 3:				myLink = myCode + "ui.html";				myHead = "3: Using instruments";				outstring = myHead.link(myLink);				break;			case 4:				myLink = myCode + "iescd.html";				myHead = "4: Creating and designing";				outstring = myHead.link(myLink);				break;			case 5:				myLink = myCode + "cp.html";				myHead = "5: Communicating and presenting";				outstring = myHead.link(myLink);				break;			case 6:				myLink = myCode + "ol.html";				myHead = "6: Observing, listening...";				outstring = myHead.link(myLink);				break;			}		} else {			switch (myNumber) {			case 1:				myLink = myCode + "ies.html";				myHead = "1: Investigating: exploring sound";				outstring = myHead.link(myLink);				break;			case 2:				myLink = myCode + "uv.html";				myHead = "2: Using the voice";				outstring = myHead.link(myLink);				break;			case 3:				myLink = myCode + "ui.html";				myHead = "3: Using instruments";				outstring = myHead.link(myLink);				break;			case 4:				myLink = myCode + "cd.html";				myHead = "4: Creating and designing";				outstring = myHead.link(myLink);				break;			case 5:				myLink = myCode + "cp.html";				myHead = "5: Communicating and presenting";				outstring = myHead.link(myLink);				break;			case 6:				myLink = myCode + "ol.html";				myHead = "6: Observing, listening...";				outstring = myHead.link(myLink);				break;			}			}	return outstring;}function insertStrandImage() {	var outstring = "<img src=\"images/";		switch (myStrand) {		case "ie":			outstring += "ies.gif";			break;		case "uv":			outstring += "vox.gif";			break;		case "ui":			outstring += "inst.gif";			break;		case "cd":			outstring += "create.gif";			break;		case "cp":			outstring += "com.gif";			break;		case "ol":			outstring += "observe.gif";			break;	}	outstring += "\"  width=\"41\" height=\"41\" align=\"absmiddle\"> ";	return outstring;}